Communication method, device, and server

By optimizing the encoding and decoding of satellite messages and combining it with user-defined text content, the problem of limited information volume in Beidou short message communication is solved, communication efficiency and user experience are improved, and the scope of applications is broadened.

WO2024188032A1PCT designated stage expired Publication Date: 2024-09-19HUAWEI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/078191
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-15
Filing Date
2024-02-22
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

Due to limited air interface resources, Beidou short message communication has limited short message sending frequency and content length, making it difficult to carry more effective content.

Method used

By determining the collection identifier of the text resource collection supported by the electronic device, the encoding and decoding of satellite messages are optimized, the communication efficiency is improved, and user-defined text content is supported to enhance communication flexibility and user experience.

Benefits of technology

It improves the information volume and efficiency of satellite communications, meets emergency communication needs when wireless networks are unavailable, broadens the application scope of satellite communications, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024078191_19092024_PF_FP_ABST
    Figure CN2024078191_19092024_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a communication method, a device, and a server. The method comprises: before sending a satellite packet to a second electronic device, a first electronic device determines a text resource set supported by the second electronic device; in response to a first operation of a first user, the first electronic device sends a first packet to the second electronic device by means of a satellite, the first packet comprising a code corresponding to at least one piece of text content corresponding to the first operation. According to the solution, the first packet sent by the first electronic device is a packet which can be decoded by the second electronic device, thereby ensuring the communication accuracy. Moreover, the satellite packet transmitted between the electronic devices comprises the code corresponding to the text content, so that less satellite communication resources can be used to transmit more text content, thereby improving the communication efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Communication method, device and server

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on March 15, 2023, with application number 202310287147.2 and invention name “A Communication Method, Device and Server”, the entire contents of which are incorporated by reference into this application. Technical Field

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

[0004] Satellite communication refers to communications that use satellites as network relays. With the development of satellite communication technology, more and more terminal devices also support satellite communication, providing users with more communication options.

[0005] 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. Beidou satellite communication usually uses short messages as the basic transmission unit, and Beidou short message communication is a functional feature attached to BDS.

[0006] Beidou short message communication can provide communication services in areas where 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 position 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 is happening. 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.

[0007] However, due to the limited air interface resources of Beidou short messages, Beidou short message communications have 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.

[0008] Summary of the Invention

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

[0010] 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, where 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 based on 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, where the first message includes a code corresponding to at least one text content corresponding to the first operation.

[0011] In the above method, when a first electronic device sends a satellite message to a second electronic device, it can first determine the set of text resources supported by the second electronic device, and then send the message based on the set of text resources supported by the second electronic device, so that the second electronic device can decode the message and ensure communication accuracy. Furthermore, the satellite messages transmitted between electronic devices include the encoding corresponding to the text content, which can transmit more text content while using fewer satellite communication resources, thereby improving communication efficiency.

[0012] In one possible design, after obtaining the first text resource set according to the collection 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.

[0013] Through this design, after obtaining 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.

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

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

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

[0017] 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 times, the first electronic device can obtain the collection identifier of the first text resource set from the second message without having to query the server again, thereby further improving the efficiency of satellite communication.

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

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

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

[0021] 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 the message sent by the second electronic device via a satellite; and displaying the at least one text content.

[0022] 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 the at least one text content, reducing the computing power of the first electronic device.

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

[0024] With 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, thereby expanding the capabilities of the electronic device.

[0025] In one possible design, the method also includes: performing the following steps based on a set period: sending a third message to the 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 the text resource set supported by the first electronic device.

[0026] With this design, the first electronic device can query in real time whether the text resource set has been 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 sets supported by each electronic device.

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

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

[0029] 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 communication, meeting the needs of users for quick communication via satellite in specific scenarios and improving user experience.

[0030] In a second aspect, embodiments of the present application provide a communication method that can be performed by a second electronic device. The method includes: in response to a second operation by a second user, the second electronic device generates a second message based on 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; and the second electronic device transmits the second message to the first electronic device via a satellite, the second message including the code corresponding to the at least one text content and a set identifier of the first text resource set.

[0031] In this method, when sending a satellite message, the second electronic device can directly generate a satellite message based on the text resource set it supports. The second message also carries the set identifier of the first text resource set. This allows the first electronic device to obtain the first text resource set based on the set identifier and correctly decode the second message. This design provides a quick way for electronic devices not connected to a general-purpose network to send satellite messages while ensuring the accuracy of satellite communications.

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

