Re: How to attach a config to a specific modem?



Am Donnerstag, den 24.06.2010, 11:01 -0700 schrieb Dan Williams:
> On Thu, 2010-06-24 at 07:47 +0200, Tom wrote:
> > On Wed, 2010-06-23 at 16:46 -0700, Dan Williams wrote:
> > > On Wed, 2010-06-23 at 13:23 +0200, Tom wrote:
> > > > Hi,
> > > > 
> > > > i have 2 modems and 2 system-connections. How can i tell NM/MM that
> > > > Config1 has to be used with Modem1 and Config2 with Modem2 ?
> > > 
> > > We don't have the capability to do that yet, but I'd expect that this
> > > would be done by IMEI/ESN/MEID.  But for GSM devices, do we want to lock
> > > the connection to the *SIM*, or to the *device*?  There are arguments
> > > for both, but more of the configuration is dependent on the SIM, not the
> > > device (APN, password/username, PIN, etc).
> > 
> > 
> > it should be possible to lock a connection to a)SIM or b)Device or c)SIM
> > _and_ Device. 
> > In my example, i have 2 modems. I could set both pins of the sim cards
> > to the same number. but if i use different modems, i have to set
> > different device settings (eg baudrate (rs232 modem) or nobsdcomp=true)
> 
> Keep in mind that often devices don't let you get the IMSI (sim ID)
> until you've unlocked the SIM.  Some don't even allow you get the IMEI
> until you've unlocked the SIM.  Which is one reason it's hard to
> automatically unlock the SIM, since for many devices there's imply no
> way to match up the PIN with anything that identifies the device/SIM
> that the pin belongs to...  so a generic solution here doesn't work
> well.  Best we get is "best effort" I think, if there's an IMSI then use
> it, if not try IMEI, if not try USB IDs, if not try model # or something
> like that.

What's the way NetworkManager does this actually? If there are 2
system-configs and 2 modems, how does NM handle this? Does NM tries all
configurations with all modems? And if so, what's the order?


it would be also possible to use the parameters from
org.freedesktop.ModemManager.Modem.GetInfo() to lock a config to a
specific modem.

I think something like this would be good:

1) a device port is in the configuration given

   [connection]
   only-device=/dev/ttyUSB0
   ...

-> nm only tries this configuration with a modem conntected to the
specific device port.

2) a modem manufacturer and modem is given:
   
   [connection]
   modem-manufacturer=Siemens
   modem=TC63

-> this configuration will only be used if a Siemens TC63 modem is
found.

3) device port _and_ manufacturer/modem are given:
   
   [connection]
   modem-manufacturer=Siemens
   modem=TC63
   only-device=/dev/ttyUSB0

-> Use this configuration only, if a Siemens TC63 modem is connected
to /dev/ttyUSB0 port.



What so you think about this?


Cheers,

Tom




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]