Hi,
just a tip: look how udev or devfs works.
With either one or other you should be able to get persistant names für
your modems.
Thanks,
Alex
Am 16.08.2006, 11:41 Uhr, schrieb fred <[EMAIL PROTECTED]>:
perhaps this is not strictly a kannel question...YET!!
but this is a developers list, and other people writing C code on linux
are
here.
In case you haven't got it yet, the way kannel modems are currently
configured,
by the device name, ie /dev/ttyUSB00 for example....
now if you have many modems, and you happen to take one out, the usb
devices
re-enumerate themselves.
so the modem now that you have may no longer be the GSM for vodafone, for
example, but telstra....
kannel restarted and your screwed.......your now sending sms via telstra
at
double the cost!!
this is NOT what you want, because...
Eg
..............
group = smsc
smsc = at
smsc-id = 001
...........
group = sendsms-user
username = vodafone
password = bar
forced-smsc = 001
so when sending to the vodafone modem, we are forcing the routing to
smsc-id
= 001.
this is perfectly acceptable with serial com ports and multi-com ports
like
stallion etc,
because the com ports do not change...unless you physically swap cables.
but with usb, this is no longer reliable.
So I am attempting to come up with a solution where
group = smsc
smsc = at
smsc-id = 001
modemserial = 10202020 ( or whatever...something that identifies the
particular sim and/or modem)
note this is a complete paradigm shift in how the modems are specficed to
how kannel currently does it..
so mate is this still ":So this is not really kannel question:"
???
----- Original Message -----
From: "Andreas Fink" <[EMAIL PROTECTED]>
To: "fred" <[EMAIL PROTECTED]>
Cc: "devel" <devel@kannel.org>
Sent: Wednesday, August 16, 2006 6:53 PM
Subject: Re: detecting modems on USB
On 16.08.2006, at 10:53, fred wrote:
> I've played with code that enumerate usb devices,etc..but haven't
> figured
> how to associate the usb device
> with a /dev/ttyUSBnn device properly/correctly or how? ...don't
> know enough
> yet
> eg modem on device
> ls /proc/bus/usb/002
> 001 002
>
> the falcom modem is the 002 device,
>
> yet the serial device is attached to /dev/ttyUSB0.......
>
This is done by the USB driver. Kannel just uses a serial port given
by its config file.
So if you got a USB device which has a serial port, then its up to
the USB device driver to declare which port it will use.
So this is not really kannel question
--
Thanks,
Alex