embyt / hid2tcp

provides access to a USB HID device via a TCP port
GNU General Public License v3.0
1 stars 0 forks source link

output was unintelligible with netcat #1

Open Simplefred opened 1 year ago

Simplefred commented 1 year ago

There was an issue with sending utf-8 to the socket. The format of the format of the packet from the USB HID was still in the usage id. Adding the dictionary from the following git project: https://gist.github.com/not-inept/3219ca6e56d62594c1be9e6f0c6067af

and type casting the string to bytes also helped.

Also set the bind address to 0.0.0.0.

Simplefred commented 1 year ago

I fixed it. would you like me to share it?

romor commented 1 year ago

Thanks for contributing. Sure, please paste/link your changes or do a pull request.

However, I am not sure whether I already understand this topic. I use this library to transfer binary data (packets from an RF receiver), where its binary content shall not be translated or stringified.