{"id":2415,"date":"2020-05-10T13:22:57","date_gmt":"2020-05-10T13:22:57","guid":{"rendered":"http:\/\/www.blog.exrockets.com\/blog\/?p=2415"},"modified":"2020-06-20T18:59:37","modified_gmt":"2020-06-20T18:59:37","slug":"gpsl80r-gsma6-gprs-sms-real-time-tracker-with-remote-sms-control-and-control-output","status":"publish","type":"post","link":"https:\/\/www.blog.exrockets.com\/blog\/gpsl80r-gsma6-gprs-sms-real-time-tracker-with-remote-sms-control-and-control-output\/","title":{"rendered":"GPS(L80R)-GSM(A6) GPRS\/SMS REAL TIME TRACKER WITH REMOTE SMS CONTROL AND CONTROL OUTPUT"},"content":{"rendered":"<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/TOP.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2417\" src=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/TOP.jpg\" alt=\"\" width=\"1800\" height=\"989\" srcset=\"https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/TOP.jpg 1800w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/TOP-300x165.jpg 300w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/TOP-1024x563.jpg 1024w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/TOP-768x422.jpg 768w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/TOP-1536x844.jpg 1536w\" sizes=\"auto, (max-width: 1800px) 100vw, 1800px\" \/><\/a><\/p>\n<p>This is a new GPS-GSM tracker based on my previous designs. The tracker has many similarities and some major improvements. Now it can be used not only for tracking with SMS messages but also in real-time through GPRS data communication.<\/p>\n<p>\u2013 The power supply input is limited from 3.3v to 4.1v \u2013 i.e. a standard Li-Po battery<br \/>\n\u2013 1Mb built in memory enough for 1 hour tracking data<br \/>\n\u2013 SIM card holder is mini-SIM size<br \/>\n\u2013 Schematic is a bit simplified<br \/>\n\u2013 Size is 60x20mm<br \/>\n\u2013 Quectel L80 GPS module<br \/>\n\u2013 Ai-Thinker A6 GPRS module<br \/>\n\u2013 50mA nominal consumption<br \/>\n\u2013 700mA peak current consumption when connecting to the network or receiving\/sending messages<br \/>\n\u2013 One 25mA logic output for control<br \/>\n\u2013 USB port for PC communication<br \/>\n&#8211; LiPo battery charger over USB<br \/>\n\u2013 20gr weight<br \/>\n\u2013 Total cost of the BOM ~17$<\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/BOT.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2418\" src=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/BOT.jpg\" alt=\"\" width=\"1800\" height=\"1006\" srcset=\"https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/BOT.jpg 1800w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/BOT-300x168.jpg 300w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/BOT-1024x572.jpg 1024w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/BOT-768x429.jpg 768w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/BOT-1536x858.jpg 1536w\" sizes=\"auto, (max-width: 1800px) 100vw, 1800px\" \/><\/a><\/p>\n<p>Functionally the tracker has the following capabilities:<br \/>\n\u2013 Receiving commands via SMS text commands<br \/>\n\u2013 Sending periodic status messages<br \/>\n\u2013 Calculating the current distance and bearing from the start point i.e. 205m North-East<br \/>\n\u2013 Sending an automatic status message when a predetermined distance in any direction from the start point has been reached<br \/>\n&#8211; Real-time tracking in Google Earth via GPRS data<br \/>\n&#8211; Bootloader for easy Firmware update<br \/>\n&#8211; Signal strength monitoring<br \/>\n&#8211; Battery level monitoring<\/p>\n<h2><strong>COMMANDS OVER SMS<\/strong><\/h2>\n<p>In this design I added some additional commands that can be sent via SMS. The tracker will accept the following SMS commands:<\/p>\n<p>UIP IP; &#8211;&gt; Update IP address. Example UIP 215.60.38.125;<br \/>\nON1 &#8211;&gt; Turn on output<br \/>\nOF1 &#8211;&gt; Turn off output<br \/>\nSMS &#8211;&gt; Sends SMS with the current coordinates to the preset number for periodic messages<br \/>\nSTN &#8211;&gt; Send to This Number, sends SMS with the current coordinates to this number<br \/>\nUPN &#8211;&gt; Update Phone Number for periodic messages with this number<br \/>\nOFS &#8211;&gt; Off SMS, stops periodic SMS<br \/>\nGON &#8211;&gt; GPRS On, start a GPRS connection (if not started by default)<br \/>\nGOF &#8211;&gt; GPRS Off, stops GPRS connection<\/p>\n<h2><strong>MESSAGE CONTENT<\/strong><\/h2>\n<p>Each message contains the following information:<br \/>\n\u2013 Last valid Latitude<br \/>\n\u2013 Last valid Longitude<br \/>\n\u2013 Last valid altitude<br \/>\n\u2013 Current fix status i.e. valid or not valid<br \/>\n\u2013 Distance from the starting point<br \/>\n\u2013 Bearing from destination point<br \/>\n\u2013 What triggered the message<br \/>\n&#8211; Signal strength<br \/>\n&#8211; Battery voltage<br \/>\n&#8211; Link with the current coordinates for Google maps (thanks to <a href=\"http:\/\/ucheba33.ru\/\" target=\"_blank\" rel=\"noopener noreferrer\">apakhom<\/a> for the suggestion)<\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/PHO1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2419\" src=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/PHO1.jpg\" alt=\"\" width=\"168\" height=\"175\" srcset=\"https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/PHO1.jpg 1200w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/PHO1-288x300.jpg 288w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/PHO1-985x1024.jpg 985w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/PHO1-768x799.jpg 768w\" sizes=\"auto, (max-width: 168px) 100vw, 168px\" \/> <\/a><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/PHO2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2420\" src=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/PHO2.jpg\" alt=\"\" width=\"168\" height=\"175\" srcset=\"https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/PHO2.jpg 1200w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/PHO2-288x300.jpg 288w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/PHO2-985x1024.jpg 985w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/PHO2-768x799.jpg 768w\" sizes=\"auto, (max-width: 168px) 100vw, 168px\" \/> <\/a><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/PHO3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2421\" src=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/PHO3.jpg\" alt=\"\" width=\"168\" height=\"175\" srcset=\"https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/PHO3.jpg 1200w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/PHO3-288x300.jpg 288w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/PHO3-985x1024.jpg 985w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/PHO3-768x799.jpg 768w\" sizes=\"auto, (max-width: 168px) 100vw, 168px\" \/><\/a><\/p>\n<h2><strong>APPLICATION MENUS<\/strong><\/h2>\n<p>* Before you can start using the main GPS-GSM tracker application, you need to install the <a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/Visual-Basic-6.0-Runtime-Plus-2.2.zip\">Visual Basic 6.0 Runtime Libraries<\/a> \u2013 compact installation is sufficient.<\/p>\n<p><strong>A: SETTINGS<\/strong><br \/>\n\u2013 Each output can be separately set up when enabled by message to switch on only once, once every 15,30,60 and 120 seconds or continuously<br \/>\n\u2013 Each output can be set up how long to stay switched on \u2013 from 0.1sec to 5.0 seconds<br \/>\n\u2013 The SMS destination phone number<br \/>\n\u2013 How often the SMS messages to be send &#8211; from 10 to 65000 seconds<br \/>\n\u2013 The SMS center phone number (not so often used nowadays, depends on the provider)<br \/>\n\u2013 Border radius in meters in any direction from the start point, which if crossed, an automatic status message will be send<br \/>\n\u2013 How often the current coordinates should be written in the memory (1sec to 65000 seconds). If the coordinates are written every second, then the memory is enough for about an hour<br \/>\n&#8211; Data mode \u2013 either GPRS or SMS<br \/>\n&#8211; GPRS APN<br \/>\n&#8211; GPRS User ID<br \/>\n&#8211; GPRS Password<br \/>\n&#8211; Destination IP address<br \/>\n&#8211; Destination port to use<\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/APP_MAIN1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2431\" src=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/APP_MAIN1.jpg\" alt=\"\" width=\"643\" height=\"637\" srcset=\"https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/APP_MAIN1.jpg 643w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/APP_MAIN1-300x297.jpg 300w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/APP_MAIN1-150x150.jpg 150w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/a><\/p>\n<p><strong>B: DOWNLOAD<\/strong><br \/>\n&#8211; Download the trip record from memory<\/p>\n<p><strong>C: REAL TIME 1<\/strong><br \/>\n\u2013 The current GPS coordinates are decoded and transmitted in real time in short format i.e. Latitude, Longitude and Altitude only.<\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/APP_MAIN2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2432\" src=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/APP_MAIN2.jpg\" alt=\"\" width=\"640\" height=\"634\" srcset=\"https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/APP_MAIN2.jpg 640w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/APP_MAIN2-300x297.jpg 300w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/APP_MAIN2-150x150.jpg 150w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p><strong>D: SAVE FILE<\/strong><br \/>\n&#8211; Save the current information in the text box to a text file<\/p>\n<p><strong>E: SERVER<\/strong><br \/>\n&#8211; Start a TCP server \u2013 it is necessary to start a TCP server in order to receive GPRS data<\/p>\n<p><strong>F: FORMAT MEM.<\/strong><br \/>\n\u2013 Delete memory. There\u2019s no real need to clear it before each trip as old data will be overwritten.<\/p>\n<p><strong>G: REAL TIME 2<\/strong><br \/>\n\u2013 The current GPS information is transferred in real time without any post processing<\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/APP_MAIN3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2433\" src=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/APP_MAIN3.jpg\" alt=\"\" width=\"644\" height=\"636\" srcset=\"https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/APP_MAIN3.jpg 644w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/APP_MAIN3-300x296.jpg 300w\" sizes=\"auto, (max-width: 644px) 100vw, 644px\" \/><\/a><\/p>\n<p><strong>H: OPEN FILE<\/strong><br \/>\n&#8211; Open file with GPS data for display<\/p>\n<h2>REAL-TIME TRACKING OVER GPRS<\/h2>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/QFTTk-0aYtk\" width=\"640\" height=\"360\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>&#8211; First set up the GPRS function:<br \/>\n&#8212; GPRS APN \u2013 this is the GPRS Access Point Name for your cellular network<br \/>\n&#8212; GPRS USER ID \u2013 see if required for your cellular network<br \/>\n&#8212; PASSWORD &#8211; see if required for your cellular network<br \/>\n&#8212; IP ADDRESS \u2013 this is your public (not local) IP address<br \/>\n&#8212; PORT \u2013 listening port<br \/>\n* If you are using a Wi-Fi router you will have to set up a port-forwarding for the given port to your local IP address<\/p>\n<p>&#8211; Second start a local TCP server<br \/>\n&#8212; select SERVER option and confirm to create a Network Link<br \/>\n&#8212; enter the same listening port as in the settings<br \/>\n&#8212; click START to start a TCP server<\/p>\n<p>-Third set up Google Earth<br \/>\n&#8212; start Google Earth<br \/>\n&#8212; go to Add &#8211;&gt; Network Link<br \/>\n&#8212; copy the path for the newly created Network Link from GPS-GSM TRACKING application<br \/>\n&#8212; paste the path in Google Earth at the Link box<br \/>\n&#8212; go to Refresh and change \u201cTime-based Refresh\u201d to \u201cPeriodically \u2013 1sec\u201d<br \/>\n&#8212; select \u201cFly to View on Refresh\u201d<\/p>\n<p>This is the basic set-up but you can further experiment with the other GE settings.<\/p>\n<h2>FIRMWARE UPDATE OVER USB<\/h2>\n<p>In this new modification of the GPS-GSM TRACKER I have provided the option to update the firmware over USB. For this purpose I\u2019ve written an USB Bootloader for the PIC18F26J50 Microcontroller and made a special FIRMWARE UPDATE APPLICATION. Basically you flash the PIC18F26J50 with the Bootloader firmware using the ICSP port and then using the provided application you can flash and update the main firmware.<\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/APP_BOOT.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2435\" src=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/APP_BOOT.jpg\" alt=\"\" width=\"554\" height=\"292\" srcset=\"https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/APP_BOOT.jpg 554w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/APP_BOOT-300x158.jpg 300w\" sizes=\"auto, (max-width: 554px) 100vw, 554px\" \/><\/a><\/p>\n<p>&#8211; Start the FIRMWARE UPDATE TOOL<br \/>\n&#8211; Connect to USB<br \/>\n&#8211; Start the tracker<br \/>\n&#8211; Select the new firmware file and flash it in the memory<\/p>\n<p>GPS-GSM TRACKER v4.1 schematic is very simple:<\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/SCH-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2436\" src=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/SCH-scaled.jpg\" alt=\"\" width=\"2560\" height=\"2211\" srcset=\"https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/SCH-scaled.jpg 2560w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/SCH-300x259.jpg 300w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/SCH-1024x885.jpg 1024w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/SCH-768x663.jpg 768w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/SCH-1536x1327.jpg 1536w, https:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/SCH-2048x1769.jpg 2048w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/><\/a><\/p>\n<h2><strong>PROJECT FILES:<\/strong><\/h2>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/GPS_GSM_TRACKING-CADCAM.zip\">GPS_GSM_TRACKING &#8211; CADCAM<\/a><\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/GPS_GSM_TRACKING_V4_1_FIRMWARE_103.zip\">GPS_GSM_TRACKING_V4_1_FIRMWARE_1.03<\/a><br \/>\n<a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/USB_BOOTLOADER_FIRMWARE.zip\">GPS GSM USB_BOOTLOADER_FIRMWARE 1.01<\/a><\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/GPS_GSM_TRACKING_MAIN_APP_1_4.zip\">GPS_GSM_TRACKING_MAIN_APP 1.4<\/a><br \/>\n<a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2020\/05\/GPS_GSM_TRACKING_BOOTLOADER_APP_1_02.zip\">GPS_GSM_TRACKING_BOOTLOADER_APP 1.02<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a new GPS-GSM tracker based on my previous designs. The tracker has many similarities and some major improvements. Now it can be used not only for tracking with SMS messages but also in real-time through GPRS data communication. \u2013 The power supply input is limited from 3.3v to 4.1v \u2013 i.e. a standard [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"gallery","meta":{"footnotes":""},"categories":[9],"tags":[63,59,56,54,55,58,62,60,61,57],"class_list":["post-2415","post","type-post","status-publish","format-gallery","hentry","category-electronics","tag-18f26j50","tag-ai-a6","tag-gprs","tag-gps","tag-gsm","tag-l80r","tag-pic-usb-bootloader","tag-real-time-tracking","tag-sms-command","tag-tracking","post_format-post-format-gallery"],"_links":{"self":[{"href":"https:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/posts\/2415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/comments?post=2415"}],"version-history":[{"count":19,"href":"https:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/posts\/2415\/revisions"}],"predecessor-version":[{"id":2476,"href":"https:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/posts\/2415\/revisions\/2476"}],"wp:attachment":[{"href":"https:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/media?parent=2415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/categories?post=2415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/tags?post=2415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}