Kitz Forum

Broadband Related => Router Monitoring Software => Topic started by: roseway on March 07, 2013, 01:19:48 PM

Title: rs-ux and rs-w v2.5 released
Post by: roseway on March 07, 2013, 01:19:48 PM
(Version 2.5 replaced by v2.51)

Several fixes for minor bugs and inconsistencies, plus two new features.

Changes since 2.41:

- added option to make exit button minimise the program instead of shutting it down
- removed incorrect label from bitswaps per min clipping level
- default clipping level for bitswaps per min increased to 100
- corrected some visual misbehaviour when enabling and disabling various graphs
- corrected error whereby the bitloading graph would sometimes be visible when disabled
- it's no longer required to press "Apply" on the basic configuration page
- added experimental "Special login" page for routers with a more complicated route
  to the BusyBox shell
- System tray icon popup hint shows downstream speed and SNRM
- added partial implementation of automatic update (downloads new version, but doesn't update)

http://rsux.plainroad.me.uk (http://rsux.plainroad.me.uk)
Title: Re: rs-ux and rs-w v2.5 released
Post by: les-70 on March 07, 2013, 02:51:33 PM
   Windows XP   --  Looking forwards to this release -- when it works, nice options.   However so far I can't get the router settings remembered on close,  other options are remembered.  The option to minimize on exit half works i.e. it does just that but when it does that the quit does not work and a minimized window also appears as well as the system tray icon.  The only way out is to uncheck the minimize on close or kill the task.
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 07, 2013, 03:28:06 PM
Thanks for the report. I'll check those things out.

[Edit] I can confirm these findings, so I apologise and I'll fix them as quickly as I can.
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 07, 2013, 07:15:30 PM
The above issues are now fixed, and version 2.51 has replaced v2.5

(There may still be some minor issues with the functioning of the system tray icon on some systems. Please let me know if you find any problems.)
Title: Re: rs-ux and rs-w v2.5 released
Post by: Nodens on March 07, 2013, 10:02:17 PM
For starters, thanks a lot for supporting this!

 Doesn't seem to be working for the ZTE. It seems to be stuck after logging in, not displaying any output although at some point it says "Recording started etc". Telnet window shows multiple lines of "blank".
On exit there's an unhandled exception thrown: Unhandled exception at 0x7743A710 (ntdll.dll) in rsw.exe: 0xC0000005: Access violation writing location 0x00000014.

(https://forum.kitz.co.uk/proxy.php?request=http%3A%2F%2Fi46.tinypic.com%2Fioi176.jpg&hash=9e3022b4f7b3ca1e51155e3c06b92958e5d4ffe4)


Starting VS2012 debugger I get this call stack:
>   ntdll.dll!_RtlpWaitOnCriticalSection@8()   Unknown
    ntdll.dll!_RtlpEnterCriticalSectionContended@4()   Unknown
    ntdll.dll!_RtlEnterCriticalSection@4()   Unknown
    rsw.exe!0040fa49()   Unknown
    [Frames below may be incorrect and/or missing, no symbols loaded for rsw.exe]   
    rsw.exe!0040f468()   Unknown
    rsw.exe!0040eac8()   Unknown
    rsw.exe!0040ebbb()   Unknown
    rsw.exe!0040ecc0()   Unknown
    rsw.exe!0040dee8()   Unknown
    rsw.exe!00403eff()   Unknown
    rsw.exe!00457ea1()   Unknown
    rsw.exe!0040c0e7()   Unknown
    rsw.exe!0040b224()   Unknown
    rsw.exe!0040e85d()   Unknown
    rsw.exe!0040e85d()   Unknown
    rsw.exe!0040ea7e()   Unknown
    rsw.exe!0040bff4()   Unknown
    rsw.exe!0040c074()   Unknown
    rsw.exe!004583f5()   Unknown
    rsw.exe!0040d9de()   Unknown
    rsw.exe!0040f468()   Unknown
    rsw.exe!0040eac8()   Unknown
    rsw.exe!0040ebbb()   Unknown
    rsw.exe!0040ecc0()   Unknown
    rsw.exe!0040dee8()   Unknown
    rsw.exe!00403eff()   Unknown
    rsw.exe!00457ea1()   Unknown
    rsw.exe!0040c0e7()   Unknown
    rsw.exe!0040b224()   Unknown
    rsw.exe!0040e85d()   Unknown
    rsw.exe!0040e85d()   Unknown
    rsw.exe!0040ea7e()   Unknown
    rsw.exe!0040c0bb()   Unknown
    rsw.exe!004583f5()   Unknown
    rsw.exe!0040d9de()   Unknown
    rsw.exe!0040f468()   Unknown
    rsw.exe!0040eac8()   Unknown
    rsw.exe!00457c44()   Unknown
    rsw.exe!0040bff4()   Unknown
    rsw.exe!0040c269()   Unknown
    rsw.exe!004e8941()   Unknown
    user32.dll!_InternalCallWinProc@20()   Unknown
    user32.dll!_UserCallWinProcCheckWow@36()   Unknown

Registers output:
EAX = 00000000 EBX = 00000000 ECX = FFFFFFF4 EDX = FFFFFFF8 ESI = 00000000 EDI = 0076E9B0 EIP = 7743A710 ESP = 017DEEC0 EBP = 017DEF24 EFL = 00210213

0x00000014 = 00000000

I don't know how you're parsing modem output but maybe this highlighted line output before "Login:" has something to do with it?
(https://forum.kitz.co.uk/proxy.php?request=http%3A%2F%2Fi48.tinypic.com%2F30trion.jpg&hash=42d093df3b6f216d078beabb16204babf046111d)


Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 07, 2013, 10:47:17 PM
Sorry it didn't work this time round. I'll work on it shortly.
Title: Re: rs-ux and rs-w v2.5 released
Post by: Nodens on March 07, 2013, 11:23:50 PM
No problem.:) I'll be a happy man if I can monitor my line with this modem!
Title: Re: rs-ux and rs-w v2.5 released
Post by: les-70 on March 08, 2013, 07:56:08 AM
  On first startup after unzipping, if I select all the options I want I get an error exception and crash with nothing remembered for next time.  If I start with just the router settings it works, and if I then close it and restart I can change all the other settings and it works fine thereafter.  I thus get there but not in one go.  Some users may give you error reports from this cause but think something else is wrong. 

  Quit now works but use of "minimize on exit" still leaves a reduced to smallest window.
Title: Re: rs-ux and rs-w v2.5 released
Post by: broadstairs on March 08, 2013, 08:40:15 AM
Eric been doing a bit of testing on 32bit Linux. Some observations:

1. Close button minimises to systray is mutually exclusive with Confirm on close, so how do I exit the program from the main screen? Would you consider still having a way to exit without having to use the tray icon to quit. Maybe a minimise button as well as an exit button

2. Minimise still leaves the task bar visible which will also restore the main window just like the systray icon does, most of my programs which do this only leave a systray icon.

I have not had any errors on startup.

Stuart
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 08, 2013, 09:32:53 AM
Thanks for the comments. I'll be working on them soon.
Title: Re: rs-ux and rs-w v2.5 released
Post by: les-70 on March 08, 2013, 10:03:25 AM
  Stuart,

    If you want the option of a close button as well as "close giving minimize" would it not be better to leave it with the default of not selecting "close gives minimize" -- that seems to me to  give what you want. 

The idea of "close being minimize" is to avoid accidentally quitting.   The "only a right click quit" does just that - it makes accidental closing hard - very useful when you really do want a long sample.
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 08, 2013, 10:24:28 AM
Quote
If you want the option of a close button as well as "close giving minimize" would it not be better to leave it with the default of not selecting "close gives minimize" -- that seems to me to  give what you want.

I've been pondering this too. I can't really think of any tidy way of adding a "really do exit" capability to cover that situation.
Title: Re: rs-ux and rs-w v2.5 released
Post by: les-70 on March 08, 2013, 01:34:12 PM
  Sorry to add more to your queue of things to do but!!! I happened to try different sampling times today.  The max seems to be 240 sec.  I wanted to see if I could get smooth error rate curves. 

 This  revealed that the error rate axis actually seems to be errors per SAMPLE and not per minute.  I attach a swaps per minute snapshot in which the sample time went from 30 to 240 then 160 and then 60 secs . The 160 was an accident as the 1 is hidden from view most of the time.  There is also a gap due to a standby.  You will see how the roughly fixed error rate moves about.  This is from an HG622 which bitswaps a lot.  The impact is less clear in my CRC errors (fast path) as even at 240 sec I  get odd samples with 0,1 ,2, 3 and once in while 4.  At 60 sec it is just 0 and 1 with an occasional 2.   I  probably need at least a 600 sec average to see the more averaged rate which is probably about 0.5/min.
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 08, 2013, 04:22:17 PM
No need to apologise for reporting bugs. :)

I can increase the maximum sample time, and make the box a bit bigger so you can see the whole number. I think I know why it doesn't reflect correctly in the bitswaps per minute graph.
Title: Re: rs-ux and rs-w v2.5 released
Post by: les-70 on March 08, 2013, 04:51:04 PM
  I do apologize as I know how much work can be involved.

 I am fairly sure the CRC errors are just like the bitswaps.  The peaks of my intermittent CRC were definitely bigger with a longer sample time even if changing peaks of 2 to 4 is not a statistically confident proof.
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 08, 2013, 06:49:23 PM
Quote
I am fairly sure the CRC errors are just like the bitswaps.  The peaks of my intermittent CRC were definitely bigger with a longer sample time even if changing peaks of 2 to 4 is not a statistically confident proof.

Yes, that would be the case. The same would have applied to the FEC graph. The cause was one short line of code in the wrong place. I've corrected it now.
Title: Re: rs-ux and rs-w v2.5 released
Post by: broadstairs on March 08, 2013, 08:00:56 PM
My point about closing is that if the window is maximised you have to select the systray icon to exit the program which to me just seems odd. If I have it in the systray then fine I can quit it directly without maximising it but not the other way round. Most programs I have which do this also have a file menu item on the main window which has an exit option. It's not a big issue just my 10 penneth...

Stuart
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 08, 2013, 10:42:57 PM
I see your point. If I had a menu, that is what I would do. Of course, a lot of systems will have a system menu at the top left corner of the window.
Title: Re: rs-ux and rs-w v2.5 released
Post by: broadstairs on March 09, 2013, 07:45:01 AM
Eric one more small suggestion, on Linux I run with 4 desktops and have rs-ux on no. 3. I obviously can see the systray icon on all desktops but I dont know from the icon if it is minimised or maximised as in both cases the right click shows restore, is it possible to have the right click show restore if it is minimised and then minimise if the main window is open?

Stuart
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 09, 2013, 07:55:52 AM
Yes Stuart, that's certainly possible. I think I'll probably add another entry to the right-click menu, rather than change the 'Restore' entry, because on multi-desktop systems Restore has some use even when the program isn't minimised - it takes you to the desktop where rs-ux is running.
Title: Re: rs-ux and rs-w v2.5 released
Post by: broadstairs on March 09, 2013, 05:47:12 PM
Yes Stuart, that's certainly possible. I think I'll probably add another entry to the right-click menu, rather than change the 'Restore' entry, because on multi-desktop systems Restore has some use even when the program isn't minimised - it takes you to the desktop where rs-ux is running.

Yes I noticed that, again not a big issue just that it would be nice to know if it was maximised somewhere already.

Stuart
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 10, 2013, 10:44:25 AM
Doesn't seem to be working for the ZTE. It seems to be stuck after logging in, not displaying any output although at some point it says "Recording started etc". Telnet window shows multiple lines of "blank".

Just a quick point to check - when you set this up you did check the option "Enable special login" on the special login configuration page, didn't you?
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 10, 2013, 03:19:41 PM
  On first startup after unzipping, if I select all the options I want I get an error exception and crash with nothing remembered for next time.

Unfortunately I can't reproduce this. I've tried setting various combinations of options, but I can't find a combination which makes it crash. Could you possibly describe in detail what you did before pressing the green button?
Title: Re: rs-ux and rs-w v2.5 released
Post by: les-70 on March 10, 2013, 03:43:46 PM
   Back from a cold brrrr walk - am definitely awake now!  This reliably crashes it for me on first start.

  fresh unzip  or delete rsw.ini file
  login: select hg622 (anything I think)
  misc: select "exit button minimizes" AND "minimize to system tray"  (this combination seems to be what it does not like on first start.  Second time it is fine!)
  green button ---- access violation ..  OK to ignore ...  Cancel to kill
 
 
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 10, 2013, 04:11:02 PM
Right, I've got it now. Thanks.
Title: Re: rs-ux and rs-w v2.5 released
Post by: Nodens on March 10, 2013, 05:53:55 PM
Doesn't seem to be working for the ZTE. It seems to be stuck after logging in, not displaying any output although at some point it says "Recording started etc". Telnet window shows multiple lines of "blank".

Just a quick point to check - when you set this up you did check the option "Enable special login" on the special login configuration page, didn't you?

Yes I did. I thought that this is what switched from normal login to special login. Did I get that wrong?
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 10, 2013, 06:38:07 PM
No, you got it exactly right. I just wanted to make sure. Thanks for confirming it.
Title: Re: rs-ux and rs-w v2.5 released
Post by: Nodens on March 10, 2013, 11:32:26 PM
No problem:) Let me know if you need anything else.
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 12, 2013, 11:25:26 AM
Doesn't seem to be working for the ZTE. It seems to be stuck after logging in, not displaying any output although at some point it says "Recording started etc". Telnet window shows multiple lines of "blank".

