A communication method, device and server

By determining and using the collection identifier of text resource collection in Beidou short message communication, the problem of limited content in satellite short message is solved, and more efficient information transmission is achieved.

CN118264304BActive Publication Date: 2025-03-25HUAWEI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310287147.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-15
Publication Date
2025-03-25
Estimated Expiration
2043-03-15

AI Technical Summary

Technical Problem

Due to the limited air interface resources of Beidou short message communication, the frequency and content length of short message transmission are limited. How to carry more effective content in satellite short message has become an important topic.

Method used

By determining the set identifier of the text resource set supported by the second electronic device, the first electronic device can acquire and send encoded text content to ensure that the receiver can decode and improve communication efficiency.

Benefits of technology

It realizes carrying more effective content in satellite communication, improves communication efficiency and accuracy, and meets the needs of efficient information transmission under limited resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118264304B_ABST
    Figure CN118264304B_ABST
Patent Text Reader

Abstract

The present application provides a communication method, device and server. In the method, before a first electronic device sends a satellite message to a second electronic device, it determines a set of text resources supported by the second electronic device. In response to a first operation of a first user, the first electronic device sends a first message to the second electronic device via a satellite, and the first message includes a code corresponding to at least one text content corresponding to the first operation. Through this scheme, the first message sent by the first electronic device is a message that can be decoded by the second electronic device, ensuring communication accuracy. In addition, the satellite message transmitted between electronic devices includes the code corresponding to the text content, which can occupy fewer satellite communication resources to transmit more text content, thereby improving communication efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a communication method, device and server. Background Art

[0002] Satellite communication refers to communication that uses satellites as network relays. With the development of satellite communication technology, more and more terminal devices also support satellite communication, thus providing users with more choices for communication methods.

[0003] For example, message communication based on the Beidou Navigation Satellite System (BDS) refers to the two-way information transmission between electronic equipment, Beidou satellites and servers through satellite signals. Usually, Beidou satellite communication uses short messages as the basic transmission unit. Beidou short message communication is a functional feature of BDS.

[0004] Beidou short message communication can provide communication services in areas that ordinary mobile communication signals cannot cover (such as uninhabited areas, deserts, oceans, polar regions, etc.) or when communication base stations are damaged (such as earthquakes, floods, typhoons, etc.). Electronic devices equipped with Beidou short message modules can send Beidou short messages for emergency communications. Beidou short message communication can not only locate the location of electronic devices to let users know where they are, but also send information to the outside world through Beidou short message communication to tell others what happened. Therefore, Beidou short message communication has played a huge role in national defense, people's livelihood, emergency rescue and other fields, and is also widely used in outdoor, fishery, disaster relief and other scenarios.

[0005] However, due to the limited air interface resources of Beidou short messages, Beidou short message communication has restrictions on the frequency of short message sending and the length of short message content. How to carry more effective content in satellite short messages has become an important issue. Summary of the invention

[0006] The present application provides a communication method, device and server for increasing the amount of information that can be transmitted by satellite communication.

[0007] In a first aspect, an embodiment of the present application provides a communication method, which can be executed by a first electronic device. The method includes: the first electronic device determines a set identifier of a first text resource set, the first text resource set is a text resource set supported by a second electronic device; the first text resource set includes multiple text contents and a code corresponding to each text content. The first electronic device obtains the first text resource set according to the set identifier of the first text resource set. In response to a first operation of a first user, the first electronic device sends a first message to the second electronic device via a satellite, and the first message includes a code corresponding to at least one text content corresponding to the first operation.

[0008] In the above method, when the first electronic device sends a satellite message to the second electronic device, it can first determine the text resource set supported by the second electronic device, and then send the message according to the text resource set supported by the second electronic device, so that the second electronic device can decode the message to ensure communication accuracy. In addition, the satellite message transmitted between electronic devices includes the code corresponding to the text content, which can occupy less satellite communication resources to transmit more text content, thereby improving communication efficiency.

[0009] In one possible design, after acquiring the first text resource set according to the set identifier of the first text resource set, the method further includes: displaying multiple text contents in the first text resource set, wherein the at least one text content is a text content selected from the multiple text contents.

[0010] Through this design, after acquiring the first text resource set, the first electronic device can display multiple text contents in the first text resource set. The user can intuitively see the text content available for selection and select the text content the user wants to send, thereby improving the user experience.

[0011] In one possible design, determining the collection identifier of the first text resource set includes: sending a first message to a server, the first message being used to query the collection identifier of the text resource set supported by the second electronic device; and receiving a second message sent by the server, the second message including the collection identifier of the first text resource set.

[0012] Through this design, the server can manage the collection identifier of the text resource set supported by each electronic device, and the first electronic device can obtain the collection identifier of the text resource set supported by the second electronic device from the server to ensure the accuracy of satellite communication.

[0013] In one possible design, determining the identifier of the first text resource set includes: obtaining the set identifier of the first text resource set from a second message, where the second message is a message received in a preset time period before the current time and the sender is a user of the second electronic device.

[0014] Through this design, when the first electronic device receives a second message from the user of the second electronic device within a preset time period between the current and the current times, the first electronic device can obtain the collection identifier of the first text resource set from the second message without querying the server again, thereby further improving the efficiency of satellite communication.

[0015] In one possible design, obtaining the first text resource set according to the collection identifier of the first text resource set includes: searching for the first text resource set in a local storage space according to the collection identifier of the first text resource set; when the first text resource set exists in the local storage space, obtaining the first text resource set from the local storage space; or when the first text resource set does not exist in the local storage space, requesting a server to download the first text resource set; receiving a download address of the first text resource set sent by the server, and downloading the first text resource set according to the download address of the first text resource set.

[0016] In one possible design, sending the first message to the second electronic device via a satellite includes: sending the first message to a server so that the server forwards the first message to the second electronic device via a satellite; or sending the first message to a satellite so that the satellite sends the first message to the second electronic device.

[0017] Through this design, the present application provides multiple ways to implement the first electronic device to send satellite messages, thereby improving the flexibility of satellite communications.

[0018] In one possible design, the method also includes: receiving a third message sent by the server, the third message including at least one text content and a collection identifier of the first text resource set; the at least one text content is obtained by the server decoding a message sent by the second electronic device via a satellite; and displaying the at least one text content.

[0019] Through this design, the server can decode the message sent by the satellite and generate a third message including at least one text content. After the first electronic device receives the third message, it can directly display at least one text content, reducing the calculation amount of the first electronic device.

[0020] In one possible design, the method also includes: receiving a fourth message sent by the second electronic device via a satellite, the fourth message including a code corresponding to at least one text content and an identifier of the first text resource set; decoding the fourth message according to the first text resource set to obtain the at least one text content; and displaying the at least one text content.

[0021] Through this design, the first electronic device can be an electronic device with a decoding function, and the first electronic device decodes and processes the received satellite message to expand the capabilities of the electronic device.

[0022] In one possible design, the method also includes: performing the following steps based on a set period: sending a third message to a server, the third message being used to query whether an updated text resource set exists; receiving a fourth message sent by the server, the fourth message including a collection identifier of the updated text resource set and a download address of the updated text resource set; determining that the updated text resource set is not stored in the first electronic device according to the collection identifier of the updated text resource set, and downloading the updated text resource set according to the download address of the updated text resource set; and sending a fifth message to the server, the fifth message including a collection identifier of a text resource set supported by the first electronic device.

[0023] Through this design, the first electronic device can query in real time whether the text resource set is updated and obtain the updated text resource set. After downloading the updated text resource set, the first electronic device can report the set identifier of the text resource set currently supported by the first electronic device to the server so that the server can manage the text resource set supported by each electronic device.

[0024] In one possible design, the set identifier of the first text resource set is a version number of the first text resource set.

[0025] In a possible design, the first text resource set is preconfigured by the system, or the first text resource set is generated by the server according to user-defined text content.

[0026] Through this design, the text resource collection in this application can be pre-configured for the system, and also supports users to customize text content that can be quickly used during satellite communications, meeting the needs of users for quick communication via satellite in specific scenarios and improving user experience.

[0027] In a second aspect, an embodiment of the present application provides a communication method, which can be performed by a second electronic device. The method includes: in response to a second operation of a second user, the second electronic device generates a second message according to at least one text content corresponding to the second operation and a first text resource set; the first text resource set includes multiple text contents and a code corresponding to each text content; the second electronic device sends the second message to the first electronic device via a satellite, and the second message includes the code corresponding to the at least one text content and a set identifier of the first text resource set.

[0028] In this method, when sending a satellite message, the second electronic device can directly generate a satellite message according to the text resource set supported by itself, and carry the set identifier of the first text resource set in the second message, so that the first electronic device can obtain the first text resource set according to the set identifier of the first text resource set and correctly decode the second message. This design can provide a quick way to send satellite messages for electronic devices that are not connected to a general network, while ensuring the accuracy of satellite communications.

[0029] In one possible design, the method also includes: receiving a first message sent by the first electronic device via a satellite; decoding the first message according to the first text resource set to obtain at least one text content corresponding to the first message; and displaying at least one text content corresponding to the first message.

[0030] In one possible design, the method also includes: performing the following steps based on a set period: sending a sixth message to a server, the sixth message being used to query whether an updated text resource set exists; receiving a seventh message sent by the server, the seventh message including a collection identifier of the updated text resource set and a download address of the updated text resource set; determining that the updated text resource set is not stored in the second electronic device according to the collection identifier of the updated text resource set, and downloading the updated text resource set according to the download address of the updated text resource set; and sending an eighth message to the server, the eighth message including a collection identifier of a text resource set supported by the second electronic device.

[0031] In one possible design, the set identifier of the first text resource set is a version number of the first text resource set.

[0032] In a possible design, the first text resource set is preconfigured by the system, or the first text resource set is generated by the server according to user-defined text content.

[0033] In a third aspect, an embodiment of the present application provides a communication method, which can be executed by a server. The method includes: the server receives a second message sent by the second electronic device via a satellite; the second message includes a code corresponding to at least one text content and a set identifier of a first text resource set, and the first text resource set includes multiple text contents and codes corresponding to each text content; the server obtains the first text resource set according to the set identifier of the first text resource set, and decodes the second message according to the first text resource set to obtain the at least one text content; the server generates a third message, the third message includes the at least one text content, and the third message also includes the set identifier of the first text resource set or the set identifier of the second text resource set; the second text resource set is a text resource set supported by the second electronic device; and the third message is sent to the first electronic device.

[0034] In this method, the server can decode the received second message to reduce the amount of calculation of the first electronic device. The server can also add the set identifier of the first text resource set or the set identifier of the second text resource set to the third message to flexibly indicate the text resource set used by the first electronic device when replying to the second electronic device.

[0035] In one possible design, when it is determined that the first electronic device does not have a decoding function, the steps of acquiring the first text resource set according to the set identifier of the first text resource set and decoding the second message according to the first text resource set are performed.

[0036] With this design, when the server determines that the first electronic device does not have a decoding function, it can execute the decoding processing steps to prevent the problem of the first electronic device being unable to decode the message and causing communication failure.

[0037] In one possible design, the method further includes: when it is determined that the first electronic device has a decoding function, forwarding the second message to the first electronic device.

[0038] In one possible design, the method further includes: when it is determined that the second message is a satellite message, adding a set identifier of the second text resource set to the third message.

[0039] Through this design, the server can instruct the first electronic device to use the second text resource set for encoding when replying to the second electronic device, so that while ensuring normal communication between the electronic devices, the two electronic devices can encode based on different text resource sets, which is more flexible and meets user needs.

[0040] In one possible design, when it is determined that the second message is a satellite message, the collection identifier of the second text resource set is added to the third message, including: when it is determined that the second message is a satellite message and the second electronic device has a function of receiving satellite messages, the collection identifier of the second text resource set is added to the third message.

[0041] Through this design, when the second electronic device has the function of receiving satellite messages, it means that the first electronic device can reply to the second electronic device. At this time, the server can instruct the first electronic device to use a text resource set when replying, thereby avoiding the waste of resources when the server adds a collection identifier of the text resource set in the third message but the first electronic device cannot reply to the message.

[0042] In one possible design, the set identifier of the first text resource set is a version number of the first text resource set.

[0043] In a possible design, the first text resource set is a quick help text resource set, and the second text resource set is a quick reply text resource set.

[0044] In a fourth aspect, the present application provides a communication method, which can be executed by a first electronic device. The method includes: the first electronic device sends a first message to a server, and the server sends the first message to a second electronic device via a satellite.

[0045] In this method, after the electronic device sends the message to the server, the server sends the message to the satellite. The communication method provided in the embodiment of the present application supports electronic devices that are not equipped with a satellite communication module to send satellite messages, thereby broadening the application scope of satellite communication and enhancing the communication capabilities of electronic devices.

[0046] In a fifth aspect, the present application provides an electronic device, the electronic device comprising a plurality of functional modules; the plurality of functional modules interact with each other to implement the method performed by the electronic device in the first aspect and its respective embodiments, the second aspect and its respective embodiments, and the fourth aspect and its respective embodiments. The plurality of functional modules may be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules may be arbitrarily combined or divided based on specific implementations.

[0047] In a sixth aspect, the present application provides an electronic device comprising at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the electronic device is running, the at least one processor executes the method executed by the electronic device in the above-mentioned first aspect and its various embodiments, the second aspect and its various embodiments, and the fourth aspect and its various embodiments.

[0048] In a seventh aspect, the present application provides a server, the server comprising a plurality of functional modules; the plurality of functional modules interact with each other to implement the method performed by the server in the third aspect and its respective embodiments. The plurality of functional modules may be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules may be arbitrarily combined or divided based on specific implementations.

[0049] In an eighth aspect, the present application provides a server comprising at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the server is running, the at least one processor executes the method executed by the server in the above-mentioned third aspect and its various embodiments.

[0050] In a ninth aspect, the present application provides a satellite communication system, the message communication system comprising an electronic device and a server. The electronic device is used to execute the method described in the first aspect or the second aspect and its respective embodiments, and the server is used to execute the method described in the third aspect and its respective embodiments.

[0051] In the tenth aspect, the present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method executed by the electronic device or server in any of the above aspects and its various embodiments.

[0052] In the eleventh aspect, the present application also 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 method executed by the electronic device or server in any of the above aspects and its various embodiments.

[0053] 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 a method executed by an electronic device or server in any of the above aspects and its various embodiments.

[0054] In a thirteenth aspect, the present application further provides a chip system, which includes a processor for supporting a computer device to implement the method executed by an electronic device or server in any of the above aspects and its various embodiments. In one possible design, the chip system also includes a memory, which is used to store the necessary programs and data for the computer device. The chip system can be composed of a chip, or it can include a chip and other discrete devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 A schematic diagram of the architecture of a satellite communication system provided in an embodiment of the present application;

[0056] Figure 2A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0057] Figure 3 A software structure block diagram of an electronic device provided in an embodiment of the present application;

[0058] Figure 4 A flow chart of a communication method provided in an embodiment of the present application;

[0059] Figure 5 A text content editing interface provided in an embodiment of the present application;

[0060] Figure 6 A schematic diagram of an information editing interface provided in an embodiment of the present application;

[0061] Figure 7 A schematic diagram of an information editing interface provided in an embodiment of the present application;

[0062] Figure 8 A schematic diagram of an information interface provided in an embodiment of the present application;

[0063] Fig. 9 A flow chart of a communication method provided in an embodiment of the present application;

[0064] Fig.10 A flow chart of a communication method provided in an embodiment of the present application;

[0065] Fig.11 A flow chart of a communication method provided in an embodiment of the present application;

[0066] Fig.12 A schematic diagram of an information editing interface of a second electronic device provided in an embodiment of the present application;

[0067] Fig.13 An information interface of a first electronic device provided in an embodiment of the present application;

[0068] Fig.14 A flow chart of a communication method provided in an embodiment of the present application;

[0069] Fig.15 A flowchart of a communication method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0070] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings. Among them, in the description of the embodiments of the present application, the terms "first" and "second" are used only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.

[0071] It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may 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 associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single 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.

[0072] First, let's introduce Beidou short message communication: Beidou Navigation Satellite System (BDS) is a global satellite navigation system that China is implementing and independently developing. Short message communication based on BDS refers to the two-way information transmission between electronic equipment, Beidou satellites and servers through satellite signals. Usually, Beidou satellite communication uses short messages as the basic transmission unit. Beidou short message communication is a functional feature attached to BDS. Beidou short message communication can provide communication services in areas that cannot be covered by ordinary mobile communication signals (such as uninhabited areas, deserts, oceans, polar regions, etc.) or when communication base stations are damaged (such as earthquakes, floods, typhoons, etc.).

[0073] Optionally, electronic devices can send short messages to Beidou satellites for emergency communications. Beidou short message communication can not only locate the location of electronic devices to let users know where they are, but also send information to the outside world through Beidou short message communication to tell others what happened. Therefore, Beidou short message communication has played a huge role in national defense, people's livelihood, emergency rescue and other fields, and is also widely used in outdoor, fishery, disaster relief and other scenarios.

[0074] However, due to the limited air interface resources of Beidou short messages, Beidou short message communication has restrictions on the frequency of short message sending and the length of short message content. How to carry more effective content in satellite short messages has become an important issue.

[0075] Based on the above problems, the embodiments of the present application provide a communication method, a device and a server. For ease of introduction, the following description takes the communication method provided by the embodiment of the present application as an example of applying to satellite short message communication, and introduces the message communication method provided by the embodiment of the present application. It is understandable that in satellite short message communication, an electronic device can send a short message to a server or an electronic device via a satellite, and when the embodiment of the present application is applied to other communication scenarios, the electronic device can send data to the server or the electronic device via other relay communication devices, or the electronic device can also directly send data to the server, and the embodiment of the present application does not limit this.

[0076] Figure 1 A schematic diagram of the architecture of a satellite communication system provided in an embodiment of the present application. Figure 1 The satellite communication system provided in the embodiment of the present application includes an electronic device, a server and a satellite. Furthermore, the satellite communication system may also include a transmitter and a receiver. The server may be a cloud server provided by an electronic device manufacturer or a Beidou server. The server may be used to forward and process information received and sent by the satellite. The server may be implemented by one or more computing devices. The transmitter and the receiver are used to assist the server in sending or receiving satellite short messages. The transmitter and the receiver have a large power, which can improve the efficiency of satellite communication.

[0077] Figure 1 Two electronic devices (electronic device 1 and electronic device 2) are taken as an example. In this embodiment of the application, when the communication network is available, the electronic device can communicate with the server or other electronic devices through the general network; when the general network is not available, the electronic device can communicate with the server or other electronic devices through a satellite.

[0078] Optionally, in the embodiment of the present application, a satellite communication module may be installed in the electronic device, and the electronic device may directly send short messages to the satellite; or when the satellite communication module is not installed in the electronic device, the electronic device may also send satellite short messages through a server.

[0079] For example, Figure 1 The satellite communication system shown may be a Beidou short message communication system, the satellite may be a Beidou satellite, and the satellite communication module installed in the electronic device may be a BDS module. It is understandable that the Beidou satellite is only used as an example and not a limitation. In specific implementation, the communication method provided in the embodiment of the present application may also be applied to other satellite short message communications, and the present application does not limit this.

[0080] In the communication method provided in an embodiment of the present application, a first electronic device determines a set identifier of a first text resource set, where the first text resource set is a text resource set supported by a second electronic device, and the first text resource set includes multiple text contents and a code corresponding to each text content; the first text resource set is obtained according to the set identifier of the first text resource set; and in response to a first operation of a first user, a first message is sent to the second electronic device via a satellite, where the first message includes a code corresponding to at least one text content corresponding to the first operation.

[0081] Through the communication method provided in the embodiment of the present application, when the first electronic device sends a satellite message to the second electronic device, it can first determine the text resource set supported by the second electronic device, and then send the message according to the text resource set supported by the second electronic device, so that the second electronic device can decode the message to ensure communication accuracy. In addition, the satellite message transmitted between electronic devices includes the encoding corresponding to the text content, which can occupy less satellite communication resources to transmit more text content, thereby improving communication efficiency.

[0082] The following describes electronic devices and embodiments for using such electronic devices. The electronic devices in the embodiments of the present application may be tablet computers, mobile phones, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, notebook computers, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), wearable devices, etc. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.

[0083] Figure 2 FIG. 1 is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application. Figure 2 As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195. Optionally, the electronic device may also include a satellite communication module 161.

[0084] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Among them, different processing units may be independent devices or integrated into one or more processors. Among them, the controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions. A memory may also be set in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a high-speed cache memory. The memory may store instructions or data that the processor 110 has just used or circulated. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.

[0085] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.

[0086] The wireless communication function of the electronic device 100 can be implemented by antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modulation and demodulation processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna. For example, antenna 1 can be reused as a diversity antenna of a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0087] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0088] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0089] The satellite communication module 161 can provide the electronic device 100 with satellite short message communication capability. The electronic device 100 can send short messages to the satellite through the satellite communication module 161, and receive short messages sent by the satellite to the electronic device, thereby realizing communication between the electronic device 100 and the satellite. For example, the satellite communication module 161 can be a BDS module.

[0090] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0091] The display screen 194 is used to display the display interface of the application, such as displaying the display page of the application installed on the electronic device 100. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0092] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0093] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, and software code of at least one application, etc. The data storage area can store data generated during the use of the electronic device 100 (such as captured images, recorded videos, etc.). In addition, the internal memory 121 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, a universal flash storage (UFS), etc.

[0094] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as pictures and videos are stored in the external memory card.

[0095] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0096] Among them, the sensor module 180 may include a pressure sensor 180A, an acceleration sensor 180B, a touch sensor 180C, etc.

[0097] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194 .

[0098] The touch sensor 180C is also called a "touch panel". The touch sensor 180C can be set on the display screen 194, and the touch sensor 180C and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180C is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180C can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0099] The button 190 includes a power button, a volume button, etc. The button 190 can be a mechanical button. It can also be a touch button. The electronic device 100 can receive the button input and generate a key signal input related to the user settings and function control of the electronic device 100. The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power changes, and can also be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect the SIM card. The SIM card can be inserted into the SIM card interface 195, or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.

[0100] Understandably, Figure 2The components shown do not constitute a specific limitation on the electronic device 100. The electronic device may also include more or fewer components than shown, or combine some components, or separate some components, or arrange the components differently. Figure 2 The combination / connection relationship between the components can also be adjusted and modified.

