[Solved] Redirect BT hci (/dev/ttyS1) to usb (/dev/ttyGS0)

tymerahir

New Member
Joined
Jun 27, 2020
Messages
5
Reaction score
5
Credits
37
Hello.

How to redirect the HCI interface from Bluetooth to USB (I use usb_gadget)?

I have an SBC on which there is a Bluetooth module (available as /dev/ttyS1).
I would like to be able to control it (using the HCI interface) from another device via the USB of this SBC.
I need to redirect communication to a USB port (/dev/ttyGS0).

How to do something like this in Linux?

Regards
 


OP
T

tymerahir

New Member
Joined
Jun 27, 2020
Messages
5
Reaction score
5
Credits
37
I found solution:

Bash:
sudo socat -d -d -x /dev/ttyGS0,raw,echo=0,b115200 /dev/ttyS1,raw,echo=0,b115200
 

wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
7,298
Reaction score
6,195
Credits
24,880
Glad you got a solution, and thanks for sharing. :)

Wiz
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Latest posts

Top