위드로봇 블루투스 모듈 myBluetooth
$ sdptool record 00:07:7F:41:42:16
Service Name: Dev B
Service RecHandle: 0x10000
Service Class ID List:
"Serial Port" (0x1101)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
$ sudo rfcomm bind /dev/rfcomm0 00:07:7F:41:42:16
====== lightblue. python-way ======
>>> import lightblue as lb
>>> lb.finddevices()
[('60:D0:A9:31:17:D4', 'SPH-W7700(88**)', 5898756), ('00:07:7F:41:42:16', 'myBluetooth-EX', 7936)]
>>> lb.findservices('00:07:7F:41:42:16')
[('00:07:7F:41:42:16', 1, 'Dev B')]
>>> s.connect(('00:07:7F:41:42:16', 1))
>>> s.send("#MFF\xff\xff")
5
[[http://lightblue.sourceforge.net/|lightblue offcial site]]
*[[http://techblog.textcube.com/102|]]
cat /dev/rfcomm0 | head
이때 비번 물어봄 0000