[0033] In one possible design, the method also includes: performing the following steps based on a set period: sending a sixth message to the 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 the text resource set supported by the second electronic device.

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

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

[0036] In a third aspect, an embodiment of the present application provides a communication method that 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, the first text resource set including multiple text contents and a code corresponding to each text content; the server obtains the first text resource set according to the set identifier of the first text resource set, decodes the second message according to the first text resource set, and obtains 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.

[0037] In this method, the server can decode the received second message to reduce the computational effort of the first electronic device. Furthermore, the server can add the set identifier of the first text resource set or the set identifier of the second text resource set to the third message, flexibly indicating the text resource set to be used by the first electronic device when replying to the second electronic device.

[0038] In one possible design, when it is determined that the first electronic device does not have a decoding function, the steps of obtaining 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.

[0039] 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 communication failure caused by the first electronic device being unable to decode the message.

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

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

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

[0043] 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 the function of receiving satellite messages, the collection identifier of the second text resource set is added to the third message.

[0044] 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 the text resource set when replying, avoiding the waste of resources when the server adds the collection identifier of the text resource set in the third message, but the first electronic device cannot reply to the message.

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

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

[0047] In a fourth aspect, the present application provides a communication method that can be performed 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.

[0048] In this method, 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.

[0049] In a fifth aspect, the present application provides an electronic device comprising multiple functional modules; the multiple functional modules interact with each other to implement the methods 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 multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on the specific implementation.

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

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

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

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

[0054] In the tenth aspect, the present application also provides a computer program product comprising instructions, which, when run 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.

[0055] In the eleventh aspect, the present application also provides a computer-readable storage medium, which stores a computer program. 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.

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

[0057] 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 the 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 for storing the necessary programs and data for the computer device. The chip system can be composed of a chip or can include a chip and other discrete devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] FIG1 is a schematic diagram of the architecture of a satellite communication system provided in an embodiment of the present application;

[0059] FIG2 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;

[0060] FIG3 is a software structure block diagram of an electronic device provided in an embodiment of the present application;

[0061] FIG4 is a flow chart of a communication method provided in an embodiment of the present application;

[0062] FIG5 is a text content editing interface provided by an embodiment of the present application;

[0063] FIG6 is a schematic diagram of an information editing interface provided in an embodiment of the present application;

[0064] FIG7 is a schematic diagram of an information editing interface provided in an embodiment of the present application;

[0065] FIG8 is a schematic diagram of an information interface provided in an embodiment of the present application;

[0066] FIG9 is a flow chart of a communication method provided in an embodiment of the present application;

[0067] FIG10 is a flow chart of a communication method provided in an embodiment of the present application;

[0068] FIG11 is a flow chart of a communication method provided in an embodiment of the present application;

[0069] FIG12 is a schematic diagram of an information editing interface of a second electronic device provided in an embodiment of the present application;

[0070] FIG13 is an information interface of a first electronic device provided in an embodiment of the present application;

[0071] FIG14 is a flow chart of a communication method provided in an embodiment of the present application;

[0072] FIG15 is a flowchart of a communication method provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0074] It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "more" 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: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects 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.

[0075] First, let's introduce Beidou short message communication: The Beidou Navigation Satellite System (BDS) is China's independently developed and independently operated global satellite navigation system. BDS-based short message communication enables two-way information transmission between electronic devices, Beidou satellites, and servers via satellite signals. Beidou satellite communication typically uses short messages as the basic transmission unit, and Beidou short message communication is a feature of the BDS. Beidou short message communication can provide communication services in areas beyond the reach of ordinary mobile communication signals (such as uninhabited areas, deserts, oceans, and polar regions) or when communication base stations are damaged (such as by earthquakes, floods, and typhoons).

[0076] Alternatively, electronic devices can send short messages to BeiDou satellites for emergency communications. This not only locates the electronic device, letting the user know where it is, but also allows the user to send information to the outside world, alerting others to what's happening. Therefore, BeiDou short message communications have played a significant role in national defense, livelihood security, emergency rescue, and other fields, and are also widely used in outdoor settings, fisheries, and disaster relief.

[0077] However, due to the limited air interface resources of Beidou short messages, Beidou short message communications have 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.

