Wireless sensor communication control method and system, communication system, medium and terminal
By generating a whitelist address list and dynamic broadcasting mechanism, the problems of large energy consumption and communication delay in traditional wireless sensor networks are solved, and low power consumption, efficient communication and security are achieved.
Patent Information
- Application Number
- CN202510658802.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-21
- Publication Date
- 2025-08-08
AI Technical Summary
In traditional wireless sensor networks, sensor nodes are frequently awakened to broadcast data and receive notification data from edge gateway devices, resulting in large energy consumption, communication delays and communication conflicts.
By generating a whitelist address list, encrypting it with shared keys, device addresses and random factors, generating whitelist addresses and business addresses that can be connected, dynamically broadcasting the random factors to establish connections and switch the business models of sensor nodes, and periodically updating the random factors to resist attacks.
Reduces the number of broadcasts, reduces power consumption, improves the response speed of sensor nodes, reduces coupling risks, and effectively resists address counterfeiting and playback attacks.
Smart Images

Figure CN120455998A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet of Things technology, and in particular to a wireless sensor communication control method and system, a communication system, a medium, and a terminal. Background Art
[0002] The rapid development of the Internet of Things (IoT) has enabled the widespread application of wireless sensor networks in areas such as environmental monitoring, smart homes, and industrial automation. However, these networks face numerous challenges in security authentication, communication efficiency, and energy management. In resource-constrained environments, ensuring communication security while reducing energy consumption is a critical issue that needs to be addressed.
[0003] While currently 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 conflicts. Summary of the Invention
[0004] The purpose of this application is to provide a wireless sensor communication control method and system, a communication system, a medium and a terminal, which are used to solve the problems of high energy consumption, communication delay and communication conflict caused by sensor nodes in traditional wireless sensor networks being frequently awakened to broadcast data and receive notification data from edge gateway devices.
[0005] To achieve the above-mentioned purpose and other related purposes, the first aspect of the present application provides a wireless sensor communication control method. The wireless sensor communication control method includes: obtaining a shared key, a device address of a sensor node, and a random factor, and generating a whitelist address list based on the shared key, the device address, and the random factor; the whitelist address list includes: a connectable whitelist address and a service address; 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; based on the connectable whitelist address in the whitelist address list, the gateway device establishes a connection with the sensor node, and controls the switching of the service mode of the sensor node through the service address in the whitelist address list.
[0006] In some embodiments of the first aspect of the present application, the random factor is periodically generated, the whitelist address list is periodically updated based on the periodically generated random factor, and the random factor is periodically broadcast.
[0007] In some embodiments of the first aspect of the present application, a whitelist address list is generated based on the shared key, the device address and the random factor, including: encrypting the device address and the random factor to obtain a 128-bit ciphertext; processing the shared key, the random factor and the 128-bit ciphertext through a hash algorithm to obtain a message authentication code; and splitting the message authentication code to obtain a whitelist address list.
[0008] In some embodiments of the first aspect of the present application, the gateway device calculates and obtains the whitelist address list based on the random factor scanned, including: obtaining the device address based on the random factor scanned; generating the whitelist address list based on the random factor, the device address and the obtained shared key.
[0009] In some embodiments of the first aspect of the present application, the business address includes: a collection address, a diagnostic address and a ranging address; the control of switching the business mode of the sensor node through the business address in the whitelist address list includes: sending a collection address instruction according to the collection address to trigger the sensor node to broadcast the real-time collected environmental data; sending a diagnostic address instruction according to the diagnostic address to trigger the sensor node to upload a self-test log and / or receive firmware updates; sending a ranging address instruction according to the ranging address to trigger the positioning function of the sensor node to realize the location tracking function.
[0010] To achieve the above-mentioned purpose and other related purposes, the second aspect of the present application provides a wireless sensor communication control system. The wireless sensor communication control system includes: a sensor node, configured to obtain 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: a connectable whitelist address and a service address; and broadcasts the random factor to a gateway device; the gateway device is configured to calculate and obtain the whitelist address list based on the received random factor; and establish a connection with the sensor node based on the connectable whitelist address in the whitelist address list, and control the switching of the service mode of the sensor node through the service address in the whitelist list; the sensor node is also configured to periodically generate the random factor.
[0011] To achieve the above-mentioned purpose and other related purposes, the third aspect of the present application provides a wireless sensor communication system. The wireless sensor communication system includes: a data acquisition module, configured to collect environmental data in real time; a first data processing module, configured to obtain a shared key, a device address of a 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 a gateway device to switch the service mode of the sensor node; a first wireless 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 wireless radio frequency module, configured to communicate with the sensor node; and send service instructions based on the service address; a second storage module, configured to store the whitelist address list and sensor binding information; an interface module, configured to communicate with an external network.
[0012] In some embodiments of the third aspect of the present application, the business instructions include: a collection address instruction, configured to trigger the sensor node to broadcast the environmental data collected in real time; a diagnostic address instruction, configured to trigger the sensor node to upload a self-test log and / or receive firmware updates; a ranging address instruction, configured to trigger the positioning function of the sensor node to realize a location tracking function.
[0013] To achieve the above-mentioned objectives and other related objectives, the fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the wireless sensor communication control method described in any one of the first aspects of the present application is implemented.
[0014] To achieve the above-mentioned objectives and other related objectives, the fifth aspect of the present application provides an electronic terminal, including a memory, a processor and a computer program stored in the memory, and the processor executes the computer program to implement the wireless sensor communication control method described in any one of the first aspects of the present application.
[0015] As described above, the wireless sensor communication control method and system, communication system, medium, and terminal of the present application have the following beneficial effects:
[0016] First, this application is based on a dynamic whitelist broadcast mechanism, which can reduce the complex encryption calculation process, greatly reduce the number of broadcasts, and reduce power consumption.
[0017] Second, the present application utilizes the generated whitelist address to notify the switching of the service mode of the sensor node, which can reduce invalid broadcasts, enable the sensor node to quickly respond to service instructions, and reduce coupling.
[0018] Third, this application periodically updates the whitelist address list based on a periodically updated random factor, which can effectively resist address spoofing and replay attacks. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 Shown is a schematic diagram of an implementation scenario of the wireless sensor communication control method described in an embodiment of the present application.
[0020] Figure 2 Shown is a flow chart of the wireless sensor communication control method according to an embodiment of the present application.
[0021] Figure 3 Shown is a flowchart of obtaining a whitelist address list as described in an embodiment of the present application.
[0022] Figure 4 Shown is a structural diagram of the wireless sensor communication control system according to an embodiment of the present application.
[0023] Figure 5 Schematic diagram showing the sensor node in an activated state and a bound state according to an embodiment of the present application.
[0024] Figure 6 Shown is a schematic diagram of the broadcast state transition of a sensor node according to an embodiment of the present application.
[0025] Figure 7 Shown is a structural diagram of the wireless sensor communication system according to an embodiment of the present application.
[0026] Figure 8 Shown is a structural schematic diagram of the electronic terminal described in an embodiment of the present application.
[0027] Component number description
[0028] 100 Automobile Tire Pressure Monitoring System
[0029] 110 integrated pressure sensor
[0030] 120 Gateway
[0031] 130 Vehicle Control Unit
[0032] 400 Wireless Sensor Communication Control System
[0033] 410 sensor nodes
[0034] 420 Gateway Device
[0035] 700 Wireless Sensor Communication System
[0036] 710 Data Acquisition Module
[0037] 720 First Data Processing Module
[0038] 730 First Wireless RF Module
[0039] 740 First Storage Module
[0040] 750 Second Data Processing Module
[0041] 760 Second wireless RF module
[0042] 770 Second Storage Module
[0043] 780 interface module
[0044] 800 Electronic Terminal
[0045] 801 processor
[0046] 802 Memory
[0047] 8021 operating system
[0048] 8022 Applications
[0049] 803 network interface
[0050] 804 bus system
[0051] 805 User Interface
[0052] Steps S1 to S3 DETAILED DESCRIPTION
[0053] The following describes the embodiments of the present application through specific examples. Those skilled in the art can easily understand the other advantages and effects of the present application from the content disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments. The details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other unless they conflict.
[0054] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application. Therefore, the illustrations only show components related to the present application and are not drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component can be changed at will, and the component layout type may also be more complicated.
[0055] The following embodiments of the present application provide a wireless sensor communication control method and system, a communication system, a medium, and a terminal. Through a dynamic whitelist broadcast mechanism, the number of broadcasts can be greatly reduced, and power consumption can be reduced. At the same time, using a whitelist address to notify the switching of service modes can achieve a quick response and reduce coupling.
[0056] See also Figure 1 , which shows a schematic diagram of an implementation scenario of the wireless sensor communication control method described in an embodiment of the present application, for a tire pressure monitoring system for an automobile. The tire pressure monitoring system 100 includes: an integrated pressure sensor 110, a gateway 120, and an onboard control unit 130.
[0057] 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;
[0058] The gateway 120 uploads the received tire pressure data to the on-board control unit 130. When the received tire pressure data is detected to be abnormal, the on-board control unit 130 triggers a real-time alarm and sends a scan of the diagnostic address 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 broadcast, as well as firmware update instructions.
[0059] The rapid development of the Internet of Things (IoT) has enabled the widespread application of wireless sensor networks in areas such as environmental monitoring, smart homes, and industrial automation. However, these networks face numerous challenges in security authentication, communication efficiency, and energy management. In resource-constrained environments, ensuring communication security while reducing energy consumption is a critical issue that needs to be addressed.
[0060] While currently 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 conflicts.
[0061] At least to address the above-mentioned problems, the present application provides a wireless sensor communication control method and system, a communication system, a medium and a terminal, which switches the service mode of the sensor node by using the generated whitelist address notification; uses a periodically updated random factor to periodically update the whitelist address list to effectively resist address spoofing and replay attacks; and a dynamic whitelist broadcast mechanism to reduce complex encryption calculation processes, greatly reduce the number of broadcasts, and reduce power consumption.
[0062] The principles and implementation methods of the wireless sensor communication control method and system, communication system, medium, and terminal of this embodiment will be described in detail below 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 work.
[0063] See also Figure 2 , which shows a flow chart of the wireless sensor communication control method provided by the embodiment of the present application. Figure 2 As shown, the process includes the following steps S1 to S3.
[0064] Step S1: Obtain a shared key, a device address of a 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: a connectable whitelist address and a service address.
[0065] Step S2: broadcast the random factor to the gateway device, so that the gateway device calculates and obtains the whitelist address list according to the scanned random factor.
[0066] Step S3: Based on the connectable whitelist address in the whitelist address list, the gateway device establishes a connection with the sensor node, and controls switching of the service mode of the sensor node through the service address in the whitelist address list.
[0067] 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.
[0068] Specifically, a whitelist address list is generated and updated based on the updated random factor calculation, and the updated random factor is broadcast to the gateway device according to the broadcast interval, so that the gateway device obtains the updated whitelist address list based on the scanned updated random factor calculation, and establishes a connection with the sensor node through the connectable whitelist address in the updated whitelist address list, and controls the switching of the service mode of the sensor node through the service address in the updated whitelist address list.
[0069] In step S1, a whitelist address list is generated based on the shared key, the device address and the random factor, including: encrypting the device address and the random factor to obtain a 128-bit ciphertext; processing the shared key, the random factor and the 128-bit ciphertext through a hash algorithm to obtain a message authentication code; and splitting the message authentication code to obtain a whitelist address list.
[0070] like Figure 3 FIG. 1 is a flowchart of obtaining a whitelist address list according to this embodiment.
[0071] In this embodiment, the random factor is randomly generated by a random number generator, and the random factor and the device address are encrypted by the AES_128_ECB encryption method to obtain a 128-bit ciphertext. The 128-bit ciphertext, the random factor and the shared key are combined by a hash algorithm to generate an HMAC value of a fixed length, and the fixed-length HMAC value is mapped and output as a hash value of a fixed length to obtain a message authentication code. The message authentication code is split based on preset rules to obtain a whitelist address list.
[0072] Preferably, the random factor is an 8-bit random number.
[0073] Preferably, the 128-bit ciphertext, the random factor and the shared key are combined through HMAC-SHA256 (Hash-based Message Authentication Code using SHA-256) to generate a 256-bit HMAC value, and then the 256-bit HMAC value is mapped and output as a 256-bit hash value, i.e., a 256-bit message authentication code, through 256bit HASH (256-bit hash function).
[0074] In this embodiment, the preset rule is: split the 256-bit message authentication code into four 48-bit addresses, take the first 48-bit address as the connectable whitelist address, and take the last three 48-bit addresses as the service addresses. Specifically, the service addresses include: collection address, diagnosis address, and ranging address.
[0075] In step S2, the gateway device calculates and obtains the whitelist address list according to the scanned random factor, including: obtaining the device address based on the scanned random factor; and generating the whitelist address list according to the random factor, the device address and the obtained shared key.
[0076] 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.
[0077] In step S3, the service address includes: a collection address, a diagnostic address, and a ranging address. Controlling the switching of the service mode of the sensor node using the service address in the whitelist address list includes: sending a collection address instruction according to the collection address to trigger the sensor node to broadcast the real-time collected environmental data; sending a diagnostic address instruction according to the diagnostic address to trigger the sensor node to upload a self-test log and / or receive a firmware update; and sending a ranging address instruction according to the ranging address to trigger the positioning function of the sensor node to implement a location tracking function.
[0078] 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.
[0079] In some implementations, if the gateway device is not bound to the sensor node that requires a communication connection, the gateway device calculates a whitelist address list based on the random factor broadcast by the scanned sensor node, and uses the connectable whitelist address therein to initiate a connection request and a business instruction to the sensor node; if the gateway device is bound to the sensor node that requires a communication connection, the gateway device initiates a connection request and a business instruction to the sensor node based on the saved connectable whitelist address corresponding to the sensor node.
[0080] See also Figure 4 , which is a schematic diagram of the structure of a wireless sensor communication control system provided by an embodiment of the present application. The wireless sensor communication control system 400 includes: a sensor node 410 and a gateway device 420.
[0081] In this embodiment, the sensor node 410 is configured to obtain 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: a connectable whitelist address and a business address; and broadcast the random factor to the gateway device.
[0082] The gateway device 420 is configured to calculate and obtain the whitelist address list based on the received random factor; and establish a connection with the sensor node based on the connectable whitelist address in the whitelist address list, and control the switching of the service mode of the sensor node through the service address in the whitelist list.
[0083] The sensor node 410 is further configured to periodically generate the random factor.
[0084] like Figure 5The figure shows a schematic diagram of a sensor node in an activated state and a bound state.
[0085] In some implementations, the connection state of the sensor node includes a bound state and an unbound state.
[0086] When the sensor node is in an unbound state, the gateway device calculates and obtains a whitelist address list according to a random factor broadcast by the sensor node, establishes a connection with the sensor node through a connectable whitelist address list in the whitelist address list, and controls switching of the service mode of the sensor node through the service address in the whitelist list;
[0087] When the sensor node is in a bound state, the gateway device directly establishes a connection with the sensor node according to the connectable whitelist in the stored whitelist address list, and controls the switching of the service mode of the sensor node through the service address in the whitelist.
[0088] 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.
[0089] In some implementations, the working state of the sensor node includes: an activated state and an inactivated state.
[0090] When the sensor node does not broadcast or broadcasts at a low speed, the sensor node is in an inactive state;
[0091] For sensor nodes whose data collected in factory and operating states show no significant difference, they need to be actively activated at workstations where significant changes occur during the production process. For example, if a temperature sensor is in a high-temperature aging test bench, it will automatically activate if it receives continuous high-temperature data exceeding a threshold. If the sensor node is a pressure or speed sensor, it will automatically activate based on the collected pressure or speed data after installation.
[0092] In this embodiment, the activated sensor node broadcasts a random factor according to the activation strategy.
[0093] In some implementations, the sensor node broadcasts the random factor according to a broadcast strategy.
[0094] Specifically, the sensor node broadcasts the random factor according to the broadcast interval. If a scan notification of a whitelist address in the whitelist address list of the corresponding gateway device is received, the sensor node will enter a different service mode:
[0095] 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;
[0096] If the sensor node is scanned by the collection address, the sensor node broadcasts the environmental data collected in real time;
[0097] If the sensor node is scanned by the diagnostic address, the sensor node uploads a self-test log and / or receives a firmware update;
[0098] If the sensor node is scanned by the ranging address, the sensor node starts a positioning function to implement a position tracking function.
[0099] In this embodiment, if Figure 6 The figure shows a schematic diagram of the broadcast state transition of a sensor node. When a sensor node broadcasts real-time collected environmental data according to a broadcast interval, if it receives a scan notification from a whitelisted address of a gateway device, the sensor node assumes that the gateway device has received the real-time collected environmental data broadcast by the sensor node. The sensor node then enters a dormant state and switches to the corresponding service mode the next time it receives a scan notification from a whitelisted address of the gateway device.
[0100] It should be understood that the division of modules in the embodiments of the present application is illustrative and is merely a logical functional division. In actual implementation, other division methods may be used. Furthermore, the functional modules in the various embodiments of the present application may be integrated into a single processor, or may exist physically as separate modules, or two or more modules may be integrated into a single module. The aforementioned integrated modules may be implemented in the form of hardware or software functional modules.
[0101] See also Figure 7 , which is a schematic diagram of the structure of the wireless sensor communication system according to an embodiment of the present 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.
[0102] In this embodiment, the data acquisition module 710 is configured to collect environmental data in real time;
[0103] The first data processing module 720 is configured to obtain a shared key, a device address of a sensor node, and a random factor, and generate a whitelist address list according to the shared key, the device address, and the random factor; and cooperate with a gateway device to switch the service mode of the sensor node;
[0104] The first wireless radio frequency module 730 is configured to broadcast the random factor and establish a communication connection with a gateway device;
[0105] The first storage module 740 is configured to store the shared key and the whitelist address list;
[0106] The second data processing module 750 is configured to calculate and obtain the whitelist address list according to the received random factor;
[0107] The second wireless radio frequency module 760 is configured to receive the random factor and establish a communication connection with the sensor node; and send a service instruction based on the service address;
[0108] The second storage module 770 is configured to store the whitelist address list and sensor binding information;
[0109] The interface module 780 is configured to communicate with an external network.
[0110] In this embodiment, the first data processing module 720 obtains a shared key, a device address of a sensor node, and a random factor, and generates a whitelist address list according to the shared key, the device address, and the random factor, and sends the whitelist address list to the first storage module 740 so that the first storage module 740 stores the whitelist address list; the first wireless radio frequency module 730 broadcasts the random factor according to a broadcast interval; the second wireless radio frequency module 760 receives the random factor so that the second data processing module 750 calculates and obtains the whitelist address list according to the received random factor, and stores the whitelist address list. 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 RF module 760 scans according to the connectable whitelist address in the whitelist address list to send a communication connection request to the first wireless RF module 730, and the first wireless RF module 730 matches the connectable whitelist address corresponding to the received scanning notification of the second wireless RF module 760 with the connectable whitelist address in the whitelist address list stored in the first storage module 740 to establish a communication connection with the second wireless RF module 760 when the match is successful.
[0111] After establishing a communication connection with the first wireless RF module 730, the second wireless RF module 760 scans the business addresses in the whitelist address list according to the business requirements of the second data processing module 750 to send a business instruction to the first wireless RF module 730. After receiving the scanning notification of the corresponding business address, the first wireless RF module 730 switches the business mode of the sensor node through the first data processing module 720 to further control the data acquisition module 710.
[0112] 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.
[0113] 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, and the first storage module 740 synchronously refreshes the stored whitelist address list to be 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 be the updated whitelist address list.
[0114] In some implementations, the business instructions include: a collection address instruction, configured to trigger the sensor node to broadcast environmental data collected in real time; a diagnostic address instruction, configured to trigger the sensor node to upload a self-test log and / or receive firmware updates; and a ranging address instruction, configured to trigger the positioning function of the sensor node and optimize the position tracking accuracy of the sensor node.
[0115] In this embodiment, the interface module 780 exchanges data with an external network or device. When the gateway device is initialized, the 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, stop bits, etc. of the serial port (if it is a serial port).
[0116] In the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. For example, the first wireless RF module and the second wireless RF module are merely used to distinguish different wireless RF modules and do not limit their order. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity or execution order, and words such as "first" and "second" do not necessarily mean that they are different.
[0117] It should be noted that in the embodiments of this application, words such as "exemplary" or "for example" represent examples, illustrations, or descriptions. Any embodiment or design described in this application as "exemplary" or "for example" should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0118] The embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, which implements the wireless sensor communication control method provided by the embodiment of the present disclosure when the computer program is executed by the processor. A person skilled in the art will understand that all or part of the steps in the method for implementing the above embodiment can be completed by instructing the processor through a program, and the program can be stored in a computer-readable storage medium, and the storage medium is a non-transitory medium, such as a random access memory, a read-only memory, a flash memory, a hard disk, a solid-state hard disk, a magnetic tape, a floppy disk, an optical disc, and any combination thereof. The above storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a digital video disc (DVD)), or a semiconductor medium (for example, a solid-state disk (SSD)), etc.
[0119] Figure 8 This is a schematic block diagram of an electronic terminal provided in an embodiment of the present application. Figure 8 As shown, 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 through a bus system 804. It is understood that the bus system 804 is used to achieve connection and communication between these components. In addition to including a data bus, the bus system 804 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 8 Various buses are labeled as bus systems.
[0120] The user interface 805 may include a display, a keyboard, a mouse, a trackball, a click gun, keys, buttons, a touch pad or a touch screen.
[0121] It is understood that the memory 802 can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. The non-volatile memory can be a read-only memory (ROM) or a programmable read-only memory (PROM), which is used as an external cache.
[0122] The memory 802 in the embodiment of the present application is used to store various types of data to support the operation of the electronic terminal 800. Examples of such data include: any executable program used to operate on the electronic terminal 800, such as an operating system 8021 and application programs 8022; the operating system 8021 includes various system programs, such as a framework layer, a core library layer, and a driver layer, which are used to implement various basic services and process hardware-based tasks.
[0123] The methods disclosed in the embodiments of the present 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 method described above can be performed by hardware integrated logic circuits in processor 801 or by software instructions.
[0124] Those skilled in the art will appreciate that the various illustrative logical blocks and steps described in conjunction with the embodiments disclosed herein can be implemented using 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. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0125] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
[0126] In summary, the present application provides a wireless sensor communication control method and system, a communication system, a medium, and a terminal. First, the present 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. Second, the application uses the generated whitelist address to notify the switching of the service mode of the sensor node, which can reduce invalid broadcasts, enable the sensor node to quickly respond to service instructions, and reduce coupling. Third, the present application is based on a periodically updated random factor, and periodically updates the whitelist address list, which can effectively resist address spoofing and replay attacks. Therefore, the present application effectively overcomes the various shortcomings in the prior art and has a high industrial utilization value.
[0127] The above embodiments are merely illustrative of the principles and effects of this application and are not intended to limit this application. Anyone skilled in the art may modify or alter the above embodiments without departing from the spirit and scope of this application. Therefore, all equivalent modifications or alterations made by one of ordinary skill in the art without departing from the spirit and technical concepts disclosed in this application shall be covered by the claims of this application.
Claims
1. A wireless sensor communication control method, characterized in that: The method comprises: Obtaining a shared key, a device address of a sensor node and a random factor, and generating a whitelist address list according to the shared key, the device address and the random factor; the whitelist address list includes: a connectable whitelist address and a business address; Broadcasting the random factor to a gateway device so that the gateway device calculates and obtains the whitelist address list according to the scanned random factor; Based on the connectable whitelist address in the whitelist address list, the gateway device establishes a connection with the sensor node, and controls switching of the service mode of the sensor node through the service address in the whitelist address list.
2. The wireless sensor communication control method according to claim 1, wherein: 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, wherein: Generating a whitelist address list according to the shared key, the device address, and the random factor includes: Encrypting the device address and the random factor to obtain a 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; The message authentication code is split to obtain a whitelist address list.
4. The wireless sensor communication control method according to claim 1, wherein: The gateway device calculates and obtains the whitelist address list according to the scanned random factor, including: Obtaining the device address based on the scanned random factor; The whitelist address list is generated according to the random factor, the device address and the obtained shared key.
5. The wireless sensor communication control method according to claim 1, wherein: The business address includes: a collection address, a diagnostic address, and a ranging address; and the control of switching the business mode of the sensor node through the business address in the whitelist address list includes: Sending a collection address instruction according to the collection address to trigger the sensor node to broadcast the environmental data collected in real time; Sending a diagnostic address instruction according to the diagnostic address to trigger the sensor node to upload a self-test log and / or receive a firmware update; A ranging address instruction 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: The sensor node is configured to obtain a shared key, a device address of the sensor node, and a random factor, and generate a whitelist address list according to the shared key, the device address, and the random factor; the whitelist address list includes: a connectable whitelist address and a service address; and Broadcasting the random factor to the gateway device; A gateway device is configured to calculate and obtain the whitelist address list according to the received random factor; and Establishing a connection with the sensor node based on a connectable whitelist address in the whitelist address list, and controlling switching of the service mode of the sensor node through the service address in the whitelist address list; The sensor node is further configured to periodically generate the random factor.
7. A wireless sensor communication system, characterized in that: The system comprises: A data acquisition module is configured to collect environmental data in real time; The first data processing module is configured to obtain a shared key, a device address of a sensor node, and a random factor, and generate a whitelist address list according to the shared key, the device address, and the random factor; and cooperate with a gateway device to switch a service mode of the sensor node; A first wireless radio frequency module is configured to broadcast the random factor and establish a communication connection with a gateway device; A first storage module is configured to store the shared key and the whitelist address list; A second data processing module is configured to calculate and obtain the whitelist address list according to the received random factor; The second wireless radio frequency module is configured to receive the random factor and establish a communication connection with the sensor node; and send a service instruction based on the service address; A second storage module is configured to store the whitelist address list and sensor binding information; The interface module is configured to communicate with an external network.
8. The wireless sensor communication system according to claim 7, wherein: The business instructions include: A collection address instruction is configured to trigger the sensor node to broadcast the environmental data collected in real time; a diagnostic address instruction configured to trigger the sensor node to upload a self-test log and / or receive a firmware update; The ranging address instruction is configured to trigger the positioning function of the sensor node to achieve a 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 a processor, the wireless sensor communication control method according to any one of claims 1 to 5 is implemented.
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.