I've produced a diagnostic version 2.52 (Windows only) which logs the activity while it attempts to connect when using the "Special login", and saves the event log to the same directory as the executable after the login completes (or fails). Could I ask you to try this version, set it up in the same way as for v2.51, and start recording. It may actually work this time, but whether it does or not, I'd like to see the saved event log, which will help me to find out where it fails. Thanks in advance.

http://s446074245.websitehome.co.uk/files/rs-w32-2.52.zip
Title: Re: rs-ux and rs-w v2.5 released
Post by: Nodens on March 12, 2013, 05:58:17 PM
 By looking at the log it seems that Username and Password are never sent. Instead "enable" is sent at the Username prompt and the process looks kind of erratic.
There's no more "blank" printed at telnet output.

I've attached 3 logs.

EDIT: There's no unhandled exception thrown when exiting anymore but I can't seem to exit gracefully. I have to kill the process.
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 12, 2013, 06:41:19 PM
Thank you for that information. I hope that it will enable me to understand what's going wrong.
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 13, 2013, 06:57:35 PM
I've produced a new diagnostic version 2.53 (Windows only). The information you provided from the previous diagnostic version pointed to the source of the problem (mishandling of the login prompt) and this version corrects that. I have hopes that this version will work properly, but as before, I'd still like to see the event log. Thanks for your help.

http://s446074245.websitehome.co.uk/files/rs-w32-2.53.zip
Title: Re: rs-ux and rs-w v2.5 released
Post by: Nodens on March 13, 2013, 10:25:40 PM
 Unfortunately it still doesn't work and can't exit gracefully.  Also this time it doesn't create event logs at all. Sounds like broken event handling:/
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 13, 2013, 10:44:40 PM
Oh dear, I don't know where to go from here. I'll have another think.
Title: Re: rs-ux and rs-w v2.5 released
Post by: Nodens on March 14, 2013, 12:36:18 AM
If you don't get any ideas, perhaps you could send me a debug build with symbols so I could take a look with the debugger myself. It's always hard developing without an actual sample
of the hardware:)
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 14, 2013, 07:21:23 AM
Yes, I'll do that. Thanks for the suggestion.
Title: Re: rs-ux and rs-w v2.5 released
Post by: broadstairs on March 14, 2013, 09:05:06 AM
Eric I just got an Invalid Floating Point error running while minimised and no event log had been written so I really have no idea what might have caused it. The router may have been busy as I was watching a bit of video streaming.

Stuart
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 14, 2013, 10:36:35 AM
Stuart, do you have it minimised to the system tray?
Title: Re: rs-ux and rs-w v2.5 released
Post by: broadstairs on March 14, 2013, 10:40:09 AM
Stuart, do you have it minimised to the system tray?

