CN113382363B - Method and device for sending messages based on different networks - Google Patents

Method and device for sending messages based on different networks Download PDF

Info

Publication number
CN113382363B
CN113382363B CN202110460516.4A CN202110460516A CN113382363B CN 113382363 B CN113382363 B CN 113382363B CN 202110460516 A CN202110460516 A CN 202110460516A CN 113382363 B CN113382363 B CN 113382363B
Authority
CN
China
Prior art keywords
electronic device
message
network
beidou
communication network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110460516.4A
Other languages
Chinese (zh)
Other versions
CN113382363A (en
Inventor
沈丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202110460516.4A priority Critical patent/CN113382363B/en
Publication of CN113382363A publication Critical patent/CN113382363A/en
Application granted granted Critical
Publication of CN113382363B publication Critical patent/CN113382363B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/32Reselection being triggered by specific parameters by location or mobility data, e.g. speed data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0229Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a wanted signal
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application provides a method and a device for sending messages based on different networks, relates to the field of communication, and can avoid the problem of network disconnection during network switching as much as possible and improve user experience. The method comprises the following steps: if the first condition is satisfied, determining that the current environment covers the cellular mobile communication network, and searching and residing the cellular mobile communication network; responding to the operation that a user inputs first content on a first interface of a first application program and selects to send, and sending a first message based on a cellular mobile communication network, wherein the type of the first message is a mobile short message, and the first message comprises the first content; if the first condition is determined not to be met, determining that the current environment does not cover the cellular mobile communication network, and searching and residing in the Beidou communication network; and responding to the operation that the user inputs the second content on the first interface of the first application program and selects to send, and sending a second message based on the Beidou communication network, wherein the type of the second message is the Beidou short message, and the second message comprises the second content.

Description

Method and device for sending messages based on different networks
Technical Field
The present application relates to the field of terminals, and in particular, to a method and an apparatus for sending messages based on different networks.
Background
The Beidou navigation and positioning system is a satellite navigation and positioning system independently developed in China, and can provide radio determination service (RDSS) service for users. The RDSS service may include a beidou short message service. The service form of the Beidou short message is similar to the short message service provided by domestic operators, and the bidirectional short digital message communication is realized between users and between the users and a central control system by mainly utilizing the bidirectional communication function of the Beidou.
At present, the country promotes the Beidou short message to enter common terminal equipment, and the commercial popularization rate of the Beidou short message is improved. Because the charging systems of the Beidou short message and the common short message are different and the communication paths are different, the terminal equipment needs to be switched between the Beidou network and the cellular network. In the switching process of the Beidou network and the cellular network, the network is disconnected for a period of time, and the user experience is poor.
Disclosure of Invention
The embodiment of the application provides a method and a device for sending messages based on different networks, which can avoid the problem of network disconnection during network switching as much as possible and can improve user experience.
In a first aspect, an embodiment of the present application provides a method for sending a message based on different networks, which is applied to a first electronic device, and includes: if the first condition is satisfied, determining that the current environment covers the cellular mobile communication network, and searching and residing the cellular mobile communication network; responding to the operation that a user inputs first content on a first interface of a first application program and selects to send, and sending a first message based on a cellular mobile communication network, wherein the type of the first message is a mobile short message, and the first message comprises the first content; if the first condition is determined not to be met, determining that the current environment does not cover the cellular mobile communication network, and searching and residing in the Beidou communication network; responding to the operation that a user inputs second content on a first interface of a first application program and selects to send, and sending a second message based on the Beidou communication network, wherein the type of the second message is a Beidou short message, and the second message comprises the second content; wherein the first condition comprises one or more of: the first electronic equipment is in an elevator scene, a ground depot, a tunnel scene or a high-speed rail scene; the current position of the first electronic equipment is covered by a cellular network; a cell in which the first electronic device last resided is located within a cellular network coverage area; the neighboring cell of the cell where the first electronic device resides last time is located in the coverage area of the cellular network; the cell indicated by the cell information received last time by the first electronic equipment is positioned in the coverage area of the cellular network; the first electronic device is in an airplane mode.
Based on the method provided by the embodiment of the application, the Beidou and cellular switching performance can be improved, and the problem of network disconnection during network switching can be avoided as much as possible. Specifically, when the first condition is met, a cellular mobile communication network (which may be referred to as a cellular network for short) can be searched and resided, and a mobile short message is sent based on the cellular network, so that high cost caused by residence in a Beidou network is avoided, and the network residence experience of a user can be improved; when the first condition is not met, the Beidou communication network can be searched quickly and resided (the Beidou network can be called for short) and the Beidou short message is sent based on the Beidou network, so that the emergency contact efficiency of the user is improved, and the power consumption is reduced (the power consumption caused by the fact that the cellular network is searched all the time is avoided).
In one possible implementation, when the first electronic device is camped on a cellular mobile communication network, the method further comprises: the first electronic equipment receives a third message from the second electronic equipment, and the type of the second message is a mobile short message. That is, the first electronic device can not only transmit the mobile short message but also receive the mobile short message when the first electronic device is resident in the cellular mobile communication network.
In one possible implementation manner, when the first electronic device resides in the beidou communication network, the method further includes: the first electronic equipment receives a fourth message from the second electronic equipment, wherein the type of the fourth message is Beidou short message. That is to say, first electronic equipment not only can send big dipper short message, can also receive big dipper short message when residing in big dipper communication network.
In one possible implementation, the method further includes: and receiving the operation that the user starts the authority of receiving and sending the Beidou short message in the second application program. Therefore, after the user starts the Beidou short message receiving and sending authority in the second application program, the Beidou short message can be received and sent.
In one possible implementation, the method further includes: when the first electronic equipment resides in the cellular mobile communication network, if the second condition is determined to be met, judging whether the current environment covers the cellular mobile communication network; wherein the second condition comprises one or more of: a signal quality of a cell in which the first electronic device is camped is below a first threshold; the signal strength of the cell in which the first electronic device resides is below a second threshold; and the packet loss rate of the cell where the first electronic device resides is greater than a third threshold.
Thus, if the second condition is satisfied, the first electronic device may be considered to be currently unable to access the cellular network (e.g., the first electronic device may drop the network), so that it may be determined whether there is a cellular network in the current environment, so as to determine whether to search for the cellular network and re-access the cellular network.
In one possible implementation, if it is determined that the first condition is satisfied, determining that the current environment covers the cellular mobile communication network includes: when the first electronic equipment resides in the Beidou communication network, whether a first condition is met or not is determined based on a preset period, and if the first condition is met, the current environment is judged to cover the cellular mobile communication network. The first electronic equipment periodically judges whether the first condition is met, if the first condition is met, the cellular network is quickly switched to, high cost caused by the fact that the first electronic equipment is resided in the Beidou network is avoided, and the experience of a user in the network can be improved.
In a possible implementation manner, if the first electronic device turns on a Global Navigation Satellite System (GNSS) function, the determining that the current environment covers the cellular mobile communication network includes: the method comprises the steps of collecting GNSS information, wherein the GNSS information indicates the geographic coordinates of the current position of first electronic equipment; determining that the position indicated by the geographic coordinates has cellular network coverage based on a geo-fencing technology; or sending request information to the cloud server and receiving response information sent by the cloud server; the request information includes geographic coordinates, and the response information is used for indicating that the position indicated by the geographic coordinates has cellular network coverage.
In one possible implementation, the first interface includes an input box and a send option; in response to a user entering first content at a first interface of a first application and selecting an operation to send, sending a first message based on a cellular mobile communications network, comprising: responding to the operation that a user inputs first content in an input box and selects a sending option, sending a first message based on a cellular mobile communication network, and displaying the first message and first prompt information on a first interface, wherein the first prompt information is used for prompting that the type of the first message is short message/multimedia message; responding to the operation that a user inputs second content on a first interface of a first application program and selects to send, sending a second message based on the Beidou communication network, and the method comprises the following steps: and responding to the operation that the user inputs the second content in the input box and selects the sending option, sending a second message based on the Beidou communication network, and displaying the second message and second prompt information on the first interface, wherein the second prompt information is used for prompting that the type of the second message is the Beidou short message.
Therefore, when the first electronic device resides in a cellular mobile communication network (which may be referred to as a cellular network for short), the mobile short message can be sent based on the cellular network, thereby avoiding high cost caused by residing in a Beidou network and improving the network residing experience of a user; when the first electronic equipment resides in the Beidou communication network (the Beidou network can be referred to simply), the Beidou short message can be sent based on the Beidou network, the emergency contact efficiency of the user is improved, and the power consumption is reduced (the power consumption caused by the fact that the cellular network is searched all the time is avoided).
In a possible implementation manner, in a case that the first electronic device resides in the cellular mobile communication network, before the first electronic device receives the first content input by the user, the input frame includes third prompt information for prompting the user that the type of the information to be sent is a short message/multimedia message; under the condition that the first electronic device resides in the Beidou communication network, before the first electronic device receives second content input by a user, the input frame comprises fourth prompt information, and the fourth prompt information is used for prompting the user that the type of information to be sent is Beidou short messages. In this way, the user can know the type of information that can be currently transmitted before inputting the first content or the second content, which can improve the user experience.
In one possible implementation, the first interface further includes an identification of a network in which the first electronic device currently resides. In this way, the user can know the type of the currently resident network, and the user experience can be improved.
In a second aspect, the present application provides a system-on-chip that includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by a line.
The above-described chip system may be applied to an electronic device (e.g., a first electronic device) including a communication module and a memory. The interface circuit is configured to receive signals from a memory of the electronic device and to transmit the received signals to the processor, the signals including computer instructions stored in the memory. When executed by a processor, the computer instructions may cause an electronic device to perform the method as described in the first aspect and any of its possible designs.
In a third aspect, the present application provides a computer-readable storage medium comprising computer instructions. When the computer instructions are run on an electronic device, such as a mobile phone, they cause the electronic device to perform the method according to the first aspect and any of its possible designs.
In a fourth aspect, the present application provides a computer program product for causing a computer to perform the method according to the first aspect and any one of its possible designs when the computer program product runs on the computer.
In a fifth aspect, an embodiment of the present application provides an apparatus for sending messages over different networks, including a processor, a processor coupled with a memory, the memory storing program instructions, and the program instructions stored in the memory, when executed by the processor, enable the apparatus to implement the method according to the first aspect and any possible design thereof. The apparatus may be an electronic device; or may be an integral part of the electronic device, such as a chip.
In a sixth aspect, the present invention provides an apparatus for sending messages based on different networks, where the apparatus may be divided into different logical units or modules according to functions, and each unit or module performs different functions, so that the apparatus performs the method described in the first aspect and any possible design manner thereof.
It should be understood that the advantageous effects achieved by the chip system according to the second aspect, the computer-readable storage medium according to the third aspect, the computer program product according to the fourth aspect, and the apparatus according to the fifth aspect or the sixth aspect provided above can be referred to as the advantageous effects of the first aspect and any possible design thereof, and are not repeated herein.
Drawings
Fig. 1 is a schematic diagram of a communication system architecture according to an embodiment of the present application;
fig. 2A is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure;
fig. 2B is a schematic structural diagram of a cloud server and an electronic device according to an embodiment of the present application;
FIG. 3 is a schematic flow chart provided by an embodiment of the present application;
FIG. 4 is a schematic view of a scene and an interface display provided in an embodiment of the present application;
FIG. 5 is a schematic view of another scenario and interface display provided by an embodiment of the present application;
FIG. 6 is a schematic illustration of a display provided by an embodiment of the present application;
FIG. 7 is a schematic illustration of yet another display provided by an embodiment of the present application;
FIG. 8 is a schematic illustration of yet another display provided by an embodiment of the present application;
FIG. 9 is a schematic illustration of yet another display provided by an embodiment of the present application;
FIG. 10 is a schematic flow chart diagram provided by an embodiment of the present application;
fig. 11 is a schematic structural diagram of a chip system according to an embodiment of the present disclosure.
Detailed Description
At present, electronic equipment needs to be switched back and forth between a Beidou network and a cellular network, if the cellular network is determined to be unavailable, the cellular network needs to be searched, the Beidou network is searched and resided after the cellular network is not searched, at the moment, the network is disconnected for a period of time, and user experience is poor. Moreover, the electronic equipment continuously searches and resides between the cellular network and the Beidou network, so that the power consumption is higher, and the endurance time of the electronic equipment is shortened.
The embodiment of the application provides a method and a device for switching a cellular network and a Beidou network, which can quickly search and reside in the cellular network in a place with the cellular network, avoid high cost caused by residence in the Beidou network (it should be understood that the cost of the Beidou network is usually higher than that of the cellular network), and improve the experience of a user in residence of the network (the cellular network is more mature, and the service is more comprehensive); in places without a cellular network (for example, the field), the Beidou network can be quickly searched and resided, the emergency contact efficiency of a user is improved, the power consumption is reduced (the power consumption caused by the fact that the cellular network is searched all the time is avoided), and the duration of the electronic equipment is avoided being shortened.
Fig. 1 is a schematic diagram of a communication system architecture according to an embodiment of the present application. The communication system may include an RDSS communication domain and a cellular communication domain. The RDSS communication domain may include electronic device 100, electronic device 1500, satellite 200, receiving platform 300 (which may also be referred to as a ground station or a control station), and beidou system 400 (which may also be referred to as a beidou operations center). The cellular communication domain may include an authentication center 500, an authentication center 1600, an operator platform 700, an operator platform 800, a network device 900 (e.g., a base station), a network device 1000 (e.g., a base station), an emergency assistance platform 600, a national emergency assistance center 1400, an electronic device 1100, an electronic device 1200, and so forth. Wherein electronic device 100/electronic device 1500 may communicate with electronic device 1100/electronic device 1200 via the RDSS domain and the cellular communication domain. The electronic device 1100 and the electronic device 1200 may communicate over a cellular communication domain. The electronic device 100 and the electronic device 1500 may communicate via the RDSS communication domain.
A procedure of the electronic device 100 communicating with the electronic device 1100 through the RDSS domain and the cellular communication domain will be described below by taking an example in which the electronic device 100 sends a beidou short message (which may also be referred to as beidou short message) to the electronic device 1100.
1) Under the outdoor condition without the cellular network, the electronic device 100 may register with the beidou network and send the beidou short message to the satellite 200 based on the beidou network.
For example, the Beidou short message can issue 140 words of information, so that the user can be positioned and the position of the user can be displayed. The Beidou short message can be applied to outdoor scenes such as individual soldiers, emergency, tourism and the like.
2) The satellite 200 can send the beidou short message to the receiving platform 300 after receiving the beidou short message.
3) The receiving platform 300 can send the beidou short message to the beidou system 400 after receiving the beidou short message.
4) After receiving the big dipper short message, the big dipper system 400 converts the big dipper short message into a short message, and sends the short message to the authentication center 500.
The beidou system 400 maps the terminal number and the home operator number of the beidou short message and converts the beidou short message into a short message (mobile short message).
5) After receiving the short message, the authentication center 500 determines the operator platform to which the user sending the short message belongs, and forwards the short message to a corresponding operator platform (e.g., operator platform 700).
6) The carrier platform 700 determines a network device (e.g., network device 900) to which a recipient of the short message (e.g., electronic device 1100) currently corresponds and forwards the short message to the network device 900.
The operator platform 700 may query a Home Subscriber Server (HSS)/Home Location Register (HLR) of the number of the electronic device 1100, determine a network device (e.g., the network device 900) currently corresponding to the receiving party, and forward the short message to the network device 900. The HSS stores the registration information of the user.
7) The network device 900 may send the short message to the electronic device 1100 after receiving the short message.
8) The electronic device 1100 receives the short message forwarded by the network device 900, and the content of the short message is the same as that of the beidou short message sent by the electronic device 100.
Optionally, after receiving the short message forwarded by the network device 900, the electronic device 1100 may prompt the user that the short message comes from the electronic device 100 (corresponding to the user). Further, the electronic device 1100 may prompt the user that the short message is a beidou short message from the electronic device 100 (corresponding to the user).
Next, taking the example that the electronic device 1100 sends the beidou short message to the electronic device 100, a procedure that the electronic device 100 communicates with the electronic device 1100 through the RDSS domain and the cellular communication domain will be described.
1) Electronic device 1100 is camped on a cellular network and sends text messages to network device 900 over the cellular network.
2) Network device 900 may send the short message to operator platform 700 after receiving it.
3) The operator platform 700 may send the short message to the authentication center 500 after receiving the short message.
4) The authentication center 500 can send the short message to the beidou system 400 after receiving the short message.
5) After receiving the short message, the beidou system 400 can send the short message to the receiving platform 300.
6) The receiving platform 300 may send the short message to the satellite 200 after receiving the short message.
7) The satellite 200 may send the short message to the electronic device 100 after receiving the short message.
8) The electronic device 100 receives the beidou short message forwarded by the satellite 200, and the content of the beidou short message is the same as that of the short message sent by the electronic device 1100.
Optionally, after receiving the beidou short message forwarded by the satellite 200, the electronic device 100 may prompt the user that the beidou short message comes from the electronic device 1100 (corresponding user). Further, the electronic device 100 may prompt the user that the beidou sms is an sms/mms (i.e., cellular message) from the electronic device 1100 (corresponding user).
For the communication process between the electronic device 100 and the electronic device 1200, reference may be made to the above description, which is not repeated herein.
In addition, if the electronic device 100 makes an emergency call, the national rescue center 1400 may transmit emergency call information to the nearest rescue center according to the location information of the electronic device that made the emergency call. For example, if the electronic device for emergency call is located somewhere in Yunnan, the emergency call information is sent to the emergency center in Yunnan. For another example, if the electronic device for emergency call is located in vietnam, if the emergency center of vietnam and the national emergency center 1400 are networked, the emergency call information may be transmitted to the emergency center of vietnam.
A process of the electronic device 100 communicating with the electronic device 1500 through the RDSS communication domain will be described below by taking the example that the electronic device 100 sends the beidou short message to the electronic device 1500.
1) The electronic device 100 sends the beidou short message to the satellite 200 based on the beidou network.
2) The satellite 200 can send the beidou short message to the receiving platform 300 after receiving the beidou short message.
3) The receiving platform 300 can send the beidou short message to the beidou system 400 after receiving the beidou short message.
4) After receiving the beidou short message, the beidou system 400 determines that the receiver (e.g., the electronic device 1500) of the beidou short message is located in the RDSS communication domain, and sends the beidou short message to the receiving platform 300.
5) After receiving the beidou short message, the receiving platform 300 forwards the beidou short message to the satellite 200.
6) After receiving the beidou short message, the satellite 200 may send the beidou short message to a corresponding receiving party (e.g., the electronic device 1500).
At present, the country promotes the Beidou short message to enter common terminal equipment, and the commercial popularization rate of the Beidou short message is improved. Because the charging systems of the Beidou short message and the common short message are different and the communication paths are different, the terminal equipment needs to be switched between the Beidou network and the cellular network. In the switching process of the Beidou network and the cellular network, the network is disconnected for a period of time, and the user experience is not good.
In order to solve the problems, the application provides a switching method of a cellular network and a Beidou network, when a user cannot be connected to the cellular network, the cellular network is preferentially searched, if the user cannot be found, the user can be considered to be in an area without cellular network coverage, and a mobile phone can search the Beidou network and reside in the Beidou network. Therefore, the network to be switched can be intelligently selected, the Beidou network or the cellular network can be quickly switched to, the network disconnection time is reduced, and the user experience is improved.
As shown in fig. 2A, in the embodiment of the present application, an electronic device 200 (such as a mobile phone) is taken as an example, and a structure of the electronic device provided in the embodiment of the present application is illustrated. The electronic device 200 (e.g., a cell phone) may include: the mobile communication device includes a processor 210, an external memory interface 220, an internal memory 221, a Universal Serial Bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display 294, and a Subscriber Identity Module (SIM) card interface 295.
The sensor module 280 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
It is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the electronic apparatus 200. In other embodiments, electronic device 200 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 210 may include one or more processing units, such as: the processor 210 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller may be a neural center and a command center of the electronic device 200. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may hold instructions or data that have just been used or recycled by processor 210. If the processor 210 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 210, thereby increasing the efficiency of the system.
In some embodiments, processor 210 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
It should be understood that the connection relationship between the modules illustrated in the present embodiment is only an exemplary illustration, and does not limit the structure of the electronic device 200. In other embodiments, the electronic device 200 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charge management module 240 is configured to receive a charging input from a charger. The charger may be a wireless charger or a wired charger. The charging management module 240 may also supply power to the electronic device through the power management module 241 while charging the battery 242.
The power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and/or the charging management module 240, and provides power to the processor 210, the internal memory 221, the external memory, the display 294, the camera 293, and the wireless communication module 260. In some embodiments, the power management module 241 and the charging management module 240 may also be disposed in the same device.
The wireless communication function of the electronic device 200 may be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor, the baseband processor, and the like. In some embodiments, antenna 1 of electronic device 200 is coupled to mobile communication module 250 and antenna 2 is coupled to wireless communication module 260, such that electronic device 200 may communicate with networks and other devices via wireless communication techniques.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 200 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 250 may provide a solution including 2G/3G/4G/5G wireless communication applied on the electronic device 200. The mobile communication module 250 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 250 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation.
The mobile communication module 250 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be disposed in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be disposed in the same device as at least some of the modules of the processor 210.
The wireless communication module 260 may provide a solution for wireless communication applied to the electronic device 200, including WLAN (e.g., wireless fidelity, Wi-Fi) network, bluetooth (bl electronic device, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like.
The GNSS may include a beidou satellite navigation system (BDS), a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The wireless communication module 260 may be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 210. The wireless communication module 260 may also receive a signal to be transmitted from the processor 210, frequency-modulate and amplify the signal, and convert the signal into electromagnetic waves via the antenna 2 to radiate the electromagnetic waves.
The electronic device 200 implements display functions via the GPU, the display screen 294, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 294 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 294 is used to display images, video, and the like. The display screen 294 includes a display panel.
The electronic device 200 may implement a shooting function through the ISP, the camera 293, the video codec, the GPU, the display screen 294, and the application processor. The ISP is used to process the data fed back by the camera 293. The camera 293 is used to capture still images or video. In some embodiments, electronic device 200 may include 1 or N cameras 293, N being a positive integer greater than 1.
The external memory interface 220 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 200. The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
Internal memory 221 may be used to store computer-executable program code, including instructions. The processor 210 executes various functional applications of the electronic device 200 and data processing by executing instructions stored in the internal memory 221. For example, in the embodiment of the present application, the processor 210 may execute instructions stored in the internal memory 221, and the internal memory 221 may include a program storage area and a data storage area.
The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (e.g., audio data, a phone book, etc.) created during use of the electronic device 200, and the like. In addition, the internal memory 221 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
Electronic device 200 may implement audio functions via audio module 270, speaker 270A, receiver 270B, microphone 270C, headset interface 270D, and an application processor, among other things. Such as music playing, recording, etc.
The keys 290 include a power-on key, a volume key, etc. The keys 290 may be mechanical keys. Or may be touch keys. The motor 291 may generate a vibration cue. The motor 291 can be used for both incoming call vibration prompting and touch vibration feedback. Indicator 292 may be an indicator light that may be used to indicate a state of charge, a change in charge, or may be used to indicate a message, missed call, notification, etc. The SIM card interface 295 is used to connect a SIM card. The SIM card can be attached to and detached from the electronic apparatus 200 by being inserted into the SIM card interface 295 or being pulled out from the SIM card interface 295. The electronic device 200 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 295 may support a Nano SIM card, a Micro SIM card, a SIM card, etc.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 200. In other embodiments of the present application, the electronic device 200 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
For example, the electronic device 100 may be a mobile phone, a smart remote controller, a wearable device (such as a smart band, a smart watch, or smart glasses), a handheld computer, an Augmented Reality (AR)/Virtual Reality (VR) device, a Portable Multimedia Player (PMP), a media player, or the like. The embodiment of the present application does not set any limit to the specific type of the electronic device.
For another example, as shown in fig. 2B, the electronic device may include an AP. The AP may include a decision center module, and the decision center module may perform scene recognition (e.g., recognizing an elevator scene, a basement scene, a high-speed rail scene, etc.), cell quality evaluation, self-learning, policy matching, and the like. Of course, the electronic device may further include a modem, a Beidou module, a WIFI/BT/GPS module, and the like.
Wherein, big dipper module can be one or more devices of at least one communication processing module of integration. The Beidou module can receive electromagnetic waves through the antenna, frequency modulate and filter electromagnetic wave signals, and send the processed signals to the processor (for example, AP). The Beidou module can also receive a signal to be sent from a processor, frequency modulation and amplification are carried out on the signal, and the signal is converted into electromagnetic waves through an antenna to be radiated.
As shown in fig. 2B, the electronic device may also communicate with a cloud server. The cloud server may include big data or total packet data. The cloud server may determine whether the location indicated by the geographic coordinates is covered by a cellular network based on the big data or the general packet data. The big data includes an association relationship between a geographic location and cell information obtained based on data statistics (e.g., collected from a network device side (e.g., a base station), or provided by an operator). For example, the geographic location a may be associated with cell information a, and the cell information a may include information such as surrounding operator frequency band information, cell ID, and signal strength. The total packet data includes an association relationship between cell information and a geographical location collected by the plurality of electronic devices. The cloud server may communicate with the electronic device through a cloud service API. The cloud server may be located in a cellular communication domain as in fig. 1.
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the present application, unless otherwise specified, "at least one" means one or more, "a plurality" means two or more. In addition, in order to facilitate clear description of technical solutions of the embodiments of the present application, in the embodiments of the present application, terms such as "first" and "second" are used to distinguish the same items or similar items having substantially the same functions and actions. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance.
For convenience of understanding, the method for sending messages based on different networks provided by the embodiments of the present application is specifically described below with reference to the accompanying drawings. When messages are sent based on different networks, network switching needs to be performed based on different situations.
As shown in fig. 3, an embodiment of the present application provides a network switching method, including:
301. the electronic device resides in a cellular network.
The cellular network in which the electronic device (e.g., the first electronic device) resides may include global system for mobile communication (GSM), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), New Radio (NR), and the like, which are not limited herein.
Electronic device camping on a cellular network may be understood as electronic device camping on a cell. The electronic device may scan carrier frequencies of all evolved universal terrestrial radio access network (e-utran) bands. At each carrier frequency, the electronic device searches for the cell with the strongest signal quality (referred to as a cell for short). For each cell, the electronic device may select the cell to camp on when the electronic device determines that both the Reference Signal Receiving Power (RSRP) -related measurement (e.g., Srxlev) and the Reference Signal Receiving Quality (RSRQ) -related measurement (e.g., square) are greater than zero.
302. The electronic device determines whether a second condition is satisfied.
Illustratively, the second condition includes one or more of:
1) the signal quality of the cell in which the electronic device resides is below a first threshold;
2) the signal strength of the cell in which the electronic equipment resides is lower than a second threshold;
3) and the packet loss rate of the cell where the electronic equipment resides is greater than a third threshold.
303. If the second condition is met, the electronic equipment judges whether the current environment has a cellular network.
If the second condition is satisfied, it may be considered that the electronic device cannot currently access the cellular network (for example, the electronic device may drop the cellular network), and therefore, it is necessary to determine whether there is a cellular network in the current environment, so as to determine whether to search for the cellular network and to re-access the cellular network.
304. And if the current environment is determined to have the cellular network, searching the cellular network.
If the first condition is met, the electronic equipment determines that the current environment has a cellular network.
Wherein the first condition comprises one or more of:
1) and determining that the electronic equipment is in the elevator scene.
For example, when the electronic device adopts the gravity sensing sensor to detect the movement trend of the mobile terminal in the vertical direction; or, when the electronic device adopts an acceleration sensor to detect the speed/acceleration of the mobile terminal in the vertical direction; or when the electronic equipment determines that the electronic terminal is currently in the elevator scene according to the motion trend in the vertical direction detected by the gravity sensing sensor and the speed/acceleration in the vertical direction detected by the acceleration sensor.
2) And determining that the electronic equipment is in a ground library and tunnel scene.
For example, the electronic device may obtain the current position of the electronic device in real time through a GPS or a beidou system, and if it is determined that the electronic device is currently located in a basement or a tunnel, the electronic device may be considered to be located in a basement or tunnel scene.
3) And determining that the electronic equipment is in a high-speed rail scene.
For example, the moving speed of the electronic device may be determined by GPS, and after the moving speed of the electronic device is determined to be higher than a certain speed for a certain period of time, the electronic device is considered to be in a high-speed rail scene.
Of course, the electronic device may be in other specific scenarios that may cause a network drop, and is not limited to an elevator scenario, a basement, a tunnel, a high-speed rail, and the like.
4) And determining that the current position of the electronic equipment has cellular network coverage.
For example, if the electronic device turns on a GNSS function (e.g., a GPS function or a beidou function), GNSS information may be collected, which may indicate the geographic coordinates of the current location of the electronic device. The electronic device may determine whether the location indicated by the geographic coordinates is covered by a cellular network.
For example, the electronic device can determine whether the location indicated by the geo-coordinates is covered by a cellular network based on geo-fencing techniques. Alternatively, the electronic device may send the geographic coordinates to a cloud server, which may determine whether the location indicated by the geographic coordinates is covered by a cellular network based on big data or general packet data. The big data includes an association relationship between a geographic location and cell information obtained based on data statistics (e.g., collected from a network device side (e.g., a base station), or provided by an operator). For example, the geographic location a may be associated with cell information a, and the cell information a may include information such as surrounding operator frequency band information, cell ID, and signal strength. The total packet data includes an association relationship between cell information and a geographical location collected by the plurality of electronic devices.
5) Determining that a cell in which the electronic device last resided is within a coverage area of a cellular network.
For example, the ID of the cell in which the electronic device last resided may be converted to a geographic coordinate, and it may be determined whether the location indicated by the geographic coordinate has cellular network coverage.
For example, the terminal device may determine whether the location indicated by the geo-coordinates is covered by a cellular network based on geo-fencing techniques. Alternatively, the terminal device may send the geographic coordinates to a cloud server, which may determine whether there is cellular network coverage in the location indicated by the geographic coordinates based on the big data.
And if the position indicated by the geographic coordinate has cellular network coverage, determining that the cell where the electronic equipment is resided last time is located in the cellular network coverage area.
And if the position indicated by the geographic coordinate has cellular network coverage, determining that the cell where the electronic equipment is resided last time is located in the cellular network coverage area.
6) And determining that the adjacent cell of the cell where the electronic equipment resides last time is located in the coverage area of the cellular network.
Similarly, the ID of the neighborhood of the cell where the electronic device last resided may be converted into a geographic coordinate, and it may be determined whether the location indicated by the geographic coordinate is covered by the cellular network.
For example, whether the location indicated by the geo-coordinates is covered by a cellular network may be determined based on geo-fencing techniques. Alternatively, the terminal device may send the geographic coordinates to a cloud server, which may determine whether there is cellular network coverage in the location indicated by the geographic coordinates based on the big data.
And if the position indicated by the geographic coordinate is covered by the cellular network, determining that the adjacent cell of the cell where the electronic equipment resides last time is located in the coverage area of the cellular network.
7) And determining that the cell indicated by the cell information received by the electronic equipment last time is positioned in the coverage area of the cellular network.
Similarly, the ID of the cell indicated by the cell information received last time by the electronic device may be converted into a geographic coordinate, and it may be determined whether the location indicated by the geographic coordinate has cellular network coverage. For example, whether the location indicated by the geo-coordinates is covered by a cellular network may be determined based on geo-fencing techniques. Alternatively, the terminal device may send the geographic coordinates to a cloud server, which may determine whether there is cellular network coverage in the location indicated by the geographic coordinates based on the big data.
And if the position indicated by the geographic coordinate has cellular network coverage, determining that the cell indicated by the cell information received by the electronic equipment last time is located in the cellular network coverage area.
8) And determining that the electronic device is in the flight mode.
For example, the flight mode is generally set in a "settings" application, and the electronic device may call the relevant interface of the "settings" application to query whether the electronic device is in the flight mode.
When the first condition is satisfied, the electronic device determines that the current environment has a cellular network and may search for the cellular network.
In one possible design, on the basis of meeting the first condition, if it is determined that the electronic device is outdoors (for example, it is determined that the electronic device is outdoors according to positioning information collected by a GPS or a beidou module), since the beidou network generally exists outdoors, the electronic device may search for the cellular network and the beidou network at the same time, so as to reside in the cellular network and the beidou network at the same time.
305. And if determining that the current environment has no cellular network, searching the Beidou network.
If the first condition is not met, it can be determined that the cellular network does not exist in the current environment, and the electronic equipment searches for the Beidou network.
The first condition may refer to the related description in step 304, which is not described herein again.
It should be noted that step 304 and step 305 are alternatively executed. That is, if step 304 is executed, step 305 may not be executed; alternatively, if step 305 is performed, step 304 may not be performed.
It is understood that if step 304 is performed, step 306 may be further performed.
306. The electronic device determines whether a cellular network is searched.
If the cellular network is searched, the electronic device normally resides in the cellular network.
If the cellular network is not searched, the electronic device continuously searches the cellular network.
It is understood that if step 305 is performed, then steps 307-309 may be further performed.
307. The electronic device determines whether a Beidou network is searched.
308. If the Beidou network is searched, the electronic equipment normally resides in the Beidou network.
If the Beidou network is not searched, the electronic equipment continuously searches the Beidou network.
309. And when the electronic equipment resides in the Beidou network, judging whether a cellular network exists according to a preset rule.
Wherein, the step of judging whether a cellular network exists according to a preset rule can be to periodically judge whether a first condition is met. If the first condition is met, the cellular network is quickly switched to, high cost caused by the fact that the Beidou network is resided is avoided, and the experience of a user in the network can be improved.
It should be noted that, when the electronic device resides in different networks, different mobile message services, voice services, internet access services (internet access) and the like can be performed. Taking mobile message service as an example, when the electronic device resides in a cellular mobile communication network, the electronic device can send or receive mobile short messages (short messages/multimedia messages); when the electronic equipment resides in the Beidou communication network, the Beidou short message can be sent or received.
In the following, taking an example that a user uses an Application (APP) on an electronic device (e.g., a mobile phone) to receive and send a mobile short message (sms/mms) or a beidou short message, a User Interface (UI) related to the embodiment of the present application is introduced.
As shown in fig. 4 (a), assuming that the user is located in a subway, the mobile phone of the user may search for a cellular network (e.g., a 5G network), and the user may send the sms/mms based on the cellular network. As shown in fig. 4 (b), after the user opens the "information" App, the mobile phone may display an information interface 401, and in the information interface 401, a short message "camp road message" from the contact "mom" may be displayed, and a message "402 is sent to me", because the user is located in the subway, the mobile phone of the user may search for a cellular network (e.g., a 5G network), the information interface 401 may include an icon 403 that is successful in connecting to the 5G network, and an input box 404 in the information interface 401 may prompt that the user may currently send a short message/multimedia message. The user can reply a short message to the contact ' mom ' through ' haha ' based on the 5G network, and has no problem ' 405. Optionally, the mobile phone may display a prompt message 406 above the short message 405 to prompt the user that the short message/multimedia message is currently sent. Optionally, the prompt message 406 may include the sending time of the short message 405 "9:30 am today".
As shown in fig. 5 (a), assuming that a user is located in a field area without cellular network coverage, the mobile phone of the user cannot search for a cellular network (e.g., a 5G network), but can search for a beidou network, and the user can send a beidou short message based on the beidou network. As shown in fig. 5 (b), since the user is located in a field area without cellular network coverage and the cellular network (e.g., 5G network) cannot be searched by the user's handset, the information interface 401 may include an icon 410 of a failure to connect to the 5G network. Since the phone may search for the beidou network, optionally, the information interface 401 may include an icon "BDS" 411 representing the beidou network. Optionally, the beidou network may be represented by other types of identifiers, for example, by the words "beidou" or icons in other shapes, which is not limited in this application. An input box 404 in the information interface 401 may prompt the user that the beidou short message may be currently sent. Optionally, the information interface 401 may further include a prompt message 412, and the prompt message 412 may prompt the user that "the beidou network is currently switched to". Optionally, the prompt message 412 may further include a time for switching to the beidou network.
As shown in (b) in fig. 5, in response to the operation of clicking the input box 404 by the user, as shown in (a) in fig. 6, the mobile phone may display a soft keyboard 421, and the user may input the content of the beidou short message to be sent through the soft keyboard 421. Optionally, the mobile phone may further display a prompt message 422 to prompt the user that the beidou short message is currently being edited. As shown in fig. 6 (b), the user can reply with a beidou short message to the contact "mom" based on the beidou network "we arrive at the destination, here, the starry sky is beautiful" 423.
Optionally, the text color, the text box shape, the text box background color, the pattern and the like of the beidou short message 423 may be different from the text color, the text box shape, the text box background color, the pattern and the like of the short message 405 to prompt the user to send messages in different forms, so that the user can more quickly and quickly identify whether the sent message is a beidou short message or a short message.
In some embodiments, after the user moves from an area without cellular network coverage to an area with cellular network coverage, the handset may re-search for a cellular network and the handset may re-camp on the cellular network. As shown in fig. 7, the next day at 8:00 am, the user may send a short message "we have returned" 430 based on the cellular network.
In other embodiments, when the user is located in an area covered by both the cellular network and the beidou network, the mobile phone can be simultaneously resident in the cellular network and the beidou network, and the user can select to send the short message/multimedia message based on the cellular network and also select to send the beidou short message based on the beidou network. As shown in (a) or (b) of fig. 8, the information interface 401 may simultaneously display an icon 440 of successful connection to the 5G network and an icon "BDS" 441 of the beidou network. As shown in fig. 8 (a), an input box 442 in the information interface 401 may prompt the user that the sms/mms can be currently sent. The user may send a short message "we have returned" 443. The information interface 401 may further include a control 444, and the control 444 may be used to switch the sms/mms and the beidou sms. In response to the user clicking the control 444, the prompt message in the input box 442 may be switched from "sms/mms to beidou sms". The user may send a beidou short message "we have returned" 445.
In a possible design, the user can receive and transmit the Beidou short message in the information APP after the mobile phone starts the Beidou short message receiving and transmitting authority (namely, the function of receiving and transmitting the Beidou short message is started). For example, as shown in (a) in fig. 9, in response to an operation of clicking a "setting" application 902 on a main interface 901 by a user, as shown in (b) in fig. 9, the mobile phone may display a setting interface 903, the setting interface 903 may include a further function option 904, in response to an operation of clicking the further function option 904 by the user, as shown in (c) in fig. 9, the mobile phone may display a further function interface 905, the further function interface 905 may include a function option 906 for transceiving a beidou short message, and if the function for transceiving the beidou short message is turned on, the user may transceive the beidou short message in the information APP.
Optionally, if the mobile phone has sufficient power (for example, the power is greater than or equal to 50%) and is not in the power saving mode, the mobile phone may reside in the cellular network and the beidou network at the same time. In this way, the user can flexibly select a network for communication. If the mobile phone has insufficient power (for example, the power is less than 50%) or the mobile phone is in a power saving mode, the mobile phone can reside in the cellular network in an area simultaneously covered by the cellular network and the Beidou network, so that high cost and power consumption of the mobile phone residing in the Beidou network can be reduced.
When the user resides in the cellular network and the beidou network at the same time, if the cellular network cannot be accessed subsequently, the cellular network may be re-searched based on the methods shown in steps 302 to 304, which are not described herein again.
Based on the method provided by the embodiment of the application, the Beidou and cellular switching performance can be improved. A location with a cellular network may quickly register with the cell reducing the necessary cost and user experience of camping on the network. The Beidou network can be switched rapidly at the position without the cellular network, so that the emergency contact efficiency of the user is improved, and the power consumption is reduced. And the resident network has explicit prompt, so that the user can know the difference between the resident network and the sent information, and the use experience of the user can be improved.
As shown in fig. 10, an embodiment of the present application provides a method for sending a message based on different networks, which is applied to a first electronic device, and includes:
1001. and if the first condition is satisfied, determining that the current environment covers the cellular mobile communication network, and searching and residing to the cellular mobile communication network.
Wherein the first condition comprises one or more of: the first electronic equipment is in an elevator scene, a ground depot, a tunnel scene or a high-speed rail scene; the current position of the first electronic equipment is covered by a cellular network; a cell in which the first electronic device last resided is located within a cellular network coverage area; the neighboring cell of the cell where the first electronic device resides last time is located in the coverage area of the cellular network; the cell indicated by the cell information received last time by the first electronic equipment is positioned in the coverage area of the cellular network; the first electronic device is in an airplane mode.
In some embodiments, when the first electronic device resides in the cellular mobile communication network, if it is determined that the second condition is satisfied, determining whether the current environment covers the cellular mobile communication network; wherein the second condition comprises one or more of: a signal quality of a cell in which the first electronic device is camped is below a first threshold; the signal strength of the cell in which the first electronic device resides is below a second threshold; and the packet loss rate of the cell where the first electronic device resides is greater than a third threshold.
In some embodiments, determining that the current environment covers the cellular mobile communications network if it is determined that the first condition is satisfied comprises: when the first electronic equipment resides in the Beidou communication network, whether a first condition is met or not is determined based on a preset period, and if the first condition is met, it is judged that the current environment covers the cellular mobile communication network.
In some embodiments, if the first electronic device starts the GNSS function, GNSS information may be acquired, the GNSS information indicating geographic coordinates of a current location of the first electronic device; determining that the position indicated by the geographic coordinates has cellular network coverage based on a geo-fencing technology; or the first electronic device may send request information to the cloud server and receive response information sent by the cloud server; the request information includes geographic coordinates, and the response information is used for indicating that the position indicated by the geographic coordinates has cellular network coverage.
1002. And responding to the operation that the user inputs the first content on the first interface of the first application program and selects to send, and sending a first message based on the cellular mobile communication network, wherein the type of the first message is a mobile short message, and the first message comprises the first content.
In some embodiments, the first interface includes an input box and a send option; in response to a user entering first content at a first interface of a first application and selecting an operation to send, sending a first message based on a cellular mobile communications network, comprising: and responding to the operations of inputting the first content in the input box and selecting the sending option by the user, sending the first message based on the cellular mobile communication network, and displaying the first message and first prompt information on a first interface, wherein the first prompt information is used for prompting that the type of the first message is short message/multimedia message.
Illustratively, as shown in fig. 4 (b), the first interface may be, for example, the interface 401, the first message may be, for example, the message 405, and the first prompt information may be, for example, the prompt information 406.
Optionally, in a case that the first electronic device resides in the cellular mobile communication network, before the first electronic device receives the first content input by the user, the input frame includes third prompt information, where the third prompt information is used to prompt the user that the type of the information to be sent is a short message/multimedia message; under the condition that the first electronic device resides in the Beidou communication network, before the first electronic device receives second content input by a user, the input frame comprises fourth prompt information, and the fourth prompt information is used for prompting the user that the type of information to be sent is Beidou short messages.
Illustratively, as shown in fig. 4 (b), the third prompt message may be, for example, a prompt text in the input box 404. As shown in fig. 5 (b), the fourth prompt information may be, for example, prompt text in the input box 404.
Optionally, the first interface further includes an identifier of a network in which the first electronic device currently resides.
Optionally, when the first electronic device resides in the cellular mobile communication network, a third message from the second electronic device may be received, and the type of the second message is a mobile short message.
1003. And if the first condition is determined not to be met, determining that the current environment does not cover the cellular mobile communication network, and searching and residing in the Beidou communication network.
1004. And responding to the operation that the user inputs the second content on the first interface of the first application program and selects to send, and sending a second message based on the Beidou communication network, wherein the type of the second message is the Beidou short message, and the second message comprises the second content.
In some embodiments, in response to the user inputting the second content at the first interface of the first application and selecting the sending operation, sending a second message based on the beidou communication network includes: and responding to the operation that the user inputs the second content in the input box and selects the sending option, sending a second message based on the Beidou communication network, and displaying the second message and second prompt information on the first interface, wherein the second prompt information is used for prompting that the type of the second message is the Beidou short message.
Illustratively, as shown in fig. 6, the second message may be, for example, message 423, and the second prompt may be, for example, a prompt above message 423.
Optionally, the first electronic device receives an operation that the user starts the permission to receive and send the beidou short message in the second application program. The second application may be the same or different than the first application. For example, the second application may be a "settings" APP.
Optionally, when the first electronic device resides in the beidou communication network, a fourth message from the second electronic device may also be received, where the type of the fourth message is a beidou short message.
It should be noted that the first electronic device in the embodiment of fig. 10 may be a mobile phone in the foregoing embodiment, and parts not described in detail in the embodiment of fig. 10 may refer to the foregoing embodiment, which is not described herein again.
Based on the method provided by the embodiment of the application, the Beidou and cellular switching performance can be improved. When the first condition is met, a cellular mobile communication network (which can be referred to as a cellular network for short) can be searched and resided, and the mobile short message is sent based on the cellular network, so that high cost caused by residence in a Beidou network is avoided, and the network residence experience of a user can be improved; when the first condition is not met, the Beidou communication network can be searched quickly and resided (the Beidou network can be called for short) and the Beidou short message is sent based on the Beidou network, so that the emergency contact efficiency of the user is improved, and the power consumption is reduced (the power consumption caused by the fact that the cellular network is searched all the time is avoided).
Embodiments of the present application further provide a chip system, as shown in fig. 11, where the chip system includes at least one processor 1101 and at least one interface circuit 1102. The processor 1101 and the interface circuit 1102 may be interconnected by wires. For example, the interface circuit 1102 may be used to receive signals from other devices (e.g., a memory of an electronic device). As another example, the interface circuit 1102 may be used to send signals to other devices (e.g., the processor 1101).
For example, the interface circuit 1102 may read instructions stored in a memory in the electronic device and send the instructions to the processor 1101. The instructions, when executed by the processor 1101, may cause an electronic device (such as the electronic device 200 shown in fig. 2A) to perform the various steps in the embodiments described above.
Of course, the chip system may further include other discrete devices, which is not specifically limited in this embodiment of the present application.
Embodiments of the present application also provide a computer-readable storage medium, which includes computer instructions, and when the computer instructions are executed on an electronic device (e.g., the electronic device 200 shown in fig. 2A), the electronic device 200 executes various functions or steps performed by the electronic device in the above-described method embodiments.
Embodiments of the present application further provide a computer program product, which, when running on a computer, causes the computer to execute each function or step performed by the electronic device in the above method embodiments.
The embodiment of the present application further provides a processing apparatus, where the processing apparatus may be divided into different logic units or modules according to functions, and each unit or module executes different functions, so that the processing apparatus executes each function or step executed by the electronic device in the foregoing method embodiments.
From the above description of the embodiments, it is obvious for those skilled in the art to realize that the above function distribution can be performed by different function modules according to the requirement, that is, the internal structure of the device is divided into different function modules to perform all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, that is, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A method for sending messages based on different networks is applied to a first electronic device, and is characterized by comprising the following steps:
if the first condition is met, determining that the current environment covers the cellular mobile communication network, and searching and residing to the cellular mobile communication network; the determining that the current environment covers the cellular mobile communication network comprises: sending request information to a cloud server, and receiving response information sent by the cloud server; the request information comprises geographic coordinates, and the response information is used for indicating that the position indicated by the geographic coordinates has cellular network coverage; the response information is determined based on big data or total packet data; the big data comprises an incidence relation between a geographic position and cell information obtained based on data statistics, and the total packet data comprises incidence relations between the cell information and the geographic position acquired by a plurality of electronic devices; responding to the operation that a user inputs first content on a first interface of a first application program and selects to send, and sending a first message based on the cellular mobile communication network, wherein the type of the first message is a mobile short message, and the first message comprises the first content;
if the first condition is determined not to be met, determining that the current environment does not cover the cellular mobile communication network, and searching and residing in the Beidou communication network;
responding to the operation that a user inputs second content on the first interface of the first application program and selects to send, and sending a second message based on the Beidou communication network, wherein the type of the second message is a Beidou short message, and the second message comprises the second content;
wherein the first condition comprises one or more of: the first electronic device is in an elevator scene, a ground depot, a tunnel scene or a high-speed rail scene; the current position of the first electronic equipment is covered by a cellular network; a cell in which the first electronic device last resided is located within a cellular network coverage area; the neighboring cell of the cell where the first electronic device resides last time is located in a coverage area of a cellular network; the cell indicated by the cell information received last time by the first electronic equipment is positioned in the coverage area of the cellular network; the first electronic device is in an airplane mode.
2. The method of claim 1, wherein when the first electronic device is camped on the cellular mobile communications network, the method further comprises:
and the first electronic equipment receives a third message from second electronic equipment, wherein the type of the second message is a mobile short message.
3. The method of claim 1 or 2, wherein when the first electronic device resides in the Beidou communication network, the method further comprises:
the first electronic equipment receives a fourth message from second electronic equipment, wherein the type of the fourth message is Beidou short message.
4. The method of claim 1, further comprising:
and receiving the operation that the user starts the authority of receiving and sending the Beidou short message in the second application program.
5. The method of claim 1, 2 or 4, further comprising:
when the first electronic equipment is resident in the cellular mobile communication network, if the first electronic equipment is determined to meet the second condition, judging whether the current environment covers the cellular mobile communication network;
wherein the second condition comprises one or more of: a signal quality of a cell in which the first electronic device is camped is below a first threshold; the signal strength of the cell in which the first electronic device resides is below a second threshold; and the packet loss rate of the cell where the first electronic device resides is greater than a third threshold.
6. The method according to claim 1, 2 or 4, wherein determining that the current environment covers the cellular mobile communication network if it is determined that the first condition is satisfied comprises:
when the first electronic equipment resides in the Beidou communication network, whether the first condition is met or not is determined based on a preset period, and if the first condition is met, the current environment is judged to cover the cellular mobile communication network.
7. The method according to claim 1, 2 or 4, wherein if the first electronic device turns on GNSS function, the determining that the current environment covers the cellular mobile communication network comprises:
acquiring GNSS information indicating geographical coordinates of a current position of the first electronic device;
determining that the location indicated by the geographic coordinates is covered by a cellular network based on a geo-fencing technique.
8. The method of claim 1, 2 or 4, wherein the first interface comprises an input box and a send option;
the operation of responding to the user to input the first content on the first interface of the first application program and selecting to send, sending the first message based on the cellular mobile communication network, comprising:
responding to the operation that a user inputs the first content in the input box and selects the sending option, sending the first message based on the cellular mobile communication network, and displaying the first message and first prompt information on the first interface, wherein the first prompt information is used for prompting that the type of the first message is short message/multimedia message;
the sending a second message based on the Beidou communication network in response to the operation that a user inputs second content and selects to send at the first interface of the first application program comprises:
responding to the operation that a user inputs the second content in the input box and selects the sending option, sending the second message based on the Beidou communication network, and displaying the second message and second prompt information on the first interface, wherein the second prompt information is used for prompting that the type of the second message is Beidou short message.
9. The method according to claim 1, 2 or 4,
under the condition that the first electronic equipment resides in the cellular mobile communication network, before the first electronic equipment receives the first content input by the user, the input frame comprises third prompt information, and the third prompt information is used for prompting the user that the type of the information to be sent is short message/multimedia message;
under the condition that the first electronic device resides in the Beidou communication network, before the first electronic device receives the second content input by the user, the input frame comprises fourth prompt information, and the fourth prompt information is used for prompting that the type of information to be sent by the user is Beidou short messages.
10. The method according to claim 1, 2 or 4,
the first interface also includes an identification of a network on which the first electronic device currently resides.
11. An electronic device, characterized in that the electronic device comprises: a wireless communication module, memory, and one or more processors; the wireless communication module, the memory and the processor are coupled;
wherein the memory is configured to store computer program code comprising computer instructions; the computer instructions, when executed by the processor, cause the electronic device to perform the method of any of claims 1-10.
12. A computer-readable storage medium comprising computer instructions;
the computer instructions, when executed on an electronic device, cause the electronic device to perform the method of any of claims 1-10.
CN202110460516.4A 2021-04-27 2021-04-27 Method and device for sending messages based on different networks Active CN113382363B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110460516.4A CN113382363B (en) 2021-04-27 2021-04-27 Method and device for sending messages based on different networks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110460516.4A CN113382363B (en) 2021-04-27 2021-04-27 Method and device for sending messages based on different networks

Publications (2)

Publication Number Publication Date
CN113382363A CN113382363A (en) 2021-09-10
CN113382363B true CN113382363B (en) 2022-08-05

Family

ID=77570143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110460516.4A Active CN113382363B (en) 2021-04-27 2021-04-27 Method and device for sending messages based on different networks

Country Status (1)

Country Link
CN (1) CN113382363B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115065996B (en) * 2021-12-14 2023-04-07 荣耀终端有限公司 Method, terminal and communication system for generating electronic fence
CN114599023A (en) * 2022-05-10 2022-06-07 中移(上海)信息通信科技有限公司 Mobility management method, device, gateway and home location management unit
CN117135258A (en) * 2022-05-20 2023-11-28 华为技术有限公司 Method and terminal for displaying short message

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938687A (en) * 2009-07-01 2011-01-05 北京神州天鸿科技有限公司 Beidou communication terminal equipment with wireless communication function and method thereof
CN104080052A (en) * 2014-07-14 2014-10-01 四川华立德科技有限公司 Beidou mobile phone
CN105824498A (en) * 2016-01-29 2016-08-03 维沃移动通信有限公司 Starting method for electronic email application program and mobile terminal
CN106453035A (en) * 2016-09-13 2017-02-22 中国电子科技集团公司第三十二研究所 Instant messaging system based on Beidou communication and position service
CN108702586A (en) * 2016-01-04 2018-10-23 黑莓有限公司 Mobile transceiver with selectable travel mode and operating method
CN111356144A (en) * 2020-04-16 2020-06-30 东南大学 Sensor network coverage rate calculation and operation method for agricultural Internet of things

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699295A (en) * 2013-12-12 2014-04-02 宇龙计算机通信科技(深圳)有限公司 Terminal and icon display method
CN104090286A (en) * 2014-07-15 2014-10-08 江苏艾倍科科技有限公司 Beidou Satellite search locating method and device
CN105635973B (en) * 2016-03-14 2019-05-17 福州瑞芯微电子股份有限公司 A kind of network access system and method based on virtual user identifying card
US9998856B2 (en) * 2016-05-13 2018-06-12 Qualcomm Incorporated Method and/or system for positioning of a mobile device
CN111405627A (en) * 2020-03-20 2020-07-10 珠海市魅族科技有限公司 Network switching method and device of mobile terminal, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938687A (en) * 2009-07-01 2011-01-05 北京神州天鸿科技有限公司 Beidou communication terminal equipment with wireless communication function and method thereof
CN104080052A (en) * 2014-07-14 2014-10-01 四川华立德科技有限公司 Beidou mobile phone
CN108702586A (en) * 2016-01-04 2018-10-23 黑莓有限公司 Mobile transceiver with selectable travel mode and operating method
CN105824498A (en) * 2016-01-29 2016-08-03 维沃移动通信有限公司 Starting method for electronic email application program and mobile terminal
CN106453035A (en) * 2016-09-13 2017-02-22 中国电子科技集团公司第三十二研究所 Instant messaging system based on Beidou communication and position service
CN111356144A (en) * 2020-04-16 2020-06-30 东南大学 Sensor network coverage rate calculation and operation method for agricultural Internet of things

