Device control method, apparatus, equipment, and storage medium based on magnet array

By using a magnetic array sensing area and near-field communication technology, efficient multi-device control of vehicle equipment is achieved, overcoming the shortcomings of traditional buttons and wireless remote controls, and improving user experience and safety.

CN122308138APending Publication Date: 2026-06-30GUIZHOU GEELY AUTOMOBILE COMPONENTS CO LTD +2

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUIZHOU GEELY AUTOMOBILE COMPONENTS CO LTD
Filing Date
2026-03-23
Publication Date
2026-06-30

Smart Images

  • Figure CN122308138A_ABST
    Figure CN122308138A_ABST
Patent Text Reader

Abstract

This application provides a device control method, apparatus, device, and storage medium based on a magnet array. The method, applied to a mobile device, includes: acquiring encoded information in response to a distance less than a preset distance threshold between the mobile device and a preset sensing area; the encoded information representing the polarity arrangement information of a magnet array embedded in the preset sensing area; acquiring instruction information from an in-vehicle control device based on the encoded information and the preset sensing area; the instruction information representing the control type of a button on the mobile device for a function of a smart device in the vehicle; and controlling the smart device according to the instruction information in response to a user pressing a button on the mobile device. This method aims to improve the control efficiency of in-vehicle devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent vehicle technology, and in particular to a device control method, apparatus, device and storage medium based on a magnet array. Background Technology

[0002] In a smart in-vehicle environment, users need to operate various devices such as air conditioning, audio, seat heating, and window control via physical buttons.

[0003] Traditional physical buttons have fixed functions; one physical button can only control one function of one device. Therefore, improving the control efficiency of devices in vehicles has become an urgent technical problem to be solved. Summary of the Invention

[0004] This application provides a device control method, apparatus, device, and storage medium based on a magnet array to achieve the technical effect of improving the control efficiency of vehicle equipment.

[0005] In a first aspect, embodiments of this application provide a device control method based on a magnet array, applied to a mobile device, the method comprising:

[0006] In response to the distance between the mobile device and the preset sensing area being less than a preset distance threshold, encoded information is acquired; the encoded information represents the polarity arrangement information of the magnet array built into the preset sensing area;

[0007] Based on the encoded information and a preset sensing area, instruction information is obtained from the vehicle control device; the instruction information represents the type of control that the buttons on the mobile device exert on the functions of the vehicle's intelligent devices.

[0008] In response to a user pressing a button on the mobile device, the smart device is functionally controlled according to the instruction information; the preset sensing area represents receiving coded information sent by the mobile device, and obtaining instruction information from the vehicle control device according to the coded information; the vehicle control device represents obtaining coded information sent by the preset sensing area, and generating instruction information according to the coded information.

[0009] In one possible implementation, based on the encoded information and a preset sensing area, instruction information is obtained from the vehicle control device, including:

[0010] In response to the activation of the radio frequency field between the near-field communication tag built into the mobile device and the near-field communication card reader built into the preset sensing area, the encoded information is sent to the vehicle control device based on the radio frequency field, and the returned instruction information is obtained.

[0011] In one possible implementation, before obtaining instruction information from the vehicle control device based on the encoded information and a preset sensing area, the method further includes:

[0012] In response to the activation of the radio frequency field between the near-field communication tag built into the mobile device and the near-field communication reader built into the preset sensing area, identification information is generated based on the near-field communication tag; the identification information represents the unique identifier of the mobile device.

[0013] Based on the identification information, verification information is determined; the verification information indicates whether the mobile device can be used to control the functions of the smart device.

[0014] If it is determined from the verification information that the mobile device can be used to control the functions of the smart device, the execution step of obtaining instruction information from the vehicle control device based on the encoded information and a preset sensing area is performed.

[0015] In one possible implementation, it also includes:

[0016] If the verification information determines that the mobile device cannot be used to control the functions of the smart device, a prompt message is issued; the prompt message is used to inform the user that the mobile device is unavailable.

[0017] In one possible implementation, it also includes:

[0018] In response to the user not pressing any button on the mobile device within a preset time period, all buttons on the mobile device are reset; wherein, after resetting all buttons on the mobile device, the mobile device cannot be used to control the functions of the smart device.

[0019] Secondly, embodiments of this application provide a device control method based on a magnet array, applied to an in-vehicle control device, the method comprising:

[0020] Receive coded information sent by a preset sensing area; the coded information represents the polarity arrangement information of the magnet array built into the preset sensing area;

[0021] Based on the encoded information, device information is determined; the device information represents the vehicle's intelligent devices.

[0022] Based on the device information, instruction information is determined; the instruction information represents the type of control that the buttons on the mobile device exert on the functions of the vehicle's intelligent devices; the mobile device represents the response that the distance between the mobile device and the preset sensing area is less than a preset distance threshold, acquiring encoded information, and acquiring instruction information from the vehicle control device based on the encoded information and the preset sensing area; the preset sensing area represents receiving encoded information sent by the mobile device, and acquiring instruction information from the vehicle control device based on the encoded information.

[0023] In one possible implementation, determining device information based on the encoded information includes:

[0024] Based on the encoded information and a preset mapping relationship, the device information is determined; wherein the preset mapping relationship represents the correspondence between the encoded information and the device information.

[0025] In one possible implementation, it also includes:

[0026] Receive identification information sent by a preset sensing area; the identification information represents the unique identifier of the mobile device;

[0027] Based on the identification information, verification information is determined; the verification information indicates whether the mobile device can be used to control the functions of the smart device.

