Difference: GPSAndInterfaceThroughUART (3 vs. 4)

Revision 42020-08-28 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="Exercises"

Exercise 9: GPS receiver

Introduction

Line: 23 to 23
  Peter Hinch has written an asynchronous GPS driver with a parser based on micropyGPS. The driver is already installed in your MicroPython binary. Use this driver to extract the information of exercise 3.
Changed:
<
<
The documentation of as_GPS cant be found at https://github.com/peterhinch/micropython-async/blob/master/v3/docs/GPS.md
>
>
The documentation of as_GPS can be found at https://github.com/peterhinch/micropython-async/blob/master/v3/docs/GPS.md
 
Added:
>
>
For the following exercises please follow the description in this TWiki: GPS receiver

Exercise 5: u-center

Connect the GPS receiver to your PC and install ublox u-center. When doing this on a Linux machine you must run u-center under the Windows emulator wine. Check out the possibilities u-center offers. Change the ublox neo 6M baud rate to 115200 and save the setting in the battery backed up RAM.

Exercise 6: gpsd

Install gpsd on your machine and start it using the USB to serial adapter as NMEA source. Print the NMEA messages made available by gpsd using gpspipe and decode the messages with gpsmon. Have a look at the satellite positions with xgps.

Exercise 7: Display the GPS position in a map

Follow the Linux Journal tutorial to display the GPS position on a marble map. Use the serial port as GPS source instead of the mobile phone.

Exercise 8: Display the GPS position in a map when the receiver is connected to the ESP32

For this to work you must write a simple TCP server n the ESP32, which listens to a connection request on port 29998. When the connection request arrives the server connects to the TCP port, reads NMEA messages from the ublox neo 6M connected to the ESP32 UART and sends the sentences to the TCP port without modification.

Write a simple TCP client reading the information from the TCP port and printing it out

On the PC:

  • start gpsd with tcp://IP_OF_ESP:29998 as GPS source
  • check with gpspipe and gpsmon that the data arrive
  • redirect the gspd information to port 29999 using
    gpspipe -r | nc -l 29999
  • run qmlscene on map.qml to send the information to OpenStreetView on marble
 The exercise sheet in odt format:

https://iotworkshop.africa/pub/IoT_Course_English/GPSAndInterfaceThroughUART/exercise_6.odt

Line: 37 to 58
 
META FILEATTACHMENT attachment="gpsResults.png" attr="" comment="" date="1596527040" name="gpsResults.png" path="gpsResults.png" size="57815" user="UliRaich" version="1"
META FILEATTACHMENT attachment="parserLog.txt" attr="" comment="" date="1596553769" name="parserLog.txt" path="parserLog.txt" size="267338" user="UliRaich" version="1"
Changed:
<
<
META FILEATTACHMENT attachment="exercise_6.odt" attr="" comment="" date="1596963422" name="exercise_6.odt" path="exercise_6.odt" size="23287" user="UliRaich" version="1"
>
>
META FILEATTACHMENT attachment="exercise_6.odt" attr="" comment="" date="1598629458" name="exercise_6.odt" path="exercise_6.odt" size="23994" user="UliRaich" version="2"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback