Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
   Glossary   Glossary
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1] 2

Author Topic: DSLstats doesn't remember the command prefix  (Read 10476 times)

marjohn56

  • Reg Member
  • ***
  • Posts: 118
DSLstats doesn't remember the command prefix
« on: September 09, 2015, 04:51:45 PM »

That's fine. I've just found the bug with DLStats and the D7000 and probably other Netgears when you start the program and I've emailed Eric, it forgets the command it should be using when first started so it's sending ADSL instead of ADSLCTL, and that, as far as that bit is concerned is that; otherwise it appears to work very well.
Logged
OPNsense 18.* - Billion Bridge - Qotom Q355G4 - ISP - ZEN U.K.

Team Rebellion Member

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43573
  • Penguins CAN fly
    • DSLstats
Re: DSLstats doesn't remember the command prefix
« Reply #1 on: September 09, 2015, 06:39:11 PM »

Yes, I've received your email, and I'm looking into it now.
Logged
  Eric

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43573
  • Penguins CAN fly
    • DSLstats
Re: DSLstats doesn't remember the command prefix
« Reply #2 on: September 10, 2015, 03:36:29 PM »

@marjohn56: How are you closing down DSLstats? I've checked the code and also checked by experiment, and as far as I can tell it does save and restore the CLI command prefix correctly. But you do need to close it down manually to ensure that all the settings are saved - if you reboot the PC without closing down DSLstats first, the settings won't be saved.
Logged
  Eric

marjohn56

  • Reg Member
  • ***
  • Posts: 118
Re: DSLstats doesn't remember the command prefix
« Reply #3 on: September 10, 2015, 05:30:57 PM »

Hi Eric,

Bizarre...

Ok, I've had a few more little pokes around. The ini file, which is stored in data after I have set it up, and I've not pressed play but just exited the program normally has the initaliser thus:

[stats]
CommandPrefix=adslctl

Now, load the program again, do nothing else, don't press play then go and have a look at the command prefix... notice antything?

On mine its gone back to adsl, the ini file is re-written on DSLstats starting up, and that bit is being changed. I have not looked to see if anything else is changing.

Regards,

Martin
Logged
OPNsense 18.* - Billion Bridge - Qotom Q355G4 - ISP - ZEN U.K.

Team Rebellion Member

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43573
  • Penguins CAN fly
    • DSLstats
Re: DSLstats doesn't remember the command prefix
« Reply #4 on: September 10, 2015, 06:31:34 PM »

That is strange, because it doesn't happen here. I'll have to go back to the drawing board.
Logged
  Eric

marjohn56

  • Reg Member
  • ***
  • Posts: 118
Re: DSLstats doesn't remember the command prefix
« Reply #5 on: September 10, 2015, 07:17:18 PM »

Same thing is happening on two PC's...

One is W7 the other is W10.

One other thing I did just to prove it was to change the permissions on the INI file to read only after I had set the initialiser to adslctl, of course when I did that is did not change, but DSLStats still went ahead and set adsl as the command prefix.
Logged
OPNsense 18.* - Billion Bridge - Qotom Q355G4 - ISP - ZEN U.K.

Team Rebellion Member

bmn

  • BMN
  • Just arrived
  • *
  • Posts: 6
Re: DSLstats doesn't remember the command prefix
« Reply #6 on: September 12, 2015, 12:54:02 PM »

Hi Eric,

Bizarre...

Ok, I've had a few more little pokes around. The ini file, which is stored in data after I have set it up, and I've not pressed play but just exited the program normally has the initaliser thus:

[stats]
CommandPrefix=adslctl

Now, load the program again, do nothing else, don't press play then go and have a look at the command prefix... notice antything?

On mine its gone back to adsl, the ini file is re-written on DSLstats starting up, and that bit is being changed. I have not looked to see if anything else is changing.

Regards,

Martin

I can confirm the same behaviour with DSLstats v5.6.1 running under Windows XP Home SP3 and a Netgear ADSL router.

Thank you Eric for giving us such a helpful piece of software
:flower:
Logged

