Skip to contentSkip to conversation

Printer adapter w/o SDP

Bluez-users Michael Albinus 2 participants 7 messages Jul 18, 2004 – Jul 26, 2004 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hello,

I have a bt printer adapter with a broken SDP:

magdalene:~# sdptool browse
Inquiring ...
Browsing 00:0C:55:00:B2:B4 ...
Service Name: BrightCom SPP print Server
Service RecHandle: 0x4f4a0001
Service Class ID List:
  "Error: This is uuid32" (0x00001101)
Protocol Descriptor List:
  "Error: " (0x00000100)
  "Error: " (0x00000003)
    uint8: 0x1
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
  code_ISO639: 0x6672
  encoding:    0x6a
  base_offset: 0x110

Service Name: BrightCom OPP Server
Service RecHandle: 0x4f4a0002
Service Class ID List:
"Error: This is uuid32" (0x00001105)
Protocol Descriptor List:
"Error: " (0x00000100)
"Error: " (0x00000003)

    uint8: 0x2

"Error: " (0x00000008)
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
code_ISO639: 0x6672
encoding: 0x6a
base_offset: 0x110
Profile Descriptor List:
"Error: This is uuid32" (0x00001105)

    Version: 0x0100

It is bound via serial protocol:

magdalene:~# rfcomm
rfcomm0: 00:0C:55:00:B2:B4 channel 1 clean 

But I'm unable to use it as CUPS printer ("Can't get service information"). The CUPS URI is "bluetooth://000C5500B2B4/spp".

Is there a way to bind it to CUPS without SDP? I hoped specifying the protocol in the URI would be sufficient.

Best regards, Michael.

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#1 lore raw

Hi Michael,

Quoted 39 lines

I have a bt printer adapter with a broken SDP:

magdalene:~# sdptool browse
Inquiring ...
Browsing 00:0C:55:00:B2:B4 ...
Service Name: BrightCom SPP print Server
Service RecHandle: 0x4f4a0001
Service Class ID List:
  "Error: This is uuid32" (0x00001101)
Protocol Descriptor List:
  "Error: " (0x00000100)
  "Error: " (0x00000003)
    uint8: 0x1
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
  code_ISO639: 0x6672
  encoding:    0x6a
  base_offset: 0x110

Service Name: BrightCom OPP Server
Service RecHandle: 0x4f4a0002
Service Class ID List:
"Error: This is uuid32" (0x00001105)
Protocol Descriptor List:
"Error: " (0x00000100)
"Error: " (0x00000003)

    uint8: 0x2

"Error: " (0x00000008)
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
code_ISO639: 0x6672
encoding: 0x6a
base_offset: 0x110
Profile Descriptor List:
"Error: This is uuid32" (0x00001105)

Quoted 1 line
    Version: 0x0100

this is not broken SDP. They use UUID32 which is fine, but actually not quite the normal way.

What libs and utils versions are you using?

Quoted 4 lines

It is bound via serial protocol:

magdalene:~# rfcomm
rfcomm0: 00:0C:55:00:B2:B4 channel 1 clean 

Who said that this needed?

Quoted 5 lines

But I'm unable to use it as CUPS printer ("Can't get service information"). The CUPS URI is "bluetooth://000C5500B2B4/spp".

Is there a way to bind it to CUPS without SDP? I hoped specifying the protocol in the URI would be sufficient.

No, because you still need to get the RFCOMM channel number.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#2 lore raw
Quoted 1 line · Marcel Holtmann

Hi Michael,

Hi,

Quoted 4 lines

this is not broken SDP. They use UUID32 which is fine, but actually not quite the normal way.

What libs and utils versions are you using?

magdalene:~> uname -a
Linux magdalene 2.6.7-mh1 #1 Sun Jul 4 11:32:11 CEST 2004 i686 GNU/Linux