[0101] Figure 3 The software structure block diagram of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the software structure of the electronic 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 four layers, from top to bottom, namely, the application layer, the application framework layer (framework, FWK), the runtime (runtime) and the system library, and the kernel layer.

[0102] The application layer can include a series of application packages. Figure 3 As shown, the application layer may include camera, settings, skin module, user interface (UI), third-party applications, etc. Among them, the third-party applications may include gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc. In the embodiment of the present application, the application layer may include a target installation package of a target application that the electronic device requests to download from a server, and the function files and layout files in the target installation package are adapted to the electronic device.

[0103] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer may include some predefined functions. Figure 3 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.

[0104] 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.

[0105] 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.

[0106] The phone manager is used to provide communication functions for electronic devices, such as the management of call status (including answering, hanging up, etc.).

[0107] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0108] 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, an electronic device vibrates, an indicator light flashes, etc.

[0109] The runtime includes the core library and the virtual machine. The runtime is responsible for the scheduling and management of the operating system.

[0110] 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.

[0111] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), image processing library, etc.

[0112] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0113] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0114] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0115] A 2D graphics engine is a drawing engine for 2D drawings.

[0116] 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.

[0117] The hardware layer can include various types of sensors, such as accelerometers, gyroscopes, touch sensors, etc.

[0118] It should be noted that Figure 2 and Figure 3 The structure shown is only an example of the electronic device provided by the embodiment of the present application, and cannot be used to limit the electronic device provided by the embodiment of the present application. In specific implementation, the electronic device may have more Figure 2 or Figure 3 More or fewer devices or modules may be included in the structures shown.

[0119] The following is an introduction to the communication method provided in the embodiments of the present application.

[0120] First, the text resource set provided by the embodiment of the present application is introduced. The text resource set provided by the embodiment of the present application includes multiple text contents and the encoding corresponding to each text content. The text resource set can also be called a dictionary, a quick reply set, etc.

[0121] For example, Table 1 is an example of a text resource set provided in an embodiment of the present application.

[0122] Table 1 Text resource collection

[0123] Text content Binary encoding Request for help 00000001 I'm a little hurt 00000010 Got it, rushing to the rescue 00000011 Please report your location 00000100

[0124] Referring to Table 1, the text resource set stored in the server may include a variety of text contents, the text contents may be single words, words or sentences, and each text content corresponds to a code. A plurality of text resource sets may be stored in the server, and the text resource set in the server may be system preconfigured or user-defined. The electronic device may request to download the system preconfigured text resource set and other user-defined text resource sets from the server.

[0125] Each text resource collection stored in the server corresponds to a collection identifier, for example, the collection identifier can be a version number. Developers can update the text resource collection configured by the system, such as adding more text content, or deleting or modifying the original text content, and the collection identifier of the updated text resource collection will also change. For example, taking the collection identifier as a version number as an example, the version number of the original text resource collection is v1, and the version number of the updated text resource collection is v2. Similarly, the user-defined text resource collection can also be updated by the user corresponding to the electronic device that uploaded the text resource collection, which will not be repeated here.

[0126] The communication method provided in the embodiment of the present application is further introduced below. Figure 4 A flow chart of a communication method provided in an embodiment of the present application, the method can be Figure 1 The electronic devices, servers and satellites in the communication system shown are implemented.

[0127] refer to Figure 4 , the method comprises the following steps:

[0128] S401: The first electronic device sends a third message to the server.

[0129] The third message is used to query whether the text resource collection is updated.

[0130] S402: The server sends a fourth message to the first electronic device.

[0131] In an optional implementation, the fourth message may include a collection identifier of the text resource collection and a download address of the text resource collection.

[0132] Optionally, the text resource set indicated by the fourth message may be an updated text resource set stored in the server, for example, a text resource set of the latest version stored in the server.

[0133] S403: The first electronic device determines that the text resource set is not stored locally according to the set identifier of the text resource set in the fourth message, and downloads the text resource set according to the download address.

[0134] In an embodiment of the present application, after receiving the fourth message, the first electronic device can determine whether the first electronic device locally stores the text resource set indicated by the fourth message according to the set identifier of the text resource set in the fourth message. When the first electronic device determines that the text resource set is not stored locally, the text resource set stored in the server has been updated, and the first electronic device can download the updated text resource set.

[0135] S404: The first electronic device sends a fifth message to the server.

[0136] Optionally, the fifth message is used to report a set identifier of a text resource set supported by the first electronic device to the server, wherein the text resource set supported by the first electronic device may be a set identifier of a text resource set stored in the first electronic device.

[0137] In an optional implementation, the first electronic device may execute the above S401-S404 based on a set period, thereby querying in real time whether the text resource set is updated, and obtaining the updated text resource set. After downloading the updated text resource set, the first electronic device may report the set identifier of the text resource set currently supported by the first electronic device to the server, so that the server can manage the text resource set supported by each electronic device.

[0138] It should be noted that, when executing the above S401-S403, the first electronic device may be in a state of being connected to a general network, wherein the general network may be, for example, a wireless local area network or a mobile communication network.

[0139] S405: The second electronic device sends a sixth message to the server.

[0140] Optionally, the sixth message may be used to query whether the text resource collection is updated.

[0141] S406: The server sends a seventh message to the second electronic device.

[0142] Optionally, the seventh message may include a collection identifier of the text resource collection and a download address of the text resource collection.

[0143] S407: The second electronic device determines that the text resource set is not stored locally according to the set identifier of the text resource set in the seventh message, and downloads the text resource set according to the download address.

[0144] S408: The second electronic device sends an eighth message to the server.

[0145] Optionally, the eighth message is used to report a set identifier of a text resource set supported by the second electronic device to the server.

[0146] It should be noted that, when executing the above S405-S408, the second electronic device may be in a state of being connected to a general network, wherein the general network may be, for example, a wireless local area network or a mobile communication network.

[0147] In the specific implementation, S405-S408 can refer to S401-S404 implementation, and the repeated parts are not repeated. The embodiment of the present application does not limit the order of execution of S401-S404 and S405-S408. In the specific implementation, S401-S404 can be executed earlier than S405-S408, S405-S408 can also be executed earlier than S401-S404, or S401-S404 and S405-S408 can also be executed at the same time.

[0148] In one implementation of the present application, when the text resource set is a user-defined text resource set, taking the first electronic device reporting the user-defined text content to the server as an example, the communication method provided in the embodiment of the present application may include the following steps:

[0149] Step a: The first electronic device displays a custom text content editing interface.

[0150] Step b: In response to the first user inputting text content, the first electronic device acquires and displays the text content input by the first user.

[0151] For example, Figure 5 A custom text content editing interface provided in the embodiment of the present application. Figure 5 , the first user can input user-defined text content in the custom text content editing interface, so that the first user can set commonly used text content according to communication needs.

[0152] Step c: In response to the confirmation operation of the first user, the first electronic device sends the text content input by the first user to the server.

[0153] For example, the first user's confirmation operation may be that the first user clicks Figure 5 The “OK” control on the text content editing interface shown.

[0154] Step d: The server generates a text resource set according to the text content input by the first user.

[0155] In an optional implementation, the server may generate a code corresponding to each text content, thereby generating a text resource set including multiple text contents and the code corresponding to each text content. In an optional implementation, the server may also generate a collection identifier for the text resource set, such as a version number. The server may store the text resource set and the collection identifier corresponding to the text resource set.

