-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Hello! thank you for making this codes.
I tested 5 devices (android 3, iphone 2). however when i used pbapclient.py, i had problem.
When i tested with iphone, *.vcf file was created well. but every vcf files didn't contained contents
However when i tested in android, i got this error.
Traceback (most recent call last):
File "examples/pbapclient.py", line 134, in <module>
sys.exit(main(sys.argv))
File "examples/pbapclient.py", line 111, in main
dump_dir(c, prefix+"telecom/pb", dest_dir+prefix+"telecom/pb")
File "examples/pbapclient.py", line 60, in dump_dir
hdrs, cards = c.get(src_path, header_list=[headers.Type(b'x-bt/vcard-listing')])
File "/usr/local/lib/python3.6/dist-packages/nOBEX/client.py", line 296, in get
raise OBEXError(response)
nOBEX.common.OBEXError: UnknownResponse(code=0xC6, data=b'\xcb\x00\x00\x00\x01'
To solve this error, I added print code for debug. the error is as below.
[DEBUG][request] Connect(data=(16, 0, 65535))
[DEBUG][request raw] b'\x80\x00\x1a\x10\x00\xff\xffF\x00\x13ya5\xf0\xf0\xc5\x11\xd8\tf\x08\x00 \x0c\x9af'
[DEBUG][request] Get(data=())
[DEBUG][request raw] b'\x83\x007\xcb\x00\x00\x00\x01\x01\x00\x19\x00t\x00e\x00l\x00e\x00c\x00o\x00m\x00/\x00p\x00b\x00\x00B\x00\x16x-bt/vcard-listing\x00'
[DEBUG][response] UnknownResponse(code=0xC6, data=b'\xcb\x00\x00\x00\x01'
i guess second response has problem. but i don't know detailed structure about "PBAP protocol" and code. plz tell me how to solve this problem. I want to run this code at iphone and android.
Metadata
Metadata
Assignees
Labels
No labels