A data transmission method and system between multiple sorting devices
By building a local area network and virtual space array of sorting equipment, and using single-point verification function and path control function, the problem of abnormal data transmission between sorting equipment is solved, ensuring the security and reliability of data transmission and avoiding economic losses.
Patent Information
- Application Number
- CN202510588022.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-08
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2045-05-08
AI Technical Summary
In the logistics automation system, abnormal operating instructions between sorting equipment or tampered with will cause the equipment to fail to work normally, affecting the normal progress of sorting work and causing economic losses.
Build a local area network of sorting equipment, and by building a virtual space array of sorting equipment and a single-point verification function, randomly transmit test data, generate path control functions, verify data validity, and ensure data transmission security.
It improves the security and reliability of data transmission between sorting equipment, and can detect and deal with abnormalities in a timely manner to avoid economic losses.
Smart Images

Figure CN120111081B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data transmission, and particularly relates to a data transmission method and system between multiple sorting devices. Background Art
[0002] Data transmission between multiple sorting devices refers to the efficient information exchange between different sorting devices in a logistics automation system through various communication technologies (such as wireless communication, industrial Ethernet, 5G, edge computing, and message queue middleware, etc.). This transmission method ensures that devices can share key data such as real-time status, task instructions, and processing results, thereby achieving coordinated work, optimizing processes, improving efficiency, and enhancing the overall security and reliability of the system. Through effective data transmission, the logistics system can better cope with complex and changing working environments and achieve seamless connection of all links from receiving, identifying, classifying to packaging.
[0003] In the sorting work, the amount of operation instruction data for controlling the devices is not large, but once the operation instruction is abnormal or tampered with, the sorting devices may not work properly or even interfere with each other, which will cause greater economic losses and affect the normal progress of the sorting work. Summary of the Invention
[0004] The purpose of the present invention is to provide a data transmission method between multiple sorting devices, aiming to solve the problem that once the operation instruction is abnormal or tampered with, the sorting devices may not work properly or even interfere with each other, which will cause greater economic losses and affect the normal progress of the sorting work.
[0005] The present invention is implemented as follows. A data transmission method between multiple sorting devices, the method includes:
[0006] Construct a sorting device local area network based on each gateway. The connection relationship between each sorting device and the gateway is recorded in the sorting device local area network, and a data processing center is included in the sorting device local area network;
[0007] Construct a sorting device virtual space array, mark the positions of each sorting device, randomly transmit test data, and record the test data received by each sorting device;
[0008] Construct a single-point verification function according to the obtained test data. The data processing center randomly obtains multiple groups of test data, constructs a path control function, and the data processing center stores all single-point verification functions;
[0009] Determine the transmission path of the data to be sent according to the path control function, and transmit the data to be sent. During this process, receive the temporary verification data sent by the sorting device and verify the validity of the verification data.
[0010] Preferably, the steps of constructing a virtual space array of sorting devices, marking the positions of each sorting device, randomly transmitting test data, and recording the test data received by each sorting device specifically include:
[0011] Construct a virtual space array of sorting devices, determine the numbers of each sorting device, mark them in the virtual space array of each sorting device, and randomly select a sorting device as the starting device;
[0012] Read the real-time time value, use the real-time time value as a variable to determine the transfer target of the test data, and transfer the test data based on the transfer target;
[0013] When a sorting device receives test data, process the test data according to a preset rule and forward it again until the number of test data received by all sorting devices reaches a preset value.
[0014] Preferably, the steps of constructing a single-point verification function based on the obtained test data, randomly obtaining multiple groups of test data by the data processing center, constructing a path control function, and storing all single-point verification functions by the data processing center specifically include:
[0015] Extract multiple test data received by each sorting device, record the numbers of the test data and the corresponding test data content, generate test data coordinates, where the abscissa of the test data coordinates is the number of the test data and the ordinate is the test data content;
[0016] Import the test data coordinates corresponding to each sorting device into a data fitting tool to generate the corresponding single-point verification function;
[0017] Randomly obtain multiple groups of test data by the data processing center, perform function fitting through the data fitting tool to obtain a path control function, and store the path control function and all single-point verification functions.
[0018] Preferably, the steps of determining the transmission path of the data to be sent according to the path control function, transmitting the data to be sent, and receiving the temporary verification data sent by the sorting device and verifying the validity of the verification data during this process specifically include:
[0019] Obtain the data to be sent, import one or more random variables into the path control function, and generate a control random code through the path control function;
[0020] Extract identity characters from the control random code, determine the transmission path of the data to be sent according to the appearance order of the identity characters, and perform transmission according to this transmission path. Each time the data to be sent arrives at a sorting device, a set of verification strings is generated based on the corresponding single-point verification data and transmitted to the data processing center;
[0021] Receive all the verification strings, generate temporary verification data, verify the validity of the temporary verification data, and send an execution instruction to the sorting device when the verification passes.
[0022] Preferably, when the verification fails, determine the transmission interval segment where the data appears abnormally according to the received temporary verification data, mark this transmission interval segment, and notify the relevant personnel to perform exception handling.
[0023] Another object of the present invention is to provide a data transmission system between multiple sorting devices, and the system includes:
[0024] A local area network construction module, used to build a sorting device local area network based on each gateway. The connection relationship between each sorting device and the gateway is recorded in the sorting device local area network, and a data processing center is included in the sorting device local area network;
[0025] An analog test module, used to build an array of virtual spaces of sorting devices, mark the positions of each sorting device, perform random transfer of test data, and record the test data received by each sorting device;
[0026] A function construction module, used to build a single-point verification function according to the obtained test data. The data processing center randomly obtains multiple groups of test data to build a path control function, and the data processing center stores all the single-point verification functions;
[0027] A data verification module, used to determine the transmission path of the data to be sent according to the path control function and perform transmission on the data to be sent. During this process, receive the temporary verification data sent by the sorting device and verify the validity of the data.
[0028] Preferably, the analog test module includes:
[0029] A device numbering unit, used to build an array of virtual spaces of sorting devices, determine the numbers of each sorting device, mark them in each array of virtual spaces of sorting devices, and randomly select a sorting device as the starting device;
[0030] A first data transmission unit, used to read the real-time time value, use the real-time time value as a variable to determine the transfer target of the test data, and transfer the test data based on the transfer target;
[0031] A data forwarding unit, which is used to process the test data according to a preset rule and forward it again when the sorting device receives the test data until the number of sorting devices that receive the test data reaches a preset value.
[0032] Preferably, the function construction module includes:
[0033] A data extraction unit, which is used to extract multiple test data received by each sorting device, record the number of the test data and the corresponding test data content, generate test data coordinates, where the abscissa of the test data coordinates is the number of the test data and the ordinate is the test data content;
[0034] A single-point function construction unit, which is used to import the test data coordinates corresponding to each sorting device into a data fitting tool to generate a corresponding single-point verification function;
[0035] A control function construction unit, which is used to randomly obtain multiple groups of test data through a data processing center, perform function fitting through a data fitting tool to obtain a path control function, and store the path control function and all single-point verification functions.
[0036] Preferably, the data verification module includes:
[0037] An encoding generation unit, which is used to obtain the data to be sent, import one or more random variables into the path control function, and generate a control random code through the path control function;
[0038] A second data transmission unit, which is used to extract identity characters from the control random code, determine the transmission path of the data to be sent according to the appearance order of the identity characters, and perform transmission according to the transmission path. When the data to be sent arrives at a sorting device, a group of verification strings is generated based on the corresponding single-point verification data and transmitted to the data processing center;
[0039] A validity verification unit, which is used to receive all verification strings, generate temporary verification data, verify the validity of the temporary verification data, and send an execution instruction to the sorting device when the verification passes.
[0040] Preferably, when the verification fails, determine the transmission interval segment where the data appears abnormally according to the received temporary verification data, mark the transmission interval segment, and notify relevant personnel to perform exception handling.
[0041] A data transmission method between multiple sorting devices provided by the present invention spreads the data to be transmitted within a local area network by constructing a local area network, randomly limits the data flow path, and performs a single-point verification of the data based on an independent sorting device every time it reaches a sorting device, and determines whether the data is valid according to the verification result, ensuring the security of the data. Description of the Drawings
[0042] Figure 1 It is a flowchart of a data transmission method between multiple sorting devices provided by an embodiment of the present invention;
[0043] Figure 2 It is a flowchart of the steps of constructing a virtual space array of sorting devices, marking the positions of each sorting device, randomly transmitting test data, and recording the test data received by each sorting device provided by an embodiment of the present invention;
[0044] Figure 3 It is a flowchart of the steps of constructing a single-point verification function according to the obtained test data, randomly obtaining multiple groups of test data by a data processing center, constructing a path control function, and storing all single-point verification functions by the data processing center provided by an embodiment of the present invention;
[0045] Figure 4 It is a flowchart of the steps of determining the transmission path of data to be sent according to the path control function, transmitting the data to be sent, and receiving the temporary verification data sent by the sorting device and verifying the validity of the verification data during this process provided by an embodiment of the present invention;
[0046] Figure 5 It is an architecture diagram of a data transmission system between multiple sorting devices provided by an embodiment of the present invention;
[0047] Figure 6 It is an architecture diagram of a simulation test module provided by an embodiment of the present invention;
[0048] Figure 7 It is an architecture diagram of a function construction module provided by an embodiment of the present invention;
[0049] Figure 8 It is an architecture diagram of a data verification module provided by an embodiment of the present invention. Detailed Description of the Invention
[0050] In order to make the objectives, technical solutions and advantages of the present invention clearer and more understandable, the present invention will be further described in detail below with reference to 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 used to limit the present invention.
[0051] As Figure 1 shown, it is a flowchart of a data transmission method between multiple sorting devices provided by an embodiment of the present invention, and the method includes:
[0052] S100, constructing a local area network of sorting devices based on each gateway, recording the connection relationship between each sorting device and the gateway in the local area network of sorting devices, and the local area network of sorting devices includes a data processing center.
[0053] In this step, a local area network of sorting devices is constructed based on each gateway. In the local area network of sorting devices, one gateway corresponds to multiple sorting devices, and all gateways are connected to the data processing center. When performing internal data transmission, the data processing center is used to issue data transmission instructions, and the sorting devices transmit the data to be sent according to the data transmission instructions. In the local area network of sorting devices, the gateway to which each sorting device is connected is specified, so each sorting device can transmit data to any sorting device in the local area network of sorting devices.
[0054] S200. Construct a virtual space array of sorting devices, mark the positions of each sorting device, perform random transmission of test data, and record the test data received by each sorting device.
[0055] In this step, a virtual space array of sorting devices is constructed. The virtual space array of sorting devices is constructed in a three-dimensional space and has a spherical structure as a whole. All sorting devices are marked on this spherical structure. The data transmission relationship between the sorting devices on the spherical structure will be directly mapped to the local area network of sorting devices. For example, in the virtual space array of sorting devices, if sorting device A transmits data to sorting device B, then in the actual local area network of sorting devices, the corresponding sorting device A will transmit the corresponding test data to sorting device B. During this process, each sorting device records the test data passing through itself. During the data transmission process, the data is randomly transmitted in the virtual space array of sorting devices, so the test data is randomly transmitted between the sorting devices to obtain randomly generated test data.
[0056] S300. Construct a single-point verification function based on the obtained test data. The data processing center randomly obtains multiple groups of test data, constructs a path control function, and the data processing center stores all the single-point verification functions.
[0057] In this step, a single-point verification function is constructed based on the obtained test data. Since the test data is randomly generated, the single-point verification function generated based on the test data has complete randomness, and the external cannot determine the specific information of the single-point verification function through the law of data transmission. Similarly, the data processing center randomly collects multiple groups of test data from each sorting device and performs function fitting based on the collected test data to obtain a path control function. The path control function is used to generate a random path during subsequent data transmission. The data processing center stores all the single-point verification functions for identity verification.
[0058] S400. Determine the transmission path of the data to be sent according to the path control function and transmit the data to be sent. During this process, receive the temporary verification data sent by the sorting device and verify the validity of the verification data.
[0059] In this step, determine the transmission path of the data to be sent according to the path control function. Import one or more random variables into the path control function. The source of the random variable can be the data to be sent. Specifically, intercept a preset number of binary characters from the data to be sent, convert them into decimal characters, and import them into the path control function as random variables. Determine the transmission path of the current data to be sent according to the calculated value of the path control function, and transmit the data to be sent according to the transmission path. When the data to be sent passes through the specified sorting device, perform single-point verification through the single-point verification function corresponding to the sorting device, and send the verification result to the data processing center. The data processing center analyzes all the verification results to determine the validity of the data. When the data is valid, send an execution instruction to the corresponding sorting device. The execution instruction is a one-way instruction and only supports being directly sent from the data control center to the specified sorting device through the gateway. When the sorting device receives the execution instruction, it executes the currently received data to be sent.
[0060] As Figure 2 shown, as a preferred embodiment of the present invention, the steps of constructing an array of virtual spaces of sorting devices, marking the positions of each sorting device, and randomly transmitting test data and recording the test data received by each sorting device specifically include:
[0061] S201, construct an array of virtual spaces of sorting devices, determine the numbers of each sorting device, mark them in the array of virtual spaces of each sorting device, and randomly select a sorting device as the starting device.
[0062] In this step, construct an array of virtual spaces of sorting devices. Specifically, construct a three-dimensional space, generate a spherical surface in the three-dimensional space, count the total number of sorting devices, set the corresponding number of coordinate points within the spherical surface, and the coordinate points are evenly distributed at various positions on the spherical surface. Each coordinate point corresponds to the number of a sorting device. Then each sorting device will correspond to a coordinate, and randomly select a sorting device from all the above sorting devices as the starting device.
[0063] S202, read the real-time time value, use the real-time time value as a variable to determine the transfer target of the test data, and transfer the test data based on the transfer target.
[0064] In this step, the real-time time value is read, and characters with a preset length are extracted from the real-time time value. Specifically, the real-time time value is in seconds and the precision is 6 digits after the decimal point. Then, the six digits after the decimal point of the real-time time value are extracted and used as a variable. This variable is split into three parts, namely the X-axis characters, the Y-axis characters, and the Z-axis characters. The three groups of characters respectively correspond to the first and second digits after the decimal point, the third and fourth digits after the decimal point, and the fifth and sixth digits after the decimal point. A simple example is that the six digits after the decimal point of the real-time time value are T1T2T3T4T5T6. Then the X-axis characters are T1T2, the Y-axis characters are T3T4, and the Z-axis characters are T5T6. Taking the coordinates of the starting device (represented by the first device) as an example, according to the X-axis characters, Y-axis characters, and Z-axis characters, the coordinate point where the starting device is located is rotated. The rotation angle around the X-axis is 360*T1T2 / 100, the rotation angle around the Y-axis is 360*T3T4 / 100, and the rotation angle around the Z-axis is 360*T5T6 / 100. At this time, a new coordinate point is obtained, and the coordinate corresponding to the sorting device (represented by the second device) closest to the new coordinate point is determined, and then this sorting device is selected. The above process shows that the test data is sent from the first device to the second device. Then, based on the local area network of the corresponding sorting device, the test data is synchronously transmitted, and the time value when the data arrives at the second device is recorded. Subsequently, this time value is used as the real-time time value for the next round of data transfer. The starting content of the test data is the number of the starting device.
[0065] S203. When the sorting device receives the test data, it processes the test data according to the preset rules and forwards it again until the number of test data received by all sorting devices reaches the preset value.
[0066] In this step, when the sorting device receives the test data, it processes the test data according to the preset rules. Specifically, when the test data arrives at each sorting device, the value in the test data is added to the number of the current sorting device to obtain new test data. For example, if the number of the starting device is N1 and the number of the second device is N2, then the content of the test data received by the starting device is N1, and the test data received by the second device is N1 + N2. The test data is continuously transmitted according to the above steps until each sorting device records at least the preset number of test data. For example, at least 5 groups of test data are recorded, and the values in the test data are B1, B2, B3, B4, and B5 respectively.
[0067] As Figure 3 shown, as a preferred embodiment of the present invention, the steps of constructing a single-point verification function according to the obtained test data, randomly obtaining multiple groups of test data by the data processing center, constructing a path control function, and storing all single-point verification functions by the data processing center specifically include:
[0068] S301. Extract multiple pieces of test data received by each sorting device, record the numbers of the test data and the corresponding test data contents, generate test data coordinates, where the abscissa of the test data coordinates is the number of the test data and the ordinate is the test data content.
[0069] In this step, extract multiple pieces of test data received by each sorting device to construct test data coordinates. For example, if the five groups of test data received by a sorting device are B1, B2, B3, B4, and B5 respectively, and the recorded order of the above five groups of test data is B2, B1, B5, B4, and B3, then the constructed test data coordinates are (1, B2), (2, B1), (3, B5), (4, B4), (5, B3).
[0070] S302. Import the test data coordinates corresponding to each sorting device into a data fitting tool to generate corresponding single-point verification functions.
[0071] In this step, import the test data coordinates corresponding to each sorting device into a data fitting tool. The data fitting tool can be Matlab or CurveFitter. Since the values in the test data are increasing, a polynomial function can be used for fitting. Different fitting accuracies can be obtained by setting different degrees for fitting to obtain single-point verification functions. For example, .
[0072] S303. Randomly obtain multiple groups of test data through the data processing center, perform function fitting through the data fitting tool to obtain a path control function, and store the path control function and all single-point verification functions.
[0073] In this step, randomly obtain multiple groups of test data through the data processing center. Each time, obtain a group of test data. For example, the test data obtained in 1 to 5 times are C1, C2, C3, C4, and C5 respectively. Similarly, five groups of coordinates are constructed, and a path control function is obtained through fitting by the corresponding data fitting tool. All sorting devices send the obtained single-point verification functions to the data processing center for storage. To ensure data security, the single-point verification functions and the path control function are updated regularly.
[0074] For example, Figure 4 As shown, as a preferred embodiment of the present invention, the step of determining the transmission path of the data to be sent according to the path control function and transmitting the data to be sent, and receiving the temporary verification data sent by the sorting device and verifying the validity of the verification data in this process specifically includes:
[0075] S401. Obtain the data to be sent, import one or more random variables into the path control function, and generate a control random code through the path control function.
[0076] In this step, obtain the data to be sent, process the data to be sent to obtain random variables. Specifically, one or more binary characters can be intercepted from the data to be sent and converted into decimal characters to obtain random variables, and then substitute them into the path control function one by one. Each time a calculated value is obtained, it is used as the control random code.
[0077] S402. Extract the identity characters from the control random code, determine the transmission path of the data to be sent according to the appearance order of the identity characters, and perform transmission according to this transmission path. Every time the data to be sent arrives at a sorting device, a set of verification strings is generated based on the corresponding single-point verification data and transmitted to the data processing center.
[0078] In this step, extract the identity characters from the control random code, perform character boxing on the calculated value. According to the total number of sorting devices, box the identity characters with the corresponding number of digits each time. For example, if the total number of sorting devices is 90, then in the order from left to right, select a two-digit character from the calculated value each time. If the calculated value is M1M2M3M4M5M6, after boxing, 5 groups of characters are obtained, namely M1M2, M2M3, M3M4, M4M5, and M5M6. Determine the corresponding sorting device as the transmission node of the transmission path according to the characters, and perform transmission according to this transmission path. Every time the data to be sent arrives at a sorting device, when the sorting device receives the data to be sent, perform downsampling on the data to be sent according to the preset rules. Downsampling can be performed in multiple rounds until the data volume of the downsampled data to be sent (represented by the downsampled data) is less than the preset value. Convert the downsampled data into decimal characters, import them into the corresponding single-point verification function to obtain the verification string, and send the verification string to the data processing center.
[0079] S403. Receive all the verification strings, generate temporary verification data, verify the validity of the temporary verification data, and send an execution instruction to the sorting device when the verification passes.
[0080] In this step, all verification strings are received and concatenated in the order of reception to obtain temporary verification data. Since all single-point verification data is recorded in the data processing center and the data transmission path is determined, the entire transmission process can be simulated in the data processing center. During this process, calculations are performed through the single-point verification function to obtain a simulated string, and the simulated strings are concatenated to obtain the data to be verified. If the data to be verified is the same as the temporary verification data, it indicates that during the entire data transmission process, the data to be sent has not been tampered with and the propagation path has not changed, allowing execution. Through the above process, not only can the validity of the data be ensured, but also when data transmission is abnormal, the abnormal interval can be determined to facilitate abnormal positioning of the entire sorting equipment local area network. When the verification fails, the abnormal transmission interval of the data is determined based on the received temporary verification data, and this transmission interval is marked to notify relevant personnel to handle the abnormality, greatly improving the security of data transmission.
[0081] As Figure 5 shown, a data transmission system between multiple sorting devices provided by an embodiment of the present invention includes:
[0082] A local area network construction module 100 for constructing a sorting equipment local area network based on each gateway, recording the connection relationship between each sorting equipment and the gateway in the sorting equipment local area network, and the sorting equipment local area network includes a data processing center.
[0083] In this system, the local area network construction module 100 constructs a sorting equipment local area network based on each gateway. In the sorting equipment local area network, one gateway corresponds to multiple sorting devices, and all gateways are connected to the data processing center. When performing internal data transmission, the data processing center is used to issue data transmission instructions, and the sorting equipment transmits the data to be sent according to the data transmission instructions. In the sorting equipment local area network, the gateway to which each sorting equipment is connected is clear, so each sorting equipment can perform data transmission with any sorting equipment in the sorting equipment local area network.
[0084] A simulation test module 200 for constructing an array of sorting equipment virtual spaces, marking the positions of each sorting equipment, randomly transmitting test data, and recording the test data received by each sorting equipment.
[0085] In this system, the simulation test module 200 constructs a virtual space array of sorting devices. The virtual space array of sorting devices is constructed in a three-dimensional space and has a spherical structure as a whole. All sorting devices are marked on this spherical structure. The data transfer relationship between the sorting devices on the spherical structure will be directly mapped to the sorting device local area network. For example, in the virtual space array of sorting devices, if sorting device A transfers data to sorting device B, then in the actual sorting device local area network, the corresponding sorting device A will transfer the corresponding test data to sorting device B. During this process, each sorting device records the test data passing through itself. During the data transfer process, the data is randomly transferred in the virtual space array of sorting devices, so the test data is randomly transferred between sorting devices to obtain randomly generated test data.
[0086] The function construction module 300 is used to construct a single-point verification function according to the obtained test data. The data processing center randomly obtains multiple groups of test data and constructs a path control function. The data processing center stores all the single-point verification functions.
[0087] In this system, the function construction module 300 constructs a single-point verification function according to the obtained test data. Since the test data is randomly generated, the single-point verification function generated based on the test data has complete randomness, and the external cannot determine the specific information of the single-point verification function through the law of data transmission. Similarly, the data processing center randomly collects multiple groups of test data from each sorting device and performs function fitting based on the collected test data to obtain a path control function. The path control function is used to generate a random path during the subsequent data transmission process. The data processing center stores all the single-point verification functions for identity verification.
[0088] The data verification module 400 is used to determine the transmission path of the data to be sent according to the path control function and transmit the data to be sent. During this process, it receives the temporary verification data sent by the sorting device and verifies the validity of the verification data.
[0089] In this system, the data verification module 400 determines the transmission path of the data to be sent according to the path control function, imports one or more random variables into the path control function. The source of the random variable can be the data to be sent. Specifically, a preset number of binary characters are intercepted from the data to be sent and converted into decimal characters, which are then imported into the path control function as random variables. The transmission path of the current data to be sent is determined according to the calculated value of the path control function, and the data to be sent is transmitted according to the transmission path. When the data to be sent passes through the specified sorting device, single-point verification is performed through the single-point verification function corresponding to the sorting device, and the verification result is sent to the data processing center. The data processing center analyzes all the verification results to determine the validity of the data. When the data is valid, the corresponding sorting device sends an execution instruction. The execution instruction is a one-way instruction and only supports being directly sent from the data control center to the specified sorting device through the gateway. When the sorting device receives the execution instruction, it executes the currently received data to be sent.
[0090] As Figure 6 shown, as a preferred embodiment of the present invention, the simulation test module 200 includes:
[0091] The device numbering unit 201 is used to construct an array of virtual spaces for sorting devices, determine the numbers of each sorting device, mark them in the array of virtual spaces for each sorting device, and randomly select a sorting device as the starting device.
[0092] In this module, the device numbering unit 201 constructs an array of virtual spaces for sorting devices. Specifically, a three-dimensional space is constructed, a spherical surface is generated in the three-dimensional space, the total number of sorting devices is counted, and the corresponding number of coordinate points are set within the spherical surface. The coordinate points are evenly distributed at various positions on the spherical surface, and each coordinate point corresponds to the number of a sorting device. Then each sorting device will correspond to a coordinate, and a sorting device is randomly selected from all the above sorting devices as the starting device.
[0093] The first data transmission unit 202 is used to read the real-time time value, use the real-time time value as a variable to determine the transfer target of the test data, and transfer the test data based on the transfer target.
[0094] In this module, the first data transmission unit 202 reads the real-time time value, extracts characters of a preset length from the real-time time value. Specifically, the real-time time value is in seconds and has a precision of 6 digits after the decimal point. Then, extract the six digits after the decimal point of the real-time time value, use it as a variable, and split it into three parts, namely the X-axis characters, the Y-axis characters, and the Z-axis characters. The three groups of characters correspond to the first and second digits, the third and fourth digits, and the fifth and sixth digits after the decimal point respectively. A simple example is that the six digits after the decimal point of the real-time time value are T1T2T3T4T5T6. Then the X-axis characters are T1T2, the Y-axis characters are T3T4, and the Z-axis characters are T5T6. Taking the coordinates of the starting device (represented by the first device) as an example, rotate the coordinate point where the starting device is located according to the X-axis characters, Y-axis characters, and Z-axis characters. The angle of rotation around the X-axis is 360*T1T2 / 100, the angle of rotation around the Y-axis is 360*T3T4 / 100, and the angle of rotation around the Z-axis is 360*T5T6 / 100. At this time, a new coordinate point is obtained, determine the coordinates corresponding to the sorting device (represented by the second device) closest to the new coordinate point, and then select this sorting device. The above process shows that the test data is sent from the first device to the second device. Then, based on the local area network of the corresponding sorting device, the test data is synchronously transmitted, and the time value when the data arrives at the second device is recorded. Subsequently, this time value is used as the real-time time value for the next round of data transfer. The starting content of the test data is the number of the starting device.
[0095] The data forwarding unit 203 is used to process the test data according to preset rules when the sorting device receives the test data, and forward it again until the number of test data received by all sorting devices reaches the preset value.
[0096] In this module, when the sorting device receives the test data, the data forwarding unit 203 processes the test data according to preset rules. Specifically, when the test data arrives at each sorting device, add the number of the current sorting device to the value in the test data to obtain new test data. For example, if the number of the starting device is N1 and the number of the second device is N2, then the content of the test data received by the starting device is N1, and the test data received by the second device is N1 + N2. Continuously transfer the test data according to the above steps until each sorting device records at least a preset number of test data. For example, at least 5 groups of test data are recorded, and the values in the test data are B1, B2, B3, B4, and B5 respectively.
[0097] As Figure 7 shown, as a preferred embodiment of the present invention, the function construction module 300 includes:
[0098] The data extraction unit 301 is used to extract multiple test data received by each sorting device, record the numbers of the test data and the corresponding test data contents, and generate test data coordinates. The abscissa of the test data coordinates is the number of the test data, and the ordinate is the test data content.
[0099] In this module, the data extraction unit 301 extracts multiple test data received by each sorting device to construct test data coordinates. For example, five groups of test data received by a sorting device are B1, B2, B3, B4, and B5 respectively, and the recorded order of the above five groups of test data is B2, B1, B5, B4, and B3. Then the constructed test data coordinates are (1, B2), (2, B1), (3, B5), (4, B4), (5, B3).
[0100] The single-point function construction unit 302 is used to import the test data coordinates corresponding to each sorting device into a data fitting tool, so as to generate corresponding single-point verification functions.
[0101] In this module, the single-point function construction unit 302 imports the test data coordinates corresponding to each sorting device into a data fitting tool. The data fitting tool can use matlab or CurveFitter. Since the values in the test data are increasing, a polynomial function can be used for fitting. Different fitting accuracies can be obtained by setting different degrees for fitting to obtain single-point verification functions. For example 。
[0102] The control function construction unit 303 is used to randomly obtain multiple groups of test data through the data processing center, perform function fitting through the data fitting tool to obtain a path control function, and store the path control function and all single-point verification functions.
[0103] In this module, the control function construction unit 303 randomly obtains multiple groups of test data through the data processing center. Each time a group of test data is obtained. For example, the test data obtained in 1 to 5 times are C1, C2, C3, C4, and C5 respectively. Similarly, five groups of coordinates are constructed, and a path control function is obtained through the corresponding data fitting tool. All sorting devices send the obtained single-point verification functions to the data processing center for storage. To ensure data security, the single-point verification functions and the path control function are updated regularly.
[0104] Such as Figure 8 As shown, as a preferred embodiment of the present invention, the data verification module 400 includes:
[0105] The encoding generation unit 401 is used to obtain the data to be sent, import one or more random variables into the path control function, and generate a control random code through the path control function.
[0106] In this module, the encoding generation unit 401 obtains the data to be sent, processes the data to be sent to obtain random variables. Specifically, one or more binary characters can be intercepted from the data to be sent, converted into decimal characters to obtain random variables, and then substituted into the path control function one by one. Each time a calculated value is obtained, it is used as the control random code.
[0107] The second data transmission unit 402 is used to extract identity characters from the control random code, determine the transmission path of the data to be sent according to the appearance order of the identity characters, and perform transmission according to this transmission path. Every time the data to be sent arrives at a sorting device, a set of verification strings is generated based on the corresponding single-point verification data and transmitted to the data processing center.
[0108] In this module, the second data transmission unit 402 extracts identity characters from the control random code, performs character framing on the calculated value. According to the total number of sorting devices, the identity characters of the corresponding number of digits are framed each time. For example, if the total number of sorting devices is 90, then in the order from left to right, a two-digit character is framed from the calculated value each time. If the calculated value is M1M2M3M4M5M6, after framing, 5 groups of characters are obtained, namely M1M2, M2M3, M3M4, M4M5, and M5M6. The corresponding sorting device is determined according to the characters as the transmission node of the transmission path, and transmission is performed according to this transmission path. Every time the data to be sent arrives at a sorting device, when the sorting device receives the data to be sent, downsampling is performed on the data to be sent according to a preset rule. Downsampling can be performed in multiple rounds until the data volume of the downsampled data to be sent (represented by the downsampled data) is less than the preset value. The downsampled data is converted into decimal characters and imported into the corresponding single-point verification function to obtain a verification string, and the verification string is sent to the data processing center.
[0109] The validity verification unit 403 is used to receive all verification strings, generate temporary verification data, verify the validity of the temporary verification data, and send an execution instruction to the sorting device when the verification is passed.
[0110] In this module, the validity verification unit 403 receives all verification strings, concatenates them in the received order to obtain temporary verification data. Since all single-point verification data is recorded in the data processing center and the data transmission path is determined, the entire transmission process can be simulated in the data processing center. During this process, calculations are performed through the single-point verification function to obtain a simulated string, and the simulated strings are concatenated to obtain the data to be verified. If the data to be verified is the same as the temporary verification data, it indicates that during the entire data transmission process, the data to be sent has not been tampered with and the propagation path has not changed, and execution is allowed. Through the above process, not only can the validity of the data be ensured, but also when data transmission is abnormal, the interval where the abnormality occurs can be determined, so as to locate the abnormality in the entire sorting device local area network. When the verification fails, the transmission interval where the data abnormality occurs is determined according to the received temporary verification data, and this transmission interval is marked to notify relevant personnel to handle the abnormality, greatly improving the security of data transmission.
[0111] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, and improvements made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A data transmission method between multiple sorting devices, characterized in that, The method includes: Construct a sorting device local area network based on each gateway. The connection relationships between each sorting device and the gateway are recorded in the sorting device local area network, and a data processing center is included in the sorting device local area network; Construct a sorting device virtual space array, mark the positions of each sorting device, randomly transfer test data, and record the test data received by each sorting device; Construct a single-point verification function according to the obtained test data. The data processing center randomly obtains multiple groups of test data, constructs a path control function, and the data processing center stores all the single-point verification functions; Determine the transmission path of the data to be sent according to the path control function, and transmit the data to be sent. During this process, receive the verification string sent by the sorting device, generate temporary verification data, and verify the validity of the verification data.
2. The data transmission method between multiple sorting devices according to claim 1, characterized in that The step of constructing a sorting device virtual space array, marking the positions of each sorting device, randomly transferring test data, and recording the test data received by each sorting device specifically includes: Construct a sorting device virtual space array, determine the numbers of each sorting device, mark them in each sorting device virtual space array, and randomly select a sorting device as the starting device; Read the real-time time value, use the real-time time value as a variable, determine the transfer target of the test data, and transfer the test data based on the transfer target; When a sorting device receives the test data, process the test data according to a preset rule and forward it again until the number of test data received by all sorting devices reaches a preset value.
3. The data transmission method between multiple sorting devices according to claim 1, wherein The step of constructing a single-point verification function according to the obtained test data, the data processing center randomly obtains multiple groups of test data, constructs a path control function, and the data processing center stores all the single-point verification functions specifically includes: Extract multiple test data received by each sorting device, record the numbers of the test data and the corresponding test data content, generate test data coordinates, where the abscissa of the test data coordinates is the number of the test data and the ordinate is the test data content; Import the test data coordinates corresponding to each sorting device into a data fitting tool to generate the corresponding single-point verification function; Randomly obtain multiple groups of test data through the data processing center, perform function fitting through the data fitting tool to obtain the path control function, and store the path control function and all the single-point verification functions.
4. The data transmission method between multiple sorting devices according to claim 1, characterized in that The step of determining the transmission path of the data to be sent according to the path control function, and transmitting the data to be sent. During this process, receive the verification string sent by the sorting device, generate temporary verification data, and verify the validity of the verification data specifically includes: Obtain the data to be sent, import one or more random variables into the path control function, and generate a control random code through the path control function; Extract the identity characters from the control random code, determine the transmission path of the data to be sent according to the appearance order of the identity characters, and transmit it according to this transmission path. Every time the data to be sent reaches a sorting device, generate a group of verification strings based on the corresponding single-point verification data and transmit them to the data processing center; Receive all verification strings, generate temporary verification data, verify the validity of the temporary verification data, and send an execution instruction to the sorting device when the verification passes.
5. The data transmission method between multiple sorting devices according to claim 4, characterized in that When the verification fails, determine the transmission interval segment where the data is abnormal according to the received temporary verification data, mark the transmission interval segment, and notify the relevant personnel to handle the abnormality.
6. A data transmission system between multiple sorting devices, characterized in that, The system includes: A local area network construction module, which is used to construct a sorting device local area network based on each gateway. The connection relationship between each sorting device and the gateway is recorded in the sorting device local area network, and a data processing center is included in the sorting device local area network; A simulation test module, which is used to construct a virtual space array of sorting devices, mark the positions of each sorting device, randomly transfer test data, and record the test data received by each sorting device; A function construction module, which is used to construct a single-point verification function according to the obtained test data. The data processing center randomly obtains multiple groups of test data, constructs a path control function, and the data processing center stores all single-point verification functions; A data verification module, which is used to determine the transmission path of the data to be sent according to the path control function, transmit the data to be sent, and in this process, receive the verification string sent by the sorting device, generate temporary verification data, and verify the validity of the data.
7. The data transmission system between multiple sorting devices according to claim 6, wherein, The simulation test module includes: A device numbering unit, which is used to construct a virtual space array of sorting devices, determine the numbers of each sorting device, mark them in each virtual space array of sorting devices, and randomly select a sorting device as the starting device; A first data transmission unit, which is used to read the real-time time value, use the real-time time value as a variable, determine the transfer target of the test data, and transfer the test data based on the transfer target; A data forwarding unit, which is used to process the test data according to the preset rules and forward it again when the sorting device receives the test data until the number of test data received by all sorting devices reaches the preset value.
8. The data transmission system between multiple sorting devices according to claim 6, characterized in that The function construction module includes: A data extraction unit, which is used to extract multiple test data received by each sorting device, record the number of the test data and the corresponding test data content, generate a test data coordinate, the abscissa of the test data coordinate is the number of the test data, and the ordinate is the test data content; A single-point function construction unit, which is used to import the test data coordinates corresponding to each sorting device into the data fitting tool to generate the corresponding single-point verification function; A control function construction unit, which is used to randomly obtain multiple groups of test data through the data processing center, perform function fitting through the data fitting tool to obtain the path control function, and store the path control function and all single-point verification functions.
9. The data transmission system between multiple sorting devices according to claim 6, characterized in that The data verification module includes: An encoding generation unit, which is used to obtain the data to be sent, import one or more random variables into the path control function, and generate a control random code through the path control function; The second data transmission unit is used to extract identity characters from the control random coding, determine the transmission path of the data to be sent according to the appearance order of the identity characters, and perform transmission according to the transmission path. Each time the data to be sent arrives at a sorting device, a set of verification strings is generated based on the corresponding single-point verification data and transmitted to the data processing center; The validity verification unit is used to receive all the verification strings, generate temporary verification data, verify the validity of the temporary verification data, and send an execution instruction to the sorting device when the verification passes.
10. The data transmission system between multiple sorting devices according to claim 9, characterized in that, When the verification fails, determine the transmission interval segment where the data appears abnormally according to the received temporary verification data, mark the transmission interval segment, and notify the relevant personnel to handle the abnormality.
Citation Information
Patent Citations
Equipment security identity authentication method and system based on Internet of Things
CN116886438A
Networking equipment monitoring method and monitoring terminal for network security
CN118827136A