USB disconnect during ppp connection under linux 2.6.34

13 thoughts on “USB disconnect during ppp connection under linux 2.6.34

  1. Hi,

    We are running the Telit Module
    UC864-G under linux 2.6.34. We discover an usb disconnect and connect
    again after 6 seconds during a ppp connection.

    dmesg relevant log entries

    ————————————————-
    [    2.432258] usb 4-2: new full speed USB device using uhci_hcd and address 2
    [    2.647473] usb 4-2: New USB device found, idVendor=1bc7, idProduct=1004
    [    2.647491] usb 4-2: New USB device strings: Mfr=1, Product=2,
    SerialNumber=4
    [    2.647503] usb 4-2: Product: Telit HSDPA Wireless Modem
    [    2.647512] usb 4-2: Manufacturer: Telit Wireless Solutions
    [    2.647521] usb 4-2: SerialNumber: 000000000002
    [    2.654951] option 4-2:1.0: GSM modem (1-port) converter detected
    [    2.656083] usb 4-2: GSM modem (1-port) converter now attached to ttyUSB0
    [    2.658679] option 4-2:1.1: GSM modem (1-port) converter detected
    [    2.659171] usb 4-2: GSM modem (1-port) converter now attached to ttyUSB1
    [    2.661754] option 4-2:1.2: GSM modem (1-port) converter detected
    [    2.662304] usb 4-2: GSM modem (1-port) converter now attached to ttyUSB2
    [    2.664653] option 4-2:1.3: GSM modem (1-port) converter detected
    [    2.665098] usb 4-2: GSM modem (1-port) converter now attached to ttyUSB3

    [78810.353209] usb 4-2: USB disconnect, address 2
    [78810.355141] option: option_instat_callback: error -108
    [78810.357450] option1 ttyUSB0: GSM modem (1-port) converter now disconnected
    from ttyUSB0
    [78810.357662] option 4-2:1.0: device disconnected
    [78810.358350] option1 ttyUSB1: GSM modem (1-port) converter now disconnected
    from ttyUSB1
    [78810.358446] option 4-2:1.1: device disconnected
    [78810.359456] option1 ttyUSB2: GSM modem (1-port) converter now disconnected
    from ttyUSB2
    [78810.359765] option 4-2:1.2: device disconnected
    [78810.361544] option1 ttyUSB3: GSM modem (1-port) converter now disconnected
    from ttyUSB3
    [78810.361808] option 4-2:1.3: device disconnected
    [78816.328044] usb 4-2: new full speed USB device using uhci_hcd and address 3
    [78816.496330] usb 4-2: New USB device found, idVendor=1bc7, idProduct=1004
    [78816.496433] usb 4-2: New USB device strings: Mfr=1, Product=2,
    SerialNumber=4
    [78816.496528] usb 4-2: Product: Telit HSDPA Wireless Modem
    [78816.496618] usb 4-2: Manufacturer: Telit Wireless Solutions
    [78816.496707] usb 4-2: SerialNumber: 000000000002
    [78816.503639] option 4-2:1.0: GSM modem (1-port) converter detected
    [78816.504205] usb 4-2: GSM modem (1-port) converter now attached to ttyUSB0
    [78816.506545] option 4-2:1.1: GSM modem (1-port) converter detected
    [78816.507017] usb 4-2: GSM modem (1-port) converter now attached to ttyUSB1
    [78816.509607] option 4-2:1.2: GSM modem (1-port) converter detected
    [78816.510029] usb 4-2: GSM modem (1-port) converter now attached to ttyUSB4
    [78816.512669] option 4-2:1.3: GSM modem (1-port) converter detected
    [78816.513127] usb 4-2: GSM modem (1-port) converter now attached to ttyUSB5

     Do you have a solution to fix this issue?

    We are currently testing with a newer kernel 3.1.0. We haven’t any results yet.

    Or is there a patch to solve this issue?

    1. Have you also
      encountered this problem in other normal
      conditions except making the call(i.e. issuing other AT commands)?

       

      We
      additionally need the log data from the Linux kernel

       

      Can you try
      to do some tests on the other OS platform(i.e. on our EVK2) as the
      reference, if possible?


       

          1. No, it doesn’t help.

            do you have the Telit Diagnostic port available?

             

            have you installed correctly the USB drivers for Linux ?

          2. do you have the Telit Diagnostic port available?

            If the /dev/ttyUSB1 is the diagnostic port,Yes.

             

             have you installed correctly the USB drivers for Linux ?

             The USB driver is provided by the linux kernel correctly.

             

            The command AT#REBOOT does exactly the same like we found in the syslog. An USB disconnect and connect.

             

            GSM modem (1-port) converter now disconnected from ttyUSBX

            GSM modem (1-port) converter now attached to ttyUSBX

             Is there a situation you call internally AT#REBOOT, maybe because of an overheating or something else?

             

            Thank you for your support

             

            Sincerely

             

            Christoph Eck

             

             

             

          3. If some of you have the same issue. It is because of the PCI interface. Sometimes it breaks. So that is the reason why it disconnects and connects again.

             

            Thread closed. 

          4. Hello All.

            I am having a similar issue with a UL865 module, but when I went to the link you (Cosmin) mentioned:- http://www.telit.com/en/services/technical-forum/technical-forum.php?p_id=331&f_ac=thread&f_thread=745   I got a 404 Not found.

          5. Thank you Cosmin. I think my issue is different so I will be posting a new thread with more details

          6. Thank you Cosmin. I think my issue is different. First of all I am using a UL865-EUD module which is set in an embedded debian linux environment. The system has two USBs connecting 1) the UMTS module and 2) a battery voltage controller which periodically sends some data to the host cpu. If the battery voltage controller is disconnected, the Telit UL865 connects via GPRS for as long as necessary without the least problem. When I connect the battery voltage controller via USB, the Telit UL865 unregisters (/dev/ttyACM0-6 disappear) for a few seconds and then goes back on. Logging the situation doesn’t seem to help.

            This is the log of modem.

            OK
            AT
            OK
            AT#GPIO=8,0,2
            OK
            AT#SLED=4
            OK
            AT+CPIN?
            +CPIN: READY
             
            OK
            AT
            OK
            AT+CSQ
            +CSQ: 22,3
             
            OK
            AT+CGDCONT=1,”IP”,”internet.wind.biz“,,0,0
            OK
            AT+CGDATA=PPP,1
            CONNECTScript /usr/sbin/chat -E -v -V -S -f pppd.chat-gprs.connect.wind finished (pid 30958), status = 0x0
            Serial connection established.
            using channel 22
            Using interface ppp0
            Connect: ppp0 <–> /dev/modem
            rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbd665e21> <pcomp> <accomp>]
            sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xca93f5b7> <pcomp> <accomp>]
            sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xbd665e21> <pcomp> <accomp>]
            rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xca93f5b7> <pcomp> <accomp>]
            sent [LCP EchoReq id=0x0 magic=0xca93f5b7]
            sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
            sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
            rcvd [LCP EchoRep id=0x0 magic=0xbd665e21]
            rcvd [LCP ProtRej id=0x2 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15]
            Protocol-Reject for ‘Compression Control Protocol’ (0x80fd) received
            sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
            sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
            rcvd [IPCP ConfReq id=0x1]
            sent [IPCP ConfNak id=0x1 <addr 0.0.0.0>]
            rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
            sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
            rcvd [IPCP ConfReq id=0x2 <addr 10.71.210.164>]
            sent [IPCP ConfAck id=0x2 <addr 10.71.210.164>]
            rcvd [IPCP ConfNak id=0x2 <addr 10.71.210.164> <ms-dns1 193.70.152.25> <ms-dns2 212.52.97.25>]
            sent [IPCP ConfReq id=0x3 <addr 10.71.210.164> <ms-dns1 193.70.152.25> <ms-dns2 212.52.97.25>]
            rcvd [IPCP ConfAck id=0x3 <addr 10.71.210.164> <ms-dns1 193.70.152.25> <ms-dns2 212.52.97.25>]
            local  IP address 10.71.210.164
            remote IP address 10.71.210.164
            primary   DNS address 193.70.152.25
            secondary DNS address 212.52.97.25
            Script /etc/ppp/ip-up started (pid 31841)
            Script /etc/ppp/ip-up finished (pid 31841), status = 0x0

            Now the modem is up and connecting. Then, asynchronously (sometimes delay is as long as 43 minutes later), when I execute a “cat” command to read the battery voltage controller,  the modem goes down:-

            Modem hangup
            Connect time 43.1 minutes.
            Sent 950517 bytes, received 444780 bytes.
            Script /etc/ppp/ip-down started (pid 12639)
            Connection terminated.
            Script /etc/ppp/ip-down finished (pid 12639), status = 0x0
            mer  3 mag 2017, 10.05.43, CEST Switching OFF the modem

            It looks like there is some kind of confict between the ttyACM0 and the ttyUSB0. Do you think that this is a possibility? Do you have any suggestions? Thank you 

          7. HI,

            could you please try to issue dmesg –clear, connect first your battery voltage controller, then connect Telit module and issue dmesg.

            What ports are enumerated? 

            Please launch PPPD on /dev/ttyACM0 instead of Connect: ppp0 <–> /dev/modem