Communication network connection method and device, and storage medium

By using the same user identification card and switching chip in electronic devices to switch between cellular and satellite networks, the problem that smartphones cannot pass through satellite networks is solved, and communication capabilities are achieved when the cellular network is damaged, which is easy to carry and reduces Equipment volume and weight.

CN119031449APending Publication Date: 2024-11-26HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310605227.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-25
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

Smartphones cannot communicate through satellite networks, and the satellite phone is large and inconvenient, and its application range is limited, so it cannot communicate with other devices or servers when the cellular network is damaged.

Method used

By using the same user identification card in the electronic device, switching between the cellular and satellite networks using the first chip and the second chip, the cellular network is preferred when the cellular network signal is good. When the cellular network signal is poor or there is no signal, the cellular network signal is better. Switch to the satellite network to reduce the number of user identification cards and slots, and reduce the size and weight of the equipment.

Benefits of technology

It realizes communication through the satellite network when the cellular network is damaged, solves the problem that smartphones cannot pass through the satellite network, reduces the size and weight of the equipment, is easy to carry, and improves the communication capability when the cellular network is damaged.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119031449A_ABST
    Figure CN119031449A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a communication network connection method and device and a storage medium, and relates to the technical field of terminals. The method is applied to the electronic equipment, and the electronic equipment comprises a first chip, a second chip and a user identification card. The method comprises the following steps: when the cellular signal quality of the electronic equipment is greater than or equal to a quality threshold value, the electronic equipment communicates in a cellular network based on a user identification card and a first chip; when the cellular signal quality of the electronic equipment is smaller than a quality threshold value, the electronic equipment communicates in the satellite network based on the user identification card and the second chip; the electronic equipment communicates in a cellular network or in a satellite network, and the user identification card is arranged in the same card slot of the electronic equipment. Thus, the problem that a smart phone cannot communicate through a satellite network is solved, and if no cellular network exists in the area where a user is located or cellular network signals are poor, the user can communicate with other devices through the electronic device provided by the embodiment of the invention.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a communication network connection method, device and storage medium. Background Art

[0002] Terminal devices such as mobile phones are currently the most commonly used communication devices. Terminal devices include: smart terminals that only support cellular network connections, and dual-mode industry terminals that support cellular network connections and satellite network connections. Smart terminals are such as the smartphones that users carry with them on a daily basis. Dual-mode industry terminals are satellite phones used in special industries such as outdoor adventure, rescue, and navigation.

[0003] In possible implementations, satellite phones are large and difficult to carry, and require a cellular communication mode user identification card (such as a SIM card) and a satellite communication mode user identification card (such as a Tiantong card) to be inserted into the satellite phone. The application scope of satellite phones is limited to special industries. Smart phones support multiple smart functions and have the advantages of being thin and light and easy to carry, and have a wide range of applications.

[0004] However, smartphones have the problem of being unable to communicate via satellite networks. When the cellular network in the user's area is damaged by natural disasters, the user cannot communicate with other terminal devices, service platforms, or servers that provide applications through the smartphone. Summary of the invention

[0005] The embodiments of the present application provide a communication network connection method, device and storage medium, which are applied to the field of terminal technology. By using the same user identification card in the same card slot on the electronic device, communication in a cellular network is achieved when the cellular network signal quality is good, and when there is no cellular network or the cellular network signal quality is poor, communication is achieved using a satellite network.

[0006] In a first aspect, an embodiment of the present application provides a communication network connection method. The method is applied to an electronic device, the electronic device includes a first chip, a second chip and a user identification card; the method includes:

[0007] At a first moment, the cellular signal quality of the electronic device is greater than or equal to a quality threshold, and the electronic device communicates in a cellular network based on the user identification card and the first chip;

[0008] At a second moment, the cellular signal quality of the electronic device is less than the quality threshold, and the electronic device interrupts communication in the cellular network; the second moment is later than the first moment;

[0009] At a third moment, the cellular signal quality of the electronic device is less than the quality threshold, and the electronic device communicates in the satellite network based on the user identification card and the second chip; the third moment is later than the second moment;

[0010] At a fourth moment, the electronic device interrupts communication in the satellite network; the fourth moment is later than the third moment;

[0011] At a fifth moment, the cellular signal quality of the electronic device is greater than or equal to the quality threshold, and the electronic device communicates in the cellular network based on the user identification card and the first chip; the fifth moment is later than the fourth moment;

[0012] From the first moment to the fifth moment, the user identification card is placed in the same card slot of the electronic device.

[0013] In this way, when there is a cellular network and the cellular network signal quality is good, the electronic device uses the cellular network for communication first. When there is no cellular network or the cellular network signal quality is poor, the electronic device uses the satellite network for communication. Both cellular communication and satellite communication can be based on the same user identification card in the same card slot. There is no need to configure separate user identification cards and card slots for cellular communication and satellite communication, which reduces the number of user identification cards. At the same time, it can reduce the number of necessary card slots on electronic devices, reduce the size and weight of electronic devices, and facilitate users to carry them daily.

[0014] In a possible implementation, the first chip includes an agent module;

[0015] Before the electronic device communicates in the satellite network based on the user identification card and the second chip, it also includes:

[0016] The second chip indicates a first authentication parameter in the satellite network to the proxy module;

[0017] The proxy module transmits the first authentication parameter to the user identification card;

[0018] The user identification card calculates the first authentication parameter to obtain a first authentication result;

[0019] The user identification card transmits the first authentication result to the proxy module;

[0020] The proxy module indicates the first authentication result to the second chip;

[0021] The second chip performs authentication in the satellite network according to the first authentication result;

[0022] If the second chip is successfully authenticated in the satellite network, the second chip completes the registration process in the satellite network and accesses the satellite network.

[0023] In this way, the second chip communicates with the user identification card through the proxy module on the first chip to complete the authentication in the satellite network. There is no need to set up a dedicated user identification card for the authentication of the second chip in the satellite network, thereby reducing the number of user identification cards on the electronic device and the number of corresponding card slots for the user identification cards.

[0024] In a possible implementation, the first chip further includes a cellular baseband, the second chip includes a Hayes command set AT command interface, the proxy module communicates with the user identification card via the cellular baseband, and the proxy module communicates with the second chip via the AT command interface.

[0025] In this way, the proxy module can communicate with the cellular baseband and the second chip respectively, and the second chip can communicate with the user identification card through the proxy module and the cellular baseband without setting up additional circuits for the second chip to communicate directly with the user identification card. When the electronic device can communicate through both the satellite network and the cellular network, the number of circuits on the electronic device is reduced, thereby reducing the size and weight of the electronic device.

[0026] In a possible implementation, the electronic device further includes an audio module;

[0027] The electronic device communicates in a satellite network based on a user identification card and a second chip, including:

[0028] The second chip transmits the first audio data to the proxy module through the AT command interface; the proxy module transmits the first audio data to the audio module;

[0029] and / or,

[0030] The audio module transmits the second audio data to the proxy module; the proxy module transmits the second audio data to the second chip through the AT command interface.

[0031] In this way, information interaction between the second chip and the audio module with different control protocols can be achieved without setting a corresponding dedicated audio module for the second chip, thereby reducing the number of audio modules on the electronic device, which is beneficial to reducing the volume and weight of the electronic device.

[0032] In a possible implementation manner, before the second chip indicates the first authentication parameter in the satellite network to the proxy module, the method further includes:

[0033] The second chip establishes a radio resource control RRC connection with the satellite network.

[0034] In this way, it is convenient for the second chip to interact with the network device in the satellite network when performing the registration process of the satellite network later.

[0035] In a possible implementation, the first chip further includes a communication management module;

[0036] Before the second chip indicates the first authentication parameter in the satellite network to the proxy module, the method further includes:

[0037] The communication management module instructs the second chip to perform a registration process of the satellite network through the AT command interface.

[0038] This makes it easier to control and maintain the connection between electronic equipment and the satellite network.

[0039] In a possible implementation manner, after the second chip performs authentication in the satellite network according to the first authentication result, the second chip further includes:

[0040] The second chip instructs the communication management module to update satellite registration status information, satellite beam information and / or satellite signal strength; the satellite registration status information includes satellite network registration success information or satellite network registration failure information;

[0041] If the satellite registration status information is satellite network registration success information, the communication management module instructs the electronic device to display the satellite registration status information, satellite beam information and / or satellite signal strength;

[0042] If the satellite registration status information is information about unsuccessful satellite network registration, the communication management module instructs the second chip to execute the registration process in the satellite network again through the AT command interface.

[0043] In this way, when the satellite network registration is successful, it is convenient to prompt the user that satellite communication can be performed. When the satellite network registration is unsuccessful, the communication management module instructs the second chip to perform the satellite network registration process again. It is convenient to maintain the state of the electronic device connected to the satellite network. When the connection between the electronic device and the satellite network is accidentally interrupted, the electronic device can quickly re-access the satellite network.

[0044] In a possible implementation, the first chip includes a cellular baseband, and before the electronic device communicates with the first chip in a cellular network based on the user identification card, the electronic device further includes:

[0045] The cellular baseband indicates a second authentication parameter in the cellular network to the subscriber identity card;

[0046] The user identification card calculates the second authentication parameter to obtain a second authentication result;

[0047] The user identification card transmits a second authentication result to the cellular baseband;

[0048] The cellular baseband performs authentication in the cellular network according to the second authentication result;

[0049] If the cellular baseband is successfully authenticated in the cellular network, the cellular baseband completes the registration process in the cellular network and accesses the cellular network.

[0050] In this way, electronic devices can access both satellite networks and cellular networks through the same user identification card.

[0051] In a possible implementation, the electronic device further includes a switch;

[0052] Before the electronic device communicates in the satellite network based on the user identification card and the second chip, it also includes:

