Re: NetworkManager and GPS Support



On Sun, 2011-08-07 at 11:14 +0200, Jean-Louis Dupond wrote:
> Hi,
> 
> Thanks for your reaction!
> 
> Its indeed the same hardware this is working on, but there is a big 
> difference between mbm-gpsd.
> 
> First of all I would like the support to get in NetworkManager/ModemManager.
> Not needing another additional package.

Since the MBM devices always have network ports, our job is easier.  We
can just use one of the free ACM ports for GPS when we want it.
However, be careful referring to ttyACMx because the ports change
depending on what's plugged into the system.  AFAIK we can use *any*
port for issuing these commands, but if it turns out we can't, we'll
have to tag the GPS ports in the udev rules file in plugins/ according
to what the Windows drivers say.

ModemManager picks one of the serial ports as the "main" port and
another as the secondary port.  What we should do here for the MBM
devices is send the *E2GPSCTL on the "main" port and then just open up
the third TTY as the GPS port and send the *E2GPSNPD to start the flow.
It appears that once we've done that, we cannot use the port for
anything else until the module is reset, so we should make sure we don't
use the primary or secondary ports that MM handles internally, but use
the third ACM port.

Then of course we just grab the NMEA sentences and stuff them into the
location services API as defined in introspection/.

It's great you're working on this, I have a bunch of Ericsson modems I
can use to test as well.  If you have more questions, let me know!

Dan

> And another thing is that mbm-gpsd depends on HAL.
> This is getting removed from most distro's, so this is another reason to 
> get everything in NetworkManager.
> 
> Thx
> 
> Jean-Louis
> 
> Op 06-08-11 20:42, Marius Kotsbak schreef:
> > Den 04. aug. 2011 21:29, skrev Jean-Louis Dupond:
> >> Hi
> >>
> >> Today i've been working on implementing GPS support for my HSPA modem.
> >> The implementing itself is not that hard, but there are some issues.
> >>
> >> The code (its NOT complete) can be found on
> >> http://ubuntu.dupondje.be/modemmanager.diff
> >>
> >> Now I got some question about then next steps.
> >>
> >> To enable the GPS, you need to send "AT*E2GPSCTL=1,5,1" to /dev/ttyACM1.
> >> After this "AT*E2GPSNPD" can be send to the device where you want the
> >> GPS messages from.
> >> This can be send to /dev/ttyACM1, but then you can't send other
> >> commands to that device anymore.
> >>
> >
> > Hmm, which modem is this ? Are you sure that this code is not doing what
> > you are trying to accomplish?
> >
> > http://sourceforge.net/apps/mediawiki/mbm/index.php?title=MBM#GPS_Control_.28mbm-gpsd.29
> >
> >
> > --
> > Marius
> >
> > _______________________________________________
> > networkmanager-list mailing list
> > networkmanager-list gnome org
> > http://mail.gnome.org/mailman/listinfo/networkmanager-list
> _______________________________________________
> networkmanager-list mailing list
> networkmanager-list gnome org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list




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