Data processing method and apparatus

By combining the geomagnetic sensor and accelerometer of the terminal device with the long-short window ratio method, the system can identify when a user enters a signal isolation space and trigger network switching, thus solving the problem of weak communication signal coverage in elevators and improving the user experience.

WO2026103182A1PCT designated stage Publication Date: 2026-05-21HUAWEI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2025-07-03
Publication Date
2026-05-21

AI Technical Summary

Technical Problem

In signal-isolated spaces such as elevators, the weak coverage of communication signals for terminal devices makes it difficult for existing technologies to efficiently identify and switch networks, resulting in a poor user experience.

Method used

By using the geomagnetic sensor and accelerometer built into the terminal device, combined with the long-short window ratio method, the system detects sudden changes in geomagnetic signals and changes in motion state, identifies when a user enters a signal isolation space, and triggers network switching.

Benefits of technology

It achieves low-power, high-precision signal isolation spatial identification, ensuring fast network switching and improving the user's network experience in weak signal environments such as elevators.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025106842_21052026_PF_FP_ABST
    Figure CN2025106842_21052026_PF_FP_ABST
Patent Text Reader

Abstract

A data processing method, applied to a terminal device, a first sensor and a second sensor being deployed on the terminal device. The method comprises: acquiring first information collected by the first sensor, the first information indicating a geomagnetic signal of the terminal device; acquiring second information collected by the second sensor, the second information indicating a motion state of the terminal device; and when the first information indicates that the geomagnetic signal undergoes a sudden change and shows a downward trend at a first time, and the second information indicates that the terminal device exhibits a decelerating motion trend at a second time, executing an operation corresponding to a first function, wherein the second time is after the first time. In the present application, it can be identified that the terminal device enters a signal-isolated space (for example, an elevator), so that the terminal device can trigger execution of a corresponding operation.
Need to check novelty before this filing date? Find Prior Art

Description

A data processing method and apparatus

[0001] This application claims priority to Chinese Patent Application No. 202411621160.8, filed on November 13, 2024, entitled “A Data Processing Method and Apparatus”, the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of terminals, and more particularly to a data processing method and apparatus thereof. Background Technology

[0003] With the rapid development of mobile communication technology, the signal quality of terminal devices has become an increasingly important concern for users. In some scenarios, signal isolation exists, such as in elevators. As a primary means of vertical transportation, elevators typically use fixed control systems, resulting in relatively limited interaction with external signals and sensors, which can lead to weak signal coverage in certain situations. This phenomenon is particularly noticeable in elevator shafts or inside elevators, where the metal materials and building structure can cause significant signal attenuation.

[0004] Therefore, there is an urgent need to provide a method that can identify when a terminal device enters a space with weak signal coverage, so that the terminal device can perform corresponding operations when it enters such a space. Summary of the Invention

[0005] This application provides a data processing method and related apparatus that can enable the identification of low-power terminal devices entering spaces with weak signal coverage.

[0006] In a first aspect, this application provides a data processing method applied to a terminal device, wherein a first sensor and a second sensor are deployed on the terminal device; the method includes: acquiring first information collected by the first sensor; the first information indicating the geomagnetic signal of the terminal device; acquiring second information collected by the second sensor, the second information indicating the motion state of the terminal device; and performing an operation corresponding to a first function when the first information indicates that the geomagnetic signal undergoes a sudden change and has a downward trend at a first time, and the second information indicates that the terminal device has a deceleration trend at a second time; wherein the second time is after the first time.

[0007] When a user moves from a non-isolated space to an isolated space (e.g., an elevator), for example, from a relatively open space into a surrounding enclosed iron-based structure, the geomagnetic signal (e.g., the magnitude reading of a geomagnetic sensor) will drop significantly. Furthermore, an isolated space (e.g., an elevator) is often a closed space, and when a user carrying a terminal device enters this closed space, there will be a deceleration process, for example, the deceleration process continues until the user is standing still in the elevator. Therefore, if the first information indicates a sudden change in the geomagnetic signal and a downward trend at a first time, and the second information indicates that the terminal device has a deceleration trend at a second time, it can be considered that the terminal device has entered an isolated space (e.g., an elevator), and the terminal device can then trigger the corresponding operation. Moreover, this embodiment of the application relies on data collected by the terminal device's built-in sensors (requiring no network-side or positioning information, and without increasing power consumption) to predict whether a user has entered an isolated space (e.g., an elevator).

[0008] In one possible implementation, the first sensor is a geomagnetic sensor, and the second sensor is a pedometer or an accelerometer.

