Wireless sensor communication control method and system, communication system, medium, and terminal
By generating a whitelist of addresses and using a dynamic broadcast mechanism to control the service mode of sensor nodes, the problems of high power consumption and communication latency in traditional wireless sensor networks are solved, achieving low-power and fast-response communication control.
Patent Information
- Application Number
- PCT/CN2026/097368
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-21
- Filing Date
- 2026-05-15
- Publication Date
- 2026-11-26
AI Technical Summary
In traditional wireless sensor networks, sensor nodes are frequently woken up to broadcast data and receive notification data from edge gateway devices, resulting in high energy consumption, communication delays and collisions. Furthermore, existing complex encryption algorithms increase system complexity and energy consumption.
By generating a whitelist of addresses, using a shared key, device address, and random factor for encryption, and controlling the business mode of sensor nodes through a dynamic whitelist broadcast mechanism, the random factor is periodically updated to defend against attacks.
It reduces the number of broadcasts, lowers power consumption, improves the response speed of sensor nodes, reduces coupling, and effectively resists address spoofing and replay attacks.
Smart Images

Figure CN2026097368_26112026_PF_FP_ABST
Abstract
Description
Wireless sensor communication control methods and systems, communication systems, media and terminals Technical Field
[0001] This application relates to the field of Internet of Things (IoT) technology, and in particular to wireless sensor communication control methods and systems, communication systems, media, and terminals. Background Technology
[0002] The rapid development of IoT technology has led to the widespread application of wireless sensor networks in fields such as environmental monitoring, smart homes, and industrial automation. However, these networks face numerous challenges in terms of security authentication, communication efficiency, and energy management. In resource-constrained environments, how to reduce energy consumption while ensuring communication security is a critical issue that urgently needs to be addressed.
[0003] While commonly used complex encryption algorithms and authentication mechanisms improve communication security, they also increase system complexity and energy consumption. Furthermore, in traditional wireless sensor networks, sensor nodes are frequently woken up to broadcast data and receive notifications from edge gateway devices, which not only consumes a lot of energy but can also lead to communication delays and collisions. Summary of the Invention
[0004] The purpose of this application is to provide a wireless sensor communication control method and system, communication system, medium and terminal to solve the problems of high power consumption, communication delay and communication conflict caused by sensor nodes being frequently woken up to broadcast data and receive notification data from edge gateway devices in traditional wireless sensor networks.
[0005] To achieve the above and other related objectives, a first aspect of this application provides a wireless sensor communication control method. The wireless sensor communication control method includes: acquiring a shared key, a device address of a sensor node, and a random factor; generating a whitelist address list based on the shared key, the device address, and the random factor; the whitelist address list includes: connectable whitelist addresses and service addresses; broadcasting the random factor to a gateway device, so that the gateway device calculates and obtains the whitelist address list based on the scanned random factor; establishing a connection between the gateway device and the sensor node based on the connectable whitelist addresses in the whitelist address list, and controlling the switching of the sensor node's service mode through the service addresses in the whitelist address list.
[0006] In some embodiments of the first aspect of this application, the random factor is generated periodically, the whitelist address list is updated periodically based on the periodically generated random factor, and the random factor is broadcast periodically.
[0007] In some embodiments of the first aspect of this application, generating a whitelist address list based on the shared key, the device address, and the random factor includes: encrypting the device address and the random factor to obtain 128-bit ciphertext; processing the shared key, the random factor, and the 128-bit ciphertext using a hash algorithm to obtain a message authentication code; and splitting the message authentication code to obtain the whitelist address list.
[0008] In some embodiments of the first aspect of this application, the gateway device calculates and obtains the whitelist address list based on the scanned random factor, including: obtaining the device address based on the scanned random factor; and generating the whitelist address list based on the random factor, the device address, and the acquired shared key.
[0009] In some embodiments of the first aspect of this application, the service address includes: a data acquisition address, a diagnostic address, and a ranging address; the step of controlling the switching of the service mode of the sensor node through the service address in the whitelist address list includes: sending a data acquisition address instruction according to the data acquisition address to trigger the sensor node to broadcast real-time acquired environmental data; sending a diagnostic address instruction according to the diagnostic address to trigger the sensor node to upload self-test logs and / or receive firmware updates; and sending a ranging address instruction according to the ranging address to trigger the positioning function of the sensor node to achieve location tracking.
[0010] To achieve the above and other related objectives, a second aspect of this application provides a wireless sensor communication control system. The wireless sensor communication control system includes: a sensor node configured to acquire a shared key, a device address of the sensor node, and a random factor, and generate a whitelist address list based on the shared key, the device address, and the random factor; the whitelist address list includes: connectable whitelist addresses and service addresses; and broadcast the random factor to a gateway device; the gateway device is configured to calculate and acquire the whitelist address list based on the received random factor; and establish a connection with the sensor node based on the connectable whitelist addresses in the whitelist address list, and control the switching of the sensor node's service mode through the service addresses in the whitelist list; the sensor node is further configured to periodically generate the random factor.
[0011] To achieve the above and other related objectives, a third aspect of this application provides a wireless sensor communication system. The wireless sensor communication system includes: a data acquisition module configured to acquire environmental data in real time; a first data processing module configured to acquire a shared key, a sensor node's device address, and a random factor, and generate a whitelist address list based on the shared key, the device address, and the random factor; and to cooperate with a gateway device to switch the service mode of the sensor node; a first radio frequency module configured to communicate with the gateway device; a first storage module configured to store the shared key and the whitelist address list; a second data processing module configured to calculate and obtain the whitelist address list based on the received random factor; a second radio frequency module configured to communicate with the sensor node; and to send service instructions based on the service address; a second storage module configured to store the whitelist address list and sensor binding information; and an interface module configured to communicate with an external network.
[0012] In some embodiments of the third aspect of this application, the service instructions include: a collection address instruction, configured to trigger the sensor node to broadcast real-time collected environmental data; a diagnostic address instruction, configured to trigger the sensor node to upload self-test logs and / or receive firmware updates; and a ranging address instruction, configured to trigger the positioning function of the sensor node to achieve location tracking.
[0013] To achieve the above and other related objectives, a fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the wireless sensor communication control method described in any of the first aspects of this application.
[0014] To achieve the above and other related objectives, the fifth aspect of this application provides an electronic terminal, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the wireless sensor communication control method described in any of the first aspects of this application.
[0015] As described above, the wireless sensor communication control method and system, communication system, medium, and terminal of this application have the following beneficial effects:
[0016] First, this application is based on a dynamic whitelist broadcast mechanism, which can reduce complex encryption calculation processes, greatly reduce the number of broadcasts, and reduce power consumption.
[0017] Second, this application utilizes the generated whitelist address notification to switch the service mode of sensor nodes, which can reduce invalid broadcasts, enable sensor nodes to respond quickly to service commands, and reduce coupling.
[0018] Third, this application uses a periodically updated random factor to periodically update the whitelist of addresses, which can effectively resist address spoofing and replay attacks. Attached Figure Description
[0019] Figure 1 shows a schematic diagram of an implementation scenario of the wireless sensor communication control method described in an embodiment of this application.
[0020] Figure 2 shows a flowchart of the wireless sensor communication control method according to an embodiment of this application.
[0021] Figure 3 shows a schematic diagram of the process for obtaining the whitelist address list according to an embodiment of this application.
[0022] Figure 4 shows a schematic diagram of the structure of the wireless sensor communication control system described in an embodiment of this application.
[0023] Figure 5 shows a schematic diagram of the sensor node in the active state and the bound state according to the embodiment of this application.
[0024] Figure 6 shows a schematic diagram of the broadcast state transition of the sensor node according to an embodiment of this application.
[0025] Figure 7 shows a schematic diagram of the structure of the wireless sensor communication system described in an embodiment of this application.
[0026] Figure 8 shows a schematic diagram of the structure of the electronic terminal described in an embodiment of this application.
[0027] Component Numbering Descriptions: 100 Tire Pressure Monitoring System; 110 Integrated Pressure Sensor; 120 Gateway; 130 On-board Control Unit; 400 Wireless Sensor Communication Control System; 410 Sensor Node; 420 Gateway Device; 700 Wireless Sensor Communication System; 710 Data Acquisition Module; 720 First Data Processing Module; 730 First Wireless RF Module; 740 First Storage Module; 750 Second Data Processing Module; 760 Second Wireless RF Module; 770 Second Storage Module; 780 Interface Module; 800 Electronic Terminal; 801 Processor; 802 Memory; 8021 Operating System; 8022 Application Program; 803 Network Interface; 804 Bus System; 805 User Interface; Steps S1-S3 Detailed Implementation
[0028] The following specific examples illustrate the implementation of this application. Those skilled in the art can easily understand other advantages and effects of this application from the content disclosed in this specification. This application can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this application. It should be noted that, unless otherwise specified, the following embodiments and features in the embodiments can be combined with each other.
[0029] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of this application. Therefore, the drawings only show the components related to this application and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0030] The following embodiments of this application provide a wireless sensor communication control method and system, a communication system, a medium, and a terminal. By using a dynamic whitelist broadcast mechanism, the number of broadcasts can be greatly reduced, and power consumption can be lowered. At the same time, using whitelist addresses to notify the switching of service modes can enable rapid response and reduce coupling.
[0031] Please refer to Figure 1, which shows a schematic diagram of an implementation scenario of the wireless sensor communication control method described in this application, namely a vehicle tire pressure monitoring system. The vehicle tire pressure monitoring system 100 includes: an integrated pressure sensor 110, a gateway 120, and an on-board control unit 130.
[0032] After the integrated pressure sensor 110 establishes a communication connection with the gateway 120, the integrated pressure sensor 110 broadcasts the collected tire pressure data according to the initial broadcast frequency;
[0033] The gateway 120 uploads the received tire pressure data to the vehicle control unit 130. When abnormal tire pressure data is detected, the vehicle control unit 130 triggers a real-time alarm and sends a diagnostic address scan to the integrated pressure sensor 110 through the gateway 120 to trigger the integrated pressure sensor 110 to perform real-time tire pressure data detection and broadcasting, as well as firmware update instructions.
[0034] The rapid development of IoT technology has led to the widespread application of wireless sensor networks in fields such as environmental monitoring, smart homes, and industrial automation. However, these networks face numerous challenges in terms of security authentication, communication efficiency, and energy management. In resource-constrained environments, how to reduce energy consumption while ensuring communication security is a critical issue that urgently needs to be addressed.
[0035] While commonly used complex encryption algorithms and authentication mechanisms improve communication security, they also increase system complexity and energy consumption. Furthermore, in traditional wireless sensor networks, sensor nodes are frequently woken up to broadcast data and receive notifications from edge gateway devices, which not only consumes a lot of energy but can also lead to communication delays and collisions.
[0036] To address at least the aforementioned issues, this application provides a wireless sensor communication control method and system, communication system, medium, and terminal. It utilizes a generated whitelist address notification to switch the service mode of sensor nodes; it periodically updates the whitelist address list using a periodically updated random factor to effectively resist address spoofing and replay attacks; and it employs a dynamic whitelist broadcast mechanism to reduce complex encryption calculations, significantly reduce the number of broadcasts, and lower power consumption.
[0037] The following will describe in detail the principles and implementation methods of the wireless sensor communication control method and system, communication system, medium and terminal of this embodiment with reference to the accompanying drawings, so that those skilled in the art can understand the wireless sensor communication control method and system, communication system, medium and terminal of this embodiment without creative effort.
[0038] Please refer to Figure 2, which shows a flowchart of the wireless sensor communication control method provided in an embodiment of this application. As shown in Figure 2, the method includes the following steps S1 to S3.
[0039] Step S1: Obtain the shared key, the device address of the sensor node, and a random factor, and generate a whitelist address list based on the shared key, the device address, and the random factor. In this embodiment, the whitelist address list includes: connectable whitelist addresses and service addresses.
[0040] Step S2: Broadcast the random factor to the gateway device so that the gateway device can calculate and obtain the whitelist address list based on the scanned random factor.
[0041] Step S3: Based on the connectable whitelist addresses in the whitelist address list, the gateway device establishes a connection with the sensor node, and controls the switching of the sensor node's service mode through the service addresses in the whitelist address list.
[0042] In this embodiment, the random factor is generated periodically, the whitelist address list is updated periodically based on the periodically generated random factor, and the random factor is broadcast periodically.
[0043] Specifically, a whitelist address list is generated and updated based on the updated random factor. The updated random factor is broadcast to the gateway device at broadcast intervals, so that the gateway device can calculate and obtain the updated whitelist address list based on the scanned updated random factor, establish a connection with the sensor node through the connectable whitelist addresses in the updated whitelist address list, and control the switching of the service mode of the sensor node through the service addresses in the updated whitelist address list.
[0044] In step S1, generating a whitelist address list based on the shared key, the device address, and the random factor includes: encrypting the device address and the random factor to obtain 128-bit ciphertext; processing the shared key, the random factor, and the 128-bit ciphertext using a hash algorithm to obtain a message authentication code; and splitting the message authentication code to obtain the whitelist address list.
[0045] Figure 3 shows a flowchart of obtaining the whitelist address list as described in this embodiment.
[0046] In this embodiment, a random factor is randomly generated using a random number generator. The random factor and the device address are encrypted using the AES_128_ECB encryption method to obtain 128-bit ciphertext. The 128-bit ciphertext, the random factor, and the shared key are combined using a hash algorithm to generate a fixed-length HMAC value. This fixed-length HMAC value is then mapped and output as a fixed-length hash value to obtain a message authentication code. The message authentication code is then split based on preset rules to obtain a whitelist address list.
[0047] Preferably, the random factor is an 8-bit random number.
[0048] Preferably, the 128-bit ciphertext, the random factor, and the shared key are combined using HMAC-SHA256 (Hash-based Message Authentication Code using SHA-256) to generate a 256-bit HMAC value. Then, the 256-bit HMAC value is mapped and output as a 256-bit hash value, i.e., a 256-bit message authentication code, using a 256-bit HASH (256-bit hash function).
[0049] In this embodiment, the preset rule is as follows: the 256-bit message authentication code is split into four 48-bit addresses, the first 48-bit address is taken as the whitelist address for connection, and the last three 48-bit addresses are taken as service addresses. Specifically, the service addresses include: a collection address, a diagnostic address, and a ranging address.
[0050] In step S2, the gateway device calculates and obtains the whitelist address list based on the scanned random factor, including: obtaining the device address based on the scanned random factor; and generating the whitelist address list based on the random factor, the device address, and the acquired shared key.
[0051] In this embodiment, the gateway device obtains the whitelist address list based on the same algorithm, and the whitelist address list obtained based on the same random factor is unique.
[0052] In step S3, the service address includes: a data acquisition address, a diagnostic address, and a ranging address. Controlling the switching of the sensor node's service mode using the service address in the whitelist includes: sending a data acquisition address command based on the data acquisition address to trigger the sensor node to broadcast real-time collected environmental data; sending a diagnostic address command based on the diagnostic address to trigger the sensor node to upload self-test logs and / or receive firmware updates; and sending a ranging address command based on the ranging address to trigger the sensor node's positioning function, thereby achieving location tracking.
[0053] In this embodiment, the gateway device initiates a connection request to the sensor node using the obtained connectable whitelist address, and the sensor node establishes a communication connection with the gateway device based on the same whitelist address.
[0054] In some implementations, if the gateway device is not bound to the sensor node that needs to communicate, the gateway device calculates a whitelist address list based on the random factor broadcast by the scanned sensor node, and initiates a connection request and service instruction to the sensor node using the connectable whitelist addresses in the list; if the gateway device is already bound to the sensor node that needs to communicate, the gateway device initiates a connection request and service instruction to the sensor node based on the saved connectable whitelist addresses corresponding to the sensor node.
[0055] Please refer to Figure 4, which shows a schematic diagram of the structure of a wireless sensor communication control system provided in an embodiment of this application. The wireless sensor communication control system 400 includes: a sensor node 410 and a gateway device 420.
[0056] In this embodiment, the sensor node 410 is configured to obtain a shared key, the device address of the sensor node, and a random factor, and generate a whitelist address list based on the shared key, the device address, and the random factor; the whitelist address list includes: connectable whitelist addresses and service addresses; and broadcast the random factor to the gateway device.
[0057] The gateway device 420 is configured to calculate and obtain the whitelist address list based on the received random factor; and to establish a connection with the sensor node based on the connectable whitelist addresses in the whitelist address list, and to control the switching of the service mode of the sensor node through the service addresses in the whitelist list.
[0058] The sensor node 410 is also configured to periodically generate the random factor.
[0059] Figure 5 shows a schematic diagram of sensor nodes in active and bound states.
[0060] In some implementations, the connection state of the sensor node includes: a bound state and an unbound state.
[0061] When the sensor node is in an unbound state, the gateway device calculates and obtains a whitelist address list based on the random factor broadcast by the sensor node, establishes a connection with the sensor node through the connectable whitelist address list in the whitelist address list, and controls the switching of the sensor node's service mode through the service address in the whitelist list.
[0062] When the sensor node is in a bound state, the gateway device directly establishes a connection with the sensor node based on the connectable whitelist in the stored whitelist address list, and controls the switching of the sensor node's service mode through the service address in the whitelist list.
[0063] If the gateway device has obtained the connectable whitelist address of the target bound sensor node, it can autonomously scan the target bound sensor node through the connectable whitelist address and establish a connection with the target bound sensor node.
[0064] In some implementations, the operating states of the sensor node include: an active state and an inactive state.
[0065] When the sensor node is not broadcasting or is broadcasting at a low speed, the sensor node is in an inactive state;
[0066] For sensor nodes whose data collection shows no significant difference between factory and operational states, active activation is required at workstations where production processes involve significant changes. For example, when a temperature sensor is on a high-temperature aging test bench, if the sensor node receives continuous high-temperature data exceeding a threshold, it will automatically be activated. If the sensor node is a pressure or speed sensor, it will be automatically activated based on the collected pressure or speed data after installation on the equipment.
[0067] In this embodiment, the activated sensor node broadcasts a random factor according to the activation strategy.
[0068] In some implementations, the sensor node broadcasts the random factor according to a broadcasting strategy.
[0069] Specifically, the sensor node broadcasts the random factor at broadcast intervals. If it receives a scan notification from a whitelisted address in the whitelisted address list of the corresponding gateway device, the sensor node will enter different service modes:
[0070] If the sensor node is scanned by the connectable whitelist address, the sensor node establishes a communication connection with the gateway node and updates the stored data;
[0071] If the sensor node is scanned by the acquisition address, the sensor node broadcasts the environmental data acquired in real time.
[0072] If the sensor node is scanned by the diagnostic address, the sensor node uploads a self-test log and / or receives a firmware update;
[0073] If the sensor node is scanned by the ranging address, the sensor node will activate the positioning function to achieve the location tracking function.
[0074] In this embodiment, as shown in Figure 6, it is a schematic diagram of the broadcast state transition of the sensor node. When the sensor node broadcasts the real-time collected environmental data according to the broadcast interval, if it receives a scan notification of the whitelist address of the gateway device, the sensor node assumes that the gateway device has received the real-time collected environmental data broadcast by the sensor node, and the sensor node enters a sleep state. When it receives the scan notification of the whitelist address of the gateway device again, it switches to the corresponding service mode.
[0075] It should be understood that the module division in the embodiments of this application is illustrative and only represents a logical functional division. In actual implementation, there may be other division methods. Furthermore, the functional modules in the various embodiments of this application can be integrated into a single processor, exist as separate physical entities, or be integrated into a single module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0076] Please refer to Figure 7, which shows a schematic diagram of the structure of the wireless sensor communication system according to an embodiment of this application. The wireless sensor communication system 700 includes: a data acquisition module 710, a first data processing module 720, a first wireless radio frequency module 730, a first storage module 740, a second data processing module 750, a second wireless radio frequency module 760, a second storage module 770, and an interface module 780.
[0077] In this embodiment, the data acquisition module 710 is configured to acquire environmental data in real time;
[0078] The first data processing module 720 is configured to obtain a shared key, the device address of the sensor node, and a random factor, and generate a whitelist address list based on the shared key, the device address, and the random factor; and cooperate with the gateway device to switch the service mode of the sensor node.
[0079] The first wireless radio frequency module 730 is configured to broadcast the random factor and establish a communication connection with the gateway device;
[0080] The first storage module 740 is configured to store the shared key and the whitelist address list;
[0081] The second data processing module 750 is configured to calculate and obtain the whitelist address list based on the received random factor;
[0082] The second radio frequency module 760 is configured to receive the random factor and establish a communication connection with the sensor node; and to send service instructions based on the service address;
[0083] The second storage module 770 is configured to store the whitelist address list and sensor binding information;
[0084] The interface module 780 is configured to communicate with an external network.
[0085] In this embodiment, the first data processing module 720 obtains a shared key, the device address of the sensor node, and a random factor, and generates a whitelist address list based on the shared key, the device address, and the random factor. The whitelist address list is then sent to the first storage module 740, so that the first storage module 740 stores the whitelist address list. The first radio frequency module 730 broadcasts the random factor at broadcast intervals. The second radio frequency module 760 receives the random factor, so that the second data processing module 750 calculates and obtains the whitelist address list based on the received random factor, and then... The whitelist address list is sent to the second storage module 770 so that the second storage module 770 stores the whitelist address list; the second wireless radio frequency module 760 scans according to the connectable whitelist addresses in the whitelist address list to send a communication connection request to the first wireless radio frequency module 730; the first wireless radio frequency module 730 matches the connectable whitelist address corresponding to the scan notification received from the second wireless radio frequency module 760 with the connectable whitelist addresses stored in the whitelist address list of the first storage module 740, so as to establish a communication connection with the second wireless radio frequency module 760 when the match is successful.
[0086] After establishing a communication connection with the first wireless radio frequency module 730, the second wireless radio frequency module 760 scans the service addresses in the whitelist address list according to the service requirements of the second data processing module 750, so as to send service instructions to the first wireless radio frequency module 730. After receiving the scanning notification of the corresponding service address, the first wireless radio frequency module 730 switches the service mode of the sensor node through the first data processing module 720 to further control the data acquisition module 710.
[0087] In this embodiment, the random factor is generated periodically, the whitelist address list is updated periodically based on the periodically generated random factor, and the random factor is broadcast periodically.
[0088] Specifically, the first data processing module 720 periodically generates a random factor according to a preset period, and periodically updates the whitelist address list according to the random factor. The first storage module 740 synchronously refreshes the stored whitelist address list to the updated whitelist address list. After receiving the updated random factor, the second data processing module 750 calculates the corresponding updated whitelist address list, and the second storage module 770 synchronously refreshes the stored whitelist address list to the updated whitelist address list.
[0089] In some implementations, the service instructions include: a data acquisition address instruction, configured to trigger the sensor node to broadcast real-time acquired environmental data; a diagnostic address instruction, configured to trigger the sensor node to upload self-test logs and / or receive firmware updates; and a ranging address instruction, configured to trigger the sensor node's positioning function and optimize the sensor node's position tracking accuracy.
[0090] In this embodiment, the interface module 780 exchanges data with external networks or devices. When the gateway device is initialized, interface parameters are configured, such as the IP address and subnet mask of the network interface (if it is a network interface), or the baud rate, data bits, and stop bits of the serial port (if it is a serial port interface).
[0091] In the embodiments of this application, terms such as "first" and "second" are used to distinguish identical or similar items with substantially the same function and effect. For example, "first wireless radio frequency module" and "second wireless radio frequency module" are used only to distinguish different wireless radio frequency modules and do not limit their order. Those skilled in the art will understand that terms such as "first" and "second" do not limit the quantity or execution order, and that "first" and "second" do not necessarily imply that they are different.
[0092] It should be noted that, in the embodiments of this application, the words "exemplary" or "for example" indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0093] This application also provides a computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements the wireless sensor communication control method provided in this disclosure. Those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing a processor. The program can be stored in a computer-readable storage medium, which is a non-transitory medium, such as random access memory, read-only memory, flash memory, hard disk, solid-state hard disk, magnetic tape, floppy disk, optical disk, and any combination thereof. The above storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital video disc (DVD)), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0094] Figure 8 is a schematic block diagram of an electronic terminal provided in an embodiment of this application. As shown in Figure 8, the electronic terminal 800 includes at least one processor 801, a memory 802, at least one network interface 803, and a user interface 805. The various components in the device are coupled together via a bus system 804. It is understood that the bus system 804 is used to implement communication between these components. In addition to a data bus, the bus system 804 also includes a power bus, a control bus, and a status signal bus. However, for clarity, all buses are labeled as a bus system in Figure 8.
[0095] The user interface 805 may include a monitor, keyboard, mouse, trackball, clicker, button, touchpad, or touch screen.
[0096] It is understood that memory 802 can be volatile memory or non-volatile memory, or both. Non-volatile memory can be read-only memory (ROM) or programmable read-only memory (PROM), which is used as an external cache.
[0097] In this embodiment, the memory 802 is used to store various types of data to support the operation of the electronic terminal 800. Examples of this data include: any executable program that operates on the electronic terminal 800, such as the operating system 8021 and application program 8022; the operating system 8021 contains various system programs, such as the framework layer, core library layer, driver layer, etc., for implementing various basic services and handling hardware-based tasks.
[0098] The methods disclosed in the embodiments of this application described above can be applied to, or implemented by, processor 801. Processor 801 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed through integrated logic circuits in the hardware of processor 801 or through software instructions.
[0099] Those skilled in the art will recognize that the various illustrative logical blocks and steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this application.
[0100] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0101] In summary, this application provides a wireless sensor communication control method and system, a communication system, a medium, and a terminal. First, based on a dynamic whitelist broadcast mechanism, this application reduces complex encryption calculations, significantly decreases the number of broadcasts, and lowers power consumption. Second, by utilizing the generated whitelist address notification to switch the service mode of sensor nodes, this application reduces invalid broadcasts, enabling sensor nodes to respond quickly to service commands and reducing coupling. Third, based on a periodically updated random factor, this application periodically updates the whitelist address list, effectively resisting address spoofing and replay attacks. Therefore, this application effectively overcomes the various shortcomings of existing technologies and has high industrial applicability.
[0102] The above embodiments are merely illustrative of the principles and effects of this application and are not intended to limit this application. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of this application. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in this application should still be covered by the claims of this application.
Claims
1. A wireless sensor communication control method, characterized in that, The method includes: Obtain a shared key, the device address of the sensor node, and a random factor, and generate a whitelist address list based on the shared key, the device address, and the random factor; the whitelist address list includes: connectable whitelist addresses and service addresses; The random factor is broadcast to the gateway device so that the gateway device can calculate and obtain the whitelist address list based on the scanned random factor; Based on the connectable whitelist addresses in the whitelist address list, the gateway device establishes a connection with the sensor node and controls the switching of the sensor node's service mode through the service addresses in the whitelist address list.
2. The wireless sensor communication control method according to claim 1, characterized in that, The random factor is generated periodically, the whitelist address list is updated periodically based on the periodically generated random factor, and the random factor is broadcast periodically.
3. The wireless sensor communication control method according to claim 1, characterized in that, A whitelist of addresses is generated based on the shared key, the device address, and the random factor, including: The device address and the random factor are encrypted to obtain 128-bit ciphertext. The shared key, the random factor, and the 128-bit ciphertext are processed using a hash algorithm to obtain the message authentication code; The message authentication code is split to obtain a whitelist of addresses.
4. The wireless sensor communication control method according to claim 1, characterized in that, The gateway device calculates and obtains the whitelist address list based on the scanned random factor, including: The device address is obtained based on the scanned random factor; The whitelist address list is generated based on the random factor, the device address, and the acquired shared key.
5. The wireless sensor communication control method according to claim 1, characterized in that, The service address includes: acquisition address, diagnostic address, and ranging address; the method of controlling the switching of the service mode of the sensor node through the service address in the whitelist address list includes: Send a collection address instruction according to the collection address to trigger the sensor node to broadcast the environmental data collected in real time; A diagnostic address instruction is sent according to the diagnostic address to trigger the sensor node to upload self-test logs and / or receive firmware updates; A ranging address command is sent according to the ranging address to trigger the positioning function of the sensor node and realize the position tracking function.
6. A wireless sensor communication control system, characterized in that, The control system includes: A sensor node is configured to acquire a shared key, the sensor node's device address, and a random factor, and generate a whitelist address list based on the shared key, the device address, and the random factor; the whitelist address list includes: connectable whitelist addresses and service addresses; and Broadcast the random factor to the gateway device; The gateway device is configured to calculate and obtain the whitelist address list based on the received random factor; and A connection is established with the sensor node based on the connectable whitelist addresses in the whitelist address list, and the service mode of the sensor node is switched by controlling the service addresses in the whitelist address list. The sensor node is also configured to periodically generate the random factor.
7. A wireless sensor communication system, characterized in that, The system includes: The data acquisition module is configured to collect environmental data in real time; The first data processing module is configured to obtain a shared key, the device address of the sensor node, and a random factor, and generate a whitelist address list based on the shared key, the device address, and the random factor; and cooperate with the gateway device to switch the service mode of the sensor node. The first wireless radio frequency module is configured to broadcast the random factor and establish a communication connection with the gateway device; The first storage module is configured to store the shared key and the whitelist address list; The second data processing module is configured to calculate and obtain the whitelist address list based on the received random factor; The second wireless radio frequency module is configured to receive the random factor and communicate with the sensor node; and to send service instructions based on the service address. The second storage module is configured to store the whitelist address list and sensor binding information; The interface module is configured to communicate with external networks.
8. The wireless sensor communication system according to claim 7, characterized in that, The business instructions include: The acquisition address command is configured to trigger the sensor node to broadcast the environmental data acquired in real time; The diagnostic address instruction is configured to trigger the sensor node to upload self-test logs and / or receive firmware updates; The ranging address command is configured to trigger the positioning function of the sensor node, thereby realizing the position tracking function.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the wireless sensor communication control method according to any one of claims 1 to 5.
10. An electronic terminal, comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the wireless sensor communication control method according to any one of claims 1 to 5.