[0028] Thirdly, embodiments of this application provide a device control method based on a magnet array, applied to a preset sensing area, the method comprising:

[0029] Receive coded information sent by a mobile device; the coded information represents the polarity arrangement information of a magnet array built into a preset sensing area;

[0030] The encoded information is sent to the vehicle control device to obtain returned instruction information; the instruction information represents the control type of the smart device function of the button on the mobile device; wherein, the mobile device represents the response that the distance between the mobile device and the preset sensing area is less than a preset distance threshold, the acquisition of encoded information, and the acquisition of instruction information from the vehicle control device based on the encoded information and the preset sensing area; the vehicle control device represents the acquisition of encoded information sent by the preset sensing area, and the generation of instruction information based on the encoded information.

[0031] Fourthly, embodiments of this application provide a device control apparatus based on a magnet array, applied to a mobile device, the apparatus comprising:

[0032] The first acquisition module is used to acquire encoded information in response to the distance between the mobile device and the preset sensing area being less than a preset distance threshold; the encoded information represents the polarity arrangement information of the magnet array built into the preset sensing area.

[0033] The second acquisition module is used to acquire instruction information from the vehicle control device based on the encoded information and a preset sensing area; the instruction information represents the control type of the smart device function of the mobile device by the buttons on the mobile device.

[0034] The control module is used to respond to a user pressing a button on the mobile device and to control the functions of the smart device according to the instruction information; the preset sensing area represents receiving coded information sent by the mobile device and obtaining instruction information from the vehicle control device according to the coded information; the vehicle control device represents obtaining coded information sent by the preset sensing area and generating instruction information according to the coded information.

[0035] Fifthly, embodiments of this application provide a device control device based on a magnet array, including: a memory and a processor;

[0036] The memory stores computer-executed instructions;

[0037] The processor executes computer execution instructions stored in the memory, causing the processor to perform various possible implementations of the first aspect and / or the first aspect, the second aspect and / or the second aspect, the third aspect and / or the third aspect.

[0038] In a sixth aspect, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement various possible implementations of the first aspect and / or the first aspect, the second aspect and / or the second aspect, the third aspect and / or the third aspect.

[0039] In a seventh aspect, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements various possible implementations of the first aspect and / or the first aspect, the second aspect and / or the second aspect, the third aspect and / or the third aspect.

[0040] The device control method, apparatus, device, and storage medium based on a magnet array provided in this application allow for immediate acquisition of encoded information representing the polarity arrangement of the magnet array within the preset sensing area when the mobile device is attached to a preset sensing area and the distance between the mobile device and the preset sensing area is less than a preset distance threshold. Based on this encoded information and the preset sensing area, instruction information is obtained from the vehicle control device. This instruction information represents the control type of the smart device function controlled by the buttons on the mobile device. This enables pairing between the mobile device and the controlled smart device within a very short time after the mobile device is attached to any preset sensing area, eliminating the need for prior software pairing and binding, thus improving the control efficiency of the smart devices. Furthermore, in response to a user pressing a button on the mobile device, the smart device is controlled according to the instruction information, allowing one mobile device to control multiple smart devices. This eliminates the need for customized mobile devices for each smart device; simply attaching the mobile device to the corresponding preset sensing area of ​​the smart device immediately enables control, improving the overall control efficiency of all smart devices. Meanwhile, users can control smart devices by clicking buttons, eliminating the need to search for control buttons on electronic screens. Compared to electronic buttons, using physical buttons to control smart devices can improve users' concentration while driving, thereby ensuring driving safety. Attached Figure Description

[0041] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0042] Figure 1 This is a schematic diagram of the structure of the device control system based on the magnet array provided in this application;

[0043] Figure 2 A flowchart illustrating the device control method based on a magnet array provided in this application. Figure 1 ;

[0044] Figure 3 A flowchart illustrating the device control method based on a magnet array provided in this application. Figure 2 ;

[0045] Figure 4 A flowchart illustrating the device control method based on a magnet array provided in this application. Figure 3 ;

[0046] Figure 5 A flowchart illustrating the device control method based on a magnet array provided in this application. Figure 4 ;

[0047] Figure 6Schematic diagram of the structure of the device control device based on magnet array provided in this application Figure 1 ;

[0048] Figure 7 Schematic diagram of the structure of the device control device based on magnet array provided in this application Figure 2 ;

[0049] Figure 8 Schematic diagram of the structure of the device control device based on magnet array provided in this application Figure 3 ;

[0050] Figure 9 This is a schematic diagram of the structure of the device control device based on the magnet array provided in this application.

[0051] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0052] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0053] First, let me explain the terms used in this application:

[0054] NFC: Near Field Communication, a short-range, high-frequency wireless communication technology with an operating distance of less than 10cm. The NFC communication distance of this application is ≤4cm.

[0055] UUID: Universally Unique Identifier, a 128-bit identifier standard that generates globally unique values ​​without a central node. In this application, it is used to uniquely identify each mobile device.

[0056] ADC: Analog-to-Digital Converter. It is used to convert continuous analog voltage signals into discrete digital quantities. In this application, it is used to convert the analog voltage of the magnetic field strength output by the Hall sensor into a digital value for the microcontroller to determine polarity.

[0057] In the in-vehicle environment, users need to operate various devices such as air conditioning, audio, seat heating, and window control through physical buttons or touch screens.