[0053] The first chip drives the switch to connect the user identification card to the second chip and disconnect the user identification card from the first chip;

[0054] Before the electronic device communicates in the cellular network based on the user identification card and the first chip, the electronic device further includes:

[0055] The first chip driving switch connects the user identification card and the first chip, and disconnects the user identification card from the second chip.

[0056] In this way, by controlling the different on and off states of the switch, the user identification card can communicate with the second chip, or the user identification card can communicate with the first chip, so that the same user identification card can communicate with both the second chip and the first chip, so that the electronic device can communicate in the satellite network based on the user identification card and the second chip, or in the cellular network based on the user identification card and the first chip, and the number of user identification cards and the number of corresponding card slots are reduced, the volume and weight of the electronic device are reduced, and it is convenient for users to carry the electronic device on a daily basis. In addition, by controlling the switch, the electronic device can only access one network at a time, and there will be no situation where the electronic device accesses multiple networks at a time, which will have an adverse effect on the transmission and reception of network signals.

[0057] In a possible implementation, after the first chip drives the switch to connect the user identification card to the second chip and disconnect the user identification card from the first chip, the method further includes:

[0058] The second chip indicates a first authentication parameter in the satellite network to the user identification card;

[0059] The user identification card calculates the first authentication parameter to obtain a first authentication result;

[0060] The user identification card transmits the first authentication result to the second chip;

[0061] The second chip performs authentication in the satellite network according to the first authentication result;

[0062] If the second chip is successfully authenticated in the satellite network, the second chip completes the registration process in the satellite network and accesses the satellite network;

[0063] After the first chip driving switch connects the user identification card and the first chip and disconnects the user identification card from the second chip, the method further includes:

[0064] The first chip indicates a second authentication parameter in the cellular network to the subscriber identity card;

[0065] The user identification card calculates the second authentication parameter to obtain a second authentication result;

[0066] The user identification card transmits the second authentication result to the first chip;

[0067] The first chip performs authentication in the cellular network according to the second authentication result;

[0068] If the first chip is successfully authenticated in the cellular network, the first chip completes the registration process in the cellular network and accesses the cellular network.

[0069] In this way, the electronic device can access the satellite network and communicate in the satellite network, and can also access the cellular network and communicate in the cellular network through the same user identification card. In addition, the communication between the second chip and the user identification card does not require the transfer of the proxy module, which can reduce the time spent on the second chip to authenticate in the satellite network, thereby reducing the time spent on the electronic device to access the satellite network.

[0070] In a possible implementation, the electronic device communicates in a satellite network based on a user identification card and a second chip, including:

[0071] If the electronic device detects the satellite positioning signal, the electronic device communicates in the satellite network based on the user identification card and the second chip.

[0072] In this way, the electronic device can determine the existence of a satellite network through the satellite positioning signal, and on the other hand, it can determine that the signal quality of the satellite network can meet the communication needs of the satellite network, so that the electronic device can effectively communicate in the satellite network based on the user identification card and the second chip.

[0073] In a possible implementation, before the electronic device communicates in the satellite network based on the user identification card and the second chip, the electronic device further includes:

[0074] The electronic device detects whether there is a valid available network, and the available network does not include a satellite network;

[0075] If the electronic device detects a valid available network, the electronic device uses the valid available network for communication;

[0076] If the electronic device does not detect a valid available network, then detecting whether a satellite network exists;

[0077] The electronic device communicates in a satellite network based on a user identification card and a second chip, comprising: if the electronic device detects the satellite network, the electronic device communicates in the satellite network based on the user identification card and the second chip.

[0078] The electronic device can detect whether there is an available network. If there is an available network, the electronic device detects whether the available network is valid. The available network is such as a WiFi network. Usually, the communication delay of a WiFi network is smaller than the communication delay of a satellite network. In this way, if there is an effective available network, the electronic device can communicate through the effective available network first to improve the communication timeliness of the electronic device. If there is no effective available network, but there is a satellite network, the electronic device communicates through the satellite network to realize communication between the electronic device and other devices.

[0079] In a possible implementation manner, before the electronic device interrupts communication in the cellular network, the method further includes:

[0080] When the electronic device detects that the quality of the cellular signal of the electronic device is less than the quality threshold, the electronic device starts timing to obtain a first timing duration;

[0081] The electronic device detects whether the first timing duration exceeds a first duration threshold, and if so, the electronic device interrupts communication in the cellular network.

[0082] Generally, occasional short-term signal quality jumps in the cellular network are acceptable for the user's cellular communication and do not require communication mode switching. After the cellular signal quality of the electronic device is less than the quality threshold for a period of time, the cellular communication is interrupted. In this way, the adverse effects of communication mode switching caused by occasional short-term signal quality jumps in the cellular network can be reduced.

[0083] In a possible implementation manner, before the electronic device interrupts communication in the satellite network, the method further includes:

[0084] The electronic device detects whether a target application is currently running;

[0085] If no target application is currently running, the electronic device starts timing to obtain a second timing duration; the electronic device detects whether the second timing duration exceeds a second duration threshold, and if so, the electronic device interrupts communication in the satellite network;

[0086] If a target application is currently running, the electronic device starts timing after the target application terminates and obtains a third timing duration; the electronic device detects whether the third timing duration exceeds a third duration threshold, and if so, the electronic device interrupts communication in the satellite network.

[0087] In this way, the business interaction of the currently running target application will not be interrupted.

[0088] In a second aspect, an embodiment of the present application provides an electronic device, which includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the electronic device performs the method of the first aspect.

[0089] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the method of the first aspect is implemented.

[0090] In a fourth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the method of the first aspect.

[0091] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor, the processor being used to call a computer program in a memory to execute the method of the first aspect.

[0092] It should be understood that the second to fifth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0093] Figure 1 A schematic diagram of the structure of the electronic device 100 provided in the embodiment of the present application Figure 1 ;

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

[0095] Figure 3 A schematic diagram of the structure of a satellite phone in a possible implementation;

[0096] Figure 4 A schematic diagram of the structure of the electronic device 100 provided in the embodiment of the present application Figure 2 ;

[0097] Figure 5 Communication network connection method process provided in the embodiment of the present application Figure 1 ;

[0098] Figure 6 Communication network connection method process provided in the embodiment of the present application Figure 2 ;

[0099] Figure 7 A schematic diagram of a satellite network registration process provided in an embodiment of the present application;

[0100] Figure 8A scene diagram of a call between the electronic device 100 and the electronic device A via a satellite network provided in an embodiment of the present application;

[0101] Fig. 9 A schematic diagram of the structure of the electronic device 100 provided in the embodiment of the present application Figure 3 ;

[0102] Fig.10 A schematic diagram of the hardware structure of the chip provided in the embodiment of the present application. DETAILED DESCRIPTION

[0103] In order to clearly describe the technical solutions of the embodiments of the present application, some terms and technologies involved in the embodiments of the present application are briefly introduced below:

[0104] 1. Some terms

[0105] In the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. For example, the first chip and the second chip are only used to distinguish different chips, and their order is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.

[0106] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0107] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, a--c, bc, or abc, where a, b, c can be single or multiple.

[0108] 2. Electronic equipment

[0109] The electronic device of the embodiment of the present application may include a handheld device, a vehicle-mounted device, etc. with an image processing function. For example, some electronic devices are: mobile phones, tablet computers, PDAs, laptop computers, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to wireless modems, vehicle-mounted devices, wearable devices, terminal devices in 5G networks or future evolved public land mobile communication networks (PLANs), and wireless terminals in smart cities. The embodiments of the present application do not limit this.

[0110] As an example but not limitation, in the embodiments of the present application, the electronic device may also be a wearable device. Wearable devices may also be referred to as wearable smart devices, which are a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as hearing aids, glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also powerful functions achieved through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include full-featured, large-sized, and fully or partially independent of smartphones, such as smart watches or smart glasses, as well as devices that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various types of smart bracelets and smart jewelry for vital sign monitoring.

[0111] In addition, in the embodiments of the present application, the electronic device can also be a terminal device in the Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network that interconnects people and machines and things.

[0112] The electronic devices in the embodiments of the present application may also be referred to as: user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent or user device, etc.

[0113] In an embodiment of the present application, the electronic device or each network device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and a memory (also called main memory). The operating system can be any one or more computer operating systems that implement business processing through processes, such as Linux operating system, Unix operating system, Android operating system, iOS operating system, or Windows operating system. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.

[0114] In order to better understand the embodiments of the present application, the structure of the electronic device in the embodiments of the present application is introduced below:

[0115] Figure 1 The structure of the electronic device 100 is shown in FIG. Figure 1 .

[0116] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a card interface 195 of a subscriber identification module card, etc. The subscriber identification module card is such as a subscriber identification module (SIM) card, a user identity model (UIM) card, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0117] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0118] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, a satellite protocol stack, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0119] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0120] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0121] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (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, a serial peripheral interface (SPI), and / or a universal serial bus (USB) interface, etc.

[0122] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0123] The charging management module 140 is used to receive charging input from a charger, where the charger can be a wireless charger or a wired charger.

[0124] The power management module 141 is used to connect the battery 142 , the charging management module 140 and the processor 110 .

[0125] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0126] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

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

[0128] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

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

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

[0131] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0132] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0133] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0134] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0135] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0136] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.

[0137] The card interface 195 is used to connect a subscriber identity module card.

[0138] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system of the layered architecture is taken as an example to exemplify the software structure of the electronic device 100.

[0139] Figure 2 1 is a software structure block diagram of the electronic device 100 according to an embodiment of the present invention.

[0140] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0141] The application layer can include a series of application packages.

[0142] like Figure 2 As shown, the application package may include satellite communication, camera, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0143] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0144] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0145] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0146] Content providers are used to store and retrieve data and make it accessible to applications. The data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0147] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0148] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

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