[0078] Based on the above problems, the embodiments of the present application provide a communication method, device and server. For ease of introduction, the following description takes the communication method provided in the embodiment of the present application as an example of being applied to satellite short message communication to introduce the message communication method provided in 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 electronic device via a satellite. When the embodiments of the present application are applied to other communication scenarios, the electronic device can send data to the server or electronic device via other relay communication devices, or the electronic device can also send data directly to the server. The embodiments of the present application do not limit this.

[0079] FIG1 is a schematic diagram of the architecture of a satellite communication system provided in an embodiment of the present application. Referring to FIG1 , the satellite communication system provided in an embodiment of the present application includes electronic equipment, 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 equipment manufacturer or a Beidou server. The server may be used to forward and process information sent and received 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 high power, which can improve the efficiency of satellite communications.

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

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

[0082] For example, the satellite communication system shown in FIG1 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 understood that the BeiDou satellite is merely an example and not a limitation. In specific implementations, the communication method provided in the embodiments of the present application may also be applied to other satellite short message communications, and the present application does not limit this.

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

[0084] Through the communication method provided in the embodiments of the present application, when a first electronic device sends a satellite message to a second electronic device, it can first determine the set of text resources supported by the second electronic device, and then send the message based on the set of text resources supported by the second electronic device, so that the second electronic device can decode the message and ensure communication accuracy. Furthermore, the satellite messages transmitted between electronic devices include the encoding corresponding to the text content, which can use fewer satellite communication resources to transmit more text content, thereby improving communication efficiency.

[0085] 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, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptop 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.

[0086] FIG2 is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application. As shown in FIG2 , 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 194, and a subscriber identification module (SIM) card interface 195. Optionally, the electronic device may further include a satellite communication module 161.

[0087] 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 processing unit (GPU), an image signal processor (ISP), a controller, memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors. The controller may serve as the nerve center and command center of the electronic device 100. The controller may generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution. The processor 110 may also include memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a high-speed cache memory. This memory may store instructions or data that have just been used or are being recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids duplicate accesses, reduces the processor 110's waiting time, and thus improves system efficiency.

[0088] The USB interface 130 is an interface that complies with USB standards and specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer 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 194, the camera 193, and the wireless communication module 160.

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

[0090] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G 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.

[0091] 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 that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

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

[0093] 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 a network and other devices through wireless communication technologies. The wireless communication technologies 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).

[0094] 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), a MiniLED, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.

[0095] 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 light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion 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.

[0096] 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 the 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.

[0097] 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 via the external memory interface 120 to implement data storage functions. For example, files such as pictures and videos can be stored on the external memory card.

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

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

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

[0101] Touch sensor 180C, also known as a "touch panel," can be disposed on display screen 194. The touch sensor 180C and display screen 194 form a touch screen, also known as a "touch screen." Touch sensor 180C is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to an application processor to determine the type of touch event. Visual output related to the touch operations can be provided via display screen 194. In other embodiments, touch sensor 180C can also be disposed on the surface of electronic device 100, at a location different from that of display screen 194.

[0102] The buttons 190 include 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 button input and generate 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.

[0103] It is understood that the components shown in FIG2 do not constitute a specific limitation on the electronic device 100. The electronic device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. In addition, the combination / connection relationship between the components in FIG2 may also be adjusted and modified.

[0104] Figure 3 is a block diagram of the software structure of an electronic device provided in an embodiment of the present application. As shown in Figure 3, the software structure of the electronic device can be a layered architecture. For example, the software can be divided into several layers, each with 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 system library, and the kernel layer.

[0105] The application layer may include a series of application packages. As shown in Figure 3, the application layer may include a camera, settings, skin module, user interface (UI), third-party applications, etc. Among them, third-party applications may include gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc. In an 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.

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

[0107] The window manager manages windowed applications. It can determine the display size, determine whether a status bar is present, lock the screen, and take screenshots. Content providers store and retrieve data and make it accessible to applications. This data can include video, images, audio, incoming and outgoing calls, browsing history and bookmarks, and phone books.

[0108] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.

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

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

[0111] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.

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

[0113] The core library consists of two parts: one containing the Java language's callable functions and the other containing the operating system's core libraries. The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0114] The system library can include multiple functional modules, such as a surface manager, media libraries, a 3D graphics processing library (e.g., OpenGL ES), a 2D graphics engine (e.g., SGL), and an image processing library.

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

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

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

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

[0119] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.

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

[0121] It should be noted that the structures shown in Figures 2 and 3 are merely examples of electronic devices provided in the embodiments of the present application and do not limit the electronic devices provided in the embodiments of the present application. In specific implementations, the electronic device may have more or fewer devices or modules than those in the structures shown in Figures 2 or 3.

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

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

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

[0125] Table 1 Text resource collection

[0126] Referring to Table 1, the text resource collection stored in the server can include a variety of text content, which can be single words, phrases, or sentences, and each text content corresponds to a code. The server can store multiple text resource collections, which can be preconfigured by the system or user-defined. The electronic device can request the server to download both preconfigured text resource collections and other user-defined text resource collections.

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

[0128] The communication method provided by the embodiment of the present application is further described below. FIG4 is a flow chart of a communication method provided by the embodiment of the present application, which can be executed by the electronic device, server, and satellite in the communication system shown in FIG1. ​​Referring to FIG4, the method includes the following steps:

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

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

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

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

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

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

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

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

[0137] Optionally, the fifth message is used to report the set identifier of the 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 the set identifier of the text resource set stored in the first electronic device.

[0138] In an optional implementation, the first electronic device may execute steps S401-S404 based on a set period, thereby querying in real time whether the text resource set has been 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 sets supported by each electronic device.

[0139] It should be noted that, when executing the above S401 to 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.

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

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

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

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

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

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

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

[0147] It should be noted that, when executing the above S405 to 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.

[0148] In a specific implementation, S405-S408 can refer to the implementation of S401-S404, and the repeated parts will not be repeated. The embodiment of the present application does not limit the order of execution of S401-S404 and S405-S408. In a 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 simultaneously.

[0149] In one embodiment 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:

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

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

[0152] For example, Figure 5 is a custom text content editing interface provided by an embodiment of the present application. Referring to Figure 5, the first user can enter 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.

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

[0154] For example, the confirmation operation of the first user may be that the first user clicks an “OK” control on the text content editing interface shown in FIG5 .

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

[0156] In an optional implementation, the server may generate a code corresponding to each text content, thereby generating a text resource collection 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 collection, such as a version number. The server may store the text resource collection and the collection identifier corresponding to the text resource collection.

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

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

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

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

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

[0162] 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 the text resource set supported by the second electronic device to ensure that the satellite message sent by the first electronic device can be decoded by the second electronic device.

[0163] In an optional implementation, the first electronic device may send a first message to the server, the first message may be used to query the collection identifier of the text resource set supported by the 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 by the electronic device, it 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.

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

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

[0166] 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 the download of the first text resource set, and receive the download address of the first text resource set sent by the server. The first electronic device can download the first text resource set according to the download address of the first text resource set.

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

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

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

[0170] Alternatively, the first operation may be an operation triggered by the first user to select and send text content. For example, in the message editing interface shown in FIG6 , the first user clicks the text content "Please report your location," triggering the sending of the satellite message "Please report your location." Alternatively, the first operation may be a sending operation triggered by the first user. For example, in the message editing interface shown in FIG6 , the first user first selects at least one text content from multiple text contents and then triggers the first operation.

[0171] In an embodiment of the present application, the at least one text content corresponding to the first operation is the text content triggered and sent by the first user. The second electronic device can determine the encoding corresponding to the 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 the 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".

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

[0173] For example, the first user can select a method for sending information in the information editing interface, and the information sending method may include, for example, general network sending and satellite network sending. Figure 7 is a schematic diagram of an information editing interface provided in an embodiment of the present application. Referring to Figure 7, the first user can select a method for sending information, wherein 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 then 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.

[0174] It can be understood that the embodiment of the present application supports the electronic device sending a message to the server, and the server sends the message to the 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 communication and enhancing the communication capabilities of electronic devices.

[0175] Optionally, the first message may further 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 can 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, further improving communication efficiency.

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

[0177] Alternatively, the second operation can be an operation triggered by the second user to select and send text content. For example, in the message editing interface shown in FIG6 , the second user clicks the text content "Requesting Rescue," triggering the sending of a satellite message "Requesting Rescue." Alternatively, the second operation can be a sending operation triggered by the second user. For example, in the message editing interface shown in FIG6 , the second user first selects at least one text content from multiple text contents and then triggers the second operation.

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

