Developing an Application using C++ or Java For GPS Receivers - gps

I have an idea for developing an app to be installed in a GPS receiver,this app should be able to communicate with a server.The connection could either be established through a cell phone network or internet or any suggestions.
Is this possible?
Can anyone help with suggestions?
Whats the best programming language would be more appropriate?
Any GPS devices that has this capability?
Thanks

It's very easy to do this, you can have a look at gpsd.
basically just com port communication and change NMEA formats, and send your info back to your server over the net.
I did my one with ruby under linux without addition library other than native.
For your question:
I would say any language you are comfortable will do. OS is not important, even on a ARM linux it should be okay.
Most gps should work, as long as they are NMEA formats. for more info you can have a look at http://gpsd.berlios.de/hardware.html

Related

Industrial-Standard UDP Broadcast on Windows?

I would like to use the UDP boardcast to tell the lan devices here is a XX-device. It is the same scenarios as the mDNS/Zeroconf for the printer.
However, as my know, Windows supporting with zeroconf is bad. The most simple way to implement zero-conf on windows is to use the Bonjour library. But, Bonjour runs as a service, it brings the end-user unfriendly.
Could any one give me some suggestion to achieve this goal ? What protocol could be my choice ? Or, is there a zero-conf libraries working on Windows (both 7 and 10) ? The broadcast and discover both run on Windows.
Thank you.
I'm just investigating this as well. What I've found is that DnssdServiceInstance seems to be the way to go when it comes to UWP apps. Exactly how to use it I've not been able to figure out yet.
Hope this helps.
/Fredrik

What is the exact function of an USB driver?

On reading many websites, I got confused.
Is the USB driver essential for making the device work? Or is it essential for making it communicate with the OS to do functions such as printing and doing other OS stuff?
To explain my question more clearly -
I am working on developing a USB device, that will communicate with the software i will write.
Do I need to develop a driver for such a system?
or
Do I just need the software program to send the proper messages to the device?
I am assuming your micro controller will be a USB device and your PC will be USB host.
The below diagram is the SW architecture for USB host. Now since your host is a PC, you do not need to worry about any part except the application at the top.
So lets talk about the device. What you need is a device stack which resembles with the host stack below. You can get the device stack easily and port it in your micro controller. But I suppose you need an application in your device too same as the top box of the below diagram which will understand the requests from the host and service the request.
So basically what I am saying that you need two applications and the rest of the components you can get it with some effort.
Regards.

How to use Visual Basic, Mindstorms NXT and USB communication Altogether?

I have been researching for a couple of days, and i have not found anything I understand about sending direct commands to the NXT via USB. All of the tutorials I have found are based on Bluetooth communication, and the information I have found about USB is always like "Better change to bluetooth", or "Think about it as a COM port"
I had previously sent those commands via Bluetooth, but the connection fails too often to be useful, and is slower than USB.
USB connection is not detected as a COM port, but I know it is posible to control motors and get sensor input with a USB connection, because the LEGO software does so. It has that remote control feature that allows user to activate motors from the PC, and can read sensor input as well.
So, my question is, How can I send and recieve those direct commands via USB? and, Is there any way to do so in Visual Basic 2008?
You can use the MonoBrick Communication Library to do this. See http://www.monobrick.dk/software/monobrick/.
Alternately, you could use the Fantom driver from the official LEGO Software developer kit. http://www.lego.com/en-us/mindstorms/downloads/software/nxt-sdk/

Serial Port Profile (SPP) communication on Mac OSX

I am looking for Bluetooth SPP communication between MAC OSX and bluetooth device.
I am able to discover bluetooth device. I could not find examples on SPP communication on Mac OSX.
I have the foll0wing resources with me
https://developer.apple.com/library/mac/documentation/devicedrivers/conceptual/bluetooth/Bluetooth.pdf
Could someone point me the examples or any pointers where I can start.
Is it advisable to use SPP. I did not find much info on this but I found some APIs for OBEX?
If we have to use SPP then where can I find links?
I found the following links useful
https://developer.apple.com/library/mac/navigation/index.html?filter=bluetooth
Bluetooth Example Code for Cocoa (Objective-C)
Examples hosted at the following link
http://cs.dal.ca/~mcormier/Bluetooth.zip

Is it possible to determine usb protocol from an installed driver?

Just as the question states, the goal is to reverse engineer the protocol used by a device.
Let's say you have a webcam, an Arduino and an Arduino USB Host shield. You want to talk to that webcam, from which you don't know the protocol. Can it be done by monitoring USB data packets and by analyzing the driver installed for that device?
It would be a really interesting project.
Thanks in advance.
I often use a serial spy program to look at the conversation between two devices. In windows you can pay for it...
http://www.sinnovations.com/htdocs/serial-port-monitor.htm
In Linux it's free...
http://www.cyberciti.biz/faq/howto-monitor-data-on-a-serial-port-in-linux/