[0150] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0151] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0152] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0153] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

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

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

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

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

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

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

[0160] The following is an illustrative description of the workflow of the software and hardware of the electronic device 100 in conjunction with capturing a photo scene.

[0161] When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, timestamp of the touch operation, and other information). The raw input event is stored in the kernel layer. The application framework layer obtains the raw input event from the kernel layer and identifies the control corresponding to the input event. For example, if the touch operation is a touch single-click operation and the control corresponding to the single-click operation is the control of the camera application icon, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer to capture static images or videos through the camera 193.

[0162] Terminal devices such as mobile phones are commonly used communication devices. Mobile phones include smartphones and satellite phones. Smartphones are thin and light, easy to carry, and have a wide range of applications. The user identification card on the smartphone can be hot-swapped. However, smartphones only support communication in cellular networks and cannot communicate through satellite networks. For example, smartphones cannot make calls through satellite networks or send text messages directly through satellite networks.

[0163] Communication via satellite network is also called satellite communication. Communication via cellular network is also called cellular communication.

[0164] In a possible implementation, the satellite phone supports cellular communication and satellite communication. However, in order to improve the waterproof performance and battery life of the satellite phone, the satellite phone is relatively bulky and large in size, and is not easy to carry. The user identification card of the satellite phone is usually located under the battery and cannot be hot-swapped. In addition, two card slots are provided on the satellite phone, one for inserting the user identification card of the cellular communication mode and the other for inserting the user identification card of the satellite communication mode. The user identification card of the cellular communication mode is, for example, a full network card. The user identification card of the satellite communication mode is, for example, a satellite card. The satellite card can be a Tiantong card. Due to the confidentiality of the satellite protocol stack, in a possible implementation, the satellite protocol stack is integrated on an independent satellite chip. The satellite protocol stack can be referred to as the protocol stack.

[0165] The structure of a satellite phone is as follows Figure 3As shown. The satellite phone includes a full network card 11, a system on a chip (SoC) chip 12, a satellite chip 13, a satellite card 14, a radio frequency component 15 and a radio frequency component 16. The SoC chip 12 includes an application (AP) processor and an operating system 121 and a cellular baseband 122. The satellite chip 13 includes a complete protocol stack 131. The protocol stack 131 includes a Hayes command set (AT command) interface 1311. The AT command interface 1311 can be a communication interface such as a serial peripheral interface (SPI) or a USB interface for transmitting AT commands (Attention commands, AT commands). The protocol stack 131 includes protocols of various layers such as the transport layer, network layer, data link layer and physical layer.

[0166] The application processor and operating system 121 communicate with the cellular baseband 122. The application processor and operating system 121 is used to control the interaction between the target application on the satellite phone and the cellular baseband 122. The application processor and operating system 121 communicates with the protocol stack 131 through the AT command interface 1311, including control plane instructions and user plane data. The application processor and operating system 121 is also used to control the interaction between the target application on the satellite phone and the protocol stack 131. The target application is such as calls, short messages, etc.

[0167] The cellular baseband 122 communicates with the full network card 11. The cellular baseband 122 communicates with the network equipment in the cellular network through the radio frequency component 16. The protocol stack 131 communicates with the satellite card 14. The protocol stack 131 communicates with the network equipment in the satellite network through the radio frequency component 15.

[0168] Both the full network card 11 and the satellite card 14 are used as user identification cards, which are used for authentication in the cellular network and the satellite network, respectively, to access the cellular network and the satellite network, and realize the communication of the satellite phone in the cellular network and the satellite network. Because the interaction mode between the cellular baseband 122 and the full network card 11 is different from the interaction mode between the protocol stack 131 and the satellite card 14. Therefore, in the satellite phone, it is necessary to set the full network card 11 for the cellular baseband 122 and set the satellite card 14 for the satellite chip 13. In addition, the interaction mode between the target application and the cellular baseband 122 is different from the interaction mode between the full network card 11 and the cellular baseband 122. Similarly, the interaction mode between the target application and the protocol stack 131 is different from the interaction mode between the satellite card 14 and the protocol stack 131. Therefore, the application processor and the operating system 121 cannot realize the communication between the full network card 11 and the protocol stack 131. In the satellite phone, the cellular baseband 122 and the satellite chip 13 each need to communicate with their respective corresponding user identification cards. The full network card 11 and the satellite card 14 each correspond to a dedicated card slot on the satellite phone and cannot be mixed.

[0169] Taking all these influencing factors into consideration, the application scope of satellite phones is limited to special industries such as outdoor adventure, rescue, and navigation.

[0170] In view of this, an embodiment of the present application provides a communication network connection method applied to an electronic device. Through the same user identification card in the same card slot on the electronic device, communication is achieved in the cellular network when the cellular network signal quality is good. When there is no cellular network or the cellular network signal quality is poor, a satellite network is used for communication. This not only saves user identification cards and card slots, but also solves the problem that smartphones cannot communicate through satellite networks. When there is no cellular network or the cellular network signal quality is poor in the user's area, for example, the cellular network in the user's area is damaged by accidental or sudden natural disasters, the user can communicate with other terminal devices or service platforms through the electronic device provided by the embodiment of the present application.

[0171] The communication network connection method proposed in the present application is described below in conjunction with some embodiments. In the present application embodiment, the user identification module card is also referred to as a user identification card. The satellite protocol stack is also referred to as a protocol stack.

[0172] Figure 4 A schematic diagram of the structure of the electronic device 100 provided in the embodiment of the present application Figure 2 . Figure 5 Communication network connection method process provided in the embodiment of the present application Figure 1 . Figure 6 Communication network connection method process provided in the embodiment of the present application Figure 2 .like Figure 4As shown, the electronic device 100 includes a first chip 21, a second chip 22, a radio frequency component 15, a radio frequency component 16 and a user identification card 23. The first chip 21 includes an application (AP) processor and an operating system 211 and a cellular baseband 122. The application processor and the operating system 211 include an agent module 2111 and a communication management module 2112. The second chip 22 includes a complete protocol stack 131. The protocol stack 131 includes a Hayes command set (AT command) interface 1311. The protocol stack 131 includes protocols of various layers such as a transport layer, a network layer, a data link layer and a physical layer. The user identification card 23 can be a SIM card or a UIM card. The user identification card 23 stores the key and confidentiality algorithm of the cellular network, the key and confidentiality algorithm of the satellite network, the customer authentication key Ki of the cellular network, the customer authentication key Ki of the satellite network, and the international mobile subscriber identity (IMSI). The user identification card 23 can also store a temporary mobile subscriber identity (TMSI) assigned by the cellular network. TMSI corresponds to IMSI. The confidentiality algorithm includes an IMSI authentication algorithm. The AT command interface 1311 may be a communication interface such as a serial peripheral interface (SPI) or a USB interface for transmitting AT commands (Attention commands, AT commands). Optionally, the customer authentication key Ki of the cellular network is the same as the customer authentication key Ki of the satellite network. Optionally, the confidentiality algorithm of the cellular network is the same as the confidentiality algorithm of the satellite network.

[0173] The application processor and operating system 211 communicate with the cellular baseband 122. The application processor and operating system 211 are used to control the interaction between the target application on the electronic device 100 and the cellular baseband 122. The application processor and operating system 211 communicate with the protocol stack 131 through the AT command interface 1311. The application processor and operating system 211 are also used to control the interaction between the target application on the electronic device 100 and the protocol stack 131. The target application is such as a call, a short message, etc.

[0174] The cellular baseband 122 communicates with the user identification card 23. For example, the hardware connection between the cellular baseband 122 and the user identification card 23 can be similar to the hardware connection between the user identification card on the smart phone and the cellular baseband, so that the hot plug and blind plug characteristics of the user identification card 23 can be realized. The cellular baseband 122 communicates with the network equipment in the cellular network through the radio frequency component 16. Therefore, the cellular baseband 122 can complete the registration process in the cellular network through the authentication interaction with the user identification card 23, and then access the cellular network.

[0175] Proxy module 2111 communicates with Subscriber Identity Module 23 through cellular baseband 122. Proxy module 2111 also communicates with second chip 22 through AT command interface 1311, for example, proxy module 2111 communicates with protocol stack 131 through AT command interface 1311. A communication link of protocol stack 131--AT command interface 1311--proxy module 2111--cellular baseband 122--Subscriber Identity Module 23 is formed. Like this, protocol stack 131 can realize communication with Subscriber Identity Module 23 through proxy module 2111. Protocol stack 131 communicates with the network equipment in the satellite network through radio frequency assembly 15. Thus, protocol stack 131 realizes authentication interaction with Subscriber Identity Module 23 through proxy module 2111, completes the registration process in the satellite network, and then accesses the satellite network.

[0176] The electronic device 100 may be provided with a card slot for placing the user identification card 23. Thus, the electronic device 100 can access both the cellular network and the satellite network for communication based on the user identification card 23 in the card slot.

[0177] For example, Figure 5 As shown, the electronic device 100 can identify the user scenario and obtain the identification result. Exemplarily, the application processor and the operating system 211 of the electronic device 100 can detect the cellular network, the WiFi network and the satellite network to obtain the type of network and the network signal quality in the area where the electronic device 100 is currently located. The manner in which the electronic device 100 identifies the user scenario is not specifically limited in this embodiment. The electronic device 100 determines whether to perform satellite communication based on the identification result, such as determining to access the satellite network for satellite communication, or exit the satellite communication and access the cellular network for cellular communication. For example, if the area where the electronic device 100 is currently located can receive satellite positioning signals, but there is no cellular network and no WiFi network, the application processor and the operating system 211 can instruct the display interface of the electronic device 100 to display "Whether to perform satellite communication" to automatically prompt the user that satellite communication can be performed. Satellite communication can also be referred to as communication in a satellite network. Cellular communication can also be referred to as communication in a cellular network.

