2018-08-13 11:31 PM
I want to get gps information using p nucleo lrwan1. Can I get an open source that can help? I'll use the uart port.(gps)
Solved! Go to Solution.
2018-08-14 04:43 AM
The LoRa shield doesn't use the D0/D1 USART pins so you could stack in a GPS Shield. On the NUCLEO-64 you will likely need to modify the solder bridges so as not to conflict with the VCP-USART wiring.
The XCUBE-LRWAN code will need a bit of modification to support the USART. I've posted GPS/USART parsing/processing code several times, you could use that or code your own. Likely you want to extract position and send that in a small LoRa packet. The Ping-Pong example can be modified to be Location Pinging one.
2018-08-14 04:43 AM
The LoRa shield doesn't use the D0/D1 USART pins so you could stack in a GPS Shield. On the NUCLEO-64 you will likely need to modify the solder bridges so as not to conflict with the VCP-USART wiring.
The XCUBE-LRWAN code will need a bit of modification to support the USART. I've posted GPS/USART parsing/processing code several times, you could use that or code your own. Likely you want to extract position and send that in a small LoRa packet. The Ping-Pong example can be modified to be Location Pinging one.
2018-08-14 10:24 AM
Thank you for your reply. I am a beginner. Am I supposed to modify the example code? Is it an x-cube, not an i-cube? May I know the link to the code I need? (UIGGST02-R01 This is the gps module I'm trying to use)
2018-08-14 10:40 AM
Yeah, sorry the I-CUBE-LRWAN software would need to be the basis of any code you build
https://www.st.com/en/embedded-software/i-cube-lrwan.html
https://st-microelectronics.jiveon.com/message/196920-gps-nmea-decoder-demo-for-stm32f746g-disco
https://st-microelectronics.jiveon.com/message/69622?commentID=69622#comment-69622
Modifying the LRWAN software is going to be a bit of a heavy lift for a beginner. Perhaps try getting the GPS to work with the NUCLEO board first and have it parse the NMEA data and output over the VCP serial port to a terminal.
2018-08-14 05:44 PM
Thank you. And what IDE should I use?
2018-08-14 06:36 PM
Whatever one suits your tastes. I don't like Eclipse, and would tend toward Keil, which can be freely licensed for ST CM0 parts. http://www.keil.com/stmicroelectronics-stm32/mdk
2018-08-15 02:48 AM
Thank you. Which part do I need to fix with the code on the link? Is ping-pong an example? (I want to get the gps information of the board through 1: 1 communication without a gateway.)
2018-08-15 06:25 AM
It is a point-to-point example project
STM32CubeExpansion_LRWAN_V1.1.1\Projects\Multi\Applications\LoRa\PingPong\readme.txt
2018-08-15 09:49 AM
How do I communicate with a board that is not connected to a PC? Do I need to link two boards with a program? Is there a manual for reference?
2018-08-15 02:45 PM
Semtech has assorted manuals, datasheets and app notes. Many LoRa modules use the same SX127x chips, so review whatever materials and stack documentation cover the angles of interest.
I think there is a presumption you have some familiarity with the processor, radios and tools.
Perhaps take smaller bites and familiarize yourself with driving GPIO and LEDs, and then with the USART, and then with parsing a data stream.
The ping-pong or other applications run on the Murata module, so you just need to power the boards once the program is downloaded.
The ping-pong program can both transmit and receive packets. You should perhaps strip out the main while loop and create one that transmits and another that receives. Ultimately the transmit node can us a USART to connect to a GPS receiver, and you can read the NMEA sentences, and then send a condensed message via the LoRa radio.