From: Bino Oetomo Date: 2007-05-09T16:10:08+09:00 Subject: NMEA , request for real live sample 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 : ---START--- require 'serialport' require 'nmea' @sp = SerialPort.open("/dev/ttyS1", 4800, 8, 1, SerialPort::NONE) @handler = NMEAHandler.new while(@sentence = @sp.gets) do puts NMEA.scan(@sentence, @handler) end ---STOP--- 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 ---start--- [root@kannel test]# ruby ./miniterm.rb 1 4800 8 1 $GPRMC,135444,A,3815.4477,N,02349.5804,E,10412.9,243.3,090507,5,E,A*B $GPRMC,135446,A,3810.5221,N,02344.4003,E,11501.1,219.6,090507,5,E,A*B $GPRMC,135448,A,3803.9503,N,02341.4152,E,12561.9,199.7,090507,5,E,A*B ---stop---- 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. Sincerely -bino- -- Posted via http://www.ruby-forum.com/.