Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 向rfcomm终端发送消息?_Linux_Bluetooth - Fatal编程技术网

Linux 向rfcomm终端发送消息?

Linux 向rfcomm终端发送消息?,linux,bluetooth,Linux,Bluetooth,我通过蓝牙在使用gumstix的客户端和linux上的服务器之间建立了连接。 这就是我对服务器所做的: ftph-user@ftph-9818:~$ hcitool dev Devices: hci0 B0:10:41:BA:BF:26 ftph-user@ftph-9818:~$ rfcomm watch /dev/rfcomm0 3 /sbin/agetty rfcomm0 115200 linux Waiting for connection on channel 3 Connec

我通过蓝牙在使用gumstix的客户端和linux上的服务器之间建立了连接。 这就是我对服务器所做的:

ftph-user@ftph-9818:~$ hcitool dev
Devices:
hci0    B0:10:41:BA:BF:26
ftph-user@ftph-9818:~$ rfcomm watch /dev/rfcomm0 3 /sbin/agetty rfcomm0 115200 linux

Waiting for connection on channel 3
Connection from 00:03:19:50:2A:FB to /dev/rfcomm0
Press CTRL-C for hangup
在客户机上:

root@ftph-9817-gbt:~$ rfcomm connect /dev/rfcomm0 B0:10:41:BA:BF:26 3
Connected /dev/rfcomm0 to B0:10:41:BA:BF:26 on channel 3
Press CTRL-C for hangup
>

我想要的是能够在客户机上打字,在服务器上阅读,也能执行一些脚本,取而代之的是一个空白屏幕

有什么想法吗

致以最良好的祝愿,
Leo

我试图使用虚拟蓝牙COM端口从Windows连接到Linux,并将数据从Windows机器发送到Linux机器。为了做到这一点,我在与Linux上的蓝牙适配器配对/连接后,在Windows上设置了一个虚拟COM端口。然后,我使用了以下命令:

    sudo rfcomm watch /dev/rfcomm0 <chan> screen /dev/rfcomm0 115200
就你而言,陈是3岁

您可以使用apt get install screen安装屏幕

然后在Windows上,我连接到绑定到Linux机器的传出虚拟COM端口。这将在Linux机器上启动屏幕串行端口控制台。然后,我可以在Windows串行端口程序上输入,并在Linux上的屏幕控制台上看到反映的字符