All of lore.kernel.org
 help / color / mirror / Atom feed
* Bluetooth printer connection error
@ 2020-12-08 21:25 Laurent Vivier
  2020-12-09 11:00 ` Bastien Nocera
  0 siblings, 1 reply; 9+ messages in thread
From: Laurent Vivier @ 2020-12-08 21:25 UTC (permalink / raw)
  To: linux-bluetooth

Hi,

TL;DR:

I can pair my bluetooth printer but it fails to connect:

  $ bluetoothctl connect DC:0D:30:90:23:C7

  Attempting to connect to DC:0D:30:90:23:C7
  [CHG] Device DC:0D:30:90:23:C7 Connected: yes
  [CHG] Device DC:0D:30:90:23:C7 ServicesResolved: yes
  Failed to connect: org.bluez.Error.NotAvailable

What do I need to add to my system to have this working?





----------------------------------------------------------------------
The full story:

I cannot connect my bluetooth printer using "bluetoothctl connect" (I'm
testing with git commitid b446ed8e8).

1. Start the bluetooth printer
2. bluetoothctl devices

Device DC:0D:30:90:23:C7 Mr.in_M02
...

3. bluetoothctl info DC:0D:30:90:23:C7

Device DC:0D:30:90:23:C7 (public)
        Name: Mr.in_M02
        Alias: Mr.in_M02
        Class: 0x00040680
        Icon: printer
        Paired: no
        Trusted: no
        Blocked: no
        Connected: no
        LegacyPairing: yes
        RSSI: -81

4. bluetoothctl pair DC:0D:30:90:23:C7

Attempting to pair with DC:0D:30:90:23:C7
[CHG] Device DC:0D:30:90:23:C7 Connected: yes
[CHG] Device DC:0D:30:90:23:C7 UUIDs: 00001101-0000-1000-8000-00805f9b34fb
[CHG] Device DC:0D:30:90:23:C7 ServicesResolved: yes
[CHG] Device DC:0D:30:90:23:C7 Paired: yes
Pairing successful

5. bluetoothctl info DC:0D:30:90:23:C7

Device DC:0D:30:90:23:C7 (public)
        Name: Mr.in_M02
        Alias: Mr.in_M02
        Class: 0x00040680
        Icon: printer
        Paired: yes
        Trusted: no
        Blocked: no
        Connected: no
        LegacyPairing: yes
        UUID: Serial Port
(00001101-0000-1000-8000-00805f9b34fb)


6. bluetoothctl paired-devices

Device DC:0D:30:90:23:C7 Mr.in_M02

7. bluetoothctl connect DC:0D:30:90:23:C7

Attempting to connect to DC:0D:30:90:23:C7
[CHG] Device DC:0D:30:90:23:C7 Connected: yes
[CHG] Device DC:0D:30:90:23:C7 ServicesResolved: yes
Failed to connect: org.bluez.Error.NotAvailable

If I use hcitool/rfcomm I can send data to the printer. It works fine in
this case.

$ hcitool scan
Scanning ...
        DC:0D:30:90:23:C7       Mr.in_M02

$ sdptool  browse DC:0D:30:90:23:C7
Browsing DC:0D:30:90:23:C7 ...

$ sdptool records DC:0D:30:90:23:C7
Service Name: SPP Dev
Service RecHandle: 0x10001
Service Class ID List:
  "Serial Port" (0x1101)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 1
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100

^C [the command hangs here]

$ sudo rfcomm connect 0 DC:0D:30:90:23:C7
Connected /dev/rfcomm0 to DC:0D:30:90:23:C7 on channel 1
Press CTRL-C for hangup

Thanks,
Lauren

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-12-10  9:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-08 21:25 Bluetooth printer connection error Laurent Vivier
2020-12-09 11:00 ` Bastien Nocera
2020-12-09 11:14   ` Laurent Vivier
2020-12-09 11:34     ` Bastien Nocera
2020-12-09 19:04       ` Laurent Vivier
2020-12-09 20:27         ` Bastien Nocera
2020-12-09 21:45           ` Laurent Vivier
2020-12-10  9:35             ` Bastien Nocera
2020-12-10  9:41               ` Laurent Vivier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.