A Smart Blockchain Peer-to-Peer Real-Time Encrypted Communication Method and System
By obtaining the signal-to-noise ratio and transmission duration between devices, and selecting and optimizing the signal transmission path, the problems of signal transmission quality and duration in point-to-point instant messaging are solved, achieving efficient and stable communication.
Patent Information
- Application Number
- CN202510105024.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2045-01-23
AI Technical Summary
In point-to-point instant messaging, how to effectively solve the problems of signal transmission quality and transmission time, especially in complex and dynamically changing communication environments, to ensure the immediacy and stability of communication.
By obtaining the signal-to-noise ratio and transmission time between devices, the optimal signal transmission path is selected, and dynamic adjustments are made during signal transmission, including signal encryption, error correction decoding, and path optimization, to ensure communication quality and efficiency.
It improves the reliability, stability and efficiency of communication, significantly enhances the user experience, and ensures that signals reach the target device quickly and accurately, especially in complex and dynamically changing communication environments.
Smart Images

Figure CN119561784B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of instant messaging technology, specifically to an intelligent blockchain peer-to-peer instant encrypted communication method and system. Background Art
[0002] In the development of modern communication technology, peer-to-peer instant messaging has become an important application area. Traditional instant messaging technology mainly relies on centralized servers for information transmission. While this model enables instant communication between large numbers of users, it also has significant drawbacks, such as single points of failure, high server load, and data privacy issues. With the development of blockchain technology, decentralized peer-to-peer communication has become an emerging trend. Utilizing blockchain's distributed ledger technology, many problems in traditional centralized communication can be effectively solved. Blockchain technology is essentially a decentralized database, where each node can store and verify data. This characteristic enables blockchain to guarantee... While blockchain technology offers significant advantages in data security and transparency, applying it to instant messaging and achieving efficient and stable peer-to-peer communication remains a pressing technical challenge. In peer-to-peer communication, signal transmission quality and transmission time are two crucial factors affecting communication effectiveness. Signal-to-noise ratio (SNR) is a key indicator of signal transmission quality; a higher SNR indicates less noise interference during transmission and higher communication quality. Therefore, testing and obtaining the SNR between devices and selecting the optimal transmission path is crucial for ensuring communication quality. Transmission time is another important factor affecting peer-to-peer communication. In actual communication, the transmission time between devices is influenced by various factors, such as the device's signal reception range and the choice of transmission path. To ensure real-time communication, it is essential to test and optimize the transmission time between devices to select the optimal transmission path and achieve fast and stable communication.
[0003] To address the aforementioned issues, this invention proposes an intelligent blockchain peer-to-peer instant messaging method and system. By acquiring the signal-to-noise ratio and transmission duration between devices, the optimal signal transmission path is selected, and dynamic adjustments are made during signal transmission to ensure communication quality and efficiency. Summary of the Invention
[0004] This invention provides an intelligent blockchain peer-to-peer real-time encrypted communication method and system, which helps to solve the problems mentioned in the background art.
[0005] This invention provides the following technical solution: an intelligent blockchain peer-to-peer real-time encrypted communication method and system, comprising:
[0006] Obtain all devices and label them as the first device, the second device, ..., the Nth device;
[0007] The same encryption key is generated and distributed for each device to ensure the security of signal transmission between devices.
[0008] The encryption key is used for symmetric encryption of the signal;
[0009] The signal-to-noise ratio (SNR) of a signal transmitted between any two devices is tested according to the signal-to-noise ratio (SNR) testing strategy, specifically including:
[0010] Obtain all devices; all devices constitute the first device set.
[0011] S1. Randomly select one device from the first set of devices;
[0012] S2. Obtain the signal reception range of the selected device;
[0013] S3. The selected device sends signals to all devices within the signal reception range;
[0014] S4. All devices within the signal receiving range of the selected device receive the signal sent by the selected device, and the signal-to-noise ratio of signal transmission during the process of all devices within the signal receiving range of the selected device receiving the signal sent by the selected device is calculated and stored.
[0015] S5. Remove the selected devices from the first set of devices;
[0016] S6. Repeat S1-S5 until the first set of devices contains only one device;
[0017] The signal-to-noise ratio of the signal transmitted between any two devices is obtained through S1-S6;
[0018] The transmission duration test strategy is used to test the duration required for a signal to be transmitted between any two devices.
[0019] For each device;
[0020] Obtain the signal reception range of the device;
[0021] The user sends a signal to the target device and determines whether the target device receives the signal.
[0022] If the target device does not receive a signal, a signal transmission path is selected according to the signal transmission path selection strategy.
[0023] If the target device receives a signal, it is determined whether the signal received by the target device conforms to the standard according to the first judgment strategy;
[0024] If the signal received by the target device conforms to the standard, the user can directly send the signal to the target device.
[0025] If the signal received by the target device does not conform to the standard, a signal transmission path is selected according to the signal transmission path selection strategy.
[0026] In the signal transmission path;
[0027] The signal is dynamically adjusted according to the adjustment strategy.
[0028] Optionally, the step of testing the transmission time required for a signal to be transmitted between any two devices according to the transmission time test strategy specifically includes:
[0029] Obtain all devices; all devices constitute a second set of devices.
[0030] S7. Select any device from the second set of devices;
[0031] S8. Obtain the signal reception range of the selected device;
[0032] S9. The selected device sends signals to all devices within the signal reception range;
[0033] S10. All devices within the signal receiving range of the selected device receive the signal sent by the selected device, and calculate and store the signal transmission time required during the process of all devices within the signal receiving range of the selected device receiving the signal sent by the selected device.
[0034] S11. Remove the selected devices from the second set of devices;
[0035] S12. Repeat S7-S11 until the second set of devices contains only one device;
[0036] The time required for a signal to be transmitted between any two devices can be obtained through S7-S12.
[0037] Optionally, determining whether the signal received by the target device conforms to the standard according to the first determination strategy specifically includes:
[0038] Set the first error threshold for signal-to-noise ratio;
[0039] The user sends a signal to the target device;
[0040] The target device receives signals sent by the user;
[0041] The signal-to-noise ratio (SNR) of the acquired signal during transmission from the user to the target device is denoted as the total SNR.
[0042] If the total signal-to-noise ratio is greater than or equal to the first error threshold of the signal-to-noise ratio, then the signal received by the target device is considered to meet the standard;
[0043] If the total signal-to-noise ratio is less than the first error threshold for signal-to-noise ratio, the signal received by the target device is deemed not to meet the standard.
[0044] Optionally, the step of selecting the signal transmission path according to the signal transmission path selection strategy specifically includes:
[0045] Get the user's location;
[0046] For each device, determine whether the user's location is within the device's signal reception range;
[0047] All devices within the signal reception range that include the user's location constitute the first set;
[0048] The user sends signals to all devices in the first set;
[0049] All devices in the first set receive signals sent by the user, and the signal-to-noise ratio and required duration of signal transmission during the process of all devices in the first set receiving signals sent by the user are calculated and stored.
[0050] Optionally, the step of selecting the signal transmission path according to the signal transmission path selection strategy further includes:
[0051] Starting from the user's location, arbitrarily select one device from the first set as the first destination point, and the selected device is denoted as the first selected device;
[0052] All devices within the signal reception range that include the location of the first selected device constitute the second set. Any device in the second set is randomly selected as the second destination point. The selected device is denoted as the second selected device. The first selected device is removed from all devices.
[0053] All devices within the signal reception range that include the location of the second selected device constitute the third set. Any device in the third set is randomly selected as the third destination point. The selected device is denoted as the third selected device. The second selected device is removed from all devices.
[0054] According to the above method, until there is no device within the signal reception range that contains the location of the Nth selected device, an alternative path is formed. The alternative path is specifically a signal transmission path from the starting point to the first selected device, the second selected device, ... the Nth selected device.
[0055] Based on the above methods, multiple alternative paths are generated;
[0056] All alternative paths that simultaneously contain the user's location and the target device constitute the set of alternative paths;
[0057] For each path in the set of alternative paths;
[0058] The path of the signal transmitted from the user's location to the target device is recorded as the signal path.
[0059] For each signal path, obtain the time required for signal transmission and sort them in ascending order of time;
[0060] Select the signal paths that are ranked first X to form a set of signal paths;
[0061] For each path in the signal path set, obtain the number of devices contained in the path and sort them in ascending order of the number of devices contained;
[0062] Select the path with the fewest devices as the signal transmission path.
[0063] Optionally, the step of dynamically adjusting the signal according to the adjustment strategy specifically includes:
[0064] Set a second error threshold for the signal-to-noise ratio;
[0065] Obtain the signal transmission path, which consists of multiple sub-paths formed between devices;
[0066] For each sub-path;
[0067] Obtain the signal-to-noise ratio of the signal transmitted on the sub-path;
[0068] If the signal-to-noise ratio of the signal transmitted on the sub-path is greater than or equal to the second error threshold of the signal-to-noise ratio, no processing is performed;
[0069] If the signal-to-noise ratio (SNR) transmitted on a sub-path is less than the second error threshold for SNR, the sub-path with an SNR less than the second error threshold for SNR is denoted as an error path.
[0070] For each error path;
[0071] The device that acquires the received signal in the error path is denoted as the first error correction device;
[0072] After receiving the signal, the first error correction device first converts the received signal into a digital signal, then performs error correction and decoding, and then performs symmetrical encryption on the digital signal after error correction and decoding and converts it into an analog signal for transmission to the next device.
[0073] Optionally, the step of dynamically adjusting the signal according to the adjustment strategy further includes:
[0074] For each sub-path;
[0075] Retrieve two devices on a subpath;
[0076] Draw a line segment with the two devices as endpoints, and denote it as the first line segment;
[0077] Draw a circle with the midpoint of the first line segment as the center and the radius of the first line segment as the length of the circle, forming a circular region;
[0078] Obtain the electrical equipment within the circular area;
[0079] Establish a first power threshold;
[0080] Establish a second power threshold;
[0081] The first power threshold is greater than the second power threshold;
[0082] If the power of the electrical equipment within the circular area is greater than or equal to the first power threshold, the device that receives the signal among the two devices is recorded as the second error correction device.
[0083] After receiving the signal, the second error correction device first converts the received signal into a digital signal and then performs error correction decoding. Then, it performs symmetric encryption on the digital signal after error correction decoding and converts it into an analog signal for transmission to the next device.
[0084] If the power of the electrical equipment within the circular area is less than the first power threshold, compare the power of the electrical equipment within the circular area with the second power threshold.
[0085] If the power of the electrical equipment within the circular area is greater than or equal to the second power threshold, the electrical equipment whose power is greater than or equal to the second power threshold is recorded as the first interference device;
[0086] If there is only one sub-path within a radius of L meters of the first interfering device, then along the signal transmission direction, obtain the second device in this sub-path;
[0087] The second device receives the signal and performs error correction and decoding.
[0088] If there are two or more connected sub-paths within a radius of L meters within the first interfering device, set a signal-to-noise ratio threshold.
[0089] Along the signal transmission direction, obtain the signal-to-noise ratio of the signal received by the second device in two or more sub-paths;
[0090] If the signal-to-noise ratio (SNR) of the signal received by the second device in two or more sub-paths is greater than the SNR threshold, then obtain the SNR of the signal received by the third device in two or more sub-paths.
[0091] If the signal-to-noise ratio (SNR) of the signal received by the third device in two or more sub-paths is greater than the SNR threshold, then the SNR of the signal received by the fourth device in two or more sub-paths is obtained, until the SNR of the signal received by the U-th device in two or more sub-paths is less than the SNR threshold.
[0092] After receiving the signal, the Uth device first converts the received signal into a digital signal, then performs error correction and decoding, and then performs symmetric encryption on the digital signal after error correction and decoding and converts it into an analog signal for transmission to the next device.
[0093] Optional, including:
[0094] A signal transmission module is installed on all devices and control modules, with one signal transmission module installed on each device.
[0095] A signal receiving module is installed on all devices, with one signal receiving module installed on each device.
[0096] The control module is used by users to send control commands;
[0097] The signal-to-noise ratio (SNR) test module is used to test the SNR of signals transmitted between any two devices according to the SNR test strategy.
[0098] The transmission duration test module is used to test the duration required for a signal to be transmitted between any two devices according to the transmission duration test strategy.
[0099] The signal decryption module is used by the receiving device to convert analog signals into digital signals and then decrypt the digital signals.
[0100] A signal encryption module is used by devices that transmit signals to encrypt digital signals.
[0101] The present invention has the following beneficial effects:
[0102] 1. This intelligent blockchain peer-to-peer real-time encrypted communication method and system optimizes signal-to-noise ratio (SNR) transmission by testing the SNR between any two devices according to a signal-to-noise ratio (SNR) testing strategy. In communication systems, SNR is a crucial indicator of signal quality; a high SNR means a higher proportion of effective signal components, less interference, and better communication performance. SNR testing allows for real-time monitoring of signal transmission quality between devices, and dynamic adjustment of transmission paths and strategies based on SNR levels. Traditional communication methods may lack real-time SNR monitoring, easily leading to signal interference or attenuation during transmission, affecting communication quality. This method, through regular SNR testing and monitoring, can promptly identify and resolve problems in signal transmission, ensuring signal transmission along the optimal path and reducing interference and loss. This optimization not only improves communication reliability and stability but also significantly enhances the user's communication experience, especially in complex and dynamically changing communication environments.
[0103] 2. This intelligent blockchain peer-to-peer real-time encrypted communication method and system improves transmission efficiency by testing the transmission time required for signal transmission between any two devices using a transmission time testing strategy. Transmission time is a crucial indicator of communication system performance; shorter transmission time means faster response and data transmission. By testing transmission time, the path with the shortest transmission delay can be identified and selected, avoiding excessive intermediate nodes during signal transmission and reducing latency. Traditional communication methods may not be able to monitor transmission time in real time, easily leading to signal delays or congestion in complex network environments. This method, through transmission time testing, can optimize the transmission path in real time, ensuring the signal reaches the target device at the fastest speed. This optimization not only improves communication efficiency and response speed but also significantly enhances user experience.
[0104] 3. This intelligent blockchain peer-to-peer real-time encrypted communication method and system optimizes signal transmission paths and improves efficiency and reliability by employing a signal transmission path selection strategy. By acquiring the user's location and the device's signal reception range, the system intelligently selects the optimal path encompassing both the user's location and the target device. Specifically, the system selects the path with a high signal-to-noise ratio and short transmission time based on the signal-to-noise ratio and transmission duration between devices, ensuring the signal reaches the target device quickly and accurately. This path optimization strategy avoids the signal passing through numerous intermediate nodes during transmission, reducing delays and interference, improving transmission efficiency, and ensuring the continuity and reliability of communication.
[0105] 4. This intelligent blockchain peer-to-peer real-time encrypted communication method and system improves the accuracy and stability of signal transmission by setting a second signal-to-noise ratio (SNR) error threshold and dynamically adjusting the signal. During transmission, the signal may be affected by various interferences and noises, leading to signal distortion or loss. By setting the second SNR error threshold, when the SNR of the transmitted signal is lower than the threshold, the system automatically performs error correction processing, such as error correction decoding, to restore the original information of the signal. This error correction mechanism can effectively reduce errors during signal transmission and improve the quality of signal transmission. In addition, the error correction mechanism can also monitor and adjust the signal status in real time during signal transmission to avoid communication interruptions or errors caused by signal quality degradation, ensuring the stability and reliability of communication.
[0106] 5. This intelligent blockchain peer-to-peer real-time encrypted communication method and system improves the accuracy and stability of signal transmission by setting a first power threshold and a second power threshold and dynamically adjusting the signal. During transmission, the signal may be affected by various high-power electrical appliances, leading to signal distortion or loss. By setting the first power threshold, the system obtains the power of high-power electrical appliances near the signal transmission path. If the power of these appliances is less than the threshold, the system compares the power of the devices within a circular area with the second power threshold. Devices with power greater than or equal to the second power threshold are designated as first interfering devices, and automatic error correction and decoding are performed on devices within a radius of L meters of these first interfering devices. If the power of high-power electrical appliances near the transmission path is greater than the first power threshold, the system automatically performs error correction and decoding to improve signal quality. This dynamic adjustment mechanism effectively addresses interference from high-power electrical appliances during signal transmission, improving the system's flexibility and adaptability, while also reducing the number of error correction and decoding operations.
[0107] 6. This intelligent blockchain peer-to-peer real-time encrypted communication method and system, through various strategies and mechanisms such as signal-to-noise ratio testing, transmission duration testing, signal reception judgment, dynamic signal quality adjustment, path optimization, and error correction mechanisms, can significantly improve the system's flexibility and adaptability. The intelligent blockchain peer-to-peer real-time communication method, through the comprehensive application of multiple strategies and mechanisms, can ensure efficient and reliable communication in different communication scenarios and environments. Specifically, the system can dynamically adjust the signal transmission strategy and path according to actual communication needs and environmental changes to ensure high-quality signal transmission. Simultaneously, through signal-to-noise ratio testing and transmission duration testing, the quality and efficiency of signal transmission can be monitored in real time, allowing for targeted optimization and adjustments to improve the overall system performance. Furthermore, the error correction mechanism can respond to various unexpected problems and interferences during signal transmission in real time, ensuring the continuity and stability of communication. This flexibility and adaptability can significantly improve user experience and meet different communication scenarios and needs. Attached Figure Description
[0108] Figure 1 This is a schematic diagram of the process of the present invention. Detailed Implementation
[0109] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. 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 making creative efforts are within the scope of protection of the present invention.
[0110] Example, refer to Figure 1A smart blockchain peer-to-peer real-time encrypted communication method and system, comprising:
[0111] Obtain all devices and label them as the first device, the second device, ..., the Nth device;
[0112] The same encryption key is generated and distributed for each device to ensure the security of signal transmission between devices.
[0113] The encryption key is used for symmetric encryption of the signal;
[0114] The signal-to-noise ratio (SNR) of a signal transmitted between any two devices is tested according to the signal-to-noise ratio (SNR) testing strategy, specifically including:
[0115] Obtain all devices; all devices constitute the first device set.
[0116] S1. Randomly select one device from the first set of devices;
[0117] S2. Obtain the signal reception range of the selected device;
[0118] S3. The selected device sends signals to all devices within the signal reception range;
[0119] S4. All devices within the signal receiving range of the selected device receive the signal sent by the selected device, and the signal-to-noise ratio of signal transmission during the process of all devices within the signal receiving range of the selected device receiving the signal sent by the selected device is calculated and stored.
[0120] S5. Remove the selected devices from the first set of devices;
[0121] S6. Repeat S1-S5 until the first set of devices contains only one device;
[0122] The signal-to-noise ratio of the signal transmitted between any two devices is obtained through S1-S6;
[0123] The transmission duration test strategy is used to test the duration required for a signal to be transmitted between any two devices.
[0124] For each device;
[0125] Obtain the signal reception range of the device;
[0126] The user sends a signal to the target device and determines whether the target device receives the signal.
[0127] If the target device does not receive a signal, a signal transmission path is selected according to the signal transmission path selection strategy.
[0128] If the target device receives a signal, it is determined whether the signal received by the target device conforms to the standard according to the first judgment strategy;
[0129] If the signal received by the target device conforms to the standard, the user can directly send the signal to the target device.
[0130] If the signal received by the target device does not conform to the standard, a signal transmission path is selected according to the signal transmission path selection strategy.
[0131] In the signal transmission path;
[0132] The signal is dynamically adjusted according to the adjustment strategy.
[0133] This invention relates to an intelligent blockchain peer-to-peer real-time encrypted communication method and system. It optimizes signal-to-noise ratio (SNR) transmission by testing the SNR between any two devices according to a signal-to-noise ratio (SNR) testing strategy. In communication systems, SNR is a crucial indicator of signal quality; a high SNR means a higher proportion of effective signal components, less interference, and better communication performance. SNR testing allows for real-time monitoring of signal transmission quality between devices, and dynamic adjustment of transmission paths and strategies based on SNR levels. Traditional communication methods may lack real-time SNR monitoring, making signals susceptible to interference or attenuation during transmission, thus affecting communication quality. This method, through regular SNR testing and monitoring, can promptly identify and resolve problems in signal transmission, ensuring signals are transmitted along the optimal path and reducing interference and loss. This optimization not only improves communication reliability and stability but also significantly enhances the user's communication experience, particularly in complex and dynamically changing communication environments.
[0134] The method of testing the transmission time of a signal between any two devices according to the transmission time test strategy specifically includes:
[0135] Obtain all devices; all devices constitute a second set of devices.
[0136] S7. Select any device from the second set of devices;
[0137] S8. Obtain the signal reception range of the selected device;
[0138] S9. The selected device sends signals to all devices within the signal reception range;
[0139] S10. All devices within the signal receiving range of the selected device receive the signal sent by the selected device, and calculate and store the signal transmission time required during the process of all devices within the signal receiving range of the selected device receiving the signal sent by the selected device.
[0140] S11. Remove the selected devices from the second set of devices;
[0141] S12. Repeat S7-S11 until the second set of devices contains only one device;
[0142] The duration required for a signal to be transmitted between any two devices can be obtained through S7-S12.
[0143] This invention relates to an intelligent blockchain peer-to-peer real-time encrypted communication method and system. It improves transmission efficiency by testing the transmission time required for signal transmission between any two devices using a transmission time testing strategy. Transmission time is a crucial indicator of communication system performance; shorter transmission times mean faster response and data transmission. By testing transmission time, the path with the shortest latency can be identified and selected, avoiding excessive intermediate nodes during signal transmission and reducing delays. Traditional communication methods may not be able to monitor transmission time in real time, easily leading to delays or congestion in complex network environments. This method, however, optimizes the transmission path in real time through transmission time testing, ensuring the signal reaches the target device at the fastest speed. This optimization not only improves communication efficiency and response speed but also significantly enhances the user experience.
[0144] The step of determining whether the signal received by the target device conforms to the standard according to the first judgment strategy specifically includes:
[0145] Set the first error threshold for signal-to-noise ratio;
[0146] The user sends a signal to the target device;
[0147] The target device receives signals sent by the user;
[0148] The signal-to-noise ratio (SNR) of the acquired signal during transmission from the user to the target device is denoted as the total SNR.
[0149] If the total signal-to-noise ratio is greater than or equal to the first error threshold of the signal-to-noise ratio, then the signal received by the target device is considered to meet the standard;
[0150] If the total signal-to-noise ratio is less than the first error threshold for signal-to-noise ratio, the signal received by the target device is deemed not to meet the standard.
[0151] The step of selecting a signal transmission path according to a signal transmission path selection strategy specifically includes:
[0152] Get the user's location;
[0153] For each device, determine whether the user's location is within the device's signal reception range;
[0154] All devices within the signal reception range that include the user's location constitute the first set;
[0155] The user sends signals to all devices in the first set;
[0156] All devices in the first set receive signals sent by the user, and the signal-to-noise ratio and required duration of signal transmission during the process of all devices in the first set receiving signals sent by the user are calculated and stored.
[0157] The step of selecting a signal transmission path according to a signal transmission path selection strategy further includes:
[0158] Starting from the user's location, arbitrarily select one device from the first set as the first destination point, and the selected device is denoted as the first selected device;
[0159] All devices within the signal reception range that include the location of the first selected device constitute the second set. Any device in the second set is randomly selected as the second destination point. The selected device is denoted as the second selected device. The first selected device is removed from all devices.
[0160] All devices within the signal reception range that include the location of the second selected device constitute the third set. Any device in the third set is randomly selected as the third destination point. The selected device is denoted as the third selected device. The second selected device is removed from all devices.
[0161] According to the above method, until there is no device within the signal reception range that contains the location of the Nth selected device, an alternative path is formed. The alternative path is specifically a signal transmission path from the starting point to the first selected device, the second selected device, ... the Nth selected device.
[0162] Based on the above methods, multiple alternative paths are generated;
[0163] All alternative paths that simultaneously contain the user's location and the target device constitute the set of alternative paths;
[0164] For each path in the set of alternative paths;
[0165] The path of the signal transmitted from the user's location to the target device is recorded as the signal path.
[0166] For each signal path, obtain the time required for signal transmission and sort them in ascending order of time;
[0167] Select the signal paths that are ranked first X to form a set of signal paths;
[0168] For each path in the signal path set, obtain the number of devices contained in the path and sort them in ascending order of the number of devices contained;
[0169] Select the path with the fewest devices as the signal transmission path;
[0170] This intelligent blockchain peer-to-peer real-time encrypted communication method and system optimizes signal transmission paths through a signal transmission path selection strategy, thereby improving signal transmission efficiency and reliability. By acquiring the user's location and the device's signal reception range, the system can intelligently select the optimal path that includes both the user's location and the target device. Specifically, the system selects the path with a high signal-to-noise ratio and short transmission time based on the signal-to-noise ratio and transmission duration between devices, ensuring that the signal can reach the target device quickly and accurately. This path optimization strategy avoids the signal passing through too many intermediate nodes during transmission, reducing delay and interference, improving transmission efficiency, and ensuring the continuity and reliability of communication.
[0171] The dynamic adjustment of signals according to the adjustment strategy specifically includes:
[0172] Set a second error threshold for the signal-to-noise ratio;
[0173] Obtain the signal transmission path, which consists of multiple sub-paths formed between devices;
[0174] For each sub-path;
[0175] Obtain the signal-to-noise ratio of the signal transmitted on the sub-path;
[0176] If the signal-to-noise ratio of the signal transmitted on the sub-path is greater than or equal to the second error threshold of the signal-to-noise ratio, no processing is performed;
[0177] If the signal-to-noise ratio (SNR) transmitted on a sub-path is less than the second error threshold for SNR, the sub-path with an SNR less than the second error threshold for SNR is denoted as an error path.
[0178] For each error path;
[0179] The device that acquires the received signal in the error path is denoted as the first error correction device;
[0180] After receiving the signal, the first error correction device first converts the received signal into a digital signal, then performs error correction and decoding, and then performs symmetrical encryption on the digital signal after error correction and decoding and converts it into an analog signal for transmission to the next device.
[0181] This intelligent blockchain peer-to-peer real-time encrypted communication method and system improves the accuracy and stability of signal transmission by setting a second signal-to-noise ratio (SNR) error threshold and dynamically adjusting the signal. During transmission, signals may be affected by various interferences and noises, leading to signal distortion or loss. By setting the second SNR error threshold, when the SNR of the transmitted signal falls below the threshold, the system automatically performs error correction processing, such as error correction decoding, to restore the original information of the signal. This error correction mechanism can effectively reduce errors during signal transmission and improve the transmission quality. In addition, the error correction mechanism can also monitor and adjust the signal status in real time during signal transmission to avoid communication interruptions or errors caused by signal quality degradation, ensuring the stability and reliability of communication.
[0182] The method of dynamically adjusting the signal according to the adjustment strategy also includes:
[0183] For each sub-path;
[0184] Retrieve two devices on a subpath;
[0185] Draw a line segment with the two devices as endpoints, and denote it as the first line segment;
[0186] Draw a circle with the midpoint of the first line segment as the center and the radius of the first line segment as the length of the circle, forming a circular region;
[0187] Obtain the electrical equipment within the circular area;
[0188] Establish a first power threshold;
[0189] Establish a second power threshold;
[0190] The first power threshold is greater than the second power threshold;
[0191] If the power of the electrical equipment within the circular area is greater than or equal to the first power threshold, the device that receives the signal among the two devices is recorded as the second error correction device.
[0192] After receiving the signal, the second error correction device first converts the received signal into a digital signal and then performs error correction decoding. Then, it performs symmetric encryption on the digital signal after error correction decoding and converts it into an analog signal for transmission to the next device.
[0193] If the power of the electrical equipment within the circular area is less than the first power threshold, compare the power of the electrical equipment within the circular area with the second power threshold.
[0194] If the power of the electrical equipment within the circular area is greater than or equal to the second power threshold, the electrical equipment whose power is greater than or equal to the second power threshold is recorded as the first interference device;
[0195] If there is only one sub-path within a radius of L meters of the first interfering device, then along the signal transmission direction, obtain the second device in this sub-path;
[0196] The second device receives the signal and performs error correction and decoding.
[0197] If there are two or more connected sub-paths within a radius of L meters within the first interfering device, set a signal-to-noise ratio threshold.
[0198] Along the signal transmission direction, obtain the signal-to-noise ratio of the signal received by the second device in two or more sub-paths;
[0199] If the signal-to-noise ratio (SNR) of the signal received by the second device in two or more sub-paths is greater than the SNR threshold, then obtain the SNR of the signal received by the third device in two or more sub-paths.
[0200] If the signal-to-noise ratio (SNR) of the signal received by the third device in two or more sub-paths is greater than the SNR threshold, then the SNR of the signal received by the fourth device in two or more sub-paths is obtained, until the SNR of the signal received by the U-th device in two or more sub-paths is less than the SNR threshold.
[0201] After receiving the signal, the Uth device first converts the received signal into a digital signal, then performs error correction and decoding, and then performs symmetric encryption on the digital signal after error correction and decoding and converts it into an analog signal for transmission to the next device.
[0202] This intelligent blockchain peer-to-peer real-time encrypted communication method and system improves the accuracy and stability of signal transmission by setting a first power threshold and a second power threshold and dynamically adjusting the signal. During transmission, the signal may be affected by various high-power electrical appliances, leading to signal distortion or loss. By setting the first power threshold, the system obtains the power of high-power electrical appliances near the signal transmission path. If the power of these appliances is less than the first power threshold, the system compares the power of devices within a circular area with the second power threshold. Devices with power greater than or equal to the second power threshold are designated as first interfering devices, and automatic error correction and decoding are performed on devices within a radius of L meters of these first interfering devices. If the power of high-power electrical appliances near the signal transmission path exceeds the first power threshold, the system automatically performs error correction and decoding to improve signal quality. This dynamic adjustment mechanism effectively addresses interference from high-power electrical appliances during signal transmission, improving the system's flexibility and adaptability, while also reducing the number of error correction and decoding operations.
[0203] include:
[0204] A signal transmission module is installed on all devices and control modules, with one signal transmission module installed on each device.
[0205] A signal receiving module is installed on all devices, with one signal receiving module installed on each device.
[0206] The control module is used by users to send control commands;
[0207] The signal-to-noise ratio (SNR) test module is used to test the SNR of signals transmitted between any two devices according to the SNR test strategy.
[0208] The transmission duration test module is used to test the duration required for a signal to be transmitted between any two devices according to the transmission duration test strategy.
[0209] The signal decryption module is used by the receiving device to convert analog signals into digital signals and then decrypt the digital signals.
[0210] A signal encryption module is used by devices that transmit signals to encrypt digital signals.
[0211] This intelligent blockchain peer-to-peer real-time encrypted communication method and system significantly improves the system's flexibility and adaptability through various strategies and mechanisms, such as signal-to-noise ratio testing, transmission duration testing, signal reception judgment, dynamic signal quality adjustment, path optimization, and error correction mechanisms. The intelligent blockchain peer-to-peer real-time communication method, through the comprehensive application of multiple strategies and mechanisms, ensures efficient and reliable communication in different communication scenarios and environments. Specifically, the system can dynamically adjust signal transmission strategies and paths according to actual communication needs and environmental changes to ensure high-quality signal transmission. Simultaneously, through signal-to-noise ratio testing and transmission duration testing, the quality and efficiency of signal transmission can be monitored in real time, allowing for targeted optimization and adjustments to improve the overall system performance. Furthermore, the error correction mechanism can address various unexpected problems and interferences during signal transmission in real time, ensuring the continuity and stability of communication. This flexibility and adaptability significantly enhances the user experience and meets the needs of different communication scenarios.
[0212] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus.
[0213] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the technical principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A smart blockchain peer-to-peer real-time encrypted communication method, characterized in that, include: Obtain all devices and label them as the first device, the second device, ..., the Nth device; The same encryption key is generated and distributed for each device to ensure the security of signal transmission between devices. The encryption key is used for symmetric encryption of the signal; The signal-to-noise ratio (SNR) of a signal transmitted between any two devices is tested according to the signal-to-noise ratio (SNR) testing strategy, specifically including: Obtain all devices; all devices constitute the first device set. S1. Randomly select one device from the first set of devices; S2. Obtain the signal reception range of the selected device; S3. The selected device sends signals to all devices within the signal reception range; S4. All devices within the signal receiving range of the selected device receive the signal sent by the selected device, and the signal-to-noise ratio of signal transmission during the process of all devices within the signal receiving range of the selected device receiving the signal sent by the selected device is calculated and stored. S5. Remove the selected devices from the first set of devices; S6. Repeat S1-S5 until the first set of devices contains only one device; The signal-to-noise ratio of the signal transmitted between any two devices is obtained through S1-S6; The transmission duration test strategy is used to test the duration required for a signal to be transmitted between any two devices. For each device; Obtain the signal reception range of the device; The user sends a signal to the target device and determines whether the target device receives the signal. If the target device does not receive a signal, a signal transmission path is selected according to the signal transmission path selection strategy. If the target device receives a signal, it is determined whether the signal received by the target device conforms to the standard according to the first judgment strategy; If the signal received by the target device conforms to the standard, the user can directly send the signal to the target device. If the signal received by the target device does not conform to the standard, a signal transmission path is selected according to the signal transmission path selection strategy. In the signal transmission path; The signal is dynamically adjusted according to the adjustment strategy.
2. The intelligent blockchain peer-to-peer real-time encrypted communication method according to claim 1, characterized in that: The method of testing the transmission time of a signal between any two devices according to the transmission time test strategy specifically includes: Obtain all devices; all devices constitute a second set of devices. S7. Select any device from the second set of devices; S8. Obtain the signal reception range of the selected device; S9. The selected device sends signals to all devices within the signal reception range; S10. All devices within the signal receiving range of the selected device receive the signal sent by the selected device, and calculate and store the signal transmission time required during the process of all devices within the signal receiving range of the selected device receiving the signal sent by the selected device. S11. Remove the selected devices from the second set of devices; S12. Repeat S7-S11 until the second set of devices contains only one device; The time required for a signal to be transmitted between any two devices can be obtained through S7-S12.
3. The intelligent blockchain peer-to-peer real-time encrypted communication method according to claim 1, characterized in that: The step of determining whether the signal received by the target device conforms to the standard according to the first judgment strategy specifically includes: Set the first error threshold for signal-to-noise ratio; The user sends a signal to the target device; The target device receives signals sent by the user; The signal-to-noise ratio (SNR) of the acquired signal during transmission from the user to the target device is denoted as the total SNR. If the total signal-to-noise ratio is greater than or equal to the first error threshold of the signal-to-noise ratio, then the signal received by the target device is considered to meet the standard; If the total signal-to-noise ratio is less than the first error threshold for signal-to-noise ratio, the signal received by the target device is deemed not to meet the standard.
4. The intelligent blockchain peer-to-peer real-time encrypted communication method according to claim 1, characterized in that: The step of selecting a signal transmission path according to a signal transmission path selection strategy specifically includes: Get the user's location; For each device, determine whether the user's location is within the device's signal reception range; All devices within the signal reception range that include the user's location constitute the first set; The user sends signals to all devices in the first set; All devices in the first set receive signals sent by the user, and the signal-to-noise ratio and required duration of signal transmission during the process of all devices in the first set receiving signals sent by the user are calculated and stored.
5. The intelligent blockchain peer-to-peer real-time encrypted communication method according to claim 4, characterized in that: The step of selecting a signal transmission path according to a signal transmission path selection strategy further includes: Starting from the user's location, arbitrarily select one device from the first set as the first destination point, and the selected device is denoted as the first selected device; All devices within the signal reception range that include the location of the first selected device constitute the second set. Any device in the second set is randomly selected as the second destination point. The selected device is denoted as the second selected device. The first selected device is removed from all devices. All devices within the signal reception range that include the location of the second selected device constitute the third set. Any device in the third set is randomly selected as the third destination point. The selected device is denoted as the third selected device. The second selected device is removed from all devices. According to the above method, until there is no device within the signal reception range that contains the location of the Mth selected device, an alternative path is formed. The alternative path is specifically a signal transmission path from the starting point to the first selected device, the second selected device, ... the Mth selected device. Based on the above methods, multiple alternative paths are generated; All alternative paths that simultaneously contain the user's location and the target device constitute the set of alternative paths; For each path in the set of alternative paths; The path of the signal transmitted from the user's location to the target device is recorded as the signal path. For each signal path, obtain the time required for signal transmission and sort them in ascending order of time; Select the signal paths that are ranked first X to form a set of signal paths; For each path in the signal path set, obtain the number of devices contained in the path and sort them in ascending order of the number of devices contained; Select the path with the fewest devices as the signal transmission path.
6. The intelligent blockchain peer-to-peer real-time encrypted communication method according to claim 1, characterized in that: The dynamic adjustment of signals according to the adjustment strategy specifically includes: Set a second error threshold for the signal-to-noise ratio; Obtain the signal transmission path, which consists of multiple sub-paths formed between devices; For each sub-path; Obtain the signal-to-noise ratio of the signal transmitted on the sub-path; If the signal-to-noise ratio of the signal transmitted on the sub-path is greater than or equal to the second error threshold of the signal-to-noise ratio, no processing is performed; If the signal-to-noise ratio (SNR) transmitted on a sub-path is less than the second error threshold for SNR, the sub-path with an SNR less than the second error threshold for SNR is denoted as an error path. For each error path; The device that acquires the received signal in the error path is denoted as the first error correction device; After receiving the signal, the first error correction device first converts the received signal into a digital signal, then performs error correction and decoding, and then performs symmetrical encryption on the digital signal after error correction and decoding and converts it into an analog signal for transmission to the next device.
7. The intelligent blockchain peer-to-peer real-time encrypted communication method according to claim 6, characterized in that: The method of dynamically adjusting the signal according to the adjustment strategy also includes: For each sub-path; Retrieve two devices on a subpath; Draw a line segment with the two devices as endpoints, and denote it as the first line segment; Draw a circle with the midpoint of the first line segment as the center and the radius of the first line segment as the length of the circle, forming a circular region; Obtain the electrical equipment within the circular area; Establish a first power threshold; Establish a second power threshold; The first power threshold is greater than the second power threshold; If the power of the electrical equipment within the circular area is greater than or equal to the first power threshold, the device that receives the signal among the two devices is recorded as the second error correction device. After receiving the signal, the second error correction device first converts the received signal into a digital signal and then performs error correction and decoding. Then, it performs symmetrical encryption on the digital signal after error correction and decoding and converts it into an analog signal for transmission to the next device. If the power of the electrical equipment within the circular area is less than the first power threshold, compare the power of the electrical equipment within the circular area with the second power threshold. If the power of the electrical equipment within the circular area is greater than or equal to the second power threshold, the electrical equipment whose power is greater than or equal to the second power threshold is recorded as the first interference device; If there is only one sub-path within a radius of L meters of the first interfering device, then along the signal transmission direction, obtain the second device in this sub-path; The second device receives the signal and performs error correction and decoding. If there are two or more connected sub-paths within a radius of L meters within the first interfering device, set a signal-to-noise ratio threshold. Along the signal transmission direction, obtain the signal-to-noise ratio of the signal received by the second device in two or more sub-paths; If the signal-to-noise ratio (SNR) of the signal received by the second device in two or more sub-paths is greater than the SNR threshold, then obtain the SNR of the signal received by the third device in two or more sub-paths. If the signal-to-noise ratio (SNR) of the signal received by the third device in two or more sub-paths is greater than the SNR threshold, then the SNR of the signal received by the fourth device in two or more sub-paths is obtained, until the SNR of the signal received by the U-th device in two or more sub-paths is less than the SNR threshold. After receiving the signal, the Uth device first converts the received signal into a digital signal, then performs error correction and decoding, and then performs symmetric encryption on the digital signal after error correction and decoding and converts it into an analog signal for transmission to the next device.
8. A system for implementing the intelligent blockchain peer-to-peer real-time encrypted communication method as described in claim 1, characterized in that, include: A signal transmission module is installed on all devices and control modules, with one signal transmission module installed on each device. A signal receiving module is installed on all devices, with one signal receiving module installed on each device. The control module is used by users to send control commands; The signal-to-noise ratio (SNR) test module is used to test the SNR of signals transmitted between any two devices according to the SNR test strategy. The transmission duration test module is used to test the duration required for a signal to be transmitted between any two devices according to the transmission duration test strategy. The signal decryption module is used by the receiving device to convert analog signals into digital signals and then decrypt the digital signals. A signal encryption module is used by devices that transmit signals to encrypt digital signals.
Citation Information
Patent Citations
Physical layer safety communication method and device based on time reversal technology
CN108632816A
Enhanced blockchain key construction method
CN111277410A