在cocoa应用程序中从GPS设备(USG-MR350)获取位置数据的API /方法?

时间:2023-02-05 20:35:05

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. Can I use an API to communicate to the device if yes, please help me find it! OR if there is a cocoa method I can use to detect the device and get the data... any help would be highly appreciated!

我正在使用USB GlobalSat(USG-MR350)GPS设备。我想从我的mac cocoa应用程序中的设备获取位置数据(纬度和经度)。如果是,我可以使用API​​与设备通信,请帮我找到它!或者,如果有一个可可方法,我可以用来检测设备并获取数据...任何帮助将非常感谢!

1 个解决方案

#1


0  

To access GPS data, you should read it from corresponding COM (serial) port, it is returned as raw-text lines with special format (google for NMEA). There are libraries/examples for Cocoa, which allows access to COM port, like AMSerialPort: http://www.harmless.de/cocoa-code.php

要访问GPS数据,您应该从相应的COM(串行)端口读取它,它将以特殊格式的原始文本行返回(谷歌为NMEA)。有Cocoa的库/示例,允许访问COM端口,如AMSerialPort:http://www.harmless.de/cocoa-code.php

#1


0  

To access GPS data, you should read it from corresponding COM (serial) port, it is returned as raw-text lines with special format (google for NMEA). There are libraries/examples for Cocoa, which allows access to COM port, like AMSerialPort: http://www.harmless.de/cocoa-code.php

要访问GPS数据,您应该从相应的COM(串行)端口读取它,它将以特殊格式的原始文本行返回(谷歌为NMEA)。有Cocoa的库/示例,允许访问COM端口,如AMSerialPort:http://www.harmless.de/cocoa-code.php