There was a thread about this sometime ago. I'll try to look for it later. Note that, for the workarround above, you might get into troubles if you do have several equal usb modems.
Each modem will have its own sim with -maybe- different carrier/service/plan/etc. With the above procedure, you will remap any one of the removed modems to the next recognized device and if you do get to remove two or more.... you might finish sending messages through the wrong modem. As said above, there was thread that provides a way through a script to remap an specific usb device to an specific usb port. I didn't tested that solution but looked to be the right solution. Hope helps Regards Alvaro |-----------------------------------------------------------------------------------------------------------------| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.NET www.smsglobal.com.mx y www.pravcom.com On Thu, Jun 11, 2009 at 9:25 AM, Milan P. Stanic<m...@arvanta.net> wrote: > On Fri, 2009-06-12 at 02:07, Dennis Low Weng Kin wrote: >> Can you give me some guidance and link to accomplish what you've just >> mentioned? > > I don't have that for modem/phone or kannel but here is what I use for > mounting mp4 player (line from /etc/udev/rules.d/local.rules): > SUBSYSTEMS=="scsi", ATTRS{model}=="Chip PMP USBDISK", NAME="katmp1", > GROUP="plugdev", RUN+="/usr/local/sbin/mount_kat1.sh" > > and the "/usr/local/sbin/mount_kat1.sh" script is really simple: > #!/bin/sh > /bin/mount -o group=plugdev /dev/katmp1 /media/katmp > > That's just idea. I hope you know the rest. > >> > Date: Thu, 11 Jun 2009 12:59:36 +0200 >> > From: m...@arvanta.net >> > To: users@kannel.org >> > Subject: Re: Unplugging USB GSM Modem and replugging >> > On Thu, 2009-06-11 at 11:25, seikath wrote: >> > > i know udev rule is not reliable, because its executed at boot time >> > > again, >> > > parse the dmesg each time you start/stop kannel , reset proper simlink >> > > and use cronted monitoring script to check the kannel state and >> > > according to the state to use the start/stop srcipt >> > udev rules can be configured to execute scripts/program when the udev >> > receive notification from kernel. Script can restart kannel when it >> > detects that USB modem connected. >> > > Dennis Low Weng Kin wrote: >> > >> Thanks for you immediate reply. >> > >> >> > >> So you are saying that I should detect the device name and change the >> > >> device name in the kannel config accordingly? >> > >> >> > >> I've tried to write a udev rule to map the usb port to use the port >> > >> name "/dev/GSMMODEM". It works well at first. When I unplug the modem, >> > >> and replug it in, Kannel stop working. When I restart the kannel >> > >> service, I receive a kernel failure notification. Any suggestions >> > >> again? > [...] >> See all the ways you can stay connected to friends and family >> http://www.microsoft.com/windows/windowslive/default.aspx > > Why that advertisment here? > > -- > Kind regards, Milan > >