[0156] It should be noted that after the server generates a text resource set according to the text content input by the user, the first electronic device can modify the text content in the custom text resource editing interface according to the first user operation, and send the modified text content to the server, and the server regenerates the text resource set according to the modified text content. Electronic devices other than the first electronic device can also request the server to download the text resource set.

[0157] Through the above steps, the communication method provided in the embodiment of the present application supports users to customize text content that can be quickly used during satellite communication, meets the needs of users for quick communication via satellite in specific scenarios, and improves user experience.

[0158] In the following steps, the first electronic device is an electronic device that can be connected to a general network, and the second electronic device is a device that cannot be connected to a general network.

[0159] S409: The first electronic device determines a set identifier of the first text resource set.

[0160] The first text resource set is a text resource set supported by the second electronic device, and the first text resource set includes multiple text contents and a code corresponding to each text content.

[0161] In an embodiment of the present application, when a first electronic device wants to send a satellite message to a second electronic device, it needs to first determine a set of text resources supported by the second electronic device, thereby ensuring that the satellite message sent by the first electronic device can be decoded by the second electronic device.

[0162] In an optional implementation, a first electronic device may send a first message to a server, and the first message may be used to query the collection identifier of a text resource set supported by a second electronic device, and the first message may include the device identifier of the second electronic device. From the above introduction to the text resource set, it can be known that after each download of the text resource set, the electronic device will report the collection identifier of the text resource set supported by the electronic device to the server, so the server can manage the collection identifier of the text resource set supported by each electronic device. After receiving the first message, the server can search for the collection identifier of the text resource set supported by the second electronic device according to the device identifier in the first message, and send a second message to the first electronic device, and the second message may include the collection identifier of the first text resource set.

[0163] In another optional implementation, the first electronic device has received a second message from a user of a second electronic device in a preset time period before the current time, and the second message includes a collection identifier of a first text resource set. The first electronic device can obtain the collection identifier of the first text resource set from the second message. It should be noted that, in this implementation, the second message can be a message sent by the second electronic device via a satellite, or it can be a message generated by the server based on a message sent by the second electronic device via a satellite.

[0164] S410: The first electronic device obtains the first text resource set according to the set identifier of the first text resource set.

[0165] In an optional implementation, after the first electronic device obtains the set identifier of the first text resource set, it can search for the first text resource set in the local storage space according to the set identifier of the first text resource set. When the first text resource set exists in the local storage space, the first electronic device obtains the first text resource set from the local storage space; or when the first text resource set does not exist in the local storage space, the first electronic device requests the server to download the first text resource set. In a specific implementation, the first electronic device can send a message to the server for requesting to download the first text resource set, and receive the download address of the first text resource set sent by the server, and the first electronic device can download the first text resource set according to the download address of the first text resource set.

[0166] S411: The first electronic device displays multiple text contents in the first text resource set.

[0167] For example, Figure 6 A schematic diagram of an information editing interface provided in an embodiment of the present application. Figure 6 The first electronic device can display multiple text contents in the first text resource set in the information editing interface. The first user can quickly select the first text content from the multiple text contents displayed in the information editing interface.

[0168] S412: In response to a first operation of the first user, the first electronic device sends a first message to the second electronic device via a satellite, where the first message includes a code corresponding to at least one text content corresponding to the first operation.

[0169] Optionally, the first operation may be an operation triggered by the first user to select and send text content, such as Figure 6 In the information editing interface shown in FIG. 1 , the first user clicks the text content of “Please report location” to trigger the sending of the satellite message “Please report location”. Alternatively, the first operation is a sending operation triggered by the first user, such as in Figure 6In the information editing interface shown, the first user first selects at least one text content from multiple text contents and then triggers the first operation.

[0170] In an embodiment of the present application, at least one text content corresponding to the first operation is text content triggered and sent by the first user. The second electronic device can determine the encoding corresponding to at least one text content based on the at least one text content corresponding to the first operation and the first text resource set, and generate a first message based on the encoding corresponding to the at least one text content. For example, taking the text resource set shown in Table 1 as an example, the information carried in the first message can be the encoding corresponding to at least one text content, and the text content corresponding to the first operation is "Please report location", then the information carried in the first message can be "00000100".

[0171] In an optional implementation, the first electronic device may send the first message to a server, the server may send the first message to a satellite, and the satellite may send the first message to the first electronic device; or the first electronic device may send the first message to a satellite, and the satellite may send the first message to a second electronic device.

[0172] For example, the first user can select a message sending method in the message editing interface, and the message sending method may include general network sending and satellite network sending. Figure 7 A schematic diagram of an information editing interface provided in an embodiment of the present application. Figure 7 , the first user can select the information sending method, where the "system" method means that the first electronic device can send the second message to the server through the general network, the server sends the second message to the satellite, and the satellite sends the second message to the second electronic device. The "satellite" method means that the first electronic device can send the second message directly to the satellite, and the satellite sends the second message to the second electronic device.

[0173] It can be understood that the embodiment of the present application supports an electronic device sending a message to a server, and then the server sends the message to a satellite. The communication method provided by the embodiment of the present application supports electronic devices that are not equipped with a satellite communication module to send satellite messages, thereby broadening the application scope of satellite communications and enhancing the communication capabilities of electronic devices.

[0174] Optionally, the first message may also include a set identifier of the first text resource set. After receiving the first message, if the second electronic device stores multiple text resource sets, the second electronic device may quickly determine the first text resource set required to decode the first message based on the set identifier of the first text resource set in the first message, thereby further improving communication efficiency.

[0175] S413: In response to a second operation of the second user, the second electronic device generates a second message according to at least one text content corresponding to the second operation and the first text resource set.

[0176] Optionally, the second operation may be an operation triggered by the second user to select and send text content, such as Figure 6 In the information editing interface shown in FIG. 1 , the second user clicks the text content of “Requesting Rescue” to trigger the sending of the satellite message “Requesting Rescue”. Alternatively, the second operation is a sending operation triggered by the second user, such as in Figure 6 In the information editing interface shown, the second user first selects at least one text content from multiple text contents and then triggers the second operation.

[0177] The second electronic device may determine the code corresponding to at least one text content according to the at least one text content selected by the second user and the first text resource set, and generate a second message according to the code corresponding to the at least one text content. For example, taking the text resource set shown in Table 1 as an example, the information carried in the first message may be the code corresponding to the at least one text content, and the information carried in the first message may be "00000001".

[0178] In an embodiment of the present application, the second message also includes a collection identifier of the first text resource set. Since the second electronic device is in a state where it cannot connect to a general network, when sending a satellite message, the second electronic device does not need to determine the text resource set supported by the receiving electronic device, but directly generates a satellite message based on the text resource set supported by itself, and carries the collection identifier of the first text resource set in the second message, so that the receiving electronic device can obtain the first text resource set according to the collection identifier of the first text resource set, so that the receiving electronic device can correctly decode the second message. This design can provide a quick way to send satellite messages for electronic devices that are not connected to a general network, while ensuring the accuracy of satellite communications.

[0179] S414: The second electronic device sends a second message to the first electronic device via the satellite.

[0180] In one implementation of the present application, S414 may include the following steps:

[0181] S414a: The second electronic device sends the second message to the satellite.

[0182] S414b: The satellite sends the second message to the server.

[0183] S414c: The server forwards the second message to the first electronic device; or the server generates a third message according to the second message, and sends the third message to the first electronic device.

[0184] In an embodiment of the present application, the server can decode the second message and then send at least one text content corresponding to the code in the second message to the first electronic device; or the server can directly send the second message to the first electronic device, which will perform decoding processing.

