[go: up one dir, main page]

CN112989392B - Battlefield situation perception method, system and terminal equipment - Google Patents

Battlefield situation perception method, system and terminal equipment Download PDF

Info

Publication number
CN112989392B
CN112989392B CN202110416463.6A CN202110416463A CN112989392B CN 112989392 B CN112989392 B CN 112989392B CN 202110416463 A CN202110416463 A CN 202110416463A CN 112989392 B CN112989392 B CN 112989392B
Authority
CN
China
Prior art keywords
battlefield
hash value
information
battlefield information
situational awareness
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110416463.6A
Other languages
Chinese (zh)
Other versions
CN112989392A (en
Inventor
胡旭东
张岩
李成
刘明溢
于淼
向传龙
李艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hebei University of Science and Technology
Original Assignee
Hebei University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hebei University of Science and Technology filed Critical Hebei University of Science and Technology
Priority to CN202110416463.6A priority Critical patent/CN112989392B/en
Publication of CN112989392A publication Critical patent/CN112989392A/en
Application granted granted Critical
Publication of CN112989392B publication Critical patent/CN112989392B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Databases & Information Systems (AREA)
  • Storage Device Security (AREA)

Abstract

本发明适用于电子信息技术领域,提供了一种战场态势感知方法、系统和终端设备,其中,该方法包括:第一设备采集所述第一设备所在地的第一战场信息;所述第一设备对所述第一战场信息进行哈希处理,得到第一哈希值;所述第一设备根据预设算法加密所述第一战场信息、所述第一哈希值以及所述第一设备的第一标识,并在所述区块链网络中广播加密得到的密文;第二设备根据所述预设算法解密所述密文;当通过共识验证的所述第二设备的数量满足第二预设条件时,所述第一设备和所有的所述第二设备均将所述第一战场信息、所述第一哈希值以及所述第一设备的第一标识加入各自维护的区块链。采用本发明可以提高战场态势感知系统的数据安全性。

Figure 202110416463

The present invention is applicable to the field of electronic information technology, and provides a battlefield situational awareness method, system and terminal device, wherein the method includes: a first device collects first battlefield information where the first device is located; the first device Perform hash processing on the first battlefield information to obtain a first hash value; the first device encrypts the first battlefield information, the first hash value and the first device's information according to a preset algorithm. the first identification, and broadcast the encrypted ciphertext in the blockchain network; the second device decrypts the ciphertext according to the preset algorithm; when the number of the second devices that pass the consensus verification meets the second Under preset conditions, the first device and all the second devices add the first battlefield information, the first hash value, and the first identifier of the first device to the blocks they maintain chain. The invention can improve the data security of the battlefield situational awareness system.

Figure 202110416463

Description

战场态势感知方法、系统和终端设备Battlefield situational awareness method, system and terminal device

技术领域technical field

本发明属于电子信息技术领域,尤其涉及一种战场态势感知方法、系统和终端设备。The invention belongs to the technical field of electronic information, and in particular relates to a battlefield situational awareness method, system and terminal equipment.

背景技术Background technique

随着逆全球化思潮的发酵,局部地区的动荡时有发生,为了应对未来潜在的战争威胁,有必要研究未来的战争模式。当前,未来的战争模式正向联合作战方式趋近,这对用于感知战场环境、敌我形式的战场态势感知系统提出了更高的挑战。With the fermenting of the trend of anti-globalization, turmoil in local areas has occurred from time to time. In order to cope with the potential threat of war in the future, it is necessary to study the future mode of war. At present, the future war mode is approaching the joint combat mode, which poses a higher challenge to the battlefield situational awareness system used to perceive the battlefield environment and the form of the enemy.

然而,目前的战场态势感知系统存在数据篡改的问题。However, the current battlefield situational awareness system has the problem of data tampering.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明实施例提供了一种战场态势感知方法、系统和终端设备,能够提高战场态势感知系统的数据安全性。In view of this, the embodiments of the present invention provide a battlefield situational awareness method, system and terminal device, which can improve the data security of the battlefield situational awareness system.

本发明实施例的第一方面提供了一种战场态势感知方法,所述方法应用于战场态势感知系统,所述系统包括多个处于同一区块链网络的节点设备,所述方法包括:A first aspect of the embodiments of the present invention provides a battlefield situational awareness method, the method is applied to a battlefield situational awareness system, the system includes a plurality of node devices in the same blockchain network, and the method includes:

第一设备采集所述第一设备所在地的第一战场信息;所述第一战场信息携带有第一时间戳,所述第一时间戳为所述第一战场信息的采集时间;The first device collects the first battlefield information where the first device is located; the first battlefield information carries a first time stamp, and the first time stamp is the collection time of the first battlefield information;

所述第一设备对所述第一战场信息进行哈希处理,得到第一哈希值;The first device performs hash processing on the first battlefield information to obtain a first hash value;

所述第一设备根据预设算法加密所述第一战场信息、所述第一哈希值以及所述第一设备的第一标识,并在所述区块链网络中广播加密得到的密文;The first device encrypts the first battlefield information, the first hash value and the first identifier of the first device according to a preset algorithm, and broadcasts the encrypted ciphertext in the blockchain network ;

第二设备根据所述预设算法解密所述密文,得到所述第一战场信息、所述第一哈希值以及所述第一设备的第一标识;The second device decrypts the ciphertext according to the preset algorithm to obtain the first battlefield information, the first hash value and the first identifier of the first device;

当所述第一时间戳和所述第一标识满足第一预设条件时,所述第二设备根据所述第一哈希值对所述第一战场信息进行共识验证;When the first timestamp and the first identifier satisfy a first preset condition, the second device performs consensus verification on the first battlefield information according to the first hash value;

当通过共识验证的所述第二设备的数量满足第二预设条件时,所述第一设备和所有的所述第二设备均将所述第一战场信息、所述第一哈希值以及所述第一设备的第一标识加入各自维护的区块链;所述第一设备为所述区块链网络中任意一个所述节点设备,所述第二设备为所述区块链网络中除所述第一设备以外的任意一个所述节点设备。When the number of the second devices that have passed the consensus verification meets the second preset condition, the first device and all the second devices combine the first battlefield information, the first hash value and the The first identifier of the first device is added to the respective maintained blockchain; the first device is any one of the node devices in the blockchain network, and the second device is in the blockchain network Any one of the node devices except the first device.

本发明实施例的第二方面提供了一种战场态势感知系统,所述系统包括多个处于同一区块链网络的节点设备,其中:A second aspect of the embodiments of the present invention provides a battlefield situational awareness system, the system includes a plurality of node devices in the same blockchain network, wherein:

第一设备,用于采集所述第一设备所在地的第一战场信息;其中,所述第一战场信息携带有第一时间戳,所述第一时间戳为所述第一战场信息的采集时间;A first device, configured to collect first battlefield information where the first device is located; wherein, the first battlefield information carries a first time stamp, and the first time stamp is the collection time of the first battlefield information ;

所述第一设备,还用于对所述第一战场信息进行哈希处理,得到第一哈希值;The first device is further configured to perform hash processing on the first battlefield information to obtain a first hash value;

所述第一设备,还用于根据预设算法加密所述第一战场信息、所述第一哈希值以及所述第一设备的第一标识,并在所述区块链网络中广播加密得到的密文;The first device is further configured to encrypt the first battlefield information, the first hash value and the first identifier of the first device according to a preset algorithm, and broadcast the encryption in the blockchain network the obtained ciphertext;

第二设备,用于根据所述预设算法解密所述密文,得到所述第一战场信息、所述第一哈希值以及所述第一设备的第一标识;a second device, configured to decrypt the ciphertext according to the preset algorithm to obtain the first battlefield information, the first hash value and the first identifier of the first device;

所述第二设备,还用于当所述第一时间戳和所述第一标识满足第一预设条件时,根据所述第一哈希值对所述第一战场信息进行共识验证;The second device is further configured to perform consensus verification on the first battlefield information according to the first hash value when the first timestamp and the first identifier satisfy a first preset condition;

所述第一设备和所有的所述第二设备,还用于当通过共识验证的所述第二设备的数量满足第二预设条件时,将所述第一战场信息、所述第一哈希值以及所述第一设备的第一标识加入各自维护的区块链;其中,所述第一设备为所述区块链网络中任意一个所述节点设备,所述第二设备为所述区块链网络中除所述第一设备以外的任意一个所述节点设备。The first device and all the second devices are further configured to, when the number of the second devices that have passed the consensus verification meets the second preset condition, combine the first battlefield information, the first The value and the first identifier of the first device are added to the respective maintained blockchains; wherein the first device is any one of the node devices in the blockchain network, and the second device is the Any one of the node devices other than the first device in the blockchain network.

本发明实施例的第三方面提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如第一方面所述方法的步骤。A third aspect of the embodiments of the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, when the processor executes the computer program The steps of the method as described in the first aspect are implemented.

本发明实施例与现有技术相比存在的有益效果是:The beneficial effects that the embodiment of the present invention has compared with the prior art are:

在本发明实施例中,应用了区块链技术构建分布式系统架构的战场态势感知系统,其中,第一设备可以采集第一设备所在地的第一战场信息,并对第一设备对第一战场信息进行哈希处理,得到第一哈希值,然后可以根据预设算法加密第一战场信息、第一哈希值以及第一设备的第一标识,并在区块链网络中广播加密得到的密文。之后,第二设备可以接收到该密文,并可以根据预设算法解密密文,得到第一战场信息、第一哈希值以及第一设备的第一标识。接着,当第一时间戳和第一标识满足第一预设条件时,第二设备根据第一哈希值对第一战场信息进行共识验证。最后,当通过共识验证的第二设备的数量满足第二预设条件时,第一设备和所有的第二设备均将第一战场信息、第一哈希值以及第一设备的第一标识加入各自维护的区块链。如此,可以利用区块链抗打击能力强的特点,同时进行哈希加密处理具有的数据防篡改的特点,可以对各节点设备上报的数据进行验证,确保数据可信,解决了战场态势感知系统存在数据篡改的问题。In the embodiment of the present invention, the blockchain technology is applied to construct a battlefield situational awareness system with a distributed system architecture, wherein the first device can collect the information of the first battlefield where the first device is located, and analyze the information on the first battlefield for the first device. The information is hashed to obtain the first hash value, and then the first battlefield information, the first hash value and the first identification of the first device can be encrypted according to the preset algorithm, and the encrypted data can be broadcast in the blockchain network. ciphertext. Afterwards, the second device can receive the ciphertext, and can decrypt the ciphertext according to a preset algorithm to obtain the first battlefield information, the first hash value, and the first identifier of the first device. Next, when the first timestamp and the first identifier satisfy the first preset condition, the second device performs consensus verification on the first battlefield information according to the first hash value. Finally, when the number of second devices that have passed the consensus verification meets the second preset condition, the first device and all second devices add the first battlefield information, the first hash value, and the first identifier of the first device to The respective blockchains are maintained. In this way, the strong anti-strike ability of the blockchain can be used, and the data tamper-proof feature of hash encryption processing can be used to verify the data reported by each node device to ensure the credibility of the data, and solve the battlefield situational awareness system. There is a problem of data tampering.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only for the present invention. In some embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.

图1为本发明实施例提供的一种战场态势感知场景图;FIG. 1 is a scene diagram of a battlefield situational awareness provided by an embodiment of the present invention;

图2为本发明实施例提供的一种战场态势感知方法的步骤流程图;FIG. 2 is a flowchart of steps of a battlefield situational awareness method provided by an embodiment of the present invention;

图3为本发明实施例提供的一种区块链形成过程示意图;3 is a schematic diagram of a blockchain formation process according to an embodiment of the present invention;

图4为本发明实施例提供的一种工作流程图;Fig. 4 is a kind of working flow chart provided by the embodiment of the present invention;

图5为本发明实施例提供的一种战场态势感知系统的示意图;5 is a schematic diagram of a battlefield situational awareness system according to an embodiment of the present invention;

图6为本发明实施例提供的一种终端设备的示意图。FIG. 6 is a schematic diagram of a terminal device according to an embodiment of the present invention.

具体实施方式Detailed ways

以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本发明实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本发明。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本发明的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as specific system structures and technologies are set forth in order to provide a thorough understanding of the embodiments of the present invention. However, it will be apparent to those skilled in the art that the present invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.

为了说明本发明所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions of the present invention, the following specific embodiments are used for description.

如背景技术所描述的,目前的战场态势感知系统存在数据传输安全性较差的问题。As described in the background art, the current battlefield situational awareness system has the problem of poor data transmission security.

为了解决现有技术问题,本发明实施例提供了一种战场态势感知方法、系统和终端设备。下面首先对本发明实施例所提供的战场态势感知方法进行介绍。In order to solve the problems of the prior art, the embodiments of the present invention provide a battlefield situational awareness method, system and terminal device. The following first introduces the battlefield situational awareness method provided by the embodiment of the present invention.

从2008年比特币问世至今,区块链技术已经从当初的货币拓展到今天的各类信息、金融领域。由于区块链技术具有去中心化、防篡改、数据高度可信、可验证、可追溯等特点,因此,可以利用区块链技术的上述特点,将区块链技术引入战场态势感知系统。此外,由于传统的“矿工挖矿记账”机制不具有实时性,而在战场感知过程中要求数据进行实时共享,因此,还需要对常规的区块链技术进行适应性改进,以适应战场态势感知的需求。Since the advent of Bitcoin in 2008, blockchain technology has expanded from the original currency to today's various information and financial fields. Since blockchain technology has the characteristics of decentralization, tamper-proof, highly credible data, verifiable and traceable, etc., the above-mentioned characteristics of blockchain technology can be used to introduce blockchain technology into the battlefield situational awareness system. In addition, since the traditional "miners' mining accounting" mechanism is not real-time, and real-time data sharing is required in the process of battlefield perception, it is also necessary to adapt the conventional blockchain technology to adapt to the battlefield situation. perceived needs.

战场态势感知方法可以应用于战场态势感知系统,如图1所示,战场态势感知系统可以包括多个处于同一区块链网络的节点设备,节点设备可以是战场中侦察车或无人机搭载的各类传感器,例如摄像头、电子罗盘、震动传感器、海拔针、北斗定位装置、无线通信装置、电源等,此外,节点设备也可以是侦察兵携带的传感器,以及指挥中心。The battlefield situational awareness method can be applied to the battlefield situational awareness system. As shown in Figure 1, the battlefield situational awareness system can include multiple node devices in the same blockchain network, and the node devices can be carried by reconnaissance vehicles or drones in the battlefield. Various types of sensors, such as cameras, electronic compasses, vibration sensors, altitude needles, Beidou positioning devices, wireless communication devices, power supplies, etc. In addition, node devices can also be sensors carried by scouts and command centers.

如图2所示,本发明实施例提供的战场态势感知方法可以包括以下步骤:As shown in FIG. 2 , the battlefield situational awareness method provided by the embodiment of the present invention may include the following steps:

步骤S210、第一设备采集第一设备所在地的第一战场信息。Step S210, the first device collects the first battlefield information where the first device is located.

其中,第一战场信息携带有第一时间戳,第一时间戳为第一战场信息的采集时间。The first battlefield information carries a first timestamp, and the first timestamp is the collection time of the first battlefield information.

在一些实施例中,第一设备为区块链网络中任意一个节点设备。In some embodiments, the first device is any node device in the blockchain network.

步骤S220、第一设备对第一战场信息进行哈希处理,得到第一哈希值。Step S220, the first device performs hash processing on the first battlefield information to obtain a first hash value.

在一些实施例中,可以采用SHA256哈希算法对第一战场信息进行哈希处理,处理得到的哈希值可以称为第一哈希值。In some embodiments, the SHA256 hash algorithm may be used to perform hash processing on the first battlefield information, and the processed hash value may be referred to as the first hash value.

步骤S230、第一设备根据预设算法加密第一战场信息、第一哈希值以及第一设备的第一标识,并在区块链网络中广播加密得到的密文。Step S230, the first device encrypts the first battlefield information, the first hash value, and the first identifier of the first device according to a preset algorithm, and broadcasts the encrypted ciphertext in the blockchain network.

在一些实施例中,预设算法可以是RSA加密算法或者DES加密算法。例如,对于数据量较小的第一战场信息,可以采用RSA加密算法进行加密;对于数据量较大的第一战场信息,可以采用DES加密算法进行加密。In some embodiments, the preset algorithm may be an RSA encryption algorithm or a DES encryption algorithm. For example, for the first battlefield information with a small amount of data, the RSA encryption algorithm may be used for encryption; for the first battlefield information with a large amount of data, the DES encryption algorithm may be used for encryption.

步骤S240、第二设备根据预设算法解密密文,得到第一战场信息、第一哈希值以及第一设备的第一标识。Step S240, the second device decrypts the ciphertext according to the preset algorithm, and obtains the first battlefield information, the first hash value, and the first identifier of the first device.

在一些实施例中,第二设备为区块链网络中除第一设备以外的任意一个节点设备。In some embodiments, the second device is any node device other than the first device in the blockchain network.

步骤S250、当第一时间戳和第一标识满足第一预设条件时,第二设备根据第一哈希值对第一战场信息进行共识验证。Step S250: When the first timestamp and the first identifier satisfy the first preset condition, the second device performs consensus verification on the first battlefield information according to the first hash value.

在一些实施例中,第一预设条件可以是第一时间戳为当前所有未共识验证的战场信息的时间戳中唯一的最小的时间戳。如此,可以按照时间戳,有序的对当前所有未共识验证的战场消息进行验证,从而可以快速地对大量的战场消息进行及时共享。In some embodiments, the first preset condition may be that the first timestamp is the unique and smallest timestamp among the timestamps of all current battlefield information not verified by consensus. In this way, all current battlefield messages that have not been verified by consensus can be verified in an orderly manner according to the timestamp, so that a large number of battlefield messages can be quickly shared in a timely manner.

在一些实施例中,第一预设条件可以是第一时间戳为当前所有未共识验证的战场信息的时间戳中多个最小的时间戳之一,且第一标识的等级为多个最小的时间戳所对应的标识中唯一的最高的等级。如此,提供了一种容错机制,当存在于第一时间戳完全相同的时间戳时,可以根据第一标识的等级,即节点设备的级别,确定这些时间戳相同而标识不同的战场数据的处理顺序,提高了系统的稳定性。In some embodiments, the first preset condition may be that the first timestamp is one of multiple minimum timestamps among all current timestamps of battlefield information that are not verified by consensus, and the level of the first identifier is multiple minimum timestamps The unique highest level in the identifier corresponding to the timestamp. In this way, a fault-tolerant mechanism is provided. When the same time stamps exist in the first time stamps, the processing of battlefield data with the same time stamps but different identifications can be determined according to the level of the first identification, that is, the level of the node device. order to improve the stability of the system.

在一些实施例中,上述第二设备根据第一哈希值对第一战场信息进行共识验证的处理可以如下:第二设备对第一战场信息进行哈希处理,得到第二哈希值;当第二哈希值和第一哈希值相同时,第二设备通过对第一战场信息的共识验证;当第二哈希值和第一哈希值不同时,第二设备不通过对第一战场信息的共识验证。In some embodiments, the process of performing consensus verification on the first battlefield information by the second device according to the first hash value may be as follows: the second device hashes the first battlefield information to obtain a second hash value; when When the second hash value is the same as the first hash value, the second device passes the consensus verification of the first battlefield information; when the second hash value and the first hash value are different, the second device does not pass the first hash value. Consensus verification of battlefield information.

如此,可以通过上述验证机制,识别出被篡改的数据,从而可以保证数据的安全性。In this way, the tampered data can be identified through the above verification mechanism, thereby ensuring the security of the data.

步骤S260、当通过共识验证的第二设备的数量满足第二预设条件时,第一设备和所有的第二设备均将第一战场信息、第一哈希值以及第一设备的第一标识加入各自维护的区块链。Step S260, when the number of second devices that have passed the consensus verification meets the second preset condition, the first device and all second devices combine the first battlefield information, the first hash value, and the first identifier of the first device. Join the respective maintained blockchain.

在一些实施例中,第二预设条件可以是通过共识验证的第二设备的数量占所有节点设备的比例超过预设比例,其中,预设比例大于50%。如此,可以利用区块链的去中心化以及不可篡改的特点,提高战场态势感知系统中数据的安全性。In some embodiments, the second preset condition may be that the proportion of the number of second devices passing consensus verification to all node devices exceeds a preset proportion, where the preset proportion is greater than 50%. In this way, the decentralization and immutability of the blockchain can be used to improve the security of data in the battlefield situational awareness system.

具体的,在将第一战场信息、第一哈希值以及第一设备的第一标识加入各自维护的区块链时,为防止每个节点设备生成的区块链被篡改,可以采用SHA256哈希算法根据每一个区块的内容生成相应的哈希值,该哈希值会被下一个区块链使用,进而一条链中区块与区块之间形成关联。如此,如果要改动某一个区块的数据,不仅要改动该区块对应的哈希值,也必须要改动下一个区块所对应的哈希值,以此类推,即必须改动几乎整条区块链的哈希值,这几乎难以完成。此外,即使被恶意改动,也很容易被发现并且已不再具有时效性。因此,该方法有效地使系统的数据具有不可篡改性。Specifically, when adding the first battlefield information, the first hash value, and the first identifier of the first device to the blockchain maintained by each node, in order to prevent the blockchain generated by each node device from being tampered with, SHA256 hash value can be used. The algorithm generates a corresponding hash value according to the content of each block, and the hash value will be used by the next block chain, and then the blocks in a chain are associated with each other. In this way, if you want to change the data of a certain block, you must not only change the hash value corresponding to the block, but also the hash value corresponding to the next block, and so on, that is, almost the entire area must be changed. The hash of the blockchain, which is almost impossible to accomplish. In addition, even if maliciously altered, they are easy to spot and are no longer time-sensitive. Therefore, the method effectively makes the data of the system immutable.

如图3所示,示出了一种区块链形成过程。具体的,数据传输采用一对多模式,即一个节点发送,其余节点接收。先采用SHA256哈希算法进行防篡改处理,形成完整的区块,再采用非对称加密方式按照时间顺序依次进行传输,进而在每个节点内部形成单向链式结构。每一份新采集的信息都参与形成区块,其中包括时间戳、前一区块哈希值、共享内容、本区块哈希值、随机数、节点编号、区块编号。As shown in Figure 3, a blockchain formation process is shown. Specifically, the data transmission adopts a one-to-many mode, that is, one node sends and the other nodes receive. First, the SHA256 hash algorithm is used for tamper-proof processing to form a complete block, and then the asymmetric encryption method is used to transmit in time sequence, and then a one-way chain structure is formed inside each node. Each piece of newly collected information participates in the formation of a block, including timestamp, hash value of the previous block, shared content, hash value of this block, random number, node number, and block number.

例如,战场态势感知系统的某一个节点(节点1)进行战场数据的采集,然后利用SHA256算法将此数据加密生成哈希值001,从而得到区块1存储在自身节点中,此过程发生的时间和标签也都在区块1中明确记录;之后,此节点1将区块1进行广播,当其他节点(节点2)接收到广播时,进行验证无误后,将其存入自身的节点中,此过程发生的时间和标签也均有记录;当此节点(节点2)采集或接收到新的数据时,以同样的方法将此新的数据加密形成哈希值002,得到区块2,并将其与区块1中的哈希值001一起存入区块2;以此类推,每采集或接收到新的数据时,都会形成一个新的区块,其中存有标签、时间戳、采集或接受到的数据内容、此数据经过加密得到的哈希值以及上一个区块形成的哈希值。在每个节点内部,所有区块按时间顺序进行链式结构连接就形成了一条区块链。For example, a certain node (node 1) of the battlefield situational awareness system collects battlefield data, and then uses the SHA256 algorithm to encrypt the data to generate a hash value of 001, so as to obtain block 1 and store it in its own node. and labels are also clearly recorded in block 1; after that, this node 1 broadcasts block 1, and when other nodes (node 2) receive the broadcast, after verifying that it is correct, store it in its own node, The time and label of this process are also recorded; when the node (node 2) collects or receives new data, it encrypts the new data in the same way to form the hash value 002 to obtain block 2, and Store it in block 2 together with the hash value 001 in block 1; and so on, every time new data is collected or received, a new block will be formed, which contains tags, timestamps, collection Or the received data content, the encrypted hash value of this data, and the hash value formed by the previous block. Inside each node, all blocks are connected in a chronological order in a chain structure to form a blockchain.

可选的,为了保证各节点设备的工作状态与安全性,可以在节点设备中指定一个或多个管理设备,例如指挥中心处的节点设备,然后通过管理设备对节点设备进行管理。Optionally, in order to ensure the working state and security of each node device, one or more management devices may be specified in the node device, such as the node device at the command center, and then the node device is managed through the management device.

具体的,管理设备可以每隔预设时段,获取每个节点设备维护的区块链中的当前最后一个区块的哈希值。之后,管理设备可以将与基准哈希值不同的哈希值所对应的节点设备标记为异常设备,其中,基准哈希值为所有哈希值中数量最多的相同哈希值。Specifically, the management device may obtain the hash value of the current last block in the blockchain maintained by each node device at preset time intervals. After that, the management device may mark the node device corresponding to the hash value different from the reference hash value as an abnormal device, wherein the reference hash value is the same hash value with the largest number among all the hash values.

如此,战场中的指挥单位也可以作为区块链网络中的节点设备,能够接收加密数据和发布命令,并且在其内部也会形成一条与其他节点设备内容完全相同的区块链。为保证各节点的工作状态与安全性,指挥单位可以间隔一定时间收集其它所有节点最新一个区块的哈希值数据并进行对比(指挥单位节点的最新区块哈希值也进行对比)。若相同,则说明节点正常工作,指挥中心直接采用自身的区块链进行分析使用。若其中某一个节点的哈希值与其他节点不同,则需要舍弃该节点,并获得该节点的区块链进行数据追溯明确错误产生因素。另外,如果指挥中心自身的哈希值与其他所有节点不同,则需要舍弃指挥中心自身的区块链,并利用其他正常节点的区块链进行分析使用。In this way, the command unit in the battlefield can also act as a node device in the blockchain network, which can receive encrypted data and issue commands, and also form a blockchain with the same content as other node devices inside. In order to ensure the working status and security of each node, the command unit can collect the hash value data of the latest block of all other nodes at certain intervals and compare it (the latest block hash value of the command unit node is also compared). If they are the same, it means that the node is working normally, and the command center directly uses its own blockchain for analysis and use. If the hash value of one of the nodes is different from other nodes, the node needs to be discarded, and the blockchain of the node needs to be obtained for data traceability to clarify the error-causing factors. In addition, if the hash value of the command center itself is different from that of all other nodes, it is necessary to discard the blockchain of the command center itself and use the blockchain of other normal nodes for analysis and use.

在一些实施例中,区块链网络可以采用一种或多种数据传输方式,例如第五代移动通信技术(5G)传输方式、第四代移动通信技术(4G)传输方式和远距离无线电(Lora)传输方式。In some embodiments, the blockchain network may employ one or more data transmission methods, such as fifth-generation mobile communication technology (5G) transmission methods, fourth-generation mobile communication technology (4G) transmission methods, and long-range radio ( Lora) transmission method.

具体的,对于视频、图片类型的数据,可以采用以5G为主、4G为辅的通信方式,可使得传输速度大大加快,有效扩大信息传输范围。而对于其他类型的数据,可以采用Lora无线模块组成网络系统,该网络系统中每一个模块都可以相当于一个网络基站,在基站范围内可以进行网络通信,如此,可以有效降低延迟,实时监控战场环境,保证信息的实时传输。Specifically, for video and picture type data, 5G-based and 4G-based communication methods can be used, which can greatly speed up the transmission speed and effectively expand the range of information transmission. For other types of data, Lora wireless modules can be used to form a network system. Each module in the network system can be equivalent to a network base station, and network communication can be carried out within the range of the base station. In this way, the delay can be effectively reduced and the battlefield can be monitored in real time. environment to ensure real-time transmission of information.

需要说明的是,由于上述战场态势感知系统中无中心节点,每辆侦察车或每架无人机都保存有其它侦查车和无人机的历史数据,因此可通过将指挥中心接收到的数据和侦察车、无人机采集到的数据进行对比,实现数据可追溯,确保数据准确无误。It should be noted that, since there is no central node in the above-mentioned battlefield situational awareness system, each reconnaissance vehicle or each UAV saves the historical data of other reconnaissance vehicles and UAVs. Compare with the data collected by reconnaissance vehicles and drones to achieve data traceability and ensure data accuracy.

为了更好的理解本发明实施例提供的战场态势感知方法,可以参见图4所示的工作流程图。For a better understanding of the battlefield situational awareness method provided by the embodiments of the present invention, reference may be made to the work flow diagram shown in FIG. 4 .

在本发明实施例中,应用了区块链技术构建分布式系统架构的战场态势感知系统,其中,第一设备可以采集第一设备所在地的第一战场信息,并对第一设备对第一战场信息进行哈希处理,得到第一哈希值,然后可以根据预设算法加密第一战场信息、第一哈希值以及第一设备的第一标识,并在区块链网络中广播加密得到的密文。之后,第二设备可以接收到该密文,并可以根据预设算法解密密文,得到第一战场信息、第一哈希值以及第一设备的第一标识。接着,当第一时间戳和第一标识满足第一预设条件时,第二设备根据第一哈希值对第一战场信息进行共识验证。最后,当通过共识验证的第二设备的数量满足第二预设条件时,第一设备和所有的第二设备均将第一战场信息、第一哈希值以及第一设备的第一标识加入各自维护的区块链。如此,可以利用区块链抗打击能力强的特点,同时进行哈希加密处理具有的数据防篡改的特点,可以对各节点设备上报的数据进行验证,确保数据可信。由于区块链的技术优势在于存储安全,时序明晰,数据可供自我验证,因此,基于区块链技术的战场态势感知系统具有战场生存力强、数据安全可信、可安全验证等优势。In the embodiment of the present invention, the blockchain technology is applied to construct a battlefield situational awareness system with a distributed system architecture, wherein the first device can collect the information of the first battlefield where the first device is located, and analyze the information on the first battlefield for the first device. The information is hashed to obtain the first hash value, and then the first battlefield information, the first hash value and the first identification of the first device can be encrypted according to the preset algorithm, and the encrypted data can be broadcast in the blockchain network. ciphertext. Afterwards, the second device can receive the ciphertext, and can decrypt the ciphertext according to a preset algorithm to obtain the first battlefield information, the first hash value, and the first identifier of the first device. Next, when the first timestamp and the first identifier satisfy the first preset condition, the second device performs consensus verification on the first battlefield information according to the first hash value. Finally, when the number of second devices that have passed the consensus verification meets the second preset condition, the first device and all second devices add the first battlefield information, the first hash value, and the first identifier of the first device to The respective blockchains are maintained. In this way, the strong anti-attack ability of the blockchain can be used, and the data tamper-proof feature of hash encryption processing can be used to verify the data reported by each node device to ensure that the data is credible. Since the technical advantages of blockchain lie in secure storage, clear timing, and self-verification of data, the battlefield situational awareness system based on blockchain technology has the advantages of strong battlefield survivability, data security and reliability, and safe verification.

另外,由于数据可以同时传输给指挥中心和不同的指挥官,如此,指挥中心无需向下级提供情报,直接下达作战命令即可,大大增强战场机动性。其次,所有参与信息的共享者及其参数信息都将被记录,一旦数据校验出现问题,可以及时发现出错节点并进行追溯。In addition, since the data can be transmitted to the command center and different commanders at the same time, the command center does not need to provide intelligence to the lower level, but can directly issue combat orders, which greatly enhances the mobility of the battlefield. Secondly, all participants of the information sharing and their parameter information will be recorded. Once there is a problem with the data verification, the faulty node can be found and traced in time.

此外,战场态势感知系统的每个节点设备互不影响,当该系统的部分节点设备受到敌人的打击后,其他节点设备仍可继续组网,执行侦察任务。In addition, each node device of the battlefield situational awareness system does not affect each other. When some node devices of the system are attacked by the enemy, other node devices can still continue to network and perform reconnaissance tasks.

基于上述实施例提供的战场态势感知方法,相应地,本发明还提供了应用于该战场态势感知方法的战场态势感知系统的具体实现方式。请参见以下实施例。Based on the battlefield situational awareness method provided by the above embodiments, correspondingly, the present invention also provides a specific implementation manner of the battlefield situational awareness system applied to the battlefield situational awareness method. See the examples below.

如图5所示,提供了一种战场态势感知系统,系统包括多个处于同一区块链网络的节点设备,其中:As shown in Figure 5, a battlefield situational awareness system is provided. The system includes multiple node devices in the same blockchain network, wherein:

第一设备510,用于采集第一设备510所在地的第一战场信息;其中,第一战场信息携带有第一时间戳,第一时间戳为第一战场信息的采集时间;The first device 510 is used to collect the first battlefield information where the first device 510 is located; wherein, the first battlefield information carries a first time stamp, and the first time stamp is the collection time of the first battlefield information;

第一设备510,还用于对第一战场信息进行哈希处理,得到第一哈希值;The first device 510 is further configured to perform hash processing on the first battlefield information to obtain a first hash value;

第一设备510,还用于根据预设算法加密第一战场信息、第一哈希值以及第一设备510的第一标识,并在区块链网络中广播加密得到的密文;The first device 510 is further configured to encrypt the first battlefield information, the first hash value and the first identifier of the first device 510 according to a preset algorithm, and broadcast the encrypted ciphertext in the blockchain network;

第二设备520,用于根据预设算法解密密文,得到第一战场信息、第一哈希值以及第一设备510的第一标识;The second device 520 is configured to decrypt the ciphertext according to a preset algorithm to obtain the first battlefield information, the first hash value and the first identifier of the first device 510;

第二设备520,还用于当第一时间戳和第一标识满足第一预设条件时,根据第一哈希值对第一战场信息进行共识验证;The second device 520 is further configured to perform consensus verification on the first battlefield information according to the first hash value when the first timestamp and the first identifier satisfy the first preset condition;

第一设备510和所有的第二设备520,还用于当通过共识验证的第二设备520的数量满足第二预设条件时,将第一战场信息、第一哈希值以及第一设备510的第一标识加入各自维护的区块链;其中,第一设备510为区块链网络中任意一个节点设备,第二设备520为区块链网络中除第一设备510以外的任意一个节点设备。The first device 510 and all the second devices 520 are further configured to combine the first battlefield information, the first hash value and the first device 510 when the number of the second devices 520 that have passed the consensus verification meets the second preset condition. The first identifier of each node is added to the respective maintained blockchain; wherein, the first device 510 is any node device in the blockchain network, and the second device 520 is any node device other than the first device 510 in the blockchain network .

可选的,第一预设条件包括:Optionally, the first preset condition includes:

第一时间戳为当前所有未共识验证的战场信息的时间戳中唯一的最小的时间戳;The first timestamp is the unique and smallest timestamp among the timestamps of all current battlefield information that has not been verified by consensus;

第一时间戳为当前所有未共识验证的战场信息的时间戳中多个最小的时间戳之一,且第一标识的等级为多个最小的时间戳所对应的标识中唯一的最高的等级。The first timestamp is one of the minimum timestamps among the timestamps of all current battlefield information that is not verified by consensus, and the level of the first identifier is the unique highest level among the identifiers corresponding to the multiple minimum timestamps.

可选的,第二设备还用于:Optionally, the second device is also used for:

对第一战场信息进行哈希处理,得到第二哈希值;Hash the first battlefield information to obtain a second hash value;

当第二哈希值和第一哈希值相同时,通过对第一战场信息的共识验证;When the second hash value is the same as the first hash value, the consensus verification of the first battlefield information is passed;

当第二哈希值和第一哈希值不同时,不通过对第一战场信息的共识验证。When the second hash value is different from the first hash value, the consensus verification of the first battlefield information is not passed.

可选的,第二预设条件包括:Optionally, the second preset condition includes:

通过共识验证的第二设备的数量占所有节点设备的比例超过预设比例,预设比例大于50%。The proportion of the number of second devices that have passed consensus verification to all node devices exceeds the preset proportion, and the preset proportion is greater than 50%.

可选的,多个处于同一区块链网络的节点设备中包括至少一个管理设备,管理设备用于:Optionally, multiple node devices in the same blockchain network include at least one management device, and the management device is used for:

每隔预设时段,管理设备获取每个节点设备维护的区块链中的当前最后一个区块的哈希值;Every preset period, the management device obtains the hash value of the current last block in the blockchain maintained by each node device;

将与基准哈希值不同的哈希值所对应的节点设备标记为异常设备;基准哈希值为所有哈希值中数量最多的相同哈希值。Mark node devices with hash values different from the baseline hash value as abnormal devices; the baseline hash value is the same hash value with the largest number of all hash values.

可选的,区块链网络采用的传输方式至少包括第五代移动通信技术传输方式、第四代移动通信技术传输方式和远距离无线电传输方式中的一种。Optionally, the transmission mode adopted by the blockchain network includes at least one of the fifth-generation mobile communication technology transmission mode, the fourth-generation mobile communication technology transmission mode, and the long-distance radio transmission mode.

在本发明实施例中,应用了区块链技术构建分布式系统架构的战场态势感知系统,其中,第一设备可以采集第一设备所在地的第一战场信息,并对第一设备对第一战场信息进行哈希处理,得到第一哈希值,然后可以根据预设算法加密第一战场信息、第一哈希值以及第一设备的第一标识,并在区块链网络中广播加密得到的密文。之后,第二设备可以接收到该密文,并可以根据预设算法解密密文,得到第一战场信息、第一哈希值以及第一设备的第一标识。接着,当第一时间戳和第一标识满足第一预设条件时,第二设备根据第一哈希值对第一战场信息进行共识验证。最后,当通过共识验证的第二设备的数量满足第二预设条件时,第一设备和所有的第二设备均将第一战场信息、第一哈希值以及第一设备的第一标识加入各自维护的区块链。如此,可以利用区块链抗打击能力强的特点,同时进行哈希加密处理具有的数据防篡改的特点,可以对各节点设备上报的数据进行验证,确保数据可信,解决了战场态势感知系统存在数据篡改的问题。In the embodiment of the present invention, the blockchain technology is applied to construct a battlefield situational awareness system with a distributed system architecture, wherein the first device can collect the information of the first battlefield where the first device is located, and analyze the information on the first battlefield for the first device. The information is hashed to obtain the first hash value, and then the first battlefield information, the first hash value and the first identification of the first device can be encrypted according to the preset algorithm, and the encrypted data can be broadcast in the blockchain network. ciphertext. Afterwards, the second device can receive the ciphertext, and can decrypt the ciphertext according to a preset algorithm to obtain the first battlefield information, the first hash value, and the first identifier of the first device. Next, when the first timestamp and the first identifier satisfy the first preset condition, the second device performs consensus verification on the first battlefield information according to the first hash value. Finally, when the number of second devices that have passed the consensus verification meets the second preset condition, the first device and all second devices add the first battlefield information, the first hash value, and the first identifier of the first device to The respective blockchains are maintained. In this way, the strong anti-attack ability of the blockchain can be used, and the data tamper-proof feature of hash encryption processing can be used to verify the data reported by each node device to ensure the credibility of the data, which solves the battlefield situational awareness system. There is a problem of data tampering.

图6是本发明一实施例提供的终端设备的示意图。如图6所示,该实施例的终端设备6包括:处理器60、存储器61以及存储在所述存储器61中并可在所述处理器60上运行的计算机程序62。所述处理器60执行所述计算机程序62时实现上述各个战场态势感知方法实施例中的步骤。或者,所述处理器60执行所述计算机程序62时实现上述各装置实施例中各模块/单元的功能。FIG. 6 is a schematic diagram of a terminal device provided by an embodiment of the present invention. As shown in FIG. 6 , the terminal device 6 in this embodiment includes: a processor 60 , a memory 61 , and a computer program 62 stored in the memory 61 and running on the processor 60 . When the processor 60 executes the computer program 62, the steps in each of the above embodiments of the battlefield situational awareness method are implemented. Alternatively, when the processor 60 executes the computer program 62, the functions of the modules/units in the foregoing device embodiments are implemented.

示例性的,所述计算机程序62可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器61中,并由所述处理器60执行,以完成本发明。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序62在所述终端设备6中的执行过程。Exemplarily, the computer program 62 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 61 and executed by the processor 60 to complete the this invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program 62 in the terminal device 6 .

所述终端设备6可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述终端设备可包括,但不仅限于,处理器60、存储器61。本领域技术人员可以理解,图6仅仅是终端设备6的示例,并不构成对终端设备6的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述终端设备还可以包括输入输出设备、网络接入设备、总线等。The terminal device 6 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The terminal device may include, but is not limited to, the processor 60 and the memory 61 . Those skilled in the art can understand that FIG. 6 is only an example of the terminal device 6, and does not constitute a limitation on the terminal device 6, and may include more or less components than the one shown, or combine some components, or different components For example, the terminal device may further include an input and output device, a network access device, a bus, and the like.

所称处理器60可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 60 may be a central processing unit (Central Processing Unit, CPU), and may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

所述存储器61可以是所述终端设备6的内部存储单元,例如终端设备6的硬盘或内存。所述存储器61也可以是所述终端设备6的外部存储设备,例如所述终端设备6上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器61还可以既包括所述终端设备6的内部存储单元也包括外部存储设备。所述存储器61用于存储所述计算机程序以及所述终端设备所需的其他程序和数据。所述存储器61还可以用于暂时地存储已经输出或者将要输出的数据。The memory 61 may be an internal storage unit of the terminal device 6 , such as a hard disk or a memory of the terminal device 6 . The memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk equipped on the terminal device 6, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, flash card (Flash Card) and so on. Further, the memory 61 may also include both an internal storage unit of the terminal device 6 and an external storage device. The memory 61 is used to store the computer program and other programs and data required by the terminal device. The memory 61 can also be used to temporarily store data that has been output or will be output.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. Module completion, that is, dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit, and the above-mentioned integrated units may adopt hardware. It can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above-mentioned system, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.

在本发明所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided by the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the apparatus/terminal device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units. Or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。The integrated modules/units, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on this understanding, the present invention can implement all or part of the processes in the methods of the above embodiments, and can also be completed by instructing relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable media may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer-readable media Electric carrier signals and telecommunication signals are not included.

以上所述实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围,均应包含在本发明的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it is still possible to implement the foregoing implementations. The technical solutions described in the examples are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the within the protection scope of the present invention.

Claims (10)

1.一种战场态势感知方法,其特征在于,所述方法应用于战场态势感知系统,所述系统包括多个处于同一区块链网络的节点设备,所述方法包括:1. a battlefield situational awareness method, it is characterized in that, described method is applied to battlefield situational awareness system, described system comprises a plurality of node devices in the same block chain network, described method comprises: 第一设备采集所述第一设备所在地的第一战场信息;所述第一战场信息携带有第一时间戳,所述第一时间戳为所述第一战场信息的采集时间;The first device collects the first battlefield information where the first device is located; the first battlefield information carries a first time stamp, and the first time stamp is the collection time of the first battlefield information; 所述第一设备对所述第一战场信息进行哈希处理,得到第一哈希值;The first device performs hash processing on the first battlefield information to obtain a first hash value; 所述第一设备根据预设算法加密所述第一战场信息、所述第一哈希值以及所述第一设备的第一标识,并在所述区块链网络中广播加密得到的密文;The first device encrypts the first battlefield information, the first hash value and the first identifier of the first device according to a preset algorithm, and broadcasts the encrypted ciphertext in the blockchain network ; 第二设备根据所述预设算法解密所述密文,得到所述第一战场信息、所述第一哈希值以及所述第一设备的第一标识;The second device decrypts the ciphertext according to the preset algorithm to obtain the first battlefield information, the first hash value and the first identifier of the first device; 当所述第一时间戳和所述第一标识满足第一预设条件时,所述第二设备根据所述第一哈希值对所述第一战场信息进行共识验证;When the first timestamp and the first identifier satisfy a first preset condition, the second device performs consensus verification on the first battlefield information according to the first hash value; 当通过共识验证的所述第二设备的数量满足第二预设条件时,所述第一设备和所有的所述第二设备均将所述第一战场信息、所述第一哈希值以及所述第一设备的第一标识加入各自维护的区块链;所述第一设备为所述区块链网络中任意一个所述节点设备,所述第二设备为所述区块链网络中除所述第一设备以外的任意一个所述节点设备;When the number of the second devices that have passed the consensus verification meets the second preset condition, the first device and all the second devices combine the first battlefield information, the first hash value and the The first identifier of the first device is added to the respective maintained blockchain; the first device is any one of the node devices in the blockchain network, and the second device is in the blockchain network any one of the node devices except the first device; 其中,所述第二预设条件包括:通过共识验证的所述第二设备的数量占所有所述节点设备的比例超过预设比例。Wherein, the second preset condition includes: the proportion of the number of the second devices passing the consensus verification to all the node devices exceeds a preset proportion. 2.如权利要求1所述的战场态势感知方法,其特征在于,所述第一预设条件包括:2. The battlefield situational awareness method according to claim 1, wherein the first preset condition comprises: 所述第一时间戳为当前所有未共识验证的战场信息的时间戳中唯一的最小的时间戳;The first timestamp is the unique and smallest timestamp among the timestamps of all current battlefield information not verified by consensus; 所述第一时间戳为当前所有未共识验证的战场信息的时间戳中多个最小的时间戳之一,且所述第一标识的等级为所述多个最小的时间戳所对应的标识中唯一的最高的等级。The first time stamp is one of the smallest time stamps among the time stamps of all current battlefield information that has not been verified by consensus, and the level of the first identifier is one of the identifiers corresponding to the plurality of smallest time stamps. The only highest grade. 3.如权利要求1所述的战场态势感知方法,其特征在于,所述第二设备根据所述第一哈希值对所述第一战场信息进行共识验证,包括:3. The battlefield situational awareness method according to claim 1, wherein the second device performs consensus verification on the first battlefield information according to the first hash value, comprising: 所述第二设备对所述第一战场信息进行哈希处理,得到第二哈希值;The second device performs hash processing on the first battlefield information to obtain a second hash value; 当所述第二哈希值和所述第一哈希值相同时,所述第二设备通过对所述第一战场信息的共识验证;When the second hash value is the same as the first hash value, the second device passes the consensus verification of the first battlefield information; 当所述第二哈希值和所述第一哈希值不同时,所述第二设备不通过对所述第一战场信息的共识验证。When the second hash value and the first hash value are different, the second device fails the consensus verification of the first battlefield information. 4.如权利要求1所述的战场态势感知方法,其特征在于,所述预设比例大于50%。4. The battlefield situational awareness method according to claim 1, wherein the preset ratio is greater than 50%. 5.如权利要求1所述的战场态势感知方法,其特征在于,所述多个处于同一区块链网络的节点设备中包括至少一个管理设备;5. The battlefield situational awareness method according to claim 1, wherein the plurality of node devices in the same blockchain network include at least one management device; 所述方法还包括:The method also includes: 每隔预设时段,所述管理设备获取每个节点设备维护的区块链中的当前最后一个区块的哈希值;Every preset time period, the management device obtains the hash value of the current last block in the blockchain maintained by each node device; 将与基准哈希值不同的所述哈希值所对应的节点设备标记为异常设备;所述基准哈希值为所有所述哈希值中数量最多的相同哈希值。The node device corresponding to the hash value different from the reference hash value is marked as an abnormal device; the reference hash value is the same hash value with the largest number among all the hash values. 6.如权利要求1至5任一项所述的战场态势感知方法,其特征在于,所述区块链网络采用的传输方式至少包括第五代移动通信技术传输方式、第四代移动通信技术传输方式和远距离无线电传输方式中的一种。6. The battlefield situational awareness method according to any one of claims 1 to 5, wherein the transmission mode adopted by the blockchain network includes at least the fifth generation mobile communication technology transmission mode, the fourth generation mobile communication technology transmission mode One of transmission methods and long-distance radio transmission methods. 7.一种战场态势感知系统,其特征在于,所述系统包括多个处于同一区块链网络的节点设备,其中:7. A battlefield situational awareness system, wherein the system comprises a plurality of node devices in the same blockchain network, wherein: 第一设备,用于采集所述第一设备所在地的第一战场信息;其中,所述第一战场信息携带有第一时间戳,所述第一时间戳为所述第一战场信息的采集时间;A first device, configured to collect first battlefield information where the first device is located; wherein, the first battlefield information carries a first time stamp, and the first time stamp is the collection time of the first battlefield information ; 所述第一设备,还用于对所述第一战场信息进行哈希处理,得到第一哈希值;The first device is further configured to perform hash processing on the first battlefield information to obtain a first hash value; 所述第一设备,还用于根据预设算法加密所述第一战场信息、所述第一哈希值以及所述第一设备的第一标识,并在所述区块链网络中广播加密得到的密文;The first device is further configured to encrypt the first battlefield information, the first hash value and the first identifier of the first device according to a preset algorithm, and broadcast the encryption in the blockchain network the obtained ciphertext; 第二设备,用于根据所述预设算法解密所述密文,得到所述第一战场信息、所述第一哈希值以及所述第一设备的第一标识;a second device, configured to decrypt the ciphertext according to the preset algorithm to obtain the first battlefield information, the first hash value and the first identifier of the first device; 所述第二设备,还用于当所述第一时间戳和所述第一标识满足第一预设条件时,根据所述第一哈希值对所述第一战场信息进行共识验证;The second device is further configured to perform consensus verification on the first battlefield information according to the first hash value when the first timestamp and the first identifier satisfy a first preset condition; 所述第一设备和所有的所述第二设备,还用于当通过共识验证的所述第二设备的数量满足第二预设条件时,将所述第一战场信息、所述第一哈希值以及所述第一设备的第一标识加入各自维护的区块链;其中,所述第一设备为所述区块链网络中任意一个所述节点设备,所述第二设备为所述区块链网络中除所述第一设备以外的任意一个所述节点设备;The first device and all the second devices are further configured to, when the number of the second devices that have passed the consensus verification meets the second preset condition, combine the first battlefield information, the first The value and the first identifier of the first device are added to the respective maintained blockchains; wherein the first device is any one of the node devices in the blockchain network, and the second device is the Any one of the node devices in the blockchain network except the first device; 其中,所述第二预设条件包括:通过共识验证的所述第二设备的数量占所有所述节点设备的比例超过预设比例。Wherein, the second preset condition includes: the ratio of the number of the second devices that have passed the consensus verification to all the node devices exceeds a preset ratio. 8.如权利要求7所述的战场态势感知系统,其特征在于,所述第一预设条件包括:8. The battlefield situational awareness system according to claim 7, wherein the first preset condition comprises: 所述第一时间戳为当前所有未共识验证的战场信息的时间戳中唯一的最小的时间戳;The first timestamp is the unique and smallest timestamp among the timestamps of all current battlefield information that are not verified by consensus; 所述第一时间戳为当前所有未共识验证的战场信息的时间戳中多个最小的时间戳之一,且所述第一标识的等级为所述多个最小的时间戳所对应的标识中唯一的最高的等级。The first time stamp is one of the smallest time stamps among the time stamps of all current battlefield information that has not been verified by consensus, and the level of the first identifier is one of the identifiers corresponding to the plurality of smallest time stamps. The only highest grade. 9.如权利要求7所述的战场态势感知系统,其特征在于,所述第二设备还用于:9. The battlefield situational awareness system according to claim 7, wherein the second device is further used for: 对所述第一战场信息进行哈希处理,得到第二哈希值;performing hash processing on the first battlefield information to obtain a second hash value; 当所述第二哈希值和所述第一哈希值相同时,通过对所述第一战场信息的共识验证;When the second hash value is the same as the first hash value, the consensus verification of the first battlefield information is passed; 当所述第二哈希值和所述第一哈希值不同时,不通过对所述第一战场信息的共识验证。When the second hash value and the first hash value are different, the consensus verification of the first battlefield information is not passed. 10.一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至6任一项所述方法的步骤。10. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, when the processor executes the computer program, the computer program as claimed in the claims is implemented Steps of any one of 1 to 6 of the method.
CN202110416463.6A 2021-04-19 2021-04-19 Battlefield situation perception method, system and terminal equipment Active CN112989392B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110416463.6A CN112989392B (en) 2021-04-19 2021-04-19 Battlefield situation perception method, system and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110416463.6A CN112989392B (en) 2021-04-19 2021-04-19 Battlefield situation perception method, system and terminal equipment

Publications (2)

Publication Number Publication Date
CN112989392A CN112989392A (en) 2021-06-18
CN112989392B true CN112989392B (en) 2022-08-30

Family

ID=76341026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110416463.6A Active CN112989392B (en) 2021-04-19 2021-04-19 Battlefield situation perception method, system and terminal equipment

Country Status (1)

Country Link
CN (1) CN112989392B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109246137A (en) * 2018-10-23 2019-01-18 北京航空航天大学 The safety protecting method and device of naval warfare data based on block chain
CN109302311A (en) * 2018-09-04 2019-02-01 北京邮电大学 Blockchain network, perception method and electronic device for realizing network situational awareness
CN109450856A (en) * 2018-10-12 2019-03-08 西安电子科技大学 Data-link information flow control system and method based on block chain
CN110381069A (en) * 2019-07-24 2019-10-25 重庆金山医疗技术研究院有限公司 A kind of approaches to IM and system based on block chain technology

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018046008A1 (en) * 2016-09-12 2018-03-15 上海鼎利信息科技有限公司 Storage design method of blockchain encrypted radio frequency chip
CN109039648B (en) * 2018-08-03 2021-09-03 克洛斯比尔有限公司 Block chain creating method and device and readable storage medium
CN109767220B (en) * 2019-01-15 2021-02-19 中国联合网络通信集团有限公司 Blockchain-based transaction method and blockchain-based transaction system
CN110995818A (en) * 2019-11-28 2020-04-10 中国人民解放军海军工程大学 A LoRa-based individual soldier information communication system and method
CN111740838B (en) * 2020-05-22 2023-04-07 上海链民信息科技有限公司 Trusted uplink method and system for block chain data
CN112102677A (en) * 2020-09-17 2020-12-18 中国人民解放军陆军军医大学 Mixed reality high-simulation battle site emergency training platform and training method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109302311A (en) * 2018-09-04 2019-02-01 北京邮电大学 Blockchain network, perception method and electronic device for realizing network situational awareness
CN109450856A (en) * 2018-10-12 2019-03-08 西安电子科技大学 Data-link information flow control system and method based on block chain
CN109246137A (en) * 2018-10-23 2019-01-18 北京航空航天大学 The safety protecting method and device of naval warfare data based on block chain
CN110381069A (en) * 2019-07-24 2019-10-25 重庆金山医疗技术研究院有限公司 A kind of approaches to IM and system based on block chain technology

Also Published As

Publication number Publication date
CN112989392A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
CN111614761B (en) Block chain message transmission method, device, computer and readable storage medium
CN107301353B (en) Streaming intensive data desensitization method and data desensitization equipment thereof
EP3732817A1 (en) Traceable key block-chain ledger
CN110569251A (en) Data processing method, related equipment and computer readable storage medium
CN109388417B (en) Communication protocol updating method, system and terminal equipment
US12143400B2 (en) Blockchain-based message processing method and apparatus, device, and storage medium
CN112217795B (en) Method and device for managing communication security of intelligent electric meter
CN111385126B (en) Device behavior control method and device, system, and storage medium
CN106330465B (en) Distributed timestamp processing method, server and system
CN115333800A (en) A vehicle-vehicle-cloud integrated log collection and analysis method, vehicle and cloud server
WO2021023304A1 (en) Fork processing method and blockchain node
DE102022122167A1 (en) PROCEDURE FOR REAL-TIME ECU CRASH REPORTING AND RECOVERY
CN110351358A (en) A kind of car networking safe information transmission and intelligent early-warning system
US12058269B2 (en) Systems and methods for providing secure internet of things data notifications using blockchain
US20240223390A1 (en) Blockchain system
DE102022122064A1 (en) SYSTEM AND METHOD FOR IMPROVED ECU FAILURE DETECTION IN FLEET
CN117390114A (en) Battery passport storage method, device and storage medium based on blockchain
DE102022122188A1 (en) SYSTEM AND METHOD TO ENABLE PERSISTENT VEHICLE SOFTWARE INTERFACES
CN112152981A (en) A communication method, node and communication system
CN112989392B (en) Battlefield situation perception method, system and terminal equipment
CN116388993A (en) Instrument blockchain information encryption method, system, equipment and storage medium
DE102022120276A1 (en) EXCHANGE OF VOLATILE KEYS BETWEEN VEHICLE SOFTWARE NODES
CN114240651A (en) Cross-chain transaction sending method, device, equipment and storage medium
CN118803030A (en) Offline verification method, system, verification terminal, readable storage medium and product
CN115580404B (en) Data transmission method, device, computer readable medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant