Home/Support/Support Forum/How to set baudrate of USB Serial Gadget to 115,2 kBit/s?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

How to set baudrate of USB Serial Gadget to 115,2 kBit/s?

0 votes
Activating USB OTG by entering "$modprobe g_serial" adds the device /dev/ttyGS0 on ConnectCore 6 SBC (running the firmware "2.0-r3 ccimx6sbc"). Linux/Windows PCs can connect to that USB Serial gadget BUT the baudrate is 9600 bits/s only.

"$stty -F /dev/ttyGS0 9600" works, but it cannot be changed to another baudrate.

Any ideas? Thanks,
Oliver.
asked Aug 21, 2016 in USB Serial by olkae New to the Community (3 points)

Please log in or register to answer this question.

1 Answer

0 votes
I had a bug in my code (sent less binary data than expected). Also 115,2 kBit/s do work out of the box:

Open ttyACM0 on host machine:
$ minicom -D /dev/ttyACM0 -b 115200

Transmit data to the host machine, on target board:
$ echo "hi" > /dev/ttyGS0
answered Sep 12, 2016 by olkae New to the Community (3 points)
edited Sep 12, 2016 by olkae
...