General Discussion
  >> Fibre Broadband


Register (or login) on our website and you will not see this ad.


Pages in this thread: 1 | 2 | 3 | 4 | 5 | [6] | 7 | 8 | (show all)   Print Thread
Standard User RobertoS
(sensei) Sun 06-Jan-13 17:05:26
Print Post

Re: Huawei HG612 - Graphing - A cry for programming help


[re: R0NSKI] [link to this post]
 
In reply to a post by R0NSKI:
... it's the wife's birthday weekend, off out for dinner shortly.
Who with, and what's your wife going to say?

My broadband basic info/help site - www.robertos.me.uk | Domains,website and mail hosting - Tsohost.
Connection - Plusnet Extra Fibre (FTTC). Sync ~ 54.0/14.9Mbps @ 600m. - BQM

"Where talent is a dwarf, self-esteem is a giant." - Jean-Antoine Petit-Senn.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Allergy information: This post was manufactured in an environment where nuts are present. It may include traces of understatement, litotes and humour.
Standard User R0NSKI
(experienced) Sun 06-Jan-13 17:30:19
Print Post

Re: Huawei HG612 - Graphing - A cry for programming help


[re: RobertoS] [link to this post]
 
In reply to a post by RobertoS:
Who with, and what's your wife going to say?


shhhhhh, don't tell her!

Standard User burakkucat
(experienced) Sun 06-Jan-13 18:20:19
Print Post

Re: Huawei HG612 - Graphing - A cry for programming help


[re: deleted] [link to this post]
 
Thank goodness that I only write C-code for Unix / Linux kernel using OSs and not BGW! tongue

100% Linux and, previously, Unix.


Register (or login) on our website and you will not see this ad.

Standard User deleted
(deleted) Sun 06-Jan-13 18:33:41
Print Post

Re: Huawei HG612 - Graphing - A cry for programming help


[re: R0NSKI] [link to this post]
 
In reply to a post by R0NSKI:
We posted at the same time.

I'm doing this all on the server, so I have the following ini file - using the defualt folders. Yes I downloaded the latest versions this afternoon.


[Login]
IP_address = 192.168.0.3
Username = admin
Password = admin
Shell = sh

[Locations]
Drive = C:
Main_folder = C:\HG612_Modem_Stats
Scripts_and_Programs = C:\HG612_Modem_Stats\Scripts
Apps_folder = C:\HG612_Modem_Stats\Apps
Current_Stats_folder = C:\HG612_Modem_Stats\Current_Stats
Ongoing_Stats_folder = C:\HG612_Modem_Stats\Ongoing_Stats

[Mode]
Mode=extensive

[Graphing]
Auto_graph_Snapshot_data = YES


I also seem to be getting isrunning files for every minute

That's the start of an attempt (not yet implemented) to determine if HG612_stats.exe is still running at the same time as say, HG612_current_stats.exe is started.
The modem doesn't seem to like 2 simultaneous login attempts.




I've put the new files (the uploaded ones) in the C:\HG612_Modem_Stats directory/folder

I wonder if that could be the problem?

You have the scripts & programs set as "Scripts_and_Programs = C:\HG612_Modem_Stats\Scripts" in the ini file, yet the programs are currently stored one level up at "Scripts_and_Programs = C:\HG612_Modem_Stats"
Standard User deleted
(deleted) Sun 06-Jan-13 18:41:46
Print Post

Re: Huawei HG612 - Graphing - A cry for programming help


[re: burakkucat] [link to this post]
 
In reply to a post by burakkucat:
Thank goodness that I only write C-code for Unix / Linux kernel using OSs and not BGW! tongue


Get used to it!

Some poor soul (who shall remain nameless until he exposes himself - not in the biblical sense, of course) might have to read my very, very messy code some day & add a load of extra code to ensure a level of compatibility for that strange band of penguin huggers out there smile
Standard User deleted
(deleted) Sun 06-Jan-13 19:05:22
Print Post

Re: Huawei HG612 - Graphing - A cry for programming help


[re: deleted] [link to this post]
 
isrunning sounds like a potential nightmare.
Standard User R0NSKI
(experienced) Sun 06-Jan-13 19:30:16
Print Post

Re: Huawei HG612 - Graphing - A cry for programming help


[re: deleted] [link to this post]
 
I've shifted the programs including the ini file to the scripts folder, but it's still leaving the isrunning file and it doesn't generate graphs when I run current_stats.

Just thinking the only time you really need to to run current_stats is when the modem re-synced as thats the only time they will change iirc. Would it not be possible for the get stats exe to run current_stats when it see's the up time has reset, thus automatically logging those stats after every re sync?

Edited by R0NSKI (Sun 06-Jan-13 19:32:12)

Standard User burakkucat
(experienced) Sun 06-Jan-13 19:58:15
Print Post

Re: Huawei HG612 - Graphing - A cry for programming help


[re: deleted] [link to this post]
 
In reply to a post by Bald_Eagle1:
Get used to it!
Hiss, spit and swipe (with claws exposed).
Some poor soul (who shall remain nameless until he exposes himself - not in the biblical sense, of course) might have to read my very, very messy code some day & add a load of extra code to ensure a level of compatibility for that strange band of penguin huggers out there smile
Meow! tongue

100% Linux and, previously, Unix.
Standard User deleted
(deleted) Sun 06-Jan-13 20:57:40
Print Post

Re: Huawei HG612 - Graphing - A cry for programming help


[re: deleted] [link to this post]
 
In reply to a post by BatBoy:
isrunning sounds like a potential nightmare.


Why's that?


If you have any other suggestions (in 'C') for checking if a given program is still running, please speak up as I don't know how to do that.
Standard User deleted
(deleted) Sun 06-Jan-13 21:02:31
Print Post

Re: Huawei HG612 - Graphing - A cry for programming help


[re: deleted] [link to this post]
 
I wouldn't do it, it just looks too hard for little benefit. For instance, what if the isrunning file doesn't get deleted?
Pages in this thread: 1 | 2 | 3 | 4 | 5 | [6] | 7 | 8 | (show all)   Print Thread

Jump to