[0178] The recognition result after identifying the user scenario may also be a comparison result of the cellular signal quality of the electronic device 100 and the quality threshold. The cellular signal quality may be the cellular signal strength. For example, the electronic device 100 detects the cellular signal strength of the cellular network, and compares the cellular signal strength with the cellular signal strength threshold, and obtains a comparison result that the cellular signal strength is greater than or equal to the cellular signal strength threshold, or obtains a comparison result that the cellular signal strength is less than the cellular signal strength threshold. If the electronic device 100 is currently stationed at a cellular network frequency, the electronic device 100 may detect the cellular signal strength of the cellular network by detecting the reference signal receiving power (RSRP) corresponding to the currently stationed cellular network frequency.

[0179] For example, the electronic device 100 may select a cell phone number based on the cellular signal quality of the electronic device 100. Figure 6 The communication network connection method shown in S101-S105 determines access to a cellular network for cellular communication or access to a satellite network for satellite communication:

[0180] S101 , at a first moment, the cellular signal quality of the electronic device 100 is greater than or equal to a quality threshold, and the electronic device 100 communicates in a cellular network based on the subscriber identity card 23 and the first chip 21 .

[0181] S102: At a second moment, the cellular signal quality of the electronic device 100 is less than the quality threshold, and the electronic device 100 interrupts the communication in the cellular network. The second moment is later than the first moment.

[0182] S103, at a third moment, the cellular signal quality of the electronic device 100 is less than the quality threshold, and the electronic device 100 communicates in the satellite network based on the subscriber identity card 23 and the second chip 22. The third moment is later than the second moment.

[0183] S104: At a fourth moment, the electronic device 100 interrupts the communication in the satellite network. The fourth moment is later than the third moment.

[0184] S105, at the fifth moment, the cellular signal quality of the electronic device 100 is greater than or equal to the quality threshold, and the electronic device 100 communicates in the cellular network based on the user identification card 23 and the first chip 21. The fifth moment is later than the fourth moment. From the first moment to the fifth moment, the user identification card 23 is placed in the same card slot of the electronic device 100.

[0185] In this way, when there is a cellular network and the cellular network signal quality is good, the electronic device uses the cellular network for communication first. When there is no cellular network or the cellular network signal quality is poor, the electronic device uses the satellite network for communication. Both cellular communication and satellite communication can be based on the same user identification card in the same card slot. There is no need to configure separate user identification cards and card slots for cellular communication and satellite communication, which reduces the number of user identification cards. At the same time, it can reduce the number of necessary card slots on electronic devices, reduce the size and weight of electronic devices, and facilitate users to carry them daily.

[0186] Combine the following Figure 4 , Figure 5 , Figure 7 and Figure 8 ,right Figure 6 The communication network connection method shown in S101-S105 is described in detail. Figure 7 A schematic diagram of the registration process of a satellite network provided in an embodiment of the present application. Figure 8 A scene diagram of an electronic device 100 and an electronic device A communicating via a satellite network provided in an embodiment of the present application.

[0187] like Figure 4 As shown, if the electronic device 100 detects that the cellular signal quality of the electronic device 100 is greater than or equal to the quality threshold, the cellular baseband 122 can complete the registration process in the cellular network and access the cellular network through the authentication interaction with the user identification card 23 in the following S601-S605 manner. The cellular network can be any one of the second generation mobile communication technology (2-Generation wireless telephone technology, 2G) network, the third generation mobile communication technology (3rd-Generation, 3G) network, the fourth generation mobile communication technology (the 4th generation mobile communication technology, 4G) network and the fifth generation mobile communication technology (5th Generation Mobile Communication Technology, 5G) network. The authentication process of the cellular network can be a one-way authentication such as in the 2G network, or a two-way authentication such as in the 3G, 4G or 5G network. The principle of two-way authentication is similar to that of one-way authentication. The following takes the one-way authentication shown in S601-S605 as an example to illustrate the authentication interaction between the cellular baseband 122 and the user identification card 23, the completion of the registration process in the cellular network, and the access to the cellular network.

[0188] S601, the cellular baseband 122 reads the IMSI or TMSI from the user identification card 23, and based on the read IMSI or TMSI, the cellular baseband 122 establishes a radio resource control (RRC) connection with the cellular network. During the process of establishing the RRC connection between the cellular baseband 122 and the cellular network, the network equipment of the cellular network can obtain the TMSI from the cellular network. The network equipment of the cellular network stores the correspondence between the IMSI and the TMSI. The network equipment of the cellular network sends the second authentication parameter corresponding to the IMSI to the cellular baseband 122. The second authentication parameter includes the encrypted pseudo-random number (Random, RAND) of the cellular network.

[0189] S602: The cellular baseband 122 indicates a second authentication parameter in the cellular network to the subscriber identity card 23.

[0190] S603, the subscriber identification card 23 calculates the second authentication parameter in the following manner to obtain the second authentication result: the subscriber identification card 23 uses the key of the cellular network to decrypt the second authentication parameter to obtain the pseudo-random number (RAND) of the cellular network. The subscriber identification card 23 uses the confidentiality algorithm of the cellular network to calculate the pseudo-random number (RAND) of the IMSI, the cellular network and the client authentication key Ki of the cellular network to obtain the second authentication result. The second authentication result may include the encrypted cellular network authentication value. The cellular network authentication value is such as a response number (signed response, SRES).

[0191] S604 : The subscriber identity card 23 transmits the second authentication result to the cellular baseband 122 .

[0192] S605. The cellular baseband 122 performs authentication in the cellular network according to the second authentication result in the following manner: the cellular baseband 122 transmits the second authentication result to the network device of the cellular network through the radio frequency component 16. The network device of the cellular network decrypts the second authentication result using the key of the cellular network to obtain the decrypted cellular network authentication value. If the authentication value corresponding to the IMSI pre-stored on the network device of the cellular network is the same as the cellular network authentication value, it indicates that the authentication in the cellular network is successful. If the cellular baseband 122 successfully authenticates in the cellular network, the cellular baseband 122 completes the registration process in the cellular network and accesses the cellular network.

[0193] After the electronic device 100 accesses the cellular network, the electronic device 100 can communicate in the cellular network at the first moment based on the user identification card 23 and the first chip 21. During the communication process of the electronic device 100 in the cellular network, it is usually necessary to maintain a smooth communication channel between the user identification card 23 and the first chip 21. Similarly, during the communication process of the electronic device 100 in the satellite network, it is usually necessary to maintain a smooth communication channel between the user identification card 23 and the second chip 21.

[0194] After the electronic device 100 accesses the cellular network and before interrupting the communication in the cellular network, when the electronic device 100 detects that the cellular signal quality of the electronic device 100 is less than the quality threshold, the electronic device 100 starts timing to obtain a first timing duration. The electronic device 100 detects whether the first timing duration exceeds the first duration threshold.

[0195] If it exceeds, then at the second moment, the electronic device 100 interrupts the communication in the cellular network. Figure 5 As shown, the electronic device 100 can set the cellular baseband 122 to the flight mode to interrupt the communication in the cellular network so as to switch the subscriber identification card 23 to the second chip and start the satellite communication service.

[0196] After the electronic device 100 interrupts the communication in the cellular network, the electronic device 100 can detect whether there is an available network. The available network can be a WiFi network, a hotspot, etc. The available network does not include a satellite network. If the electronic device 100 detects that there is an available network, the electronic device 100 detects whether the available network is valid. For example, the electronic device 100 sends a detection request to the detection server through the available network. If a detection response returned by the detection server is received, it indicates that the available network is valid. On the contrary, if the detection response returned by the detection server cannot be received, it indicates that the available network is invalid. The detection server is such as a server corresponding to a certain application.

[0197] Typically, available networks such as WiFi networks have lower latency than satellite networks.

[0198] If the electronic device 100 detects a valid available network, the electronic device 100 uses the valid available network for communication, thus improving the communication timeliness of the electronic device 100.

[0199] If the electronic device 100 does not detect an effective available network, the electronic device 100 can detect whether there is a satellite network. Optionally, the electronic device 100 can also detect whether there is a satellite positioning signal. The electronic device 100 can determine the existence of a satellite network through the satellite positioning signal, and can determine whether the signal quality of the satellite network can meet the communication needs of the satellite network. If the electronic device 100 detects a satellite network or a satellite positioning signal, the electronic device 100 can press Figure 7 The satellite network is accessed in the manner shown so that the electronic device 100 can communicate in the satellite network based on the user identification card 23 and the second chip 22 at the third moment. In this way, when there is no cellular network or the cellular network signal quality is poor and there is no effective available network, communication with other devices can be achieved through the satellite network.

[0200] like Figure 7 As shown, the electronic device 100 detects a satellite network or a satellite positioning signal, and the electronic device 100 displays a message on the display interface indicating whether to connect to the satellite network. The user can choose whether to access the satellite network through the satellite communication application on the electronic device 100. If the user chooses to access the satellite network, the user can click on the satellite communication application to open the satellite network. The click operation is, for example, a touch and click operation performed by the user on the hardware area corresponding to the satellite communication application icon on the display interface of the electronic device 100. Figure 1 and Figure 2 As shown, after the user clicks the satellite communication application on the display interface of the electronic device 100, the touch sensor 180K of the electronic device 100 receives the touch single click operation, and the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch single click operation into an original input event (including touch coordinates, timestamp of the touch operation and other information). The original input event is stored in the kernel layer. The application framework layer obtains the original input event from the kernel layer and identifies that the control corresponding to the input event is a control of the satellite communication application icon. The satellite communication application triggers the communication management module 2112. The electronic device 100 accesses the satellite network in the manner shown in S701-S706 below.

[0201] Optionally, after the electronic device 100 interrupts the communication in the cellular network, the communication management module 2112 is triggered. The electronic device 100 accesses the satellite network in the manner shown in S701-S706 below.

[0202] Optionally, after the electronic device 100 interrupts the communication in the cellular network, if the electronic device 100 detects a satellite network or a satellite positioning signal, the communication management module 2112 is triggered.

[0203] S701, the communication management module 2112 notifies the second chip 22 to initiate the registration process of the satellite network. For example, the communication management module 2112 reads the IMSI in the user identification card 23 through the proxy module 2111 and the cellular baseband 122. The communication management module 2112 sends the IMSI to the second chip 22 through the AT command interface, instructing the second chip 22 to perform the registration process of the satellite network. In the registration process of the satellite network, the protocol stack 131 implements the authentication interaction with the user identification card 23 through the proxy module 2111, completes the registration process in the satellite network, and then accesses the satellite network. Exemplarily, the registration process of the satellite network is shown in S702-S706.

[0204] S702, the second chip 22 starts the protocol stack 131. The protocol stack 131 searches for a frequency point for residence through the radio frequency component 15. The frequency point is such as a satellite frequency band. The protocol stack 131 can search for a frequency point through the radio frequency component 15 according to the residence conditions corresponding to each of the multiple frequency points preset in the protocol stack 131. If the protocol stack 131 searches for a frequency point that meets the residence condition corresponding to any preset frequency point, the protocol stack 131 resides on the frequency point. After the protocol stack 131 completes the frequency point residence, the protocol stack 131 establishes a radio resource control (RRC) connection with the satellite network. The protocol stack 131 establishes an RRC connection with the satellite network, so that the network equipment of the satellite network allocates a radio bearer, thereby realizing communication between the protocol stack 131 and the access layer of the satellite network. The radio bearer includes a signaling radio bearer (SRB) and a data radio bearer (DRB). After the protocol stack 131 establishes an RRC connection with the satellite network, the protocol stack 131 can send an IMSI to the network equipment of the satellite network. The network device of the satellite network transmits an authentication request corresponding to the IMSI to the protocol stack 131 through the radio frequency component 15. The authentication request includes a first authentication parameter in the satellite network. The first authentication parameter includes an encrypted pseudo-random number (RAND) of the satellite network.

[0205] S703: The second chip 22 indicates the first authentication parameter in the satellite network to the proxy module 2111. For example, the protocol stack 131 sends an authentication request to the proxy module 2111 through the AT command interface 1311.

[0206] S704, the proxy module 2111 and the user identification card 23 initiate an authentication process. During the authentication process, the proxy module 2111 transmits a first authentication parameter to the user identification card 23, the user identification card 23 calculates the first authentication parameter, obtains a first authentication result, and the user identification card 23 transmits the first authentication result to the proxy module 2111. The authentication process initiated by the proxy module 2111 and the user identification card 23 is as follows:

[0207] The proxy module 2111 adopts the control protocol between the AT command interface 1311 to extract the first authentication parameter from the authentication request, thereby implementing the analysis of the authentication request sent by the second chip 22 .

[0208] The proxy module 2111 transmits the first authentication parameter to the user identification card 23 through the cellular baseband 122. For example, the proxy module 2111 encapsulates the first authentication parameter into a first authentication message, and transmits the first authentication message including the first authentication parameter to the user identification card 23 through the cellular baseband 122.

[0209] The user identification card 23 extracts the first authentication parameter from the first authentication message, and uses the pre-stored key of the satellite network to decrypt the first authentication parameter to obtain a pseudo-random number (RAND) of the satellite network.

[0210] The user identification card 23 uses the satellite network's confidentiality algorithm to calculate the IMSI, the satellite network's pseudo-random number (RAND) and the satellite network's customer authentication key Ki to obtain a first authentication result, which includes an encrypted satellite network authentication value. The user identification card 23 transmits the first authentication result to the proxy module 2111 via the cellular baseband 122.

[0211] S705: The proxy module 2111 indicates the first authentication result to the protocol stack 131 on the second chip 22. For example, the proxy module 2111 transmits an authentication response including the first authentication result to the protocol stack 131 through the AT command interface 1311. The authentication response may be obtained by encapsulating the first authentication result by the proxy module 2111, so as to facilitate transmission through the AT command interface 1311.

[0212] S706: The protocol stack 131 on the second chip 22 performs the following authentication in the satellite network according to the first authentication result:

[0213] The protocol stack 131 sends the authentication response to the satellite network via the radio frequency component 15 .

[0214] The network device of the satellite network decrypts the first authentication result using the key of the satellite network to obtain a satellite network authentication value.

[0215] If the authentication value corresponding to the IMSI pre-stored on the network device of the satellite network is the same as the satellite network authentication value, the authentication process is completed and the user's identity recognition is successful. The authentication value corresponding to the IMSI pre-stored on the network device of the satellite network can be an authentication value obtained by the network device using the satellite network's confidentiality algorithm to calculate the IMSI, the pseudo-random number (RAND) of the satellite network, and the customer authentication key Ki of the satellite network. The user's identity recognition is successful, indicating that the protocol stack 131 has successfully authenticated in the satellite network, and the protocol stack 131 has completed the registration process in the satellite network and accessed the satellite network.

[0216] In this way, the second chip communicates with the user identification card through the proxy module on the first chip. For example, the second chip transmits the acquired card authentication command to the user identification card through the proxy module on the first chip to complete the authentication in the satellite network. There is no need to set up a dedicated user identification card for the authentication of the second chip in the satellite network, thereby reducing the number of user identification cards on the electronic device and the number of corresponding card slots for the user identification cards.

[0217] After the protocol stack 131 on the second chip 22 performs authentication in the satellite network according to the first authentication result, the second chip 22 instructs the communication management module 2112 to update the registration status, network information and / or signal strength, etc. For example, the protocol stack 131 on the second chip 22 instructs the communication management module 2112 to update the satellite registration status information, satellite beam information and / or satellite signal strength, so that the communication management module 2112 maintains the satellite network registration status and enables or disables active information reporting. The satellite registration status information includes satellite network registration success information or satellite network registration failure information.

[0218] The communication management module 2112 maintains the satellite network registration status and enables active information reporting. An example is as follows: If the satellite registration status information is satellite network registration success information, the communication management module 2112 instructs the display interface of the electronic device 100 to display the satellite registration status information, satellite beam information and / or satellite signal strength. In this way, it is convenient to prompt the user that satellite communication can be performed. Optionally, if the satellite registration status information is satellite network registration success information, the communication management module 2112 sends the satellite registration status information, satellite beam information and satellite signal strength to the satellite communication application, and instructs the display interface of the satellite communication application to display the satellite registration status information, satellite beam information and satellite signal strength. If the satellite registration status information is satellite network registration failure information, the communication management module 2112 instructs the second chip 22 to execute the registration process in the satellite network again through the AT command interface 1311.

[0219] The communication management module 2112 can also monitor the satellite registration status information, satellite beam information and / or satellite signal strength sent by the second chip 22 in real time. When the satellite registration status information, satellite beam information and / or satellite signal strength are detected to be inconsistent with the current satellite registration status information, satellite beam information and / or satellite signal strength of the electronic device 100, the communication management module 2112 instructs the display interface to update the display of the satellite registration status information, satellite beam information and / or satellite signal strength. When the satellite registration status information is detected to be information about unsuccessful registration of the satellite network, the communication management module 2112 instructs the second chip 22 to execute the registration process in the satellite network again through the AT command interface 1311.

[0220] After the electronic device 100 accesses the satellite network, the electronic device 100 can communicate in the satellite network based on the user identification card 23 and the second chip 22 at the third moment. Figure 8 As shown, the electronic device 100 also includes an audio module 24. When user B uses the electronic device 100 to Figure 8 When user A at the end of the electronic device A is talking via a satellite network, the electronic device A can transmit the voice data of user A collected by the electronic device A to the second chip 22 of the electronic device 100 via the satellite network.

[0221] Exemplarily, the second chip 22 transmits the first audio data to the proxy module 2111 through the AT command interface 1311. The first audio data may include voice data of user A. For example, the proxy module 2111 extracts the voice data of user A from the first audio data using a control protocol with the AT command interface 1311, and transmits the voice data of user A to the audio module 24 through the cellular baseband 122, thereby enabling the proxy module 2111 to transmit the first audio data to the audio module 24.

[0222] and / or,

[0223] When user B uses electronic device 100 and Figure 8 When user A at the end A of the electronic device is talking through a satellite network, the audio module 24 may transmit the second audio data to the proxy module 2111 through the cellular baseband 122. The second audio data may include the voice data of user B collected by the electronic device 100. The proxy module 2111 extracts the voice data of user B from the second audio data, and transmits the voice data of user B to the second chip 22 through the AT command interface 1311, so that the proxy module 2111 transmits the second audio data to the second chip 22 through the AT command interface 1311.

[0224] Generally, the communication protocol between the network equipment of the cellular network and the electronic device 100 is different from the communication protocol between the network equipment of the satellite network and the electronic device 100. The electronic device 100 communicates with another electronic device (such as Figure 8 During a call between the electronic device A shown in FIG. 1 and FIG. 2 , the cellular baseband 122 communicates with the corresponding audio module 24. Similarly, the electronic device 100 communicates with another electronic device (such as Figure 8 During the call of the electronic device A) shown in the figure, the second chip 22 usually also needs to communicate with a dedicated audio module. The control protocol between the cellular baseband 122 and the corresponding audio module 24 is different from the control protocol between the second chip 22 and the dedicated audio module. If the proxy module 2111 provided in the embodiment of the present application is adopted, the information interaction between the second chip 22 and the audio module 24 can be realized, and there is no need to set a corresponding dedicated audio module for the second chip 22, so that the cellular baseband 122 and the second chip 22 can communicate with the same audio module, thereby reducing the number of audio modules on the electronic device 100, which is conducive to reducing the volume and weight of the electronic device 100.

[0225] After the electronic device 100 accesses the satellite network, before interrupting the communication of the electronic device 100 in the satellite network, the electronic device 100 detects whether there is a target application currently running. For example, the electronic device 100 detects whether the call and / or short message application on the electronic device 100 is currently running. If there is no target application currently running, the electronic device 100 starts timing and obtains a second timing duration. The electronic device 100 detects whether the second timing duration exceeds the second duration threshold. If so, the electronic device 100 interrupts the communication in the satellite network. If there is a target application currently running, the electronic device 100 starts timing after the target application terminates and obtains a third timing duration. The electronic device 100 detects whether the third timing duration exceeds the third duration threshold. If so, the electronic device 100 interrupts the communication in the satellite network. For example Figure 5As shown, at the fourth moment, the electronic device 100 turns off the satellite communication service to interrupt the communication of the electronic device 100 in the satellite network and switch the user identification card 23 to the cellular baseband 122. The fourth moment is later than the third moment. After the user identification card 23 is switched to the cellular baseband 122, the cellular baseband 122 exits the flight mode. Optionally, after the electronic device 100 accesses the satellite network, if the communication management module 2112 monitors that the satellite signal strength is lower than the preset satellite signal strength threshold, the communication management module 2112 instructs the electronic device 100 to start timing and terminate the timing after the satellite signal strength is not lower than the preset satellite signal strength threshold, and obtains the fourth timing duration in which the satellite signal strength is continuously lower than the preset satellite signal strength threshold. The electronic device 100 detects whether the fourth timing duration exceeds the fourth duration threshold. If it exceeds, the electronic device 100 interrupts the communication of the electronic device 100 in the satellite network and switches the user identification card 23 to the cellular baseband 122.

[0226] Optionally, after the electronic device 100 accesses the satellite network, if the communication management module 2112 receives the satellite network registration failure information, the communication management module 2112 instructs the electronic device 100 to start timing and terminates timing after receiving the satellite network registration success information, and obtains a fifth timing duration representing the duration of the satellite network registration failure. The electronic device 100 detects whether the fifth timing duration exceeds the fifth duration threshold, and if so, the electronic device 100 interrupts the communication of the electronic device 100 in the satellite network and switches the user identification card 23 to the cellular baseband 122.

[0227] In this way, the service interaction of the target application currently running in the electronic device 100 will not be interrupted. After the satellite communication is interrupted, the electronic device 100 can connect to the cellular network, so that the electronic device 100 can effectively communicate in the cellular network based on the user identification card 23 and the first chip 21 at the fifth moment.

[0228] The communication network connection method provided in this embodiment, through the proxy module and the same user identification card in the same card slot, the electronic device can access both the cellular network and the satellite network, so that when the cellular network signal quality is good, the electronic device communicates in the cellular network, and when there is no cellular network or the cellular network signal quality is poor, and there is no effective available network, the electronic device communicates in the satellite network. Whether it is cellular communication or satellite communication, it can be based on the same user identification card in the same card slot, and there is no need to configure respective user identification cards and card slots for cellular communication and satellite communication, which reduces the number of user identification cards on the electronic device, and at the same time can reduce the number of necessary card slots on the electronic device, reduce the volume and weight of the electronic device, and facilitate users to carry it daily. When the cellular network in the area where the user is located is damaged by accidental or sudden natural disasters, the user can communicate with other terminal devices, service platforms or servers providing applications for smart phones in the satellite network through the electronic device provided by the embodiment of the present application that is carried with him. When the cellular network in the area where the user is located is damaged by accidental or sudden natural disasters, the user can communicate with other terminal devices or service platforms through the electronic device provided by the embodiment of the present application. When an electronic device uses a satellite network for communication, if the damaged cellular network is restored or there is an effective available network, the electronic device can interrupt the communication in the satellite network and access the cellular network again, or the electronic device communicates through an effective available network to improve the communication timeliness of the electronic device. Since the electronic device is based on the same user identification card in the same card slot, it can access both the cellular network and the satellite network for communication. If multiple card slots and multiple user identification cards are required on the electronic device, multiple user identification cards can be mixed in multiple card slots.

[0229] Next, combine Fig. 9 The communication network connection method provided in the embodiment of the present application is described.

[0230] Fig. 9 A schematic diagram of the structure of the electronic device 100 provided in the embodiment of the present application Figure 3 .like Fig. 9As shown, the electronic device 100 includes a first chip 21, a second chip 22, a radio frequency component 15, a radio frequency component 16, a user identification card 23 and a switch 31. The first chip 21 includes an application (AP) processor and an operating system 211, a cellular baseband 122 and a driver module 212. The application processor and the operating system 211 include a communication management module 2112. The second chip 22 includes a complete protocol stack 131. The protocol stack 131 includes an AT command interface 1311. The protocol stack 131 includes protocols of various layers such as a transport layer, a network layer, a data link layer and a physical layer. The user identification card 23 can be a SIM card or a UIM card. The user identification card 23 stores the key and confidentiality algorithm of the cellular network, the key and confidentiality algorithm of the satellite network and the international mobile subscriber identity number (IMSI). The AT command interface 1311 can be a communication interface such as a serial peripheral interface (SPI) or a USB interface for transmitting AT commands.

[0231] The application processor and operating system 211 communicate with the cellular baseband 122. The application processor and operating system 211 is used to control the interaction between the target application on the electronic device 100 and the cellular baseband 122. The application processor and operating system 211 communicates with the protocol stack 131 through the AT command interface 1311. The application processor and operating system 211 is also used to control the interaction between the target application on the electronic device 100 and the protocol stack 131.

[0232] The cellular baseband 122 communicates with network equipment in the cellular network through the radio frequency component 16. The protocol stack 131 communicates with network equipment in the satellite network through the radio frequency component 15.

[0233] The first chip 21 can drive the switch 31 to connect the user identification card 23 to the second chip 22, and disconnect the user identification card 23 from the first chip 21. The first chip 21 can also drive the switch 31 to connect the user identification card 23 to the first chip 21, and disconnect the user identification card 23 from the second chip 22.

[0234] In this way, by controlling the different on / off states of the switch 31, the user identification card can communicate with the second chip, or the user identification card can communicate with the first chip, so that the same user identification card can communicate with both the second chip and the first chip, so that the electronic device can communicate in the satellite network based on the user identification card and the second chip, or in the cellular network based on the user identification card and the first chip, and the number of user identification cards and the number of corresponding card slots are reduced, the volume and weight of the electronic device are reduced, and it is convenient for users to carry the electronic device on a daily basis. In addition, by controlling the switch 31, the electronic device can only access one network at a time, and there will be no situation where the electronic device accesses multiple networks at a time, which will have an adverse effect on the transmission and reception of network signals.

[0235] Exemplarily, if the electronic device 100 detects that the cellular signal quality of the electronic device 100 is greater than or equal to the quality threshold, the first chip 21 drives the switch 31 to connect the user identification card 23 and the first chip 21, and disconnects the user identification card 23 from the second chip 22. For example, the driving module 212 in the first chip 21 drives the switch 31 to connect the user identification card 23 and the cellular baseband 122, and disconnects the user identification card 23 from the protocol stack 131.

[0236] After the user identification card 23 is connected to the cellular baseband 122, the cellular baseband 122 reads the IMSI or TMSI from the user identification card 23, and based on the read IMSI or TMSI, the cellular baseband 122 establishes a radio resource control (RRC) connection with the cellular network. During the process of establishing the RRC connection between the cellular baseband 122 and the cellular network, the network equipment of the cellular network can obtain the TMSI from the cellular network. The corresponding relationship between the IMSI and the TMSI is stored in the network equipment of the cellular network. The network equipment of the cellular network sends the second authentication parameter corresponding to the IMSI to the cellular baseband 122. The second authentication parameter includes the encrypted pseudo-random number (RAND) of the cellular network. The cellular baseband 122 on the first chip 21 can indicate the second authentication parameter in the cellular network to the user identification card 23. Optionally, after the user identification card 23 is connected to the cellular baseband 122, the cellular baseband 122 reads the IMSI from the user identification card 23. The cellular baseband 122 transmits the IMSI to the network equipment of the cellular network through the radio frequency component 16. The network device of the cellular network sends the second authentication parameter corresponding to the IMSI to the cellular baseband 122. The cellular baseband 122 indicates the second authentication parameter in the cellular network to the subscriber identity card 23.

[0237] Subscriber identification card 23 calculates the second authentication parameter to obtain the second authentication result. For example, Subscriber identification card 23 adopts the key of cellular network to decrypt the second authentication parameter to obtain the pseudo-random number (RAND) of cellular network. Subscriber identification card 23 adopts the confidentiality algorithm of cellular network to calculate the pseudo-random number (RAND) of IMSI, cellular network and the client authentication key Ki of cellular network to obtain the second authentication result. The second authentication result can include the encrypted cellular network authentication value. Subscriber identification card 23 transmits the second authentication result to the first chip 21. For example, Subscriber identification card 23 transmits the second authentication result to cellular baseband 122.

[0238] The first chip 21 performs authentication in the cellular network according to the second authentication result. If the first chip 21 is successfully authenticated in the cellular network, the first chip 21 completes the registration process in the cellular network and accesses the cellular network. Exemplarily, the cellular baseband 122 performs authentication in the cellular network according to the second authentication result. If the cellular baseband 122 is successfully authenticated in the cellular network, the cellular baseband 122 completes the registration process in the cellular network and accesses the cellular network. For example, the cellular baseband 122 transmits the second authentication result to the network device of the cellular network through the radio frequency component 16. The network device of the cellular network uses the key of the cellular network to decrypt the second authentication result to obtain the decrypted cellular network authentication value. If the authentication value corresponding to the IMSI pre-stored on the network device of the cellular network is the same as the cellular network authentication value, it indicates that the authentication in the cellular network is successful.

[0239] After the electronic device 100 accesses the cellular network, the electronic device 100 can communicate in the cellular network based on the subscriber identification card 23 and the first chip 21 at a first moment.

[0240] When the electronic device 100 communicates in a cellular network, the cellular baseband 122 needs to maintain connectivity with the subscriber identity card 23 .

[0241] If the electronic device 100 detects that the cellular signal quality of the electronic device 100 is less than the quality threshold, the first chip 21 can drive the switch 31 to connect the user identification card 23 and the second chip 22, and disconnect the connection between the user identification card 23 and the first chip 21. Exemplarily, at the second moment, the driver module 212 on the first chip 21 can drive the switch 31 to connect the user identification card 23 and the protocol stack 131, and disconnect the connection between the user identification card 23 and the cellular baseband 122, interrupting the communication of the electronic device 100 in the cellular network. The first chip 21 can drive the switch 31 to connect the user identification card 23 and the second chip 22, and after disconnecting the connection between the user identification card 23 and the first chip 21, the second chip 22 indicates the first authentication parameter in the satellite network to the user identification card 23. The first authentication parameter includes a pseudo-random number (RAND) of the encrypted satellite network.

[0242] For example, the driver module 212 drives the switch 31 to connect the user identification card 23 and the protocol stack 131, and after disconnecting the connection between the user identification card 23 and the cellular baseband 122, the protocol stack 131 performs frequency point residence. After the protocol stack 131 completes the frequency point residence, the protocol stack 131 establishes an RRC connection with the satellite network. During the process of establishing the RRC connection between the protocol stack 131 and the satellite network, the protocol stack 131 can read the IMSI in the user identification card 23. The protocol stack 131 sends the IMSI to the network equipment of the satellite network through the radio frequency component 15. The network equipment of the satellite network transmits the authentication request corresponding to the IMSI to the protocol stack 131 through the radio frequency component 15. The authentication request includes the first authentication parameter in the satellite network. The first authentication parameter includes the encrypted pseudo-random number (RAND) of the satellite network. The protocol stack 131 indicates the first authentication parameter of the satellite network to the user identification card 23.

[0243] The subscriber identification card 23 calculates the first authentication parameter to obtain the first authentication result. For example, the subscriber identification card 23 can use the key of the satellite network to decrypt the first authentication parameter to obtain the pseudo-random number (RAND) of the satellite network. The subscriber identification card 23 uses the confidentiality algorithm of the satellite network to calculate the pseudo-random number (RAND) of the IMSI, the satellite network and the customer authentication key Ki of the satellite network to obtain the first authentication result. The first authentication result includes the encrypted satellite network authentication value.

[0244] The subscriber identification card 23 transmits the first authentication result to the second chip 22. For example, the subscriber identification card 23 transmits the first authentication result to the protocol stack 131.

[0245] The second chip 22 performs authentication in the satellite network according to the first authentication result. If the second chip 22 is successfully authenticated in the satellite network, the second chip 22 completes the registration process in the satellite network and accesses the satellite network.

[0246] For example, the protocol stack 131 performs authentication in the satellite network according to the first authentication result in the following manner: the protocol stack 131 sends the first authentication result to the satellite network through the radio frequency component 15. The network device of the satellite network decrypts the first authentication result using the key of the satellite network to obtain the satellite network authentication value. If the authentication value corresponding to the IMSI pre-stored on the network device of the satellite network is the same as the satellite network authentication value, the authentication process is completed and the user's identity recognition is passed. The user's identity recognition is passed, indicating that the protocol stack 131 is successfully authenticated in the satellite network, and the protocol stack 131 completes the registration process in the satellite network and accesses the satellite network.

[0247] After the electronic device 100 accesses the satellite network, the electronic device 100 can communicate in the satellite network based on the user identification card 23 and the second chip 22 at the third moment.

[0248] Optionally, the electronic device 100 may further include an audio module 24 and a dedicated audio module to facilitate the user to use the electronic device 100 to communicate with another electronic device (such as a wireless receiver) via a cellular network or a satellite network. Figure 8 The user of the electronic device A) shown in the figure is talking. The audio module 24 is as Fig. 9 The dedicated audio module is not Fig. 9 Generally, the communication protocol between the network device of the cellular network and the electronic device 100 is different from the communication protocol between the network device of the satellite network and the electronic device 100. The electronic device 100 communicates with another electronic device (such as Figure 8 During a call between the electronic device A shown in FIG. 1 and FIG. 2 , the cellular baseband 122 can communicate with the audio module 24. The electronic device 100 communicates with another electronic device (such as Figure 8 During the call of the electronic device A), the second chip 22 can communicate with the dedicated audio module on the electronic device 100. The control protocol between the cellular baseband 122 and the audio module 24 is different from the control protocol between the second chip 22 and the dedicated audio module.

[0249] Alternatively, if Fig. 9 As shown, the application processor and operating system 211 may also include an agent module 2111. The agent module 2111 communicates with the audio module 24 via the cellular baseband 122. The agent module 2111 also communicates with the protocol stack 131 via the AT command interface 1311. Figure 8 When user A at the end of the electronic device A is talking via a satellite network, the electronic device 100 uses Figure 8 In a similar manner to the embodiment, the proxy module 2111 provided in the embodiment of the present application is used to implement information interaction between the second chip 22 and the audio module 24, without setting a corresponding dedicated audio module for the second chip 22, thereby enabling the cellular baseband 122 and the second chip 22 to communicate with the audio module 24, reducing the number of audio modules on the electronic device 100, thereby reducing the volume and weight of the electronic device 100.

[0250] After the electronic device 100 accesses the satellite network, the electronic device 100 detects whether there is a target application running at present. If there is no target application running at present, the electronic device 100 starts timing to obtain a second timing duration. The electronic device 100 detects whether the second timing duration exceeds the second duration threshold value. If it exceeds, the drive module 212 of the electronic device 100 drives the switch 31 to connect the user identification card 23 and the cellular baseband 122, and disconnects the connection between the user identification card 23 and the protocol stack 131 to interrupt the communication of the electronic device 100 in the satellite network. If there is a target application running at present, the electronic device 100 starts timing after the target application runs and terminates, and obtains the third timing duration. The electronic device 100 detects whether the third timing duration exceeds the third duration threshold value. If it exceeds, the drive module 212 of the electronic device 100 drives the switch 31 to connect the user identification card 23 and the cellular baseband 122, and disconnects the connection between the user identification card 23 and the protocol stack 131 to interrupt the communication of the electronic device 100 in the satellite network. For example, at the fourth moment, the driving module 212 of the electronic device 100 drives the switch 31 to connect the user identification card 23 and the cellular baseband 122, and disconnects the user identification card 23 from the protocol stack 131, so as to interrupt the communication of the electronic device 100 in the satellite network. The fourth moment is later than the third moment.

[0251] After the electronic device 100 interrupts the communication in the satellite network, the electronic device 100 accesses the cellular network, so that the electronic device 100 communicates in the cellular network based on the user identification card 23 and the first chip 21 at the fifth moment.

[0252] Optionally, if the electronic device 100 detects that the cellular signal quality of the electronic device 100 is less than the quality threshold, the electronic device 100 displays a message on the display interface whether to connect to the satellite network. The user can choose whether to access the satellite network through the satellite communication application on the electronic device 100. If the user chooses to access the satellite network, the user can perform a touch and click operation on the hardware area corresponding to the satellite communication application icon on the display interface of the electronic device 100. The touch sensor 180K of the electronic device 100 receives the touch and click operation, and the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch and click operation into an original input event (including touch coordinates, timestamp of the touch operation, etc.). The original input event is stored in the kernel layer. The application framework layer obtains the original input event from the kernel layer, and identifies that the control corresponding to the input event is a control of the satellite communication application icon. The satellite communication application indicates that the drive module 212 drives the switch 31 to connect the user identification card 23 and the protocol stack 131, and disconnects the connection between the user identification card 23 and the cellular baseband 122.

[0253] Optionally, multiple card slots can also be set on the electronic device 100 to place multiple user identification cards 23, and each card slot is correspondingly set with a switch 31. In this way, for the same card slot, by controlling the on / off state of the switch 31 corresponding to the card slot, the user identification card 23 in the card slot can communicate with the second chip 22 or the first chip 21, so that the electronic device 100 can communicate in a satellite network based on the user identification card 23 in the card slot and the second chip 22, or communicate in a cellular network based on the user identification card 23 in the card slot and the first chip 21. Blind insertion of the user identification card can also be achieved. Optionally, for the same card slot, the first chip 21 can drive the corresponding switch 31 of the card slot so that the user identification card 23 in the card slot is not connected to the first chip 21, nor is it connected to the second chip 22. In this way, the first chip 21 can select the target user identification card 23 from the multiple user identification cards 23 on the electronic device 100 for cellular communication or satellite communication. The target subscriber identification card 23 may be any one of the multiple subscriber identification cards 23 on the electronic device 100 .

[0254] The communication network connection method provided in this embodiment drives the switch 31 through the driving module to connect the user identification card and the protocol stack and disconnect the user identification card from the cellular baseband, thereby interrupting the communication of the electronic device in the cellular network, so that the protocol stack and the user identification card perform the registration process of the satellite network and access the satellite network. The interaction between the protocol stack and the user identification card does not need to be transferred through the proxy module, thereby reducing the time spent on the protocol stack to authenticate in the satellite network; drives the switch 31 through the driving module to connect the user identification card and the cellular baseband and disconnect the user identification card from the protocol stack, thereby interrupting the communication of the electronic device in the satellite network, so that the cellular baseband and the user identification card perform the registration process of the cellular network and access the cellular network. The communication network connection method provided in this embodiment controls the different on and off states of the switch to achieve that the same user identification card can communicate with both the second chip and the first chip, so that the electronic device can communicate in a satellite network based on the user identification card and the second chip, or in a cellular network based on the user identification card and the first chip, and reduces the number of user identification cards and the number of corresponding card slots, reduces the size and weight of the electronic device, and is convenient for users to carry electronic devices on a daily basis. When the cellular network signal quality is good, the electronic device can communicate in a cellular network, and when there is no cellular network or the cellular network signal quality is poor, and there is no effective available network, the electronic device can communicate in a satellite network.

[0255] The communication network connection method provided in the embodiment of the present application enables multiple communication technologies such as cellular communication technology and satellite communication technology to share the same user identification card on the electronic device to realize the communication functions corresponding to the respective communication technologies on the electronic device. If a smart phone adopts the communication network connection method provided in the embodiment of the present application, the smart phone not only has the advantages of being light and easy to carry, and the user identification card supports hot plugging and mixed plugging, but also has the function of supporting both cellular communication and satellite communication.

[0256] An embodiment of the present application provides an electronic device, which includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the electronic device executes the above method.

[0257] An embodiment of the present application provides a chip. Fig.10 Schematic diagram of the hardware structure of the chip provided in the embodiment of the present application. The chip includes one or more (including two) processors 41, a communication line 42, a communication interface 43 and a memory 44. The processor 41 is used to call the computer program in the memory to execute the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above-mentioned related embodiments, and will not be repeated here.

[0258] The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. The above method is implemented when the computer program is executed by the processor. The method described in the above embodiment can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the function can be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium. Computer-readable media can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium that can be accessed by a computer.

[0259] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disk storage, disk storage or other magnetic storage devices, or any other medium that is intended to carry or store the required program code in the form of instructions or data structures and can be accessed by a computer. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave) is used to transmit software from a website, server or other remote source, the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disks and optical disks as used herein include optical disks, laser disks, optical disks, digital versatile disks (DVD), floppy disks and Blu-ray disks, where disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included in the scope of computer-readable media.

[0260] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the above method.

[0261] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0262] The above specific implementation methods further illustrate the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present invention should be included in the scope of protection of the present invention.

Claims

1. A communication network connection method, characterized in that: Applied to an electronic device, the electronic device comprises a first chip, a second chip and a user identification card; the method comprises: At a first moment, the cellular signal quality of the electronic device is greater than or equal to a quality threshold, and the electronic device communicates in a cellular network based on the subscriber identification card and the first chip; At a second moment, the cellular signal quality of the electronic device is less than a quality threshold, and the electronic device interrupts communication in the cellular network; the second moment is later than the first moment; At a third moment, the cellular signal quality of the electronic device is less than a quality threshold, and the electronic device communicates in a satellite network based on the user identification card and the second chip; the third moment is later than the second moment; At a fourth moment, the electronic device interrupts communication in the satellite network; the fourth moment is later than the third moment; At a fifth moment, the cellular signal quality of the electronic device is greater than or equal to a quality threshold, and the electronic device communicates in a cellular network based on the user identification card and the first chip; the fifth moment is later than the fourth moment; From the first moment to the fifth moment, the user identification card is placed in the same card slot of the electronic device.

2. The method according to claim 1, characterized in that The first chip includes an agent module; Before the electronic device communicates in the satellite network based on the user identification card and the second chip, the electronic device further includes: The second chip indicates a first authentication parameter in a satellite network to the proxy module; The proxy module transmits the first authentication parameter to the user identification card; The user identification card calculates the first authentication parameter to obtain a first authentication result; The user identification card transmits the first authentication result to the proxy module; The proxy module indicates the first authentication result to the second chip; The second chip performs authentication in the satellite network according to the first authentication result; If the second chip is successfully authenticated in the satellite network, the second chip completes the registration process in the satellite network and accesses the satellite network.

