Radar route early warning method based on block chain competition judgment algorithm
By using blockchain competition judgment algorithm and non-homogeneous token technology in route warning, the problem that existing route warning methods are difficult to meet the needs of complex surface traffic surveillance and ship safe navigation is achieved, and the reliable results of route warning are achieved Digital processing and security notifications.
Patent Information
- Application Number
- CN202411481317.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-23
- Publication Date
- 2025-02-14
AI Technical Summary
The existing route warning methods are difficult to meet the needs of surface traffic surveillance and ship safe navigation early warning, especially in complex situations such as crossing of ports, inland rivers and sea routes and reverse navigation of ships.
Using blockchain-based competition judgment algorithm, through radar secondary track information processing, calculate the nearest encounter point and time of each target, synchronize the distance and time of the target reaching different restricted regulatory waters, and generate an early warning classification. and level, and broadcast and compete judgment locks on the blockchain to determine the warning results.
The digital processing of route warning results and the generation of public key address are realized, ensuring the reliability and security of the results of warning judgments. At the same time, the object and scope of warning notifications are controlled through non-homogeneous tokens, and the object and scope of warning notifications are improved. Safety and effectiveness of early warning.
Abstract
Description
Technical Field
[0001] The invention relates to the field of route warning. Background Art
[0002] Ships should sail on approved routes or designated waters. With the continuous development of the economy, the activities of ships in ports, inland rivers and sea routes are becoming increasingly busy. The crossing of surface routes and the reverse navigation of ships will bring potential navigation accidents, which not only brings heavy regulatory pressure to surface traffic management, but also seriously threatens the safe navigation of ships. Existing route warning methods often realize route warning based on geographical prior knowledge and weather forecast information, which is difficult to meet the needs of surface traffic monitoring and ship safe navigation warning. Summary of the invention
[0003] In view of the above problems, the present invention proposes a radar route warning method based on a blockchain competition judgment algorithm, comprising the following steps:
[0004] S1: The system receives the secondary track information of the radar, and traverses and calculates the closest encounter point and encounter time of each target and other targets according to the real-time position and status information of the target, and simultaneously calculates the distance and time of the target to reach different restricted regulatory waters, so as to classify the warning into M types according to the target relative speed, encounter information (distance and time), regulatory water type, regulatory mode or collision avoidance mode, and further classify the warning into N levels according to the arrival time, arrival distance, or encounter time and distance;
[0005] S2: According to the preset number of warning categories M and the number of warning levels N, a different code of a preset length is randomly generated for each warning category and warning level; all warning categories and warning level codes are broadcast in the blockchain in the agreed order; a judgment lock is set in the blockchain, and the judgment lock includes three preset parameters, namely, minimum value, maximum value, and effective time;
[0006] S3: When the radar finds a situation that requires an early warning, it sends the early warning data to the blockchain. The administrator node in the blockchain determines the early warning category to which this early warning belongs, thereby obtaining the public key prefix of this early warning. The public key prefix is composed of: the first separator, the code of the early warning category to which the early warning belongs, and the first check mark; wherein the first separator is any code specified by the administrator node and the early warnings with a time interval less than the effective time use different codes; the first check mark is used to verify the first separator and the code of the early warning category to which the early warning belongs; the administrator node broadcasts the public key prefix of this early warning in the blockchain; the blockchain generates a corresponding activity transfer ledger for each public key prefix;
[0007] S4: Within the effective time after this warning, the judgment nodes in the blockchain start to compete for the judgment lock for this warning; when the number of judgment nodes that compete for the judgment lock reaches the maximum value or the time after this warning reaches the effective time, the judgment nodes in the blockchain no longer compete for the judgment lock; the judgment nodes that compete for the judgment lock judge the warning level of this warning, so as to obtain the public key address corresponding to this warning, and the public key address is composed of: the public key prefix, the code of the warning level to which the warning belongs, and the second check bit; wherein the second check bit is used to check the code of the warning level to which the warning belongs; when within the effective time, the number of judgment nodes that compete for the judgment lock is less than or equal to the minimum value, the administrator node allocates the judgment lock to the judgment node, so that the number of judgment nodes that obtain the judgment lock is more than the minimum value;
[0008] Each judgment node that competes for the judgment lock casts a vote for the public key address calculated by itself, and all votes are recorded in the corresponding activity transfer ledger; when the total number of votes in the activity transfer ledger corresponding to this warning is between the minimum and maximum values and there is a public key address with a number of votes greater than half of the total number of votes in the corresponding activity transfer ledger, the activity ledger corresponding to this warning takes effect. After the activity ledger takes effect, the public key address with the largest number of votes is used as the warning result of this warning; after obtaining the warning result of this warning, the votes of all public key addresses in the activity transfer ledger corresponding to this warning are cleared;
[0009] S5: stamp the warning result of this warning with a timestamp, obtain the non-homogeneous token of this warning, and broadcast the non-homogeneous token of this warning to the user nodes of the specified level in the blockchain, where the user node is the user of the warning notification; the user nodes are divided into different levels; the user node generates a passive event when receiving the non-homogeneous token, and the user node generates an active event after receiving the non-homogeneous token; within the preset time after the timestamp, according to the number of active events and passive events, judge whether the non-homogeneous token of this warning has been broadcasted, if it has been completed, allow the non-homogeneous token broadcast of the next warning to be processed; if it has not been completed within the preset time, then after the preset time, allow the non-homogeneous token broadcast of the next warning to be processed;
[0010] Preferably, the verification method of the first check character includes one or more of an arithmetic series method, a geometric series method, and a prime number method; and the verification method of the second check bit includes one or more of an arithmetic series method, a geometric series method, and a prime number method.
[0011] Preferably, the condition for judging the completion of the non-homogeneous token broadcast of this warning is that the number of active events is greater than the active threshold or the number of passive events is greater than the passive threshold and the number of passive events is less than twice the number of active events.
[0012] The beneficial effects of the present invention are:
[0013] First, the warning results are digitized into public key addresses to facilitate the statistical analysis of the warning results and give the final warning judgment;
[0014] Second, non-homogeneous tokens are used to record the results of early warnings, different levels are used to distinguish different users, and the objects that can be notified by early warnings are controlled, so as to ensure the security of early warnings. DETAILED DESCRIPTION
[0015] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention more clearly understood, the present invention is described in detail in conjunction with the embodiments below. It should be noted that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention. Products that can achieve the same functions are equivalent replacements and improvements, and are all included in the protection scope of the present invention.
[0016] A route warning method based on radar secondary information comprises the following steps:
[0017] S1: The system receives the secondary track information of the radar, and traverses and calculates the closest encounter point and encounter time of each target and other targets according to the real-time position and status information of the target, and simultaneously calculates the distance and time of the target to reach different restricted regulatory waters, thereby dividing the warning into M types according to the type of regulatory waters, regulatory mode or collision avoidance mode, and further divides the warning into N levels according to the arrival time, arrival distance, or encounter time and distance;
[0018] S2: According to the preset number of warning categories M and the number of warning levels N, a different code of a preset length is randomly generated for each warning category and warning level; the codes of all warning categories and warning levels are broadcast in the blockchain in the agreed order; a judgment lock is set in the blockchain, and the judgment lock includes three preset parameters, namely, a minimum value, a maximum value, and a valid time; in this embodiment, the valid time is preset by the administrator node, which is the time to limit the warning judgment;
[0019] In this embodiment, the value of M is 3, and the value of N is 3. The three warning categories are deviation from the route, restricted navigation area, and speeding, and the three warning levels are ordinary warning, important warning, and emergency warning. Among them, the codes for deviation from the route, restricted navigation area, speeding, ordinary warning, important warning, and emergency warning are AFE343E3, BFE343E5, FCE493F7, AB3498F8, AC4438E6, and EFE456E4 respectively; after the above codes are broadcasted in the blockchain in the agreed order, the nodes in the blockchain obtain the meaning of each code. In this embodiment, the code is binary. The three preset parameters of the judgment lock are the minimum value, maximum value, and effective time, which are 20, 40, and 5 minutes respectively.
[0020] S3: When the radar finds a situation that requires an early warning, it sends the early warning data to the blockchain. The nodes in the blockchain are divided into administrator nodes, judgment nodes, and user nodes, which are used to manage the early warning process, make early warning judgments, and ordinary users respectively; the administrator node in the blockchain determines the early warning category to which this early warning belongs, thereby obtaining the public key prefix of this early warning, and the public key prefix is composed of: a first separator, a code of the early warning category to which the early warning belongs, and a first check mark; wherein the first separator is an arbitrary code specified by the administrator node and the early warnings with a time interval less than the effective time use different codes; the first check mark is used to verify the first separator and the code of the early warning category to which the early warning belongs; the administrator node broadcasts the public key prefix of this early warning in the blockchain; the blockchain generates a corresponding activity transfer ledger for each public key prefix, and each activity transfer ledger is used to record the result of the early warning judgment of an early warning. The verification method of the first check mark includes one or more of the arithmetic series method, the geometric series method, and the prime number method;
[0021] In this embodiment, the administrator node determines that the warning is off-route, and the corresponding code is AFE343E3, and the specified first check character is 39; the first check character is checked using the arithmetic series method, and the specific calculation process is: the weight factors are selected as 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, and the products are multiplied by 3, 9, A, F, E, 3, 4, 3, E, 3 respectively, and then the sum is 451, and the modulus is 10. The result of 451 mod 10 is 1, so 1 is used as the first check character. The public key prefix corresponding to this warning is finally obtained as 39AFE343E31.
[0022] S4: Within the effective time after this warning, the judgment nodes in the blockchain start to compete for the judgment lock for this warning; when the number of judgment nodes that compete for the judgment lock reaches the maximum value, the judgment nodes in the blockchain no longer compete for the judgment lock; the judgment nodes that compete for the judgment lock judge the warning level of this warning, so as to obtain the public key address corresponding to this warning, and the public key address is composed of: the public key prefix, the code of the warning level to which the warning belongs, and the second check bit; wherein the second check bit is used to check the code of the warning level to which the warning belongs, and the verification method of the second check bit includes one or more of the arithmetic series method, the geometric series method, and the prime number method; the judgment lock is used to indicate that the judgment node is granted the right to judge the warning, and when the judgment node completes the warning judgment, the judgment lock owned by it is destroyed;
[0023] The principle of the arithmetic series method is: multiply each bit of the original code by a weight factor arranged in a regular pattern, then calculate the sum of the products, and divide the sum of the products by the modulus to obtain the remainder as the check bit; the weight factors arranged in a regular pattern are arithmetic series, which is the arithmetic series method; the weight factors arranged in a regular pattern in the above process are changed to geometric series, which is the geometric series method; the weight factors arranged in a regular pattern are changed to prime number method; in the present invention, when the original code is multiplied by the weight factors arranged in a regular pattern, each S bit of the original code can be selected as a whole to be multiplied by the weight factors arranged in a regular pattern, and then calculate the sum of the products, and the default value is S is 4; each bit in the present invention refers to a binary bit, and the modulus is 10 or 11; when calculating the first check symbol, the prefix is the original code, and when calculating the second check symbol, the warning digit is the original code;
[0024] Each judgment node that competes for the judgment lock casts one vote for the public key address calculated by itself, and all votes are recorded in the corresponding activity transfer ledger; when the total number of votes in the activity transfer ledger corresponding to this warning is between the minimum and maximum values (including this number) and there is a public key address with a number of votes greater than half of the total number of votes in the corresponding activity transfer ledger, the activity ledger corresponding to this warning takes effect. After the activity ledger takes effect, the public key address with the largest number of votes is used as the warning result of this warning; after obtaining the warning result of this warning, the votes of all public key addresses in the activity transfer ledger corresponding to this warning are cleared;
[0025] In this embodiment, within the valid time, a total of 40 judgment nodes compete for the judgment lock, among which some judgment nodes judge that the level of this warning is an important warning, and the corresponding code is AC4438E6. The prime number method is used to generate the second check digit. The specific process is: the weight factors are selected as 19, 17, 13, 11, 7, 5, 3, and 2, which are multiplied by A, C, 4, 4, 3, 8, E, and 6 respectively, and the result is 608. The modulus is 11, and the result of 608mod11 is 3, and the second check symbol is 3; finally, the public key address calculated by these judgment nodes is 39AFE343E31AC4438E63; there are 25 judgment nodes that judge that the level of this warning is an ordinary warning, and the corresponding code is AB3498F8. The same method is used to obtain the second check symbol of 8. The public key address finally calculated by these 25 judgment nodes is 39AFE343E31AB3498F88. In the activity transfer ledger corresponding to this warning (the activity transfer ledger with the public key prefix 39AFE343E31), the total number of votes is 40, which is between the minimum value of 20 and the maximum value of 40, and the number of votes for 39AFE343E31AB3498F88 is 25, which exceeds half of the maximum value of 40. Therefore, the activity transfer ledger corresponding to this warning takes effect, and 39AFE343E31AB3498F88 is used as the result of this warning.
[0026] S4: stamp the warning result of this warning with a timestamp to obtain the non-homogeneous token of this warning, and broadcast the non-homogeneous token of this warning to the user nodes of the specified level in the blockchain, where the user node is the user of the warning notification; the user nodes are divided into different levels; the user node generates a passive event when receiving the non-homogeneous token, and the user node generates an active event after receiving the non-homogeneous token; within the preset time after the timestamp, according to the number of active events and passive events, judge whether the broadcast of the non-homogeneous token of this warning is completed, if it has been completed, the non-homogeneous token broadcast of the next warning is allowed to be processed; if it is not completed within the preset time, the non-homogeneous token broadcast of the next warning is allowed to be processed after the preset time; the preset time is used to illustrate the time of the broadcast restriction, and the unit of time in the present invention is uniformly preset by the administrator node;
[0027] Specifically, the condition for judging the completion of the non-homogeneous token broadcast of this warning is that the number of active events is greater than the active threshold or the number of passive events is greater than the passive threshold and the number of passive events is less than twice the number of active events. The active threshold and the passive threshold are used to respectively indicate the lower limit value of actively receiving events and the lower limit value of passively receiving events when the broadcast is valid. In the present invention, passively receiving events are used to indicate events generated by user nodes receiving warning results, and actively receiving events are used to indicate events generated by user nodes receiving warning results and actively providing feedback.
[0028] The above description is only a preferred embodiment of the present invention and is not intended to limit the scope of protection of the claims of the present invention. At the same time, the above description should be understandable and implementable to those skilled in the relevant technical field, so other equivalent changes based on the content disclosed by the present invention should be included in the scope of the claims.
Claims
1. A radar route warning method based on blockchain competition judgment algorithm, characterized by: S1: The system receives the secondary track information of the radar, and traverses and calculates the closest encounter point and encounter time of each target and other targets according to the real-time position and status information of the target, and simultaneously calculates the distance and time of the target to reach different restricted regulatory waters, so as to classify the warning into M types according to the target speed, encounter distance and time, regulatory waters type, regulatory mode or collision avoidance mode, and further classify the warning into N levels according to the arrival time, arrival distance, or encounter time and distance; S2: According to the preset number of warning categories M and the number of warning levels N, a different code of a preset length is randomly generated for each warning category and warning level; all warning categories and warning level codes are broadcast in the blockchain in the agreed order; a judgment lock is set in the blockchain, and the judgment lock includes three preset parameters, namely, minimum value, maximum value, and effective time; S3: When the radar finds a situation that requires an early warning, it sends the early warning data to the blockchain. The administrator node in the blockchain determines the early warning category to which this early warning belongs, thereby obtaining the public key prefix of this early warning. The public key prefix is composed of: the first separator, the code of the early warning category to which the early warning belongs, and the first check mark; wherein the first separator is any code specified by the administrator node and the early warnings with a time interval less than the effective time use different codes; the first check mark is used to verify the first separator and the code of the early warning category to which the early warning belongs; the administrator node broadcasts the public key prefix of this early warning in the blockchain; the blockchain generates a corresponding activity transfer ledger for each public key prefix; S4: Within the effective time after this warning, the judgment nodes in the blockchain start competing for the judgment lock for this warning; When the number of judgment nodes competing for the judgment lock reaches the maximum value or the time after this warning reaches the effective time, the judgment nodes in the blockchain will no longer compete for the judgment lock; the judgment nodes competing for the judgment lock judge the warning level of this warning, so as to obtain the public key address corresponding to this warning, and the public key address is composed of: public key prefix, the code of the warning level to which the warning belongs, and the second check bit; wherein the second check bit is used to check the code of the warning level to which the warning belongs; when within the effective time, the number of judgment nodes competing for the judgment lock is less than or equal to the minimum value, the administrator node allocates the judgment lock to the judgment node, so that the number of judgment nodes that obtain the judgment lock is more than the minimum value; Each judgment node that competes for the judgment lock casts a vote for the public key address calculated by itself, and all votes are recorded in the corresponding activity transfer ledger; when the total number of votes in the activity transfer ledger corresponding to this warning is between the minimum and maximum values and there is a public key address with a number of votes greater than half of the total number of votes in the corresponding activity transfer ledger, the activity ledger corresponding to this warning takes effect. After the activity ledger takes effect, the public key address with the largest number of votes is used as the warning result of this warning; after obtaining the warning result of this warning, the votes of all public key addresses in the activity transfer ledger corresponding to this warning are cleared; S5: stamp the warning result of this warning with a timestamp, obtain the non-fungible token of this warning, and broadcast the non-fungible token of this warning to the user nodes of the specified level in the blockchain, where the user node is the user of the warning notification; the user nodes are divided into different levels; the user node generates a passive event when receiving the non-fungible token, and the user node generates an active event by giving feedback after receiving the non-fungible token; within the preset time after the timestamp, judge whether the non-fungible token of this warning has been broadcasted according to the number of active events and passive events. If it has been completed, the non-fungible token broadcast of the next warning is allowed to be processed; if it has not been completed within the preset time, the non-fungible token broadcast of the next warning is allowed to be processed after the preset time.
2. The route warning method based on radar secondary information according to claim 1 is characterized by: The verification method of the first check character includes one or more of an arithmetic series method, a geometric series method, and a prime number method; the verification method of the second check digit includes one or more of an arithmetic series method, a geometric series method, and a prime number method.
3. The route warning method based on radar secondary information according to claim 1 is characterized by: The condition for judging the completion of the non-homogeneous token broadcast of this warning is that the number of active events is greater than the active threshold or the number of passive events is greater than the passive threshold and the number of passive events is less than twice the number of active events.