T
T
Tesla4o2019-11-12 21:57:32
linux
Tesla4o, 2019-11-12 21:57:32

How do two programs communicate through the USB port?

There are two systems, ubuntu (PC) and the second OpenWRT (single board computer). it is necessary to send data from the second to the first via USB, that is, data from the program is read on the device and sent to the port. I decided that Python would be a simple language for this task. Previously, I didn’t have to work with usb transfer, so I don’t even know where to dig. A large string will be sent to the port. Any help is greatly appreciated!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Aleksandrov, 2019-11-12
@jamakasi666

If you have never dealt with USB, then you can immediately forget this idea in principle, especially with python, do not especially write drivers like hardware.
Your option is the banal USB-RS232 adapters of which there are tons, the only thing is to look for those that "out of the box" will work with regular Linux firewood without shamanism. And you can communicate in lines \ bytes in any languages, and even with hundreds of thousands of manuals.

R
Radjah, 2019-11-13
@Radjah

Google about HID, for example. There are no additional drivers needed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question