Netlinx stops sending UDP data at $00 (hex)
MorgoZ
Junior Member
Hello,
i´m trying to send a hexadecimal command through UDP port with Netlinx, and it seems that Netlinx stops sending data when it reaches a $00
For example:
I open the UDP port:
ip_client_open(dvCamaraVisca.PORT,'192.168.1.54',52381,IP_UDP_2WAY)
and then send the string
send_string dvCamaraVisca,"$01,$00,$00,$06,$00,$00,$00,$01,$81,$01,$04,$00,$03,$FF"
At the "Diagnostics" i can see that the master just sends $01
And if i try with other command like "$81,$09,$04,$00,$FF", it sends $81,$09,$04
Why?
Thanks for your help!!
i´m trying to send a hexadecimal command through UDP port with Netlinx, and it seems that Netlinx stops sending data when it reaches a $00
For example:
I open the UDP port:
ip_client_open(dvCamaraVisca.PORT,'192.168.1.54',52381,IP_UDP_2WAY)
and then send the string
send_string dvCamaraVisca,"$01,$00,$00,$06,$00,$00,$00,$01,$81,$01,$04,$00,$03,$FF"
At the "Diagnostics" i can see that the master just sends $01
And if i try with other command like "$81,$09,$04,$00,$FF", it sends $81,$09,$04
Why?
Thanks for your help!!
Comments
-
This is a well known problem with the Diagnostics tool. It cuts off strings at the null byte. Your program is probably sending the right thing, you just won't be able to read it all in Diagnostics.
-
One work around for the SEND_STRING 0 null lop off is to send to a virtual device instead and then monitor the strings for that virtual device in Notifications. The data will show up correctly within Notifications.
-
I'll stick to what I have always done, telnet! Working since before NetLinx diagnostics existed!
-
Ok, many thanks for all your of your answers!!
-
There's also a Hex_Debug function that will convert your hex string to its ascii representation for printing to diagnostics.
-
Netlinx has never much like zeros in general.
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