[0009] In existing technologies, elevator scene prediction suffers from high latency and high power consumption. This application provides a method that can predict when a user enters an elevator and identify the user's elevator entry scenario by relying solely on the built-in sensors magnetometer and accelerometer or pedometer of the terminal device (no network side and positioning information are required, and power consumption is not increased).

[0010] In one possible implementation, the operation corresponding to the first function is the network adjustment operation that occurs after the terminal device initially enters a space with signal isolation.

[0011] In one possible implementation, the network adjustment operation is to switch from using a Wi-Fi network for network communication to using a cellular network for network communication.

[0012] In scenarios where users leave home and enter an elevator, the above methods can be used to identify the user's behavior of leaving home and entering an elevator, and quickly switch the user's WiFi network to a cellular network. This prevents the terminal device from continuously using a WiFi signal that does not actually have a network, thereby achieving a seamless experience when the user uses related apps.

[0013] In one possible implementation, the method further includes: determining, based on the first information, that the geomagnetic signal undergoes a sudden change and exhibits a downward trend at a first time, by using a long-short window ratio method or variance information calculated from the geomagnetic signal.

[0014] In one possible implementation, the motion state is acceleration, and the method further includes: determining, by means of the fluctuation amplitude of the acceleration, that the second information indicates that the terminal device has a deceleration trend at a second time.

[0015] In one possible implementation, the method further includes: performing an operation corresponding to the second function when the first information indicates that the geomagnetic signal undergoes a sudden change and has a downward trend at a first time, and the second information indicates that the terminal device is in a state of weightlessness or overgravity at a third time; wherein the third time is after the first time.

[0016] When a signal-isolated space (e.g., an elevator) undergoes vertical movement (e.g., elevator startup), for example, the geomagnetic signal (e.g., the magnitude reading of a geomagnetic sensor) will initially drop significantly (upon entering the elevator), and after startup, there may be behaviors such as weightlessness or g-force. Therefore, if the first information indicates that the geomagnetic signal undergoes a sudden change and shows a downward trend at a first time, and the second information indicates that the terminal device experiences a state of weightlessness or g-force at a third time, it can be assumed that the signal-isolated space (e.g., the elevator) is undergoing vertical movement (e.g., elevator startup).

[0017] In one possible implementation, the operation corresponding to the second function is: performing a cellular network search at a search frequency greater than a threshold. For example, a search frequency greater than once every three seconds.

[0018] Through the above methods, after the elevator starts, the system can accurately determine whether a user has entered the elevator, and enable the normal community call and cellular data services to be quickly restored in a short time after the user exits the elevator, thus supporting the user's cellular network experience.

[0019] In one possible implementation, the second information indicates that the terminal device is in a state of weightlessness or weightlessness at a third time, including: the second information indicates that the terminal device is in a static state of gravity in the vertical direction (e.g., 9.8G) at a fourth time, and that the terminal device is in a state of weightlessness or weightlessness at a third time, the third time being after the fourth time.

[0020] In one possible implementation, the motion state is acceleration, and the method further includes: determining, based on the acceleration, that the second information indicates that the terminal device is in a state of weightlessness or weightlessness at a third time.

[0021] Secondly, this application provides a data processing apparatus applied to a terminal device, wherein a first sensor and a second sensor are deployed on the terminal device; the apparatus includes:

[0022] The data acquisition module is used to acquire first information collected by the first sensor; the first information indicates the geomagnetic signal of the terminal device; and acquire second information collected by the second sensor, the second information indicating the motion state of the terminal device.

[0023] The terminal control module is configured to perform an operation corresponding to the first function when the first information indicates that the geomagnetic signal undergoes a sudden change and has a downward trend at a first time, and the second information indicates that the terminal device has a deceleration trend at a second time; wherein the second time is after the first time.

[0024] In one possible implementation, the first sensor is a geomagnetic sensor, and the second sensor is a pedometer or an accelerometer.

[0025] In one possible implementation, the operation corresponding to the first function is the network adjustment operation that occurs after the terminal device initially enters a space with signal isolation.

[0026] In one possible implementation, the network adjustment operation is to switch from using a Wi-Fi network for network communication to using a cellular network for network communication.

[0027] In one possible implementation, the terminal control module is further configured to:

[0028] Based on the first information, by using a long-short window ratio device or variance information calculated from the geomagnetic signal, it is determined that the first information indicates that the geomagnetic signal undergoes a sudden change and exhibits a downward trend at a first time.

[0029] In one possible implementation, the motion state is acceleration, and the device further includes:

[0030] The second information, determined by the fluctuation amplitude of the acceleration, indicates that the terminal device exhibits a deceleration trend at a second time.

[0031] In one possible implementation, the terminal control module is further configured to:

[0032] When the first information indicates that the geomagnetic signal undergoes a sudden change and shows a downward trend at a first time, and the second information indicates that the terminal device is in a state of weightlessness or overweight at a third time, the operation corresponding to the second function is executed; wherein, the third time is after the first time.

[0033] In one possible implementation, the operation corresponding to the second function is: to perform a search of the cellular network at a search frequency greater than a threshold.

[0034] In one possible implementation, the second information indicates that the terminal device is in a state of weightlessness or weightlessness at a third time, including:

[0035] The second information indicates that the terminal device is in a static gravity state in the vertical direction at the fourth time, and that the terminal device is in a weightless or overweight state at the third time, which is after the fourth time.

[0036] In one possible implementation, the motion state is acceleration, and the terminal control module is further configured to:

[0037] Based on the acceleration, the second information indicates that the terminal device is in a state of weightlessness or weightlessness at a third time.

[0038] Thirdly, embodiments of this application provide a data processing apparatus, which may include a memory, a processor, and a bus system, wherein the memory is used to store a program, and the processor is used to execute the program in the memory to perform the methods described in the first aspect above and any of its optional methods.

[0039] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to perform the methods described in the first aspect and any of its optional methods.

[0040] Fifthly, embodiments of this application provide a computer program that, when run on a computer, causes the computer to perform the first aspect and any of its optional methods described above.

[0041] Sixthly, this application provides a chip system including a processor for supporting an execution data processing device in implementing the functions involved in the foregoing aspects, such as transmitting or processing data involved in the foregoing methods; or, information. In one possible design, the chip system further includes a memory for storing program instructions and data necessary for the execution device or training device. This chip system may be composed of chips or may include chips and other discrete devices. Attached Figure Description

[0042] Figure 1 is a schematic diagram of an optional hardware structure for the terminal;

[0043] Figure 2 is a flowchart illustrating a data processing method provided in an embodiment of this application;

[0044] Figures 3, 5, 7, and 9 are schematic diagrams of signals provided in the embodiments of this application;

[0045] Figures 4 and 8 illustrate an application scenario provided by an embodiment of this application.

[0046] Figures 6 and 10 are schematic diagrams of an application architecture provided in an embodiment of this application;

[0047] Figure 11 is a schematic diagram of a data processing device provided in an embodiment of this application. Detailed Implementation

[0048] The embodiments of the present invention will now be described with reference to the accompanying drawings. The terminology used in the embodiments section is for illustrative purposes only and is not intended to limit the scope of the invention.

[0049] The embodiments of this application will now be described with reference to the accompanying drawings. Those skilled in the art will recognize that, with technological advancements and the emergence of new scenarios, the technical solutions provided in the embodiments of this application are equally applicable to similar technical problems.

[0050] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms are interchangeable where appropriate; this is merely a way of distinguishing objects with the same attributes in the embodiments of this application. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, so that a process, method, system, product, or apparatus that comprises a series of elements is not necessarily limited to those elements, but may include other elements not explicitly listed or inherent to those processes, methods, products, or apparatuses.

[0051] The terms “substantially,” “about,” and similar terms used herein are used as approximations rather than as terms of degree, and are intended to take into account the inherent biases of measurements or calculations known to those skilled in the art. Furthermore, the use of “may” in describing embodiments of the invention refers to “one or more possible embodiments.” The terms “use,” “using,” and “used” used herein are to be considered synonymous with the terms “utilize,” “utilizing,” and “utilized,” respectively. Additionally, the term “exemplary” is intended to refer to an instance or illustration.

[0052] Referring to Figure 1, it is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of this application.

[0053] Electronic device 100 may include processor 110, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity 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.

[0054] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0055] Processor 110 may include one or more processing units, such as application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.

[0056] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.

[0057] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0058] In some embodiments, the processor 110 may include one or more interfaces. 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, and / or a universal serial bus (USB) interface, etc.

[0059] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C buses. The processor 110 can couple to the touch sensor 180K, charger, flash, camera 193, etc., through different I2C bus interfaces. For example, the processor 110 can couple to the touch sensor 180K through the I2C interface, enabling the processor 110 and the touch sensor 180K to communicate through the I2C bus interface, thereby realizing the touch function of the electronic device 100.

[0060] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface to enable the function of answering phone calls through a Bluetooth headset.

[0061] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via the PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering phone calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0062] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 120 and the wireless communication module 160. For example, the processor 120 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface to enable music playback through Bluetooth headphones.

[0063] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to enable the electronic device 100 to capture images. The processor 120 and the display screen 194 communicate via the DSI interface to enable the electronic device 100 to display images.

[0064] The GPIO interface can be configured via software. It can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to a camera 193, a display screen 194, a wireless communication module 160, an audio module 170, a sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0065] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.

