At 18:33 16-11-08, you wrote: >Hi John, > >Am 16.11.2008 um 12:22 schrieb John Frankish: > > > Although I can mount a SE P1i file system over bluetooth using > > openobex-1.3, obexftp-0.23, obexfs-0.11 and fuse-2.7.4 with a 2.6.26 > > kernel, I cannot mount the file system from the same device using > > irda. > >There are two different protocols here, either IrDA by itself or using >an teletype socket. This corresponds to the switches "-i" (with >implicit target) or "-t dev". >Debugging a plain tty connection can be done with any terminal >program, like the full featured minicom or even e.g. screen (I use >screen mostly). Your phone should respond to simple AT-style commands >like "AT". > >For debbuging s.a. http://dev.zuckschwerdt.org/openobex/wiki/ObexDevelopment > >"Remove any old installation of OpenOBEX and ObexFTP, first. Then get >a fresh download of OpenOBEX and unpack it. Run a configure, make and >install now: >CFLAGS="-DOBEX_DEBUG=4 -DOBEX_DUMP=2" ./configure make clean ; make ; >make install >For obexftp it's > >CFLAGS="-DOBEXFTP_DEBUG=5" ./configure make clean ; make ; make install >OpenOBEX uses debug levels 1-4 and additional dump levels 1 (tx only) >and 2 (tx + rx). ObexFTP uses debug levels 1-5 where level 5 enables >packet dumping." > >regards, >Christian >------------------------------------------------------------------------- Christian,
Thanks for the suggestions - I compiled the debug versions of openobex-1.4 and obexftp-0.23 (alpha) and tried two cases, the first with FIR/irda0 and the second with SIR/ircomm0. It looks like the SE P1i and Dell Latitude D400 are talking at each other, but probably not understanding each other... Debug output below John ----------- $ sudo setserial /dev/ttyS1 uart none $ sudo modprobe smsc-ircc2 ircc_irq=3 ircc_dma=3 ircc_sir=0x2f8 ircc_fir=0x280 $ sudo irattach irda0 -s $ obexftp -i -v -l obexftp_open() obexftp_connect_src() Connecting...IrOBEX_TransportConnect(): irobex_connect_request(): obex_create_socket(): irobex_discover_devices(): Discovered 1 devices : irobex_discover_devices(): [1] name: P1i, daddr: 0xbf6eb037irobex_discover_devices(): irobex_connect_request(): transport mtu=2039 obexftp_connect_src() IR 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(): do_write(): sending 26 bytes \obexftp_sync() OBEX_HandleInput(): obex_transport_handle_input(): obex_transport_handle_input(): Data available on client socket 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 4 bytes obex_data_indication(): Got 4 bytes msg len=7 Rx: C4 00 07 10 00 07 FD obex_client(): obex_client(): STATE_REC obex_client(): We expect a connect-rsp obex_parse_connect_header(): obex_object_receive(): obex_object_receive(): Command has 4 bytes non-headerdata obex_client(): Done! Rsp=44! cli_obex_event() OBEX_EV_REQDONE: obex_rsp=44 client_done() obex_object_getnextheader(): obex_object_delete(): free_headerq(): free_headerq(): free_headerq(): obexftp_sync() OBEX_HandleInput = 7 obexftp_sync() Done success=0 failed: send UUID error on connect(): Success Still trying to connect obexftp_connect_src() Connecting...IrOBEX_TransportConnect(): obexftp_connect_src() IR 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(): do_write(): sending 26 bytes |obexftp_sync() OBEX_HandleInput(): obex_transport_handle_input(): obex_transport_handle_input(): Data available on client socket 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 4 bytes obex_data_indication(): Got 4 bytes msg len=7 Rx: C4 00 07 10 00 07 FD obex_client(): obex_client(): STATE_REC obex_client(): We expect a connect-rsp obex_parse_connect_header(): obex_object_receive(): obex_object_receive(): Command has 4 bytes non-headerdata obex_client(): Done! Rsp=44! cli_obex_event() OBEX_EV_REQDONE: obex_rsp=44 client_done() obex_object_getnextheader(): obex_object_delete(): free_headerq(): free_headerq(): free_headerq(): obexftp_sync() OBEX_HandleInput = 7 obexftp_sync() Done success=0 failed: send UUID error on connect(): Success Still trying to connect obexftp_connect_src() Connecting...IrOBEX_TransportConnect(): obexftp_connect_src() IR 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(): do_write(): sending 26 bytes /obexftp_sync() OBEX_HandleInput(): obex_transport_handle_input(): obex_transport_handle_input(): Data available on client socket 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 4 bytes obex_data_indication(): Got 4 bytes msg len=7 Rx: C4 00 07 10 00 07 FD obex_client(): obex_client(): STATE_REC obex_client(): We expect a connect-rsp obex_parse_connect_header(): obex_object_receive(): obex_object_receive(): Command has 4 bytes non-headerdata obex_client(): Done! Rsp=44! cli_obex_event() OBEX_EV_REQDONE: obex_rsp=44 client_done() obex_object_getnextheader(): obex_object_delete(): free_headerq(): free_headerq(): free_headerq(): obexftp_sync() OBEX_HandleInput = 7 obexftp_sync() Done sucobexftpcess=0 failed: send UUID error on connect(): Success Still trying to connect obexftp_close() irobex_disconnect_request(): obex_delete_socket(): irobex_disconnect_server(): obex_delete_socket(): OBEX_FreeInterfaces(): ------------ $ sudo modprobe ircomm-tty $ obexftp -t /dev/ircomm0 -v -l Do you really want to use IrDA via ttys? obexftp_open() obexftp_connect_src() Connecting...OBEX_TransportConnect(): obex_transport_connect_request(): Custom connect cobex_connect() bfb_io_open() Checking for transparent OBEX mode Write ok, reading back bfb_io_read() No data (timeout: 2) do_at_cmd() Sending 4: ATZ do_at_cmd() tmpbuf=4: ATZ do_at_cmd() tmpbuf=10: ATZ OK do_at_cmd() Answer (size=2): OK do_at_cmd() Sending 7: AT+GMI do_at_cmd() tmpbuf=7: AT+GMI do_at_cmd() tmpbuf=24: AT+GMI Sony Ericsson do_at_cmd() tmpbuf=30: AT+GMI Sony Ericsson OK do_at_cmd() Answer (size=13): Sony Ericsson OK AT+GMI: Sony Ericsson Ericsson detected do_at_cmd() Sending 9: AT*EOBEX do_at_cmd() tmpbuf=9: AT*EOBEX do_at_cmd() tmpbuf=18: AT*EOBEX ERROR do_at_cmd() Answer (size=5): ERROR Error doing AT*EOBEX (ERROR) bfb_io_close() cobex_connect() bfb_io_open returned -1, -1209240512 obex_transport_connect_request(): ret=-1 obexftp_connect_src() TC -1 failed: connect error on connect(): Success Still trying to connect obexftp_connect_src() Connecting...OBEX_TransportConnect(): obex_transport_connect_request(): Custom connect cobex_connect() bfb_io_open() Checking for transparent OBEX mode Write ok, reading back bfb_io_read() No data (timeout: 2) do_at_cmd() Sending 4: ATZ do_at_cmd() tmpbuf=4: ATZ do_at_cmd() tmpbuf=10: ATZ OK do_at_cmd() Answer (size=2): OK do_at_cmd() Sending 7: AT+GMI do_at_cmd() tmpbuf=7: AT+GMI do_at_cmd() tmpbuf=24: AT+GMI Sony Ericsson do_at_cmd() tmpbuf=30: AT+GMI Sony Ericsson OK do_at_cmd() Answer (size=13): Sony Ericsson OK AT+GMI: Sony Ericsson Ericsson detected do_at_cmd() Sending 9: AT*EOBEX do_at_cmd() tmpbuf=9: AT*EOBEX do_at_cmd() tmpbuf=18: AT*EOBEX ERROR do_at_cmd() Answer (size=5): ERROR Error doing AT*EOBEX (ERROR) bfb_io_close() cobex_connect() bfb_io_open returned -1, -1209240512 obex_transport_connect_request(): ret=-1 obexftp_connect_src() TC -1 failed: connect error on connect(): Success Still trying to connect obexftp_connect_src() Connecting...OBEX_TransportConnect(): obex_transport_connect_request(): Custom connect cobex_connect() bfb_io_open() Checking for transparent OBEX mode Write ok, reading back bfb_io_read() No data (timeout: 2) do_at_cmd() Sending 4: ATZ do_at_cmd() tmpbuf=4: ATZ do_at_cmd() tmpbuf=10: ATZ OK do_at_cmd() Answer (size=2): OK do_at_cmd() Sending 7: AT+GMI do_at_cmd() tmpbuf=7: AT+GMI do_at_cmd() tmpbuf=24: AT+GMI Sony Ericsson do_at_cmd() tmpbuf=30: AT+GMI Sony Ericsson OK do_at_cmd() Answer (size=13): Sony Ericsson OK AT+GMI: Sony Ericsson Ericsson detected do_at_cmd() Sending 9: AT*EOBEX do_at_cmd() tmpbuf=9: AT*EOBEX do_at_cmd() tmpbuf=18: AT*EOBEX ERROR do_at_cmd() Answer (size=5): ERROR Error doing AT*EOBEX (ERROR) bfb_io_close() cobex_connect() bfb_io_open returned -1, -1209240512 obex_transport_connect_request(): ret=-1 obexftp_connect_src() TC -1 failed: connect error on connect(): Success Still trying to connect obexftp_close() obex_transport_disconnect_request(): Custom disconnect cobex_disconnect() obex_transport_disconnect_server(): Custom disconnect OBEX_FreeInterfaces(): ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Openobex-users mailing list [email protected] http://lists.sourceforge.net/lists/listinfo/openobex-users
