/ dev / rfcomm0仅在手动绑定时设置

我要执行以下操作,以便使用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的调用不起作用。有什么想法吗?

sx8382 回答:/ dev / rfcomm0仅在手动绑定时设置

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3149004.html

大家都在问