Also Published As

Publication number Publication date
CN113382363A (en) 2021-09-10

Similar Documents

Publication Publication Date Title
CN113382363B (en) Method and device for sending messages based on different networks
CN110225563B (en) Network registration method and equipment
CN111869264B (en) Method for returning to high-standard network from low-standard network and communication device
CN113133076B (en) Communication method, related equipment and communication system
CN110771111B (en) Wireless communication method and device
CN106888495B (en) Network access method and terminal
CN113660650B (en) Method and related device for device reconnection
CN114463898A (en) Express delivery pickup reminding method and device
CN106961710B (en) Network access method and terminal
CN113423125A (en) Method and device for cell reselection, handover or background search
CN112888045B (en) Cell measurement method, cell measurement device, terminal equipment, chip and storage medium
CN112237031B (en) Method for accessing intelligent household equipment to network and related equipment
CN106714277B (en) Network connection method and terminal
CN114071655A (en) Network searching method and related device
CN114499587A (en) Audio synchronization communication method and system and electronic equipment
WO2022257617A1 (en) Method for detecting bluetooth positioning device, device, and storage medium
CN113747416A (en) Network searching method and related device
CN113784408B (en) Network switching method and electronic equipment
CN115633340A (en) File transmission method, terminal, electronic device and storage medium
CN114531742B (en) Dual Wi-Fi connection method and electronic equipment
CN113225787B (en) Wi-Fi scanning method, terminal equipment and storage medium
CN114916054A (en) Communication method, device and terminal equipment
CN113407076A (en) Method for starting application and electronic equipment
CN114449593A (en) Cell switching method and communication device
CN108512586B (en) Signal processing method and device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant