Problem in IR transfer from Motorola MPx220

Help
Nisheeth
2005-02-11
2013-05-01
  • Nisheeth
    Nisheeth
    2005-02-11

    I am using IRCP over Openobex library to transfer files over IR to my linux desktop (fedora core 2). I am able to successfully transfer files from WinXP laptop and Palm Treo 650 and some other phone also. I am having trouble in transferring files from Motorola MPx220 phone which runs Windows Mobile 2003. After some debuggin I found that the problem is after accepting the connection from client Open obex recieves data indication. But the length of msg is 0. But due to the code below, it still tries to read 3 bytes, but could not read any data and gives an error, ultimately giving Link error to Ircp.
    File: obex_main.c
    Function: obex_data_indication

        /* First we need 3 bytes to be able to know how much data to read */
        if(msg->len < 3)  {
            actual = obex_transport_read(self, 3 - (msg->len), buf, buflen);
           
            DEBUG(4, "Got %d bytes\n", actual);

            /* Check if we are still connected */
            if (actual <= 0)    {
                obex_deliver_event(self, OBEX_EV_LINKERR, 0, 0, TRUE);
                return actual;
            }
            buf += actual;
            buflen -= actual;
            g_netbuf_put(msg, actual);
        }

    Can anyone help me how to get Open obex work with Windows mobile 2003.

    Thanks,
    Nisheeth

     
    • Nisheeth
      Nisheeth
      2005-02-11

      I also get "Failed to bind to device" error on the phone.