magdalene:~> apt-cache policy bluez-cups bluez-utils libbluetooth1 bluez-cups:
Installed: 2.8-1
bluez-utils:
Installed: 2.8-1
libbluetooth1:
Installed: 2.8-1

Quoted 4 lines
Quoted 2 lines
magdalene:~# rfcomm
rfcomm0: 00:0C:55:00:B2:B4 channel 1 clean 

Who said that this needed?

Nobody. I simply tried this.

Quoted 3 lines

Regards

Marcel

Best regards, Michael.

maintainer
#3 lore raw

Hi Michael,

Quoted 8 lines
Quoted 4 lines

this is not broken SDP. They use UUID32 which is fine, but actually not quite the normal way.

What libs and utils versions are you using?

magdalene:~> uname -a
Linux magdalene 2.6.7-mh1 #1 Sun Jul 4 11:32:11 CEST 2004 i686 GNU/Linux

Quoted 7 lines

magdalene:~> apt-cache policy bluez-cups bluez-utils libbluetooth1 bluez-cups:
Installed: 2.8-1
bluez-utils:
Installed: 2.8-1
libbluetooth1:
Installed: 2.8-1

so everything is as new as possible. Seems we must fix the code to work correct with UUID32. Where do you got this printer adapter? Looks like I have to buy one of them or is there a sponsor out there?

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#4 lore raw
Quoted 1 line · Marcel Holtmann

Hi Michael,

Hi Marcel,

Quoted 3 lines

so everything is as new as possible. Seems we must fix the code to work correct with UUID32. Where do you got this printer adapter? Looks like I have to buy one of them or is there a sponsor out there?

It's a cheap Typhoon device
<http://www.anubisline.com/english/articlec.asp?id=20005&catid=200>,
bought at ebay. I'll donate it to you; no problem to get another one. Could you, please, provide me a postal address?

Quoted 3 lines

Regards

Marcel

Best regards, Michael.

maintainer
#5 lore raw

Hi Michael,

Quoted 8 lines
Quoted 3 lines

so everything is as new as possible. Seems we must fix the code to work correct with UUID32. Where do you got this printer adapter? Looks like I have to buy one of them or is there a sponsor out there?

It's a cheap Typhoon device
<http://www.anubisline.com/english/articlec.asp?id=20005&catid=200>,
bought at ebay. I'll donate it to you; no problem to get another one. Could you, please, provide me a postal address?

thanks for the device. It was a bug in the SDP part of the Bluetooth library. The funny thing is that it was able to work with UUID128 and UUID16, but it seems that actually nobody used UUID32 for protocol identifiers before. The fix for that is in the CVS now.

Besides using UUID32 which is really stupid, but allowed, this devices uses an unallowed manufacturer id. It is an end user product ;)

# hcitool info 00:0C:xx:xx:xx:xx
Requesting information ...
        BD Address:  00:0C:xx:xx:xx:xx
        Device Name: PCR HCRP SPP OPP
        LMP Version: 1.1 (0x1) LMP Subversion: 0x904
        Manufacturer: internal use (65535)
        Features: 0xff 0xfa 0x05 0x00 0x00 0x00 0x00 0x00
                <3-slot packets> <5-slot packets> <encryption> <slot offset> 
                <timing accuracy> <role switch> <hold mode> <sniff mode> 
                <RSSI> <SCO link> <HV2 packets> <HV3 packets> <u-law log> 
                <A-law log> <CVSD> <power control> 

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#6 lore raw
Quoted 1 line · Marcel Holtmann

Hi Michael,

Hi Marcel,

Quoted 4 lines

thanks for the device. It was a bug in the SDP part of the Bluetooth library. The funny thing is that it was able to work with UUID128 and UUID16, but it seems that actually nobody used UUID32 for protocol identifiers before. The fix for that is in the CVS now.

Thanx for the fix. I'll check it next days.

Quoted 3 lines

Regards

Marcel

Best regards. Michael.