Users Guide

2. MYSERVER MYCLIENT 페어링 준비
$ sudo bluez.bluetoothctl -a
[bluetoothctl]# power on
[bluetooth]# discoverable on
[bluetooth]# scan on
[NEW] Device XX:XX:XX:XX:XX:XX MYCLIENT
[bluetooth]# scan off
3. 서로 페어링합니다. Bluetooth V2.1 기준으로, SSP(Secure Simple Pairing) 수행해야 하며 Dell Gateway 3000 시리즈에 해당되
디바이스에 대해 가지 페어링 방법이 제공됩니다.
Just Works(바로 작동)
Numeric Comparison(숫자 비교)
Passkey Entry(패스키 입력)
노트: Blueetooth 페어링에 대한 자세한 정보는 https://blog.bluetooth.com/bluetooth-pairing-part-4 참조하십시오.
[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
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 명령은 명령에서 사용할 없습니다. 필요한 경우, Ubuntu 16.04 이상을 실행하는 AMD64 기반 시스템에서
Edge Gateway 바이너리를 복사할 있습니다.
직렬 포트
기본적으로 RS-232, RS-422 RS-485 LED 상태는 OFF(꺼짐) 상태입니다. 데이터가 전송 중일 때만 ON(켜짐) 상태가 됩니다.
바이스 노드는 왼쪽의 포트(RS232)부터 시작해서 포트 위치 순으로 정렬됩니다.
14. 직렬 포트
번호 포트 유형 디바이스 노드 제조업체 Part Number
1 RS-232
RS-422
RS-485
COM3 JVE Global
23N6963-10D00B-15G-2.9
http://www.jve.com.cn/
56 운영 체제 설정