[0185] In an optional implementation, the server can determine whether the first electronic device has a decoding function based on the attribute information of the first electronic device. If the first electronic device has a decoding function, the server forwards the second message to the first electronic device. If the first electronic device does not have a decoding function, the server can decode the second message based on the first text resource set, such as the server can search for at least one text content corresponding to the code in the second message from the first text resource set, the server can generate a third message including the at least one text content, and send the third message to the first electronic device. The third message can be generated by modifying the second message, such as replacing the code in the second message with the at least one text content.

[0186] In one implementation (hereinafter referred to as implementation A), the first text resource set can be used to encode text content (such as the text content of the second message) sent by the second electronic device to the first electronic device, and can also be used to encode text content sent by the first electronic device to the second electronic device. For example, the first text resource set includes both the correspondence between quick help words and codes, and the correspondence between quick reply words and codes.

[0187] In another implementation (hereinafter referred to as implementation B), the first text resource set is used to encode the text content sent by the second electronic device to the first electronic device, and another text resource set supported by the second electronic device (hereinafter referred to as the second text resource set) is used to encode the text content sent by the first electronic device to the second electronic device. For example, the first text resource set is a quick help text resource set, including the correspondence between quick help words and codes, and the second text resource set is a quick reply text resource set, including the correspondence between quick reply words and codes.

[0188] Based on implementation mode A, the server may retain, in the sent second message or the third message, the set identifier of the first text resource set in the second message received from the second electronic device.

[0189] Based on implementation B, in some implementations of the present application, when the server determines that the second message is a satellite message, the server may add the set identifier of the second text resource set to the second message or the third message.

[0190] In a further implementation, when the server determines that the second message is a satellite message and the second electronic device has a function of receiving satellite messages, the server may add the set identifier of the second text resource set to the second message or the third message.

[0191] It can be understood that, in this design, if the third message received by the first electronic device from the server contains plain text content, the first electronic device does not need to perform decoding processing.

[0192] After receiving the second message or the third message, the first electronic device may need to reply a satellite message to the second electronic device, so the first electronic device needs to know the set identifier of the text resource set supported by the second electronic device.

[0193] Based on the above implementation A, the first electronic device can obtain the collection identifier of the first text resource set provided by the second electronic device; based on the above implementation B, the first electronic device can obtain the collection identifier of the second text resource set added by the server to the second message or the third message.

[0194] S415: The first electronic device obtains at least one text content corresponding to the second message, and displays the at least one text content.

[0195] According to S414, in an optional implementation, the first electronic device can obtain the set identifier of the first text resource set from the second message or the third message, and obtain the first text resource set according to the set identifier of the first text resource set. The first electronic device can decode the second message according to the first text resource set to obtain at least one text content corresponding to the code in the second message. For example, taking the text resource set shown in Table 1 as an example, the code corresponding to at least one text content carried in the second message is "00000001", then the first electronic device can determine that the text content corresponding to the second message is "Request for Rescue".

[0196] In another optional implementation, the server may decode the second message to generate a third message, and send the third message to the first electronic device, and the first electronic device may obtain at least one text content from the third message.

[0197] The first electronic device may display at least one text content corresponding to the second message on a display screen. For example, Figure 8 A schematic diagram of an information interface provided in an embodiment of the present application. Figure 8 , the first electronic device can display the received text content in the information interface of the second user: "Request for rescue".

[0198] In an embodiment of the present application, referring to S414c, it can be known that the server can generate a third message according to the second message, and send the third message to the first electronic device. After the first electronic device displays at least one text content corresponding to the second message, the first electronic device can display the text content in the text resource set indicated by the third message. For example, when the third message includes a set identifier of the first text resource set, the first electronic device can display multiple text contents of the first text resource set, and the first electronic device can generate a message to reply to the second electronic device based on the first text resource set according to the user operation. In this scenario, the first electronic device and the second electronic device are based on the same text resource set for satellite communication. For another example, when the third message includes a set identifier of the second text resource set, the first electronic device can display multiple text contents of the second text resource set, and the first electronic device can generate a message to reply to the second electronic device based on the second text resource set according to the user operation. In this scenario, the first electronic device and the second electronic device are based on different text resource sets for satellite communication. It can be understood that in the second scenario, the second electronic device supports the first text resource set and the second text resource set, and the first electronic device can obtain the first text resource set or the second text resource set.

[0199] In addition, the server in S414c may also add a collection identifier of the second text resource set in the second message. In this case, after receiving the second message, the first electronic device may simultaneously display multiple text contents of the first text resource set and multiple text contents of the second text resource set, or display multiple text contents of either the first text resource set or the second text resource set. This embodiment of the present application is not limited to this.

[0200] Through the communication method provided in the embodiment of the present application, electronic devices can synchronize text resource sets, so that when the electronic devices communicate via satellite, they can generate messages based on the text resource sets, occupying fewer satellite communication resources to transmit more text content, thereby improving communication efficiency. In addition, the text resource sets in the embodiment of the present application can be customized by the user, and the user can set common phrases for different business scenarios, simplifying the operation steps when the user sends satellite messages, and improving the user experience.

[0201] The communication method provided by the embodiment of the present application is further described below with several specific examples. In the following examples, the first electronic device is an electronic device that can be connected to a general network, and the second electronic device is an electronic device that cannot be connected to a general network temporarily. Among them, the following examples 1 and 2 can be based on the above-mentioned implementation A, and the following example 3 can be based on the above-mentioned implementation B.

[0202] Example 1: The first electronic device actively sends a satellite message to the second electronic device.

[0203] Fig. 9 A flow chart of a communication method provided in an embodiment of the present application. Fig. 9 , the communication method in this example includes the following steps:

[0204] S901: The first electronic device sends a first message to the server.

[0205] Optionally, the first message is used to query a text resource set supported by the second electronic device.

[0206] S902: The server sends a second message to the first electronic device.

[0207] Optionally, the second message includes a set identifier of a first text resource set, where the first text resource set is a text resource set supported by the second electronic device. Furthermore, the second message may also include a download address of the first text resource set.

[0208] S903: The first electronic device determines, according to the set identifier of the first text resource set, that the first text resource set does not exist in the local storage space of the first electronic device, and downloads the first text resource set according to the download address of the first text resource set.

[0209] The first text resource set includes multiple text contents and the encoding corresponding to each text content.

[0210] S904: The first electronic device displays multiple text contents in the first text resource set.

[0211] S905: In response to a first operation of the first user, the first electronic device sends a first message to the server, where the first message includes a code corresponding to at least one text content corresponding to the first operation.

[0212] S906: The server sends a first message to the second electronic device via a satellite.

[0213] Example 2: After the second electronic device actively sends a satellite message to the first electronic device, the first electronic device replies with a satellite message to the server.

[0214] Fig.10 A flow chart of a communication method provided in an embodiment of the present application. Fig.10 , the communication method in this example includes the following steps:

[0215] S1001: The second electronic device displays multiple text contents of a first text resource set.

[0216] The first text resource set is a text resource set supported by the second electronic device, and the first text resource set includes multiple text contents and a code corresponding to each text content.

[0217] S1002: In response to a second operation of a second user, the second electronic device generates a second message according to at least one text content corresponding to the second operation and the first text resource set.

[0218] The second message includes a code corresponding to at least one text content corresponding to the second operation and a set identifier of the first text resource set.

[0219] S1003: The second electronic device sends a second message to the server via the satellite.

[0220] S1004: The server determines that the first electronic device has a decoding function, and the server forwards the second message to the first electronic device.

[0221] S1005: The first electronic device obtains the set identifier of the first text resource set in the second message, and obtains the first text resource set according to the set identifier of the first text resource set.

