GPS NMEA data transmission method and system between Android system and satellite module

By designing a GPS NMEA data transmission system in an Android system, processing and transmitting complete GPS NMEA data, the problem of only transmitting latitude and longitude information in the existing technology is solved, real-time and complete GPS data transmission is realized, and satellite module registration efficiency is improved. and data format uniformity.

CN119255188APending Publication Date: 2025-01-03YIBIN TINNO COMM CO LT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411540045.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

The existing Android system only transmits latitude and longitude information in the satellite communication module, lacking real-time and complete GPS positioning data, affecting the satellite network registration efficiency and the unity of data formats between devices.

Method used

A GPS NMEA data transmission system between Android system and satellite module is designed, including SaraService App, Android Framework, SAT RIL and UART. By processing and transmitting complete GPS NMEA data, it provides a user-friendly interface, permission management, and backup. Cache and baud rate settings ensure real-time and completeness of data.

Benefits of technology

Real-time and complete GPS data transmission is realized, the satellite module registration speed is improved, the standardization and unified GPS communication data format is promoted, and the security and stability of the system is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119255188A_ABST
    Figure CN119255188A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, in particular to a GPS NMEA data transmission method and system between an Android system and a satellite module, and the system comprises a SaraService App which operates in the Android system and is used for processing GPS data and carrying out corresponding detection operation at the same time; the Android Framework is a core framework of the Android system and is used for managing life cycles and broadcast events of application programs; the SAT RIL is connected with the Android system and used for processing AT instructions and forwarding related events; the SAT Modem is connected with the Android system through the SAT RIL and is used for communicating with a satellite and providing GPS (Global Positioning System) data; and the UART is an asynchronous transceiving transmitter, is respectively connected with the wireless communication electronic equipment and the SAT Modem, and is used for transmitting serial data. In the scheme of the invention, the NMEA data transmission between the AP end of the Android system and the satellite module is carried out by adopting the independent UART serial port, so that the independence, speed and security of the data transmission are ensured, and the conflict with AT serial port instruction transmission is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a GPS NMEA data transmission method and system between an Android system and a satellite module. Background Art

[0002] With the continuous advancement and innovation of satellite communication technology, more and more consumer smartphones are equipped with satellite communication functions. In order to achieve this function, it is usually necessary to integrate a dedicated satellite communication module inside the smartphone so that it can communicate effectively with the satellite network. During the process of registering the network, the satellite communication module needs to send positioning information to the satellite network in order to complete the registration. However, the satellite communication module itself does not have a positioning chip, so it must rely on the GPS module on the mobile phone to provide positioning information to help the satellite communication module complete the registration process with the satellite network.

[0003] In the current Android system, obtaining positioning information is usually achieved through the interfaces provided by the system. These interfaces can obtain the longitude and latitude information of the device, which is actually obtained by converting the longitude and latitude data in the GPS NMEA sentence. GPS NMEA data is a data packet containing a variety of information, including positioning time, latitude, longitude, altitude, number of satellites used for positioning, DOP value (positioning precision factor), differential status, and correction period. In addition, GPS NMEA data may also contain other information such as speed, tracking, date, etc. Therefore, it is not comprehensive to rely solely on longitude and latitude information to represent GPS positioning data.

[0004] At present, the vast majority of GPS receivers and the most widely used data output format is the NMEA0183 standard. NMEA was developed by the National Marine Electronics Association of the United States to standardize the communication protocol between GPS devices and other marine electronic equipment. Despite this, the use of NMEA data is not common on Android systems. In existing satellite communication mobile phones, usually only longitude and latitude data are sent to the satellite communication module. However, as the standard communication protocol for GPS devices internationally, obtaining complete GPS NMEA data and sending it to the satellite communication module is the most real-time and complete positioning data. This method not only helps the satellite communication module to complete the registration process of the satellite network faster and more efficiently, but also helps to standardize and unify the GPS communication data format between different devices. Summary of the invention

[0005] In view of the deficiencies in the prior art, the present invention discloses a satellite firmware upgrade system and method based on the Android system, which are used to solve the above problems.

[0006] The present invention is achieved through the following technical solutions:

[0007] In a first aspect, the present invention provides a GPS NMEA data transmission system between an Android system and a satellite module, including GPS and an Android system, including:

[0008] SaraService App, running on Android system, is used to process GPS data and perform corresponding detection operations;

[0009] Android Framework is the core framework of the Android system, which is used to manage the application life cycle and broadcast events;

[0010] SAT RIL, connected to the Android system, used to process AT commands and forward related events;

[0011] SAT Modem, connected to the Android system via the SAT RIL, for communicating with satellites and providing GPS data;

[0012] UART is an asynchronous receiver-transmitter, which is connected to the wireless communication electronic device and the SAT Modem respectively, and is used for transmitting serial data.

[0013] Furthermore, the SaraService App has a user-friendly interface with a manual switch function embedded in it. Users can use this manual switch to independently control whether to enable or disable the monitoring function of GPS data. This switch is designed to allow users to flexibly turn on or off the tracking function of GPS data according to their needs and preferences, so as to better manage their location information privacy.

[0014] Furthermore, in the Android Framework, a permission management module is specially set up, the main responsibility of which is to strictly control and manage the access rights of each application to GPS data. Through this mechanism, the system can ensure that only those authorized applications have the permission to receive and process data information from GPS. This design is intended to enhance the security of the system and prevent unauthorized applications from abusing GPS data, thereby protecting the privacy of users and the security of devices. Through this permission management, users can use various applications more confidently without having to worry about their location information being improperly used.

[0015] Furthermore, the satellite receiving and processing module (SAT RIL) has a backup cache module, the main function of which is to temporarily store the global positioning system (GPS) data received from the satellite modem (SAT Modem). This design is to cope with possible communication delays or interruptions, ensuring that the system can still operate normally and process GPS data under these adverse conditions. The existence of the backup cache module enables the SAT RIL to read previously received data from the cache when the communication is temporarily interrupted, thereby avoiding the problem of data loss and processing interruption. This design greatly improves the reliability and stability of the system, and ensures the continuity and integrity of GPS data in various complex environments.

[0016] Furthermore, the UART (Universal Asynchronous Receiver / Transmitter) has a dedicated baud rate setting module, which is responsible for configuring and adjusting the baud rate parameters of different types of wireless communication electronic devices. Baud rate refers to the number of symbols transmitted per second, which is an important indicator for measuring data transmission rate. By accurately setting the baud rate, UART can ensure that data is transmitted stably and efficiently between wireless communication devices. This function is crucial to maintaining the reliability and performance of the communication system because it directly affects the accuracy and speed of data transmission. By flexibly adjusting the baud rate, UART can adapt to a variety of application scenarios and needs, thereby playing a key role in various wireless communication devices.

[0017] Furthermore, the SaraService App not only has powerful data processing capabilities, but also comes with a detailed data recording mechanism. It can save processed and optimized GPS data in local storage devices to ensure that this information can be safely stored. In this way, users can easily conduct subsequent analysis and backtracking when needed to better understand historical data and make decision support. This local storage function not only improves data security, but also provides users with flexible data management options, allowing them to access and utilize these valuable information resources at any time.

[0018] Furthermore, the SaraService App periodically checks the status of the GPS module. If a GPS module failure or signal loss is detected, SaraService will attempt to restart the GPS module and send an error report broadcast through the Framework so that other applications or services can respond in a timely manner.

[0019] Furthermore, the SaraService App has an intelligent power management function. When GPS data is no longer needed by the SAT modem, SaraService will automatically reduce the update frequency of the GPS module; when the SAT modem requests GPS data again, SaraService will immediately resume the normal update frequency.

[0020] Furthermore, the SaraService App also provides a logging function, all key operations and events will be recorded, and the log files can be viewed and exported through the SaraService user interface for remote diagnosis and problem solving.

[0021] In a second aspect, the present invention provides a GPS NMEA data transmission method between an Android system and a satellite module, the method using the GPS NMEA data transmission system between the Android system and the satellite module as described in the first aspect, comprising the following steps:

[0022] The wireless electronic communication device starts up the SaraService App and monitors the SAT modem.

[0023] Determine whether the SAT modem needs GPS data. If yes, proceed to the next step. If no, stop acquiring GPS data.

[0024] SaraService App obtains NMEA data and data encoding through Android GPS positioning service;

[0025] The encoded data is transmitted to the SAT modem through the GPS UART serial port to complete the GPS NMEA data transmission between the Android system and the satellite module.

[0026] The beneficial effects of the present invention are:

[0027] The GPS NMEA data transmission scheme of the present invention follows the international standard GPS NMEA communication protocol and is responsible for transmitting NMEA data to the satellite module. The GPS data provided by the scheme is more real-time and complete, which helps the satellite module to join the satellite network more quickly and efficiently, and promotes the standardization and unification of GPS communication data formats between different devices.

[0028] The present invention sets a specific coding specification for the transmitted NMEA data, ensuring that the NMEA data of the AP end can be continuously and accurately transmitted to the satellite module. The satellite module performs parsing according to the coding specification to obtain the required positioning information.

[0029] In the solution of the present invention, NMEA data transmission between the Android system AP and the satellite module is carried out using an independent UART serial port, which ensures the independence, speed and security of data transmission and avoids conflicts with AT serial port command transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0031] Figure 1 It is a structural block diagram of the GPS NMEA data transmission system between the Android system and the satellite module of the present invention;

[0032] Figure 2 It is a principle flow chart of the GPS NMEA data transmission method between the Android system and the satellite module of the present invention. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0034] In one embodiment, referring to Figure 1 As shown, a GPS NMEA data transmission system between an Android system and a satellite module is provided, including GPS and an Android system, including:

[0035] SaraService App, running on Android system, is used to process GPS data and perform corresponding detection operations;

[0036] Android Framework is the core framework of the Android system, which is used to manage the application life cycle and broadcast events;

[0037] SAT RIL, connected to the Android system, used to process AT commands and forward related events;

[0038] SAT Modem, connected to the Android system via the SAT RIL, for communicating with satellites and providing GPS data;

[0039] UART is an asynchronous receiver-transmitter, which is connected to the wireless communication electronic device and the SAT Modem respectively, and is used for transmitting serial data.

[0040] In one embodiment, GPS is a global positioning system responsible for providing accurate geographic location information; SaraServiceApp is an application running on an Android device, responsible for processing GPS data and performing corresponding operations; Android Framework is the core framework of the Android system, responsible for managing the life cycle of applications and broadcasting events; SAT RIL (Radio Interface Layer) is an intermediate layer connecting the Android system and the SAT modem, responsible for processing AT commands and forwarding related events; UART (Universal Asynchronous Receiver / Transmitter) is a universal asynchronous receiver / transmitter, responsible for transmitting serial data between the device and the SAT modem; SAT Modem is a satellite modem, responsible for communicating with the satellite and providing GPS data.

[0041] In one embodiment, to ensure the stability and reliability of the system, the SaraService App periodically checks the status of the GPS module. If a GPS module failure or signal loss is detected, SaraService will try to restart the GPS module and send an error report broadcast through the Framework so that other applications or services can respond in time.

[0042] In one embodiment, SaraService also provides a user interface that allows users to manually turn on or off the monitoring of GPS data. Users can view the current GPS status through this interface and adjust it as needed. When users change GPS settings, SaraService will adjust its monitoring and data transmission strategies accordingly.

[0043] In one embodiment, in order to optimize battery usage, SaraService also implements intelligent power management. When GPS data is no longer needed by the SAT modem, SaraService will automatically reduce the update frequency of the GPS module to reduce power consumption. When the SAT modem requests GPS data again, SaraService will immediately resume the normal update frequency.

[0044] In one embodiment, in some cases, it may be necessary to encrypt the GPS data for transmission to ensure data security. SaraService integrates an encryption algorithm that can encrypt the GPS data before sending it to the SAT modem. In this way, even if the data is intercepted during transmission, it cannot be easily interpreted by unauthorized third parties.

[0045] In one embodiment, in order to further improve the flexibility and scalability of the system, SaraService supports a plug-in architecture. Developers can create custom plug-ins to extend the functionality of SaraService. For example, a plug-in can be developed to process a specific type of GPS data or implement a specific GPS data processing algorithm.

[0046] In one embodiment, in order to ensure the long-term stable operation of the system, SaraService also provides a detailed logging function. All key operations and events will be recorded so that developers and maintenance personnel can perform troubleshooting and performance optimization. Log files can be viewed and exported through the SaraService user interface, facilitating remote diagnosis and problem solving.

[0047] Through these mechanisms and functions, SaraService App can work efficiently and reliably with the SAT modem to ensure accurate transmission and processing of GPS data and provide users with stable and reliable positioning services.

[0048] In one embodiment, the system further includes a diagnostic module for detecting and reporting any abnormal conditions during GPS data transmission, thereby ensuring stable operation of the system.

[0049] In one embodiment, the Android Framework further includes a service status monitoring module for monitoring the running status of the SaraService App in real time to ensure the continuity and reliability of GPS data processing.

[0050] In one embodiment, the SAT Modem supports multiple satellite navigation systems, such as GPS, GLONASS, Galileo, etc., to provide more comprehensive and accurate positioning information.

[0051] In one embodiment, the system further includes a user configuration interface, allowing the user to adjust the reception frequency and accuracy of GPS data according to personal needs to optimize the performance and battery efficiency of the device.

[0052] In one embodiment, the SaraService App has a user-friendly interface with a manual switch function embedded in it. Users can use this manual switch to independently control whether to enable or disable the monitoring function of GPS data. This switch is designed to allow users to flexibly turn on or off the tracking function of GPS data according to their needs and preferences, so as to better manage their location information privacy.

[0053] In one embodiment, a permission management module is specially set up in the Android Framework, and the main responsibility of this module is to strictly control and manage the access rights of various applications to GPS data. Through this mechanism, the system can ensure that only those authorized applications have the authority to receive and process data information from GPS. This design is intended to enhance the security of the system and prevent unauthorized applications from abusing GPS data, thereby protecting the privacy of users and the security of devices. Through this permission management, users can use various applications more confidently without having to worry about their location information being improperly used.

[0054] In one embodiment, the satellite receiving and processing module (SAT RIL) has a backup cache module, the main function of which is to temporarily store the global positioning system (GPS) data received from the satellite modem (SAT Modem). This design is to cope with possible communication delays or interruptions, ensuring that the system can still operate normally and process GPS data under these adverse conditions. The existence of the backup cache module enables the SAT RIL to read the previously received data from the cache when the communication is temporarily interrupted, thereby avoiding the problem of data loss and processing interruption. This design greatly improves the reliability and stability of the system, and ensures the continuity and integrity of GPS data in various complex environments.

[0055] In one embodiment, the UART (Universal Asynchronous Receiver / Transmitter) has a dedicated baud rate setting module, which is responsible for configuring and adjusting the baud rate parameters of different types of wireless communication electronic devices. Baud rate refers to the number of symbols transmitted per second, which is an important indicator for measuring data transmission rate. By accurately setting the baud rate, the UART can ensure that data is transmitted stably and efficiently between wireless communication devices. This function is crucial to maintaining the reliability and performance of the communication system because it directly affects the accuracy and speed of data transmission. By flexibly adjusting the baud rate, the UART can adapt to a variety of different application scenarios and needs, thereby playing a key role in various wireless communication devices.

[0056] In one embodiment, the SaraService App not only has powerful data processing capabilities, but also is equipped with a detailed data recording mechanism. It can save the processed and optimized GPS data in a local storage device to ensure that the information can be safely stored. In this way, users can easily conduct subsequent analysis and backtracking when needed to better understand historical data and make decision support. This local storage function not only improves data security, but also provides users with flexible data management options, allowing them to access and utilize these valuable information resources at any time.

[0057] In one embodiment, the SaraService App periodically checks the status of the GPS module. If a GPS module failure or signal loss is detected, SaraService attempts to restart the GPS module and sends an error report broadcast through the Framework so that other applications or services can respond in a timely manner.

[0058] In one embodiment, referring to Figure 2 As shown, a method for GPS NMEA data transmission between an Android system and a satellite module is provided, comprising the following steps:

[0059] The wireless electronic communication device starts up the SaraService App and monitors the SAT modem.

[0060] Determine whether the SAT modem needs GPS data. If yes, proceed to the next step. If no, stop acquiring GPS data.

[0061] SaraService App obtains NMEA data and data encoding through Android GPS positioning service;

[0062] The encoded data is transmitted to the SAT modem through the GPS UART serial port to complete the GPS NMEA data transmission between the Android system and the satellite module.

[0063] When implementing it, follow these detailed steps:

[0064] (1) After the device starts, the Framework sends a startup broadcast;

[0065] (2) SaraReceiver receives the boot broadcast and starts the service SaraService;

[0066] (3) SaraService registers to receive the broadcast "android.telephony.action.NOTIFY_GPS_START_STOP";

[0067] (4) When the SAT modem needs GPS data, it sends the AT command “+AGPSPWR:1” to notify the AP;

[0068] (5) RIL processes this AT command, and QtiRIL issues a broadcast:

[0069] Action="android.phone.action.NOTIFY_GPS_START_STOP"

[0070] Extra="android.telephone.extra.EXTRA_GPS_STATE",value=1

[0071] (6) SaraService receives this broadcast and monitors GPS data through location services;

[0072] (7) If the GPS switch is off when the broadcast is sent, once the user turns on the GPS switch, they start monitoring GPS data, as shown in 6;

[0073] (8) After receiving GPS data, the onNmeaMessage() method will be called back;

[0074] (9) Call the writeSingleData() method to filter the specified type of GPS data;

[0075] (10) Call the writeDataToSerialPort() method to encode the GPS data as required, and then call the FWK interface to write the data;

[0076] (11) “SerialPort.write()” is the default method for writing serial port data in FWK. It sends data to the SAT modem via the GPS UART and adds serial hardware flow control “CRTSCTS”.

[0077] At this point, steps 8-11 are repeated as long as there is GPS data.

[0078] (12) If the SAT modem no longer needs GPS data, it will send the AT command "+AGPSPWR:0" to notify the AP;

[0079] (13) RIL processes this AT command, and QtiRIL issues a broadcast:

[0080] Action="android.phone.action.NOTIFY_GPS_START_STOP"

[0081] Extra="android.telephone.extra.EXTRA_GPS_STATE",value=0

[0082] (14) After receiving the broadcast, SaraService stops monitoring GPS data and no longer sends GPS data to SATmodem.

[0083] If the SAT modem needs GPS data again, steps 4 to 14 will be repeated.

[0084] In summary, the GPS NMEA data transmission scheme of the present invention follows the international standard GPS NMEA communication protocol and is responsible for transmitting NMEA data to the satellite module. The GPS data provided by the scheme is more real-time and complete, which helps the satellite module to join the satellite network more quickly and efficiently, and promotes the standardization and unification of GPS communication data formats between different devices.

[0085] The present invention sets a specific coding specification for the transmitted NMEA data, ensuring that the NMEA data of the AP end can be continuously and accurately transmitted to the satellite module. The satellite module performs parsing according to the coding specification to obtain the required positioning information.

[0086] In the solution of the present invention, NMEA data transmission between the Android system AP and the satellite module is carried out using an independent UART serial port, which ensures the independence, speed and security of data transmission and avoids conflicts with AT serial port command transmission.

[0087] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A GPS NMEA data transmission system between an Android system and a satellite module, comprising GPS and an Android system, characterized in that: include: SaraService App, running on Android system, is used to process GPS data and perform corresponding detection operations; Android Framework is the core framework of the Android system, which is used to manage the application life cycle and broadcast events; SAT RIL, connected to the Android system, used to process AT commands and forward related events; SAT Modem, connected to the Android system via the SAT RIL, for communicating with satellites and providing GPS data; UART is an asynchronous receiver-transmitter, which is connected to the wireless communication electronic device and the SAT Modem respectively, and is used to transmit serial data.

2. The GPS NMEA data transmission system between the Android system and the satellite module according to claim 1, characterized in that: The SaraService App is provided with a user interface and a manual switch for manually turning on or off the monitoring of GPS data.

3. The GPS NMEA data transmission system between the Android system and the satellite module according to claim 1, characterized in that: The Android Framework is provided with a permission management module for controlling the access rights of applications to GPS data, ensuring that only authorized applications can receive and process GPS data.

4. The GPS NMEA data transmission system between the Android system and the satellite module according to claim 1, characterized in that: The SAT RIL is provided with a buffer module for temporarily storing GPS data received from the SAT Modem to cope with communication delays or interruptions.

5. The GPS NMEA data transmission system between the Android system and the satellite module according to claim 1, characterized in that: The UART is provided with a baud rate setting module for setting the baud rates of different types of wireless communication electronic devices to ensure the stability and efficiency of data transmission.

6. The GPS NMEA data transmission system between the Android system and the satellite module according to claim 1, characterized in that: The SaraService App also has a data logging function, which can save the processed GPS data in local storage for subsequent analysis and backtracking.

7. The GPS NMEA data transmission system between the Android system and the satellite module according to claim 6, characterized in that: The SaraService App periodically checks the status of the GPS module. If a GPS module failure or signal loss is detected, SaraService attempts to restart the GPS module and sends an error report broadcast through the Framework so that other applications or services can respond in a timely manner.

8. The GPS NMEA data transmission system between the Android system and the satellite module according to claim 7, characterized in that: The SaraService App has an intelligent power management function. When GPS data is no longer needed by the SAT modem, SaraService will automatically reduce the update frequency of the GPS module; when the SAT modem requests GPS data again, SaraService will immediately resume the normal update frequency.

9. The GPS NMEA data transmission system between the Android system and the satellite module according to claim 8, characterized in that: The SaraService App also provides a logging function, all key operations and events will be recorded, and the log files can be viewed and exported through the SaraService user interface for remote diagnosis and problem solving.

10. A GPS NMEA data transmission method between an Android system and a satellite module, the method using the GPS NMEA data transmission system between an Android system and a satellite module as claimed in any one of claims 1 to 9, characterized in that: The following steps are involved: The wireless electronic communication device starts up the SaraService App and monitors the SAT modem. Determine whether the SAT modem needs GPS data. If yes, proceed to the next step. If no, stop acquiring GPS data. SaraService App obtains NMEA data and data encoding through Android GPS positioning service; The encoded data is transmitted to the SAT modem through the GPS UART serial port to complete the GPS NMEA data transmission between the Android system and the satellite module.