From: <luc...@bi...> - 2003-12-07 14:13:20
|
Hello, I'm trying to get the phone book using: obexftp-0.10.3 based on openobex-1.0.1 from a solaris 2.8 workstation through a serial cable. Unfortunately I'm experiencing some problems: obexftp -d /dev/ttyb -t ericsson -g telecom/pb.vcf Custom transport set to 'Old/Ericsson' => obexftp_cli_open() Do the cable-OBEX! => obexftp_cli_connect() Connecting...IrOBEX_TransportConnect(): obex_transport_connect_request(): Custom connect cobex_pe_connect() cobex_pe_init() cobex_do_at_cmd() Sending 5: ATZ cobex_do_at_cmd() Sizeof 100 Comm-error or already in OBEX mode obex_transport_connect_request(): ret=-1 OBEX_TransportConnect(): obex_transport_connect_request(): Custom connect cobex_pe_connect() cobex_pe_init() cobex_do_at_cmd() Sending 5: ATZ cobex_do_at_cmd() Sizeof 100 cobex_do_at_cmd() tmpbuf=2: AT cobex_do_at_cmd() tmpbuf=4: ATZ cobex_do_at_cmd() tmpbuf=10: ATZ OK cobex_do_at_cmd() Answer: OK cobex_do_at_cmd() Answer: OK cobex_do_at_cmd() Answer size=2 cobex_do_at_cmd() Sending 10: AT*EOBEX cobex_do_at_cmd() Sizeof 100 cobex_do_at_cmd() tmpbuf=2: AT cobex_do_at_cmd() tmpbuf=9: AT*EOBEX cobex_do_at_cmd() tmpbuf=14: AT*EOBEX CON cobex_do_at_cmd() tmpbuf=20: AT*EOBEX CONNECT cobex_do_at_cmd() Answer: cobex_do_at_cmd() Answer: CONNECT cobex_do_at_cmd() Answer size=7 obex_transport_connect_request(): ret=1 obex_object_setrsp(): obex_object_setcmd(): 00 obex_insert_connectframe(): obex_object_addheader(): obex_object_addheader(): Fit one packet! obex_object_addheader(): BS header size 16 insert_byte_stream_header(): => cli_sync_request() OBEX_Request(): obex_client(): obex_client(): STATE_START obex_object_send(): obex_object_send(): Adding 4 bytes of non-headerdata obex_object_send(): 4 obex_object_send(): Adding non-body header obex_object_send(): Sending package with opcode 128 obex_data_request(): len = 26 bytes obex_transport_write(): obex_transport_write(): Custom write cobex_pe_write() cobex_pe_write() Data 26 bytes => obexftp_sync() OBEX_HandleInput(): cobex_pe_handleinput() There is something (1) cobex_pe_handleinput() Read 26 bytes obex_data_indication(): obex_transport_read(): Request to read max 3 bytes obex_data_indication(): Got 3 bytes obex_transport_read(): Request to read max 23 bytes obex_data_indication(): Got 23 bytes msg len=26 obex_client(): obex_client(): STATE_REC obex_client(): We expect a connect-rsp obex_parse_connect_header(): obex_parse_connect_header(): Len: 26 obex_parse_connect_header(): version=10 obex_parse_connect_header(): requested MTU=200, used MTU=200 obex_object_receive(): obex_object_receive(): Command has 4 bytes non-headerdata obex_object_receive(): Header: 4a obex_object_receive(): Copying 16 bytes obex_object_receive(): Pulling 19 bytes obex_client(): Done! Rsp=20! => cli_obex_event() => client_done() obex_object_getnextheader(): client_done() Sender identified obex_object_getnextheader(): obex_object_delete(): free_headerq(): free_headerq(): obexftp_sync() OBEX_HandleInput = 1 obexftp_sync() Done success=1 done => obexftp_get() Receiving telecom/pb.vcf... => setpath() => obexftp_setpath() Sending telecom... obexftp_setpath() Changing to telecom Sending telecom... obex_object_setrsp(): obex_object_setcmd(): 05 OBEX_CharToUnicode(): obex_object_addheader(): obex_object_addheader(): Unicode header size 16 insert_unicode_header(): => cli_sync_request() OBEX_Request(): obex_client(): obex_client(): STATE_START obex_object_send(): obex_object_send(): Adding 2 bytes of non-headerdata obex_object_send(): 4 obex_object_send(): Adding non-body header obex_object_send(): Sending package with opcode 133 obex_data_request(): len = 24 bytes obex_transport_write(): obex_transport_write(): Custom write cobex_pe_write() cobex_pe_write() Data 24 bytes => obexftp_sync() OBEX_HandleInput(): cobex_pe_handleinput() There is something (1) cobex_pe_handleinput() Read 24 bytes OBEX_CustomDataFeed(): obex_data_indication(): obex_transport_read(): Request to read max 3 bytes obex_data_indication(): Got 3 bytes obex_transport_read(): Request to read max 21 bytes obex_data_indication(): Got 21 bytes msg len=24 obex_client(): obex_client(): STATE_REC obex_object_receive(): obex_object_receive(): Header: 00 obex_object_receive(): Header 0 to big. HSize=-2 Buffer=21 => cli_obex_event() cli_obex_event() Unknown event 5 obex_object_delete(): free_headerq(): free_headerq(): free_headerq(): obexftp_sync() OBEX_HandleInput = 1 OBEX_HandleInput(): cobex_pe_handleinput() There is something (0) obexftp_sync() OBEX_HandleInput = 0 failed: telecom obexftp_get() Getting pb.vcf -> pb.vcf obex_object_setrsp(): obex_object_setcmd(): 03 OBEX_CharToUnicode(): obex_object_addheader(): obex_object_addheader(): Unicode header size 14 insert_unicode_header(): => cli_sync_request() OBEX_Request(): obex_client(): obex_client(): STATE_START obex_object_send(): obex_object_send(): 4 obex_object_send(): Adding non-body header obex_object_send(): Sending package with opcode 131 obex_data_request(): len = 20 bytes obex_transport_write(): obex_transport_write(): Custom write cobex_pe_write() cobex_pe_write() Data 20 bytes => obexftp_sync() OBEX_HandleInput(): cobex_pe_handleinput() There is something (1) cobex_pe_handleinput() Read 3 bytes OBEX_CustomDataFeed(): obex_data_indication(): obex_transport_read(): Request to read max 3 bytes obex_data_indication(): Got 3 bytes obex_data_indication(): Got 0 bytes msg len=3 obex_client(): obex_client(): STATE_REC obex_object_receive(): obex_client(): Done! Rsp=44! => cli_obex_event() => client_done() obex_object_getnextheader(): obex_object_delete(): free_headerq(): free_headerq(): free_headerq(): obexftp_sync() OBEX_HandleInput = 1 obexftp_sync() Done success=0 => obexftp_setpath() Sending up... obexftp_setpath() Changing to up obex_object_setrsp(): obex_object_setcmd(): 05 => cli_sync_request() OBEX_Request(): obex_client(): obex_client(): STATE_START obex_object_send(): obex_object_send(): Adding 2 bytes of non-headerdata obex_object_send(): 4 obex_object_send(): Sending package with opcode 133 obex_data_request(): len = 5 bytes obex_transport_write(): obex_transport_write(): Custom write cobex_pe_write() cobex_pe_write() Data 5 bytes => obexftp_sync() OBEX_HandleInput(): cobex_pe_handleinput() There is something (1) cobex_pe_handleinput() Read 5 bytes OBEX_CustomDataFeed(): obex_data_indication(): obex_transport_read(): Request to read max 3 bytes obex_data_indication(): Got 3 bytes obex_transport_read(): Request to read max 2 bytes obex_data_indication(): Got 2 bytes msg len=5 obex_client(): obex_client(): STATE_REC obex_object_receive(): obex_object_receive(): Header: 01 obex_object_receive(): Header 1 to big. HSize=-2 Buffer=2 => cli_obex_event() cli_obex_event() Unknown event 5 obex_object_delete(): free_headerq(): free_headerq(): free_headerq(): obexftp_sync() OBEX_HandleInput = 1 OBEX_HandleInput(): cobex_pe_handleinput() There is something (0) obexftp_sync() OBEX_HandleInput = 0 failed: Segmentation fault The 'Segmentation fault' is probably due to a debug printout... I'm wondering more about 'cli_obex_event() Unknown event 5'... Sending file to the mobile works well (tryied with .gif and .imy). Any ideas? Thanks. Luca. -- Phone details: IMEI : XXXXXXXXXXXXXXX Manufacturer : ERICSSON Model : 1130202-BVT68 Revision : R8A015 CXC125324 |