Data transmission method and system based on wireless sensor
By introducing data identification classification nodes and hybrid encryption technology into wireless sensor networks, the problem of low data transmission security in wireless sensor networks is solved, and data classification management and encryption processing are realized, ensuring the security and accuracy of data transmission. .
Patent Information
- Application Number
- CN202411854686.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-01-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing wireless sensor network lacks encryption measures during data transmission, resulting in low data security and is prone to intercept and tampering.
Introduce data identification classification nodes in the wireless sensor network, classify data through the content text recognition model, extract keywords and keyword count information for mixed encryption of AES and RSA, and verify the user request path through the base station to ensure that data is transmitted Safety in the process.
It realizes data classification management and encryption processing, improves data security, prevents data leakage and tampering, and ensures the confidentiality and accuracy of data transmission.
Smart Images

Figure CN119325073A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data transmission management, and in particular to a data transmission method and system based on wireless sensors. Background Art
[0002] Wireless sensor network is a network formed by organizing and combining tens of thousands of sensor nodes in a free style through wireless communication technology. The units that make up the sensor nodes are: data acquisition unit, data transmission unit, data processing unit and energy supply unit. The data acquisition unit usually collects and converts information in the monitoring area, such as light intensity, atmospheric pressure and humidity; the data transmission unit mainly communicates wirelessly and exchanges information, and sends and receives the collected data information; the data processing unit usually handles the routing protocol and management tasks of all nodes and positioning devices; the energy supply unit will choose the form of micro batteries to reduce the area occupied by the sensor nodes.
[0003] There are two types of nodes in wireless sensor networks, one is the aggregation node and the other is the sensor node. The aggregation node mainly refers to the gateway that can remove the wrong report data from the sensor node, combine it with the relevant reports to fuse the data, and judge the events that have occurred. The aggregation node can connect with the user node through the wide area network or satellite direct communication, and process the collected data. After the normal data sensor collects the data, it is submitted from the sensor's perception node to the storage node. When the user sends a query request command to the base station, the base station generates a query command for the storage node and sends it to the storage node. After receiving the query command from the base station, the storage node screens and processes the data in the perception node and feeds back the query processing results to the base station. After receiving the data, the base station passes it to the user end, but there is no encryption measure in this process, which leads to low security of data transmission and is easy to be intercepted and tampered with. Summary of the invention
[0004] The purpose of the present invention is to provide a data transmission method and system based on wireless sensors. Through the data identification and classification nodes that are set, data is classified and managed, which is easy to expand, delete and maintain. At the same time, the security of data can be better guaranteed. The transmission of data signals is classified data, which is accurately acquired by the user through the generation of query instructions, and will not cause multiple data loss. It is intended to solve the problem in the prior art that the base station receives the data and transmits it to the user end, but there is no encryption measure in this process, which leads to low security of data transmission and easy interception and tampering.
[0005] The present invention is implemented in this way: a data transmission method based on a wireless sensor is applied to a wireless sensor network server, specifically comprising the following steps: S101: receiving a data signal transmitted by a sending terminal, and building a data classification wireless sensor network by adding a data identification and classification node in a sensing node of the wireless sensor network; S102: The data recognition and classification node obtains a data signal transmitted by a sending terminal, and inputs the data signal into a preset content text recognition model; S103: Obtain a text recognition result output by the text recognition model based on the data signal, and obtain a data classification set of the data signal from the text recognition result; S104: Acquire a data classification set of the data signal, extract keywords and keyword number information of each data classification set, encrypt the data classification set by using the keywords and keyword number information, and acquire data classification set encrypted data; S105: The data identification and classification node receives the user's query instruction through the base station, and sends the data classification set encrypted data to the base station according to the query instruction. The base station verifies the user's request path. If there is no abnormality in the request path, the base station sends the data classification set encrypted data to the user. The user decrypts the data classification set encrypted data to obtain the data collected by the perception node.
[0006] Further, in S101, receiving a data signal transmitted by a sending terminal includes: Receiving a connection request sent by a sending terminal through a preset network, wherein the connection request is used to request to establish a connection with the wireless sensor network server; Detecting whether the current account of the sending terminal is the target account; If the current account of the user terminal is the target account, a connection is made with the sending terminal according to the connection request, and after the connection is completed, a data signal transmitted by the sending terminal is received.
[0007] Further, in S102, the data recognition and classification node obtains the data signal transmitted by the sending terminal, and inputs the data signal into a preset content text recognition model, including: Acquire multiple text recognition models, and sort the recognition contents of the multiple text recognition models in order; The content text of the data signal is obtained, and the data signal is input into the text recognition model ranked first.
[0008] Further, in S103, in the text recognition result, a data classification set of the data signal is obtained, including: Acquire classification data identified by multiple text recognition models, and generate a corresponding relationship between the content text recognition model and the data signal according to the classification data; According to the corresponding relationship between the established content text recognition model and the data signal, the recognized classification data is stored in the data recognition classification node.
[0009] Furthermore, in S104, the keywords and the number of keywords of each data classification set are extracted, and the data classification set is encrypted by the keywords and the number of keywords, including: Acquiring a storage channel of the classified data in the data identification and classification node, and identifying a storage path of all the classified data according to the storage channel; Extract keywords and keyword quantity information of classified data according to the storage path; The keyword and keyword quantity information of each storage path are obtained, the classified data is encrypted using the AES keyword, and the AES keyword key is encrypted using the RSA keyword quantity.
[0010] Furthermore, the preset network includes one or a combination of a 3G network, a 4G network, a 5G network, and a WIFI network.
[0011] Further, in S105, the data identification classification node receives a user's query instruction through a base station, and sends the data classification set encrypted data to the base station according to the query instruction, including: The user sends a data download request to the base station by checking the data, and the base station receives the user's query instruction and sends a signal to the data identification and classification node; The data identification and classification node receives the query instruction of the base station, obtains the encrypted classification data based on the query instruction, and then sends the encrypted classification data to the base station cache.
[0012] Compared with the prior art, the wireless sensor-based data transmission method and system provided by the present invention have the following beneficial effects: 1. Through the data identification and classification nodes set up, data is classified and managed, which is easy to expand, delete and maintain. At the same time, it can better ensure the security of data. The transmission of data signals is classified data, which can be accurately obtained by the user through the generation of query instructions, and will not cause multiple data loss. In addition, due to the relative independence of the data classification storage channel network, even if a sensor and networking message is leaked, it will not affect other storage paths, thus ensuring data security to a greater extent; 2. Through a mixed encryption method, data confidentiality can be better achieved. RSA encryption is slow and AES has key storage problems, so RSA+AES encryption is used. RSA is used to encrypt AES keys and AES is used to encrypt data. This integrates the advantages of two encryption algorithms, ensuring the speed of data encryption and realizing safe and convenient key management. In addition, the decryption of encrypted data is also carried out through security verification between the base station and the user to ensure that there is no leakage at the terminal where the data is sent and during the transmission process, thereby ensuring the security of the wireless sensor network server throughout the data transmission process.
[0013] A data transmission system based on wireless sensors, applying the above data transmission method, comprises: The main controller is used to realize the reception preprocessing of the data signal in the wireless sensor network server and coordinate the work of each internal module; A transmission module, used for transmitting the data signal transmitted by the sending terminal; A sensing node, used to receive data signals transmitted by a sending terminal; The data identification and classification node is used to identify and classify the data signals received by the sensing node and encrypt them, so that the user end can send a query instruction to the wireless sensor network server through the base station, execute the query instruction and send the data classification set encrypted data to the base station. The data identification and classification node includes: A recognition module, used to obtain a data signal transmitted by a sending terminal, and input the data signal into a preset content text recognition model for recognition; A collection module is used to obtain the content recognized by multiple content text recognition models and complete multiple collections; An extraction module, used to extract keywords and keyword quantity information of each data classification set; An encryption module is used to encrypt the data classification set through the keyword and the keyword number information to obtain the data classification set encrypted data; The parsing and transmission module is used to receive a user's query instruction through a base station, and send the data classification set encrypted data to the base station according to the query instruction.
[0014] Specifically, the encryption module includes: AES encryption unit, used to encrypt the classified data with keywords; A secret key generation unit, used to generate a secret key instruction after the keyword is used to encrypt the classified data; An RSA encryption unit, used to encrypt the number of RSA keywords for the secret key instruction generated by encrypting the classified data with the keyword; The output unit is used to output the data file encrypted by the RSA keyword number.
[0015] Specifically, the parsing transmission module includes: A search and query unit, used to receive a user's query instruction, and search the data classification set encrypted data according to the query instruction to obtain the data classification set encrypted data based on the query instruction; The sending unit is used to send the data classification set encrypted data to the base station. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic flow chart of the wireless sensor-based data transmission method proposed in the present invention; Figure 2 A schematic block diagram of the process of receiving a data signal transmitted by a transmitting terminal in the wireless sensor-based data transmission method proposed by the present invention; Figure 3 This is a schematic diagram of the structure of the wireless sensor-based data transmission system proposed by the present invention; Figure 4 This is a schematic diagram of the structure of the encryption module in the wireless sensor-based data transmission system proposed by the present invention; Figure 5 This is a schematic diagram of the structure of the parsing transmission module in the wireless sensor-based data transmission system proposed by the present invention. DETAILED DESCRIPTION
[0017] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0018] The implementation of the present invention is described in detail below in conjunction with specific embodiments.
[0019] The same or similar numbers in the drawings of this embodiment correspond to the same or similar parts; in the description of the present invention, it should be understood that if the terms "upper", "lower", "left", "right" and the like indicate directions or positional relationships based on the directions or positional relationships shown in the drawings, it is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction. Therefore, the terms describing the positional relationship in the drawings are only used for illustrative purposes and cannot be understood as limitations on the present invention. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.
[0020] Reference Figure 1-2As shown, the data transmission method based on wireless sensors is applied to a wireless sensor network server and specifically includes the following steps: S101: receiving a data signal transmitted by a sending terminal, and building a data classification wireless sensor network by adding a data identification and classification node in a sensing node of the wireless sensor network; The receiving of the data signal transmitted by the sending terminal includes: Receiving a connection request sent by a sending terminal through a preset network, the connection request is used to request to establish a connection with a wireless sensor network server; Check whether the current account of the sending terminal is the target account; If the current account of the user terminal is the target account, the user terminal connects with the sending terminal according to the connection request, and after the connection is completed, receives the data signal transmitted by the sending terminal; S102: The data recognition and classification node obtains the data signal transmitted by the sending terminal, and inputs the data signal into a preset content text recognition model; The data recognition and classification node obtains the data signal transmitted by the sending terminal and inputs the data signal into a preset content text recognition model, including: Acquire multiple text recognition models, and sort the recognition contents of the multiple text recognition models in order; Obtaining the content text of the data signal, and inputting the data signal into the first-ranked text recognition model; S103: Obtaining a text recognition result output by a text recognition model based on the data signal, and obtaining a data classification set of the data signal in the text recognition result; Among them, in the text recognition result, the data classification set of the data signal is obtained, including: Acquire classification data identified by multiple text recognition models, and generate a corresponding relationship between the content text recognition model and the data signal according to the classification data; According to the correspondence between the established content text recognition model and the data signal, the identified classification data is stored in the data recognition classification node; S104: obtaining a data classification set of the data signal, extracting keywords and keyword number information of each data classification set, encrypting the data classification set through the keywords and keyword number information, and obtaining encrypted data of the data classification set; S105: The data identification and classification node receives the user's query instruction through the base station, and sends the data classification set encrypted data to the base station according to the query instruction. The base station verifies the user's request path. If there is no abnormality in the request path, the base station sends the data classification set encrypted data to the user. The user decrypts the data classification set encrypted data to obtain the data collected by the sensing node. The data identification and classification node receives the user's query instruction through the base station, and sends the data classification set encrypted data to the base station according to the query instruction, including: The user sends a data download request to the base station by checking the data. The base station receives the user's query instruction and sends a signal to the data identification and classification node; The data identification and classification node receives the query instruction of the base station, obtains the encrypted classification data based on the query instruction, and then sends the encrypted classification data to the base station cache. The technical solution classifies and manages the data through the data identification and classification node set up, which is easy to expand, delete and maintain. At the same time, it can better ensure the security of the data. The transmission of the data signal is classified data, which is accurately obtained by the user through the generation of query instructions, and will not cause much data loss. Moreover, due to the relative independence of the data classification storage channel networking, even if a sensor and networking message is leaked, it will not affect other storage paths, thereby ensuring data security to a greater extent.
[0021] In S105, it is specifically manifested as: the base station requests to send an information acquisition request to the user to verify the user's request path, and the user's current location, IP, network environment, etc. If there is no abnormality in the request path, the base station sends the data classification set encrypted data to the user, and the user decrypts the data classification set encrypted data to obtain the data collected by the perception node. The decryption method is to decrypt the user's physiological characteristics or identity information, and to obtain the user's characteristics by sending a decryption request, so that the data requested by the user can be mapped to the user, and the root cause of the information leakage can be determined to ensure that there is a root cause for the data leakage, and it can also be determined whether the base station has intercepted the data when transmitting data.
[0022] In S104 of this embodiment, the keywords and keyword number information of each data classification set are extracted, and encryption processing of the data classification set is implemented through the keywords and keyword number information, including: Obtaining storage channels of classified data in a data identification and classification node, and identifying storage paths of all classified data according to the storage channels; Extract keywords and keyword quantity information of classified data according to storage path; Obtain the keyword and keyword number information of each storage path, use AES keywords to encrypt classified data, use RSA keyword number to encrypt AES keyword key, and use mixed encryption method to achieve higher data confidentiality. RSA encryption speed is slow and AES key storage problem, so RSA+AES encryption is mixed, RSA is used to encrypt AES key, and AES is used to encrypt data. This integrates the advantages of two encryption algorithms, which not only ensures the speed of data encryption, but also realizes safe and convenient key management.
[0023] In this embodiment, the preset network includes one or a combination of a 3G network, a 4G network, a 5G network, and a WIFI network.
[0024] This technical solution classifies and manages data through the data identification and classification nodes set up, which is easy to expand, delete and maintain. At the same time, it can better ensure the security of data. The transmission of data signals is classified data, which can be accurately obtained by the user through the generation of query instructions, and will not cause multiple data loss. Moreover, since the data classification storage channel networking is relatively independent, even if a sensor and networking message is leaked, it will not affect other storage paths, thus ensuring data security to a greater extent. Reference Figure 3-5 As shown, a data transmission system based on wireless sensors applies the above-mentioned data transmission method. The system includes: a main controller, which is used to realize the reception preprocessing of the data signal in the wireless sensor network server and coordinate the work of each internal module; a transmission module, which is used to transmit the data signal transmitted by the sending terminal; a sensing node, which is used to receive the data signal transmitted by the sending terminal; a data identification and classification node, which is used to identify, classify and encrypt the data signal received by the sensing node, so that the user terminal can send a query instruction to the wireless sensor network server through the base station, execute the query instruction to send the data classification set encrypted data to the base station, and classify and manage the data through the set data identification and classification node, which is easy to expand, delete and maintain. At the same time, the security of the data can be better guaranteed. The transmission of the data signal is classified data, which is accurately obtained by the user through the generation of the query instruction, and will not cause the loss of multiple data. Moreover, due to the relative independence of the data classification storage channel networking, even if a sensor and networking message are leaked, it will not affect other storage paths, which guarantees the security of the data to a greater extent. The data identification and classification node includes: an identification module, which is used to obtain the data signal transmitted by the sending terminal and input the data signal into a preset content text recognition model for identification; a collection module, which is used to obtain the content identified by multiple content text recognition models and complete multiple collections; an extraction module, which is used to extract the keywords and keyword number information of each data classification set; The encryption module is used to encrypt the data classification set through the keyword and the number of keywords information to obtain the encrypted data of the data classification set; the parsing and transmission module is used to receive the user's query instruction through the base station, and send the encrypted data of the data classification set to the base station according to the query instruction.
[0025] The encryption module includes: an AES encryption unit, which is used to encrypt the classified data with keywords; a key generation unit, which is used to generate a key instruction after the classified data is encrypted with keywords; an RSA encryption unit, which is used to encrypt the number of RSA keywords for the key instruction after the classified data is encrypted with keywords; and an output unit, which is used to output the data file encrypted with the number of RSA keywords.
[0026] The parsing and transmission module includes: a retrieval query unit, which is used to receive the user's query instruction, and retrieve the data classification set encrypted data according to the query instruction, and obtain the data classification set encrypted data based on the query instruction; a sending unit, which is used to send the data classification set encrypted data to the base station. The technical solution can achieve higher data confidentiality through a mixed encryption method. RSA encryption is slow and AES key storage problems are a problem, so RSA+AES encryption is mixed, RSA is used to encrypt the AES key, and AES is used to encrypt the data. This integrates the advantages of two encryption algorithms, which not only ensures the speed of data encryption, but also realizes safe and convenient key management. In addition, the decryption of the encrypted data is also through security verification between the base station and the user to ensure that there is no leakage at the data sending terminal and during the transmission process, thereby ensuring the security of the wireless sensor network server throughout the data transmission process.
[0027] In this embodiment, the entire operation process can be controlled by a computer to achieve automatic operation control, and in each operation link, signal feedback can be performed to achieve sequential execution of steps. These are all common knowledge of current automatic control and will not be described in detail in this embodiment.
[0028] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A data transmission method based on wireless sensors, characterized in that: Applied to wireless sensor network server, specifically including the following steps: S101: receiving a data signal transmitted by a sending terminal, and building a data classification wireless sensor network by adding a data identification and classification node in a sensing node of the wireless sensor network; S102: The data recognition and classification node obtains a data signal transmitted by a sending terminal, and inputs the data signal into a preset content text recognition model; S103: Obtain a text recognition result output by the text recognition model based on the data signal, and obtain a data classification set of the data signal from the text recognition result; S104: Acquire a data classification set of the data signal, extract keywords and keyword number information of each data classification set, encrypt the data classification set by using the keywords and keyword number information, and acquire data classification set encrypted data; S105: The data identification and classification node receives the user's query instruction through the base station, and sends the data classification set encrypted data to the base station according to the query instruction. The base station verifies the user's request path. If there is no abnormality in the request path, the base station sends the data classification set encrypted data to the user. The user decrypts the data classification set encrypted data to obtain the data collected by the perception node.
2. The data transmission method based on wireless sensor according to claim 1, characterized in that: In S101, receiving a data signal transmitted by a sending terminal includes: Receiving a connection request sent by a sending terminal through a preset network, wherein the connection request is used to request to establish a connection with the wireless sensor network server; Detecting whether the current account of the sending terminal is the target account; If the current account of the user terminal is the target account, a connection is made with the sending terminal according to the connection request, and after the connection is completed, a data signal transmitted by the sending terminal is received.
3. The data transmission method based on wireless sensor according to claim 2, characterized in that: In S102, the data recognition and classification node obtains the data signal transmitted by the sending terminal, and inputs the data signal into a preset content text recognition model, including: Acquire multiple text recognition models, and sort the recognition contents of the multiple text recognition models in order; The content text of the data signal is obtained, and the data signal is input into the text recognition model ranked first.
4. The data transmission method based on wireless sensor according to claim 3, characterized in that: In S103, in the text recognition result, a data classification set of the data signal is obtained, including: Acquire classification data identified by multiple text recognition models, and generate a corresponding relationship between the content text recognition model and the data signal according to the classification data; According to the corresponding relationship between the established content text recognition model and the data signal, the recognized classification data is stored in the data recognition classification node.
5. The data transmission method based on wireless sensor according to claim 4, characterized in that: In S104, the keywords and the number of keywords of each data classification set are extracted, and the data classification set is encrypted by the keywords and the number of keywords, including: Acquiring a storage channel of the classified data in the data identification and classification node, and identifying a storage path of all the classified data according to the storage channel; Extract keywords and keyword quantity information of classified data according to the storage path; The keyword and keyword quantity information of each storage path are obtained, the classified data is encrypted using the AES keyword, and the AES keyword key is encrypted using the RSA keyword quantity.
6. The data transmission method based on wireless sensor according to claim 2, characterized in that: The preset network includes one or a combination of a 3G network, a 4G network, a 5G network, and a WIFI network.
7. The data transmission method based on wireless sensor according to claim 5, characterized in that: In S105, the data identification and classification node receives a user's query instruction through a base station, and sends the data classification set encrypted data to the base station according to the query instruction, including: The user sends a data download request to the base station by checking the data, and the base station receives the user's query instruction and sends a signal to the data identification and classification node; The data identification and classification node receives the query instruction of the base station, obtains the encrypted classification data based on the query instruction, and then sends the encrypted classification data to the base station cache.
8. A data transmission system based on wireless sensors, characterized in that: Applicable to the data transmission method described in any one of claims 1 to 7, the system comprising: The main controller is used to realize the reception preprocessing of the data signal in the wireless sensor network server and coordinate the work of each internal module; A transmission module, used for transmitting the data signal transmitted by the sending terminal; A sensing node, used to receive data signals transmitted by a sending terminal; The data identification and classification node is used to identify and classify the data signals received by the sensing node and encrypt them, so that the user end can send a query instruction to the wireless sensor network server through the base station, execute the query instruction and send the data classification set encrypted data to the base station. The data identification and classification node includes: A recognition module, used to obtain a data signal transmitted by a sending terminal, and input the data signal into a preset content text recognition model for recognition; A collection module is used to obtain the content recognized by multiple content text recognition models and complete multiple collections; An extraction module, used to extract keywords and keyword quantity information of each data classification set; An encryption module is used to encrypt the data classification set through the keyword and the keyword number information to obtain the data classification set encrypted data; The parsing and transmission module is used to receive a user's query instruction through a base station, and send the data classification set encrypted data to the base station according to the query instruction.
9. The wireless sensor-based data transmission system according to claim 8, characterized in that: The encryption module comprises: AES encryption unit, used to encrypt the classified data with keywords; A secret key generation unit, used to generate a secret key instruction after the keyword is used to encrypt the classified data; An RSA encryption unit, used to encrypt the number of RSA keywords for the secret key instruction generated by encrypting the classified data with the keyword; The output unit is used to output the data file encrypted by the RSA keyword number.
10. The wireless sensor-based data transmission system according to claim 9, characterized in that: The parsing transmission module includes: A search and query unit, used to receive a user's query instruction, and search the data classification set encrypted data according to the query instruction to obtain the data classification set encrypted data based on the query instruction; The sending unit is used to send the data classification set encrypted data to the base station.
Citation Information
Patent Citations
Multidimensional data query method and multidimensional data query system based on wireless sensor network
CN108462946A
Wireless sensor network data transmission method and system based on national cryptographic algorithm
CN116866901A
Information recommendation method and device based on big data, computer equipment and storage medium
CN118568338A
Smart card data encryption method
CN118842582A