[0222] S1006: The first electronic device decodes the second message according to the first text resource set to obtain at least one text content corresponding to the code in the second message.

[0223] S1007: The first electronic device displays at least one text content corresponding to the code in the second message.

[0224] S1008: The first electronic device displays multiple text contents of the first text resource set.

[0225] S1009: In response to a first operation of a first user, the first electronic device generates a first message according to at least one text content corresponding to the first operation and a first text resource set.

[0226] S1010: The first electronic device sends a first message to the server.

[0227] S1011: The server sends a first message to the second electronic device via a satellite.

[0228] Example 3: The second electronic device supports the first text resource set and the second text resource set.

[0229] In this example, the second electronic device supports a first text resource set and a second text resource set. The first text resource set may be a quick help text resource set, and the second text resource set may be a quick reply text resource set. The quick help text resource set and the quick reply text resource set are introduced in the following content respectively, and will not be described in detail at this time.

[0230] Fig.11 A flow chart of a communication method provided in an embodiment of the present application. Fig.11 , the communication method in this example includes the following steps:

[0231] S1101: The second electronic device displays multiple text contents of the first text resource set.

[0232] Optionally, the first text resource set is a quick help text resource set. Fig.12 A schematic diagram of an information editing interface of a second electronic device provided in an embodiment of the present application. Fig.12 The second electronic device displays multiple quick help words on the information editing interface, such as "skin injury", "mudslide", "lost", etc.

[0233] S1102: In response to a second operation of a second user, the second electronic device generates a second message according to at least one text content corresponding to the second operation and the first text resource set.

[0234] For example, the second operation is a sending operation triggered by the second user. Fig.12 Select "Skin Injury" and "Desert Flow" in the information editing interface shown, and trigger the sending operation.

[0235] The second message includes a code corresponding to at least one text content corresponding to the second operation and a set identifier of the first text resource set.

[0236] S1103: The second electronic device sends a second message to the server via the satellite.

[0237] S1104: The server decodes the second message according to the first text resource set to obtain at least one text content.

[0238] S1105: The server generates a third message.

[0239] The third message includes at least one text content.

[0240] In an optional implementation, when the server determines that the second message is a satellite message and the second electronic device has a function of receiving satellite messages, the server adds a set identifier of the second text resource set to the third message. The second text resource set is a quick reply resource set.

[0241] S1106: The server sends the third message to the first electronic device.

[0242] S1107: The first electronic device obtains at least one text content from the third message, and displays the at least one text content. The first electronic device obtains the second text resource set according to the set identifier of the second text resource set, and displays multiple text contents in the second text resource set.

[0243] For example, Fig.13 An information interface of a first electronic device provided in an embodiment of the present application. Fig.13 , the first electronic device can display at least one text content in the second user's information interface, and the text content sent by the second user is "skin injury" and "mudslide". The first electronic device also displays multiple quick reply words in the quick reply resource set in the information interface. Fig.13 The quick replies shown may include "Hold on, rushing to the rescue", "Stay in touch", "Heavy rain warning", etc.

[0244] S1108: In response to a first operation of the first user, the first electronic device generates a first message according to at least one text content and a second text resource set corresponding to the first operation.

[0245] For example, the first operation is an operation in which the first user selects “Hold on, rush to the rescue” and sends it.

[0246] The first message includes a code corresponding to at least one text content corresponding to the first operation and a set identifier of the second text resource set.

[0247] S1109: The first electronic device sends the first message to the server.

[0248] S1110: The server sends a first message to the second electronic device via a satellite.

[0249] S1111: The second electronic device decodes the first message according to the second text resource set, and obtains and displays at least one text content corresponding to the encoding in the first message.

[0250] It should be noted that this application Figure 9-11 When the communication method shown is specifically implemented, reference can be made to the above embodiments of the present application, and repeated descriptions will be omitted.

[0251] Based on the same concept, the embodiment of the present application also provides a communication method, which can be executed by a first electronic device, and the first electronic device can have Figure 2 and / or Figure 3 The structure shown. Fig.14A flow chart of a communication method provided in an embodiment of the present application, refer to Fig.14 , the method comprises the following steps:

[0252] S1401: The first electronic device determines a set identifier of a first text resource set.

[0253] The first text resource set is a text resource set supported by the second electronic device; the first text resource set includes a plurality of text contents and a code corresponding to each text content;

[0254] S1402: The first electronic device obtains the first text resource set according to the set identifier of the first text resource set.

[0255] S1403: The first electronic device sends a first message to the second electronic device via a satellite in response to a first operation of the first user, where the first message includes a code corresponding to at least one text content corresponding to the first operation.

[0256] It should be noted that this application Fig.14 When the communication method shown is specifically implemented, reference can be made to the above embodiments of the present application, and repeated descriptions will be omitted.

[0257] Based on the same concept, the embodiment of the present application also provides a communication method. Fig.15 A flow chart of a communication method provided in an embodiment of the present application, the method can be Figure 1 The electronic devices, servers and satellites in the communication system shown are implemented. Fig.15 , the method comprises the following steps:

[0258] S1501: A first electronic device sends a first message to a server.

[0259] S1502: The server sends the first message to the second electronic device via a satellite.

[0260] Through this design, after the electronic device sends a message to the server, the server sends the message to the satellite. The communication method provided in the embodiment of the present application supports electronic devices that are not equipped with a satellite communication module to send satellite messages, thereby broadening the application scope of satellite communication and enhancing the communication capabilities of electronic devices.

[0261] Based on the above embodiments, the present application further provides an electronic device, the electronic device comprising a plurality of functional modules; the plurality of functional modules interact with each other to implement the functions performed by the first electronic device or the second electronic device in each method described in the embodiments of the present application. Figure 4 , Figure 9-11The steps performed by the first electronic device or the second electronic device in the illustrated embodiment. 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 specific implementations.

[0262] Based on the above embodiments, the present application further provides an electronic 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 electronic device is running, the at least one processor executes the functions executed by the electronic device in each method described in the embodiments of the present application. Figure 4 , Figure 9-11 The steps are performed by the first electronic device or the second electronic device in the illustrated embodiment.

[0263] Based on the above embodiments, the present application further provides a server, which includes multiple functional modules; the multiple functional modules interact with each other to implement the functions performed by the server in each method described in the embodiments of the present application. Figure 4 , Figure 9-11 The steps executed by the server in the illustrated embodiment. 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 specific implementations.

[0264] Based on the above embodiments, the present application further provides a server, which includes at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the server is running, the at least one processor executes the functions executed by the server in each method described in the embodiments of the present application. Figure 4 , Figure 9-11 Steps performed by the server in the illustrated embodiment.

[0265] Based on the above embodiments, the present application further provides a computer program product comprising instructions, and when the computer program product is run on a computer, the computer is enabled to execute the methods described in the embodiments of the present application.

[0266] 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.

[0267] 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.

[0268] 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 one possible design, the chip system also includes a memory, which is used to store the necessary programs and data for the computer device. The chip system can be composed of a chip, or it can include a chip and other discrete devices.

[0269] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0270] 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.

[0271] 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.

[0272] 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.

[0273] 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 communication method, characterized in that: Applied to a first electronic device, the method includes: Determine a set identifier of a first text resource set, where the first text resource set is a text resource set supported by the second electronic device; the first text resource set includes a plurality of text contents and a code corresponding to each text content; Acquire the first text resource set according to the set identifier of the first text resource set; In response to a first operation of a first user, a first message is sent to the second electronic device via a satellite, wherein the first message includes a code corresponding to at least one text content corresponding to the first operation.

