Broadband Related > FTTC and FTTP Issues

Huawei HG612 - Graphing - A cry for programming help

(1/2) > >>

Bald_Eagle1:
I have occasionally mentioned that a new & enhanced version of the stats graphing system is to be released soon.

Programming this in 'C', Burakkucat has developed a Linux/Windows cross-platform stats harvesting program for the HG612 (a single version for use on ADSL & VDSL2 connections) & I have further developed it to munge the obtained data into a format that can be graphed (currently using a revised version of the graphpd.BAT graphing script for Windows users).

I have fully tested the .exe program resulting from compiling the C code with MingW over a couple of months & have found it to be very quick in operation & far more reliable than the scripted versions when coping with various flavours of virus checkers etc. hogging all the PC's resources & causing gaps in the harvested data.

Currently the program is controlled by a batch file called by a simple VBS script that is run every minute via Windows Task Scheduler (or via Cron for Linux users).

I would like to release at least the VDSL2 version very soon. However, I would firstly like it to use an .ini configuration file to make setting the defalut variables for different users' systems as easy as possible & avoid having to use a controlling batch file.

Unfortunately, as I am not a programmer and I have limited available time to research this, I have ground to a halt.

Initially, I imagine a basic ini file would look something like this:-

[login]
IPaddress=192.168.1.1
Username=admin
Password=admin
Shell=sh


[folder_locations]
Drive=C:
Main_folder=\HG612_Stats
Apps=\Apps
Program=\Program
Ongoing_Stats=\Ongoing_Stats
Current_Stats=\Current_Stats

The program would then read the ini file each time it is run from Task Scheduler/Cron & store the values as global variables.

The same ini file could then be used for obtaining & storing snapshot data and ongoing data, along with graphing programs already partially developed.

I/we would be happy to provide the C code "as is" if anyone was willing/able to add in the facility to use an ini configuration file for the default variables.

Initially I would be happy to manually edit the ini file, but at some stage, it would be nice to use a graphical front end where folder locations etc. could be chosen via a point & click method via a GUI rather than the "old fashioned" manual method.

Is anyone up for assisting with this?
It would have to be written in C, for inclusion into the currently developed program(s).

Intentionally, graphs will still only be generated on demand. However this is easily automated via Task Scheduler (if required).

roseway:
Reading data from an ini file (and writing to it) is very simple, but unfortunately I don't do C. I imagine that any C programmer should be able to do this with no difficulty. There's some sample code here: https://code.google.com/p/inih/

Bald_Eagle1:
Thanks for the link Eric.

It's the same one as posted by someone else in another thread I started here & it looks like it might provide the answers (when I actually get a round tuit):-

ThinkBroadBand forum thread

roseway:
One other thing I could offer (although it may be a sledgehammer to crack a nut) is to write a little supplementary program to parse the ini file and return the data in a form the main program could use. I don't know if this is practical though, as I don't know what the main program requires.

Chrysalis:
I am glad you are doing this bald eagle it will improve it a lot.

Navigation

[0] Message Index

[#] Next page

Go to full version