내 자동차의 데이터를 읽으려고 하는데 값싼 elm327 bt obd2 커넥터를 연결하고 lubuntu를 사용했습니다.
기본적으로는 이렇게 했지만 제대로 작동하지 않아 결국 한 번에 한 명의 전세업자만 볼 수 있고 응답이 없는 버기 터미널이 되었습니다.
먼저 페어링하고 신뢰합니다.
[bluetooth]# pair 00:10:CC:4F:36:03
Attempting to pair with 00:10:CC:4F:36:03
[CHG] Device 00:10:CC:4F:36:03 Connected: yes
Request PIN code
[agent] Enter PIN code: 1234
[CHG] Device 00:10:CC:4F:36:03 UUIDs: 00001101-0000-1000-8000-00805f9b34fb
[CHG] Device 00:10:CC:4F:36:03 ServicesResolved: yes
[CHG] Device 00:10:CC:4F:36:03 Paired: yes
Pairing successful
[CHG] Device 00:10:CC:4F:36:03 ServicesResolved: no
[CHG] Device 00:10:CC:4F:36:03 Connected: no
[CHG] Device 00:10:CC:4F:36:03 Connected: yes
[CHG] Device 00:10:CC:4F:36:03 Connected: no
[CHG] Device 00:10:CC:4F:36:03 Connected: yes
[CHG] Device 00:10:CC:4F:36:03 Connected: no
[CHG] Device 00:10:CC:4F:36:03 Connected: yes
[CHG] Device 00:10:CC:4F:36:03 Connected: no
[CHG] Device 00:10:CC:4F:36:03 Connected: yes
[CHG] Device 00:10:CC:4F:36:03 Connected: no
[CHG] Device 00:10:CC:4F:36:03 Connected: yes
[CHG] Device 00:10:CC:4F:36:03 Connected: no
[NEW] Device 3C:5D:2A:64:34:DD 3C-5D-2A-64-34-DD
[CHG] Device 00:10:CC:4F:36:03 Connected: yes
[CHG] Device 00:10:CC:4F:36:03 Connected: no
[NEW] Device 48:CA:AB:30:69:81 48-CA-AB-30-69-81
[CHG] Device 00:10:CC:4F:36:03 RSSI: -51
[CHG] Device 00:10:CC:4F:36:03 RSSI: -40
[DEL] Device 48:CA:AB:30:69:81 48-CA-AB-30-69-81
[CHG] Device 00:10:CC:4F:36:03 Connected: yes
[CHG] Device 00:10:CC:4F:36:03 Connected: no
[DEL] Device 3C:5D:2A:64:34:DD 3C-5D-2A-64-34-DD
[CHG] Device 00:10:CC:4F:36:03 RSSI: -54
[bluetooth]# info 00:10:CC:4F:36:03
Device 00:10:CC:4F:36:03 (public)
Name: OBDII
Alias: OBDII
Paired: yes
Trusted: no
Blocked: no
Connected: no
LegacyPairing: no
UUID: Serial Port (00001101-0000-1000-8000-00805f9b34fb)
ManufacturerData Key: 0x0100
ManufacturerData Value:
03 36 4f cc 10 00 .6O...
ManufacturerData Key: 0x7262
ManufacturerData Value:
32 32 78 78 11 22 33 44 55 66 aa bb 00 00 22xx."3DUf....
RSSI: -54
[bluetooth]# trust 00:10:CC:4F:36:03
[CHG] Device 00:10:CC:4F:36:03 Trusted: yes
Changing 00:10:CC:4F:36:03 trust succeeded
그런 다음 rfcomm을 사용하여 직렬 연결을 설정하고 sdptool을 실행하여 어느 채널에 있는지 확인하고 다음을 실행합니다.
user@user-20n20009pg:~$ sdptool records 00:10:CC:4F:36:03
Service Name: JL_SPP
Service RecHandle: 0x10004
Service Class ID List:
"Serial Port" (0x1101)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 2
Profile Descriptor List:
"Serial Port" (0x1101)
Version: 0x0102
user@user-20n20009pg:~$ sudo rfcomm connect /dev/rfcomm0 00:10:CC:4F:36:03 2 &
[1] 1583
user@user-20n20009pg:~$ Connected /dev/rfcomm0 to 00:10:CC:4F:36:03 on channel 2
Press CTRL-C for hangup
화면 연결을 사용하면 작동하는 것처럼 보이지만 한 문자만 표시됩니다.
user@user-20n20009pg:~$ sudo screen /dev/rfcomm0 38400
그런 다음 다른 터미널에서 열리고 다음이 수행됩니다.
>a
전체 atz 명령을 작성할 수 없는 것 같습니다. 한 번에 한 문자만 표시됩니다.
내가 뭘 놓쳤는지 아세요?