Websocket send bin data through serial
Posted: Sat Jun 21, 2014 2:23 am
Hi,
my question is about the use of websocket to send binary data through airconsole to my serial connected equipment.
I'm trying the websockets_sdk/airconsole.html (airconsole.js) , and I checked through Docklight that when sending the following data:
"7E 00 0E 00 07 FF 00 07 00 00 01 00 21 CB 34 02 3C 7F"
through the command textbox, Docklight shows that I'm receiving an ASCII string.
How could I find a way to send that binary data above through the provided demo, eventually modifying the js code? are there any option I could try to change?
PS: that string is a custom command that I'm using to start a connection with my custom device, it answers me with an ack value.
Thank you
Best Regards
my question is about the use of websocket to send binary data through airconsole to my serial connected equipment.
I'm trying the websockets_sdk/airconsole.html (airconsole.js) , and I checked through Docklight that when sending the following data:
"7E 00 0E 00 07 FF 00 07 00 00 01 00 21 CB 34 02 3C 7F"
through the command textbox, Docklight shows that I'm receiving an ASCII string.
How could I find a way to send that binary data above through the provided demo, eventually modifying the js code? are there any option I could try to change?
PS: that string is a custom command that I'm using to start a connection with my custom device, it answers me with an ack value.
Thank you
Best Regards