0
我想在我的手机中使用python(pys60)进行编程。 我使用双向使用蓝牙控制台 第一我的Ubuntu 10.10连接到我的电话是: 加的sdptool = --channel 2 SP 用mknod的/ dev/rfcomm0ç216 0 RFCOMM听0 2 第二是:连接pys60蓝牙控制台
hciconfig reset hcitool dev sdptool add --channel=2 SP rfcomm listen rfcomm2 2
第一和第二工作方式以及用于连接的MyPhone ,所以我得到这个在我的Ubuntu终端
Connection from 00:1D:FD:91:1A:EA to /dev/rfcomm2 Press CTRL-C for hangup
的问题是,我不能进入手机上的蟒蛇壳从我的终端。 当我使用
cu -l /dev/rfcomm2
我所得到的是
cu: /dev/rfcomm2: Line in use
,所以我尝试使用
screen /dev/rfcomm2
但我仍然未能
Cannot open line '/dev/rfcomm2' for R/W: Device or resource busy Sorry, could not find PTY. [screen is terminating]
希望有人能告诉如何解决问题他,每次我想测试脚本时,将* .py移动到手机上都很麻烦。
我试过了命令,请再看看我的问题:) – 2011-09-22 19:36:14