S
S
Stanislav Vakhnov2015-01-05 10:33:32
linux
Stanislav Vakhnov, 2015-01-05 10:33:32

How to forward a virtual COM port over the Internet?

There was a need for remote use of the microcontroller.
The point is. There is a board on STM32F407. uart connected on ft232r. USB output. Need to make it work remotely. The controller communicates through its internal commands. There is also a cubieboard with debian and a connected GPRS modem. I connect usb to the cubieboard and through minicom I can easily communicate with the microcontroller. The question is the following. How can I forward a virtual serial port over the Internet so that I can feed it to software under windows at the other end. Windows requires a virtual COM port. Forwarding USB lacks neither the speed nor the reliability of the channel.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Eddy_Em, 2015-01-05
@Eddy_Em

Yes, elementary, at least on two 407s: we open sockets on them and communicate through these sockets; and on USB we hang CDC. As a result, the computer "sees" it as a virtual port.
And you can, without further ado, buy a regular USB "extension cable" via UTP. As a result, the effect will be as if the piece of iron is directly connected to the computer via USB1.1

S
Stanislav Vakhnov, 2015-01-05
@stasbug

An extension cord via cable is not suitable due to the fact that the connection will be via GPRS.
The device itself is not mine. I cannot make changes to it.
when I connect it to debian, it is immediately defined as a virtual com port.
it’s just this virtual port that I need to pass through the GPRS channel to the Internet, and there it’s already on a remote server on which it spins in a WINDOWS virtual machine with software that should access this virtual COM port.

A
atimonin, 2015-01-14
@atimonin

socat should help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question