[0058] Traditional in-vehicle systems generally use fixed physical buttons, whose functions are tied to the hardware. For example, air conditioning control buttons only correspond to the air conditioning module and cannot be adapted to other devices. These buttons require pre-planning installation locations during the vehicle design phase, making functional expansion difficult and failing to meet users' needs for personalized interaction. Furthermore, the layout of fixed buttons is limited by the space on the center console, making it difficult to cover diverse operating areas such as the rear armrest and steering wheel.

[0059] Existing wireless remote controls (such as infrared and Bluetooth remote controls) require users to manually bind the target device and select the controlled object through software or menus before operation, which poses risks of operation delays and accidental touches. Furthermore, the remote control requires continuous power (such as batteries or charging), increasing user maintenance costs. In addition, wireless signals are susceptible to interference and cannot automatically identify the target device based on its physical location, resulting in insufficient control accuracy.

[0060] While in-vehicle touchscreens can integrate multiple functions, their operation relies on visual feedback, which can easily distract drivers and pose a safety hazard. Furthermore, touchscreens lack the tactile feedback of physical buttons, requiring users to repeatedly confirm operations and reducing interaction efficiency.

[0061] The present application provides a device control method, apparatus, equipment, and storage medium based on a magnet array to solve the aforementioned technical problems.

[0062] The technical solution of this application and how it solves the above-mentioned technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.

[0063] Figure 1 The schematic diagram of the device control system based on the magnet array provided in this application is as follows: Figure 1 As shown, it includes mobile devices, preset sensing areas, in-vehicle control devices, and vehicle smart devices.

[0064] The mobile device is a handheld control terminal with multiple physical buttons that can be magnetically attached to different preset sensing areas. It has a built-in Hall effect sensor array for reading the magnetic array code of the preset sensing areas. The mobile device also has a passive Near Field Communication (NFC) tag that stores the device's UUID. The mobile device can be powered by NFC or equipped with a button battery. It contains a microprocessor and a magnetic encoder chip for knob control.

[0065] Preset sensing zones are fixedly deployed at various control positions within the vehicle. One or more preset sensing zones can be deployed inside the vehicle. Each preset sensing zone contains a pre-embedded array of magnets. For example, each preset sensing zone contains 4-8 neodymium iron boron magnets, each with dimensions of 3mm × 3mm × 2mm and a surface magnetic field strength ≥ 1200mT, arranged according to a specific polarity to form a unique fixed code. For instance, for a 4-magnet array, if the array is N pole (north pole), S pole (south pole), N pole, S pole, then the corresponding fixed code is "0101". If the array is S pole, N pole, S pole, N pole, then the corresponding fixed code is "1010". That is, the N pole is coded as "0" and the S pole as "1". The spacing between adjacent magnets is 5mm. Dynamic adjustments can also be made according to actual conditions; this application does not limit this.

[0066] The preset sensing area has a built-in near-field communication (NFC) card reader. The preset sensing area also contains a microprocessor that connects to the vehicle controller via a communication interface. Using the microprocessor, the preset sensing area forwards data sent from the mobile device to the vehicle controller via the communication interface.

[0067] Once the mobile device is attracted to the preset sensing area, the Hall sensors inside the mobile device align with the magnets in the preset sensing area. The mobile device uses an ADC to sample the voltage output by the Hall sensors, and its internal microprocessor converts the sampled voltage value into coded information.

[0068] For example, for each Hall sensor, a preset filtering algorithm (such as a moving average algorithm) can be invoked to filter the voltage within the sampled sliding window (the polarity of the magnet affects the voltage value), obtaining the filtered voltage value. The mean of all filtered voltage values ​​within the sliding window is calculated. If the mean is greater than a first preset voltage threshold, it is encoded as "1"; if the mean is less than a second preset voltage threshold, it is encoded as "0". The first preset voltage threshold is greater than the second preset voltage threshold. If the mean is between the second preset voltage threshold and the first preset voltage threshold, a detection error message is issued. The encoded values ​​from all Hall sensors are then concatenated to obtain the encoded information.

[0069] When a mobile device is magnetically attached to a preset sensing area, the NFC reader inside the sensing area detects a change in the magnetic field, activating the radio frequency field between the NFC reader and the NFC tag. The NFC tag inside the mobile device draws power from the radio frequency field to wake up. Data communication between the mobile device and the preset sensing area can then be conducted based on the radio frequency field between the NFC reader and the NFC tag.

[0070] The vehicle control equipment is deployed inside the vehicle's infotainment system and serves as the central control unit responsible for all decision-making logic. It connects to various preset sensing areas and controlled intelligent devices via communication interfaces.

[0071] Intelligent devices in a vehicle are in-vehicle terminal devices that receive control commands from the onboard control equipment and execute specific physical actions. Examples include air conditioning, audio systems, seats, and lights.

[0072] Users can generate button commands by pressing buttons on the motor-mounted device. These commands are then transmitted to a preset sensing area using a radio frequency field. The preset sensing area forwards the button commands to the vehicle control equipment, which then controls the smart device based on the commands, such as increasing the brightness of the lights by 10%.

[0073] Figure 2 A flowchart illustrating the device control method based on a magnet array provided in this application. Figure 1 ,like Figure 2 As shown, this method is applied to a mobile device, and the method includes:

[0074] S201. In response to the distance between the mobile device and the preset sensing area being less than a preset distance threshold, obtain encoded information; the encoded information represents the polarity arrangement information of the magnet array built into the preset sensing area.