2. The method according to claim 1, characterized in that After acquiring the first text resource set according to the set identifier of the first text resource set, the method further includes: A plurality of text contents in the first text resource set is displayed, wherein the at least one text content is a text content selected from the plurality of text contents.

3. The method according to claim 1 or 2, characterized in that The determining of the set identifier of the first text resource set includes: Sending a first message to a server, where the first message is used to query a set identifier of a text resource set supported by the second electronic device; A second message sent by the server is received, where the second message includes a set identifier of the first text resource set.

4. The method according to claim 1 or 2, characterized in that: The determining the identifier of the first text resource set includes: The identifier of the first text resource set is obtained from a second message, where the second message is a message received in a preset time period before the current time and the sender is a user of the second electronic device.

5. The method according to claim 1 or 2, characterized in that: The acquiring the first text resource set according to the set identifier of the first text resource set includes: searching the first text resource set in the local storage space according to the set identifier of the first text resource set; When the first text resource set exists in the local storage space, acquiring the first text resource set from the local storage space; or When the first text resource set does not exist in the local storage space, request the server to download the first text resource set; receive the download address of the first text resource set sent by the server, and download the first text resource set according to the download address of the first text resource set.

6. The method according to claim 1 or 2, characterized in that: The sending the first message to the second electronic device via a satellite includes: sending the first message to a server, so that the server forwards the first message to the second electronic device via a satellite; or The first message is sent to a satellite, so that the satellite sends the first message to the second electronic device.

7. The method according to claim 1 or 2, characterized in that: The method further comprises: receiving a third message sent by the server, wherein the third message includes at least one text content and a set identifier of the first text resource set; the at least one text content is obtained by the server decoding the message sent by the second electronic device via a satellite; The at least one text content is displayed.

8. The method according to claim 1 or 2, characterized in that: The method further comprises: receiving a fourth message sent by the second electronic device via a satellite, wherein the fourth message includes a code corresponding to at least one text content and an identifier of the first text resource set; Decoding the fourth message according to the first text resource set to obtain the at least one text content; The at least one text content is displayed.

9. The method according to claim 1 or 2, characterized in that: The method further comprises: Perform the following steps based on the set period: Sending a third message to the server, where the third message is used to query whether there is an updated text resource set; receiving a fourth message sent by the server, wherein the fourth message includes a collection identifier of the updated text resource collection and a download address of the updated text resource collection; Determining, according to the set identifier of the updated text resource set, that the updated text resource set is not stored in the first electronic device, and downloading the updated text resource set according to the download address of the updated text resource set; A fifth message is sent to the server, where the fifth message includes a set identifier of a text resource set supported by the first electronic device.

10. The method according to claim 1 or 2, characterized in that: The set identifier of the first text resource set is a version number of the first text resource set.

11. The method according to claim 1 or 2, characterized in that: The first text resource set is preconfigured by the system, or the first text resource set is generated by the server according to text content customized by the user.

12. A communication method, characterized in that: The method is applied to a second electronic device, and the method includes: In response to a second operation of a second user, generating a second message according to at least one text content corresponding to the second operation and a first text resource set; the first text resource set is a text resource set supported by the second electronic device, and the first text resource set includes multiple text contents and codes corresponding to each text content; The second message is sent to the first electronic device via a satellite, wherein the second message includes a code corresponding to the at least one text content and a set identifier of the first text resource set, and the set identifier of the first text resource set is used by the first electronic device to obtain the first text resource set.

13. The method according to claim 12, characterized in that The method further comprises: Receiving a first message sent by the first electronic device via a satellite; Decoding the first message according to the first text resource set to obtain at least one text content corresponding to the first message; Display is performed according to at least one text content corresponding to the first message.

14. The method according to claim 12 or 13, characterized in that The method further comprises: Perform the following steps based on the set period: Sending a sixth message to the server, where the sixth message is used to query whether there is an updated text resource set; receiving a seventh message sent by the server, wherein the seventh message includes a collection identifier of the updated text resource collection and a download address of the updated text resource collection; Determining, according to the set identifier of the updated text resource set, that the updated text resource set is not stored in the second electronic device, and downloading the updated text resource set according to the download address of the updated text resource set; An eighth message is sent to the server, where the eighth message includes a set identifier of a text resource set supported by the second electronic device.

15. The method according to claim 12 or 13, characterized in that The set identifier of the first text resource set is a version number of the first text resource set.

16. The method according to claim 12 or 13, characterized in that: The first text resource set is preconfigured by the system, or the first text resource set is generated by the server according to text content customized by the user.

17. A communication method, characterized in that: The method is applied to a server, and the method comprises: receiving a second message sent by a second electronic device via a satellite; the second message includes a code corresponding to at least one text content and a set identifier of a first text resource set, wherein the first text resource set includes multiple text contents and a code corresponding to each text content; Acquire the first text resource set according to the set identifier of the first text resource set, and decode the second message according to the first text resource set to acquire the at least one text content; Generate a third message, the third message including the at least one text content, the third message also including the set identifier of the first text resource set or the set identifier of the second text resource set; the second text resource set is a text resource set supported by the second electronic device; The third message is sent to the first electronic device.

18. The method according to claim 17, characterized in that When it is determined that the first electronic device does not have a decoding function, the steps of acquiring the first text resource set according to the set identifier of the first text resource set and decoding the second message according to the first text resource set are performed.

19. The method according to claim 18, characterized in that The method further comprises: When it is determined that the first electronic device has a decoding function, the second message is forwarded to the first electronic device.

20. The method according to any one of claims 17 to 19, characterized in that: The method further comprises: When it is determined that the second message is a satellite message, the set identifier of the second text resource set is added to the third message.

21. The method of claim 20, wherein: The adding the set identifier of the second text resource set to the third message when determining that the second message is a satellite message includes: When it is determined that the second message is a satellite message and the second electronic device has a function of receiving satellite messages, the set identifier of the second text resource set is added to the third message.

22. The method according to any one of claims 17 to 19 and 21, characterized in that: The set identifier of the first text resource set is a version number of the first text resource set.

23. The method according to any one of claims 17 to 19 and 21, characterized in that: The first text resource set is a quick help text resource set, and the second text resource set is a quick reply text resource set.

24. An electronic device, characterized in that: The method comprises at least one processor coupled to at least one memory, wherein the at least one processor is used to read a computer program stored in the at least one memory to execute the method according to any one of claims 1 to 11, or to execute the method according to any one of claims 12 to 16.

25. An electronic device, characterized in that: It comprises a plurality of functional modules; the plurality of functional modules interact with each other to implement the method as claimed in any one of claims 1 to 11, or execute the method as claimed in any one of claims 12 to 16.

26. A server, characterized in that: The system comprises at least one processor, wherein the at least one processor is coupled to at least one memory, and 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 17 to 23.

27. A server, characterized in that: It comprises a plurality of functional modules; the plurality of functional modules interact with each other to implement the method as claimed in any one of claims 17 to 23.

28. A computer program product comprising instructions, characterized in that When the computer program product is executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 11, or the method according to any one of claims 12 to 16, or the method according to any one of claims 17 to 23.

29. 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 execute the method described in any one of claims 1 to 11, or the method described in any one of claims 12 to 16, or the method described in any one of claims 17 to 23.

Citation Information

Patent Citations

  • Electronic chart post-payment system based on Big Dipper short message and method thereof

    CN107392590A

  • Compression implementation method for Beidou satellite information transmission

    CN107561564A

  • Data encoding and decoding method and device, transmission system, terminal equipment and storage medium

    CN112995199A