Data Events with % character in data.text
GarColl
Junior Member
Hi
Im currently programmig a Duet Module where i need the % character is used in a similar way as for instance the ^RMF command to pass parameters.
Now i have some strange things happening! When is send a command "%A", i receive the value 0X1.0E99800000017P-1020 in the data listener of the duet module. When i send the command %S, the controller reboots (new NX-2200 ) or hangs (NI-2100) with java router not going back to 0 when i do 'show buffers' in telnet (what is the java router for anyway? is it messages that could not be sent yet to the java modules?).
Can i do something against this? Why is it happenign at all?
I attached a workspace with a little demo-source and the java file from the duet module inclued in 'Other', just go to controll a device and send a command or a string to 41001:1:1.
Thanks for your help
Im currently programmig a Duet Module where i need the % character is used in a similar way as for instance the ^RMF command to pass parameters.
Now i have some strange things happening! When is send a command "%A", i receive the value 0X1.0E99800000017P-1020 in the data listener of the duet module. When i send the command %S, the controller reboots (new NX-2200 ) or hangs (NI-2100) with java router not going back to 0 when i do 'show buffers' in telnet (what is the java router for anyway? is it messages that could not be sent yet to the java modules?).
Can i do something against this? Why is it happenign at all?
I attached a workspace with a little demo-source and the java file from the duet module inclued in 'Other', just go to controll a device and send a command or a string to 41001:1:1.
Thanks for your help
Comments
-
Yes, I have seen this too. Sometimes it causes the master to reboot. I chased my tail for a day trying to figure out why my module locked up solid. It was because of log debug statements, I wish it was just the url encoded escape characters (%20), but it's not.
My module was locking up after an hour or so, so after ripping apart my code. I decided to test with DEBUG-1, and it was rock solid. -
It looks like the problem was my system.out.println() in the data event. I am guessing that the mehtod takes its string as a regular expression where some % are expecting a value after (similar to FORMAT). I didnt look into it further though. Probably the debug also does nothing else than some println...
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums