Communication Control Method, Device, and Storage Medium
By introducing a signal receiving and tuning circuit into the NFC chip of the electronic device, detecting the interrupt signal and waking up the MCU, the problem that electronic devices in the prior art cannot effectively respond to external NFC signals, and the compatibility and power consumption reduction of non-standard timing access control systems are achieved.
Patent Information
- Application Number
- CN202110304302.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-22
- Publication Date
- 2025-06-17
- Estimated Expiration
- 2041-03-22
AI Technical Summary
When existing electronic devices respond to NFC signals from external devices, they consume high power and cannot be compatible with non-standard timing access control systems, resulting in the inability to effectively implement the access control function.
By introducing a signal receiving and tuning circuit into the NFC chip, the interrupt signal is detected and the MCU is awakened, and the resolution of the received signal is eliminated, and the response signal is directly sent to the external device, improving the response efficiency.
It improves the ability of electronic devices to respond to NFC signals of external devices, is compatible with non-standard timing access control systems, reduces power consumption and improves user experience.
Smart Images

Figure CN115119288B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technologies, and in particular, to a communication control method, apparatus, and storage medium. Background Art
[0002] With the wide popularization and application of electronic devices (such as mobile phones, tablet computers, etc.), the number of applications supported by electronic devices is increasing, and the functions are becoming more and more powerful. Electronic devices are developing towards diversification and personalization, becoming indispensable electronic products in users' lives.
[0003] Taking the intelligent access control system of near field communication (NFC) as an example, its power supply is battery-powered (lithium battery or dry battery). As the Reader end of this access control NFC, in order to save power consumption, it will not continuously transmit the incoming communication NFC signal, and may even not follow the international standard ISO1443 protocol. Therefore, the electronic device cannot respond to the NFC signal, and further, the access control function cannot be achieved through NFC. Therefore, the problem of how to improve the ability of the electronic device to respond to the NFC signal of an external device (such as an intelligent access control system) needs to be solved urgently. Summary of the Invention
[0004] Embodiments of this application provide a communication control method, apparatus, and storage medium, which can improve the ability of an electronic device to respond to the NFC signal of an external device.
[0005] In a first aspect, embodiments of this application provide a communication control method, which is applied to an electronic device. The electronic device includes a near field communication (NFC) chip. The NFC chip includes a micro control unit (MCU) and a signal reception tuning circuit. The MCU is connected to the signal reception tuning circuit. The method includes:
[0006] When the MCU is in a sleep state, the signal reception tuning circuit detects whether the signal reception tuning circuit receives an interrupt signal, and the interrupt signal is triggered by receiving a radio frequency signal of an external device;
[0007] When the signal reception tuning circuit detects the interrupt signal, the signal reception tuning circuit sends the interrupt signal to the MCU, and the MCU responds to the interrupt signal to wake up the MCU;
[0008] The MCU sends a response signal to the external device.
[0009] In a second aspect, embodiments of this application provide a communication control apparatus, which is applied to an electronic device. The apparatus includes: a receiving unit, a waking-up unit, and a sending unit, where
[0010] The receiving unit is configured to, when the MCU is in a sleep state, detect whether the signal receiving and tuning circuit receives an interrupt signal through the signal receiving and tuning circuit, where the interrupt signal is triggered by receiving a radio frequency signal of an external device;
[0011] The wake-up unit is configured to, when the signal receiving and tuning circuit detects the interrupt signal, send the interrupt signal to the MCU through the signal receiving and tuning circuit, and wake up the MCU by the MCU responding to the interrupt signal;
[0012] The sending unit is configured to send a response signal to the external device through the MCU.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, where the electronic device includes a Near Field Communication (NFC) chip, the NFC chip includes a micro control unit (MCU) and a signal receiving and tuning circuit, the MCU is connected to the signal receiving and tuning circuit, and the method includes:
[0014] The signal receiving and tuning circuit is configured to, when the MCU is in a sleep state, detect whether the signal receiving and tuning circuit receives an interrupt signal, where the interrupt signal is triggered by receiving a radio frequency signal of an external device;
[0015] The MCU is configured to, when the signal receiving and tuning circuit detects the interrupt signal, the signal receiving and tuning circuit sends the interrupt signal to the MCU, and the MCU responds to the interrupt signal to wake up the MCU;
[0016] The MCU is further configured to send a response signal to the external device.
[0017] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, and the computer program is executed by a processor to implement some or all of the steps described in the method according to the first aspect of the embodiments of the present application.
[0018] In a fifth aspect, an embodiment of the present application provides a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the method according to the first aspect of the embodiments of the present application. The computer program product can be a software installation package.
[0019] Implementing the embodiments of the present application has the following beneficial effects:
[0020] It can be seen that the communication control method, apparatus, and storage medium described in the embodiments of the present application are applied to an electronic device. The electronic device includes a Near Field Communication (NFC) chip. The NFC chip includes a Micro Control Unit (MCU) and a signal receiving tuning circuit. The MCU is connected to the signal receiving tuning circuit. When the MCU is in the sleep state, the signal receiving tuning circuit detects whether an interrupt signal is received. The interrupt signal is triggered by receiving a radio frequency signal from an external device. When the signal receiving tuning circuit detects the interrupt signal, the signal receiving tuning circuit sends the interrupt signal to the MCU. The MCU responds to the interrupt signal to wake up the MCU. The MCU sends a response signal to the external device, eliminating the need for parsing the received signal. Furthermore, the transmission efficiency of the response signal is improved, enabling the external device to receive the response signal in time before turning off its radio frequency field, waiting for NFC signal interaction with the electronic device. Furthermore, it helps to improve the ability of the electronic device to respond to the NFC signal of the external device.
[0021] These aspects or other aspects of the present application will be more clearly understood in the following description of the embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] To more clearly illustrate the technical solutions in the embodiments of the present application or in the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0023] Figure 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
[0024] Figure 2 is a schematic software structure diagram of an electronic device provided by an embodiment of the present application;
[0025] Figure 3A is a hardware structure diagram of an NFC chip provided by an embodiment of the present application;
[0026] Figure 3B is a software architecture diagram of a communication control system provided by an embodiment of the present application;
[0027] Figure 3C is another hardware structure diagram of an NFC chip provided by an embodiment of the present application;
[0028] Figure 4 is a schematic flowchart of a communication control method provided by an embodiment of the present application;
[0029] Figure 5 is a schematic flowchart of another communication control method provided by an embodiment of the present application;
[0030] Figure 6 It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application;
[0031] Figure 7 It is a schematic diagram of the structure of a communication control device provided by an embodiment of the present application. Detailed implementation manners
[0032] In order to enable those skilled in the art to better understand the solution of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0033] The following will be described in detail respectively.
[0034] The terms "first", "second", "third", "fourth", etc. in the specification, claims and drawings of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may alternatively include steps or units not listed, or may alternatively include other steps or units inherent to these processes, methods, products or devices.
[0035] Referring to "embodiment" herein means that a specific feature, structure or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The phrase appears in various places in the specification and does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein may be combined with other embodiments.
[0036] The following explains some terms in the present application to facilitate the understanding of those skilled in the art.
[0037] The electronic device may be a device with near - field communication capabilities. For example, a smart phone, in - vehicle device (such as a navigator, a dash cam, a radar range finder, etc.), customer premise equipment (CPE), wearable device, smart watch, walkie - talkie, smart glasses, wireless Bluetooth headset, computing device, router, or other processing devices connected to a wireless modem, as well as various forms of user equipment (UE), mobile station (MS), virtual reality / augmented reality device, terminal device, etc. In the embodiments of the present application, the external device may also be an electronic device.
[0038] The electronic device may further include smart home devices, and the smart home devices may be at least one of the following: smart speaker, smart camera, smart rice cooker, smart wheelchair, smart massage chair, smart furniture, smart dishwasher, smart TV, smart refrigerator, smart electric fan, smart heater, smart clothes dryer, smart light, smart router, smart switch, smart switch panel, smart humidifier, smart air conditioner, smart door lock, smart door, smart window, smart stove, smart disinfection cabinet, smart toilet, floor - cleaning robot, etc., which are not limited herein.
[0039] In the first part, the software and hardware operating environment of the technical solution disclosed in the present application is introduced as follows.
[0040] As shown in the figure, Figure 1 The structural schematic diagram of the electronic device 100 is shown. 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, antenna 1, 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, a headphone interface 170D, a sensor module 180, a compass 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0041] It can be understood that the structure illustrated in the embodiments of the present application 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 those shown in the figure, or combine certain components, or split certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0042] 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, and / or a neural network processor NPU, etc. Among them, different processing units may be independent components or integrated in one or more processors. In some embodiments, the electronic device 101 may also include one or more processors 110. Among them, the controller may generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions. In some other embodiments, a memory may also be provided in the processor 110 for storing instructions and data. Exemplarily, the memory in the processor 110 may be a cache memory. This memory may store the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the electronic device 101 in processing data or executing instructions.
[0043] 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 SIM card interface, and / or a USB interface, etc. Among them, the USB interface 130 is an interface that conforms to the USB standard specification. Specifically, it may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 101, and can also be used for data transmission between the electronic device 101 and peripheral devices. The USB interface 130 can also be used to connect headphones to play audio through the headphones.
[0044] It can be understood that the interface connection relationships between the modules illustrated in the embodiments of the present application are only illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0045] The charging management module 140 is used to receive a charging input from a charger. Among them, the charger can be a wireless charger or a wired charger. In some embodiments of wired charging, the charging management module 140 can receive the charging input of the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 can receive the wireless charging input through 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 through the power management module 141.
[0046] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives the inputs from the battery 142 and / or the charging management module 140 and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, the wireless communication module 160, etc. The power management module 141 can also be used to monitor parameters such as the battery capacity, the number of battery cycles, and the battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be disposed in the same device.
[0047] 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 modulation and demodulation processor, the baseband processor, etc.
[0048] The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example: the antenna 1 can be multiplexed as the diversity antenna of the wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0049] The mobile communication module 150 may provide solutions for wireless communications including 2G / 3G / 4G / 5G / 6G, etc., which are 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 may receive electromagnetic waves through the antenna 1, filter, amplify, and perform other processing on the received electromagnetic waves, and then transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves through the antenna 1 and radiate it out. In some embodiments, at least some functional modules of the mobile communication module 150 may be disposed 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 disposed in the same device.
[0050] The wireless communication module 160 may provide solutions for wireless communications 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), infrared technology (IR), UWB module, etc., which are applied to the electronic device 100. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves through the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive the signals to be transmitted from the processor 110, perform frequency modulation and amplification on them, and convert them into electromagnetic waves through the antenna 2 and radiate them out.
[0051] The electronic device 100 realizes the display function through the GPU, the display screen 194, and the application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. The GPU is used to execute mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
[0052] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini light-emitting diode (miniLED), a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or more display screens 194.
[0053] The electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, etc.
[0054] The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and light passes through the lens and is transmitted to the camera photosensitive element. The optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize parameters such as the exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0055] The camera 193 is used to capture static images or videos. An object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into a standard RGB, YUV, etc. format image signal. In some embodiments, the electronic device 100 may include one or more cameras 193.
[0056] 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, etc.
[0057] The video codec is used to compress or decompress digital videos. The electronic device 100 can support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple coding formats, such as: Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0058] The NPU is a neural-network (NN) computing processor. By learning from the structure of biological neural networks, such as learning from the transmission mode between human brain neurons, it can quickly process input information and can also continuously self-learn. Through the NPU, applications such as intelligent cognition of the electronic device 100 can be realized, such as: image recognition, face recognition, voice recognition, text understanding, etc.
[0059] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. For example, files such as music and videos are saved in the external memory card.
[0060] The internal memory 121 can be used to store one or more computer programs, and the one or more computer programs include instructions. The processor 110 can execute the method for displaying page elements provided in some embodiments of this application, as well as various applications and data processing, by running the above instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area. Among them, the program storage area can store an operating system; the program storage area can also store one or more applications (such as a gallery, contacts, etc.). The data storage area can store data created during the use of the electronic device 101 (such as photos, contacts, etc.). In addition, the internal memory 121 can include high-speed random access memory, and can also include non-volatile memory, such as one or more disk storage components, flash memory components, universal flash storage (UFS), etc. In some embodiments, the processor 110 can make the electronic device 101 execute the method for displaying page elements provided in the embodiments of this application, as well as other applications and data processing, by running the instructions stored in the internal memory 121, and / or the instructions stored in the memory provided in the processor 110. The electronic device 100 can implement audio functions through the audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor, etc. Such as music playback, recording, etc.
[0061] The sensor module 180 can include a pressure sensor 180A, a gyroscope sensor 180B, a barometric 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.
[0062] Among them, the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0063] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., X, Y, and Z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
[0064] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0065] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
[0066] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0067] The temperature sensor 180J is used to detect the temperature. In some embodiments, the electronic device 100 utilizes the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of the processor near the temperature sensor 180J in order to reduce power consumption and implement thermal protection. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent abnormal shutdown of the electronic device 100 caused by low temperature. In some other embodiments, when the temperature is lower than yet another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
[0068] The touch sensor 180K, also known as the "touch panel". The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also known as the "touch screen". The touch sensor 180K is used to detect touch operations acting thereon or nearby. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In some other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, at a different position from the display screen 194.
[0069] Exemplarily, Figure 2 A software structure block diagram of the electronic device 100 is shown. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers is through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer. The application layer can include a series of application packages.
[0070] Such as Figure 2 As shown, the application layer can include applications such as the camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
[0071] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions.
[0072] Such as Figure 2 As shown, the application framework layer can include the window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
[0073] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0074] The content provider is used to store and obtain data, and make this data accessible to application programs. The data can include videos, images, audio, incoming and outgoing calls, browsing history and bookmarks, phone books, etc.
[0075] The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build application programs. The display interface can be composed of one or more views. For example, a display interface including a text message notification icon can include a view for displaying text and a view for displaying pictures.
[0076] The phone manager is used to provide the communication function of the electronic device 100. For example, the management of call states (including answering, hanging up, etc.).
[0077] The resource manager provides various resources for application programs, such as localized strings, icons, pictures, layout files, video files, etc.
[0078] The notification manager enables application programs to display notification information in the status bar. It can be used to convey notification-type messages, which can automatically disappear after a short stay without user interaction. For example, the notification manager is used to inform that the download is completed, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as the notification of a background-running application program, and can also be a notification that appears on the screen in the form of a dialogue window. For example, it prompts text information in the status bar, emits a prompt tone, the electronic device vibrates, the indicator light flashes, etc.
[0079] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for the scheduling and management of the Android system.
[0080] The core libraries contain two parts: one part is the functional functions that need to be called by the Java language, and the other part is the core libraries of Android.
[0081] The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as the management of object life cycles, stack management, thread management, security and exception management, and garbage collection.
[0082] The system library may include multiple functional modules. For example: a surface manager, media libraries, a 3D graphics processing library (such as OpenGL ES), a 2D graphics engine (such as SGL), etc.
[0083] The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
[0084] The media libraries support the playback and recording of multiple common audio and video formats, as well as static image files, etc. The media libraries can support multiple audio and video coding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0085] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc.
[0086] The 2D graphics engine is a drawing engine for 2D drawing.
[0087] The kernel layer is the layer between hardware and software. The kernel layer at least includes a display driver, a camera driver, an audio driver, and a sensor driver.
[0088] For the specific structures of the electronic device or external device in the embodiments of this application, reference may be made to Figure 1 or Figure 2 the structure or function of the electronic device described as such.
[0089] In the second part, the communication control method and device disclosed in the embodiments of this application are introduced as follows. Only a mobile phone is taken as an example for illustration below.
[0090] In the related art, for the interaction between a mobile phone and an access control, there is only an interval of about 788 μs between FC_Detect and the wake-up instruction (WUPA), while the ISO14443 protocol stipulates that this time interval should be at least 5 ms. This kind of access control system with such an interval time is a relatively extreme case. In addition, it is also found that for some access control systems on the market, this interval time is between 1 ms and 5 ms. The reason why the access control system shortens the time interval is for power consumption reduction, but this does not conform to the international standard. Currently, there are two implementation methods for the NFC chip on the mobile phone side: implementing according to the international standard, for the situation where the interval between FC_Detect and WUPA is less than 5 ms, it will not respond and ignore this instruction; not following the international standard and taking the market usage situation as the criterion, trying to respond to the access control system with an interval time less than 5 ms. However, due to the limited processing capacity of the NFC chip on the mobile phone side, currently, it can at most respond to the access control system with an interval time of more than 1.2 ms. For the situation with an interval time of 788 μs as mentioned above, it still cannot respond. In the market, there is even an extreme case with an interval time of 500 μs. Generally speaking, no matter which of the above methods cannot well be compatible with the non-standard timing access control systems on the current market.
[0091] Taking the mobile phone as an example, in the related art, the phenomenon that it cannot respond to the performance with an interval time less than 1.2 ms is that when the mobile phone receives an external radio frequency field, the NFC chip on the mobile phone side is awakened from the sleep state to the active state, and the internal detection circuit, A / D module, and signal processing circuit are started. This series of actions require 1.2 ms. When the access control reader (Reader) sends the wake-up instruction (WUPA) within 1.2 ms (such as 788 μs as mentioned above), the mobile phone NFC chip cannot respond. Then the Reader turns off the video field, and still sends WUPA with an interval of 788 μs after the next activation of the radio frequency field, and the mobile phone still cannot respond. This goes on in a cycle, thus resulting in the mobile phone not being able to well be compatible with the non-standard timing access control systems on the current market. For this part of users using these access control systems, they cannot use the mobile phone to swipe the access control.
[0092] In the related art, the hardware architecture of the NFC on the mobile phone side is as Figure 3A shown. In the hardware block diagram, the part within the dashed box is the internal structure of the NFC chip. External to the chip, a matching circuit (Matching) and an antenna (Ant.) can also be configured to form a complete NFC hardware circuit.
[0093] Among them, the inside of the NFC chip mainly includes a Digital Signal Processor (DSP), a Microcontroller Unit (MCU), a Power Management Unit (PMU), Memory, a Clock module, and a Radio Frequency (RF) transceiver path. MCU: Responsible for the transceiver control of RF signals and executing the NFC operation logic, such as when to receive signals, when to send signals, and completing data communication with the Application Processor (AP) of the main platform of the mobile phone; DSP: Mainly responsible for complex signal processing and relatively complex operations, such as the logical operation of selecting cards from multiple cards in the mobile phone; Power Management Unit PMU: Responsible for supplying power to each module of the chip; Clock: Provides clocks for digital processing modules such as MCU and DSP; Memory: A storage unit containing memories of Flash and RAM types; Transmit Signal Encoding Module TX CODEC: A module used for encoding signals to be transmitted; Digital-to-Analog Conversion Module D / A: Used to convert digital signals into analog signals; Waveform Shaping Module Waveforming, which is used to implement the function of carrier superposition and superimpose the analog signal to be transmitted onto the carrier signal; Power Amplification Module PA, which is used to amplify the output signal to obtain a farther transmission distance; Signal Reception Tuning Circuit RX Tuning: Detects the received signal. In order to adapt to the input of signals with different energy levels externally, the internal reception circuit usually needs to be adjusted, and this adjustment work is completed in this module; Analog-to-Digital Conversion Module A / D, which is used to convert analog signals into digital signals; Receive Signal Decoding Module RX CODEC, which is used to receive and decode the received signal.
[0094] In specific implementation, as Figure 3B shown, Figure 3B is the software architecture diagram of the communication control system between the electronic device and the external device. Communication between the electronic device and the external device is achieved through NFC technology. The process of mobile phone NFC is as follows: When the external device (Reader) emits an NFC field strength, after the NFC antenna on the mobile phone side receives the signal, it passes through the RX reception path and finally inputs to the MCU, waking up the MCU and the DSP. Then, the MCU detects the subsequent instructions of the Reader and responds according to the instructions. Since the time-consuming part of the whole process is mainly the parsing of the received signal by the MCU and the waking up of the DSP, and moreover, the time-consuming for turning on the PA on the signal transmission path is also relatively long, as a result, the electronic device cannot respond to the external device in a timely manner.
[0095] To save time and be compatible with the requirements of non-standard access control timing. As Figure 3C shown, in Figure 3ABased on this, first of all, two additional paths are added to the hardware. One is on the receiving path, where the RX Tuning module outputs a signal to the MCU (without passing through the A / D and RX CODEC) to wake up the MCU. The other is on the TX path, where an additional path is added from Waveforming directly to the matching circuit (without passing through the PA). In the specific implementation, when the MCU receives the wake-up signal output from the RX path, it immediately sends a response instruction (ATQA), which passes through the TX CODEC, D / A module, and Waveforming, and then outputs to the matching circuit and is radiated out through the antenna. Since the parsing of the received signal, the wake-up of the DSP, and the startup of the PA are omitted in the middle, and moreover, sending ATQA is the first thing to do after the MCU is woken up, and the ATQA signal is output as soon as possible. After that, when the MCU is in the wake-up state, it closes the interrupt event of RX Tuning, normally parses the received signal, and turns on the PA to output a high-energy signal. In this way, it can quickly respond to external devices to remind external devices to wait for the signal interaction between the electronic device and the external device to be executed.
[0096] Based on Figure 3C The electronic device shown can be used to implement the following functions:
[0097] The signal receiving and tuning circuit is used to detect whether the signal receiving and tuning circuit receives an interrupt signal when the MCU is in the sleep state, and the interrupt signal is triggered by receiving a radio frequency signal from an external device;
[0098] The MCU is used to wake up the MCU in response to the interrupt signal when the signal receiving and tuning circuit detects the interrupt signal and the signal receiving and tuning circuit sends the interrupt signal to the MCU;
[0099] The MCU is also used to send a response signal to the external device.
[0100] As Figure 4 shown, Figure 4 is a schematic flowchart of a communication control method provided by an embodiment of the present application, which is applied to an electronic device. The electronic device may include as Figure 3C shown. The electronic device includes a near field communication (NFC) chip. The NFC chip includes a micro control unit (MCU) and a signal receiving and tuning circuit. The MCU is connected to the signal receiving and tuning circuit. The method includes:
[0101] 401. When the MCU is in the sleep state, the signal receiving and tuning circuit detects whether the signal receiving and tuning circuit receives an interrupt signal, and the interrupt signal is triggered by receiving a radio frequency signal from an external device.
[0102] In an embodiment of the present application, an electronic device may include an NFC chip, which can be used to receive a radio frequency signal sent by an external device. The MCU of the electronic device may be in a sleep state, and the external device may act as a Reader to transmit a radio frequency signal outward. Furthermore, after the electronic device approaches the radio frequency field of the external device, it can detect whether the signal reception tuning circuit receives an interrupt signal through the signal reception tuning circuit, and the interrupt signal is triggered by receiving the radio frequency signal of the external device.
[0103] 402. When the signal reception tuning circuit detects the interrupt signal, the signal reception tuning circuit sends the interrupt signal to the MCU, and the MCU responds to the interrupt signal to wake up the MCU.
[0104] Among them, in an embodiment of the present application, when the signal reception tuning circuit detects an interrupt signal, the signal reception tuning circuit sends the interrupt signal to the MCU through a directly connected path between the MCU and the signal reception tuning circuit, and the MCU responds to the interrupt signal to wake up the MCU. That is, the interrupt signal does not need to go through operations such as analog-to-digital conversion and decoding, but only realizes a triggering function. In this way, the MCU can quickly respond to the interrupt signal to achieve a quick wake-up.
[0105] 403. The MCU sends a response signal to the external device.
[0106] Among them, after being woken up, the MCU can send a response signal to the external device in a timely manner to notify the external device that the electronic device has received the radio frequency signal and to inform the external device to wait for interaction with the electronic device. The MCU can directly send a response signal to the external device through the transmission signal encoding module, the digital-to-analog conversion module, and the waveform shaping module without passing through the PA.
[0107] Optionally, in step 403 above, the MCU sending a response signal to the external device includes the following steps:
[0108] Sending a response signal to the external device through the MCU at a preset time interval.
[0109] Among them, the preset time interval can be set by the user himself or default by the system. For example, the preset time interval can be an empirical value.
[0110] In the embodiments of the present application, since no parsing is performed on the received signal at the beginning, but instead a response signal ATQA is directly sent in response, this response message may not be after the WUPA instruction (normally, the Reader first sends the WUPA instruction, and then the mobile phone returns the ATQA response), resulting in the Reader not recognizing this ATQA response. Therefore, when sending ATQA, a function of cyclic timed sending can be set, for example, cycling every 2 ms and sending the ATQA response every 200 ms. In this way, it can be ensured that the Reader can recognize the response signal.
[0111] Optionally, the following steps may further be included:
[0112] A1. Parse the interrupt signal through the MCU to obtain the target identification information of the external device;
[0113] A2. Determine the reference time interval corresponding to the target identification information according to the mapping relationship between the preset identification information and the time interval;
[0114] A3. Determine the NFC signal change curve between the electronic device and the external device;
[0115] A4. Sample the NFC signal change curve to obtain a plurality of sampling points;
[0116] A5. Determine the target mean square error based on the plurality of sampling points;
[0117] A6. Determine the target first adjustment coefficient corresponding to the target mean square error according to the mapping relationship between the preset mean square error and the first adjustment coefficient;
[0118] A7. Determine the target distance between the electronic device and the external device;
[0119] A8. Determine the target second adjustment coefficient corresponding to the target distance according to the mapping relationship between the preset distance and the second adjustment coefficient;
[0120] A9. Adjust the reference time interval according to the target first adjustment coefficient and the target second adjustment coefficient to obtain the preset time interval.
[0121] Among them, in the embodiments of the present application, the electronic device can pre-store the mapping relationship between the preset identification information and the time interval, the mapping relationship between the preset mean square deviation and the first adjustment coefficient, and the mapping relationship between the preset distance and the second adjustment coefficient. Among them, the greater the distance, the smaller the second adjustment coefficient; the smaller the distance, the greater the second adjustment coefficient. The value ranges of the first adjustment coefficient and the second adjustment coefficient can be set by the user themselves or defaulted by the system. For example, the value range of the first adjustment coefficient can be -0.1 to 0.1, and the value range of the second adjustment coefficient can be 0 to 1.
[0122] In a specific implementation, the electronic device can parse the interrupt signal through the MCU to obtain the target identification information of the external device. In the embodiments of the present application, the target identification information can be at least one of the following: IP address, MAC address, device model, device manufacturer, etc., which are not limited herein. Furthermore, the electronic device can determine the reference time interval corresponding to the target identification information according to the mapping relationship between the preset identification information and the time interval, and can also determine the NFC signal change curve between the electronic device and the external device, which can be the NFC signal change curve within a period of time.
[0123] Furthermore, the electronic device can uniformly sample or randomly sample the NFC signal change curve to obtain multiple sampling points, determine the target mean square deviation based on the multiple sampling points, then determine the target first adjustment coefficient corresponding to the target mean square deviation according to the mapping relationship between the preset mean square deviation and the first adjustment coefficient, and determine the target distance between the electronic device and the external device, and then determine the target second adjustment coefficient corresponding to the target distance according to the mapping relationship between the preset distance and the second adjustment coefficient. Finally, the reference time interval can be adjusted according to the target first adjustment coefficient and the target second adjustment coefficient to obtain the preset time interval. For example, the preset time interval can be determined according to the following formula:
[0124] Preset time interval = reference time interval * (1 + target first adjustment coefficient) * target second adjustment coefficient
[0125] Furthermore, the reference time interval corresponding to it can be determined according to the identification information of the external device. In addition, the mean square deviation reflects the signal stability, and the reference time interval can be adjusted through the signal stability of the NFC signal and the distance to obtain the time interval corresponding to the actual environment. Furthermore, the time interval can be accurately determined. On the one hand, the device power consumption can be reduced, and on the other hand, the ability of the electronic device to respond to the NFC signal of the external device can be improved. Furthermore, it can ensure that the NFC communication can proceed normally and improve the user experience.
[0126] Optionally, the following steps can also be included:
[0127] After waking up the MCU, the signal receiving and tuning circuit turns off the interrupt function.
[0128] In a specific implementation, after the MCU is woken up, the signal receiving and tuning circuit can turn off the interrupt function, that is, when the MCU is in the wake-up state, the signal receiving and tuning circuit does not receive other interrupt signals, or does not generate interrupt signals.
[0129] Optionally, the NFC chip further includes a transmission signal encoding module, a digital-to-analog conversion module, and a waveform shaping module. Among them, the MCU is connected to the transmission signal encoding module, the transmission signal encoding module is connected to the digital-to-analog conversion module, and the digital-to-analog conversion module is connected to the waveform shaping module. Sending a response signal to the external device through the MCU includes:
[0130] The MCU sequentially radiates the response signal to the outside through the transmission signal encoding module, the digital-to-analog conversion module, and the waveform shaping module.
[0131] In a specific implementation, the NFC chip may further include a transmission signal encoding module, a digital-to-analog conversion module, and a waveform shaping module. Among them, the MCU is connected to the transmission signal encoding module, the transmission signal encoding module is connected to the digital-to-analog conversion module, and the digital-to-analog conversion module is connected to the waveform shaping module. The MCU can sequentially radiate the response signal to the outside through the transmission signal encoding module, the digital-to-analog conversion module, and the waveform shaping module, that is, there is no need to activate the power amplifier module PA, so as to quickly respond to the radio frequency signal of the external device, that is, it can quickly notify the external device that the electronic device has responded to its radio frequency signal.
[0132] Optionally, the NFC chip further includes a digital signal processor DSP, the MCU is connected to the DSP, and the method further includes:
[0133] The MCU wakes up the DSP, and the DSP executes a preset polling instruction.
[0134] In a specific implementation, the preset polling instruction can be set by the user himself or be the system default. The preset polling instruction can be a single instruction or a sequence of instructions. Different functions can correspond to different polling instructions. For example, when implementing an unlocking function between the electronic device and the external device, the preset polling instruction can correspond to the relevant polling instructions for the unlocking function. Another example is that when implementing a payment function between the electronic device and the external device, the preset polling instruction can correspond to the relevant polling instructions for the payment function. Another example is that when implementing card swiping (such as for buses or subways) between the electronic device and the external device, the preset polling instruction can correspond to the relevant polling instructions for card swiping.
[0135] Optionally, the NFC chip further includes a received signal decoding module and an analog-to-digital conversion module. The MCU is connected to the received signal decoding module, the received signal decoding module is connected to the analog-to-digital conversion module, and the analog-to-digital conversion module is connected to the signal receiving and tuning circuit. The method further includes:
[0136] The signal receiving and tuning circuit receives a signal sent by the external device and transmits the signal to the MCU through the analog-to-digital conversion module and the received signal decoding module.
[0137] In a specific implementation, the NFC chip may further include a received signal decoding module and an analog-to-digital conversion module. The MCU is connected to the received signal decoding module, the received signal decoding module is connected to the analog-to-digital conversion module, and the analog-to-digital conversion module is connected to the signal receiving and tuning circuit. After the MCU sends a response signal to the external device, the external device can receive the response signal. Furthermore, the external device and the electronic device can interact with each other to implement various functions, which may be at least one of the following: unlocking function, payment function, card swiping function, ranging function, etc., which are not limited herein. The external device can send an interaction signal to the electronic device, and the electronic device can receive the signal sent by the external device through the signal receiving and tuning circuit, and perform analog-to-digital conversion on the signal through the analog-to-digital conversion module and decoding operation through the received signal decoding module, and then transmit the decoded signal to the MCU.
[0138] Optionally, the NFC chip further includes a power amplifier module PA, and the waveform shaping module is also connected to the PA. The method further includes:
[0139] Turn on the PA to send a signal within a preset energy range to the external device through the PA.
[0140] In a specific implementation, the preset energy range can be set by the user or default by the system. When the MCU is in a sleep state, the PA can be in an off state.
[0141] The NFC chip may further include a power amplifier module PA, and the waveform shaping module is also connected to the PA. After the response signal is sent, the PA can be started. The PA can enhance the signal, and then send a signal within a preset energy range to the external device through the PA.
[0142] Based on the above embodiments of the present application, taking the access control function as an example, the embodiments of the present application can achieve compatibility with non-standard access controls with high requirements for response time, improving the user experience.
[0143] It can be seen that the communication control method described in the embodiments of the present application is applied to an electronic device. The electronic device includes a Near Field Communication (NFC) chip. The NFC chip includes a Micro Control Unit (MCU) and a signal receiving tuning circuit. The MCU is connected to the signal receiving tuning circuit. When the MCU is in a sleep state, the signal receiving tuning circuit detects whether the signal receiving tuning circuit receives an interrupt signal. The interrupt signal is triggered by receiving a radio frequency signal from an external device. When the signal receiving tuning circuit detects the interrupt signal, the signal receiving tuning circuit sends the interrupt signal to the MCU, and the MCU responds to the interrupt signal to wake up the MCU. The MCU sends a response signal to the external device, omitting the parsing of the received signal. Furthermore, the transmission efficiency of the response signal is improved, enabling the external device to receive the response signal in time before turning off its radio frequency field to wait for NFC signal interaction with the electronic device. Furthermore, it helps to improve the ability of the electronic device to respond to the NFC signal of the external device.
[0144] Consistent with the above Figure 4 shown embodiment, please refer to Figure 5 , Figure 5 is a schematic flowchart of a communication control method provided by an embodiment of the present application. As shown in the figure, it is applied to an electronic device. The electronic device includes a Near Field Communication (NFC) chip. The NFC chip includes a Micro Control Unit (MCU) and a signal receiving tuning circuit. The MCU is connected to the signal receiving tuning circuit. This communication control method includes:
[0145] 501. When the MCU is in a sleep state, the signal receiving tuning circuit detects whether the signal receiving tuning circuit receives an interrupt signal. The interrupt signal is triggered by receiving a radio frequency signal from an external device.
[0146] 502. When the signal receiving tuning circuit detects the interrupt signal, the signal receiving tuning circuit sends the interrupt signal to the MCU, and the MCU responds to the interrupt signal to wake up the MCU.
[0147] 503. The MCU sends a response signal to the external device.
[0148] 504. The signal receiving tuning circuit turns off the interrupt function. The signal receiving tuning circuit receives the signal sent by the external device and transmits the signal to the MCU through the analog-to-digital conversion module and the received signal decoding module.
[0149] 505. The MCU executes the operation corresponding to the signal sent by the external device and sends another response signal within a preset energy range to the external device through the PA.
[0150] Among them, the specific descriptions of the above steps 501-505 can be referred to Figure 4 the corresponding steps of the described communication control method, which will not be elaborated here.
[0151] It can be seen that the communication control method described in the embodiments of the present application is applied to an electronic device. The electronic device includes a Near Field Communication (NFC) chip. The NFC chip includes a Micro Control Unit (MCU) and a signal receiving tuning circuit. The MCU is connected to the signal receiving tuning circuit. When the MCU is in the sleep state, the signal receiving tuning circuit detects whether the signal receiving tuning circuit receives an interrupt signal. The interrupt signal is triggered by receiving a radio frequency signal from an external device. When the signal receiving tuning circuit detects the interrupt signal, the signal receiving tuning circuit turns off the interrupt function. The signal receiving tuning circuit receives the signal sent by the external device, and transmits the signal to the MCU through an analog-to-digital conversion module and a received signal decoding module. The MCU executes the operation corresponding to the signal sent by the external device, and sends another response signal within a preset energy range to the external device through a PA. The signal receiving tuning circuit sends the interrupt signal to the MCU, and the MCU responds to the interrupt signal to wake up the MCU. The MCU sends a response signal to the external device, omitting the parsing of the received signal. Furthermore, the transmission efficiency of the response signal is improved, so that the external device can receive the response signal in time before turning off its radio frequency field, waiting for NFC signal interaction with the electronic device. Furthermore, it helps to improve the ability of the electronic device to respond to the NFC signal of the external device.
[0152] Consistent with the above embodiments, please refer to Figure 6 , Figure 6 which is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As shown in the figure, the electronic device includes a processor, a memory, a communication interface, and one or more programs. The electronic device includes a Near Field Communication (NFC) chip. The NFC chip includes a Micro Control Unit (MCU) and a signal receiving tuning circuit. The MCU is connected to the signal receiving tuning circuit. The above one or more programs are stored in the above memory and are configured to be executed by the above processor. In the embodiments of the present application, the above programs include instructions for performing the following steps:
[0153] When the MCU is in the sleep state, the signal receiving tuning circuit detects whether the signal receiving tuning circuit receives an interrupt signal. The interrupt signal is triggered by receiving a radio frequency signal from an external device;
[0154] When the signal receiving tuning circuit detects the interrupt signal, the signal receiving tuning circuit sends the interrupt signal to the MCU, and the MCU responds to the interrupt signal to wake up the MCU;
[0155] The MCU sends a response signal to the external device.
[0156] Optionally, in terms of the MCU sending a response signal to the external device, the above program includes instructions for performing the following steps:
[0157] The MCU sends a response signal to the external device at a preset time interval through the MCU.
[0158] It can be seen that in the electronic device described in the embodiments of the present application, the electronic device includes a Near Field Communication (NFC) chip. The NFC chip includes a microcontroller unit (MCU) and a signal receiving and tuning circuit. The MCU is connected to the signal receiving and tuning circuit. When the MCU is in a sleep state, the signal receiving and tuning circuit detects whether the signal receiving and tuning circuit receives an interrupt signal. The interrupt signal is triggered by receiving a radio frequency signal from an external device. When the signal receiving and tuning circuit detects the interrupt signal, the signal receiving and tuning circuit sends the interrupt signal to the MCU. The MCU responds to the interrupt signal to wake up the MCU. The MCU sends a response signal to the external device, omitting the parsing of the received signal. Furthermore, the transmission efficiency of the response signal is improved, enabling the external device to receive the response signal in time before turning off its radio frequency field, so as to wait for NFC signal interaction with the electronic device. Furthermore, it helps to improve the ability of the electronic device to respond to the NFC signal of the external device.
[0159] Optionally, the above program further includes instructions for performing the following steps:
[0160] After waking up the MCU, the interrupt function is turned off through the signal receiving and tuning circuit.
[0161] Optionally, the NFC chip further includes a transmission signal encoding module, a digital-to-analog conversion module, and a waveform shaping module. Among them, the MCU is connected to the transmission signal encoding module, the transmission signal encoding module is connected to the digital-to-analog conversion module, and the digital-to-analog conversion module is connected to the waveform shaping module. In terms of the MCU sending a response signal to the external device, the above program includes instructions for performing the following steps:
[0162] The MCU radiates the response signal to the outside through the transmission signal encoding module, the digital-to-analog conversion module, and the waveform shaping module in sequence.
[0163] Optionally, the NFC chip further includes a Digital Signal Processor (DSP). The MCU is connected to the DSP. The above program further includes instructions for performing the following steps:
[0164] The MCU wakes up the DSP, and the DSP executes a preset polling instruction.
[0165] Optionally, the NFC chip further includes a received signal decoding module and an analog-to-digital conversion module. The MCU is connected to the received signal decoding module, the received signal decoding module is connected to the analog-to-digital conversion module, and the analog-to-digital conversion module is connected to the signal receiving and tuning circuit. The above program further includes instructions for performing the following steps:
[0166] The signal receiving and tuning circuit receives a signal sent by the external device and transmits the signal to the MCU through the analog-to-digital conversion module and the received signal decoding module.
[0167] Optionally, the NFC chip further includes a power amplifier module PA. The waveform shaping module is also connected to the PA. The above program further includes instructions for performing the following steps:
[0168] Turn on the PA to send a signal within a preset energy range to the external device through the PA.
[0169] The above mainly introduces the solution of the embodiment of the present application from the perspective of the execution process on the method side. It can be understood that in order for an electronic device to implement the above functions, it includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should easily realize that, combining the units and algorithm steps of each example described in the embodiments provided in this article, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the way of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0170] The embodiments of the present application can divide the functional units of the electronic device according to the above method examples. For example, each functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. It should be noted that the division of units in the embodiments of the present application is illustrative, only a logical function division, and there may be other division methods in actual implementation.
[0171] Figure 7 It is a block diagram of the functional unit composition of the communication control device 700 involved in the embodiments of the present application. The communication control device 700 is applied to an electronic device. The electronic device includes a near field communication (NFC) chip. The NFC chip includes a micro control unit (MCU) and a signal receiving and tuning circuit. The MCU is connected to the signal receiving and tuning circuit. The device 700 includes: a receiving unit 701, a wake-up unit 702, and a sending unit 703, where
[0172] The receiving unit 701 is configured to, when the MCU is in the sleep state, detect whether the signal receiving and tuning circuit receives an interrupt signal through the signal receiving and tuning circuit, where the interrupt signal is triggered by receiving a radio frequency signal of an external device;
[0173] The wake-up unit 702 is configured to, when the signal receiving and tuning circuit detects the interrupt signal, send the interrupt signal to the MCU through the signal receiving and tuning circuit, and wake up the MCU by the MCU responding to the interrupt signal;
[0174] The sending unit 703 is configured to send a response signal to the external device through the MCU.
[0175] It can be seen that the communication control device described in the embodiment of the present application is applied to an electronic device. The electronic device includes a near field communication (NFC) chip. The NFC chip includes a micro control unit (MCU) and a signal receiving and tuning circuit. The MCU is connected to the signal receiving and tuning circuit. When the MCU is in the sleep state, the signal receiving and tuning circuit detects whether the signal receiving and tuning circuit receives an interrupt signal, where the interrupt signal is triggered by receiving a radio frequency signal of an external device. When the signal receiving and tuning circuit detects the interrupt signal, the signal receiving and tuning circuit sends the interrupt signal to the MCU, and the MCU responds to the interrupt signal to wake up the MCU. The MCU sends a response signal to the external device, omitting the parsing of the received signal. Furthermore, the sending efficiency of the response signal is improved, so that the external device can receive the response signal in time before turning off its radio frequency field to wait for NFC signal interaction with the electronic device. Furthermore, it helps to improve the ability of the electronic device to respond to the NFC signal of the external device.
[0176] Optionally, in terms of the MCU sending a response signal to the external device, the sending unit 703 is specifically configured to:
[0177] Send a response signal to the external device through the MCU at a preset time interval.
[0178] Optionally, the device 700 is further specifically configured to:
[0179] After waking up the MCU, the signal receiving and tuning circuit turns off the interrupt function.
[0180] Optionally, the NFC chip further includes a transmission signal encoding module, a digital-to-analog conversion module, and a waveform shaping module. Among them, the MCU is connected to the transmission signal encoding module, the transmission signal encoding module is connected to the digital-to-analog conversion module, and the digital-to-analog conversion module is connected to the waveform shaping module. In terms of sending a response signal to the external device through the MCU, the sending unit 703 is specifically configured to:
[0181] The MCU sequentially radiates the response signal to the outside through the transmission signal encoding module, the digital-to-analog conversion module, and the waveform shaping module.
[0182] Optionally, the NFC chip further includes a digital signal processor DSP. The MCU is connected to the DSP. The device 700 is further specifically configured to:
[0183] The MCU wakes up the DSP, and the DSP executes a preset polling instruction.
[0184] Optionally, the NFC chip further includes a received signal decoding module and an analog-to-digital conversion module. The MCU is connected to the received signal decoding module, the received signal decoding module is connected to the analog-to-digital conversion module, and the analog-to-digital conversion module is connected to the signal receiving and tuning circuit. The device 700 is further specifically configured to:
[0185] Receive a signal sent by the external device through the signal receiving and tuning circuit, and transmit the signal to the MCU through the analog-to-digital conversion module and the received signal decoding module.
[0186] Optionally, the NFC chip further includes a power amplifier module PA. The waveform shaping module is also connected to the PA. The device 700 is further specifically configured to:
[0187] Turn on the PA to send a signal within a preset energy range to the external device through the PA.
[0188] An embodiment of the present application further provides a computer storage medium. The computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute some or all of the steps of any method described in the above method embodiment.
[0189] An embodiment of the present application further provides a computer program product. The above computer program product includes a non-transitory computer-readable storage medium storing a computer program. The above computer program is operable to enable a computer to execute some or all of the steps of any method described in the above method embodiment. The computer program product can be a software installation package.
[0190] It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that this application is not limited by the described action sequence, because according to this application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0191] In the above embodiments, the descriptions of the respective embodiments have their own focuses. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0192] In the several embodiments provided by this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the above division of units is only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical or other form.
[0193] The units described as separate components above may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place, or they can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0194] In addition, in each embodiment of this application, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0195] If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the above methods in various embodiments of this application. The aforementioned memory includes: various media such as USB flash drives, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), external hard drives, magnetic disks, or optical discs that can store program codes.
[0196] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program. This program can be stored in a computer-readable memory, and the memory can include: flash drives, read-only memories (English: Read-Only Memory, abbreviated as: ROM), random access memories (English: Random Access Memory, abbreviated as: RAM), magnetic disks, or optical discs, etc.
[0197] The above has introduced the embodiments of this application in detail. Specific examples are used in this article to elaborate on the principle and implementation manner of this application. The description of the above embodiments is only used to help understand the method and its core idea of this application; at the same time, for those of ordinary skill in the art, according to the idea of this application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to this application.
Claims
1. A communication control method, characterized in that, Applied to an electronic device, the electronic device includes a Near Field Communication (NFC) chip, the NFC chip includes a Micro Control Unit (MCU) and a signal receiving tuning circuit, the MCU is connected to the signal receiving tuning circuit, and the method includes: When the MCU is in a sleep state, the signal receiving tuning circuit detects whether the signal receiving tuning circuit receives an interrupt signal, the interrupt signal is triggered by receiving a radio frequency signal of an external device; the interrupt signal does not need to go through analog-to-digital conversion and decoding; the interrupt signal only realizes a triggering function; When the signal receiving tuning circuit detects the interrupt signal, the signal receiving tuning circuit sends the interrupt signal to the MCU, specifically: the signal receiving tuning circuit sends the interrupt signal to the MCU through a directly connected path between the MCU and the signal receiving tuning circuit; the MCU responds to the interrupt signal to wake up the MCU; The MCU sends a response signal to the external device, specifically: without passing through a Power Amplifier (PA), but directly sending the response signal to the external device through a transmission signal encoding module, a digital-to-analog conversion module, and a waveform shaping module; Among them, the MCU sending a response signal to the external device includes: Sending a response signal to the external device through the MCU at a preset time interval; Among them, the method further includes: Parsing the interrupt signal through the MCU to obtain target identification information of the external device; Determining a reference time interval corresponding to the target identification information according to a mapping relationship between the preset identification information and the time interval; Determining an NFC signal change curve between the electronic device and the external device; Sampling the NFC signal change curve to obtain a plurality of sampling points; Determining a target mean square error based on the plurality of sampling points; Determining a target first adjustment coefficient corresponding to the target mean square error according to a mapping relationship between the preset mean square error and the first adjustment coefficient; Determining a target distance between the electronic device and the external device; Determining a target second adjustment coefficient corresponding to the target distance according to a mapping relationship between the preset distance and the second adjustment coefficient; Adjusting the reference time interval according to the target first adjustment coefficient and the target second adjustment coefficient to obtain the preset time interval.
2. The method according to claim 1, characterized in that, The method further includes: After waking up the MCU, the signal receiving tuning circuit closes the interrupt function.
3. The method according to claim 1, characterized in that, The NFC chip further includes a transmission signal encoding module, a digital-to-analog conversion module, and a waveform shaping module. Among them, the MCU is connected to the transmission signal encoding module, the transmission signal encoding module is connected to the digital-to-analog conversion module, and the digital-to-analog conversion module is connected to the waveform shaping module. Sending a response signal to the external device through the MCU includes: The MCU sequentially radiates the response signal to the outside through the transmission signal encoding module, the digital-to-analog conversion module, and the waveform shaping module.
4. The method according to claim 3, characterized in that, The NFC chip further includes a Digital Signal Processor (DSP), the MCU is connected to the DSP, and the method further includes: The MCU wakes up the DSP, and the DSP executes a preset polling instruction.
5. The method according to claim 4, characterized in that, The NFC chip further includes a received signal decoding module and an analog-to-digital conversion module. The MCU is connected to the received signal decoding module, the received signal decoding module is connected to the analog-to-digital conversion module, and the analog-to-digital conversion module is connected to the signal receiving and tuning circuit. The method further includes: The signal receiving and tuning circuit receives a signal sent by the external device and transmits the signal to the MCU through the analog-to-digital conversion module and the received signal decoding module.
6. The method according to claim 4, characterized in that, The NFC chip further includes a power amplifier module PA, and the waveform shaping module is also connected to the PA. The method further includes: Turn on the PA to send a signal within a preset energy range to the external device through the PA.
7. A communication control device, characterized in that, Applied to an electronic device, the electronic device includes a near field communication (NFC) chip. The NFC chip includes a micro control unit (MCU) and a signal receiving and tuning circuit. The MCU is connected to the signal receiving and tuning circuit. The device includes: a receiving unit, a waking-up unit, and a sending unit, where The receiving unit is configured to, when the MCU is in a sleep state, detect whether the signal receiving and tuning circuit receives an interrupt signal through the signal receiving and tuning circuit. The interrupt signal is triggered by receiving a radio frequency signal of an external device; the interrupt signal does not need to go through analog-to-digital conversion and decoding; the interrupt signal only realizes a triggering function; The waking-up unit is configured to, when the signal receiving and tuning circuit detects the interrupt signal, send the interrupt signal to the MCU through the signal receiving and tuning circuit. Specifically: the signal receiving and tuning circuit sends the interrupt signal to the MCU through a directly connected path between the MCU and the signal receiving and tuning circuit; the MCU responds to the interrupt signal to wake up the MCU; The sending unit is configured to send a response signal to the external device through the MCU. Specifically: without passing through the PA, directly send a response signal to the external device through a transmitting signal encoding module, a digital-to-analog conversion module, and a waveform shaping module; Wherein, the MCU sending a response signal to the external device includes: Sending a response signal to the external device through the MCU at a preset time interval; Wherein, the device is further specifically configured to: Parse the interrupt signal through the MCU to obtain target identification information of the external device; Determine a reference time interval corresponding to the target identification information according to a mapping relationship between preset identification information and a time interval; Determine an NFC signal change curve between the electronic device and the external device; Sample the NFC signal change curve to obtain a plurality of sampling points; Determine a target mean square error based on the plurality of sampling points; Determine a target first adjustment coefficient corresponding to the target mean square error according to a mapping relationship between a preset mean square error and a first adjustment coefficient; Determine a target distance between the electronic device and the external device; Determine the target second adjustment coefficient corresponding to the target distance according to the mapping relationship between the preset distance and the second adjustment coefficient; Adjust the reference time interval according to the target first adjustment coefficient and the target second adjustment coefficient to obtain the preset time interval.
8. An electronic device, characterized in that, The electronic device includes a Near Field Communication (NFC) chip, and the NFC chip includes a Microcontroller Unit (MCU) and a signal receiving and tuning circuit. The MCU is connected to the signal receiving and tuning circuit. Among them, The signal receiving and tuning circuit is used to detect whether an interrupt signal is received by the signal receiving and tuning circuit when the MCU is in the sleep state. The interrupt signal is triggered by receiving a radio frequency signal from an external device; the interrupt signal does not need to go through analog-to-digital conversion and decoding; the interrupt signal only realizes the triggering function; The MCU is used when the signal receiving and tuning circuit detects the interrupt signal, and the signal receiving and tuning circuit sends the interrupt signal to the MCU. Specifically: the signal receiving and tuning circuit sends the interrupt signal to the MCU through the directly connected path between the MCU and the signal receiving and tuning circuit; the MCU responds to the interrupt signal to wake up the MCU; The MCU is also used to send a response signal to the external device. Specifically: without passing through the Power Amplifier (PA), but directly sending a response signal to the external device through the transmission signal encoding module, digital-to-analog conversion module, and waveform shaping module; Among them, the MCU sending a response signal to the external device includes: Sending a response signal to the external device through the MCU at a preset time interval; Among them, the electronic device is also specifically used for: Parsing the interrupt signal through the MCU to obtain the target identification information of the external device; Determine the reference time interval corresponding to the target identification information according to the mapping relationship between the preset identification information and the time interval; Determine the NFC signal change curve between the electronic device and the external device; Sample the NFC signal change curve to obtain multiple sampling points; Determine the target mean square error according to the multiple sampling points; Determine the target first adjustment coefficient corresponding to the target mean square error according to the mapping relationship between the preset mean square error and the first adjustment coefficient; Determine the target distance between the electronic device and the external device; Determine the target second adjustment coefficient corresponding to the target distance according to the mapping relationship between the preset distance and the second adjustment coefficient; Adjust the reference time interval according to the target first adjustment coefficient and the target second adjustment coefficient to obtain the preset time interval.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Active radio frequency identification label, system and reading / writing method
CN101093556A
LORA communication system and method
CN111935678A
Mushroom growth environment monitoring equipment and system capable of being remotely awakened
CN112104995A