Communication network connection method, and device and storage medium
By using the same user identification card and chip in electronic devices to switch between cellular and satellite networks, the problem that smartphones cannot communicate through satellite networks is solved, and satellite network communication is realized when the cellular network signal is poor, and the signal is in the same way. Automatically switch back to the cellular network during recovery, reducing the size and weight of the device.
Patent Information
- Application Number
- PCT/CN2024/080252
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-25
- Filing Date
- 2024-03-06
- Publication Date
- 2024-11-28
AI Technical Summary
Smartphones cannot communicate through satellite networks, and satellite phones are large and inconvenient to carry, which limits their application scope, especially when the cellular network is damaged by natural disasters.
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, it is possible to use the cellular network first when the cellular network signal is good, and switch to the cellular network when the cellular network signal is poor or there is no signal. Satellite network reduces the number of user identification cards and card slots, and reduces the size and weight of equipment.
It realizes communication through satellite networks when the cellular network is poor or no signal, solves the problem that smartphones cannot pass through satellite networks, reduces the size and weight of the equipment, is easy for users to carry, and automatically switches back to cellular when the cellular network is restored. Network, improve communication timeliness.
Smart Images

Figure CN2024080252_28112024_PF_FP_ABST
Abstract
Description
Communication network connection method, device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on May 25, 2023, with application number 202310605227.8 and application name “Communication Network Connection Method, Device and Storage Medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] 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
[0003] Terminal devices such as mobile phones are currently the most commonly used communication devices. These devices include smart terminals that only support cellular network connections and dual-mode industrial terminals that support both cellular and satellite network connections. Smart terminals include the smartphones that users carry with them on a daily basis. Dual-mode industrial terminals include satellite phones used in specialized industries such as outdoor adventure, rescue, and navigation.
[0004] In a potential implementation, satellite phones are bulky and difficult to carry. They also require both a cellular user identification card (such as a SIM card) and a satellite user identification card (such as a Tiantong card). Their application is limited to specific industries. Smartphones, on the other hand, offer a wide range of applications, supporting multiple intelligent functions and being lightweight and portable.
[0005] 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.
[0006] Summary of the Invention
[0007] 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 is achieved in a cellular network 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.
[0008] In a first aspect, embodiments of the present application provide a communication network connection method. The method is applied to an electronic device, the electronic device including a first chip, a second chip, and a user identification card; the method includes:
[0009] 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 the cellular network based on the subscriber identity card and the first chip;
[0010] 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;
[0011] At a third moment, the cellular signal quality of the electronic device is less than a 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;
[0012] At a fourth moment, the electronic device interrupts communication in the satellite network; the fourth moment is later than the third moment;
[0013] 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 subscriber identity card and the first chip; the fifth moment is later than the fourth moment;
[0014] From the first moment to the fifth moment, the user identification card is placed in the same card slot of the electronic device.
[0015] In this way, when a cellular network is available and the cellular network signal quality is good, the electronic device prioritizes using the cellular network for communication. When a cellular network is unavailable or the cellular network signal quality is poor, the electronic device uses the satellite network for communication. Both cellular and satellite communications can be performed based on the same user identification card in the same card slot. This eliminates the need to configure separate user identification cards and card slots for cellular and satellite communications, reducing the number of user identification cards and the number of card slots required on the electronic device, reducing the size and weight of the electronic device, and making it easier for users to carry around.
[0016] In one possible implementation, the first chip includes an agent module;
[0017] Before the electronic device communicates in the satellite network based on the user identification card and the second chip, it also includes:
[0018] The second chip indicates a first authentication parameter in the satellite network to the proxy module;
[0019] The proxy module transmits the first authentication parameter to the user identification card;
[0020] The user identification card calculates the first authentication parameter to obtain a first authentication result;
[0021] The user identification card transmits the first authentication result to the proxy module;
[0022] The proxy module indicates the first authentication result to the second chip;
[0023] The second chip performs authentication in the satellite network according to the first authentication result;
[0024] 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.
[0025] In this way, the second chip communicates with the user identification card through the proxy module on the first chip to complete authentication in the satellite network. There is no need to set up a dedicated user identification card for 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 user identification cards.
[0026] In one 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.
[0027] 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 volume and weight of the electronic device.
[0028] In a possible implementation, the electronic device further includes an audio module;
[0029] The electronic device communicates in a satellite network based on a user identification card and a second chip, including:
[0030] 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;
[0031] and / or,
[0032] 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.
[0033] In this way, information interaction can be achieved between the second chip and the audio module with different control protocols, without setting up a corresponding dedicated audio module for the second chip, reducing the number of audio modules on the electronic device, and thus helping to reduce the volume and weight of the electronic device.
[0034] In a possible implementation, before the second chip indicates the first authentication parameter in the satellite network to the proxy module, the process further includes:
[0035] The second chip establishes a radio resource control RRC connection with the satellite network.
[0036] In this way, it is convenient for the second chip to interact with the network equipment in the satellite network when performing the registration process of the satellite network.
[0037] In a possible implementation, the first chip further includes a communication management module;
[0038] Before the second chip indicates the first authentication parameter in the satellite network to the proxy module, the method further includes:
[0039] The communication management module instructs the second chip to perform a registration process of the satellite network through the AT command interface.
[0040] This makes it easier to control and maintain the connection between electronic equipment and the satellite network.
[0041] In a possible implementation, after the second chip performs authentication on the satellite network according to the first authentication result, the second chip further includes:
[0042] 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;
[0043] 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;
[0044] If the satellite registration status information indicates that the satellite network registration is unsuccessful, the communication management module instructs the second chip to execute the registration process in the satellite network again through the AT command interface.
[0045] In this way, when satellite network registration is successful, the user is prompted to initiate satellite communication. If satellite network registration is unsuccessful, the communication management module instructs the second chip to repeat the satellite network registration process. This facilitates maintaining the status of the electronic device's connection to the satellite network. If the connection between the electronic device and the satellite network is accidentally interrupted, the electronic device can quickly reconnect to the satellite network.
[0046] In one 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 subscriber identity card, the electronic device further includes:
[0047] The cellular baseband indicates a second authentication parameter in the cellular network to the subscriber identity card;
[0048] The user identification card calculates the second authentication parameter to obtain a second authentication result;
[0049] The user identification card transmits the second authentication result to the cellular baseband;
[0050] The cellular baseband performs authentication on the cellular network according to the second authentication result;
[0051] 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.
[0052] In this way, electronic devices can access both satellite networks and cellular networks through the same user identification card.
[0053] In a possible implementation, the electronic device further includes a switch;
[0054] Before the electronic device communicates in the satellite network based on the user identification card and the second chip, it also includes:
[0055] 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;
[0056] Before the electronic device communicates in the cellular network based on the user identification card and the first chip, the electronic device further includes:
[0057] The first chip driving switch connects the user identification card and the first chip, and disconnects the user identification card from the second chip.
[0058] In this way, by controlling the different on / 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. This allows electronic devices to 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. This also reduces the number of user identification cards and the number of corresponding card slots, reducing the size and weight of the electronic device, making it easier 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 is no situation where the electronic device accesses multiple networks at once, which would adversely affect the transmission and reception of network signals.
[0059] 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:
[0060] The second chip indicates a first authentication parameter in the satellite network to the user identification card;
[0061] The user identification card calculates the first authentication parameter to obtain a first authentication result;
[0062] The user identification card transmits the first authentication result to the second chip;
[0063] The second chip performs authentication in the satellite network according to the first authentication result;
[0064] 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;
[0065] After 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, the method further includes:
[0066] The first chip indicates a second authentication parameter in the cellular network to the subscriber identity card;
[0067] The user identification card calculates the second authentication parameter to obtain a second authentication result;
[0068] The user identification card transmits the second authentication result to the first chip;
[0069] The first chip performs authentication in the cellular network according to the second authentication result;
[0070] 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.
[0071] 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 proxy module to transfer, 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.
[0072] In a possible implementation, the electronic device communicates in a satellite network based on a user identification card and a second chip, including:
[0073] If the electronic device detects the satellite positioning signal, the electronic device communicates in the satellite network based on the subscriber identification card and the second chip.
[0074] 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 whether the signal quality of the satellite network can meet the communication requirements 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.
[0075] 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:
[0076] The electronic device detects whether there is a valid available network, and the available network does not include a satellite network;
[0077] If the electronic device detects a valid available network, the electronic device uses the valid available network for communication;
[0078] If the electronic device does not detect a valid available network, it detects whether a satellite network exists;
[0079] The electronic device communicates in a satellite network based on the subscriber identification card and the second chip, comprising: if the electronic device detects the satellite network, the electronic device communicates in the satellite network based on the subscriber identification card and the second chip.
[0080] An electronic device can detect whether an available network exists. If so, it can determine whether the network is valid. Examples of available networks include Wi-Fi networks. Generally, Wi-Fi networks have lower communication latency than satellite networks. Therefore, if a valid network exists, the electronic device can prioritize communication via that network, improving communication timeliness. If no valid network exists, but a satellite network exists, the electronic device can communicate via the satellite network to enable communication between the electronic device and other devices.
[0081] In a possible implementation, before the electronic device interrupts communication in the cellular network, the method further includes:
[0082] When the electronic device detects that the cellular signal quality of the electronic device is less than the quality threshold, the electronic device starts timing to obtain a first timing duration;
[0083] 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.
[0084] Typically, occasional, brief fluctuations in cellular network signal quality are acceptable for users' cellular communications and do not require a communication mode switch. By terminating cellular communications after the electronic device's cellular signal quality has fallen below a quality threshold for a period of time, this can mitigate the adverse effects of occasional, brief fluctuations in cellular network signal quality that could cause a communication mode switch.
[0085] In a possible implementation, before the electronic device interrupts communication in the satellite network, the method further includes:
[0086] The electronic device detects whether a target application is currently running;
[0087] 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;
[0088] 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.
[0089] In this way, the business interaction of the currently running target application will not be interrupted.
[0090] 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.
[0091] In a third aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method of the first aspect.
[0092] 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 run, it enables the computer to execute the method of the first aspect.
[0093] 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.
[0094] 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
[0095] FIG1 is a first structural diagram of an electronic device 100 provided in an embodiment of the present application;
[0096] FIG2 is a schematic diagram of the software structure of the electronic device 100 provided in an embodiment of the present application;
[0097] FIG3 is a schematic diagram of the structure of a satellite phone in a possible implementation;
[0098] FIG4 is a second structural diagram of the electronic device 100 provided in an embodiment of the present application;
[0099] FIG5 is a flow chart of a communication network connection method according to an embodiment of the present application;
[0100] FIG6 is a second flow chart of the communication network connection method provided in an embodiment of the present application;
[0101] FIG7 is a schematic diagram of a registration process for a satellite network according to an embodiment of the present application;
[0102] FIG8 is a diagram showing a scenario in which the electronic device 100 and the electronic device A communicate via a satellite network according to an embodiment of the present application;
[0103] FIG9 is a third structural diagram of the electronic device 100 provided in an embodiment of the present application;
[0104] FIG10 is a schematic diagram of the hardware structure of the chip provided in an embodiment of the present application. DETAILED DESCRIPTION
[0105] To facilitate a clear description of the technical solutions of the embodiments of the present application, some of the terms and technologies involved in the embodiments of the present application are briefly introduced below:
[0106] 1. Some terms
[0107] In the embodiments of this application, terms such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. For example, the terms "first chip" and "second chip" are used solely to distinguish between different chips and do not define their order. Those skilled in the art will understand that terms such as "first" and "second" do not define the quantity or execution order, and do not necessarily define differences.
[0108] It should be noted that in the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0109] In the embodiments of the present application, "at least one" refers to one or more, and "more" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items 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.
[0110] 2. Electronic devices
[0111] The electronic devices of the embodiments of the present application may include handheld devices, vehicle-mounted devices, etc. with image processing functions. For example, some electronic devices include: 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 cars, 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, in-vehicle devices, wearable devices, terminal devices in 5G networks or future evolved public land mobile communication networks. The terminal equipment in the network (PLMN), etc., is not limited to this in the embodiments of the present application.
[0112] As an example and not a 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 achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are fully functional, large in size, and can achieve complete or partial functions without relying on smartphones, such as smart watches or smart glasses, as well as those 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 smart bracelets and smart jewelry for vital sign monitoring.
[0113] 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 of human-machine interconnection and object-to-object interconnection.
[0114] 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.
[0115] In the embodiments 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 memory (also known as main memory). The operating system can be any one or more computer operating systems that implement business processing through processes, such as the Linux operating system, the Unix operating system, the Android operating system, the iOS operating system, or the Windows operating system. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.
[0116] In order to better understand the embodiments of the present application, the structure of the electronic device according to the embodiments of the present application is introduced below:
[0117] FIG1 shows a first structural diagram of an electronic device 100 .
[0118] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a card interface 195 for a subscriber identification module card. The subscriber identification module card may be a subscriber identification module (SIM) card, a user identity module (UIM) card, or the like. 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.
[0119] It should be understood that the structure illustrated in the embodiments 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, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0120] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, a satellite protocol stack, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0121] 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.
[0122] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly retrieve it from the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0123] In some embodiments, the processor 110 may include one or more interfaces. The interfaces 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.
[0124] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative 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 from the above embodiments, or a combination of multiple interface connection methods.
[0125] The charging management module 140 is configured to receive charging input from a charger, which may be a wireless charger or a wired charger.
[0126] The power management module 141 is used to connect the battery 142 , the charging management module 140 and the processor 110 .
[0127] 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.
[0128] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0129] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0130] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted 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 being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the 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.
[0131] The wireless communication module 160 can provide wireless communication solutions applied to the electronic device 100, 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), near field communication (NFC), infrared technology (IR), etc. 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, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0132] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with a network and other devices via wireless communication technology. 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. 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).
[0133] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0134] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0135] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. This allows electronic device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0136] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.
[0137] 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 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0138] 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.
[0139] The card interface 195 is used to connect a subscriber identity module card.
[0140] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.
[0141] FIG2 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present invention.
[0142] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0143] The application layer can include a series of application packages.
[0144] As shown in FIG2 , the application package may include applications such as satellite communication, camera, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
[0145] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0146] As shown in FIG2 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
[0147] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0148] Content providers are used to store and retrieve data and make it accessible to applications. Data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0149] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0150] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).
[0151] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0152] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.
[0153] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
[0154] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0155] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0156] The system library can 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.
[0157] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0158] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0159] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0160] A 2D graphics engine is a drawing engine for 2D drawings.
[0161] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
[0162] The following describes the workflow of the software and hardware of the electronic device 100 in conjunction with capturing a photo scene.
[0163] 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, touch operation timestamp, 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 a still image or video through the camera 193.
[0164] Terminal devices such as mobile phones are commonly used communication devices. Mobile phones include smartphones and satellite phones. Smartphones are lightweight, portable, and widely used. Their user identification cards are hot-swappable. However, smartphones only support communication over cellular networks and cannot communicate over satellite networks. For example, smartphones cannot make calls or send text messages directly over the satellite network.
[0165] Communication via a satellite network is also called satellite communication. Communication via a cellular network is also called cellular communication.
[0166] In a possible implementation, a satellite phone supports both cellular and satellite communications. However, to improve waterproofing and battery life, satellite phones are bulky and large, making them difficult to carry. The user identification card (UIC) of a satellite phone is usually located under the battery and cannot be hot-swapped. Furthermore, two card slots are provided on the satellite phone, one for inserting a user identification card for cellular communication mode and another for inserting a user identification card for satellite communication mode. A user identification card for cellular communication mode is, for example, a full-network card. A user identification card for 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 into an independent satellite chip. The satellite protocol stack can be referred to as a protocol stack.
[0167] The structure of the satellite phone is shown in Figure 3. 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 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.
[0168] The application processor and operating system 121 communicates with the cellular baseband 122. The application processor and operating system 121 controls the interaction between target applications on the satellite phone and the cellular baseband 122. The application processor and operating system 121 communicates with the protocol stack 131 via the AT command interface 1311, including control plane commands and user plane data. The application processor and operating system 121 also controls the interaction between target applications on the satellite phone and the protocol stack 131. Target applications include calls and short messaging.
[0169] The cellular baseband 122 communicates with the full network card 11. The cellular baseband 122 communicates with network devices in the cellular network via the radio frequency component 16. The protocol stack 131 communicates with the satellite card 14. The protocol stack 131 communicates with network devices in the satellite network via the radio frequency component 15.
[0170] Both the full-network access card 11 and the satellite card 14 serve as user identification cards (UICs), used for authentication in the cellular and satellite networks, respectively, to access and enable communication between the satellite phone and the cellular and satellite networks. Because the interaction between the cellular baseband 122 and the full-network access card 11 differs from the interaction between the protocol stack 131 and the satellite card 14, the satellite phone requires a full-network access card 11 for the cellular baseband 122 and a satellite card 14 for the satellite chip 13. Furthermore, the interaction between the target application and the cellular baseband 122 differs from the interaction between the full-network access card 11 and the cellular baseband 122. Similarly, the interaction between the target application and the protocol stack 131 differs from the interaction between the satellite card 14 and the protocol stack 131. Therefore, the application processor and operating system 121 cannot communicate between the full-network access card 11 and the protocol stack 131. In a satellite phone, the cellular baseband 122 and the satellite chip 13 each need to communicate with their respective UICs. 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.
[0171] Taking all these influencing factors into consideration, the application scope of satellite phones is limited to special industries such as outdoor exploration, rescue, and navigation.
[0172] 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, and when there is no cellular network or the cellular network signal quality is poor, communication is achieved through a satellite network. 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 area where the user is located, for example, 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.
[0173] The communication network connection method proposed in this application will be described below in conjunction with some embodiments. In the embodiments of this application, 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.
[0174] Figure 4 is a second structural diagram of the electronic device 100 provided in an embodiment of the present application. Figure 5 is a first flow chart of the communication network connection method provided in an embodiment of the present application. Figure 6 is a second flow chart of the communication network connection method provided in an embodiment of the present application. As shown in Figure 4, 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 operating system 211 and a cellular baseband 122. The application processor and 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 for various layers such as the transport layer, network layer, data link layer and 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 may also store the temporary mobile subscriber identity (TMSI) assigned by the cellular network. The TMSI corresponds to the IMSI. The confidentiality algorithm includes the 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 (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.
[0175] The application processor and operating system 211 communicates with the cellular baseband 122. The application processor and operating system 211 is used to control the interaction between target applications on the electronic device 100 and the cellular baseband 122. The application processor and operating system 211 communicates with the protocol stack 131 via the AT command interface 1311. The application processor and operating system 211 is also used to control the interaction between target applications on the electronic device 100 and the protocol stack 131. Target applications include calls and short messaging.
[0176] The cellular baseband 122 communicates with the subscriber identity card 23. For example, the hardware connection between the cellular baseband 122 and the subscriber identity card 23 can be similar to the hardware connection between the subscriber identity card and the cellular baseband in a smartphone. This allows for hot-swappable and blind-pluggable features of the subscriber identity card 23. The cellular baseband 122 communicates with network devices in the cellular network via the radio frequency assembly 16. Thus, through authentication interactions with the subscriber identity card 23, the cellular baseband 122 can complete the registration process in the cellular network and thereby access the cellular network.
[0177] 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 has been 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 mutual authentication with Subscriber Identity Module 23 through proxy module 2111, completes the registration process in the satellite network, and then accesses the satellite network.
[0178] The electronic device 100 may be provided with a card slot for placing the subscriber identification card 23. Thus, the electronic device 100 can access both the cellular network and the satellite network for communication based on the subscriber identification card 23 in the card slot.
[0179] For example, as shown in FIG5 , the electronic device 100 can identify the user scenario and obtain an identification result. For example, the application processor and operating system 211 of the electronic device 100 can detect the cellular network, WiFi network, and satellite network to obtain the type of network and 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. Based on the identification result, the electronic device 100 determines whether to perform satellite communication, such as determining to access the satellite network for satellite communication, or exit 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 or WiFi network, the application processor and 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 is possible. 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.
[0180] The recognition result after identifying the user scenario may also be a comparison result of the cellular signal quality of the electronic device 100 with a quality threshold. The cellular signal quality may be 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 to obtain a comparison result indicating that the cellular signal strength is greater than or equal to the cellular signal strength threshold, or a comparison result indicating that the cellular signal strength is less than the cellular signal strength threshold. If the electronic device 100 is currently stationed on a cellular network frequency, the electronic device 100 may detect the cellular signal strength of the cellular network by detecting the Reference Signal Received Power (RSRP) corresponding to the currently stationed cellular network frequency.
[0181] For example, the electronic device 100 may determine whether to access a cellular network for cellular communication or a satellite network for satellite communication according to the communication network connection method shown in S101-S105 in FIG6 based on the cellular signal quality of the electronic device 100:
[0182] 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 .
[0183] 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 communication in the cellular network. The second moment is later than the first moment.
[0184] 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.
[0185] 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.
[0186] S105: At a 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 subscriber identity 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 subscriber identity card 23 is placed in the same card slot of the electronic device 100.
[0187] In this way, when a cellular network is available and the cellular network signal quality is good, the electronic device prioritizes using the cellular network for communication. When a cellular network is unavailable or the cellular network signal quality is poor, the electronic device uses the satellite network for communication. Both cellular and satellite communications can be performed based on the same user identification card in the same card slot. This eliminates the need to configure separate user identification cards and card slots for cellular and satellite communications, reducing the number of user identification cards and the number of card slots required on the electronic device, reducing the size and weight of the electronic device, and making it easier for users to carry around.
[0188] The communication network connection method shown in S101-S105 in FIG6 is described in detail below with reference to FIG4, FIG5, FIG7, and FIG8. FIG7 is a schematic diagram of the satellite network registration process according to an embodiment of the present application. FIG8 is a diagram of a scenario in which electronic device 100 and electronic device A communicate via a satellite network according to an embodiment of the present application.
[0189] As shown in FIG4 , 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 authentication interaction with the user identification card 23 in the following manner S601-S605. The cellular network can be any of the second-generation mobile telephone technology (2G) network, the third-generation mobile communication technology (3G) network, the fourth-generation mobile communication technology (4G) network, and the fifth-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 principles of two-way authentication are similar to those of one-way authentication. Below, taking the one-way authentication shown in S601-S605 as an example, 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 are explained.
[0190] S601: The cellular baseband 122 reads the IMSI or TMSI from the subscriber identity card 23. Based on the read IMSI or TMSI, the cellular baseband 122 establishes a radio resource control (RRC) connection with the cellular network. During the RRC connection establishment process between the cellular baseband 122 and the cellular network, a network device in the cellular network can obtain the TMSI from the cellular network. The network device in the cellular network stores the correspondence between the IMSI and the TMSI. The network device in the cellular network sends a second authentication parameter corresponding to the IMSI to the cellular baseband 122. The second authentication parameter includes an encrypted pseudo-random number (RAND) of the cellular network.
[0191] S602: The cellular baseband 122 indicates a second authentication parameter in the cellular network to the subscriber identity card 23.
[0192] S603, Subscriber Identity Module 23 calculate the second authentication parameter as follows to obtain the second authentication result: Subscriber Identity Module 23 adopts the key of the cellular network to decrypt the second authentication parameter to obtain the pseudo-random number (RAND) of the cellular network. Subscriber Identity Module 23 adopts 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 can include the encrypted cellular network authentication value. The cellular network authentication value is such as the response number (signed response, SRES).
[0193] S604 : The subscriber identity card 23 transmits the second authentication result to the cellular baseband 122 .
[0194] S605: The cellular baseband 122 performs authentication on the cellular network based on the second authentication result as follows: The cellular baseband 122 transmits the second authentication result to the cellular network device via the radio frequency component 16. The cellular network device decrypts the second authentication result using the cellular network's key to obtain a decrypted cellular network authentication value. If the authentication value corresponding to the IMSI pre-stored on the cellular network device matches the cellular network authentication value, authentication on the cellular network is successful. If authentication on the cellular network is successful, the cellular baseband 122 completes the registration process on the cellular network and accesses the cellular network.
[0195] After the electronic device 100 accesses the cellular network, at a first moment, the electronic device 100 can communicate on the cellular network based on the subscriber identity card 23 and the first chip 21. During communication on the cellular network, the electronic device 100 generally needs to maintain an unobstructed communication channel between the subscriber identity card 23 and the first chip 21. Similarly, during communication on a satellite network, the electronic device 100 generally needs to maintain an unobstructed communication channel between the subscriber identity card 23 and the second chip 21.
[0196] After electronic device 100 accesses a cellular network and before terminating communication on the cellular network, when electronic device 100 detects that the cellular signal quality of electronic device 100 is less than a quality threshold, electronic device 100 starts timing to obtain a first timing duration. Electronic device 100 then detects whether the first timing duration exceeds the first duration threshold.
[0197] If the value exceeds the limit, the electronic device 100 interrupts the communication in the cellular network at the second moment. For example, as shown in FIG5 , the electronic device 100 can set the cellular baseband 122 to airplane mode to interrupt the communication in the cellular network so as to switch the subscriber identity card 23 to the second chip and start the satellite communication service.
[0198] After the electronic device 100 interrupts communication on the cellular network, the electronic device 100 may detect whether an available network exists. An available network may be a WiFi network, a hotspot, or the like. Available networks do not include satellite networks. If the electronic device 100 detects the existence of 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 a detection server via the available network. If a detection response is received from the detection server, the available network is valid. Conversely, if no detection response is received from the detection server, the available network is invalid. The detection server may be, for example, a server corresponding to an application.
[0199] Typically, available networks such as WiFi networks have lower latency than satellite networks.
[0200] If the electronic device 100 detects a valid available network, the electronic device 100 uses the valid available network for communication, thereby improving the timeliness of communication of the electronic device 100.
[0201] If the electronic device 100 does not detect a valid, available network, the electronic device 100 may detect whether a satellite network exists. Alternatively, the electronic device 100 may also detect whether a satellite positioning signal exists. Using the satellite positioning signal, the electronic device 100 can determine, on the one hand, the existence of a satellite network, and, on the other hand, determine whether the signal quality of the satellite network meets the communication requirements of the satellite network. If the electronic device 100 detects a satellite network or a satellite positioning signal, the electronic device 100 may access the satellite network as shown in FIG7 , so that at the third moment, the electronic device 100 communicates on the satellite network based on the subscriber identity card 23 and the second chip 22 . In this way, even when there is no cellular network or the cellular network signal quality is poor, and there is no valid, available network, communication with other devices can be achieved via the satellite network.
[0202] As shown in FIG7 , electronic device 100 detects a satellite network or a satellite positioning signal, and displays a message on its display interface indicating whether to connect to the satellite network. A user can choose whether to connect to the satellite network through the satellite communication application on electronic device 100. If the user chooses to connect to the satellite network, the user can click on the satellite communication application to open the satellite network. A click operation, for example, involves a user touching and clicking the hardware area corresponding to the satellite communication application icon on the display interface of electronic device 100. As shown in FIG1 and FIG2 , after a user clicks on the satellite communication application on the display interface of electronic device 100, touch sensor 180K of electronic device 100 receives the touch and click operation, and a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch and click operation into a raw input event (including information such as the touch coordinates and the timestamp of the touch operation). 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 that the control corresponding to the input event is the control of the satellite communication application icon. The satellite communication application triggers communication management module 2112. Electronic device 100 connects to the satellite network as shown in S701-S706 below.
[0203] 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.
[0204] Optionally, after the electronic device 100 interrupts 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.
[0205] At S701, the communication management module 2112 notifies the second chip 22 to initiate the satellite network registration process. For example, the communication management module 2112 reads the IMSI from the subscriber identity 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 via the AT command interface, instructing the second chip 22 to proceed with the satellite network registration process. During the satellite network registration process, the protocol stack 131 performs authentication interaction with the subscriber identity card 23 through the proxy module 2111, completing the satellite network registration process and enabling access to the satellite network. For example, the satellite network registration process is shown in S702-S706.
[0206] 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 conditions 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 via 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.
[0207] 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.
[0208] S704: The proxy module 2111 initiates an authentication process with the user identification card 23. 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 to obtain a first authentication result, which the user identification card 23 transmits to the proxy module 2111. The authentication process initiated by the proxy module 2111 and the user identification card 23 is as follows:
[0209] The proxy module 2111 extracts the first authentication parameter from the authentication request using a control protocol with the AT command interface 1311 , thereby parsing the authentication request sent by the second chip 22 .
[0210] The proxy module 2111 transmits the first authentication parameter to the user identity 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 identity card 23 through the cellular baseband 122.
[0211] The user identification card 23 extracts the first authentication parameter from the first authentication message, and decrypts the first authentication parameter using a pre-stored key of the satellite network to obtain a pseudo-random number (RAND) of the satellite network.
[0212] The subscriber identity card 23 calculates the IMSI, the satellite network's pseudo-random number (RAND), and the satellite network's client authentication key Ki using the satellite network's security algorithm to obtain a first authentication result, which includes the encrypted satellite network authentication value. The subscriber identity card 23 transmits the first authentication result to the proxy module 2111 via the cellular baseband 122.
[0213] 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 via the AT command interface 1311. The authentication response may be obtained by encapsulating the first authentication result by the proxy module 2111 for transmission via the AT command interface 1311.
[0214] S706: The protocol stack 131 on the second chip 22 performs the following authentication in the satellite network based on the first authentication result:
[0215] The protocol stack 131 sends the authentication response to the satellite network via the radio frequency component 15 .
[0216] 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.
[0217] If the authentication value corresponding to the IMSI pre-stored on the satellite network device matches the satellite network authentication value, the authentication process is complete and the user's identity is successfully identified. The authentication value corresponding to the IMSI pre-stored on the satellite network device can be an authentication value calculated by the network device using the satellite network's confidentiality algorithm from the IMSI, the satellite network's pseudo-random number (RAND), and the satellite network's client authentication key Ki. Successful user identity identification indicates that protocol stack 131 has successfully authenticated on the satellite network. Protocol stack 131 completes the registration process on the satellite network and accesses the satellite network.
[0218] 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 obtained 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.
[0219] After the protocol stack 131 on the second chip 22 performs authentication in the satellite network based on 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. For example, the protocol stack 131 on the second chip 22 instructs the communication management module 2112 to update 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 information about successful satellite network registration or information about unsuccessful satellite network registration.
[0220] The communication management module 2112 maintains the satellite network registration status and enables active information reporting. For example, if the satellite registration status information indicates successful registration, 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. This facilitates prompting the user to enable satellite communication. Alternatively, if the satellite registration status information indicates successful registration, the communication management module 2112 sends the satellite registration status information, satellite beam information, and satellite signal strength to the satellite communication application, instructing 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 indicates unsuccessful registration, the communication management module 2112 instructs the second chip 22 to re-execute the satellite network registration process via the AT command interface 1311.
[0221] The communication management module 2112 can also monitor in real time the satellite registration status information, satellite beam information, and / or satellite signal strength sent by the second chip 22. When the monitored satellite registration status information, satellite beam information, and / or satellite signal strength are 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 monitored satellite registration status information indicates that the satellite network registration is unsuccessful, the communication management module 2112 instructs the second chip 22 to re-execute the registration process on the satellite network through the AT command interface 1311.
[0222] After electronic device 100 accesses the satellite network, it can communicate on the satellite network at a third moment based on the user identification card 23 and the second chip 22. For example, as shown in FIG8 , electronic device 100 also includes an audio module 24. When user B uses electronic device 100 to communicate with user A on the other end of electronic device A shown in FIG8 via the satellite network, electronic device A can transmit user A's voice data collected by electronic device A to the second chip 22 of electronic device 100 via the satellite network.
[0223] For example, the second chip 22 transmits first audio data to the proxy module 2111 via the AT command interface 1311. The first audio data may include voice data of user A. For example, the proxy module 2111 extracts user A's voice data from the first audio data using a control protocol with the AT command interface 1311, and transmits user A's voice data to the audio module 24 via the cellular baseband 122, thereby enabling the proxy module 2111 to transmit the first audio data to the audio module 24.
[0224] and / or,
[0225] When user B uses electronic device 100 to communicate with user A at electronic device A shown in FIG8 via a satellite network, audio module 24 can transmit second audio data to proxy module 2111 via cellular baseband 122. The second audio data can include voice data of user B collected by electronic device 100. Proxy module 2111 extracts user B's voice data from the second audio data and transmits user B's voice data to second chip 22 via AT command interface 1311, thereby enabling proxy module 2111 to transmit the second audio data to second chip 22 via AT command interface 1311.
[0226] Typically, 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. During a call between the electronic device 100 and another electronic device (electronic device A as shown in FIG8 ) via a cellular network, the cellular baseband 122 communicates with the corresponding audio module 24. Similarly, during a call between the electronic device 100 and another electronic device (electronic device A as shown in FIG8 ) via a satellite network, the second chip 22 generally 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, information interaction between the second chip 22 and the audio module 24 can be realized without setting a corresponding dedicated audio module for the second chip 22. The cellular baseband 122 and the second chip 22 can both communicate with the same audio module, reducing the number of audio modules on the electronic device 100 and helping to reduce the volume and weight of the electronic device 100.
[0227] After the electronic device 100 accesses the satellite network and before interrupting its communications on the satellite network, the electronic device 100 detects whether a target application is currently running. For example, the electronic device 100 detects whether a call and / or short message application is currently running on the electronic device 100. If no target application is currently running, the electronic device 100 starts timing and obtains a second timing duration. The electronic device 100 then detects whether the second timing duration exceeds a second timing threshold. If so, the electronic device 100 interrupts its communications on the satellite network. If a target application is currently running, the electronic device 100 then starts timing after the target application terminates, obtaining a third timing duration. The electronic device 100 then detects whether the third timing duration exceeds a third timing threshold. If so, the electronic device 100 interrupts its communications on the satellite network. For example, as shown in FIG5 , at a fourth moment, the electronic device 100 disables the satellite communication service to interrupt its communications on the satellite network and switches the subscriber identity 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 flight mode. Optionally, after the electronic device 100 accesses the satellite network, if the communication management module 2112 detects that the satellite signal strength is lower than a 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 no lower than the preset satellite signal strength threshold, thereby obtaining a fourth timing duration during 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 so, the electronic device 100 interrupts the electronic device 100's communication in the satellite network and switches the user identification card 23 to the cellular baseband 122.
[0228] Optionally, after electronic device 100 accesses the satellite network, if communication management module 2112 receives information indicating unsuccessful satellite network registration, communication management module 2112 instructs electronic device 100 to start timing and terminate timing after receiving information indicating successful satellite network registration, thereby obtaining a fifth timed duration representing the duration of the unsuccessful satellite network registration. Electronic device 100 detects whether the fifth timed duration exceeds a fifth time threshold. If so, electronic device 100 terminates communication on the satellite network and switches subscriber identity card 23 to cellular baseband 122.
[0229] In this way, the service interaction of the target application currently running on 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.
[0230] The communication network connection method provided by this embodiment uses a proxy module and the same user identification card in the same card slot, so that the electronic device can access both the cellular network and the satellite network. 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 cellular communication or satellite communication, both 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 on the electronic device. At the same time, it can reduce the number of necessary card slots on the electronic device, reduce the size and weight of the electronic device, and facilitate daily carrying by the user. When the cellular network in the area where the user is located is damaged by accidental or sudden natural disasters, the user can use the electronic device provided by the embodiment of the present application to communicate with other terminal devices, service platforms, or servers providing applications for smartphones in the satellite network. When the cellular network in the area where the user is located is damaged by accidental or sudden natural disasters, the user can use the electronic device provided by the embodiment of the present application to communicate with other terminal devices or service platforms. When an electronic device uses a satellite network for communication, if the damaged cellular network is restored or an effective network is available, the electronic device can interrupt communication in the satellite network and reconnect to the cellular network, or the electronic device communicates through an effective network to improve the timeliness of communication of the electronic device. Because the electronic device is based on the same user identification card in the same card slot, it can access both the cellular network for communication 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 and inserted in multiple card slots.
[0231] The communication network connection method provided in the embodiment of the present application is described below with reference to FIG9 .
[0232] Figure 9 is a third structural diagram of an electronic device 100 provided in an embodiment of the present application. As shown in Figure 9, 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 operating system 211, a cellular baseband 122, and a driver module 212. The application processor and 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 for various layers, including the transport layer, network layer, data link layer, and 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 security algorithm of the cellular network, the key and security algorithm of the satellite network, and the International Mobile Subscriber Identity (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.
[0233] The application processor and operating system 211 communicates 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 via 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.
[0234] The cellular baseband 122 communicates with network devices in the cellular network via the radio frequency component 16 , and the protocol stack 131 communicates with network devices in the satellite network via the radio frequency component 15 .
[0235] 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.
[0236] In this way, by controlling the different on / off states of switch 31, the user identification card can communicate with the second chip, or the user identification card can communicate with the first chip. This allows the same user identification card to communicate with both the second chip and the first chip. This facilitates electronic devices to communicate in satellite networks based on the user identification card and the second chip, or in cellular networks based on the user identification card and the first chip. This reduces the number of user identification cards and corresponding card slots, reduces the size and weight of the electronic device, and makes it easier for users to carry the electronic device on a daily basis. In addition, by controlling switch 31, the electronic device can only access one network at a time, eliminating the situation where the electronic device accesses multiple networks at once, which would adversely affect the transmission and reception of network signals.
[0237] For example, 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 subscriber identity card 23 and the first chip 21, and disconnect the subscriber identity card 23 from the second chip 22. For example, the driver module 212 in the first chip 21 drives the switch 31 to connect the subscriber identity card 23 and the cellular baseband 122, and disconnect the subscriber identity card 23 from the protocol stack 131.
[0238] After the subscriber identity card 23 is connected to the cellular baseband 122, the cellular baseband 122 reads the IMSI or TMSI from the subscriber identity card 23. 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 an 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 subscriber identity card 23. Optionally, after the subscriber identity card 23 is connected to the cellular baseband 122, the cellular baseband 122 reads the IMSI from the subscriber identity card 23. The cellular baseband 122 transmits the IMSI to the network equipment of the cellular network via 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.
[0239] Subscriber Identity Module 23 calculates the second authentication parameter and obtains the second authentication result.For example, Subscriber Identity Module 23 adopts the key of cellular network to decrypt the second authentication parameter and obtains the pseudo-random number (RAND) of cellular network. Subscriber Identity Module 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 and obtains the second authentication result. The second authentication result can comprise the cellular network authentication value after encryption. Subscriber Identity Module 23 transmits the second authentication result to the first chip 21.For example, Subscriber Identity Module 23 transmits the second authentication result to cellular baseband 122.
[0240] The first chip 21 performs authentication in the cellular network based on 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 based on 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.
[0241] After the electronic device 100 accesses the cellular network, the electronic device 100 can communicate in the cellular network based on the subscriber identity card 23 and the first chip 21 at a first moment.
[0242] When the electronic device 100 communicates in a cellular network, the cellular baseband 122 needs to maintain connectivity with the subscriber identity card 23 .
[0243] 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 be connected to the subscriber identity card 23 and the second chip 22, and disconnect the subscriber identity card 23 from the first chip 21. Exemplarily, at the second moment, the driver module 212 on the first chip 21 can drive the switch 31 to be connected to the subscriber identity card 23 and the protocol stack 131, and disconnect the mode of the connection of the subscriber identity 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 be connected to the subscriber identity card 23 and the second chip 22, and after disconnecting the subscriber identity card 23 from the first chip 21, the second chip 22 indicates the first authentication parameter in the satellite network to the subscriber identity card 23. The first authentication parameter comprises the pseudo-random number (RAND) of the satellite network after encryption.
[0244] For example, the driver module 212 drives the switch 31 to connect the subscriber identity card 23 and the protocol stack 131. After disconnecting the subscriber identity card 23 from the cellular baseband 122, the protocol stack 131 performs frequency resident. After completing the frequency resident, the protocol stack 131 establishes an RRC connection with the satellite network. During the process of establishing the RRC connection with the satellite network, the protocol stack 131 can read the IMSI in the subscriber identity card 23. The protocol stack 131 sends the IMSI to the network equipment of the satellite network via the radio frequency assembly 15. The network equipment of the satellite network transmits an authentication request corresponding to the IMSI to the protocol stack 131 via the radio frequency assembly 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. The protocol stack 131 indicates the first authentication parameter of the satellite network to the subscriber identity card 23.
[0245] Subscriber identity card 23 calculates the first authentication parameter and obtains the first authentication result. For example, Subscriber identity card 23 can adopt the key of satellite network to decrypt the first authentication parameter and obtain the pseudo-random number (RAND) of satellite network. Subscriber identity card 23 adopts the confidentiality algorithm of satellite network to calculate the pseudo-random number (RAND) of IMSI, satellite network and the client authentication key Ki of satellite network and obtains the first authentication result. The first authentication result comprises the encrypted satellite network authentication value.
[0246] The subscriber identity card 23 transmits the first authentication result to the second chip 22. For example, the subscriber identity card 23 transmits the first authentication result to the protocol stack 131.
[0247] 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.
[0248] For example, protocol stack 131 performs authentication in the satellite network based on the first authentication result as follows: protocol stack 131 transmits the first authentication result to the satellite network via RF component 15. A network device in the satellite network decrypts the first authentication result using the satellite network's key to obtain a satellite network authentication value. If the authentication value corresponding to the IMSI pre-stored on the network device in the satellite network matches the satellite network authentication value, the authentication process is complete and the user's identity is successfully verified. Successful user identity verification indicates that protocol stack 131 has successfully authenticated in the satellite network. Protocol stack 131 completes the registration process in the satellite network and accesses the satellite network.
[0249] After the electronic device 100 accesses the satellite network, the electronic device 100 can communicate in the satellite network based on the subscriber identity card 23 and the second chip 22 at the third moment.
[0250] Optionally, the electronic device 100 may further include an audio module 24 and a dedicated audio module, allowing a user of the electronic device 100 to communicate with a user of another electronic device (electronic device A shown in FIG8 ) via a cellular network or a satellite network. The audio module 24 is shown in FIG9 . The dedicated audio module is not shown in FIG9 . Generally, the communication protocol between the network equipment of a cellular network and the electronic device 100 differs from the communication protocol between the network equipment of a satellite network and the electronic device 100. During a call between the electronic device 100 and another electronic device (electronic device A shown in FIG8 ) via a cellular network, the cellular baseband 122 may communicate with the audio module 24. During a call between the electronic device 100 and another electronic device (electronic device A shown in FIG8 ) via a satellite network, the second chip 22 may communicate with the dedicated audio module on the electronic device 100. The control protocol between the cellular baseband 122 and the audio module 24 differs from the control protocol between the second chip 22 and the dedicated audio module.
[0251] Optionally, as shown in FIG9 , the application processor and operating system 211 may further include a proxy module 2111. The proxy module 2111 communicates with the audio module 24 via the cellular baseband 122. The proxy module 2111 also communicates with the protocol stack 131 via the AT command interface 1311. When user C uses the electronic device 100 to communicate with user A at the end of the electronic device A shown in FIG8 through a satellite network, the electronic device 100 adopts a similar method to the embodiment of FIG8 , using the proxy module 2111 provided in the embodiment of the present application, to implement information interaction between the second chip 22 and the audio module 24, without having to set a corresponding dedicated audio module for the second chip 22, thereby enabling both 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, and thereby reducing the volume and weight of the electronic device 100.
[0252] After electronic device 100 accesses satellite network, electronic device 100 detects whether there is currently a target application in operation.If there is currently no target application in operation, then electronic device 100 starts timing, obtains the second timing duration.Electronic device 100 detects whether the second timing duration exceeds the second duration threshold value. If it exceeds, then the driver module 212 drive switch 31 of electronic device 100 is connected to subscriber identity card 23 and cellular baseband 122, and disconnects subscriber identity card 23 and protocol stack 131, to interrupt the communication of electronic device 100 in satellite network.If there is currently a target application in operation, then electronic device 100 starts timing after the target application operation terminates, obtains the third timing duration.Electronic device 100 detects whether the third timing duration exceeds the third duration threshold value. If it exceeds, then the driver module 212 drive switch 31 of electronic device 100 is connected to subscriber identity card 23 and cellular baseband 122, and disconnects subscriber identity card 23 and protocol stack 131, to interrupt the communication of electronic device 100 in satellite network. For example, at the fourth moment, the driver module 212 of the electronic device 100 drives the switch 31 to connect the subscriber identity card 23 and the cellular baseband 122, and disconnect the subscriber identity card 23 from the protocol stack 131, thereby interrupting the communication of the electronic device 100 in the satellite network. The fourth moment is later than the third moment.
[0253] 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 subscriber identity card 23 and the first chip 21 at the fifth moment.
[0254] Optionally, if the electronic device 100 detects that the cellular signal quality of the electronic device 100 is less than a quality threshold, 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 connect to the satellite network through the satellite communication application on the electronic device 100. If the user chooses to connect to the satellite network, the user can touch and click 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 a raw input event (including information such as the touch coordinates and the timestamp of the touch operation). 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 that the control corresponding to the input event is the control of the satellite communication application icon. The satellite communication application indication driver module 212 drives the switch 31 to connect the subscriber identity card 23 and the protocol stack 131, and disconnect the subscriber identity card 23 from the cellular baseband 122.
[0255] Alternatively, multiple card slots can be provided on the electronic device 100 to accommodate multiple user identification cards 23, and each card slot can be provided 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 with 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 can communicate in a cellular network based on the user identification card 23 in the card slot and the first chip 21. Blind insertion of user identification cards can also be achieved. Alternatively, for the same card slot, the first chip 21 can drive the switch 31 corresponding to 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 a target user identification card 23 from 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 .
[0256] 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; the switch 31 is driven by 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 enables the same user identification card to communicate with both the second chip and the first chip by controlling the different on and off states of the switch, 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. The method also reduces the number of user identification cards and the number of corresponding card slots, reduces the size and weight of the electronic device, and facilitates users to carry the electronic device daily. The method enables the electronic device to communicate in a cellular network when the cellular network signal quality is good, and to communicate in a satellite network when there is no cellular network or the cellular network signal quality is poor, and when there is no effective available network, the electronic device can communicate in a satellite network.
[0257] The communication network connection method provided in the embodiments 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 an electronic device, thereby realizing the communication functions corresponding to each communication technology on the electronic device. If a smartphone adopts the communication network connection method provided in the embodiments of the present application, the smartphone will not only have the advantages of being lightweight and easy to carry, and the user identification card supports hot plugging and mixed insertion, but also has the function of supporting both cellular communication and satellite communication.
[0258] 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 above method.
[0259] The present application provides a chip. Figure 10 is a schematic diagram of the hardware structure of the chip provided in 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 effects are similar to those of the above-mentioned related embodiments and will not be repeated here.
[0260] The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the above-mentioned method is implemented. The methods described in the above embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the functions 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.
[0261] In one possible implementation, computer-readable media may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium designed to carry or store the desired program code in the form of instructions or data structures and accessible 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 technologies such as infrared, radio and microwave are used to transmit software from a website, server or other remote source, the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave are included in the definition of medium. Disk and optical disk as used herein include optical disk, laser disk, optical disk, digital versatile disk (DVD), floppy disk and Blu-ray disk, where disks generally reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0262] 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.
[0263] The present application embodiment is described with reference to the flow chart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present application.It should be understood that each flow process and / or box in the flow chart and / or block diagram and the combination of the flow process and / or box in the flow chart and / or block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processing unit of general-purpose computer, special-purpose computer, embedded processing machine or other programmable device to produce a machine, so that the instruction executed by the processing unit of computer or other programmable data processing device produces the device for realizing the function specified in one flow chart flow or multiple flows and / or one block or multiple blocks of block diagram.
[0264] The above specific implementation methods further illustrate the objectives, 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 replacements, 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.
Citation Information
Patent Citations
Communication mode switching method, mobile terminal and computer-readable storage medium
CN106961706A
User equipment and network switching method and device thereof
CN114125816A
Satellite communication and 5G communication network automatic switching method, architecture and system
CN115767657A
Method of sharing a SIM card between two masters
US6141564A
Network switching method, and related device
WO2023030152A1
Cited By
Data transmission method, data transmission apparatus, electronic device and storage medium
WO2026158275A1
