Wireless sensor network networking method applied to data transmission of Internet of Things
By using the djistra algorithm to determine the path and set the main transmission segment in IoT data transmission, the problems of seismic data transmission interruption and signal instability are solved, and the stable transmission of data is achieved and construction costs are reduced.
Patent Information
- Application Number
- CN202411301262.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-18
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2044-09-18
AI Technical Summary
During the seismic data collection and transmission, the station has interrupted data due to lightning strikes, rain or power outages, and the signal is unstable due to remote locations, resulting in data transmission interruption. The existing technology requires the establishment of special special for each station. Channels, high cost and long construction cycle.
Use the djistra algorithm to determine multiple paths from the total point to the partial point, select the high repetition point as the main transmission partial point, and transmit the data of the partial point to the total point through the main data transmission line to ensure the stable transmission of data, and Transfer data between points to deal with channel failures.
It reduces the difficulty and cost of building special channels, ensures the stable transmission of seismic data to the service station, and improves the reliability and efficiency of data transmission.
Smart Images

Figure CN119402938A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things data networking, and in particular to a wireless sensor network networking method applied to Internet of Things data transmission. Background Art
[0002] At present, when transmitting designated data, a specific channel is used for transmission. For example, when transmitting data on earthquake data collection, a transmission channel is set up to ensure that the data is quickly transmitted to the designated location. Before collecting earthquake data, multiple stations are set up at designated locations, and then the earthquake data is collected through the stations. The data is then transmitted to a specific transmission channel through the stations so that the station data is transmitted to the service center. However, during the data collection process at the station, the collector for collecting earthquake data may be interrupted due to lightning strikes, rain or power outages. At the same time, the signal may be unstable and interrupted due to the remote location of the station. If each station establishes a separate special channel with the service center, the cost of establishment is high and the construction period is long. Therefore, a network networking method is needed to ensure that the earthquake data in each station can be transmitted to the service center, while also reducing the construction cost. Summary of the invention
[0003] The purpose of the present invention is to provide a wireless sensor network networking method for Internet of Things data transmission to solve the problems raised in the above background technology.
[0004] To achieve the above object, a wireless sensor network networking method for Internet of Things data transmission is provided, comprising the following steps:
[0005] S1. Set up the information transmission main point and information transmission sub-points according to the geographical location, and transmit the information data of the sub-points to the main point;
[0006] S2. Use the DJIstra algorithm to obtain multiple paths from the branch point farthest from the main point to the main point, and select multiple branch points with high repetition according to the directions of multiple paths, and set such branch points as main transmission branch points. The connection line of the main transmission branch points is the main line of data transmission;
[0007] S3, the data collected in the sub-point is transmitted to the nearest main transmission sub-point, and the information entering the main transmission sub-point is transmitted to the main point through the data transmission main line, and in the process of transmitting information from the sub-point to the main transmission sub-point, the information data is transmitted to multiple sub-points close to the main point;
[0008] S4. A branch point that receives information data transmitted from other branches transmits the received data and its own data to multiple branch points adjacent to the branch point in the direction of the main point, and at the same time, the branch point transmits its own data to the main transmission branch point that is closest to it;
[0009] S5. The main transmission point compares the information transmitted from the point with the data in the data transmission main line. When part of the information transmitted from the point is not recorded in the data transmission main line, the main transmission point transmits the unrecorded information data to the main point through the data transmission main line.
[0010] S6. The main point receives information data transmitted from the data transmission main line, and matches the received information with the branch points and the main transmission branch points, determines that each branch point and the main transmission branch point transmits information data, and integrates and saves all the acquired information data into a network.
[0011] As a further improvement of the present technical solution, in S3, when a sub-point transmits data to the main transmission sub-point and other sub-points, the transmitted data is numbered according to the corresponding sub-point, and after the numbering is completed, the number and the information data collected in the sub-point are transmitted to the main transmission sub-point and other sub-points.
[0012] As a further improvement of the technical solution, in said S4, when a branch transmits its own data to the nearest main transmission branch, it transmits the serial number of the data transmitted by other branch received by it to the main transmission branch.
[0013] As a further improvement of the technical solution, in S5, the main transmission point receiving the number compares and checks the data information transmitted from the data transmission main line and the received number information to determine whether there is point information corresponding to the number in the data transmission main line.
[0014] As a further improvement of the technical solution, the algorithm for comparing and checking the data information transmitted by the data transmission main line and the received number information by the main transmission point adopts the Hamming distance, and its formula is as follows:
[0015] The Hamming distance between the number information received at the main transmission point and the number information matched in the data transmission main line describes the distance between two N-bit code words x=(x1, x2, ..., x3) and y=(y1, y2, ..., y3), and its formula is: in, represents modulo 2 addition, x k ,y k ∈{0,1}.
[0016] As a further improvement of the technical solution, the determination of whether there is point information corresponding to the number in the data transmission main line includes two situations:
[0017] When there is no information corresponding to the number received by the main transmission point in the data transmission main line, the main transmission point feeds back to the point that transmits the number, so that the point transmits the information corresponding to the number to the main transmission point, and the main transmission point transmits the unrecorded number and the corresponding information to the next main transmission point in the data transmission main line;
[0018] When information corresponding to the number received by the main transmission point exists in the data transmission main line, the main transmission point stores the data corresponding to the number.
[0019] As a further improvement of the present technical solution, when there is no information corresponding to the number received by the main transmission sub-point in the data transmission main line, the main transmission sub-point transmits the unrecorded information data to the sub-point with the corresponding number, and the sub-point re-transmits the data to the nearby main transmission sub-point after receiving the information.
[0020] As a further improvement of the present technical solution, the main transmission sub-point that provides feedback to the sub-point searches the data transmission main line for information sent out by the sub-point that provides feedback. When the main transmission sub-point finds the corresponding information in the data transmission main line, the feedback of the problem is stopped. When the main transmission sub-point cannot find the corresponding information in the data transmission main line, the main transmission sub-point provides feedback of the problem to the main point through the data transmission main line, and the subsequent main transmission sub-points of the data transmission main line no longer handle the problem of this sub-point.
[0021] As a further improvement of the technical solution, after the received information is matched with the sub-points and the main transmission sub-points in S6, there are two situations:
[0022] When the information transmitted by all sub-points and main transmission sub-points exists, it means that the information data in all sub-points and main transmission sub-points are transmitted to the main point. At this time, the data transmission between all sub-points, main transmission sub-points and the main point is normal;
[0023] When the information of some sub-points or main transmission sub-points is not received by the main point, and there is problem feedback transmitted from the main transmission sub-points, the main point analyzes the feedback problems and determines the problem relationship between the sub-points and the main transmission sub-points.
[0024] As a further improvement of the technical solution, after determining the problem relationship between the sub-point and the main transmission sub-point, re-operation corresponding to the fault is performed on the sub-point and the main transmission sub-point according to the problem situation.
[0025] Compared with the prior art, the present invention has the following beneficial effects:
[0026] 1. In the wireless sensor network networking method applied to the data transmission of the Internet of Things, the DJI Stra algorithm is used to determine multiple paths for multiple sub-points, and multiple sub-points with high repetition are found according to the multiple paths, and the data transmission main line is set according to the positions of the multiple sub-points, so as to reduce the difficulty of building special channels and also reduce the construction cost. At the same time, the information data in the sub-points is transmitted to the data transmission main line, so that the data transmission main line transmits the data in the sub-points to the main point, so as to ensure that the main point obtains the seismic data collected by the sub-points.
[0027] 2. In the wireless sensor network networking method applied to data transmission of the Internet of Things, by transmitting the data in the sub-point to the main transmission sub-point, the main transmission sub-point obtains the information data of each sub-point, and then the main transmission sub-point matches the received data to the data transmission main line to determine whether there is data in the data transmission main line, so as to ensure that the data in the sub-point can be transmitted to the main point through the data transmission main line. At the same time, in the process of transmitting the data in the sub-point to the main transmission sub-point, the sub-point transmits the data to other sub-points. When the data transmission main line does not have matching data transmitted from the main transmission sub-point, the main transmission sub-point transmits the sub-point information data that is not in the data transmission main line to the main point for aggregation, so as to ensure that the data in the sub-point can be transmitted to the main point. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a flowchart of the overall steps of the present invention;
[0029] Figure 2 It is a partial data transmission simulation diagram of the transmission of distributed point data to the main point according to the present invention. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0032] Example 1
[0033] In order to enable the data in each station to be transmitted to the service center, please refer to Figure 1-Figure 2 As shown, the purpose of this embodiment is to provide a wireless sensor network networking method applied to Internet of Things data transmission to solve the problem that the data in the station cannot be transmitted to the service center, which includes the following steps:
[0034] S1. Set up the information transmission main point and information transmission sub-points according to the geographical location, and transmit the information data of the sub-points to the main point;
[0035] The sub-points are stations built within the region. The locations of the stations are set according to the terrain and environment. The stations are set at locations that are convenient for collecting seismic data, such as high mountains and plains. The main point is set at the center of the monitoring area, that is, the service station is built at the center of the detection area. By setting the service station at the center of the monitoring area, the distance between the service station and the farthest station can be reduced, so as to facilitate the transmission of data from the station to the service station.
[0036] S2. Use the DJIstra algorithm to obtain multiple paths from the branch point farthest from the main point to the main point, and select multiple branch points with high repetition according to the directions of multiple paths, and set such branch points as main transmission branch points. The connection line of the main transmission branch points is the main line of data transmission;
[0037] When using the DJIstra algorithm to obtain the path from the sub-point to the main point, because the main point is set in the middle, it is necessary to determine multiple major directions and divide the area when determining the path. The path is determined between multiple sub-points in the area, that is, there will be multiple data transmission main lines in the monitoring area, and each transmission main line is not connected to each other;
[0038] S3, the data collected in the sub-point is transmitted to the nearest main transmission sub-point, and the information entering the main transmission sub-point is transmitted to the main point through the data transmission main line, and in the process of transmitting information from the sub-point to the main transmission sub-point, the information data is transmitted to multiple sub-points close to the main point;
[0039] When a branch transmits data to the main transmission branch and other branch points, the transmitted data is numbered according to the branch. For example, multiple branch points can be numbered as p1, p2, ..., pn. After the numbering is completed, the number and the information data collected in the branch are transmitted to the main transmission branch and other branch points, that is, the corresponding number represents the corresponding branch and the information data in the branch.
[0040] S4. A branch point that receives information data transmitted from other branches transmits the received data and its own data to multiple branch points adjacent to the branch point in the direction of the main point. The branch point transmits its own data to multiple adjacent branch points, so that the data in the branch point can be dispersed. When the data transmission main line fails and transmission cannot be performed, information can be transmitted to the main point through the channels between the branch points through information transmission between the branch points, so as to ensure that when the channel fails, information in several branch points can also be transmitted to the main point;
[0041] At the same time, the sub-point transmits its own data to the nearest main transmission sub-point, that is, the sub-point's own data is transmitted to the nearest main transmission sub-point in the data transmission main line in the same area. During the transmission, the sub-point transmits its own number and the collected relevant seismic data to the main transmission sub-point;
[0042] When a branch transmits its own data to the nearest main transmission branch, it transmits the numbers of the data transmitted by other branch points to the main transmission branch. By transmitting the numbers of other branch points to the main transmission branch instead of transmitting all the contents of other branch points to the main transmission branch, the load of data processing on the main transmission branch is reduced, so that the main transmission branch can process the data transmitted in the data transmission main line.
[0043] S5. The main transmission point compares the information transmitted from the point with the data in the data transmission main line. When part of the information transmitted from the point is not recorded in the data transmission main line, the main transmission point transmits the unrecorded information data to the main point through the data transmission main line.
[0044] The main transmission sub-point receiving the number compares and checks the data information transmitted from the data transmission main line with the received number information to determine whether there is sub-point information corresponding to the number in the data transmission main line;
[0045] The algorithm used by the main transmission point to compare and check the data information transmitted by the data transmission main line and the received number information is the Hamming distance, and its formula is as follows:
[0046] The Hamming distance between the number information received at the main transmission point and the number information matched in the data transmission main line describes the distance between two N-bit code words x=(x1, x2, ..., x3) and y=(y1, y2, ..., y3), and its formula is: in, represents modulo 2 addition, x k ,y k∈{0,1}, where D(x,y) represents the sum of the number of different code symbols at the same position between the number information received by the main transmission point and the number information matched in the data transmission main line. It can reflect the difference between the number information received by the main transmission point and the number information matched in the data transmission main line, and further provide an objective basis for the similarity between the number information received by the main transmission point and the number information matched in the data transmission main line. When D(x,y) between the number information received by the main transmission point and the number information matched in the data transmission main line is 0, it means that the number information received by the main transmission point is in the data transmission main line. When D(x,y) is 1, it means that there is no correlation between the number information received by the main transmission point and the number information matched in the data transmission main line, which indicates that there is no corresponding number transmission information in the data transmission main line.
[0047] There are two situations to determine whether there is a point information corresponding to the number in the data transmission main line:
[0048] When there is no information corresponding to the number received by the main transmission sub-point in the data transmission main line, the main transmission sub-point feeds back to the sub-point that transmits the number, so that the sub-point transmits the information corresponding to the number to the main transmission sub-point, so that the main transmission sub-point has information data that is not in the data transmission main line, and the main transmission sub-point transmits the unrecorded number and the corresponding information to the next main transmission sub-point in the data transmission main line, so that the main transmission sub-point transmits the received information data to the data transmission main line, and the data transmission main line transmits the data to the main point, so as to ensure that the main point receives the sub-point data and ensure that the seismic data collected by the sub-point can be transmitted to the main point.
[0049] When there is no information corresponding to the number received by the main transmission sub-point in the data transmission main line, the main transmission sub-point transmits the unrecorded information data to the sub-point with the corresponding number, that is, when the main transmission sub-point does not match the information data of the sub-point numbered p1 in the data transmission main line, the main transmission sub-point transmits the situation that the data of the sub-point is not matched in the data transmission main line to the sub-point numbered p1. After receiving this information, the sub-point retransmits the data to the nearby main transmission sub-point, so that the data in the sub-point is transmitted to the data transmission main line again.
[0050] After the main transmission sub-point that feeds back to the sub-point of p1 feeds back to the sub-point of p1, the main transmission sub-point that feeds back to the sub-point searches for the information sent by the feedback sub-point in the data transmission main line, that is, the main transmission sub-point searches for the content of the sub-point of p1 in the data transmission main line. When the main transmission sub-point finds the corresponding information in the data transmission main line, it stops feeding back the problem. When the main transmission sub-point cannot find the corresponding information in the data transmission main line, the main transmission sub-point feeds back the problem to the main point through the data transmission main line, and the subsequent main transmission sub-points of the data transmission main line no longer handle the problem of this sub-point.
[0051] When there is information corresponding to the number received by the main transmission sub-point in the data transmission main line, the main transmission sub-point will store the data corresponding to the number to prevent the subsequent data transmission main line from losing the data corresponding to the number due to a failure. When the subsequent data transmission main line loses the data corresponding to the number, the main transmission sub-point that lost the data corresponding to the number will feedback to the main transmission sub-point that stores the number and extract the data.
[0052] S6. The main point receives information data transmitted from the data transmission main line, and matches the received information with the branch points and the main transmission branch points, determines that each branch point and the main transmission branch point transmits information data, and integrates and saves all the acquired information data into a network.
[0053] After the received information is matched with the sub-points and the main transmission sub-points in S6, there are two situations:
[0054] When the information transmitted by all sub-points and main transmission sub-points exists, it means that the information data in all sub-points and main transmission sub-points are transmitted to the main point. At this time, the data transmission between all sub-points, main transmission sub-points and the main point is normal;
[0055] When the information of some sub-points or main transmission sub-points is not received by the main point, and there is problem feedback from the main transmission sub-point, the main point will analyze the feedback problem and determine the problem relationship between the sub-points and the main transmission sub-points. For example, when the sub-point transmits to the main transmission sub-point, the data cannot be transmitted to the main transmission sub-point, but the sub-point can transmit data to other sub-points. This means that there is a problem in the data transmission between the sub-point and the main transmission sub-point. When the data transmitted by the sub-point cannot be received by other sub-points or the main transmission sub-point, it means that the sub-point cannot transmit data to the outside.
[0056] After determining the problem relationship between the sub-points and the main transmission sub-points, re-operate the corresponding faults on the sub-points and the main transmission sub-points according to the problem situation, so that the corresponding sub-points and the main transmission sub-points execute the corresponding problems again, and the main point once again determines the problems of the sub-points and the main transmission sub-points.
[0057] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited by the above embodiments. The above embodiments and descriptions are only preferred examples of the present invention and are not intended to limit the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A wireless sensor network networking method for Internet of Things data transmission, characterized in that: The following steps are involved: S1. Set up the information transmission main point and information transmission sub-points according to the geographical location, and transmit the information data of the sub-points to the main point; S2. Use the DJIstra algorithm to obtain multiple paths from the branch point farthest from the main point to the main point, and select multiple branch points with high repetition according to the directions of multiple paths, and set such branch points as main transmission branch points. The connection line of the main transmission branch points is the main line of data transmission; S3, the data collected in the sub-point is transmitted to the nearest main transmission sub-point, and the information entering the main transmission sub-point is transmitted to the main point through the data transmission main line, and in the process of transmitting information from the sub-point to the main transmission sub-point, the information data is transmitted to multiple sub-points close to the main point; S4. A branch point that receives information data transmitted from other branches transmits the received data and its own data to multiple branch points adjacent to the branch point in the direction of the main point, and at the same time, the branch point transmits its own data to the main transmission branch point that is closest to it; S5. The main transmission point compares the information transmitted from the point with the data in the data transmission main line. When part of the information transmitted from the point is not recorded in the data transmission main line, the main transmission point transmits the unrecorded information data to the main point through the data transmission main line. S6. The main point receives information data transmitted from the data transmission main line, and matches the received information with the branch points and the main transmission branch points, determines that each branch point and the main transmission branch point transmits information data, and integrates and saves all the acquired information data into a network.
2. The wireless sensor network networking method for Internet of Things data transmission according to claim 1 is characterized in that: In S3, when a sub-point transmits data to the main transmission sub-point and other sub-points, the transmitted data is numbered according to the corresponding sub-point, and after the numbering is completed, the number and the information data collected in the sub-point are transmitted to the main transmission sub-point and other sub-points.
3. The wireless sensor network networking method for Internet of Things data transmission according to claim 2 is characterized in that: In the above S4, when the branch transmits its own data to the main transmission branch that is closest to it, it transmits the serial number of the data transmitted by other branches to the main transmission branch.
4. The wireless sensor network networking method for Internet of Things data transmission according to claim 3 is characterized in that: In S5, the main transmission sub-point receiving the number compares and checks the data information transmitted from the data transmission main line with the received number information to determine whether there is sub-point information corresponding to the number in the data transmission main line.
5. The wireless sensor network networking method for Internet of Things data transmission according to claim 4 is characterized in that: The algorithm used by the main transmission point to compare and check the data information transmitted by the data transmission main line and the received number information adopts the Hamming distance, and its formula is as follows: The Hamming distance between the number information received at the main transmission point and the number information matched in the data transmission main line describes the distance between two N-bit code words x=(x1, x2, ..., x3) and y=(y1, y2, ..., y3), and its formula is: in, represents modulo 2 addition, x k ,y k ∈{0,1}.
6. The wireless sensor network networking method for Internet of Things data transmission according to claim 4 is characterized in that: The method of determining whether there is point information corresponding to the number in the data transmission main line includes two situations: When there is no information corresponding to the number received by the main transmission point in the data transmission main line, the main transmission point feeds back to the point that transmits the number, so that the point transmits the information corresponding to the number to the main transmission point, and the main transmission point transmits the unrecorded number and the corresponding information to the next main transmission point in the data transmission main line; When information corresponding to the number received by the main transmission point exists in the data transmission main line, the main transmission point stores the data corresponding to the number.
7. The wireless sensor network networking method for Internet of Things data transmission according to claim 6 is characterized in that: When there is no information corresponding to the number received by the main transmission point in the data transmission main line, the main transmission point will transmit the unrecorded information data to the point with the corresponding number. After receiving this information, the point will retransmit the data to the nearby main transmission point.
8. The wireless sensor network networking method for Internet of Things data transmission according to claim 7 is characterized in that: The main transmission sub-point that gives feedback to the sub-point searches the data transmission main line for the information sent by the feedback sub-point. When the main transmission sub-point finds the corresponding information in the data transmission main line, it stops feeding back the problem. When the main transmission sub-point cannot find the corresponding information in the data transmission main line, the main transmission sub-point feeds back the problem to the main point through the data transmission main line, and the subsequent main transmission sub-points of the data transmission main line no longer handle the problem of this sub-point.
9. The wireless sensor network networking method for Internet of Things data transmission according to claim 8 is characterized in that: After the received information is matched with the sub-points and the main transmission sub-points in S6, there are two situations: When the information transmitted by all sub-points and main transmission sub-points exists, it means that the information data in all sub-points and main transmission sub-points are transmitted to the main point. At this time, the data transmission between all sub-points, main transmission sub-points and the main point is normal; When the information of some sub-points or main transmission sub-points is not received by the main point, and there is problem feedback transmitted from the main transmission sub-points, the main point analyzes the feedback problems and determines the problem relationship between the sub-points and the main transmission sub-points.
10. The wireless sensor network networking method for Internet of Things data transmission according to claim 9 is characterized in that: After determining the problem relationship between the sub-point and the main transmission sub-point, re-operation corresponding to the fault is performed on the sub-point and the main transmission sub-point according to the problem situation.
Citation Information
Patent Citations
A method for hierarchical energy power balance in wireless sensor network
CN101237414A
Multipath routing method based on wireless multi-media sensor network
CN102821434A
Transmission method of burst data in multi-mobile Sink sensor network
CN114268921A
Method, apparatus and system for transferring data to plurality of nodes
KR1020160036725A