Bluetooth printer connection error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux