Users Guide

Table Of Contents
ליפורפ האיצי תירוט לש Bluetooth )SPP(
תוחנה רובע תובותכ MAC לכל םאתמ BT:
BT MAC(MYCLIENT): XX:XX:XX:XX:XX:XX
BT MAC(MYSERVER): YY:YY:YY:YY:YY:YY
1.תושירד תומידקמ.
#sudo apt-get install bluez bluez-tools
2.ןנוכתה ךוישל MYSERVER ו-MYCLIENT.
#sudo bluetoothctl
[bluetoothctl]# power on
[bluetooth]# discoverable on
[bluetooth]# scan on
[NEW] Device XX:XX:XX:XX:XX:XX MYCLIENT
[bluetooth]# scan off
3.ךייש הז הזל.
]bluetooth #[agent on
[bluetooth]# default-agent
[bluetooth]# pairable on
[bluetooth]# pair XX:XX:XX:XX:XX:XX <MAC Address of Device to Pair>
[bluetooth]# connect XX:XX:XX:XX:XX:XX [CHG] Device XX:XX:XX:XX:XX:XX Connected: yes
[bluetooth]# exit
המודב הסרגל v2.1 לש Bluetooth ,SPP עיצמ שולש תוטיש ךוישל םינקתה תויטנוולרש ל-Edge Gateway:
Just Works
Numeric Comparison
Passkey Entry
הרעה תלבקל עדימ ףסונ לע ךויש Bluetooth ,האר blog.bluetooth.com/bluetooth-pairing-part-4.
4.עבק תא תרוצת SPP.
ןקתה תרש
#bluez.sdptool add --channel=22 SP
# ./rfcomm -r listen /dev/rfcomm0 22
Waiting for connection on channel 22
Connection from XX:XX:XX:XX:XX:XX to /dev/rfcomm0 <These lines will be seen when client
comes>
Press CTRL-C for hangup
רחאל ןכמ ,רוצ עפומ ףוסמ שדח ידכ ןנסל תא םינותנה ךרד האיצי תירוט לש Bluetooth.
$cat /dev/rfcomm0
ןקתה חוקל
#bluez.sdptool add --channel=22 SP
# ./rfcomm -r connect /dev/rfcomm0 YY:YY:YY:YY:YY:YY 22
רחאל ןכמ ,רוצ עפומ ףוסמ שדח ידכ חולשל םינותנ ,המגודל ,עפומ שדח לש ssh.
#echo "test" > /dev/rfcomm0
הרעה rfcomm הניא הנימז הדוקפב וז .םא שרדנ ,ךתורשפאב קיתעהל תא יראניבה ל-Edge Gateway תכרעממ תססובמ AMD64 תדיוצמש
תכרעמב הלעפה Ubuntu16.04 ךליאו.
82תרדגה תכרעמ הלעפהה