Yes it was in the system tray. I discovered that if I click on the minimise button in the top RH corner of the window it only shows in the system tray but if I click on the close X in the window it shows up in the task bar as well! So I had used the minimise button.

Stuart
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 14, 2013, 10:52:28 AM
Unfortunately it still doesn't work and can't exit gracefully.  Also this time it doesn't create event logs at all. Sounds like broken event handling:/

Before I produce a debug version, can I ask you just to try a small experiment with version 2.53? I'll spell it out in detail, just to make sure that there are no misunderstandings:

First
1. In the special login page, select the ZTE router from the dropdown list.
2. Fill in the login password (which is case-sensitive).
3. Check the option "Enable special login".
4. Press the green button.

If it fails, start rs-w up again and:

Second
1. In the special login page, select the ZTE router from the dropdown list.
2. Edit the first two prompts so that they just contain ":" (without the quotes of course).
3. Fill in the login password (which is case-sensitive).
4. Check the option "Enable special login".
5. Press the green button.

Please let me know the results. Many thanks.
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 14, 2013, 11:00:07 AM
Yes it was in the system tray. I discovered that if I click on the minimise button in the top RH corner of the window it only shows in the system tray but if I click on the close X in the window it shows up in the task bar as well! So I had used the minimise button.

Stuart

