MODULA AUTOPATCH
AMX Leb
Junior Member
Hello guys,
when i'm trying to parse the string feedback on strings event i'm getting something very strange , first i'm using the apweb module to convert the communication protocol from serial to ip as i'm using ip communication ,for ex when i sent a simple command like "CLI1O1:32T" i'm getting the right response or feedback but every single char separated consecutively not a single line or phrase(FIRST RESPONSE : C, SECOND RESPONSE:L, THIRD RESPONSE:I... ), knowing that i did not start parsing yet ,just i'm listening to the "data.text" even i tried a buffer and i got the same result....any help will be appreciated.
Thanks & Best Regards,
when i'm trying to parse the string feedback on strings event i'm getting something very strange , first i'm using the apweb module to convert the communication protocol from serial to ip as i'm using ip communication ,for ex when i sent a simple command like "CLI1O1:32T" i'm getting the right response or feedback but every single char separated consecutively not a single line or phrase(FIRST RESPONSE : C, SECOND RESPONSE:L, THIRD RESPONSE:I... ), knowing that i did not start parsing yet ,just i'm listening to the "data.text" even i tried a buffer and i got the same result....any help will be appreciated.
Thanks & Best Regards,
Comments
-
Hello guys,
when i'm trying to parse the string feedback on strings event i'm getting something very strange , first i'm using the apweb module to convert the communication protocol from serial to ip as i'm using ip communication ,for ex when i sent a simple command like "CLI1O1:32T" i'm getting the right response or feedback but every single char separated consecutively not a single line or phrase(FIRST RESPONSE : C, SECOND RESPONSE:L, THIRD RESPONSE:I... ), knowing that i did not start parsing yet ,just i'm listening to the "data.text" even i tried a buffer and i got the same result....any help will be appreciated.
Thanks & Best Regards,
Your obviously getting an event firing because the length of time between one charactor and the next in rs232 and one and another in IP is a veritable epoch.
You'll need to build the buffer as chars come in and wait for the end of the string to come in before parsing. It's pretty common for this to happen.
Leave a Comment
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