[0066] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0067] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.

[0068] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.

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

[0070] 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 one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.

[0071] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0072] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates 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 processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.

[0073] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. 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 antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0074] 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, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0075] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0076] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.

[0077] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0078] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0079] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0080] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.

[0081] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0082] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0083] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0084] Internal memory 121 can be used to store computer executable program code, which includes instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 110 executes various functional applications and data processing of electronic device 100 by running instructions stored in internal memory 121 and / or instructions stored in memory located in the processor.

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

[0086] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.

[0087] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can correspond to touch operations performed on different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations performed on different areas of the display screen 194. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

[0088] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.

[0089] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with and separate from the electronic device 100. The electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0090] With the rapid development of mobile communication technology, the signal quality of terminal devices has become an increasingly important concern for users. In some scenarios, signal isolation exists, such as in elevators. As a primary means of vertical transportation, elevators typically use fixed control systems, resulting in relatively limited interaction with external signals and sensors, which can lead to weak signal coverage in certain situations. This phenomenon is particularly noticeable in elevator shafts or inside elevators, where the metal materials and building structure can cause significant signal attenuation.

[0091] Therefore, there is an urgent need to provide a method that can identify when a terminal device enters a space with weak signal coverage, so that the terminal device can perform corresponding operations when it enters such a space.

[0092] In existing technologies, for example, the signal isolation space can be an elevator, and accelerometers, pedometers, and network identifiers can be used to identify elevator waiting scenarios. This method requires obtaining the network identifier of whether the user has accessed the elevator fence to determine if the user is waiting for an elevator or entering the elevator. Secondly, the method used to determine elevator entry involves collecting accelerometer and barometer readings, comparing the difference between these two parameters and a target threshold to confirm whether the user has entered the elevator.

[0093] However, this method requires additional network identification for the elevator fence, which requires a large amount of memory space, but the end-side resources are limited. It also requires a barometer, but currently only a few models are equipped with a barometer, so it is not universally applicable. In addition, it does not have a design to recognize the instant when a user enters the elevator.

[0094] This application embodiment can identify users entering elevators (elevator not started) and users entering elevators (elevator started) based on geomagnetic changes and user behavior information. Since the magnetometer and accelerometer of the terminal device work in real time, it mainly uses the fusion of two types of sensors in the user's own mobile phone and other terminal devices to perform fast, high-precision, and low-power elevator entry scene recognition, thereby supporting the user's network experience in elevator weak network conditions.

[0095] To address the aforementioned problems, embodiments of this application provide a data processing method. The data processing method of this application embodiment will be described in detail below with reference to the accompanying drawings.

[0096] Referring to Figure 2, which is a flowchart of a data processing method provided in an embodiment of this application, the data processing method provided in this application may include steps 701 to 703, which will be described in detail below.

[0097] 201. Obtain the first information collected by the first sensor; the first information indicates the geomagnetic signal of the terminal device;

[0098] 202. Obtain the second information collected by the second sensor, wherein the second information indicates the motion state of the terminal device;

[0099] In one possible implementation, the first sensor is a geomagnetic sensor, and the second sensor is a pedometer or an accelerometer.

[0100] In one possible implementation, the motion state can be the user's movement state, such as, but not limited to, acceleration, speed, etc.

[0101] 203. When the first information indicates that the geomagnetic signal undergoes a sudden change and has a downward trend at a first time, and the second information indicates that the terminal device has a deceleration trend at a second time, the operation corresponding to the first function is executed; wherein, the second time is after the first time.

[0102] The so-called downward trend can be understood as: it may not always be declining, but it is declining overall within a certain time window.

[0103] The so-called deceleration trend can be understood as: the speed may not be decelerating continuously, but the overall speed is decreasing within a certain time window.

[0104] When a user moves from a non-isolated space to an isolated space (such as an elevator), for example, from a relatively open space into a surrounding enclosed iron-based structure, the geomagnetic signal (e.g., the magnitude reading of a geomagnetic sensor) will drop significantly. Furthermore, an isolated space (such as an elevator) is often a closed space, and when a user carrying a terminal device enters this closed space, there will be a deceleration process, for example, this deceleration process continues until the user is standing still in the elevator. Therefore, if the first information indicates that the geomagnetic signal changes abruptly and shows a downward trend at a first moment, and the second information indicates that the terminal device shows a deceleration trend at a second moment, it can be considered that the terminal device has entered an isolated space (such as an elevator), and thus the terminal device can trigger the execution of the corresponding operation.

[0105] For example, referring to Figure 3, which shows the change in the magnitude reading of the geomagnetic sensor on the terminal device after the user enters the enclosed space, it can be seen that when the horizontal axis (time) is around 5, the magnitude reading of the geomagnetic sensor decreases by a factor of two.

[0106] Taking an elevator as an example of a signal-isolated space, for terminal communication services, how to quickly and accurately identify elevator scenarios is a key step in optimizing the user's network experience in elevator scenarios (e.g., switching and reconnecting to cellular and Wi-Fi networks). Existing technologies suffer from high latency and high power consumption in elevator scenario prediction. This application provides a method that relies solely on the phone's built-in sensors—magnetometer and accelerometer or pedometer (requiring no network or location information, thus not increasing power consumption) to predict when a user enters an elevator and identify the user's elevator entry scenario.

[0107] Referring to Figure 4, the embodiment of this application can sense the moment when a user carrying a terminal device enters the elevator. It mainly uses a geomagnetic sensor to sense the unique continuous distortion of the geomagnetic field when the user enters the elevator, and then uses an accelerometer to detect the user's deceleration to confirm whether the user has entered the elevator, and finally realizes the user's elevator entry recognition result.

[0108] In one possible implementation, based on the first information, the method of long-short window ratio or the variance information calculated from the geomagnetic signal can be used to determine that the first information indicates that the geomagnetic signal undergoes a sudden change and has a downward trend at a first time.

[0109] In one possible implementation, the magnetic descent point during a user's entry into a signal-isolated space (e.g., an elevator) can be detected using a short-term average / long-term average (SLTA) method. The short-term average / long-term average (SLTA) method is an energy-based approach widely used in signal detection, particularly sensitive to sudden signal changes. Since the elevator entry detection algorithm focuses on the sudden drop in geomagnetic field, unlike traditional SLTA methods that use the average within the short and long windows to calculate the ratio, this embodiment calculates the minimum value within the short window for subsequent calculations. For example, the SLTA formula used in this embodiment is as follows:

[0110] In the formula, mag_norm is the magnitude of the Earth's magnetic field, and i is the current time point. k1 and k2 are some time points before the current time i, and k2 <k1<i。

[0111] The SLTA (Signal Path Aspect) can be calculated using the geomagnetic data modulus (mag_norm) recorded by a magnetometer, and the SLTA value can be used to detect the magnetic descent point during a user's entry into the elevator. For example, the specific steps include:

[0112] (1) Downsample all three-axis data of the magnetometer to 10Hz.

[0113] (2) Calculate the modulus of the magnetometer, calculate the SLTA, and assign different values ​​to the long window and the short window.

[0114] (3) Use SLTA to detect the magnetic descent point during the user's entry into the elevator.

[0115] The sliding window-based variance-based edge detection method is used to find the location with the largest variance, i.e., inflection point 1, and it remains unchanged for several seconds. A timestamp is recorded at this point and kept updated.

[0116] In one possible implementation, the motion state is acceleration, and the second information indicates that the terminal device has a deceleration trend at a second time by measuring the fluctuation amplitude of the acceleration.

[0117] In one possible implementation, the acceleration magnitude envelope can be used to identify the user's deceleration behavior. Here, the user behavior information is mainly combined to determine whether the user decelerates. The specific steps are as follows: (1) Use the SLTA algorithm to obtain the SLTA value for the magnetometer and use SLTA to detect the magnetic descent point during the user's entry into the elevator. (2) After detecting the magnetic descent, start using a sliding window 50 on the bandpass filtered acceleration data. Calculate the range (maximum value minus minimum value) in each window and record the maximum range value during the sliding. Use the ratio of the current window's range to the maximum range value to determine the user's deceleration behavior. (3) If the user decelerates after the magnetic descent, mark the moment. As shown in Figure 5, the leftmost point is the point of magnetic abrupt change, and the rightmost point is the point where a deceleration trend is detected. This is considered the moment of entering the elevator.

[0118] Referring to Figure 6, which is a schematic flowchart of a specific embodiment, including:

[0119] (1) Monitor the average geomagnetic field level of the user's location by using the average geomagnetic data within a long window;

[0120] (2) Monitor the unique continuous geomagnetic distortion when a user enters the elevator by measuring the minimum geomagnetic value within the short window;

[0121] (3) Detect magnetic anomalies caused by entering the elevator by using the ratio of long and short windows (SLTA, dimensionless number);

[0122] (4) Monitor user motion state by measuring the envelope of acceleration within the time window;

[0123] (5) Deceleration of the user can be determined by the ratio between different envelopes.

[0124] At this point, the elevator entry recognition process enters its final judgment, reporting whether the user has entered the elevator (if the elevator has not started).

[0125] In one possible implementation, the operation corresponding to the first function is the network adjustment operation that occurs after the terminal device initially enters a space with signal isolation.

[0126] In one possible implementation, the network adjustment operation is to switch from using a Wi-Fi network for network communication to using a cellular network for network communication.

[0127] In scenarios where users leave home and enter an elevator, the above methods can be used to identify the user's behavior of leaving home and entering an elevator, and quickly switch the user's WiFi network to a cellular network. This prevents the terminal device from continuously using a WiFi signal that does not actually have a network, thereby achieving a seamless experience when the user uses related apps.

[0128] In one possible implementation, the operation corresponding to the second function can also be performed when the first information indicates that the geomagnetic signal undergoes a sudden change and has a downward trend at a first time, and the second information indicates that the terminal device is in a state of weightlessness or overweight at a third time; wherein the third time is after the first time.

[0129] The vertical movement of a user in an elevator inevitably involves behaviors such as feeling overweight or weightless, which are recorded by the terminal device. Therefore, based on the above-mentioned user behavior characteristics and features such as changes in the surrounding magnetic field, the elevator starting scenario is identified by fusing magnetometer sensors from terminal devices such as smartphones with accelerometers or pedometers.

[0130] Before and after entering the elevator, changes in the magnetometer are used to determine if there is a relevant elevator scene. Subsequently, user behaviors, including acceleration and deceleration behaviors and weightlessness behaviors, are extracted to determine the user's elevator scene. Taking entering the elevator as an example, the elevator scene is divided into two stages. The first stage is the scene recognition of the user entering the elevator but the elevator not starting. The second stage is the scene recognition of the elevator starting after the user enters the elevator.

[0131] Referring to Figure 7, Figure 7 shows the change in the magnitude reading of the geomagnetic sensor on the terminal device after the elevator starts.

[0132] Referring to Figure 8, after a user carrying a terminal device enters the elevator, this embodiment of the application uses the instantaneous change "inflection point" of the geomagnetic signal generated when the user enters the elevator, and then uses an accelerometer to determine whether the user experiences weightlessness. By combining the "inflection point" with the weightlessness behavior, it identifies whether the user is currently in the elevator, and by identifying the weightlessness behavior, it identifies whether the elevator has started.

[0133] In one possible implementation, the operation corresponding to the second function can be performed when the second information indicates that the terminal device is in a static gravity state in the vertical direction at a fourth time, and when the terminal device is in a weightless or overweight state at a third time, the third time being after the fourth time.

[0134] In one possible implementation, the motion state is acceleration, and the second information can be used to determine whether the terminal device is in a state of weightlessness or weightlessness at a third time, based on the acceleration.

[0135] In one possible implementation, the operation corresponding to the second function is: performing a cellular network search at a search frequency greater than a threshold. For example, a search frequency greater than once every three seconds.

[0136] Through the above methods, after the elevator starts, the system can accurately determine whether a user has entered the elevator, and enable the normal community call and cellular data services to be quickly restored in a short time after the user exits the elevator, thus supporting the user's cellular network experience.

[0137] For example, referring to Figure 9, for a geomagnetic sensor, a sliding window-based variance-based edge detection method can first be used to find the point of maximum variance, i.e., inflection point 1, and keep it unchanged for several seconds, recording a timestamp and updating it. Then, accelerometer non-integrity waveform detection is used. After detecting a specific waveform change in the elevator, the starting point t1 of the waveform change is recorded. After detecting t1, the magnetometer detection stops. At this time, t1 is the moment the user enters the elevator (the elevator starts).

[0138] Referring to Figure 10, which is a schematic flowchart of a specific embodiment, it includes:

[0139] (1) The exponential moving average algorithm is used to identify user motion states;

[0140] (2) Scene switching detection is performed by combining the "inflection point" algorithm of magnetic field change under user motion state.

[0141] By taking the above two steps, false recognition of non-elevator scenarios is reduced, and these scenarios are used as a marker for switching between elevator entry scenarios and other scenarios, as well as the initial marker for starting elevator entry mode detection.

[0142] For detecting weightlessness, the following method is used:

[0143] (1) Obtain the gravity G of the device user at the moment of rest using the four-constraint method;

[0144] (2) Use acceleration non-integrity waveform detection to identify users’ weightlessness behavior and realize elevator entry recognition.

[0145] At this point, the elevator identification system enters its final state judgment and reports whether the user has entered the elevator.

[0146] It should be understood that the embodiments of this application can be applied not only to the current user communication field, but also to the user positioning needs field. Since the elevator scene is an important point in the indoor positioning map, high-precision elevator scene recognition is helpful for applications such as indoor high-precision map reconstruction and indoor 3D floor recognition.

[0147] Referring to Figure 11, which is a schematic diagram of the structure of a data processing device provided in an embodiment of this application, applied to a terminal device, the terminal device having a first sensor and a second sensor deployed thereon; as shown in Figure 11, a data processing device 1100 provided in an embodiment of this application includes:

[0148] Data acquisition module 1101 is used to acquire first information collected by the first sensor; the first information indicates the geomagnetic signal of the terminal device; and acquire second information collected by the second sensor, the second information indicating the motion state of the terminal device.

[0149] The specific description of the data acquisition module 1101 can be found in the descriptions of steps 201 and 202 in the above embodiments, and the similarities will not be repeated here.

[0150] The terminal control module 1102 is used to perform an operation corresponding to the first function when the first information indicates that the geomagnetic signal changes abruptly and has a downward trend at a first time, and the second information indicates that the terminal device has a deceleration trend at a second time; wherein the second time is after the first time.

[0151] The specific description of the terminal control module 1102 can be found in step 203 of the above embodiment, and the similarities will not be repeated here.

[0152] In one possible implementation, the first sensor is a geomagnetic sensor, and the second sensor is a pedometer or an accelerometer.

[0153] In one possible implementation, the operation corresponding to the first function is the network adjustment operation that occurs after the terminal device initially enters a space with signal isolation.

[0154] In one possible implementation, the network adjustment operation is to switch from using a Wi-Fi network for network communication to using a cellular network for network communication.

[0155] In one possible implementation, the terminal control module is further configured to:

[0156] Based on the first information, by using a long-short window ratio device or variance information calculated from the geomagnetic signal, it is determined that the first information indicates that the geomagnetic signal undergoes a sudden change and exhibits a downward trend at a first time.

[0157] In one possible implementation, the motion state is acceleration, and the device further includes:

[0158] The second information, determined by the fluctuation amplitude of the acceleration, indicates that the terminal device exhibits a deceleration trend at a second time.

[0159] In one possible implementation, the terminal control module is further configured to:

[0160] When the first information indicates that the geomagnetic signal undergoes a sudden change and shows a downward trend at a first time, and the second information indicates that the terminal device is in a state of weightlessness or overweight at a third time, the operation corresponding to the second function is executed; wherein, the third time is after the first time.

[0161] In one possible implementation, the operation corresponding to the second function is: to perform a search of the cellular network at a search frequency greater than a threshold.

[0162] In one possible implementation, the second information indicates that the terminal device is in a state of weightlessness or weightlessness at a third time, including:

[0163] The second information indicates that the terminal device is in a static gravity state in the vertical direction at the fourth time, and that the terminal device is in a weightless or overweight state at the third time, which is after the fourth time.

[0164] In one possible implementation, the motion state is acceleration, and the terminal control module is further configured to:

[0165] Based on the acceleration, the second information indicates that the terminal device is in a state of weightlessness or weightlessness at a third time.

[0166] It should also be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. In addition, in the device embodiment drawings provided in this application, the connection relationship between modules indicates that they have a communication connection, which can be implemented as one or more communication buses or signal lines.

[0167] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware, or it can be implemented by special-purpose hardware including application-specific integrated circuits, special-purpose CPUs, special-purpose memory, special-purpose components, etc. Generally, any function performed by a computer program can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be diverse, such as analog circuits, digital circuits, or special-purpose circuits. However, for this application, software program implementation is more often the preferred implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a computer floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk, or optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, training equipment, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0168] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product.

[0169] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, training device, or data center to another website, computer, training device, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).

Claims

1. A data processing method, characterized by, The method is applied to a terminal device, wherein a first sensor and a second sensor are deployed on the terminal device; the method includes: Acquire first information collected by the first sensor; the first information indicates the geomagnetic signal of the terminal device; Acquire second information collected by the second sensor, the second information indicating the motion state of the terminal device; When the first information indicates that the geomagnetic signal undergoes a sudden change and shows a downward trend at a first time, and the second information indicates that the terminal device shows a deceleration trend at a second time, the operation corresponding to the first function is executed; wherein, the second time is after the first time.

2. The method of claim 1, wherein, The first sensor is a geomagnetic sensor, and the second sensor is a pedometer or an accelerometer.

3. The method according to claim 1 or 2, characterized in that, The operation corresponding to the first function is the network adjustment operation that the terminal device performs after it initially enters a space with signal isolation.

4. The method of claim 3, wherein, The network adjustment operation is to switch from using a Wi-Fi network for network communication to using a cellular network for network communication.

5. The method according to any one of claims 1 to 4, characterized in that, The method further includes: Based on the first information, by using the long-short window ratio method or the variance information calculated from the geomagnetic signal, it is determined that the first information indicates that the geomagnetic signal undergoes a sudden change and exhibits a downward trend at a first time.

6. The method according to any one of claims 1 to 5, characterized in that, The motion state is acceleration, and the method further includes: The second information, determined by the fluctuation amplitude of the acceleration, indicates that the terminal device exhibits a deceleration trend at a second time.

7. The method according to any one of claims 1 to 6, characterized in that, The method further includes: When the first information indicates that the geomagnetic signal undergoes a sudden change and shows a downward trend at a first time, and the second information indicates that the terminal device is in a state of weightlessness or overweight at a third time, the operation corresponding to the second function is executed; wherein, the third time is after the first time.

8. The method of claim 7, wherein, The operation corresponding to the second function is: to perform a cellular network search at a search frequency greater than a threshold.

9. The method according to claim 7 or 8, characterized in that, The second information indicates that the terminal device is in a state of weightlessness or weightlessness at a third time, including: The second information indicates that the terminal device is in a static gravity state in the vertical direction at the fourth time, and that the terminal device is in a weightless or overweight state at the third time, which is after the fourth time.

10. The method according to any one of claims 7 to 9, characterized in that, The motion state is acceleration, and the method further includes: Based on the acceleration, the second information indicates that the terminal device is in a state of weightlessness or weightlessness at a third time.

11. A data processing apparatus, characterized by Applied to a terminal device, wherein a first sensor and a second sensor are deployed on the terminal device; the device includes: The data acquisition module is used to acquire first information collected by the first sensor; the first information indicates the geomagnetic signal of the terminal device; and acquire second information collected by the second sensor, the second information indicating the motion state of the terminal device. The terminal control module is configured to perform an operation corresponding to the first function when the first information indicates that the geomagnetic signal undergoes a sudden change and has a downward trend at a first time, and the second information indicates that the terminal device has a deceleration trend at a second time; wherein the second time is after the first time.

12. The apparatus of claim 11, wherein, The first sensor is a geomagnetic sensor, and the second sensor is a pedometer or an accelerometer.

13. The apparatus of claim 11 or 12, wherein, The operation corresponding to the first function is the network adjustment operation that the terminal device performs after it initially enters a space with signal isolation.

14. The apparatus of claim 13, wherein, The network adjustment operation is to switch from using a Wi-Fi network for network communication to using a cellular network for network communication.

15. The apparatus of any one of claims 11 to 14, wherein, The terminal control module is also used for: Based on the first information, by using a long-short window ratio device or variance information calculated from the geomagnetic signal, it is determined that the first information indicates that the geomagnetic signal undergoes a sudden change and exhibits a downward trend at a first time.

16. The apparatus of any one of claims 11 to 15, wherein, The motion state is acceleration, and the device further includes: The second information, determined by the fluctuation amplitude of the acceleration, indicates that the terminal device exhibits a deceleration trend at a second time.

17. The apparatus of any one of claims 11 to 16, wherein, The terminal control module is also used for: When the first information indicates that the geomagnetic signal undergoes a sudden change and shows a downward trend at a first time, and the second information indicates that the terminal device is in a state of weightlessness or overweight at a third time, the operation corresponding to the second function is executed; wherein, the third time is after the first time.

18. The apparatus of claim 17, wherein, The operation corresponding to the second function is: to perform a cellular network search at a search frequency greater than a threshold.

19. The apparatus of claim 17 or 18, wherein, The second information indicates that the terminal device is in a state of weightlessness or weightlessness at a third time, including: The second information indicates that the terminal device is in a static gravity state in the vertical direction at the fourth time, and that the terminal device is in a weightless or overweight state at the third time, which is after the fourth time.

20. The apparatus of any one of claims 17 to 19, wherein, The motion state is acceleration, and the terminal control module is further used for: Based on the acceleration, the second information indicates that the terminal device is in a state of weightlessness or weightlessness at a third time.

21. A computer storage medium, comprising, The computer storage medium stores one or more instructions, which, when executed by one or more computers, cause the one or more computers to perform the operation of the method according to any one of claims 1-10.

22. A computer program product, characterised in that, Includes computer-readable instructions that, when executed on a computer device, cause the computer device to perform the method as described in any one of claims 1-10.

23. A system, comprising: It includes at least one processor and at least one memory; the processor and the memory are connected via a communication bus and communicate with each other. The at least one memory is used to store code; The at least one processor is used to execute the code to perform the method as described in any one of claims 1-10.

24. A chip, characterized by comprising at least one processing unit and an interface circuit for providing program instructions or data to the at least one processing unit, the at least one processing unit being configured to execute the program instructions to implement the method of any one of claims 1-10.