I can't be sure, but I suspect that this may be a result of the same bug as les-70 reported, which caused a crash when enabling the system tray options under some circumstances. I believe I've fixed this bug now, as well as tidying up the behaviour of the system tray options. In the meantime, I'll try running it minimised for a long period to see if I can reproduce this problem.
Title: Re: rs-ux and rs-w v2.5 released
Post by: Nodens on March 14, 2013, 11:12:16 AM
Before I produce a debug version, can I ask you just to try a small experiment with version 2.53? I'll spell it out in detail, just to make sure that there are no misunderstandings:

First
1. In the special login page, select the ZTE router from the dropdown list.
2. Fill in the login password (which is case-sensitive).
3. Check the option "Enable special login".
4. Press the green button.

This is the exact procedure I have been following, with the exception of editing the ip address to .1 instead of .254. Just fyi my network topology
consists of a Linksys 4200 v1 router running Tomato USB Toastman firmware as 192.168.0.1/24 with the ZTE modem in bridge mode as 192.168.1.1/24.
 192.168.1.1/24 is routed automatically via Tomato USB to the modem.

This time though it produced an event log (I did run it 3 times yesterday failing to do so..)! The log looks similar to the previous ones and I'm attaching it.

Quote
If it fails, start rs-w up again and:

Second
1. In the special login page, select the ZTE router from the dropdown list.
2. Edit the first two prompts so that they just contain ":" (without the quotes of course).
3. Fill in the login password (which is case-sensitive).
4. Check the option "Enable special login".
5. Press the green button.

Please let me know the results. Many thanks.

This second method produces "Unable to login to router" log also attached. This time the modem's password is visible in the log and I've
edited it to modem_password. Looks like username is still not being sent, even in this case.

Thanks a lot for your hard work!

EDIT: I just noticed that exiting the application after testing the second scenario, it threw an unhandled exception again.
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 14, 2013, 11:44:26 AM
Thanks again for your cooperation. As you say, it does seem that the username isn't getting sent (it should be sent immediately after receiving the "Connected" response). I'll work on this, and the next version will be built with debug symbols as you suggested.
Title: Re: rs-ux and rs-w v2.5 released
Post by: broadstairs on March 14, 2013, 11:49:39 AM
I can't be sure, but I suspect that this may be a result of the same bug as les-70 reported, which caused a crash when enabling the system tray options under some circumstances. I believe I've fixed this bug now, as well as tidying up the behaviour of the system tray options. In the meantime, I'll try running it minimised for a long period to see if I can reproduce this problem.

Interesting as this was the first time I've run minimised for any extended period. For now I'll leave it maximised.