[0179] In an embodiment of the present application, the second message also includes a set identifier of the first text resource set. Because the second electronic device is unable to connect to a universal 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. Instead, the second electronic device directly generates a satellite message based on the text resource set supported by the receiving electronic device, and carries the set identifier of the first text resource set in the second message. This allows the receiving electronic device to obtain the first text resource set based on the set identifier of the first text resource set, thereby correctly decoding the second message. This design provides a quick way to send satellite messages for electronic devices not connected to a universal network, while ensuring the accuracy of satellite communications.

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

[0181] In one embodiment of the present application, S414 may include the following steps:

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

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

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

[0185] 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 encoding 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.

[0186] In an optional embodiment, 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. For example, 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.

[0187] In one embodiment (hereinafter referred to as embodiment 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.

[0188] In another embodiment (hereinafter referred to as embodiment B), the first text resource set is used to encode 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 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 a correspondence between quick help words and codes, and the second text resource set is a quick reply text resource set, including a correspondence between quick reply words and codes.

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

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

[0191] In a further embodiment, 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.

[0192] It is understandable 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.

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

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

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

[0196] According to S414, it can be learned that 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 based on the set identifier of the first text resource set. The first electronic device can decode the second message based on the first text resource set to obtain at least one text content corresponding to the encoding in the second message. For example, taking the text resource set shown in Table 1 as an example, the encoding corresponding to the 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".

[0197] 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. The first electronic device may then obtain at least one text content from the third message.

[0198] The first electronic device may display at least one text content corresponding to the second message on a display screen. For example, FIG8 is a schematic diagram of an information interface provided in an embodiment of the present application. Referring to FIG8, the first electronic device may display the received text content "Requesting Rescue" on the information interface of the second user.

[0199] In an embodiment of the present application, referring to S414c, it can be seen that the server can generate a third message based on 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. The first electronic device can generate a reply message to the second electronic device based on the first text resource set based on user operations. In this scenario, the first and second electronic devices are communicating by satellite based on the same text resource set. 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. The first electronic device can generate a reply message to the second electronic device based on the second text resource set based on user operations. In this scenario, the first and second electronic devices are communicating by satellite based on different text resource sets. It is understandable 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.

[0200] In addition, the server in S414c can 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 can 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 does not limit this.

[0201] Through the communication method provided in the embodiments of the present application, electronic devices can synchronize text resource sets. Thus, when communicating via satellite, electronic devices can generate messages based on the text resource sets, utilizing fewer satellite communication resources to transmit more text content, thereby improving communication efficiency. Furthermore, the text resource sets in the embodiments of the present application can be customized by the user. Users can set commonly used phrases for different business scenarios, simplifying the user's operation steps when sending satellite messages and improving the user experience.

[0202] The following is a further introduction to the communication method provided in the embodiments of the present application using several specific examples. In the following examples, the first electronic device is an electronic device that can connect to a general network, and the second electronic device is an electronic device that cannot currently connect to a general network. Examples 1 and 2 below can be based on Implementation A above, and Example 3 below can be based on Implementation B above.

[0203] Example 1: A first electronic device actively sends a satellite message to a second electronic device.

[0204] FIG9 is a flow chart of a communication method provided in an embodiment of the present application. Referring to FIG9 , the communication method in this example includes the following steps:

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

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

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

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

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

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

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

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

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

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

[0215] FIG10 is a flow chart of a communication method provided in an embodiment of the present application. Referring to FIG10 , the communication method in this example includes the following steps:

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[0230] 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 described below and are not described in detail here.

[0231] FIG11 is a flow chart of a communication method provided in an embodiment of the present application. Referring to FIG11 , the communication method in this example includes the following steps:

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

[0233] Optionally, the first text resource set is a quick help text resource set. For example, FIG12 is a schematic diagram of an information editing interface of a second electronic device provided in an embodiment of the present application. Referring to FIG12 , the second electronic device displays multiple quick help words on the information editing interface, such as "skin injury," "mudslide," "lost," etc.

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

[0235] For example, the second operation is a sending operation triggered by the second user. For example, the second user selects "skin injury" and "mudslide" in the information editing interface shown in FIG12 and triggers the sending operation.

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

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

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

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

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

[0241] In an optional embodiment, 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.

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

[0243] 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 a 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.

[0244] For example, Figure 13 is an information interface of a first electronic device provided in an embodiment of the present application. Referring to Figure 13, the first electronic device can display at least one text content in the information interface of the second user, 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 on the information interface. The quick reply words shown in Figure 13 may include "Hold on, rushing to the rescue", "Keep in touch", "Heavy rain warning", etc.

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

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

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

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

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

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

[0251] It should be noted that when the communication method shown in Figures 9 to 11 of the present application is specifically implemented, reference can be made to the above-mentioned embodiments of the present application, and the repeated parts will not be repeated.

[0252] Based on the same concept, an embodiment of the present application further provides a communication method, which can be performed by a first electronic device, and the first electronic device can have the structure shown in Figure 2 and / or Figure 3. Figure 14 is a flow chart of a communication method provided by an embodiment of the present application. Referring to Figure 14, the method includes the following steps:

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

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

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

[0256] 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. The first message includes a code corresponding to at least one text content corresponding to the first operation.

[0257] It should be noted that when the communication method shown in Figure 14 of the present application is specifically implemented, reference can be made to the above-mentioned embodiments of the present application, and the repeated parts will not be repeated.

[0258] Based on the same concept, an embodiment of the present application further provides a communication method. FIG15 is a flow chart of a communication method provided by an embodiment of the present application. The method can be executed by the electronic device, server, and satellite in the communication system shown in FIG1 . Referring to FIG15 , the method includes the following steps:

[0259] S1501: The first electronic device sends a first message to the server.

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

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

[0262] Based on the above embodiments, the present application further provides an 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. For example, the steps performed by the first electronic device or the second electronic device in the embodiments shown in Figures 4 and 9-11 are executed. The plurality of functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules can be arbitrarily combined or divided based on the specific implementation.

[0263] Based on the above embodiments, the present application further 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 functions performed by the electronic device in each method described in the embodiments of the present application. For example, the steps performed by the first electronic device or the second electronic device in the embodiments shown in Figures 4, 9, and 11 are executed.

[0264] Based on the above embodiments, the present application further provides a server comprising 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. For example, the server performs the steps performed by the server in the embodiments shown in Figures 4, 9, and 11. The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on the specific implementation.

[0265] Based on the above embodiments, the present application further provides a server comprising at least one processor and at least one memory, wherein the at least one memory stores computer program instructions. When the server is running, the at least one processor executes the functions performed by the server in each method described in the embodiments of the present application. For example, the server executes the steps performed by the server in the embodiments shown in Figures 4, 9, and 11.

[0266] Based on the above embodiments, the present application further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the methods described in the embodiments of the present application.

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

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

[0269] Based on the above embodiments, the present application provides a chip system, which includes a processor for supporting a computer device to implement the various methods described in the embodiments of the present application. In one possible design, the chip system also includes a memory for storing the necessary programs and data for the computer device. The chip system can be composed of a chip or can include a chip and other discrete devices.

[0270] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can 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 can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0271] 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 flow and / or box in the flow chart and / or block diagram, as well as the combination of the flow chart and / or box in the flow chart 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 produce a device for implementing the functions specified in one or more flow charts and / or one or more boxes in the block diagram.

