Opened 6 years ago

Closed 6 years ago

#49 closed defect (fixed)

Add GTA01 (gllin) support to ogpsd

Reported by: daniel Owned by: daniel
Priority: major Milestone: milestone4
Component: framework/ogpsd Version:
Keywords: Cc:

Description

Need to create a UDPChannel that listens on the port gllin is sending and takes care of starting and stopping gllin.

Attachments (2)

gpschannel_add_filechannel.patch (1.3 KB) - added by alonlevy1 in g mail 6 years ago.
allows reading from /tmp/nmeaNP, see comment
gpschannel_add_udpchannel_and_filechannel.patch (2.1 KB) - added by anonymous 6 years ago.
adds UDPChannel (includes the FileChannel? too)

Download all attachments as: .zip

Change History (9)

comment:1 Changed 6 years ago by daniel

  • Milestone set to milestone4

Changed 6 years ago by alonlevy1 in g mail

allows reading from /tmp/nmeaNP, see comment

comment:2 Changed 6 years ago by alonlevy1 in g mail

Attaching code to create a simple FileChannel?. Intended usage on the neo: start gllin normally, it creates a pipe in /tmp/nmeaNP, and change your /etc/frameworkd.conf to include a similar ogpsd section:

[ogpsd]
device = NMEADevice
channel = FileChannel?
path = /tmp/nmeaNP

Alon
(alonlevy1 in g mail)

Changed 6 years ago by anonymous

adds UDPChannel (includes the FileChannel? too)

comment:3 Changed 6 years ago by anonymous

Last patch adds UDPChannel too - by default gllin sends packets to port 6000 on localhost. The patch listens to any interface (can replace with 'localhost', should work the same).

If you use it you can turn off the /tmp/nmeaNP file by the "-np" switch to gllin.

Example ogpsd section in /etc/frameworkd.conf:

[ogpsd]
log_level = DEBUG
device = NMEADevice
#channel = FileChannel
#path = /tmp/nmeaNP
channel = UDPChannel
path = 6000

comment:4 Changed 6 years ago by daniel

  • Status changed from new to assigned

Okay, commited the second patch and.some small modifications. Thanks!
Now we just need to start and stop gllin as required.
I believe best would be to add open/close methods to the channels as well and calling them when the device is started/stopped. These methods would do other things as well, like opening and closing the file/socket.

comment:5 Changed 6 years ago by Tilman Baumann

I guess you all have seen the new version.
http://lists.openmoko.org/pipermail/announce/2008-October/000026.html

Strangely, when I start /etc/init.d/gllin it fires up very well.
But frameworkd does not seem to do so when i launch the gps app in zhone.

comment:6 Changed 6 years ago by daniel

You will need a recent version of frameworkd (at least version [af1dfe352253c9fbd38843521d5efeb1f2fa906f]) and your /etc/frameworkd.conf will need the following lines in the section [ogpsd]:

channel=GllinChannel
path=/etc/init.d/gllin

I have now also pushed that change to OE so subsequent builds should have the right frameworkd.conf file for GTA01.
Please retest and close the bug if it works for you (I tried it here and it should work now).

comment:7 Changed 6 years ago by daniel

  • Resolution set to fixed
  • Status changed from assigned to closed

And actually, now that this has been fixed I can also close the ticket. :-)

Note: See TracTickets for help on using tickets.