Dear All …
Is there any easier to understand sample of ruby nmea parser (
http://rubyforge.org/projects/nmea/ ) ??
I need to parse NMEA , and re format it to YAML.
I tried to :
@sp = SerialPort.open("/dev/ttyS1", 4800, 8, 1,
@handler = NMEAHandler.new
while(@sentence = @sp.gets) do
puts NMEA.scan(@sentence, @handler)
but it only print “nil”
I thought that my system is not well wired, so I make a test using
miniterm.rb from the serialport library, and here is the result
[[email protected] test]# ruby ./miniterm.rb 1 4800 8 1
Note : My test system is
- GPS Feed : Using a PC running GPSFeed+
- Ruby on the other Linux PC
- The two PC is connected via a null-modem cable.