How to read NMEA data from USB GPS device through cocoa application

后端 未结 3 1431
孤城傲影
孤城傲影 2021-02-11 02:15

I am using USB GlobalSat(USG-MR350) GPS device. I want to get location data (latitude and longitude) from the device within my mac cocoa application.Tried to ru

相关标签:
3条回答
  • 2021-02-11 02:59

    I think that Sirf receiver is by default in binary mode, and that you have to put it in NMEA mode explicitly.

    0 讨论(0)
  • 2021-02-11 03:04

    I don't see you are checking port settings.

    Default settings for NMEA over serial port is speed:4800stopbit:1 parity:none.

    Check it on the device.

    0 讨论(0)
  • 2021-02-11 03:05

    Try using the NSData's ability to print itself as bytes via the description method.

    [outputTextView insertText:[data description]];

    0 讨论(0)
提交回复
热议问题