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

tymerahir

New Member
Joined
Jun 27, 2020
Messages
6
Reaction score
9
Credits
43
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
 


I found solution:

Bash:
sudo socat -d -d -x /dev/ttyGS0,raw,echo=0,b115200 /dev/ttyS1,raw,echo=0,b115200
 
Glad you got a solution, and thanks for sharing. :)

Wiz
 

Members online


Latest posts

Top