* [Bluez-devel] IrMC Sync Profile - OBEX GET is UNAUTHORIZED
@ 2006-09-16 19:21 Scott Meesseman
2006-09-18 6:25 ` Marcel Holtmann
0 siblings, 1 reply; 2+ messages in thread
From: Scott Meesseman @ 2006-09-16 19:21 UTC (permalink / raw)
To: bluez-devel
[-- Attachment #1.1: Type: text/plain, Size: 1311 bytes --]
Hello,
I am currently developing Level4 IrMC Sync for use with Sony Ericsson
phones. Using rfcomm socket, I can start the sync using "IRMC-SYNC"
OBEX TARGET header in the CONNECT request. The server replies with
SUCCESS response code, plus the WHO header ("IRMC-SYNC") and a 4 byte
connection ID. Problem I am having is after connect success when I go
to retrieve a Level4 object, in this instance the changelog
telecom/pb/luid/0.log, the server always reply with 0xC1 (UNAUTHORIZED)
immediately followed by ENDOFBODY header with 21 bytes of non-ascii
data. I am sending the following GET request for this :
BYTE0 0x83 // GET OPCODE w/ final bit set
BYTE1 0x00 // Packet Len MSB
BYTE2 0x36 // Packet Len LSB
BYTE3 0xCB // Connection ID Header Opcode
BYTE4 0x00 // Connection ID MSB
BYTE5 0x00 // Connection ID ...
BYTE6 0x00 // Connection ID ...
BYTE7 0x55 // Connection ID LSB
BYTE8 0x01 // NAME Header Opcode
BYTE9 0x00 // NAME Length MSB
BYTE10 0x2C // NAME Length LSB
BYTE11 - n .... // NULL terminated Unicode string
"telecom/pb/luid/0.log"
If anyone has experience with OBEX GET in this case do you notice
anything wrong with my scenario?
Thanks for any help in advance, it is highly appreciated,
Scott Meesseman
[-- Attachment #1.2: Type: text/html, Size: 12438 bytes --]
[-- Attachment #2: Type: text/plain, Size: 373 bytes --]
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Bluez-devel] IrMC Sync Profile - OBEX GET is UNAUTHORIZED
2006-09-16 19:21 [Bluez-devel] IrMC Sync Profile - OBEX GET is UNAUTHORIZED Scott Meesseman
@ 2006-09-18 6:25 ` Marcel Holtmann
0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2006-09-18 6:25 UTC (permalink / raw)
To: BlueZ development
Hi Scott,
> I am currently developing Level4 IrMC Sync for use with Sony Ericsson
> phones. Using rfcomm socket, I can start the sync using "IRMC-SYNC"
> OBEX TARGET header in the CONNECT request. The server replies with
> SUCCESS response code, plus the WHO header ("IRMC-SYNC") and a 4 byte
> connection ID. Problem I am having is after connect success when I go
> to retrieve a Level4 object, in this instance the changelog
> telecom/pb/luid/0.log, the server always reply with 0xC1
> (UNAUTHORIZED) immediately followed by ENDOFBODY header with 21 bytes
> of non-ascii data. I am sending the following GET request for this :
the BlueZ CVS contains the program btobex in the obex repository. This
might help you testing it. I tried it with a T630 and it gives me the
following output:
# ./btobex pull 00:0F:DE:xx:xx:xx 10 telecom/pb/luid/0.log
SN:354750000279937
DID:7F90
Total-Records:2
Maximum-Records:510
M:4::00001E000000
M:5::00001F000000
H:7::000020000000
Regards
Marcel
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-18 6:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-16 19:21 [Bluez-devel] IrMC Sync Profile - OBEX GET is UNAUTHORIZED Scott Meesseman
2006-09-18 6:25 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox