Satellite message transmission method, system and terminal equipment
By generating time stamp-based Beidou satellite message identification and transmission code, the problem of limited Beidou short message message capacity is solved, efficient association and transmission of multiple messages is achieved, and communication guarantees are improved in a network-free environment.
Patent Information
- Application Number
- CN202311561749.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-15
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2043-03-15
AI Technical Summary
In the prior art, the message capacity of Beidou short message is limited, resulting in the user's information content when sending and receiving messages through satellites, and it is difficult to effectively associate multiple messages.
By generating the identification of Beidou satellite messages based on the timestamp information, the message capacity occupies the Beidou short message, and the association of multiple messages is realized. The transmission code is used to indirectly indicate the ID of Beidou satellite messages, reducing the occupation of Beidou short message .
It realizes more efficient transmission and association of messages in Beidou short messages, improves users' communication guarantees in a network-free environment, and enhances visual correlation between messages.
Smart Images

Figure CN117811637B_ABST
Abstract
Description
[0001] This application is a divisional application. The application number of the original application is 202310288193.4, and the original application date is March 15, 2023. The entire contents of the original application are incorporated into this application by reference. Technical Field
[0002] The present application relates to the field of terminal technology, and in particular to a satellite message transmission method, system and terminal device. Background Art
[0003] With the development and progress of technology, the functions of terminal equipment are gradually improved and enriched. Taking mobile phones as an example, more and more mobile phones have Beidou short message communication service function, which can provide users with communication guarantee in a network-free environment.
[0004] Due to the rate limit of satellite communication, the message capacity of sending and receiving messages via satellite is currently limited. For example, in some implementations, Beidou short messages can transmit up to 400 bits of content. Moreover, the recipient number, location information, and information content entered by the user will occupy the message capacity of Beidou short messages. Therefore, there are large restrictions on the information content that users can actually enter in Beidou short messages. Summary of the invention
[0005] The present application provides a satellite message transmission method, system and terminal device, which can realize the identification of Beidou satellite messages in Beidou short messages and reduce the occupation of message space; wherein, the identification of Beidou satellite messages can facilitate the association of the relationship between multiple messages including Beidou satellite messages.
[0006] In a first aspect, an embodiment of the present application provides a satellite message transmission method. In the method, a first terminal device generates a first message identifier based on first timestamp information in response to a first operation on a first interface, wherein the first operation is used to instruct the first terminal device to send a satellite message; the first terminal device sends a first satellite message to a satellite, wherein the first satellite message includes the first message identifier and first message content.
[0007] In the method, the Beidou satellite message identity document (ID) is generated based on the timestamp information, which can reduce the occupation of the Beidou satellite message ID on the message capacity of the Beidou short message. In addition, through the Beidou satellite message ID, multiple messages can be associated, so that the user can more intuitively determine the relationship between the messages.
[0008] In one possible design, generating the first message identifier based on the first timestamp information includes: performing a modulus process on the first timestamp information using a first preset time length to obtain a modulus result; and generating the first message identifier based on the modulus result. Exemplarily, the first preset time length may be a preset maximum storage time length of the satellite message, such as 7 days. In some embodiments, generating the first message identifier based on the modulus result includes: using the modulus result as the first message identifier.
[0009] In this design, the ID of the Beidou satellite message is generated by using timestamp information. Compared with the ID of the Beidou message generated by using general technology, the message capacity occupied by the Beidou short message can be reduced.
[0010] In a possible design, the method further includes: the first terminal device receives a second satellite message sent by a satellite, the second satellite message includes a second message identifier and a second message content; wherein the second message identifier is the same as the first message identifier, and the second message content is the reply content of the first message content. In some embodiments, the second message identifier can be understood as the first message identifier, and after the communication peer device of the first terminal device receives the first message identifier and the first message content sent by the first terminal device, when replying to the first terminal device, the first message identifier is carried in the reply message, so that the message identifier can be used to indicate that the reply message is a reply message for the first message content. The first terminal device displays a second interface based on the second satellite message; wherein the second message content is associated with the first message content in the second interface. It can be understood that when the satellite message is transmitted, the satellite message carries the encoded message content and message identifier, and after the terminal device receives the second satellite message, the encoded message content and message identifier are decoded, and the decoded message content is displayed based on the decoded message identifier to determine the association relationship between the messages. Although encoding and decoding are not introduced in the embodiments of the present application, it can be understood that the message can be transmitted after encoding, and decoded after receiving.
[0011] In this design, the first terminal device matches the message identifier carried in the received satellite message with the message identifier of the message sent by the first terminal device, and can accurately obtain the association relationship between messages, thereby realizing the association display between messages, so that the user can more intuitively determine the relationship between messages.
[0012] In one possible design, before the first terminal device receives the second satellite message sent by the satellite, the method also includes: the first terminal device sends a first request message to the satellite in response to the second operation, and the first request message is used to request the satellite message to be received by the first terminal device.
[0013] In this design, the first terminal device can actively query the satellite to obtain the satellite message to be received, thereby expanding the implementation of more scenarios without network connection and improving the user's communication security.
[0014] In one possible design, the first timestamp information is the current universal time coordinated (UTC) obtained by the first terminal device in response to the first operation.
[0015] In this design, by adopting UTC, it is possible to generate Beidou satellite message IDs more accurately and avoid problems such as duplication of Beidou satellite message IDs.
[0016] Based on the above various possible designs, the first satellite message is a Beidou satellite message.
[0017] In a second aspect, an embodiment of the present application also provides another satellite message transmission method. A first terminal device generates a first message identifier based on first timestamp information in response to a first operation on a first interface, wherein the first operation is used to instruct the first terminal device to send a satellite message; the first terminal device generates a first transmission code based on the first timestamp information, wherein the first transmission code is used to obtain the first message identifier; the first terminal device sends a first satellite message to a satellite, wherein the first satellite message includes the first transmission code and first message content.
[0018] In this method, the ID and transmission code of the Beidou satellite message are generated based on the timestamp information, and the transmission code is carried in the satellite message. The transmission code can also indirectly indicate the ID of the Beidou satellite message, which can reduce the message capacity occupied by the Beidou short message. In addition, through the ID of the Beidou satellite message, multiple messages can be associated, so that users can more intuitively determine the relationship between messages.
[0019] In one possible design, generating the first message identifier based on the first timestamp information includes: performing a modulus process on the first timestamp information using a first preset time length to obtain a first modulus result; and generating the first message identifier based on the first modulus result. In one possible design, the first preset time length is greater than or equal to a preset storage time length of the satellite message. Exemplarily, the first preset time length may be a preset maximum storage time length of the satellite message, such as 7 days. In some embodiments, generating the first message identifier based on the first modulus result includes: using the first modulus result as the first message identifier.
[0020] In one possible design, generating the first transmission code based on the first timestamp information includes: performing a modulo processing on the first timestamp information using a second preset time length to obtain a second modulo result; generating the first transmission code according to the second modulo result. In one possible design, the second preset time length is greater than or equal to the maximum transmission time length required for the satellite message to be transmitted from the first terminal device to the server. Exemplarily, the second preset time length may be the maximum transmission time length required for the satellite message to be transmitted from the terminal device to the server, for example, may be 4 minutes. In some embodiments, generating the first transmission code according to the second modulo result includes: using the second modulo result as the first transmission code.
[0021] In this design, by using timestamp information to generate a transmission code and indirectly indicating the ID of the Beidou satellite message through the transmission code, the message capacity occupied by the Beidou short message can be reduced compared to the Beidou message ID generated by general technology.
[0022] In one possible design, the method also includes: the first terminal device receives a second satellite message sent by a satellite, the second satellite message including a second message identifier and a second message content; wherein the second message identifier is the same as the first message identifier, and the second message content is a reply content of the first message content; the first terminal device displays a second interface based on the second satellite message; wherein the second message content is displayed in association with the first message content in the second interface.
[0023] In one possible design, before the first terminal device receives the second satellite message sent by the satellite, the method also includes: the first terminal device sends a first request message to the satellite in response to the second operation, and the first request message is used to request the satellite message to be received by the first terminal device.
[0024] In one possible design, the first timestamp information is the current UTC obtained by the first terminal device in response to the first operation.
[0025] Based on the above various possible designs, the first satellite message is a Beidou satellite message.
[0026] In a third aspect, an embodiment of the present application also provides a satellite message transmission method. In the method, a server receives a first satellite message from a first terminal device via a satellite, the first satellite message includes a first transmission code and a first message content, and the first transmission code is used to obtain the first message identifier; the server obtains the first timestamp information based on the second timestamp information and the first transmission code; the first timestamp is earlier than the second timestamp; the server obtains the first message identifier based on the first timestamp information; the server sends a first message to the second terminal device, the first message includes the first message identifier and the first message content.
[0027] In the method, after the server parses the first transmission code from the satellite message, based on the encoding method of the first transmission code, the server can determine the first timestamp information corresponding to the first transmission code; further, based on the encoding method of the ID of the Beidou satellite message, the server can use the same encoding method to obtain the ID of the Beidou satellite message based on the first timestamp information. In this way, in the scenario where the ID of the Beidou satellite message needs to be transmitted, the message capacity occupied by the Beidou short message can be reduced.
[0028] In one possible design, the method also includes: the server receives a second message sent by the second terminal device, the second message including a second message identifier and a second message content; wherein the second message identifier is the same as the first message identifier, and the second message content is a reply content of the first message content; the server sends a second satellite message to the satellite, the second satellite message including the second message identifier and the second message content.
[0029] In a possible design, the server obtains the first timestamp information based on the second timestamp information and the first transmission code, including: the server generates the second transmission code based on the second timestamp information; when it is determined that the second transmission code is the same as the first transmission code, the first timestamp information is determined to be the second timestamp information; when it is determined that the second transmission code is different from the first transmission code, a transmission code is generated based on timestamp information that is M preset time intervals earlier than the second timestamp information, until third timestamp information corresponding to a transmission code that is the same as the first transmission code is determined, and the first timestamp information is determined to be the third timestamp information; wherein M is a positive integer taking values in ascending order, the preset time interval is less than or equal to a first preset duration; the first preset duration is a preset transmission duration for the first satellite message to be sent from the first terminal device to the server for reception.
[0030] In one possible design, the second timestamp information is the current UTC obtained when the server receives the first satellite message.
[0031] Based on the above various possible designs, the first satellite message is a Beidou satellite message.
[0032] In a fourth aspect, an embodiment of the present application further provides a terminal device, comprising a memory and one or more processors; wherein the memory is used to store computer program code, and the computer program code comprises computer instructions; when the computer instructions are executed by the processor, the terminal device executes the method executed by the first terminal device in any possible design of the first aspect or the second aspect mentioned above.
[0033] In a fifth aspect, an embodiment of the present application further provides a terminal device, which includes a module / unit for executing the method in any possible design of the first aspect or the second aspect. These modules / units can be implemented by hardware, or can be implemented by hardware executing corresponding software.
[0034] In some embodiments, the terminal device may include a processing module and a communication module, wherein the processing module may be used to generate a first message identifier based on first timestamp information in response to a first operation on a first interface, and the first operation is used to instruct the first terminal device to send a satellite message; the communication module may be used to send a first satellite message to a satellite, and the first satellite message includes the first message identifier and first message content.
[0035] In some other embodiments, the terminal device may include a processing module and a communication module, wherein the processing module may be used to generate a first message identifier based on first timestamp information in response to a first operation on a first interface, and the first operation is used to instruct the first terminal device to send a satellite message; the processing module is also used to generate a first transmission code based on the first timestamp information, and the first transmission code is used to obtain the first message identifier; the communication module is used to send a first satellite message to a satellite, and the first satellite message includes the first transmission code and first message content.
[0036] In the sixth aspect, an embodiment of the present application also provides a server, comprising a memory and one or more processors; wherein the memory is used to store computer program code, and the computer program code comprises computer instructions; when the computer instructions are executed by the processor, the server executes a method executed by the server in any possible design in the third aspect above.
[0037] In a seventh aspect, an embodiment of the present application further provides a server, which includes a module / unit for executing the method in any possible design of the third aspect above. These modules / units can be implemented by hardware, or by executing corresponding software implementations by hardware.
[0038] In some embodiments, the server may include a processing module and a communication module, wherein the communication module is used to receive a first satellite message from a first terminal device via a satellite, the first satellite message including a first transmission code and a first message content, and the first transmission code is used to obtain the first message identifier; the processing module is used to obtain first timestamp information based on second timestamp information and the first transmission code; the first timestamp is earlier than the second timestamp; the processing module is also used to obtain the first message identifier based on the first timestamp information; the communication module is also used to send a first message to the second terminal device, the first message including the first message identifier and the first message content.
[0039] In an eighth aspect, an embodiment of the present application further provides a satellite message transmission system. The system may include at least the terminal device described in the fourth aspect and the server described in the sixth aspect.
[0040] In the ninth aspect, a computer-readable storage medium is provided, which stores a computer program (also referred to as code, or instructions) which, when executed on a computer, enables the computer to execute a method in any possible design of the first aspect, the second aspect, or the third aspect.
[0041] In the tenth aspect, a computer program product is provided, which includes: a computer program (also referred to as code, or instruction), which, when executed, enables a computer to execute a method in any possible design of the first aspect, the second aspect, or the third aspect.
[0042] In the eleventh aspect, a graphical user interface on a terminal device is also provided, the terminal device having a display screen, one or more memories, and one or more processors, the one or more processors being used to execute one or more computer programs stored in the one or more memories, the graphical user interface including a graphical user interface displayed when the first terminal device executes any possible implementation of the first aspect or the second aspect of the embodiment of the present application.
[0043] In a twelfth aspect, the present application also provides a chip, which is used to read a computer program stored in a memory and execute any of the above aspects and possible methods designed to be executed by a terminal device.
[0044] In a thirteenth aspect, the present application further provides a chip system, which includes a processor for supporting a computer device to implement any of the above aspects and methods for execution by each possible design terminal device. In one possible design, the chip system also includes a memory, which is used to store programs and data necessary for the computer device. The chip system can be composed of a chip, or it can include a chip and other discrete devices.
[0045] It should be noted that for the beneficial effects of the various designs of the terminal devices provided in the second to thirteenth aspects of the embodiments of the present application, please refer to the beneficial effects of any possible design in the first to third aspects, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A schematic diagram of a hardware architecture of a terminal device provided in an embodiment of the present application;
[0047] Figure 2 A software system architecture block diagram of a terminal device provided in an embodiment of the present application;
[0048] Figure 3 An application scenario diagram applicable to a satellite message transmission method provided in an embodiment of the present application;
[0049] Figure 4 A schematic diagram of an interface of a satellite message transmission method provided in an embodiment of the present application;
[0050] Figure 5 One of the flowcharts of a satellite message transmission method provided in an embodiment of the present application;
[0051] Figure 6 A second flowchart of a satellite message transmission method provided in an embodiment of the present application;
[0052] Figure 7 A third flowchart of a satellite message transmission method provided in an embodiment of the present application;
[0053] Figure 8 The fourth flowchart of a satellite message transmission method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0055] The embodiments of the present application can be applied to the field of terminal technology, and can be specifically applicable to application scenarios involving satellite short message communication. In the following embodiments, satellite short messages are Beidou short messages as examples. The realization of Beidou related technologies and functions can rely on satellites or satellite networking, etc., to achieve communication and services. Although the development of ground communication technology can meet the needs of users with more communication scenarios, it is impossible to achieve comprehensive coverage of ground communication networks. Therefore, in some areas where ground communication networks do not exist or cannot exist, communication can be achieved based on Beidou technology, that is, Beidou messages (also known as "Beidou satellite messages", "Beidou short messages", "Beidou messages", "satellite messages", etc., which can be used interchangeably in the embodiments of the present application) communication service functions, which can be achieved by satellites or satellite networking.
[0056] In an optional embodiment, the sending end device can send a Beidou satellite message to the receiving end device in the form of a Beidou short message. The receiving end device can reply to the Beidou satellite message through instant messaging technology or an operator network. Based on this, the sending end device can also actively query the reply message through the Beidou satellite channel when there is no network connection, and can also obtain the reply message through the long connection channel between the server and the network connection.
[0057] Due to the limitations of Beidou satellite message usage, resources and other factors, in order to improve the accuracy of communication including Beidou satellite messages, a group of interactive communication messages can be associated by carrying the Beidou satellite message identity document (ID) during the message interaction process. Optionally, a group of communication messages including Beidou satellite messages includes at least one Beidou satellite message, and the reply message may be a Beidou satellite message or may not be a Beidou satellite message, and this application does not limit this. It can be understood that a group of communication messages can be understood as the reply messages of both parties to the communication after the sending end device initiates the communication.
[0058] However, due to the capacity limitation of Beidou short messages in satellite communications, for example, the maximum transmission capacity is 400 bits, adding any information to the Beidou short message will reduce the information that can actually be carried in the Beidou short message. When the unique identifier generated by general technology is generally expressed as long integer data, occupying 64 bits, the capacity of the Beidou short message that can actually carry information is reduced.
[0059] In view of this, an embodiment of the present application provides a satellite message transmission method. In the method, a new scheme for generating an ID of a Beidou satellite message is provided. By generating an ID of a Beidou satellite message based on a timestamp, the space occupied by the ID of the Beidou satellite message can be compressed. In this way, not only can the association relationship between multiple messages be determined by the ID of the Beidou satellite message, but also the occupation impact on the message capacity of the Beidou short message can be reduced.
[0060] The embodiments of the present application can be applied to terminal devices with Beidou short message communication service functions, such as mobile phones, PCs, tablet computers, wearable devices (e.g., watches, bracelets, etc.), vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), smart home devices (e.g., smart TVs, smart speakers, etc.). It is understandable that the embodiments of the present application do not impose any restrictions on the specific types of terminal devices.
[0061] The terminal device to which the embodiments of the present application can be applied includes but is not limited to a terminal device equipped with Or terminal devices of other operating systems. The portable terminal device may also be other portable terminal devices, such as a laptop computer (Laptop) with a touch-sensitive surface (eg, a touch panel).
[0062] Figure 1 : A schematic diagram of the hardware structure of a possible terminal device is shown. The terminal device 200 includes: a radio frequency (RF) circuit 210, a power supply 220, a processor 230, a memory 240, an input unit 250, a display unit 260, an audio circuit 270, a communication interface 280, and a wireless fidelity (Wi-Fi) module 290 and other components. Those skilled in the art can understand that Figure 1 The hardware structure of the terminal device 200 shown in the figure does not constitute a limitation on the terminal device 200. The terminal device 200 provided in the embodiment of the present application may include more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. Figure 1 The various components shown in the EMBODIMENTS 2000 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.
[0063] Combine the following Figure 1 The components of the terminal device 200 are described in detail:
[0064] The RF circuit 210 can be used for receiving and sending data during communication or calls. In particular, after receiving downlink data from the base station, the RF circuit 210 sends it to the processor 230 for processing; in addition, the uplink data to be sent is sent to the base station. Generally, the RF circuit 210 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc.
[0065] In addition, the RF circuit 210 can also communicate with other devices through a wireless communication network. The wireless communication can use any communication standard or protocol, including but not limited to global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), long term evolution (LTE), email, short messaging service (SMS), etc.
[0066] The terminal device 200 can also implement communication services and interact with other terminal devices, so the terminal device 200 needs to have a data transmission function, that is, the terminal device 200 needs to include a communication module. Figure 1 Communication modules such as the RF circuit 210, the Wi-Fi module 290, and the communication interface 280 are shown, but it is understandable that at least one of the above components or other communication modules (such as a Bluetooth module) for implementing communication exist in the terminal device 200 to perform data transmission.
[0067] For example, when the terminal device 200 is a mobile phone, the terminal device 200 may include the RF circuit 210, and may also include the Wi-Fi module 290, or may include a Bluetooth module ( Figure 1 When the terminal device 200 is a computer, the terminal device 200 may include the communication interface 280, and may also include the Wi-Fi module 290, or may include a Bluetooth module ( Figure 1When the terminal device 200 is a tablet computer, the terminal device 200 may include the Wi-Fi module, or may include a Bluetooth module ( Figure 1 not shown).
[0068] Wi-Fi technology is a short-range wireless transmission technology. The terminal device 200 can connect to an access point (AP) through the Wi-Fi module 290 to access the data network. The Wi-Fi module 290 can be used for receiving and sending data during the communication process.
[0069] The terminal device 200 can be physically connected to other devices through the communication interface 280. Optionally, the communication interface 280 is connected to the communication interface of the other device through a cable to achieve data transmission between the terminal device 200 and the other device.
[0070] The memory 240 can be used to store software programs and modules. The processor 230 executes various functional applications and data processing of the terminal device 200 by running the software programs and modules stored in the memory 240. Optionally, the memory 240 may mainly include a program storage area and a data storage area. Among them, the program storage area can store an operating system (mainly including software programs or modules corresponding to the kernel layer, system layer, application framework layer, and application layer, etc.).
[0071] In addition, the memory 240 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0072] The input unit 250 can be used to receive the editing operations of various different types of data objects such as digital or character information input by the user, and generate key signal input related to the user settings and function control of the terminal device 200. Optionally, the input unit 250 can include a touch panel 251 and other input devices 252.
[0073] The touch panel 251, also known as a touch screen, can collect user touch operations on or near it (such as operations performed by the user using a finger, stylus, or any other suitable object or accessory on or near the touch panel 251), and drive the corresponding connection device according to a pre-set program. In an embodiment of the present application, the touch panel 251 can collect user operations on the display panel 261, such as touch operations for replying Beidou satellite messages in the interface displayed on the display panel 261.
[0074] Optionally, the other input devices 252 may include, but are not limited to, one or more of a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, a joystick, etc.
[0075] The display unit 260 can be used to display the information content input by the user or the information content provided to the user and various menus of the terminal device 200. The display unit 260 is the display system of the terminal device 200, which is used to present the interface and realize human-computer interaction. The display unit 260 may include a display panel 261. Optionally, the display panel 261 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. In the embodiment of the present application, when the terminal device 200 is a receiving end of a Beidou satellite message, the display unit 260 can be used to display an interface for the user, so that the user can view the received Beidou satellite message through the interface, and can also reply to the Beidou satellite message through the interface; or, when the terminal device 200 is a sending end device of a Beidou satellite message, the display unit 260 can also be used to display an interface for the user, so that the user can send the Beidou satellite message through the interface, and can also receive the message replied by the receiving end through the interface.
[0076] The processor 230 is the control center of the terminal device 200, and uses various interfaces and lines to connect various components, and executes various functions and processes data of the terminal device 200 by running or executing software programs and / or modules stored in the memory 240, and calling data stored in the memory 240, thereby realizing various services based on the terminal device 200. In the embodiment of the present application, the processor 230 can be used to implement the satellite message transmission method provided in the embodiment of the present application.
[0077] The terminal device 200 also includes a power supply 220 (such as a battery) for supplying power to various components. Optionally, the power supply 220 can be logically connected to the processor 230 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.
[0078] like Figure 1As shown, the terminal device 200 also includes an audio circuit 270, a microphone 271 and a speaker 272, which can provide an audio interface between the user and the terminal device 200. The audio circuit 270 can be used to convert audio data into a signal that can be recognized by the speaker 272, and transmit the signal to the speaker 272, which is converted into a sound signal and output by the speaker 272. The microphone 271 is used to collect external sound signals (such as the sound of a person speaking, or other sounds, etc.), and convert the collected external sound signals into signals that can be recognized by the audio circuit 270, and send them to the audio circuit 270. The audio circuit 270 can also be used to convert the signal sent by the microphone 271 into audio data, and then output the audio data to the RF circuit 210 to send it to, for example, another terminal device, or output the audio data to the memory 240 for subsequent further processing.
[0079] Although not shown, the terminal device 200 may also include a camera, at least one sensor, etc., which will not be described in detail herein. The at least one sensor may include but is not limited to a pressure sensor, an air pressure sensor, an acceleration sensor, a distance sensor, a fingerprint sensor, a touch sensor, a temperature sensor, etc.
[0080] The operating system (OS) involved in the embodiment of the present application is the most basic system software running on the terminal device 200. The software system of the terminal device 200 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes an operating system adopting a layered architecture as an example to exemplify the software system architecture of the terminal device 200.
[0081] Figure 2 A software system architecture block diagram of a terminal device provided in an embodiment of the present application. Figure 2 As shown, the software system architecture of the terminal device can be a layered architecture, for example, the software can be divided into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the operating system is divided into five layers, from top to bottom, namely, the application layer, the application framework layer (framework, FWK), the runtime and system library, the kernel layer, and the hardware layer.
[0082] The application layer can include a series of application packages. Figure 2As shown, the application layer may include camera, settings, skin modules, user interface (UI), third-party applications, etc. Among them, third-party applications may include wireless local area network (WLAN), music, calls, Bluetooth, video, memo, information, etc. In the embodiment of the present application, the application layer may focus on the instant messaging application (application, APP) (such as Changlian APP) or information APP that can be provided, and the sending and receiving of Beidou satellite messages may be realized in the instant messaging APP or the information APP; among them, when the terminal device has no network service, the Beidou short message form may be used to send messages.
[0083] In one possible implementation, applications can be developed using the Java language by calling the application programming interface (API) provided by the application framework layer. Developers can interact with the bottom layer of the operating system (such as the hardware layer, kernel layer, etc.) through the application framework layer to develop their own applications. The application framework layer is mainly a series of services and management systems of the operating system.
[0084] The application framework layer provides application programming interfaces and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions. Figure 2 As shown, the application framework layer may include an activity manager, a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0085] The activity manager is used to manage the life cycle of each application and provide common navigation back functions, providing an interactive interface for all program windows.
[0086] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make the data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0087] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0088] The phone manager is used to provide communication functions for terminal devices, such as the management of call status (including answering, hanging up, etc.).
[0089] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0090] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, the terminal device vibrates, the indicator light flashes, etc.
[0091] The runtime includes the core library and the virtual machine. The runtime is responsible for the scheduling and management of the operating system.
[0092] The core library consists of two parts: one is the function that the Java language needs to call, and the other is the core library of the operating system. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0093] The system library may include multiple functional modules, such as a surface manager, a media framework, a 3D graphics processing library (such as OpenGL ES), a 2D graphics engine (such as SGL), etc.
[0094] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0095] The media framework supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media framework can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0096] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0097] A 2D graphics engine is a drawing engine for 2D drawings.
[0098] In some embodiments, a three-dimensional graphics processing library may be used to draw a three-dimensional motion trajectory image, and a two-dimensional graphics engine may be used to draw a two-dimensional motion trajectory image.
[0099] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0100] The hardware layer can include various types of sensors, such as accelerometers, gravity sensors, touch sensors, etc.
[0101] Usually, the terminal device 200 can run multiple applications at the same time. In a simpler way, one application can correspond to one process, and in a more complex way, one application can correspond to multiple processes. Each process has a process number (process ID).
[0102] It should be understood that in the embodiments of the present application, "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple. "Multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship.
[0103] In addition, it should be understood that, in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order.
[0104] It should be understood that the hardware structure of the terminal device can be as follows Figure 1 As shown, the software system architecture can be Figure 2 As shown, the software programs and / or modules corresponding to the software system architecture in the terminal device can be stored in the memory 240, and the processor 230 can run the software programs and applications stored in the memory 240 to execute the process of a satellite message transmission method provided in an embodiment of the present application.
[0105] In order to facilitate understanding of the satellite message transmission method provided by the present application, the following Figures 3 to 8 The content shown introduces the implementation process of the method provided by this application.
[0106] See also Figure 3, is a schematic diagram of an application scenario applicable to a satellite message transmission method provided in an embodiment of the present application. The application scenario may include but is not limited to: mobile phone A 301, satellite 302, server 303 and mobile phone B 304. Figure 3 The application scenario shown first introduces the communication process involving Beidou satellite messages.
[0107] Mobile phone A301 can be used to send Beidou satellite messages to satellite 302 in the form of Beidou short messages when there is no network connection. The Beidou satellite message may include but is not limited to: recipient number, message association identifier, etc. The message association identifier can be used to directly or indirectly indicate the ID of the Beidou satellite message, and the ID of the Beidou satellite message can be used to determine the association relationship between multiple messages. For example, Figure 4 A schematic diagram of an interactive interface of a satellite message transmission method provided in an embodiment of the present application. Figure 4 It may include an interface 410 shown by mobile phone A301. Interface 410 may be used to indicate the display interface after Zhang San sends a Beidou satellite message to recipients Li Si and Wang Wu via mobile phone A301. It may include a preview card 401 for sending a Beidou satellite message. It should be noted that in the embodiments of the present application, the application used to send and receive Beidou satellite messages is not limited. For example, it may be an instant messaging APP or a messaging APP. Also, in the embodiments of the present application, although Figure 4 Beidou satellite messages are displayed in the form of message cards. In actual implementation, they can also be displayed in the form of text content, etc. This application does not limit this.
[0108] Satellite 302 can be used to receive Beidou satellite messages from mobile phone A 301, and determine the server 303 corresponding to the recipient according to the recipient number carried in the Beidou satellite message. Then, satellite 302 is also used to send the Beidou satellite message to the server 303 corresponding to the recipient. Among them, satellite 302 can send the Beidou satellite message to server 303 through the Beidou satellite ground information processing center (also referred to as "ground station").
[0109] The server 303 can be used to receive the Beidou satellite message sent by the satellite 302, and determine the terminal device corresponding to the recipient according to the recipient number carried in the Beidou satellite message, for example, it can be mobile phone B 304. Exemplarily, the server 303 can also be used to parse the message association identifier carried in the Beidou satellite message to obtain the ID of the Beidou satellite message. And, the server 303 can be used to send the Beidou satellite message including the ID of the Beidou satellite message to the mobile phone B 304.
[0110] Mobile phone B 304 can be used to receive the Beidou satellite message sent from the server 303; wherein the Beidou satellite message can include the ID of the Beidou satellite message. Exemplarily, Figure 4 It may also include an interface 420 shown by mobile phone B 304, which may be used to indicate the display interface after recipient Li Si receives the Beidou satellite message from Zhang San through mobile phone B 304, and may include a preview card 402 for receiving the Beidou satellite message. As can be seen from the interface 420, the preview card 402 may include a "reply" control, and the user may reply to the message to mobile phone A 301 through the "reply" control.
[0111] Mobile phone B 304 can also be used to reply to the received Beidou satellite message in response to the user's touch operation on the "reply" control. Figure 4 The interface 430 shown by the mobile phone B 304 may also be included. The interface 430 may be used to indicate the reply interface of the recipient Li Si to the Beidou satellite message from Zhang San. The reply interface may include a preview card 403 for replying to the Beidou satellite message. In addition, based on the reply to the Beidou satellite message from Zhang San, the preview card 403 may be displayed in association with the preview card 402 shown in the interface 420, for example, it may be displayed as an overlay display as shown in the interface 430, so that the user can intuitively determine that the two messages have a reply association relationship.
[0112] Then, mobile phone B 304 can also be used to send a reply message to the server 303. The reply message can carry the ID of the Beidou satellite message to indicate which Beidou satellite message the reply message is for.
[0113] The server 303 may also be used to receive a reply message from the mobile phone B 304 and store the reply message.
[0114] In some embodiments, when the mobile phone A301 is in a state of no network connection, due to the mobility and other characteristics of the Beidou satellite, it is difficult for the Beidou satellite to actively perform downlink communication. In general scenarios, after sending the Beidou satellite message, the mobile phone A301 can actively query the satellite 302 through the letter query mechanism whether there is a message to be received. Based on this, the mobile phone A301 is also used to send a letter download request message to the satellite 302. After receiving the letter download request message, the satellite can continue to send a letter download request message to the server 303. The letter download request can carry at least one of the contact number and message association identifier on the mobile phone A301. For example, the contact number on the mobile phone A301 can be Zhang San's number.
[0115] The server 303 can also be used to receive a letter download request message from the satellite 302, and query whether there is a corresponding message to be received according to the contact number and / or message association identifier on the mobile phone A301 carried in the letter download request message. Exemplarily, when the server 303 queries that there is a corresponding reply message, it returns the corresponding reply message to the satellite 302.
[0116] Satellite 302 is also used to receive a reply message returned from server 303, and send the reply message to mobile phone A301; wherein the reply message can carry a message association identifier, the message association identifier can be used to directly or indirectly indicate the ID of the Beidou satellite message, and the ID of the Beidou satellite message can be used to determine the association relationship between multiple messages.
[0117] Mobile phone A 301 can be used to receive a reply message sent from satellite 302, obtain the ID of the Beidou satellite message according to the message association identifier carried in the reply message, and display the interface according to the ID of the Beidou satellite message. Figure 4 The interface 440 shown in the mobile phone A 301 may also be included. The interface 440 may be used to indicate the display interface after Zhang San receives the reply message from Li Si. The display interface may include a preview card 404 of the received reply message. According to the ID of the Beidou satellite message carried in the reply message, the preview card 404 may be displayed in conjunction with the preview card 401 shown in the interface 410 for associated display. For example, the overlay display shown in the interface 440 may be displayed, so that the user can intuitively determine that the two messages have an associated relationship of reply.
[0118] It should be noted that the touch operation involved in the above introduction can be implemented by, but not limited to, the following methods: click operation, double-click operation, long press operation, or voice command, etc., and can be implemented according to the configuration of the terminal device. In addition, the network connection status involved in the above scenarios may include cellular network, Wi-Fi network, etc.; it can be understood that when there is no network connection, the terminal device can use the Beidou satellite network for communication.
[0119] Based on the above description of the interface processing effect that can be achieved by the method provided in the embodiment of the present application, the following describes the implementation process of the satellite message transmission method provided by the present application to illustrate how to use the method provided by the present application to achieve the above-mentioned effect. Figure 4 The interface processing effect is shown. This makes it possible to reply to Beidou satellite messages and receive reply messages, meet more Beidou communication application scenarios, and provide users with better communication guarantees.
[0120] In an optional embodiment, see Figure 5, is a flow chart of a satellite message transmission method provided in an embodiment of the present application. The flow may include:
[0121] Step 501: The first terminal device obtains the message content of the Beidou satellite message and generates the ID of the Beidou satellite message.
[0122] In a possible embodiment, the first terminal device uses the current timestamp information to generate the ID of the Beidou satellite message. Exemplarily, the current timestamp information can be determined, for example, by the universal time coordinated (UTC). In general, UTC is a time unit in seconds (S), and the UTC time of the terminal device is calibrated by the Beidou satellite. Since Beidou satellite messages generally require manual editing by users, in order to reduce the amount of calculation, it can be considered from the minute level; and, due to the use restrictions and resource restrictions of Beidou satellites, and the use scenarios of Beidou satellite messages (generally used in a more urgent state without network connection), Beidou satellite messages can preset a storage validity period. Exemplarily, the ID of the Beidou satellite message generated based on UTC can refer to the following formula 1:
[0123]
[0124] Among them, (ID) in formula 1 B It can represent the ID of the Beidou satellite message after conversion to binary. (ID) D Beidou satellite message ID that can be expressed in decimal; UTC N1 It can represent the current UTC when the first terminal device generates the ID of the Beidou satellite message; It can be used to indicate the conversion of UTC time in seconds to UTC time in minutes; % can be used to indicate the modulo operation; X can be used to indicate the preset storage validity period; C can be used to indicate an integer ≥ 0, which can be a custom constant to avoid conflicts in Beidou satellite message IDs.
[0125] For example, in the embodiment of the present application, X is 7 days as an example, and a custom configuration can be performed in actual implementation. When X is 7, (X*24*60)=10800, (ID) D Convert to (ID) B After that, it can occupy at least 14 bits. In this way, compared with the long type identifier generated by general technology (generally occupying 64 bits), the occupation of Beidou short message space can be reduced.
[0126] It can be understood that based on the ID of the Beidou satellite message calculated in the manner shown in Formula 1, when X is 7, the ID of the Beidou satellite message will not be reused within 7 days, so the problem of incorrect message association will not occur. In addition, after the first terminal device generates the ID of the Beidou satellite message, it can simultaneously enable the timing of the Beidou satellite message, and when the timing reaches the preset duration threshold, the Beidou satellite message can be cleared; for example, the preset duration threshold can be (X*24*60+C), or it can also be X*24*60, etc. When X is 7, the Beidou satellite message can be stored for 7 days, so the Beidou satellite message ID corresponding to the Beidou satellite message will not affect the ID value of the Beidou satellite message in the next cycle.
[0127] Step 502: The first terminal device sends a Beidou short message (also referred to as a "Beidou satellite message" in the embodiment of the present application) to the satellite, and the Beidou short message carries the ID of the Beidou satellite message. Exemplarily, the first terminal device can frame the Beidou satellite message based on the message content and the ID of the Beidou satellite message obtained in step 501, and send it to the satellite in the form of a Beidou short message. In addition, it can be understood that the Beidou short message can also carry but is not limited to: one or more recipient numbers, location information of the first terminal device, etc.
[0128] Step 503: The satellite sends a Beidou short message to the server, and the Beidou short message carries the ID of the Beidou satellite message. Exemplarily, the satellite can send the Beidou short message to the server through the Beidou satellite ground information processing center. It can be understood that the satellite or the Beidou satellite ground information processing center can determine one or more servers corresponding to one or more recipients based on one or more recipient numbers included in the Beidou short message; wherein, multiple recipients can correspond to the same server or different servers, and this application does not limit this.
[0129] Step 504: The server sends a Beidou short message to the second terminal device, and the Beidou short message carries the ID of the Beidou satellite message. Exemplarily, the server can determine the second terminal device corresponding to the recipient according to the recipient number in the Beidou short message. It can be understood that Figure 5 The second terminal device corresponding to a recipient is taken as an example. In actual implementation, it can be determined according to the recipient included in the Beidou short message.
[0130] Step 505: The second terminal device obtains the message content of the reply message to the Beidou satellite message. Exemplarily, the second terminal device can display the received Beidou satellite message to the user through a display interface, and can also provide the user with a control for replying to the Beidou satellite message, such as Figure 4Then, in response to the user's touch operation of replying to the Beidou satellite message, the second terminal device can obtain the message content of the reply message to the Beidou satellite message, for example Figure 4 As shown in interface 420.
[0131] Step 506: The second terminal device sends a reply message (also referred to as a "reply message" in the embodiment of the present application) to the server, and the reply message carries the ID of the Beidou satellite message. Exemplarily, the second terminal device can frame the reply message based on the message content of the reply message obtained in step 505 and the ID of the Beidou satellite message received from step 504 to obtain the reply message.
[0132] Step 507: The server stores the reply message. It is understood that when the first terminal device in a state of no network connection receives the reply message, it is necessary to actively query using the letter query mechanism, and the server can first store the reply message. In addition, in order to avoid wasting storage resources, the server can also set a preset storage time, for example, the preset storage time can be 7 days.
[0133] Step 508: The first terminal device sends a letter query request message to the satellite. The letter query request message may include a contact number on the first terminal device and / or an ID of a Beidou satellite message, and the contact number on the first terminal device and / or the ID of a Beidou satellite message may be used by the server to query whether there is a reply message to be received by the first terminal device.
[0134] Step 509: The satellite sends a letter query request message to the server. Exemplarily, the satellite may also send the letter query request message through Beidou satellite ground information processing. Similarly, the letter query request message may include the contact number on the first terminal device and / or the ID of the Beidou satellite message, and the contact number on the first terminal device and / or the ID of the Beidou satellite message may be used by the server to query whether there is a reply message to be received by the first terminal device.
[0135] Step 510: The server queries whether there is a reply message in response to the letter query request message. Exemplarily, the server may query whether there is a reply message corresponding to the contact number on the first terminal device and / or the ID of the Beidou satellite message based on the contact number on the first terminal device and / or the ID of the Beidou satellite message. When it is determined that there is a reply message, continue to execute the following step 511.
[0136] Step 511, the server sends a reply message to the satellite, and the reply message carries the ID of the Beidou satellite message. Exemplarily, the server can send a reply message to the satellite through the Beidou satellite ground information processing center. It can be understood that when the server or the Beidou satellite ground information processing sends a reply message to the satellite, it can be sent in the form of a Beidou short message through the Beidou satellite channel, so that the uplink communication of the Beidou satellite can be realized.
[0137] Step 512: The satellite sends a reply message to the first terminal device, and the reply message carries the ID of the Beidou satellite message.
[0138] Step 513: The first terminal device displays the message content of the reply message based on the ID of the Beidou satellite message. Figure 4 In the interface 440 shown, mobile phone A can display the message content after decoding the reply message in the form of a preview card 404. It can be seen from the preview card 404 that mobile phone A can associate and display multiple messages with the same Beidou satellite message ID, such as the superimposed display shown in interface 440.
[0139] In another optional embodiment, see Figure 6 , is another flow chart of a satellite message transmission method provided in an embodiment of the present application. The flow may include:
[0140] Step 501: The first terminal device obtains the content of the Beidou satellite message and generates an ID of the Beidou satellite message. Figure 5 The content of the introduction will not be repeated here.
[0141] Step 601: The first terminal device generates a first transmission code based on the ID of the Beidou satellite message.
[0142] In a possible implementation, the ID of the Beidou satellite message can be determined by the timestamp information when the first terminal device generates the ID of the Beidou satellite message (for ease of distinction in the following embodiments, referred to as the first timestamp information); and the maximum transmission time required for the Beidou satellite message to be sent from the first terminal device to the server does not exceed Y minutes (min), for example, Y can be 1min, or 2min, or 3min or 4min, etc., and can be customized according to the actual business situation during specific implementation. Among them, 1min is converted to binary and occupies 1bit, and 2min to 4min are converted to binary and occupies 2bit. Therefore, compared with the space occupied by the ID of the Beidou satellite message, secondary compression can be achieved through the transmission code, thereby further reducing the occupation of the message capacity of the Beidou short message.
[0143] Based on this, the first terminal device can generate the ID of the Beidou satellite message based on the first timestamp information, and can also generate the first transmission code based on the first timestamp information. In this way, the first transmission code can be transmitted in the Beidou short message; it can be understood that the first transmission code can be used to indicate the first timestamp information, so as to further calculate the ID of the Beidou satellite message through the first timestamp information.
[0144] Exemplarily, the first terminal device generates the first transmission code based on the first timestamp information by referring to the following formula 2-1:
[0145]
[0146] Among them, (TC1) in formula 2-1 B It can represent the first transmission code after conversion to binary, (TC1) D The first transmission code that can represent decimal; UTC N1 It may represent the current UTC when the first terminal device generates the ID of the Beidou satellite message (referred to as the first UTC in the following embodiments for the sake of distinction); It can be used to indicate the conversion of UTC time in seconds to UTC time in minutes; % can be used to indicate a remainder operation; Y can be used to indicate the maximum pre-configured transmission time for a Beidou short message to be sent from the first terminal device to the server.
[0147] For example, taking Y as 4min as an example, (TC1) D The possible values are 0, 1, 2, 3, corresponding to (TC1) B The values are 00, 01, 10, 11.
[0148] Step 502': the first terminal device sends a Beidou short message to the satellite, where the Beidou short message carries the first transmission code.
[0149] Step 503': the satellite sends a Beidou short message to the server, wherein the Beidou short message carries the first transmission code.
[0150] It can be understood that step 502' and Figure 5 Similar to step 502 described above, step 503′ is similar to step 504′. Figure 5 The step 503 described is similar, except that the Beidou short message transmitted in step 502' carries the first transmission code.
[0151] Step 602: The server determines the ID of the Beidou satellite message based on the first transmission code.
[0152] Corresponding to the first terminal device generating the first transmission code based on the first timestamp information, the server can determine the first timestamp information based on the same rule. Exemplarily, the server can generate the second transmission code based on the current timestamp information when the server receives the Beidou short message (for ease of distinction in the following embodiments, referred to as the second timestamp information), which can be referred to in the following formula 2-2:
[0153]
[0154] Among them, (TC2) in formula 2-2 B It can represent the second transmission code after conversion to binary, (TC2) D A second transmission code that can represent decimal; UTC N2 It may indicate the UTC corresponding to the Beidou satellite message received by the server (referred to as the second UTC in the following embodiments for the convenience of distinction); It can be used to indicate the conversion of UTC time in seconds to UTC time in minutes; % can be used to indicate the modulo operation; Y can be used to indicate the maximum transmission time pre-configured for the Beidou short message from the first terminal device to the server. y can represent a variable constant, which can be 0 when the server performs initial calculations.
[0155] For example, taking Y as 4min as an example, (TC2) D The possible values are 0, 1, 2, 3, corresponding to (TC2) B The values are 00, 01, 10, 11.
[0156] Furthermore, the server determines whether the second transmission code is the same as the first transmission code. If they are the same, the UTC can be determined. N2 with UTC N1 Same; if not, UTC can be determined N2 with UTC N1 If they are not the same, the server can use UTC N2 Push forward 1 minute to continue the calculation. For example, at this time, y in formula 2-2 can be taken as 1, and the second transmission code is recalculated until the timestamp information corresponding to the second transmission code is found when the second transmission code is the same as the first transmission code. It should be noted that formula 2-2 is only an optional example and is not used to limit the actual formula used in the specific calculation when the present application is implemented. For example, the first UTC may be 00:03, then the first transmission code is 3, and the second UTC is 00:04. The second transmission code obtained by the server's first calculation is 0, and it can be determined that the second transmission code is different from the first transmission code; then, the server can push forward 1 minute (that is, 00:03) based on 00:04 for a second calculation, and obtain a second transmission code of 3. At this time, the second transmission code is the same as the first transmission code, and the server can determine that the first UTC is obtained.
[0157] Based on the obtained first UTC, the server generates the ID of the Beidou satellite message in the same manner as the first terminal device generates the ID of the Beidou satellite message. For example, the server may generate the ID of the Beidou satellite message based on Formula 1.
[0158] Based on the above introduction, by using the transmission code form in the Beidou short message to indirectly indicate the ID of the Beidou satellite message, in the scenario where the association relationship of multiple messages can be determined based on the ID of the Beidou satellite message, the occupancy of the Beidou short message capacity can also be reduced, avoiding affecting the actual content carried in the Beidou short message.
[0159] Step 504: The server sends a Beidou short message to the second terminal device, and the Beidou short message carries the ID of the Beidou satellite message.
[0160] It should be noted that, in some other optional embodiments, the second terminal device may also determine the ID of the Beidou satellite message based on the first transmission code. In this embodiment, the Beidou short message received by the second terminal device from the server may carry the first transmission code.
[0161] Step 505: The second terminal device obtains the message content of the reply message to the Beidou satellite message.
[0162] Step 506: The second terminal device sends a reply message to the server, and the reply message carries the ID of the Beidou satellite message.
[0163] Step 507: The server stores the reply message.
[0164] Step 508: The first terminal device sends a letter query request message to the satellite.
[0165] Step 509: The satellite sends a letter query request message to the server.
[0166] Step 510: The server responds to the letter query request message and queries whether there is a reply message.
[0167] Step 511: The server sends a reply message to the satellite, and the reply message carries the ID of the Beidou satellite message.
[0168] Step 512: The satellite sends a reply message to the first terminal device, and the reply message carries the ID of the Beidou satellite message.
[0169] Step 513: The first terminal device displays the message content of the reply message based on the ID of the Beidou satellite message.
[0170] The implementation process of step 504 to step 513 can be found in Figure 5 The contents introduced in will not be repeated here.
[0171] The method provided in the embodiment of the present application generates the ID of the Beidou satellite message based on the timestamp information, which can reduce the message capacity occupied by the ID of the Beidou satellite message in the Beidou short message. Alternatively, the ID and transmission code of the Beidou satellite message are generated based on the timestamp information, which can also reduce the message capacity occupied by the Beidou short message. In addition, through the ID of the Beidou satellite message, the association of multiple messages can be achieved, so that the user can more intuitively determine the relationship between the messages.
[0172] In other embodiments, Figure 7 A schematic diagram of a process flow of a satellite message transmission method provided in an embodiment of the present application. The process may include:
[0173] Step 701: A first terminal device generates a first message identifier based on first timestamp information in response to a first operation on a first interface, wherein the first operation is used to instruct the first terminal device to send a satellite message.
[0174] Step 702: The first terminal device sends a first satellite message to a satellite, where the first satellite message includes the first message identifier and first message content.
[0175] In some further embodiments, Figure 8 A schematic diagram of a process flow of a satellite message transmission method provided in an embodiment of the present application. The process may include:
[0176] Step 801: A first terminal device generates a first message identifier based on first timestamp information in response to a first operation on a first interface, wherein the first operation is used to instruct the first terminal device to send a satellite message.
[0177] Step 802: The first terminal device generates a first transmission code based on the first timestamp information, where the first transmission code is used to obtain the first message identifier.
[0178] Step 803: The first terminal device sends a first satellite message to a satellite, where the first satellite message includes the first transmission code and first message content.
[0179] Based on the above embodiments, the present application also provides a terminal device, which includes multiple functional modules; the multiple functional modules interact with each other to implement the functions performed by the terminal device in each method described in the embodiments of the present application. The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on the specific implementation. Figure 7 In the embodiment shown, the first terminal device performs steps 701 and 702. Alternatively, the following steps may also be performed: Figure 8In the illustrated embodiment, steps 801 to 803 are executed by the first terminal device.
[0180] Based on the above embodiments, the present application further provides a terminal device, which includes at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the terminal device is running, the at least one processor executes the functions executed by the terminal device in each method described in the embodiments of the present application. Figure 7 In the embodiment shown, the first terminal device performs steps 701 and 702. Alternatively, the following steps may also be performed: Figure 8 In the illustrated embodiment, steps 801 to 803 are executed by the first terminal device.
[0181] Based on the above embodiments, the present application also provides a computer program product, which includes: a computer program (also referred to as code, or instructions), which enables a computer to execute the methods described in the embodiments of the present application when the computer program is executed.
[0182] Based on the above embodiments, the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer executes the methods described in the embodiments of the present application.
[0183] Based on the above embodiments, the present application further provides a chip, which is used to read a computer program stored in a memory to implement the methods described in the embodiments of the present application.
[0184] Based on the above embodiments, the present application provides a chip system, which includes a processor for supporting a computer device to implement the methods described in the embodiments of the present application. In a possible design, the chip system also includes a memory, which is used to store the necessary programs and data of the computer device. The chip system can be composed of a chip, or it can include a chip and other discrete devices. It should be understood by those skilled in the art that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0185] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0186] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0187] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0188] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of protection of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A satellite message transmission method, characterized in that: include: The first terminal device generates a first message identifier based on first timestamp information in response to a first operation on a first interface, wherein the first operation is used to instruct the first terminal device to send a satellite message; The first terminal device sends a first satellite message to a satellite, where the first satellite message includes the first message identifier and first message content; The first terminal device receives a second satellite message sent by a satellite, the second satellite message including a second message identifier and a second message content; wherein the second message identifier is the same as the first message identifier, and the second message content is a reply content of the first message content; The first terminal device displays a second interface based on the second satellite message; wherein the second message content is associated with the first message content and displayed in the second interface; The generating a first message identifier based on the first timestamp information includes: Using a first preset time length to perform a modulo process on the first timestamp information to obtain a modulo result; The first message identifier is generated according to the modulo result.
2. The method according to claim 1, characterized in that The step of generating the first message identifier according to the remainder result includes: The remainder result is used as the first message identifier.
3. The method according to claim 1, characterized in that The first preset duration is greater than or equal to a preset storage duration of the satellite message.
4. The method according to claim 1, characterized in that: Before the first terminal device receives the second satellite message sent by the satellite, the method further includes: In response to the second operation, the first terminal device sends a first request message to the satellite, where the first request message is used to request to obtain a satellite message to be received by the first terminal device.
5. The method according to claim 1, characterized in that The first timestamp information is the current world standard time UTC acquired by the first terminal device in response to the first operation.
6. The method according to any one of claims 1 to 5, characterized in that The first satellite message is a Beidou satellite message.
7. A satellite message transmission method, characterized in that: include: The first terminal device generates a first message identifier based on first timestamp information in response to a first operation on a first interface, wherein the first operation is used to instruct the first terminal device to send a satellite message; The first terminal device generates a first transmission code based on the first timestamp information, where the first transmission code is used to obtain the first message identifier; The first terminal device sends a first satellite message to a satellite, where the first satellite message includes the first transmission code and first message content; The generating a first message identifier based on the first timestamp information includes: Using a first preset time length to perform a modulo process on the first timestamp information to obtain a first modulo result; Generate the first message identifier according to the first modulus result.
8. The method according to claim 7, characterized in that The step of generating the first message identifier according to the first modulus result includes: The first modulo result is used as the first message identifier.
9. The method according to claim 7, characterized in that: The generating a first transmission code based on the first timestamp information comprises: Using a second preset time length to perform a modulo process on the first timestamp information to obtain a second modulo result; The first transmission code is generated according to the second modulo result.
10. The method according to claim 9, characterized in that The step of generating the first transmission code according to the second modulus result includes: The second modulo result is used as the first transmission code.
11. The method according to any one of claims 7 to 10, characterized in that The method further comprises: The first terminal device receives a second satellite message sent by a satellite, the second satellite message including a second message identifier and a second message content; wherein the second message identifier is the same as the first message identifier, and the second message content is a reply content of the first message content; The first terminal device displays a second interface based on the second satellite message; wherein, in the second interface, the second message content is displayed in association with the first message content.
12. The method according to claim 11, characterized in that Before the first terminal device receives the second satellite message sent by the satellite, the method further includes: In response to the second operation, the first terminal device sends a first request message to the satellite, where the first request message is used to request to obtain a satellite message to be received by the first terminal device.
13. The method according to claim 7, characterized in that The first preset duration is greater than or equal to a preset storage duration of the satellite message.
14. The method according to claim 9, characterized in that The second preset duration is greater than or equal to a maximum transmission duration required for a satellite message from the first terminal device to the server.
15. A satellite message transmission method, characterized in that: include: The server receives a first satellite message from a first terminal device via a satellite, where the first satellite message includes a first transmission code and first message content, and the first transmission code is used to obtain the first message identifier; The server obtains first timestamp information based on the second timestamp information and the first transmission code; The first timestamp is earlier than the second timestamp; The server obtains the first message identifier based on the first timestamp information; The server sends a first message to the second terminal device, where the first message includes the first message identifier and the first message content.
16. The method according to claim 15, characterized in that The method further comprises: The server receives a second message sent by the second terminal device, the second message including a second message identifier and a second message content; wherein the second message identifier is the same as the first message identifier, and the second message content is a reply content of the first message content; The server sends a second satellite message to the satellite, where the second satellite message includes the second message identifier and the second message content.
17. The method according to claim 15 or 16, characterized in that The server obtains first timestamp information based on the second timestamp information and the first transmission code, including: The server generates a second transmission code based on the second timestamp information; When it is determined that the second transmission code is the same as the first transmission code, determining that the first timestamp information is the second timestamp information; When it is determined that the second transmission code is different from the first transmission code, a transmission code is generated based on timestamp information that is M preset time intervals earlier than the second timestamp information, until third timestamp information corresponding to a transmission code that is the same as the first transmission code is determined, and the first timestamp information is determined to be the third timestamp information; wherein M is a positive integer that takes values in ascending order, and the preset time interval is less than or equal to a first preset duration; and the first preset duration is a preset transmission duration for the first satellite message to be sent from the first terminal device to the server.
18. A terminal device, characterized in that: The system comprises at least one processor coupled to at least one memory, wherein the at least one processor is configured to read a computer program stored in the at least one memory to execute the method according to any one of claims 1 to 14.
19. A server, characterized in that: The system comprises at least one processor coupled to at least one memory, wherein the at least one processor is configured to read a computer program stored in the at least one memory to execute the method according to any one of claims 15 to 17.
20. A satellite message transmission system, characterized in that: The system comprises the terminal device as claimed in claim 18 and the server as claimed in claim 19.
21. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to perform the method according to any one of claims 1 to 17.
22. A computer program product comprising instructions, characterized in that When the computer program product is run on a computer, the computer is caused to perform the method according to any one of claims 1 to 17.
