Disclosure of Invention
In view of the above, one technical problem to be solved by the present disclosure is to provide a cargo position tracking method, a cargo position tracking device, a logistics management system, and a storage medium.
According to an aspect of the present disclosure, there is provided a cargo position tracking method, including: receiving module identification information and module position information sent by a positioning module; acquiring operator information corresponding to the module identification information, and determining operator position information according to the module position information; wherein the operator information includes: an operator identification; receiving freight transportation information sent by operating equipment corresponding to the operator identification, and determining freight position information corresponding to the freight transportation information according to the operator position information; cargo point location information is generated and stored in a user block chain node and an operation block chain node in a block chain mode; wherein the cargo point location information includes: the cargo transportation information and the cargo position information.
Optionally, the operator information includes: a range of work areas; the method further comprises the following steps: determining whether the current position of the operator is located in the working area range according to the operator position information; if not, determining that the working state of the operator is abnormal, and storing abnormal state information in the user block chain node and the operation block chain node.
Optionally, the cargo transportation information comprises: cargo identification and operating time; the method further comprises the following steps: and the user block chain node and the operation block chain node generate operation time stamp information according to the operation time, and store the cargo position point position information and the operation time stamp information.
Optionally, obtaining first cargo point location information corresponding to the received cargo tracking query instruction from the user block chain node; extracting second cargo point location information from the operation block chain node according to the cargo transportation information and the operation timestamp information corresponding to the first cargo point location information; obtaining first goods position information in the first goods position information and second goods position information in the second goods position information; and judging whether the first cargo position information and the second cargo position information are the same or not, if so, determining that the cargo logistics information is correct, and if not, determining that the cargo logistics information is abnormal.
Optionally, the user blockchain node and the operation blockchain node are both provided with a content key and a key pair including a pair of a public key and a private key, and the method includes: encrypting the cargo position information by using the content key, and generating the cargo position point location information based on the cargo transportation information and the cargo position information ciphertext; the private key is used for signing the cargo space point location information to generate a content signature; sending the cargo location point location information and the content signature to the user block chain node and the operation block chain node; the user block chain node and the operation block chain node verify the content signature by using the public key; and if the verification is passed, the user block chain node and the operation block chain node generate the operation time stamp information, and the cargo position point position information and the operation time stamp information are stored.
Optionally, sending third cargo point location information and accessing a website to the user according to a preset communication mode; acquiring the third cargo position location information uploaded by the user through accessing the access website, and decrypting a cargo position information ciphertext in the third position location information by using the content key to acquire third cargo position information; acquiring fourth cargo point location information from the operation block chain node according to cargo transportation information and operation time corresponding to the third cargo point location information, and decrypting a cargo position information ciphertext in the fourth cargo point location information by using the content key to acquire fourth cargo position information; returning the third cargo position information and the fourth cargo position information to the user; wherein, the communication mode comprises: e-mail, short message, network disk, three-party just website, etc.
Optionally, the operating device comprises: a scanner, the method further comprising: determining a target operation block chain node currently used for storing the cargo point location information based on the identification number of the operation device; wherein the operation block chain node comprises: the system comprises vehicle transportation block chain nodes, sorting center block chain nodes and express station block chain nodes.
Optionally, the positioning module comprises: a GPS unit and a communication unit; the communication unit includes: the system comprises a 3G communication unit, a 4G communication unit and a WIFI unit; wherein the module location information includes: latitude and longitude information.
According to another aspect of the present disclosure, there is provided a cargo position tracking device including: the positioning information receiving module is used for receiving the module identification information and the module position information sent by the positioning module; the operator information determining module is used for acquiring the operator information corresponding to the module identification information and determining the position information of the operator according to the module position information; wherein the operator information includes: an operator identification; the cargo information determining module is used for receiving cargo transportation information sent by the operating equipment corresponding to the operator identification and determining cargo position information corresponding to the cargo transportation information according to the operator position information; the point location information processing module is used for generating goods point location information and storing the goods point location information in a user block chain node and an operation block chain node in a block chain mode; wherein the cargo point location information includes: the cargo transportation information and the cargo position information.
Optionally, the operator information includes: a range of work areas; further comprising: the operator position judging module is used for determining whether the current position of an operator is located in the working area range according to the operator position information; if not, determining that the working state of the operator is abnormal, and storing abnormal state information in the user block chain node and the operation block chain node.
Optionally, the cargo transportation information comprises: cargo identification and operating time; and the user block chain node and the operation block chain node generate operation time stamp information according to the operation time, and store the cargo position point position information and the operation time stamp information.
Optionally, the location information extracting module is configured to obtain, from the user block chain node, first cargo point location information corresponding to the received cargo tracking query instruction; extracting second cargo point location information from the operation block chain node according to the cargo transportation information and the operation timestamp information corresponding to the first cargo point location information; obtaining first goods position information in the first goods position information and second goods position information in the second goods position information; and the logistics information judging module is used for judging whether the first cargo position information and the second cargo position information are the same or not, if so, determining that the cargo logistics information is correct, and if not, determining that the cargo logistics information is abnormal.
Optionally, the user block chain node and the operation block chain node are both provided with a content key and a key pair including a pair of a public key and a private key; the point location information processing module comprises: the data encryption unit is used for encrypting the cargo position information by using the content key and generating the cargo position point location information based on the cargo transportation information and the cargo position information ciphertext; the signature processing unit is used for performing signature processing on the cargo space point location information by using the private key to generate a content signature; the data sending unit is used for sending the cargo space point location information and the content signature to the user block chain node and the operation block chain node; wherein the user blockchain node and the operational blockchain node verify the content signature using the public key; and if the verification is passed, the user block chain node and the operation block chain node generate the operation time stamp information, and the cargo position point position information and the operation time stamp information are stored.
Optionally, the point location information sending module is configured to send third cargo point location information and an access website to the user in a preset communication manner; the position information extraction module is used for acquiring the third cargo position information uploaded by the user through accessing the access website, and decrypting a cargo position information ciphertext in the third position information by using the content key to acquire the third cargo position information; acquiring fourth cargo point location information from the operation block chain node according to cargo transportation information and operation time corresponding to the third cargo point location information, and decrypting a cargo position information ciphertext in the fourth cargo point location information by using the content key to acquire fourth cargo position information; the position information sending module is used for returning the third cargo position information and the fourth cargo position information to the user; wherein, the communication mode comprises: mail, short message, network disk, three-party just website.
Optionally, the operating device comprises: a scanner; the point location information processing module is used for determining a target operation block chain node which is currently used for storing the cargo point location information based on the identification number of the operation equipment; wherein the operation block chain node comprises: the system comprises vehicle transportation block chain nodes, sorting center block chain nodes and express station block chain nodes.
Optionally, the positioning module comprises: a GPS unit and a communication unit; the communication unit includes: the system comprises a 3G communication unit, a 4G communication unit and a WIFI unit; wherein the module location information includes: latitude and longitude information;
according to still another aspect of the present disclosure, there is provided a logistics management system including: the cargo position tracking device as described above.
According to still another aspect of the present disclosure, there is provided a cargo position tracking device including: a memory; and a processor coupled to the memory, the processor configured to perform the method as described above based on instructions stored in the memory.
According to yet another aspect of the present disclosure, a computer-readable storage medium is provided, which stores computer instructions for execution by a processor to perform the method as described above.
The cargo position tracking method and device, the logistics management system and the storage medium can obtain cargo point location information based on the positioning module, and store and verify the cargo point location information by adopting a block chain technology, so that the reliability of the cargo point location information can be effectively ensured, and the cargo point location information is prevented from being maliciously tampered or disturbed; the position information of the goods wrapped by the real object is consistent with the goods point position information stored in the block chain, and the logistics information can be accurately tracked; the fake cost is improved, the benefit of the user can be protected, the abnormal problem can be accurately tracked, and the satisfaction degree and the trust degree of the user are enhanced.
Detailed Description
The present disclosure now will be described more fully hereinafter with reference to the accompanying drawings, in which exemplary embodiments of the disclosure are shown. The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure. The technical solution of the present disclosure is described in various aspects below with reference to various figures and embodiments.
Hereinafter, "first", "second", etc. are descriptively distinct and have no other special meaning.
FIG. 1 is a flowchart illustrating an embodiment of a cargo position tracking method according to the present disclosure, as shown in FIG. 1, the cargo position tracking method includes steps 101-104.
Step 101, receiving module identification information and module position information sent by a positioning module.
The positioning module can be various, and the positioning module comprises: GPS unit and communication unit, etc.; the communication unit includes: a 3G communication unit, a 4G communication unit, a WIFI unit, etc. The module location information may be latitude and longitude information, and the module identification information may be a positioning module ID. For example, the Positioning Module is provided with a SIM card (Subscriber identity Module), the Positioning Module may be set on or worn by an operator, and the Positioning Module uploads latitude and longitude information located by a current GPS (Global Positioning System) unit using heartbeat messages.
And 102, acquiring operator information corresponding to the module identification information, and determining the operator position information according to the module position information, wherein the operator information comprises operator identification and the like.
The operators are operators in the logistics process, the operators are provided with positioning modules, the operator identifications can be operator IDs and the like, and the binding relationship between the operator IDs and the positioning modules is established. And acquiring an operator ID corresponding to the positioning module ID according to the binding relationship, and determining longitude and latitude information corresponding to the operator ID according to the longitude and latitude information sent by the positioning module corresponding to the positioning module ID.
And 103, receiving the cargo transportation information sent by the operating equipment corresponding to the operator identification, and determining cargo position information corresponding to the cargo transportation information according to the operator position information.
The operator needs to log in and verify when using the operating device, if the verification is successful, the operator ID is bound with the operating device, and the operating device can be a scanner and the like. Cargo transportation information sent by an operating device bound with the operator ID is received, and the cargo transportation information comprises the cargo ID, node information of current transportation, operation time, an originating place, a destination place, transportation route information and the like.
Since the latitude and longitude information corresponding to the operator ID is acquired, and the latitude and longitude information corresponding to the operator ID can be used as the latitude and longitude information of the operating device, it can be determined that the cargo position information corresponding to the cargo transportation information is the latitude and longitude information corresponding to the operator ID.
And 104, generating cargo point location information, wherein the cargo point location information comprises cargo transportation information, cargo position information and the like, and storing the cargo point location information in user block chain nodes and operation block chain nodes in a block chain mode. The user can obtain goods point location information from the user block chain nodes and the operation block chain nodes, and the goods point location information is used for tracking the positions of goods.
The blockchain network is a distributed infrastructure system, which utilizes a blockchain data structure to store data, utilizes a distributed node consensus algorithm to generate and update data, utilizes cryptography to ensure the security of data transmission and access, and utilizes an intelligent contract composed of automated script codes to program and operate data. The blockchain network can realize the whole network sharing verification, tamper-resistant repudiation, acceptance and cashing. The data structure of the block chain has an internal anti-tampering mechanism, which is a technique with higher tampering cost, and each block has digital information of the previous block, which is a block + chain mechanism.
The block link points can be computers, user network disks, servers of express companies and the like in a block link network, a plurality of block link nodes used for storing the goods point location information are distributed in advance, the goods point location information is stored in the user block link nodes and the operation block link nodes in a block link mode, and the goods point location information can be prevented from being tampered.
Fig. 2 is a schematic flowchart of determining whether the operator position is abnormal according to an embodiment of the cargo position tracking method of the present disclosure, as shown in fig. 2:
step 201, obtaining operator information corresponding to the module identification information, wherein the operator information includes a working area range.
Step 202, determining whether the current position of the operator is within the working area according to the operator position information.
And step 203, if not, determining that the working state of the operator is abnormal, and storing abnormal state information in the user block chain node and the operation block chain node.
For example, when an operator scans a barcode of a package of goods, the operator information is obtained from an employee information system, the operator belongs to the beijing jianzhuang site, and the working area range of the operator is in the beijing jianzhuang site. Determining that the current position of the operator is in Pudong of Shanghai according to the operator position information obtained through a positioning module worn by the operator, determining that the current position of the operator is not located at the Beijing Yizhu site, determining that the working state of the operator is abnormal, and storing abnormal state information in a user block chain node and an operation block chain node, wherein the abnormal state information comprises the abnormal position information of the operator and the like.
In one embodiment, the cargo transportation information comprises cargo identification and operation time, the user block chain node and the operation block chain node generate operation timestamp information according to the operation time, and store the cargo position point location information and the operation timestamp information. Fig. 3 is a schematic flowchart of determining whether logistics information is abnormal according to an embodiment of the cargo position tracking method of the present disclosure, as shown in fig. 3:
step 301, when a cargo tracking query instruction sent by a user is received, obtaining first cargo point location information corresponding to the received cargo tracking query instruction from a user block link node.
And 302, extracting second cargo point location information from the operation block chain node according to the cargo transportation information and the operation timestamp information corresponding to the first cargo point location information.
Step 303, obtaining first cargo position information in the first cargo position information and second cargo position information in the second cargo position information.
And 304, judging whether the first cargo position information and the second cargo position information are the same, if so, determining that the cargo logistics information is correct, and if not, determining that the cargo logistics information is abnormal.
For example, the user sends a cargo tracking query instruction to obtain the latest cargo point location information of the cargo a. The latest first cargo point location information of the cargo A is obtained from the user block chain node, the latest second cargo point location information of the cargo A is extracted from the operation block chain node according to the cargo transportation information corresponding to the first cargo point location information and the operation timestamp information, and the cargo transportation information can comprise a cargo ID and the like.
And acquiring first cargo position information in the first cargo position information and second cargo position information in the second cargo position information, judging whether the first cargo position information and the second cargo position information are the same, if so, determining that the cargo logistics information is correct, and if not, determining that the cargo logistics information is abnormal.
The blockchain utilizes a blockchain data structure to verify and store data. The data shared by the block chain link points can be stored in the block chain respectively maintained by the block chain link points after the consensus verification of the block chain link points, the data stored in the block chain is difficult to be tampered or lost, and the data stored in the block chain maintained by the block chain link points is synchronous. The data stored in the block chain is encrypted by the encryption equipment, any block chain link point can only directly acquire the encrypted data from the block chain, the encrypted data can be sent to the encryption equipment for decryption after the authority verification of the block chain link point is passed, and the block chain link point can finally receive the plaintext data returned by the encryption equipment.
In one embodiment, the user blockchain node and the operation blockchain node are both provided with a content key and a key pair comprising a pair of public key and private key, the cargo position information is encrypted by using the content key, and the cargo position point information is generated based on the cargo transportation information and the cargo position information ciphertext. The private key is used for signing the point location information of the cargo space to generate a content signature, and various existing signature technologies can be adopted, such as hash value generation and the like.
And sending the cargo space point location information and the content signature to a user block chain node and an operation block chain node, verifying the content signature by using a public key by the user block chain node and the operation block chain node, generating operation timestamp information by the user block chain node and the operation block chain node if the verification is passed, and storing the cargo space point location information and the operation timestamp information.
Fig. 4 is a schematic flowchart of sending logistics information according to an embodiment of the cargo position tracking method of the present disclosure, as shown in fig. 4:
step 401, sending third cargo point location information and accessing a website to a user according to a preset communication mode, wherein the communication mode includes a mail, a short message, a network disk, a three-party fair website and the like. For example, a plurality of mailboxes provided by the user are acquired, and third point location information including encrypted longitude and latitude and other information can be uploaded to the user mailboxes.
And step 402, obtaining third cargo position information uploaded by the user through the access website, and decrypting a cargo position information ciphertext in the third position information by using the content key to obtain the third cargo position information.
And step 403, obtaining fourth cargo point location information from the operation block chain node according to the cargo transportation information and the operation time corresponding to the third cargo point location information, and decrypting a cargo position information ciphertext in the fourth cargo point location information by using the content key to obtain the fourth cargo position information.
Step 404, the third cargo position information and the fourth cargo position information are returned to the user. And the user judges whether the logistics information is correct or not by judging whether the third cargo position information is the same as the fourth cargo position information or not.
Fig. 5 is a schematic diagram of nodes for cargo transportation and delivery, and as shown in fig. 5, there are a plurality of nodes including warehouses, sorting centers, vehicle transportation, and express delivery stations when transporting express. A plurality of operation block chain nodes can be set aiming at a plurality of nodes, and the operation block chain nodes comprise vehicle transportation block chain nodes, sorting center block chain nodes, express delivery station block chain nodes and the like. And determining a target operation block chain node currently used for storing the cargo point location information based on the identification number of the operation device. For example, if the operating device is judged to belong to the sorting center based on the identification number of the operating device, the object point position information is sent to the sorting center block chain node for storage. When the cargo point location information is stored in one operation block chain node, the cargo point location information can be broadcasted to other operation block chain nodes.
In one embodiment, as shown in fig. 6, the present disclosure provides a cargo position tracking device 60 comprising: a positioning information receiving module 61, an operator information determining module 62, a cargo information determining module 63, and a point information processing module 64.
The positioning information receiving module 61 receives the module identification information and the module position information transmitted by the positioning module. The operator information determination module 62 obtains operator information corresponding to the module identification information, and determines operator position information according to the module position information, wherein the operator information includes: and identifying an operator. The cargo information determination module 63 receives the cargo transportation information sent by the operating device corresponding to the operator identifier, and determines the cargo position information corresponding to the cargo transportation information according to the operator position information. The point location information processing module 64 generates cargo point location information and stores the cargo point location information in a user block chain node and an operation block chain node in a block chain manner, wherein the cargo point location information includes cargo transportation information and cargo position information.
In one embodiment, as shown in fig. 7, the cargo position tracking device 60 of the present disclosure further includes: an operator position determination module 65, a position information extraction module 66, a logistics information determination module 67, a point location information transmission module 68, and a position information transmission module 69.
The operator position determination module 65 determines whether the current position of the operator is within the working area range according to the operator position information, and if not, the operator position determination module 65 determines that the working state of the operator is abnormal, and stores the abnormal state information in the user block chain node and the operation block chain node.
The location information extraction module 66 obtains first cargo point location information corresponding to the received cargo tracking query instruction from the user blockchain node. The location information extraction module 66 extracts the second point of cargo location information from the operational block link node according to the cargo transportation information and the operational timestamp information corresponding to the first point of cargo location information. The position information extraction module 66 obtains first cargo position information of the first cargo position information and second cargo position information of the second cargo position information. The logistics information determination module 67 determines whether the first cargo position information and the second cargo position information are the same, if yes, the logistics information determination module 67 determines that the cargo logistics information is correct, and if not, determines that the cargo logistics information is abnormal.
In one embodiment, as shown in fig. 8, the point location information processing module 64 includes: a data encryption unit 641, a signature processing unit 642, and a data transmission unit 643. The user block chain node and the operation block chain node are both provided with a content key and a key pair comprising a pair of a public key and a private key. The data encryption unit 641 encrypts the cargo position information using the content key, and generates cargo position point location information based on the cargo transportation information and the cargo position information ciphertext. The signature processing unit 642 performs signature processing on the cargo space point location information by using a private key to generate a content signature. The data sending unit 643 sends the location information of the cargo space and the content signature to the user blockchain node and the operation blockchain node. The user block chain node and the operation block chain node verify the content signature by using the public key; and if the verification is passed, the user block chain node and the operation block chain node generate operation time stamp information and store the cargo position point location information and the operation time stamp information.
In one embodiment, the point location information sending module 68 sends the third cargo point location information to the user and accesses the website in a preset communication manner. The location information extraction module 69 obtains the third cargo location information uploaded by the user through the access website, and decrypts the cargo location information ciphertext in the third location information using the content key to obtain the third cargo location information. The position information extraction module 69 obtains fourth cargo position information from the operation block chain node according to the cargo transportation information and the operation time corresponding to the third cargo position information, decrypts a cargo position information ciphertext in the fourth cargo position information using the content key, and obtains the fourth cargo position information. The position information sending module 69 returns the third cargo position information and the fourth cargo position information to the user, wherein the communication mode includes: e-mail and short message.
In one embodiment, the present disclosure provides a logistics management system comprising the cargo position tracking device as in any of the above embodiments.
FIG. 9 is a block diagram view of another embodiment of a cargo position tracking device according to the present disclosure. As shown in fig. 9, the apparatus may include a memory 91, a processor 92, a communication interface 93, and a bus 94. The memory 91 is used for storing instructions, the processor 92 is coupled to the memory 91, and the processor 92 is configured to execute the cargo position tracking method based on the instructions stored in the memory 91.
The memory 91 may be a high-speed RAM memory, a non-volatile memory (non-volatile memory), or the like, and the memory 91 may be a memory array. The storage 91 may also be partitioned and the blocks may be combined into virtual volumes according to certain rules. The processor 92 may be a central processing unit CPU, or an application specific integrated circuit asic, or one or more integrated circuits configured to implement the cargo location tracking method of the present disclosure.
In one embodiment, the present disclosure provides a computer-readable storage medium storing computer instructions that, when executed by a processor, implement a cargo position tracking method as in any of the above embodiments.
The cargo position tracking method and device, the logistics management system and the storage medium in the embodiment can obtain cargo point location information based on the positioning module, and store and verify the cargo point location information by adopting a block chain technology, and as the block chain has the characteristic of being not falsifiable, the reliability of the cargo point location information can be effectively ensured, dishonest data is avoided, and the cargo point location information is prevented from being falsified or disturbed maliciously; the position information of the goods parcel real object and the goods point location information stored in the block chain are consistent, the logistics information can be accurately tracked, the counterfeiting cost is improved, the benefit of a user can be protected, the responsibility can be accurately traced for the abnormal problem, and the user satisfaction and the trust degree are enhanced.
The method and system of the present disclosure may be implemented in a number of ways. For example, the methods and systems of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order for the steps of the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above unless specifically stated otherwise. Further, in some embodiments, the present disclosure may also be embodied as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
The description of the present disclosure has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the disclosure in the form disclosed. Many modifications and variations will be apparent to practitioners skilled in this art. The embodiment was chosen and described in order to best explain the principles of the disclosure and the practical application, and to enable others of ordinary skill in the art to understand the disclosure for various embodiments with various modifications as are suited to the particular use contemplated.