我通过蓝牙在使用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我想要的是能够在客户端打字和在服务器上阅读,执行一些脚本,而不是我所有的都是一个空白屏幕。
有什么想法吗?
致以最好的问候,狮子座
发布于 2015-09-19 12:04:52
我试图使用虚拟(蓝牙) COM端口从Windows连接到Linux,并将数据从windows机器发送到Linux机器。为此,我在配对/连接到Linux上的蓝牙适配器后,在Windows上设置了一个虚拟COM端口。然后,我使用了以下命令:
sudo rfcomm watch /dev/rfcomm0 <chan> screen /dev/rfcomm0 115200在你的例子中,chan是3。
您可以使用apt-get install screen安装screen。
然后在Windows上,我连接到与Linux机器绑定的传出虚拟COM端口。这将在Linux机器上启动屏幕串行端口控制台。然后,我可以在Windows串行端口程序上输入,并在Linux的屏幕控制台上看到反映出来的字符。
https://stackoverflow.com/questions/26377691
复制相似问题