Dear All ...
Is there any easier to understand sample of ruby nmea parser (
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
[root@kannel test]# ruby ./miniterm.rb 1 4800 8 1
Note : My test system is
1. GPS Feed : Using a PC running GPSFeed+
2. Ruby on the other Linux PC
3. The two PC is connected via a null-modem cable.
Posted via http://www.yqcomputer.com/