As another point I've found that I need to click more than once to get it to maximise from the system tray and stick, first click it comes up and minimises again second click it stays maximised!

Stuart
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 14, 2013, 01:14:34 PM
Quote
As another point I've found that I need to click more than once to get it to maximise from the system tray and stick, first click it comes up and minimises again second click it stays maximised!

I think that's been dealt with as part of the tidying-up, but I'll check it out to make sure.
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 15, 2013, 10:09:16 AM
For Nodens:

I've made some more small changes and produced a debug version (Windows only) for you to try:

http://s446074245.websitehome.co.uk/files/rs-w32-2.54-debug.zip
Title: Re: rs-ux and rs-w v2.5 released
Post by: Nodens on March 15, 2013, 04:52:05 PM
 Log files are attached. It still seems like there's something strange with the flow control or something.. I don't know. Logs still look similar although now
I've seen the password getting "cut" in 2.. in some cases log is showing 2 chars of the password sent and then the other 6. And in a couple of cases
it seems like the last 7 chars from the password sent and then the first char of the password appended to the "enable" string?!? I've marked it in the log
but for a clearer example let's say the password is "FGi7j872", password was sent as "Gi7j872" and the enable line after that was "Fenable".. I find this
very strange..

On a sidenote, you will see that it managed to connect once (but I believe it a purely random event, as I'm unable to reproduce it) but even in that case
the log does not show "Username:", "Password:" or rs-w32 answers. I wonder if the initial greeting screen is causing the issue? Encoding issue maybe?

The first log is with the default options. The other 3 (including the one that managed to connect) were made with :/: as Username:/Password: expressions.

I wonder if a timed option of let's say 2000 milliseconds between each response would manage to make it login. That would verify a certain issue in parsing
modem telnet output..
I know the modem's firmware has been modified by the Greek ISP as they purchase these in bulk and modify the firmware for default settings and web interface
theme. Perhaps they messed up with the char encoding?

Also what happens if you use only user/pass of Special Login to telnet in another modem (one of those supported in normal login sequence). Does it work this way?
This test would show Special Login flow control is working properly..

Thank you for your time!
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 15, 2013, 05:31:00 PM


Quote
Also what happens if you use only user/pass of Special Login to telnet in another modem (one of those supported in normal login sequence). Does it work this way?

It works fine with the Huawei HG612 which I use. This model does use a second stage of logging in to get to the BusyBox shell, and the special login deals with it with no problems.

Your suggestion of a time delay between commands is a good one. As some of the commands seem to lose their first character, this may simply be the result of a timing issue.

I won't be able to do any more until tomorrow, but I'll have a look at your logs and your other points then.
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 16, 2013, 03:28:13 PM
Here's another version with debug symbols. I've added some options to the special login setup, so you can enable/disable a time delay before the login commands, and set the time to different values. You can also enable/disable the diagnostic logging, although it will be best to keep it enabled at this stage.

http://s446074245.websitehome.co.uk/files/rs-w32-2.55-debug.zip
Title: Re: rs-ux and rs-w v2.5 released
Post by: Nodens on March 16, 2013, 09:15:39 PM
Ok this is even stranger:/ As long as I enable the millisecond delay, it fails to logon immediately (<=1sec). No matter what I set the value to. 10000 produces the same result as 100ms. Also with the delay enabled, it doesn't log anything..

In order to rule any Win 8 operating system quirks out of the equation and possibly anything in my LSP chain interfering (NOD32 etc) I also tried to run under the VMWare WinXP VM that I use to test my software under (I should probably have done that sooner). No difference at all. The Win XP VM, is stock XP, latest service pack no locale settings whatsoever or anything other than VMWare Tools.

Then I did something else I should have tried sooner as well. I run the Linux 2.51 version on the Fedora box I also use for development. Same results... On exit it also threw an unhandled exception:

Quote
[ntt@wintermute rs-ux64-2.51]$ ./rsux
TLResourceList.Sort 53 DUPLICATE RESOURCE FOUND: TBitchart:PNG
TLResourceList.Sort 54 DUPLICATE RESOURCE FOUND: TBitchart:PNG
TLResourceList.Sort 57 DUPLICATE RESOURCE FOUND: TLinechart:PNG
TLResourceList.Sort 58 DUPLICATE RESOURCE FOUND: TLinechart:PNG
TLResourceList.Sort 60 DUPLICATE RESOURCE FOUND: TLinediagchart:PNG
TLResourceList.Sort 61 DUPLICATE RESOURCE FOUND: TLinediagchart:PNG
An unhandled exception occurred at $0000008312D00000 :
EAccessViolation : Access violation
  $0000008312D00000
  $0000000000518227
  $0000000000518245
  $0000000000518227
  $0000000000518227
  $0000000000518245
  $00000000005181D4
  $000000000051928D
  $00000000005707EE
  $000000000057082E
  $0000000000831342
  $0000000000838462

[ntt@wintermute rs-ux64-2.51]$

This proves the issue is not operating system dependent and since Special Login works properly with your modem, it seems it's specific to the ZTE device. I'm leaning again on failure to parse modem output due to encoding? I managed to get it to connect one more time randomly, telnet data was visible (connection stats and bitloading) but SNR Margin graph was still blank. I'm taking a wild guess that rs-w could not understand the output. I can not think of a way to check what character encoding is used:/


EDIT: The only thing I can find in the shell is the terminal emulation is set to VT102 (According to /proc/self/environ). $LANG is not set.
Title: Re: rs-ux and rs-w v2.5 released
Post by: GigabitEthernet on March 16, 2013, 09:40:26 PM
Eric, I am a bit confused as to why you have included the 'Linksys X3000' as a pre-configured modem, because it doesn't support telnet!

In addition, on the SNRM tweaking page, at least on Linux, the instructions end with 'new'.
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 17, 2013, 10:29:53 AM
Eric, I am a bit confused as to why you have included the 'Linksys X3000' as a pre-configured modem, because it doesn't support telnet!

In addition, on the SNRM tweaking page, at least on Linux, the instructions end with 'new'.

The answer to the first question is very simple - I made a mistake. I'll remove it from the next version.

Your second point is a fonts issue - the fonts on your system are using more vertical space than I expected. I'll increase the space in the next version to deal with this.
Title: Re: rs-ux and rs-w v2.5 released
Post by: GigabitEthernet on March 17, 2013, 10:31:08 AM
Thanks Eric!
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 17, 2013, 10:51:42 AM
Ok this is even stranger:/ As long as I enable the millisecond delay, it fails to logon immediately (<=1sec). No matter what I set the value to. 10000 produces the same result as 100ms. Also with the delay enabled, it doesn't log anything..

That's a result of a handled exception, so it appears that any delay added at that point causes an exception.

Quote
Then I did something else I should have tried sooner as well. I run the Linux 2.51 version on the Fedora box I also use for development. Same results... On exit it also threw an unhandled exception:

Quote
[ntt@wintermute rs-ux64-2.51]$ ./rsux
TLResourceList.Sort 53 DUPLICATE RESOURCE FOUND: TBitchart:PNG
TLResourceList.Sort 54 DUPLICATE RESOURCE FOUND: TBitchart:PNG
TLResourceList.Sort 57 DUPLICATE RESOURCE FOUND: TLinechart:PNG
TLResourceList.Sort 58 DUPLICATE RESOURCE FOUND: TLinechart:PNG
TLResourceList.Sort 60 DUPLICATE RESOURCE FOUND: TLinediagchart:PNG
TLResourceList.Sort 61 DUPLICATE RESOURCE FOUND: TLinediagchart:PNG
An unhandled exception occurred at $0000008312D00000 :
EAccessViolation : Access violation
  $0000008312D00000
  $0000000000518227
  $0000000000518245
  $0000000000518227
  $0000000000518227
  $0000000000518245
  $00000000005181D4
  $000000000051928D
  $00000000005707EE
  $000000000057082E
  $0000000000831342
  $0000000000838462

[ntt@wintermute rs-ux64-2.51]$

This proves the issue is not operating system dependent and since Special Login works properly with your modem, it seems it's specific to the ZTE device. I'm leaning again on failure to parse modem output due to encoding? I managed to get it to connect one more time randomly, telnet data was visible (connection stats and bitloading) but SNR Margin graph was still blank. I'm taking a wild guess that rs-w could not understand the output. I can not think of a way to check what character encoding is used:/


When I run it in Linux 64 from the command line I see the same "DUPLICATE RESOURCE" lines but no other information, so it does appear that the problem is related to the ZTE router. I don't think it's likely to be due to character encoding, because in the last two versions I've removed the checking of the prompts, and I simply wait for a response (any response) from the router before sending the next command. The fact that it sometimes half-works in a random way strongly suggested that it was a timing issue. I think if it was character encoding it wouldn't have this random effect.

Quote
EDIT: The only thing I can find in the shell is the terminal emulation is set to VT102 (According to /proc/self/environ). $LANG is not set.

The only small point that occurs to me is the possibility of the terminal emulation using a different newline sequence, but this seems very unlikely. I'm assuming Unix line endings. As before, I don't think this would have a random effect.

Title: Re: rs-ux and rs-w v2.5 released
Post by: krypton on March 17, 2013, 11:29:28 AM
@Nodens

Do you use a wireless connection?

Does it work if you manually start another telnet server, for example at port 2323, and connect to it:
Code: [Select]
telnetd -p 2323 -l /bin/sh
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 18, 2013, 07:34:04 AM
Ok this is even stranger:/ As long as I enable the millisecond delay, it fails to logon immediately (<=1sec). No matter what I set the value to. 10000 produces the same result as 100ms. Also with the delay enabled, it doesn't log anything..

I've had another look at this, and I've realised that the way in which I implemented the delay may be responsible for this result. The program is multithreaded, and the time delay code that I added broke multithreading rules, so it's not surprising that it threw an exception. I'm still not clear why it works with my router and not yours though, so there's more work to be done.
Title: Re: rs-ux and rs-w v2.5 released
Post by: Nodens on March 18, 2013, 08:17:05 AM
Ok this is even stranger:/ As long as I enable the millisecond delay, it fails to logon immediately (<=1sec). No matter what I set the value to. 10000 produces the same result as 100ms. Also with the delay enabled, it doesn't log anything..

I've had another look at this, and I've realised that the way in which I implemented the delay may be responsible for this result. The program is multithreaded, and the time delay code that I added broke multithreading rules, so it's not surprising that it threw an exception. I'm still not clear why it works with my router and not yours though, so there's more work to be done.

I was just looking for the reason the delay fails in the debugger (by the way rsw.exe 2.55 is not built with symbols either). I noticed a thread calling _SockWaitForSingleObject() and _WSPSelect() that is dying very fast. I could not discern why though as I could not see any exception handler test jumps taken (although it's possible I missed something). I'm glad you figured it out though!

@morphium

I use ethernet connections for everything other than an android device.

For some reason I can't understand, I'm unable to start a new telnetd process:/ I get no error message but no new server starts. I tried several port numbers in case I was hitting ports that were in use by some other process..
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 18, 2013, 10:59:20 PM
I've corrected the time delay code so it remains within the telnet login thread, so it shouldn't throw an exception now. I'm going to make this version a general release tomorrow, because I don't want to delay the fixing of several other little issues. The "special login" section is still definitely experimental.
Title: Re: rs-ux and rs-w v2.5 released
Post by: ryant704 on March 26, 2013, 06:02:20 PM
Is the error reporting for FEC broken or am I actually getting 15, 000+ per min? This leading to 353m in 3 days?
Title: Re: rs-ux and rs-w v2.5 released
Post by: ZeeGy on March 26, 2013, 07:10:02 PM
Is the error reporting for FEC broken or am I actually getting 15, 000+ per min? This leading to 353m in 3 days?

Quite possibly, im getting on average <60CRC's per minute, and no FEC's at all
Title: Re: rs-ux and rs-w v2.5 released
Post by: roseway on March 26, 2013, 07:28:01 PM
Quite possibly, im getting on average <60CRC's per minute, and no FEC's at all

You only get FECs if your connection is interleaved, so yours is probably on fastpath. Interleaved connections always produce quite large numbers of FECs.