Hi We have been trying "USB driver for GSM modems" (option), and although we have found it quite useful, we are facing some problems when using second port (the pppd hangs up).
While we continue studying the problem, we have reduced the problem to the minimum in order to ask you if the behaviour is known or we are doing something wrong. Test: - linux-2.6.18 (also 2.6.15 and 2.6.17) - pppd 2.4.4 - Huawei E620 (also Option GT 3G Quad) - We start pppd (do not send the options unless you want to), and begin a constant ping through ppp0. - We execute "cat /dev/ttyUSB2 &" so that we can read the data sent in the second port. Everything is OK. - When we kill the cat, the pppd hangups. (We have written an specific C program to test the exact point, and the line that produces the hangup is the close of the file descriptor obtained for /dev/ttyUSB2). Debugging the driver, we can see: Jan 10 05:49:55 (none) user.debug kernel: drivers/usb/serial/option.c: option_instat_callback Jan 10 05:49:55 (none) user.debug kernel: drivers/usb/serial/option.c: option_instat_callback: urb c0f011a0 port c093a200 has data c02d8000 Jan 10 05:49:55 (none) user.debug kernel: drivers/usb/serial/option.c: option_instat_callback: signal x2 Jan 10 05:49:55 (none) daemon.info pppd[631]: Hangup (SIGHUP) Jan 10 05:49:55 (none) daemon.notice pppd[631]: Modem hangup Jan 10 05:49:55 (none) daemon.info pppd[631]: Connect time 0.8 minutes. Jan 10 05:49:55 (none) daemon.info pppd[631]: Sent 3604 bytes, received 3360 bytes. Jan 10 05:49:55 (none) daemon.debug pppd[631]: Script /var/etc/ppp/ip-down started (pid 987) Jan 10 05:49:55 (none) daemon.notice pppd[631]: Connection terminated. Jan 10 05:49:55 (none) user.info root: ip-down: Disconnecting Jan 10 05:49:55 (none) user.info root: ip-down: Bytes Sent.......3604 Jan 10 05:49:55 (none) user.info root: ip-down: Bytes Received...3360 Jan 10 05:49:55 (none) user.info root: ip-down: Connect Time.....47 Jan 10 05:49:55 (none) user.info servicesd: servicesd: Stopping "all" So it seems to us that the tty_hangup in option_instant_callback of the second port produces a hangup in the first one. We have found that option_instat_callback is being called (for ttyUSB0, because this interface is the only one that has an interrupt endpoint). Any suggestions? Thanks Miguel Ángel Álvarez ----------------------------------------- PLEASE NOTE ------------------------------------------- This message, along with any attachments, may be confidential or legally privileged. It is intended only for the named person(s), who is/are the only authorized recipients. If this message has reached you in error, kindly destroy it without review and notify the sender immediately. Thank you for your help. ZIV uses virus scanning software but excludes any liability for viruses contained in any attachment. ------------------------------------ ROGAMOS LEA ESTE TEXTO ------------------------------- Este mensaje y sus anexos pueden contener información confidencial y/o con derecho legal. Está dirigido únicamente a la/s persona/s o entidad/es reseñadas como único destinatario autorizado. Si este mensaje le hubiera llegado por error, por favor elimínelo sin revisarlo ni reenviarlo y notifíquelo inmediatamente al remitente. Gracias por su colaboración. ZIV utiliza software antivirus, pero no se hace responsable de los virus contenidos en los ficheros anexos. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
