GPS + Bluetooth + Linux for Mobile Positioning

Source: Internet
Author: User
GPS + Bluetooth + Linux Mobile Positioning-Linux Enterprise Application-Linux server application information. The following is a detailed description. Source http://blog.sina.com.cn/s/blog_4aedf42a01007wyy.html
Author: GuanweiYu pluto_caesar [AT] yahoo.com.cn

After an afternoon, I finally figured it out. I checked the network information and found that there was almost nothing to do with it. I 'd like to share it with you here. Although it is easier to implement it in the XP system, I still try to implement it on the linux platform because of my research interests. The GPS device used here is the Nokia LD-3W that supports NMEA protocol; the Bluetooth adapter is an ivt usb adapter; the system is 2.4-core Debian (somewhat years old ).

The first thing to do is to install the bluetooth module, which was previously done when connecting to the mobile phone through Bluetooth and implementing dial-up Internet access. (For more information, see http://bluez.sourceforge.net/. For more information, see apt-get,yum)

Run "hcitool scan" to find the GPS device and record the MAC address. However, before that, make sure that the interfaces of the Bluetooth adapter are running. Enter hciconfig for query (I am using a usb Bluetooth)

The principle of serial connection is the same as that of using mobile phone dial-up to access the Internet. rfcomm is used as a virtual simulation serial link. Use rfcomm bind/dev/rfcomm0 1 "command to bind. Set the pin value first. Is in/etc/bluetooth/pin, change to 0000, This is the value of the Nokia LD-3W, so that the pairing can be more convenient.

In fact, related applications can be implemented now. Set the device port of minicom to/dev/rfcomm0 and the baud rate to 4800. Of course, the use of gpsd (http://gpsd.berlios.de) can also set this computer to the server that can publish gps data, other clients can connect. This server can be downloaded using apt-get or yum. The default port is 2947. For specific configuration commands, visit the relevant site. It supports protocols other than NMEA.

You can use software such as map or kimset to draw a map or achieve path record, which is more cost-effective than buying a professional on-board device. The most important thing is that you can also use other Bluetooth mobile phones, PDA and other handheld devices are easy to carry. Gpsd can also be used to achieve multi-person sharing of gps receivers, suitable for self-driving travel of multiple vehicles. I have played a part of the above, and other interested friends can further communicate with each other.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.