[0272] These computer program instructions may also be stored in a computer-readable memory that can direct 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 a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0273] 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, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0274] Obviously, those skilled in the art may make various modifications and variations to this application without departing from the scope of protection of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.

Claims

1. A communication method, It is 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, It is 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, It is 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, It is 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 any one of claims 1 to 4, It is 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 any one of claims 1 to 5, It is 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 any one of claims 1 to 6, It is 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 any one of claims 1 to 6, It is 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 any one of claims 1 to 8, It is characterized in that The method further comprises: Perform the following steps based on a 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 any one of claims 1 to 9, It is 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 any one of claims 1 to 10, It is 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 a user.

12. A communication method, It is 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 includes a plurality of text contents and a code 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.

13. The method according to claim 12, It is 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, It is characterized in that The method further comprises: Perform the following steps based on a 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 any one of claims 12 to 14, It is 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 any one of claims 12 to 15, It is 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 a user.

17. A communication method, It is characterized in that The method is applied to a server, and the method comprises: receiving 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, wherein 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, 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; Send the third message to the first electronic device.

18. The method of claim 17, It is 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 of claim 18, It is 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, It is 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, It is characterized in that 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 21, It is 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 22, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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

  • Method and device for encoding satellite short message based on binary coded decimal (BCD) code

    CN102891730A

  • Disaster information transmission method and device and electronic equipment

    CN110225472A

  • Method for simplifying Beidou positioning satellite short message communication by utilizing big data

    CN112165354A

  • Resource updating method and device, electronic equipment, server and storage medium

    CN114675871A

  • Data transmission control method and system in Beidou communication system and related device

    CN115694597A