marjohn56

  • Reg Member
  • ***
  • Posts: 118
Re: DSLstats doesn't remember the command prefix
« Reply #7 on: September 12, 2015, 02:09:49 PM »

It's a wonferful piece of software...

I have done a couple of other tests, it appears that whatever modem you select, if you change the default command to something else, it resets it when you restart DSLStats.
Logged
OPNsense 18.* - Billion Bridge - Qotom Q355G4 - ISP - ZEN U.K.

Team Rebellion Member

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43573
  • Penguins CAN fly
    • DSLstats
Re: DSLstats doesn't remember the command prefix
« Reply #8 on: September 12, 2015, 03:39:29 PM »

Thank you both :)

I can't reproduce this on any of my Linux systems, or on the Windows 8.1 machine which I drag into service for building and testing the Windows version. The code which saves and reads the inifile and deals with this configuration item seems to be robust, so I'm scratching my head.

My one thought is that you may have used the option to move the configuration files to the alternative location (only used on the Windows version) and that this switch has misbehaved. I'll be testing that theory next.
Logged
  Eric

marjohn56

  • Reg Member
  • ***
  • Posts: 118
Re: DSLstats doesn't remember the command prefix
« Reply #9 on: September 12, 2015, 03:47:28 PM »

If there's anything I can do to help you find this gremlin then ask away...
Logged
OPNsense 18.* - Billion Bridge - Qotom Q355G4 - ISP - ZEN U.K.

Team Rebellion Member

marjohn56

  • Reg Member
  • ***
  • Posts: 118
Re: DSLstats doesn't remember the command prefix
« Reply #10 on: September 12, 2015, 04:03:27 PM »

Eric, ignore my last comment about any modem, just tried it with the technicolor TG582 and and that remembers xdslctl although the default is xdsl, then I tried a similar excercise with a Zyxel, both remembered./ I then thought it maybe it was that no login name was used in the Netgear but that checks out OK, so it does seem it is a netgear modem setting only.
Logged
OPNsense 18.* - Billion Bridge - Qotom Q355G4 - ISP - ZEN U.K.

Team Rebellion Member

marjohn56

  • Reg Member
  • ***
  • Posts: 118
Re: DSLstats doesn't remember the command prefix
« Reply #11 on: September 12, 2015, 04:17:42 PM »

Not the config path either.

Just tried it with Netgear DG834Nv1, default command when selected is adslctl. Close program, start program, now changed to adsl. This happens regardless of the *.ini location.
Logged
OPNsense 18.* - Billion Bridge - Qotom Q355G4 - ISP - ZEN U.K.

Team Rebellion Member

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43573
  • Penguins CAN fly
    • DSLstats
Re: DSLstats doesn't remember the command prefix
« Reply #12 on: September 12, 2015, 06:37:48 PM »

OK, thanks for clarifying that. So it seems to relate to Netgear modems only. At present I don't know how that can happen, but hopefully it's a clue.
Logged
  Eric

marjohn56

  • Reg Member
  • ***
  • Posts: 118
Re: DSLstats doesn't remember the command prefix
« Reply #13 on: September 12, 2015, 07:09:22 PM »

Played some more... it seems it specifically dislikes ADSLCTRL, if I use ADSLCFG it remembers it, also tried that with other modems, same thing....

strcmp ?
« Last Edit: September 12, 2015, 07:12:06 PM by marjohn56 »
Logged
OPNsense 18.* - Billion Bridge - Qotom Q355G4 - ISP - ZEN U.K.

Team Rebellion Member

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43573
  • Penguins CAN fly
    • DSLstats
Re: DSLstats doesn't remember the command prefix
« Reply #14 on: September 13, 2015, 07:52:33 AM »

That last comment was the clue. I've fixed it now. It was a simple typo in the code. For unrelated reasons I change the 4th item in a particular list to the 1st item, but I was acting on the wrong list (the list of command prefixes). :-[

I'll upload the corrected version as soon as I can, but I'm a bit tied up at present.
Logged
  Eric
Pages: [1] 2