You are not logged in.
I'd wish to read scanned barcodes in a python script. That is why I don't want to use HID mode and use Serial Port Profile Mode instead.
I am using command line: bluetoothctl
I have tried to disable BT Security Mode in the barcode scanner.
When trying to pair (I tried different agents) this is what I do:
[bluetooth]# agent off
Agent unregistered
[bluetooth]# agent KeyboardOnly
Agent registered
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# pairable on
Changing pairable on succeeded
[bluetooth]# scan on
Discovery started
[CHG] Controller 14:4F:8A:30:DF:AD Discovering: yes
[CHG] Device 00:07:BE:1C:40:C4 LegacyPairing: yes
[CHG] Device 00:07:BE:1C:40:C4 RSSI: -59
[bluetooth]# pair 00:07:BE:1C:40:C4
Attempting to pair with 00:07:BE:1C:40:C4
[CHG] Device 00:07:BE:1C:40:C4 Connected: yes
Request PIN code
[agent] Enter PIN code: 1234
Failed to pair: org.bluez.Error.AuthenticationRejected
[CHG] Device 00:07:BE:1C:40:C4 Connected: no
[CHG] Device 00:07:BE:1C:40:C4 RSSI: -51
For "Enter PIN code:" prompt, I am not sure what to do:
1. a code using the computer keyboard that is the default PIN code of the bluetooth device,
2. or a code that later on needs to be scanned with the bluetooth scanner,
3. or should I scan the default PIN code
?
Any hints how to pair a bluetooth barcode scanner in serial mode?
---
[bluetooth]# info 00:07:BE:1C:40:C4
Device 00:07:BE:1C:40:C4 (public)
Name: QuickScan-i-QBT2131 E17C07052
Alias: QuickScan-i-QBT2131 E17C07052
Class: 0x00180000
Paired: no
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: yes
Last edited by probackup-nl (2018-12-17 22:20:59)
Offline