在使用hcitool scan --info --oui --class
获取经典的蓝牙设备时,我每次收到的设备名称都不相同。有时设备名称不是人类可读的格式。
为什么会发生这种情况以及如何解决此问题?
hcitool -i hci0 scan --oui --info --class
Scanning ...
BD Address: 5C:49:7D:6E:E3:EF [mode 1, clkoffset 0x272a]
Device name: 0{\��
Device class: Audio/Video, Video Display and Loudspeaker (0x08043c)
sudo hcitool -i hci0 scan --oui --info --class
Scanning ...
BD Address: 5C:49:7D:6E:E3:EF [mode 1, clkoffset 0x272a]
Device name: Pc0�
Device class: Audio/Video, Video Display and Loudspeaker (0x08043c)
sudo hcitool -i hci0 scan --oui --info --class
Scanning ...
BD Address: 5C:49:7D:6E:E3:EF [mode 1, clkoffset 0x272c]
Device name: [TV] Samsung 6 Series (55)
Device class: Audio/Video, Video Display and Loudspeaker (0x08043c)