3. The method according to claim 2, characterized in that The first chip further includes a cellular baseband, the second chip includes a Hayes command set AT command interface, the proxy module communicates with the user identification card via the cellular baseband, and the proxy module communicates with the second chip via the AT command interface.

4. The method according to claim 3, characterized in that The electronic device further comprises an audio module; The electronic device communicates in a satellite network based on the user identification card and the second chip, including: The second chip transmits the first audio data to the proxy module through the AT command interface; the proxy module transmits the first audio data to the audio module; and / or, The audio module transmits the second audio data to the proxy module; and the proxy module transmits the second audio data to the second chip through the AT command interface.

5. The method according to any one of claims 2 to 4, characterized in that: Before the second chip indicates the first authentication parameter in the satellite network to the proxy module, the method further includes: The second chip establishes a radio resource control RRC connection with the satellite network.

6. The method according to any one of claims 2 to 5, characterized in that: The first chip also includes a communication management module; Before the second chip indicates the first authentication parameter in the satellite network to the proxy module, the method further includes: The communication management module instructs the second chip to perform a registration process of a satellite network through the AT command interface.

7. The method according to claim 6, characterized in that After the second chip performs authentication on the satellite network according to the first authentication result, the second chip further includes: The second chip instructs the communication management module to update satellite registration status information, satellite beam information and / or satellite signal strength; the satellite registration status information includes satellite network registration success information or satellite network registration failure information; If the satellite registration status information is satellite network registration success information, the communication management module instructs the electronic device to display the satellite registration status information, satellite beam information and / or satellite signal strength; If the satellite registration status information is information about unsuccessful satellite network registration, the communication management module instructs the second chip to execute the registration process in the satellite network again through the AT command interface.

8. The method according to any one of claims 1 to 7, characterized in that: The first chip includes a cellular baseband, and before the electronic device communicates in a cellular network based on the user identification card and the first chip, the electronic device further includes: The cellular baseband indicates a second authentication parameter in the cellular network to the subscriber identity card; The user identification card calculates the second authentication parameter to obtain a second authentication result; The user identification card transmits the second authentication result to the cellular baseband; The cellular baseband performs authentication on the cellular network according to the second authentication result; If the cellular baseband is successfully authenticated in the cellular network, the cellular baseband completes the registration process in the cellular network and accesses the cellular network.

9. The method according to claim 1, characterized in that: The electronic device further comprises a switch; Before the electronic device communicates in the satellite network based on the user identification card and the second chip, the electronic device further includes: The first chip drives the switch to connect the user identification card and the second chip, and disconnect the user identification card from the first chip; Before the electronic device communicates in the cellular network based on the user identification card and the first chip, the electronic device further includes: The first chip drives the switch to connect the user identification card and the first chip, and disconnect the user identification card from the second chip.

10. The method according to claim 9, characterized in that After the first chip drives the switch to connect the user identification card and the second chip, and disconnects the user identification card from the first chip, the method further includes: The second chip indicates a first authentication parameter in a satellite network to the user identification card; The user identification card calculates the first authentication parameter to obtain a first authentication result; The user identification card transmits the first authentication result to the second chip; The second chip performs authentication in the satellite network according to the first authentication result; If the second chip is successfully authenticated in the satellite network, the second chip completes the registration process in the satellite network and accesses the satellite network; After the first chip drives the switch to connect the user identification card and the first chip, and disconnects the user identification card from the second chip, the method further includes: The first chip indicates a second authentication parameter in a cellular network to the subscriber identity card; The user identification card calculates the second authentication parameter to obtain a second authentication result; The user identification card transmits the second authentication result to the first chip; The first chip performs authentication on the cellular network according to the second authentication result; If the first chip is successfully authenticated in the cellular network, the first chip completes the registration process in the cellular network and accesses the cellular network.

11. The method according to any one of claims 1 to 10, characterized in that The electronic device communicates in a satellite network based on the user identification card and the second chip, including: If the electronic device detects a satellite positioning signal, the electronic device communicates in the satellite network based on the user identification card and the second chip.

12. The method according to any one of claims 1 to 10, characterized in that Before the electronic device communicates in the satellite network based on the user identification card and the second chip, the electronic device further includes: The electronic device detects whether there is a valid available network, and the available network does not include a satellite network; If the electronic device detects a valid available network, the electronic device uses the valid available network for communication; If the electronic device does not detect a valid available network, detecting whether a satellite network exists; The electronic device communicates in a satellite network based on the user identification card and the second chip, comprising: if the electronic device detects a satellite network, the electronic device communicates in the satellite network based on the user identification card and the second chip.

13. The method according to any one of claims 1 to 12, characterized in that Before the electronic device interrupts the communication in the cellular network, the electronic device further includes: When the electronic device detects that the quality of the cellular signal of the electronic device is less than a quality threshold, the electronic device starts timing to obtain a first timing duration; The electronic device detects whether the first timing duration exceeds a first duration threshold, and if so, the electronic device interrupts communication in the cellular network.

14. The method according to any one of claims 1 to 13, characterized in that Before the electronic device interrupts the communication in the satellite network, the electronic device further includes: The electronic device detects whether a target application is currently running; If no target application is currently running, the electronic device starts timing to obtain a second timing duration; the electronic device detects whether the second timing duration exceeds a second duration threshold, and if so, the electronic device interrupts communication in the satellite network; If a target application is currently running, the electronic device starts timing after the target application terminates and obtains a third timing duration; the electronic device detects whether the third timing duration exceeds a third duration threshold, and if so, the electronic device interrupts communication in the satellite network.

15. An electronic device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the electronic device performs the method according to any one of claims 1 to 14.

16. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 14 is implemented.

17. A computer program product, characterized in that The method comprises a computer program, which, when being executed, enables a computer to execute the method according to any one of claims 1 to 14.

18. A chip, comprising a processor, wherein the processor is used to call a computer program in a memory to execute the method according to any one of claims 1 to 14.