Response from bluetooth OBEX connect request is HTTP Not Acceptable

367 Views Asked by At

I'm using nObex on Windows to create a Obex connection to an android phone over bluetooth. As library I'm using nObex https://github.com/nccgroup/nOBEX AF_BLUETOOTH is under windows not available, whereas I'm using pybluez to create the connection.

Authentication works fine, on the phone I have to accept that I get access to the file system. When I'm trying to create the OBEX connection:

b'\x80\x00\x0e\x10\x00\xff\xffF\x00\x071106'
|opcode for connect = 0x80| length = 0x000e|obex version = 0x10 = 16| flags = 0x00| max obex message length = 0xffff| length header = 0x0007| profile = 1106

I'm getting the following response:

b'\xc6\x00\x0c\x10\x00\xff\xfe\xcb\x00\x00\x00\x01'
\xc6 = 198 is the flag for "HTTP Not Acceptable" 

Does anybody understands, why I'm not able to get a connection?

1

There are 1 best solutions below

0
MartinM On

For MAP and FTP Profiles the target ID must be added. I used for this the UUID which is wrong. The target ID for the Message Access service (MAS) can be found in the MAP document (https://www.academia.edu/32372957/MESSAGE_ACCESS_PROFILE) on page 64