This article instructs users to implement location coordinates via SMS and display them to Google Map using STM32F1 Easy, GSM/GPRS M95 Easy and GPS Max 7C Easy of AT-COM. Users can "Plug and Play" thanks to the flexibility of ATCBus on each product.
+ GSM/GPRS M95 Easy board.
+ GPS Max 7C Easy board.
+ Android phone has installed Google Map software and SMS2Map software .
+ USB HID Bootloader .
Select I/O Level on GSM/GPRS M95 Easy and GPS Max 7C Easy at 3V3.
Insert SIM card into GSM/GPRS M95 Easy then connect GSM/GPRS M95 Easy to ATC Bus Socket 1 and GPS Max 7C Easy to ATC Bus Socket 2 of STM32F1 Easy.
Source code presented in the article uses the Keil ARM compiler for the STM32F107RCT6 microcontroller. The code is written in the USB HID Bootloader of STM32F1 Easy. Can Download source code for STM32F1 Easy ( STM32F1_M95_Max7c Easy demo code ).
After downloading the code to the computer, the code needs to be edited and recompiled with Keil ARM software.
After unzipping, we open the STM32F1_M95_Max7c_Easy.uvproj file, the file is in the path: ...\STM32F1_M95_Max7c_Easy\Project\RVMDK. Proceed to revise the phone number in the code to the board sent the coordinates message.
Then we modify password of the board.
To load code for STM32F1 Easy we use the USB HID Bootloader software , download the software in the product STM32F1 Easy, after download to the computer, extract the winrar file and click on the USB HID Bootloader.exe file to run the USB Bootloader program on the computer.
After opening the USB HID Bootloader program, you connect the STM32F1 Easy board to your PC via mini USB, within 5 seconds you press the Connect button to bring the microcontroller into Bootloader mode. If you do not press the Connect button within 5 seconds , the microcontroller will run into the previous application loaded, then press the RESET button on the STM32F1 Easy board to reboot the system.
When the USB HID Bootloader software and STM32F1 Easy connect successfully, you click Browse and select the path to where the file archive .hex.
After selecting the file to load .hex, you click Open to load the program file.
Then click Download to load the program into the microcontroller.
When the program is loaded successfully, the software will automatically reset the microcontroller and run the loaded application.
Once the system has finished booting, the system will automatically send a notification message to the user's phone number (the phone number is changed in step 3).
Method 1: Press the SW1 button on the STM32F1 Easy board , the system sends the message containing the link coordinates.
The system returns the message containing the coordinates.
After receiving the correct syntax message, the system returns the message with the link coordinates.
+ Install SMS2Map software to your phone.
+ When the message contains the coordinates sent to the user's phone number, SMS2Map will automatically display the location on the map of the software.
When the user clicks on a location on the map, the software displays the address of the current system.