我要执行以下操作,以便使用socat将蓝牙串行数据转发到本地TCP端口或从本地TCP端口转发:
1)sudo rfcomm bind 0 00:04:3E:4C:61:E5 1
2)socat tcp-l:5760,reuseaddr open:/dev/rfcomm0,raw,nonblock,echo=0,b115200
但是,如果我尝试在启动时使用/etc/bluetooth/rfcomm.conf做同样的事情:
rfcomm0 {
# Automatically bind the device at startup
bind yes;
# Bluetooth address of the device
device 00:04:3E:4C:61:E5;
# RFCOMM channel for the connection
channel 1;
# Description of the connection
comment "Crossfire serial port";
}
...未创建/ dev / rfcomm0设备,因此对socat的调用不起作用。有什么想法吗?