[0075] This embodiment uses a typical scenario of a user controlling the ambient lighting inside a vehicle using a mobile device to illustrate the technical solution of this application.

[0076] For example, the method is applied to a mobile device, where when a user attaches the mobile device to a preset sensing area inside a vehicle corresponding to an ambient light, the distance between the mobile device and the preset sensing area is less than a preset distance threshold. The preset distance threshold can be set based on a first maximum distance at which the mobile device and the preset sensing area can be attached, and a second maximum distance at which the radio frequency field between the NFC tag inside the mobile device and the NFC reader inside the preset sensing area can be activated. For example, the preset distance threshold is the smaller of the first and second maximum distances.

[0077] When the distance between the mobile device and the preset sensing area is less than a preset distance threshold, encoded information is acquired. The encoded information represents the polarity arrangement of the magnet array built into the preset sensing area. That is, the encoded information is the information converted from the voltage value collected by the ADC inside the mobile device. For example, if the polarity arrangement of the magnet array inside the preset sensing area is N pole, S pole, N pole, S pole, the resulting encoded information is "0101".

[0078] S202. Based on the encoded information and the preset sensing area, obtain instruction information from the vehicle control device; the instruction information represents the control type of the smart device function of the mobile device by the buttons on the mobile device.

[0079] For example, after obtaining the encoded information, the identified encoded information is sent to a preset sensing area. Based on the data pass-through function of the preset sensing area, instruction information is obtained from the vehicle control device. The instruction information represents the control type of the buttons on the mobile device on the vehicle's intelligent devices. That is, the instruction information includes the control types of all buttons on the mobile device on the vehicle's intelligent devices, where the intelligent devices are the devices corresponding to the preset sensing area, such as ambient lighting.

[0080] For example, a smart device includes multiple buttons, each used to control different functions of the ambient light. Specifically, at least one button controls the ambient light brightness to increase, at least one button controls the ambient light brightness to decrease, at least one button controls the ambient light to turn off, and at least one button controls the ambient light to turn on. The instruction information includes the control information for each button on the ambient light according to the above functions.

[0081] S203. In response to the user pressing a button on the mobile device, the smart device is controlled according to the instruction information; the preset sensing area receives the encoded information sent by the mobile device, and obtains the instruction information from the vehicle control device according to the encoded information; the vehicle control device obtains the encoded information sent by the preset sensing area, and generates the instruction information according to the encoded information.

[0082] For example, after receiving the instruction information, the mobile device and the smart device complete pairing. At this point, the mobile device can be used to control the functions of the smart device. The user can control the functions of the smart device by clicking any button on the mobile device. The preset sensing area is used to receive coded information sent by the mobile device and, based on the coded information, obtain instruction information from the vehicle control device. The vehicle control device is used to obtain the coded information sent by the preset sensing area and, based on the coded information, generate instruction information.

[0083] In response to a user pressing any button on a mobile device, the system matches the corresponding function control information from the instruction information, sends the function control information as a control command to the vehicle control device, and the vehicle control device adjusts the functional state of the smart device according to the control command.

[0084] For example, if a user presses the button to turn on the ambient light, the system generates an instruction to turn on the ambient light based on the button's function control information for the ambient light in the instruction information. The vehicle control device then controls the ambient light to turn on according to this instruction.

[0085] The device control method based on a magnet array provided in this application allows for immediate acquisition of encoded information representing the polarity arrangement of the magnet array within the preset sensing area when the mobile device is attached to a preset sensing area and the distance between the mobile device and the preset sensing area is less than a preset distance threshold. Based on this encoded information and the preset sensing area, instruction information is obtained from the vehicle control device. This instruction information represents the control type of the smart device function controlled by the buttons on the mobile device. This achieves pairing between the mobile device and the controlled smart device within a very short time after the mobile device is attached to any preset sensing area, eliminating the need for prior software pairing and binding, thus improving the control efficiency of the smart devices. Furthermore, in response to a user pressing a button on the mobile device, the smart device is controlled according to the instruction information, enabling one mobile device to control multiple smart devices. This eliminates the need for customized mobile devices for each smart device; simply attaching the mobile device to the corresponding preset sensing area of ​​the smart device immediately enables control, improving the overall control efficiency of all smart devices. Meanwhile, users can control smart devices by clicking buttons, eliminating the need to search for control buttons on electronic screens. Compared to electronic buttons, using physical buttons to control smart devices can improve users' concentration while driving, thereby ensuring driving safety.

[0086] Figure 3 A flowchart illustrating the device control method based on a magnet array provided in this application. Figure 2 ,like Figure 3 As shown, in this embodiment... Figure 2 Based on the embodiments, S202 is described in detail above. S202 includes: in response to the activation of the radio frequency field between the near-field communication tag built into the mobile device and the near-field communication reader built into the preset sensing area, coded information is sent to the vehicle control device based on the radio frequency field to obtain returned instruction information. The method includes:

[0087] S301. In response to the distance between the mobile device and the preset sensing area being less than a preset distance threshold, obtain encoded information.

[0088] S302, In response to the activation of the radio frequency field between the near-field communication tag built into the mobile device and the near-field communication card reader built into the preset sensing area, the encoded information is sent to the vehicle control device based on the radio frequency field, and the returned instruction information is obtained.

[0089] For example, when a mobile device is attached to a preset sensing area, the near-field communication (NFC) reader built into the preset sensing area detects a change in the magnetic field, activating the radio frequency (RF) field between the NFC tag built into the mobile device and the NFC reader built into the preset sensing area. The NFC tag built into the mobile device draws power from the RF field to wake up.

[0090] In response to the activation of the radio frequency field between the near-field communication tag built into the mobile device and the near-field communication reader built into the preset sensing area, data communication between the mobile device and the preset sensing area is realized based on the radio frequency field. The mobile device sends the read coded information to the vehicle control device, which generates instruction information based on the coded information and returns it, thus obtaining the returned instruction information.

[0091] The beneficial effect of this approach is that by using near-field communication radio frequency field power generation technology, the NFC tags inside the mobile device can operate passively, thereby achieving lifetime maintenance-free operation of the mobile device and reducing usage costs.

[0092] In some specific embodiments of this example, before obtaining instruction information from the vehicle control device based on the encoded information and a preset sensing area, the following steps are also included:

[0093] In response to the activation of the radio frequency field between the near-field communication tag built into the mobile device and the near-field communication reader built into the preset sensing area, identification information is generated based on the near-field communication tag; the identification information represents the unique identifier of the mobile device; based on the identification information, verification information is determined; the verification information represents whether the mobile device can be used to control the functions of the smart device; if it is determined based on the verification information that the mobile device can be used to control the functions of the smart device, the execution step of obtaining instruction information from the vehicle control device based on the encoded information and the preset sensing area is executed.

[0094] For example, in response to the activation of the radio frequency field between the near-field communication tag built into the mobile device and the near-field communication reader built into the preset sensing area, identification information is obtained from the near-field communication tag. The identification information represents the unique identifier of the mobile device, such as the UUID of the mobile device. The near-field communication tag pre-stores the UUID of the mobile device.

[0095] Subsequently, based on the radio frequency field, the identification information is sent to the vehicle control equipment. The vehicle control equipment verifies the identification information and generates verification information, thus obtaining the returned verification information. The verification information indicates whether the mobile device can be used to control the smart device. For example, the verification information could mean that the mobile device can be used to control the smart device, i.e., the verification result of the mobile device's UUID is passed, or that the mobile device cannot be used to control the smart device, i.e., the verification result of the mobile device's UUID is failed.

[0096] When the verification information indicates that the mobile device can be used to control the functions of the smart device, the execution step is to obtain instruction information from the vehicle control device based on the encoded information and the preset sensing area.

[0097] When the verification message indicates that the mobile device cannot be used to control the functions of the smart device, the user is prohibited from using the mobile device to control the functions of the smart device. Clicking any button on the mobile device will not change the working state of the smart device.

[0098] The beneficial effects of this approach are as follows: When the radio frequency field between the near-field communication tag built into the mobile device and the near-field communication reader built into the preset sensing area is activated, identification information is matched from the near-field communication tag. This identification information represents the unique identifier of the mobile device, indicating that the device can be used to determine whether the mobile device corresponding to the current identification information is still in use, thereby avoiding the use of mobile devices that are not in use. Subsequently, based on the identification information, verification information is determined. This verification information indicates whether the mobile device can be used to control the smart device. This ensures that the identification information verification process is forcibly executed every time a mobile device is attached to any preset sensing area, i.e., the operator's identity is verified, thus ensuring the security of controlling the smart device. Only when the verification information determines that the mobile device can be used to control the smart device is the execution step performed to obtain instruction information from the vehicle control device based on the encoded information and the preset sensing area, further ensuring the security of controlling the smart device.

[0099] In some specific implementations of this embodiment, the above method further includes:

[0100] If the verification information determines that the mobile device cannot be used to control the functions of the smart device, a prompt message will be issued; the prompt message is used to inform the user that the mobile device is unavailable.

[0101] For example, if the verification information determines that the mobile device cannot be used to control the functions of the smart device, a voice prompt or text prompt will be issued to inform the user that the mobile device is unavailable. For example, the prompt issued by the mobile device may be "You do not have permission to control smart device A at this time".

[0102] The beneficial effects of this approach are as follows: when it is determined from the verification information that the mobile device cannot be used to control the functions of the smart device, i.e., when the user's authentication fails, a prompt message is issued to remind the user that the mobile device is unavailable. This provides the user with timely feedback on the unavailability, eliminates user confusion, and improves the user experience.

[0103] In some specific implementations of this embodiment, the above method further includes:

[0104] In response to the user not pressing any button on the mobile device within a preset time period, all buttons on the mobile device are reset; after resetting all buttons on the mobile device, the mobile device cannot be used to control the functions of the smart device.

[0105] For example, once the mobile device's identification information is verified and the radio frequency field between the NFC tag inside the mobile device and the NFC reader within the preset sensing area is activated, the mobile device and the smart device are successfully paired and bound. At this point, the user can control the smart device through the mobile device. Each button on the mobile device can then perform a specific type of function control on the smart device.

[0106] However, if the user does not use any buttons on the mobile device to control the smart device within a preset time period (e.g., 200 milliseconds), all buttons on the mobile device will be reset. After resetting, the mobile device cannot be used to control the smart device. In other words, the pairing between the mobile device and the smart device is disconnected; clicking any button on the mobile device will not control the smart device. To use the mobile device to control the smart device, it must be re-attached and reconnected.

[0107] The beneficial effect of this approach is that by detecting no user operation within a preset time period, all buttons on the mobile device are reset, preventing the mobile device from remaining in an active state for an extended period and thus reducing subsequent accidental operations on the mobile device.

[0108] S303: In response to the user pressing a button on the mobile device, control the functions of the smart device according to the instruction information.

[0109] Figure 4 A flowchart illustrating the device control method based on a magnet array provided in this application. Figure 3 ,like Figure 4 As shown, this method is applied to an in-vehicle control device, and the method includes:

[0110] S401, Receive encoded information sent by a preset sensing area; the encoded information represents the polarity arrangement information of the magnet array built into the preset sensing area.

[0111] For example, the preset sensing area and the vehicle control device communicate via a controller area network (such as a CAN bus), a local interconnect network (such as a LIN bus), or an in-vehicle Ethernet. The preset sensing area sends coded information received from the mobile device to the vehicle control device. The vehicle control device receives the coded information sent by the preset sensing area.

[0112] S402. Determine the equipment information based on the coding information; the equipment information represents the vehicle's intelligent equipment.

[0113] For example, the vehicle control device matches the corresponding device information based on the coding information. The device information represents the vehicle's intelligent devices, such as the device name or device code of the intelligent device.

[0114] In this embodiment, S402 includes:

[0115] Based on the encoded information and a preset mapping relationship, the device information is determined; wherein, the preset mapping relationship represents the correspondence between the encoded information and the device information.

[0116] For example, the vehicle control equipment maintains a primary table. This primary table stores a mapping between coded information and smart devices. Only one primary table is maintained for the entire vehicle. The correspondence between the coded information and smart devices in the primary table is used as a preset mapping relationship.

[0117] After receiving the coded information sent by the preset sensing area, the vehicle control device matches the coded information in the first table to obtain the device information corresponding to the coded information. For example, if the coded information is "0101", the device information corresponding to "0101" in the first table is "ambient light", thus determining that the smart device to be controlled is the ambient light.

[0118] The benefits of this approach are as follows: By establishing a pre-defined mapping relationship between coded information and device information throughout the vehicle, only one table needs to be maintained, thus improving overall vehicle maintenance efficiency. Furthermore, when adding new intelligent devices for control, only the mapping table needs modification, eliminating the need for hardware expansion and reducing subsequent expansion costs, thereby achieving highly efficient management of intelligent devices.

[0119] In some specific implementations of this embodiment, the method further includes:

[0120] Receive identification information sent from a preset sensing area; the identification information represents the unique identifier of the mobile device; determine the verification information based on the identification information; the verification information represents whether the mobile device can be used to control the functions of the smart device.

[0121] For example, the in-vehicle control equipment maintains a second table. This second table stores a mapping between identification information and status information. The status information indicates whether the user of the mobile device corresponding to the identification information is still using the mobile device. Only one second table is used for vehicle maintenance.

[0122] For example, the status information can be any of the following: usage status, lost status.

[0123] After receiving the identification information sent by the preset sensing area, the vehicle control device matches the identification information in the second table to obtain the corresponding status information. When the status information is "Used Status", verification information is generated indicating that the mobile device can be used to control the smart device; when the status information is "Lost Status", verification information is generated indicating that the mobile device cannot be used to control the smart device.

[0124] The beneficial effects of this approach are as follows: by determining the verification information based on the identification information, the authentication of the mobile device is achieved, thereby upgrading the vehicle's trust level in the mobile device from being accessible to everyone to being accessible only to the owner of the authenticated mobile device in use, thus improving the security of controlling smart devices.

[0125] S403. Determine instruction information based on device information; instruction information represents the type of control of the function of the vehicle's intelligent device by the buttons on the mobile device; mobile device represents the response that the distance between the mobile device and the preset sensing area is less than a preset distance threshold, obtain encoding information, and obtain instruction information from the vehicle control device based on the encoding information and the preset sensing area; preset sensing area represents the reception of the encoding information sent by the mobile device, and the acquisition of instruction information from the vehicle control device based on the encoding information.

[0126] For example, the in-vehicle control device stores control function templates for all smart devices. Each smart device's control function template includes which control function each button on the mobile device corresponds to. For instance, for ambient lighting, the control template includes: button 1 for turning on the ambient lighting and its corresponding control command; button 2 for turning off the ambient lighting and its corresponding control command; button 3 for increasing the ambient lighting brightness by 10% and its corresponding control command; and button 4 for decreasing the ambient lighting brightness by 10% and its corresponding control command.

[0127] Based on the device information, locate the corresponding control function template and use the information in that template as the command information. The command information represents the type of control that the buttons on the mobile device use to control the functions of the vehicle's smart devices. For example, the command information includes: button 1 for turning on the ambient light, button 2 for turning off the ambient light, button 3 for increasing the brightness of the ambient light by 10%, and button 4 for decreasing the brightness of the ambient light by 10%.

[0128] The mobile device is used to acquire encoded information in response to a distance less than a preset distance threshold between itself and a preset sensing area. Based on this encoded information, it then retrieves instruction information from the vehicle control device using the preset sensing area. The preset sensing area is used to receive the encoded information sent by the mobile device and retrieve instruction information from the vehicle control device based on this encoded information.

[0129] Figure 5 A flowchart illustrating the device control method based on a magnet array provided in this application. Figure 4 ,like Figure 5 As shown, this method is applied to a preset sensing area, and the method includes:

[0130] S501, Receive encoded information sent by the mobile device; the encoded information represents the polarity arrangement information of the magnet array built into the preset sensing area.

[0131] For example, the method is applied to a preset sensing area, where the mobile device sends encoded information to the preset sensing area via a radio frequency field, and the preset sensing area receives the encoded information sent by the mobile device.

[0132] S502. The encoded information is sent to the vehicle control device, and the returned instruction information is obtained. The instruction information represents the control type of the function of the vehicle's intelligent device by the button on the mobile device. The mobile device represents the response that the distance between the mobile device and the preset sensing area is less than the preset distance threshold, the encoded information is obtained, and the instruction information is obtained from the vehicle control device based on the encoded information and the preset sensing area. The vehicle control device represents the acquisition of the encoded information sent by the preset sensing area, and the generation of instruction information based on the encoded information.

[0133] For example, the preset sensing area uses the communication channel with the vehicle control device to send coded information to the vehicle control device, obtains the instruction information returned by the vehicle control device, and returns the obtained instruction information to the mobile device.

[0134] The mobile device is used to acquire encoded information in response to a distance less than a preset distance threshold between itself and a preset sensing area. Based on this encoded information, it retrieves instruction information from the vehicle control device within the preset sensing area. The vehicle control device acquires the encoded information sent by the preset sensing area and generates instruction information based on this encoded information.

[0135] Figure 6 Schematic diagram of the structure of the device control device based on magnet array provided in this application Figure 1 ,like Figure 6 As shown, the device control device 50 based on a magnet array provided in this embodiment is applied to a mobile device and includes:

[0136] The first acquisition module 601 is used to acquire encoded information in response to the distance between the mobile device and the preset sensing area being less than a preset distance threshold; the encoded information represents the polarity arrangement information of the magnet array built into the preset sensing area.

[0137] The second acquisition module 602 is used to acquire instruction information from the vehicle control device based on the encoded information and a preset sensing area; the instruction information represents the control type of the smart device function of the mobile device by the buttons on the mobile device.

[0138] The control module 603 is used to respond to the user pressing a button on the mobile device and to control the function of the smart device according to the instruction information; the preset sensing area represents receiving the encoded information sent by the mobile device and obtaining instruction information from the vehicle control device according to the encoded information; the vehicle control device represents obtaining the encoded information sent by the preset sensing area and generating instruction information according to the encoded information.

[0139] In one possible implementation, the second acquisition module 602 is further configured to:

[0140] In response to the activation of the radio frequency field between the near-field communication tag built into the mobile device and the near-field communication card reader built into the preset sensing area, the encoded information is sent to the vehicle control device based on the radio frequency field, and the returned instruction information is obtained.

[0141] In one possible implementation, the magnet array-based device control unit 60 further includes a verification module for:

[0142] In response to the activation of the radio frequency field between the near-field communication tag built into the mobile device and the near-field communication reader built into the preset sensing area, identification information is generated based on the near-field communication tag; the identification information represents the unique identifier of the mobile device.

[0143] Based on the identification information, the verification information is determined; the verification information indicates whether the mobile device can be used to control the functions of the smart device.

[0144] If the verification information determines that the mobile device can be used to control the functions of the smart device, the execution steps are performed to obtain instruction information from the vehicle control device based on the encoded information and the preset sensing area.

[0145] In one possible implementation, the magnet array-based device control device 60 further includes a prompting module for:

[0146] If the verification information determines that the mobile device cannot be used to control the functions of the smart device, a prompt message will be issued; the prompt message is used to inform the user that the mobile device is unavailable.

[0147] In one possible implementation, the magnet array-based device control device 60 further includes a reset module for:

[0148] In response to the user not pressing any button on the mobile device within a preset time period, all buttons on the mobile device are reset; after resetting all buttons on the mobile device, the mobile device cannot be used to control the functions of the smart device.

[0149] The device control device based on a magnet array provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0150] Figure 7 Schematic diagram of the structure of the device control device based on magnet array provided in this application Figure 2 ,like Figure 7 As shown, the device control device 60 based on a magnet array provided in this embodiment is applied to vehicle control equipment and includes:

[0151] The first receiving module 701 is used to receive encoded information sent by the preset sensing area; the encoded information represents the polarity arrangement information of the magnet array built into the preset sensing area.

[0152] The first determining module 702 is used to determine the device information based on the encoding information; the device information represents the intelligent devices of the vehicle.

[0153] The second determining module 703 is used to determine instruction information based on device information; the instruction information represents the control type of the function of the vehicle's intelligent device by the button on the mobile device; the mobile device represents the response that the distance between the mobile device and the preset sensing area is less than a preset distance threshold, to obtain encoding information, and to obtain instruction information from the vehicle control device based on the encoding information and the preset sensing area; the preset sensing area represents the receiving of the encoding information sent by the mobile device, and to obtain instruction information from the vehicle control device based on the encoding information.

[0154] In one possible implementation, the first determining module 702 is further configured to:

[0155] Based on the encoded information and a preset mapping relationship, the device information is determined; wherein, the preset mapping relationship represents the correspondence between the encoded information and the device information.

[0156] In one possible implementation, the magnet array-based device control device 70 further includes a third determining module for:

[0157] Receive identification information sent by a preset sensing area; the identification information represents the unique identifier of the mobile device;

[0158] Based on the identification information, the verification information is determined; the verification information indicates whether the mobile device can be used to control the functions of the smart device.

[0159] The device control device based on a magnet array provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0160] Figure 8 Schematic diagram of the structure of the device control device based on magnet array provided in this application Figure 3 ,like Figure 8 As shown, the device control device 80 based on a magnet array provided in this embodiment is applied to vehicle control equipment and includes:

[0161] The third receiving module 801 is used to receive coded information sent by the mobile device; the coded information represents the polarity arrangement information of the magnet array built into the preset sensing area;

[0162] The sending module 802 is used to send coded information to the vehicle control device and receive returned instruction information. The instruction information represents the control type of the smart device function of the mobile device by the button on the mobile device. The mobile device represents the response that the distance between the mobile device and the preset sensing area is less than a preset distance threshold, the acquisition of coded information, and the acquisition of instruction information from the vehicle control device based on the coded information and the preset sensing area. The vehicle control device represents the acquisition of coded information sent by the preset sensing area and the generation of instruction information based on the coded information.

[0163] The device control device based on a magnet array provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0164] Figure 9 This is a schematic diagram of the structure of the device control device based on a magnet array provided in this application. Figure 9 As shown, the magnet array-based device control device 90 provided in this embodiment includes at least one processor 901 and a memory 902. Optionally, the magnet array-based device control device 90 further includes a communication component 903. The processor 901, memory 902, and communication component 903 are connected via a bus.

[0165] In a specific implementation, at least one processor 901 executes computer execution instructions stored in memory 902, causing at least one processor 901 to perform the above-described method.

[0166] The specific implementation process of processor 901 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0167] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0168] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0169] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0170] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0171] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.

[0172] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0173] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0174] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0175] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0176] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0177] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0178] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0179] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. A device control method based on a magnet array, characterized in that, Applied to mobile devices, the method includes: In response to the distance between the mobile device and the preset sensing area being less than a preset distance threshold, encoded information is acquired; the encoded information represents the polarity arrangement information of the magnet array built into the preset sensing area; Based on the encoded information and a preset sensing area, instruction information is obtained from the vehicle control device; the instruction information represents the type of control that the buttons on the mobile device exert on the functions of the vehicle's intelligent devices. In response to a user pressing a button on the mobile device, the smart device is functionally controlled according to the instruction information; the preset sensing area represents receiving coded information sent by the mobile device, and obtaining instruction information from the vehicle control device according to the coded information; the vehicle control device represents obtaining coded information sent by the preset sensing area, and generating instruction information according to the coded information.

2. The method according to claim 1, characterized in that, Based on the encoded information and a preset sensing area, instruction information is obtained from the vehicle control device, including: In response to the activation of the radio frequency field between the near-field communication tag built into the mobile device and the near-field communication card reader built into the preset sensing area, the encoded information is sent to the vehicle control device based on the radio frequency field, and the returned instruction information is obtained.

3. The method according to claim 1, characterized in that, Before obtaining instruction information from the vehicle control device based on the encoded information and a preset sensing area, the process further includes: In response to the activation of the radio frequency field between the near-field communication tag built into the mobile device and the near-field communication reader built into the preset sensing area, identification information is generated based on the near-field communication tag; the identification information represents the unique identifier of the mobile device. Based on the identification information, verification information is determined; the verification information indicates whether the mobile device can be used to control the functions of the smart device. If it is determined from the verification information that the mobile device can be used to control the functions of the smart device, the execution step of obtaining instruction information from the vehicle control device based on the encoded information and a preset sensing area is performed.

4. The method according to claim 3, characterized in that, Also includes: If it is determined from the verification information that the mobile device cannot be used to control the functions of the smart device, a prompt message is issued; The notification message is used to inform the user that their mobile device is unavailable.

5. The method according to any one of claims 1-4, characterized in that, Also includes: In response to the user not pressing any button on the mobile device within a preset time period, all buttons on the mobile device are reset; wherein, after resetting all buttons on the mobile device, the mobile device cannot be used to control the functions of the smart device.

6. A device control method based on a magnet array, characterized in that, Applied to in-vehicle control equipment, the method includes: Receive coded information sent by a preset sensing area; the coded information represents the polarity arrangement information of the magnet array built into the preset sensing area; Based on the encoded information, device information is determined; the device information represents the vehicle's intelligent devices. Based on the device information, instruction information is determined; the instruction information represents the type of control that the buttons on the mobile device exert on the functions of the vehicle's intelligent devices; the mobile device represents the response that the distance between the mobile device and the preset sensing area is less than a preset distance threshold, acquiring encoded information, and acquiring instruction information from the vehicle control device based on the encoded information and the preset sensing area; the preset sensing area represents receiving encoded information sent by the mobile device, and acquiring instruction information from the vehicle control device based on the encoded information.

7. The method according to claim 6, characterized in that, Based on the encoded information, device information is determined, including: Based on the encoded information and a preset mapping relationship, the device information is determined; wherein the preset mapping relationship represents the correspondence between the encoded information and the device information.

8. The method according to claim 6 or 7, characterized in that, Also includes: Receive identification information sent by a preset sensing area; the identification information represents the unique identifier of the mobile device; Based on the identification information, the verification information is determined; The verification information indicates whether the mobile device can be used to control the functions of the smart device.

9. A device control method based on a magnet array, characterized in that, The method, applied to a preset sensing area, includes: Receive coded information sent by a mobile device; the coded information represents the polarity arrangement information of a magnet array built into a preset sensing area; The encoded information is sent to the vehicle control device to obtain returned instruction information; the instruction information represents the control type of the smart device function of the button on the mobile device; wherein, the mobile device represents the response that the distance between the mobile device and the preset sensing area is less than a preset distance threshold, the acquisition of encoded information, and the acquisition of instruction information from the vehicle control device based on the encoded information and the preset sensing area; the vehicle control device represents the acquisition of encoded information sent by the preset sensing area, and the generation of instruction information based on the encoded information.

10. A device control device based on a magnet array, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-9.