CN-122028001-A - Method for acquiring weather information, electronic device, readable storage medium, chip and program product
Abstract
The application provides a method for acquiring weather information, electronic equipment, a readable storage medium, a chip and a program product, and relates to the technical field of satellite communication. The method comprises the steps of displaying a first interface of a first application, sending a first satellite short message according to a first operation on the first interface, enabling the first satellite short message to be used for obtaining weather information of a target position, receiving a second satellite short message, enabling the second satellite short message to comprise the weather information of the target position, and displaying the weather information on the first interface. According to the technical scheme provided by the application, the electronic equipment can acquire the weather information under the condition of no ground network, and has better user experience.
Inventors
- WANG YANGJIAN
- HUANG YUSHUO
- ZHOU YINGNAN
- XIE SHU
- LIU YIJUN
Assignees
- 华为技术有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20250928
Claims (11)
- 1. A method for obtaining weather information, the method being applied to an electronic device, the method comprising: Displaying a first interface of a first application; sending a first satellite short message according to a first operation on the first interface, wherein the first satellite short message is used for acquiring weather information of a target position; receiving a second satellite short message, wherein the second satellite short message comprises weather information of the target position; and displaying the weather information on the first interface.
- 2. The method of claim 1, wherein the number of second satellite messages is one, the second satellite messages including a reduced version of weather information for the target location.
- 3. The method according to claim 1 or 2, wherein the sending the first satellite message according to the first operation at the first interface comprises: receiving the first operation at the first interface; and sending the first satellite short message according to the first operation under the condition that the ground network of the electronic equipment is unavailable.
- 4. A method according to claim 3, characterized in that the method further comprises: And acquiring weather information of the target position through the ground network according to the first operation under the condition that the ground network of the electronic equipment is available.
- 5. The method according to any one of claims 1 to 4, wherein the sending the first satellite sms according to the first operation on the first interface includes: Displaying a first control and a second control according to the first operation of the first interface, wherein the first control is used for selecting the weather information of a first type, the second control is used for selecting the weather information of a second type, and the time period corresponding to the weather information of the first type and the weather information of the second type are different; according to the operation of the first control, the first satellite short message is sent, and the first satellite short message is also used for indicating that the weather information is of the first type, or And sending the first satellite short message according to the operation of the second control, wherein the first satellite short message is also used for indicating that the weather information is of the second type.
- 6. The method of claim 5, wherein the step of determining the position of the probe is performed, The first type of weather information is weather information of 12 hours in the future; the second type of weather information is weather information of 3 days in the future.
- 7. The method according to any one of claim 1 to 6, wherein, The first operation is a pull-down operation of the first interface of the first application, or The first operation is the operation of a weather refreshing control preset in the first interface.
- 8. The method according to any one of claims 1-7, wherein displaying the weather information on the first interface includes: And acquiring weather information of the target position from the second satellite short message, and presenting the weather information through interface elements of the first interface.
- 9. An electronic device comprising a memory and a processor, wherein the memory stores a program that when executed by the processor causes the electronic device to perform the method of any one of claims 1-8.
- 10. A readable storage medium, wherein the readable storage medium stores a program and/or instructions, which when executed by a processor, implement the method of any one of claims 1-8.
- 11. A computer program product, characterized in that the computer program product comprises a program which, when run by an electronic device, causes the electronic device to carry out the method according to any one of claims 1-8.
Description
Method for acquiring weather information, electronic device, readable storage medium, chip and program product Technical Field The present application relates to the field of satellite communications, and in particular, to a method for acquiring weather information, an electronic device, a readable storage medium, a chip, and a program product. Background The weather application can provide future weather information and related services for users, guide the users to travel in the future, wear clothes and other life contents, and becomes an indispensable tool in daily life of people. Currently, electronic devices typically acquire weather information for weather applications over a terrestrial network. For example, the electronic device obtains weather information from a weather server via a wireless fidelity (WIRELESS FIDELITY, wi-Fi) network, a cellular network, or the like. However, access to the ground network usually depends on access network devices such as base stations and routers, and in remote areas, offshore, desert, forest or polar areas, access network devices are usually not available, so that these areas cannot cover the ground network. In this case, the electronic device will not be able to obtain weather information, affecting the user experience. Disclosure of Invention The application provides a method for acquiring weather information, electronic equipment, a readable storage medium, a chip and a program product, which are used for solving the problem that the electronic equipment cannot acquire the weather information under the condition of no ground network in the prior art. In order to achieve the above purpose, the application adopts the following technical scheme: the first aspect provides a method for acquiring weather information, which is applied to electronic equipment, and comprises the steps of displaying a first interface of a first application; according to the first operation on the first interface, a first satellite short message is sent, the first satellite short message is used for acquiring weather information of a target position, a second satellite short message is received, the second satellite short message comprises the weather information of the target position, and the weather information is displayed on the first interface. The first application is, for example, a weather application, or other application capable of displaying weather information. The first interface is a related interface for displaying weather information. The target location may be the current location of the electronic device, or other location that the user desires to query, as the application is not particularly limited in this regard. In some implementations, the electronic device obtains weather information of the target location from the second satellite sms, and presents the weather information through an interface element of the first interface. Specifically, the electronic device may update all or part of the original interface elements of the first interface so as to enable the original interface elements to present weather information of the target position, or the electronic device may increase the interface elements to further present weather information of the target position. By way of example, the interface elements may include still images, dynamic images, popups, charts, text, and/or the like. According to the method for acquiring the weather information, the electronic equipment can communicate with the satellite by utilizing the satellite short message under the condition of no ground network, and the weather information is acquired through the satellite network, so that the method has better user experience. In some implementations, the number of second satellite messages is one, the second satellite messages including weather information for the reduced version of the target location. Taking the example that the highest single downlink data volume of the satellite is 96 bits (bit), the data volume of the weather information of the simplified version is smaller than or equal to 96 bits, and based on the data volume, the satellite can send all the weather information of the simplified version to the electronic equipment through one second satellite short message. The method can reduce the interaction times of the electronic equipment and the satellite, can rapidly acquire and update weather information, and improves user experience. For example, a simplified version of weather information may include only core weather information, such as air temperature, weather phenomena, precipitation probabilities, etc. at a future time to minimize the data volume of the weather information. The weather phenomenon can be sunny days, cloudy days, heavy rain, cloudy days and the like. The simplified version of weather information may be preset or user-configurable. The method and the device do not limit the specific content of the weather information in the second satellite short message