disconnect of usb2serial causes frameworkd to break connection to gsm-modem

2010-02-16 Thread Peter Kornatowski

Hi,

I use frameworkd for the control of my GSM-modem (Siemens MC45T), 
which is connected to my debian-system through a FTDI 
usb2serial-converter. The problem I have is that the 
usb2serial-converter sometimes randomly disconnects and immediately 
reconnects (probably a USB-problem, but I haven't been able to fix 
this). I made a udev-rule so that there is always the same /dev/ 
simlink for the usb2serial-converter (but the real link switches from 
/dev/ttyUSB0 to USB1). Now after the reconnect I loose control over 
the gsm-modem through frameworkd (although an open call remains still 
active). The log of frameworkd is then spamming something like 0 
bytes received (I can attach the log if wished). Restarting 
frameworkd and re-initialising the modem through the dbus-api makes 
it work again, but an active call is lost because RequestResource has 
to be called again (and this makes the modem reconnect to the 
provider). When I control the gsm-modem through minicom, then after 
the usb2serial-reconnect the gsm-modem remains fully controllable 
without any kind of reopening/reconnecting/restarting of minicom.


Best regards, Peter


___
Smartphones-userland mailing list
Smartphones-userland@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland


Re: disconnect of usb2serial causes frameworkd to break connection to gsm-modem

2010-02-16 Thread Timo Juhani Lindfors
Peter Kornatowski pk...@gmx.net writes:
 without any kind of reopening/reconnecting/restarting of minicom.

Minicom probably automatically tries to reopen the serial device:

/* check if device is ok, if not, try to open it */
if (!get_device_status(portfd_connected)) {
  if (open_term(0, 0)  0) {
if (!error_on_open_window)
  error_on_open_window = mc_tell(_(Cannot open %s!), dial_tty);
  } else {
if (error_on_open_window) {
  mc_wclose(error_on_open_window, 1);
  error_on_open_window = NULL;
}
  }
}


Can you verify this by running

strace -p $(pidof minicom)

from another terminal during unplug/replug?

___
Smartphones-userland mailing list
Smartphones-userland@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland