CN115643292A - Machine tool energy consumption data tracking method and device based on double-layer block chain - Google Patents

Machine tool energy consumption data tracking method and device based on double-layer block chain Download PDF

Info

Publication number
CN115643292A
CN115643292A CN202211647275.5A CN202211647275A CN115643292A CN 115643292 A CN115643292 A CN 115643292A CN 202211647275 A CN202211647275 A CN 202211647275A CN 115643292 A CN115643292 A CN 115643292A
Authority
CN
China
Prior art keywords
machine tool
information
energy consumption
consumption data
equipment
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.)
Granted
Application number
CN202211647275.5A
Other languages
Chinese (zh)
Other versions
CN115643292B (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.)
Zhongke Hangmai CNC Software Shenzhen Co Ltd
Original Assignee
Zhongke Hangmai CNC Software Shenzhen Co Ltd
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 Zhongke Hangmai CNC Software Shenzhen Co Ltd filed Critical Zhongke Hangmai CNC Software Shenzhen Co Ltd
Priority to CN202211647275.5A priority Critical patent/CN115643292B/en
Publication of CN115643292A publication Critical patent/CN115643292A/en
Application granted granted Critical
Publication of CN115643292B publication Critical patent/CN115643292B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a machine tool energy consumption data tracking method and device based on a double-layer block chain, wherein the method comprises the following steps: acquiring a main chain and a branch chain in the double-layer block chain; determining item information corresponding to the main chain based on the main chain, determining machine tool equipment information based on the item information, and determining raw material supplier information and machine tool manufacturer information corresponding to the machine tool equipment information based on the machine tool equipment information and the branch chain; and respectively acquiring supply energy consumption data corresponding to the raw material supplier information and production energy consumption data corresponding to the machine tool manufacturer information based on the raw material supplier information and the machine tool manufacturer information, encrypting the supply energy consumption data and the production energy consumption data based on the branch chain, and uploading the encrypted data to the main chain. The invention can track the energy consumption data of the machine tool, realize the acquisition of the energy consumption data of the whole process of the machine tool equipment, and conveniently control and adjust the supply and production links of the machine tool equipment based on the acquired energy consumption data.

Description

Machine tool energy consumption data tracking method and device based on double-layer block chain
Technical Field
The invention relates to the technical field of machine tool energy consumption analysis, in particular to a machine tool energy consumption data tracking method and device based on a double-layer block chain.
Background
The existing systems of machine tools such as MES and the like have high data isolation degree with suppliers, and the suppliers lack effective information cooperation and trust, and can hide and falsify supply information, so that the information cannot be effectively traced, and the supply of machine tool equipment and production links cannot be controlled and adjusted in time due to the fact that supply dispute supply raw materials cannot arrive in time or production is influenced.
Thus, there is a need for improvements and enhancements in the art.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method and a device for tracking machine tool energy consumption data based on a dual-layer block chain, aiming at solving the problem that the supply of machine tool equipment and the production link cannot be controlled and adjusted in time in the prior art.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
in a first aspect, the present invention provides a method for tracking machine tool energy consumption data based on a double-layer block chain, wherein the method comprises:
acquiring a main chain and a branch chain in a double-layer block chain, wherein the main chain corresponds to an equipment user, the branch chain corresponds to an equipment participant, and the equipment participant comprises a raw material supplier and an equipment producer;
determining item information corresponding to the main chain based on the main chain, determining machine tool equipment information based on the item information, and determining raw material supplier information and machine tool manufacturer information corresponding to the machine tool equipment information based on the machine tool equipment information and the branch chain;
and respectively acquiring supply energy consumption data corresponding to the raw material supplier information and production energy consumption data corresponding to the machine tool manufacturer information based on the raw material supplier information and the machine tool manufacturer information, encrypting the supply energy consumption data and the production energy consumption data based on the branch chain, and uploading the encrypted data to the main chain.
In one implementation, the determining item information corresponding to the main chain based on the main chain and determining machine tool equipment information based on the item information includes:
acquiring an action mechanism of the main chain, wherein the action mechanism is used for reflecting the action of the main chain on acquiring the energy consumption data of the machine tool;
if the action mechanism of the main chain is a management action, acquiring project information corresponding to a project managed by the main chain;
and acquiring equipment name information and equipment model information in the project information, and taking the equipment name information and the equipment model information as the machine tool equipment information.
In one implementation, the determining, based on the machine tool equipment information and the branch chain, raw material supplier information and machine tool manufacturer information corresponding to the machine tool equipment information includes:
acquiring management content corresponding to the branch chain, and determining a plurality of management branches corresponding to the branch chain based on the management content, wherein each management branch corresponds to one equipment participant;
matching the machine tool equipment information with the management branch, determining a target branch, and acquiring a target equipment participant corresponding to the target branch;
determining the raw material supplier information and machine tool manufacturer information based on the target device participant.
In one implementation, the determining the raw material supplier information and the machine tool manufacturer information based on the target device participant includes:
acquiring source information of the target equipment participants based on the target equipment participants;
based on the source information, the raw material supplier information and the machine tool manufacturer information are determined.
In one implementation, the obtaining, based on the raw material supplier information and the machine tool manufacturer information, supply energy consumption data corresponding to the raw material supplier information and production energy consumption data corresponding to the machine tool manufacturer information respectively includes:
obtaining supply process information of the raw material supplier information, wherein the supply process information is used for reflecting the transportation route of the raw materials;
obtaining a manufacturing process flow of the information of the machine tool manufacturer, wherein the manufacturing process flow is used for reflecting the machining process of machine tool equipment;
and respectively acquiring supply energy consumption data corresponding to the transportation way of the raw materials and production energy consumption data corresponding to the machining process of the machine tool equipment.
In one implementation, the encrypting the supply energy consumption data and the production energy consumption data based on the branch chain and uploading the encrypted supply energy consumption data and production energy consumption data to the main chain includes:
acquiring an encryption mode and identity information corresponding to the branch chain;
encrypting the supply energy consumption data and the production energy consumption data based on the encryption mode to obtain encrypted data;
and carrying out authority verification on the identity information, and uploading the encrypted data to the main chain after the authority verification is passed.
In one implementation, the method further comprises:
controlling the main chain to obtain the encrypted data, and decrypting the encrypted data to obtain the supply energy consumption data and the production energy consumption data;
acquiring use energy consumption data generated when a machine tool device is used by a device user corresponding to the main chain;
updating project information for the backbone-managed project based on the energy usage data, the energy supply data, and the energy production data.
In a second aspect, the embodiment of the present invention further provides a device for tracking machine tool energy consumption data based on a dual-layer blockchain, where the device includes:
the block chain system acquisition module is used for acquiring a main chain and a branch chain in the double-layer block chain, wherein the main chain corresponds to an equipment user, the branch chain corresponds to an equipment participant, and the equipment participant comprises a raw material supplier and an equipment producer;
the machine tool equipment information analysis module is used for determining the item information corresponding to the main chain based on the main chain, determining the machine tool equipment information based on the item information, and determining the raw material supplier information and the machine tool manufacturer information corresponding to the machine tool equipment information based on the machine tool equipment information and the branch chain;
and the energy consumption data acquisition module is used for respectively acquiring supply energy consumption data corresponding to the raw material supplier information and production energy consumption data corresponding to the machine tool manufacturer information based on the raw material supplier information and the machine tool manufacturer information, encrypting the supply energy consumption data and the production energy consumption data based on the branch chain and uploading the encrypted data to the main chain.
In a third aspect, an embodiment of the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a program for tracking energy consumption data of a machine tool based on a dual-layer block chain, where the program is stored in the memory and is executable on the processor, and when the processor executes the program for tracking energy consumption data of a machine tool based on a dual-layer block chain, the method for tracking energy consumption data of a machine tool based on a dual-layer block chain according to any one of the foregoing schemes is implemented.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores thereon a dual-layer blockchain-based machine tool energy consumption data tracking program, and when the dual-layer blockchain-based machine tool energy consumption data tracking program is executed by a processor, the steps of the dual-layer blockchain-based machine tool energy consumption data tracking method in any one of the foregoing aspects are implemented.
Has the beneficial effects that: compared with the prior art, the invention provides a machine tool energy consumption data tracking method based on a double-layer block chain. Then, based on the main chain, item information corresponding to the main chain is determined, based on the item information, machine tool equipment information is determined, and based on the machine tool equipment information and the branch chain, raw material supplier information and machine tool manufacturer information corresponding to the machine tool equipment information are determined. And finally, respectively acquiring supply energy consumption data corresponding to the raw material supplier information and production energy consumption data corresponding to the machine tool manufacturer information based on the raw material supplier information and the machine tool manufacturer information, encrypting the supply energy consumption data and the production energy consumption data based on the branch chain, and uploading the encrypted data to the main chain. The invention can track the energy consumption data of the machine tool, realize the acquisition of the energy consumption data of the whole process of the machine tool equipment, and conveniently control and adjust the supply and production links of the machine tool equipment based on the acquired energy consumption data.
Drawings
Fig. 1 is a schematic flowchart of a specific implementation of a method for tracking energy consumption data of a machine tool based on a dual-layer block chain according to an embodiment of the present invention.
Fig. 2 is a schematic block diagram of a device for tracking energy consumption data of a machine tool based on a dual-layer block chain according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment provides a method for tracking energy consumption data of a machine tool based on a dual-layer block chain. Then, based on the main chain, item information corresponding to the main chain is determined, based on the item information, machine tool equipment information is determined, and based on the machine tool equipment information and the branch chain, raw material supplier information and machine tool manufacturer information corresponding to the machine tool equipment information are determined. And finally, respectively acquiring supply energy consumption data corresponding to the raw material supplier information and production energy consumption data corresponding to the machine tool manufacturer information based on the raw material supplier information and the machine tool manufacturer information, encrypting the supply energy consumption data and the production energy consumption data based on the branch chain, and uploading the encrypted supply energy consumption data and the encrypted production energy consumption data to the main chain. According to the embodiment, the tracking of the energy consumption data of the machine tool can be realized, the acquisition of the energy consumption data of the whole process of the machine tool equipment is realized, and the control and adjustment of the supply and production links of the machine tool equipment are facilitated based on the acquired energy consumption data.
Exemplary method
The machine tool energy consumption data tracking method based on the double-layer block chain can be applied to terminal equipment, and the terminal equipment comprises intelligent product terminals such as computers and mobile phones. Specifically, as shown in fig. 1, the method includes:
step S100, a main chain and a branch chain in the double-layer block chain are obtained, wherein the main chain corresponds to an equipment using party, the branch chain corresponds to an equipment participating party, and the equipment participating party comprises a raw material supplying party and an equipment producing party.
In this embodiment, the terminal device first obtains a main chain and a branch chain in the dual-layer block chain. The backbone comprises at least one full node; the split chain comprises at least one semi-connected node; the semi-connection nodes do not participate in the management of the machine tool equipment, only need to manage the main chain and forward data based on the full-node proxy; each of the full nodes is a leader node of a plurality of the semi-connected nodes. For this purpose, the main chain is preset to correspond to the equipment using party, the branch chain corresponds to the equipment participating party, and the equipment participating party comprises a raw material supplying party and an equipment producing party.
Step S200, determining project information corresponding to the main chain based on the main chain, determining machine tool equipment information based on the project information, and determining raw material supplier information and machine tool manufacturer information corresponding to the machine tool equipment information based on the machine tool equipment information and the branch chain.
In this embodiment, after the main chain and the branch chain are acquired, first, the item information corresponding to the main chain is determined based on the main chain. The item information reflects item information of items managed by the main chain, and the main chain is used for managing the machine tool equipment since the items of the embodiment are machine tool equipment. After the item information is acquired, the present embodiment may determine the machine tool device information based on the item information, where the machine tool device information is name information of the machine tool device and model information of the machine tool device. Next, since the branch chain of the present embodiment corresponds to the equipment participant, the present embodiment can determine the raw material supplier information and the machine tool manufacturer information corresponding to the machine tool equipment information based on the machine tool equipment information and the branch chain.
Specifically, the present embodiment may first obtain an action mechanism of the main chain, where the action mechanism is used to reflect an action of the main chain on obtaining the energy consumption data of the machine tool. And if the action mechanism of the main chain is a management action, acquiring the item information corresponding to the item managed by the main chain. Next, the present embodiment acquires device name information and device model information in the item information, and uses the device name information and the device model information as the machine tool device information. Then, the embodiment acquires the management content corresponding to the branch chain, where the management content is used to reflect which device participants managed by the branch chain are. Specifically, after obtaining the management content, the present embodiment may determine, based on the management content, a management branch corresponding to the branch chain, where the management branch is provided with a plurality of management branches, and each of the management branches corresponds to one device participant. In this embodiment, the equipment participants include a raw material supplier and an equipment producer. Thus, each management branch corresponds to a material supplier and a device producer. In the present embodiment, the material supplier and the equipment producer corresponding to each management branch have their own name information, and the machine tool equipment information also includes name information of the machine tool equipment and model information of the machine tool equipment, and for a machine tool equipment, its own name information, model information of the machine tool equipment, and name information of the corresponding material supplier and equipment producer are all related and have a certain corresponding relationship, so that the present embodiment can match the machine tool equipment information with the management branches, and the matching manner at this time is based on the name information, and find out which branch is the target branch from the management branches, that is, find out which one of the material supplier and the equipment producer corresponding to the machine tool equipment at this time is the target branch. Therefore, after the target branch is obtained, the embodiment may obtain the target device participant corresponding to the target branch, that is, the device participant managed by the target branch, and then determine the raw material supplier information and the machine tool manufacturer information based on the target device participant.
In a specific application, when obtaining the raw material supplier information and the machine tool manufacturer information, the present embodiment may first obtain source information of the target device participant based on the target device participant, where the source information is used to reflect a source of the target device participant, for example, the source information may include names of the raw material supplier and the device producer, and the names may determine the raw material supplier information and the machine tool manufacturer information. At this time, the present embodiment can determine which is the particular principle supplier and which is the machine tool manufacturer.
Step S300, respectively acquiring supply energy consumption data corresponding to the raw material supplier information and production energy consumption data corresponding to the machine tool manufacturer information based on the raw material supplier information and the machine tool manufacturer information, encrypting the supply energy consumption data and the production energy consumption data based on the branch chain, and uploading the encrypted data to the main chain.
After the raw material supplier information and the machine tool manufacturer information are obtained, the embodiment may obtain supply energy consumption data corresponding to the raw material supplier information and production energy consumption data corresponding to the machine tool manufacturer information. The supply energy consumption data is the energy consumed by the raw material of the machine tool equipment in the supply stage, and the machine tool manufacturer information is the energy consumed by the machine tool equipment in the production stage. Further, the embodiment may encrypt the supply energy consumption data and the production energy consumption data based on the branch chain and upload the encrypted data to the main chain.
Specifically, the present embodiment first obtains supply flow information of the raw material supplier information, where the supply flow information is used to reflect a transportation route of the raw material. The transportation route may include the transport vehicles used by the feedstock throughout the transportation process as well as the overall transportation path and transportation time. Next, the present embodiment may obtain a manufacturing process flow of the information of the machine tool manufacturer, where the manufacturing process flow is used to reflect a machining process of a machine tool device. The machining process may include the entire machining steps of the machine tool apparatus and the machining apparatus used for each machining step, and the like. Then, the embodiment may analyze the transportation routes of the raw materials respectively to determine energy consumption data corresponding to the transportation routes, and analyze the machining process to determine production energy consumption data corresponding to the machining process of the machine tool equipment.
In another implementation manner, the embodiment may obtain an encryption manner and identity information corresponding to the branch chain, for example, the encryption manner of the embodiment is a public key-private key encryption mechanism. Then, the embodiment may encrypt the supply energy consumption data and the production energy consumption data based on the encryption manner to obtain encrypted data. Then, the embodiment can perform authority verification on the split-chain identity information, and upload the encrypted data to the main chain after the authority verification is passed. Of course, the present embodiment may provide an interface for each device participant in the branch chain to perform operations such as registration, authentication, and data signature, so as to complete the authorization verification smoothly. That is to say, in this embodiment, not every branch chain may access the main chain, but only after the authentication is passed, the main chain may be accessed, so that the security of data transmission may be ensured. In addition, the main chain may be further controlled to obtain the encrypted data, and decrypt the encrypted data to obtain the supply energy consumption data and the production energy consumption data. Then, the embodiment can acquire the use energy consumption data generated when the machine tool equipment is used by the equipment user corresponding to the main chain. Project information for the project managed by the backbone is then updated based on the energy usage data, the energy supply data, and the energy production data. After the use energy consumption data, the supply energy consumption data and the production energy consumption data are obtained, the raw material suppliers and the machine tool manufacturers can feed back the use energy consumption data, the supply of the machine tool equipment and the production links can be controlled and adjusted in time, and the problem that the supply of raw materials cannot be on the spot in time or the production is influenced is effectively solved.
In summary, the present embodiment first obtains a main chain and a branch chain in a dual-layer blockchain, where the main chain corresponds to a device user, the branch chain corresponds to a device participant, and the device participant includes a raw material supplier and a device producer. Then, based on the main chain, item information corresponding to the main chain is determined, based on the item information, machine tool equipment information is determined, and based on the machine tool equipment information and the branch chain, raw material supplier information and machine tool manufacturer information corresponding to the machine tool equipment information are determined. And finally, respectively acquiring supply energy consumption data corresponding to the raw material supplier information and production energy consumption data corresponding to the machine tool manufacturer information based on the raw material supplier information and the machine tool manufacturer information, encrypting the supply energy consumption data and the production energy consumption data based on the branch chain, and uploading the encrypted data to the main chain. According to the embodiment, the tracking of the energy consumption data of the machine tool can be realized, the acquisition of the energy consumption data of the whole process of the machine tool equipment is realized, and the control and adjustment of the supply and production links of the machine tool equipment are facilitated based on the acquired energy consumption data.
Exemplary devices
Based on the above embodiment, the present invention further provides a device for tracking energy consumption data of a machine tool based on a dual-layer blockchain, as shown in fig. 2, the device includes: the block chain system acquisition module 10, the machine tool equipment information analysis module 20 and the energy consumption data acquisition module 30. The block chain system obtaining module 10 is configured to obtain a main chain and a branch chain in a dual-layer block chain, where the main chain corresponds to an equipment user, the branch chain corresponds to an equipment participant, and the equipment participant includes a raw material supplier and an equipment producer. The machine tool equipment information analysis module 20 is configured to determine, based on the main chain, item information corresponding to the main chain, determine machine tool equipment information based on the item information, and determine, based on the machine tool equipment information and the branch chain, raw material supplier information and machine tool manufacturer information corresponding to the machine tool equipment information. The energy consumption data obtaining module 30 is configured to obtain, based on the raw material supplier information and the machine tool manufacturer information, supply energy consumption data corresponding to the raw material supplier information and production energy consumption data corresponding to the machine tool manufacturer information, respectively, and encrypt, based on the branch chain, the supply energy consumption data and the production energy consumption data and upload the encrypted data to the main chain.
In one implementation, the machine tool device information analysis module 20 includes:
the main chain analysis unit is used for acquiring an action mechanism of the main chain, wherein the action mechanism is used for reflecting the action of the main chain on acquiring the energy consumption data of the machine tool;
the item acquisition unit is used for acquiring item information corresponding to the items managed by the main chain if the action mechanism of the main chain is a management action;
and the information acquisition unit is used for acquiring equipment name information and equipment model information in the project information, and taking the equipment name information and the equipment model information as the machine tool equipment information.
In one implementation, the machine tool device information analysis module 20 includes:
the management branch analysis unit is used for acquiring management contents corresponding to the branched chains and determining a plurality of management branches corresponding to the branched chains based on the management contents, and each management branch corresponds to one equipment participant;
the target branch determining unit is used for matching the machine tool equipment information with the management branch, determining a target branch and acquiring a target equipment participant corresponding to the target score;
and the target equipment analysis unit is used for determining the raw material supplier information and the machine tool manufacturer information based on the target equipment participant.
In one implementation, the target device analysis unit includes:
a source information obtaining subunit, configured to obtain, based on the target device participant, source information of the target device participant;
and the source information analysis subunit is used for determining the raw material supplier information and the machine tool manufacturer information based on the source information.
In one implementation, the energy consumption data obtaining module 30 includes:
a supply flow acquiring unit for acquiring supply flow information of the raw material supplier information, wherein the supply flow information is used for reflecting the transportation route of the raw material;
the processing procedure acquiring unit is used for acquiring a manufacturing process flow of the information of the machine tool manufacturer, and the manufacturing process flow is used for reflecting the processing procedure of the machine tool equipment;
and the energy consumption data acquisition unit is used for respectively acquiring supply energy consumption data corresponding to the transportation way of the raw materials and production energy consumption data corresponding to the machining process of the machine tool equipment.
In one implementation, the energy consumption data obtaining module 30 includes:
the encryption determining unit is used for acquiring the encryption mode and the identity information corresponding to the branch chain;
the encryption execution unit is used for encrypting the supply energy consumption data and the production energy consumption data based on the encryption mode to obtain encrypted data;
and the authority verification unit is used for performing authority verification on the identity information, and uploading the encrypted data to the main chain after the authority verification is passed.
In one implementation, the apparatus further comprises:
the data decryption module is used for controlling the main chain to acquire the encrypted data and decrypting the encrypted data to obtain the supply energy consumption data and the production energy consumption data;
the usage energy consumption determining module is used for acquiring usage energy consumption data generated when the equipment user corresponding to the main chain uses the machine tool equipment;
and the project information updating module is used for updating the project information of the project managed by the main chain based on the use energy consumption data, the supply energy consumption data and the production energy consumption data.
The execution principle of each functional module in the device for tracking energy consumption data of a machine tool based on a double-layer block chain in this embodiment is the same as the execution process of each step in the above method embodiments, and is not described herein again.
Based on the above embodiment, the present invention further provides a terminal device, and a schematic block diagram of the terminal device may be as shown in fig. 3. The terminal device may include one or more processors 100 (only one shown in fig. 3), a memory 101, and a computer program 102 stored in the memory 101 and executable on the one or more processors 100, for example, a program for machine tool energy consumption data tracking based on a dual-layer blockchain. The one or more processors 100, when executing the computer program 102, may implement the various steps in the method embodiments of APP theme scene control. Alternatively, one or more processors 100, when executing computer program 102, may implement the functions of each module/unit in an apparatus embodiment for dual-layer blockchain based machine tool energy consumption data tracking, and is not limited herein.
In one embodiment, the Processor 100 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In one embodiment, the storage 101 may be an internal storage unit of the electronic device, such as a hard disk or a memory of the electronic device. The memory 101 may also be an external storage device of the electronic device, such as a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) card, a flash memory card (flash card), and the like provided on the electronic device. Further, the memory 101 may also include both an internal storage unit and an external storage device of the electronic device. The memory 101 is used to store computer programs and other programs and data required by the terminal device. The memory 101 may also be used to temporarily store data that has been output or is to be output.
It will be understood by those skilled in the art that the block diagram shown in fig. 3 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation to the terminal device to which the solution of the present invention is applied, and a specific terminal device may include more or less components than those shown in the figure, or may combine some components, or have different arrangements of components.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, the computer program can include the processes of the embodiments of the methods described above. Any reference to memory, storage, operational databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual operation data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct bused dynamic RAM (DRDRAM), and bused dynamic RAM (RDRAM), among others.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for tracking machine tool energy consumption data based on a dual-layer blockchain, the method comprising:
acquiring a main chain and a branch chain in a double-layer block chain, wherein the main chain corresponds to an equipment user, the branch chain corresponds to an equipment participant, and the equipment participant comprises a raw material supplier and an equipment producer;
determining project information corresponding to the main chain based on the main chain, determining machine tool equipment information based on the project information, and determining raw material supplier information and machine tool manufacturer information corresponding to the machine tool equipment information based on the machine tool equipment information and the branch chain;
and respectively acquiring supply energy consumption data corresponding to the raw material supplier information and production energy consumption data corresponding to the machine tool manufacturer information based on the raw material supplier information and the machine tool manufacturer information, encrypting the supply energy consumption data and the production energy consumption data based on the branch chain, and uploading the encrypted data to the main chain.
2. The method for tracking energy consumption data of a machine tool based on a dual-layer block chain according to claim 1, wherein the step of determining item information corresponding to the main chain based on the main chain and determining machine tool equipment information based on the item information comprises the following steps:
acquiring an action mechanism of the main chain, wherein the action mechanism is used for reflecting the action of the main chain on acquiring the energy consumption data of the machine tool;
if the action mechanism of the main chain is a management action, acquiring project information corresponding to a project managed by the main chain;
and acquiring equipment name information and equipment model information in the project information, and taking the equipment name information and the equipment model information as the machine tool equipment information.
3. The method for tracking the energy consumption data of the machine tool based on the dual-layer block chain as claimed in claim 1, wherein the step of determining the raw material supplier information and the machine tool manufacturer information corresponding to the machine tool equipment information based on the machine tool equipment information and the split chain comprises the following steps:
acquiring management content corresponding to the branch chain, and determining a plurality of management branches corresponding to the branch chain based on the management content, wherein each management branch corresponds to one equipment participant;
matching the machine tool equipment information with the management branch, determining a target branch, and acquiring a target equipment participant corresponding to the target branch;
determining the raw material supplier information and machine tool manufacturer information based on the target equipment participant.
4. The dual-layer blockchain-based machine tool energy consumption data tracking method according to claim 3, wherein the determining the raw material supplier information and machine tool manufacturer information based on the target equipment participant comprises:
acquiring source information of the target equipment participants based on the target equipment participants;
based on the source information, the raw material supplier information and the machine tool manufacturer information are determined.
5. The method for tracking energy consumption data of a machine tool based on a dual-layer module chain as claimed in claim 1, wherein the step of respectively acquiring the energy consumption data corresponding to the raw material supplier information and the energy consumption data corresponding to the machine tool manufacturer information based on the raw material supplier information and the machine tool manufacturer information comprises:
obtaining supply process information of the raw material supplier information, wherein the supply process information is used for reflecting the transportation route of the raw materials;
obtaining a manufacturing process flow of the information of the machine tool manufacturer, wherein the manufacturing process flow is used for reflecting the machining process of machine tool equipment;
and respectively acquiring supply energy consumption data corresponding to the transportation way of the raw materials and production energy consumption data corresponding to the machining process of the machine tool equipment.
6. The method for tracking energy consumption data of a machine tool based on a double-layer blockchain according to claim 1, wherein the encrypting the supply energy consumption data and the production energy consumption data based on the branch chain and uploading the encrypted supply energy consumption data and production energy consumption data to the main chain comprises the following steps:
acquiring an encryption mode and identity information corresponding to the branch chain;
encrypting the supply energy consumption data and the production energy consumption data based on the encryption mode to obtain encrypted data;
and performing authority verification on the identity information, and uploading the encrypted data to the main chain after the authority verification is passed.
7. The method for tracking energy consumption data of a machine tool based on a dual-layer blockchain as claimed in claim 1, wherein the method further comprises:
controlling the main chain to obtain the encrypted data, and decrypting the encrypted data to obtain the supply energy consumption data and the production energy consumption data;
acquiring use energy consumption data generated when a machine tool device is used by a device user corresponding to the main chain;
updating project information for the project managed by the backbone based on the energy usage data, the energy supply data, and the energy production data.
8. A dual-layer blockchain-based machine tool energy consumption data tracking apparatus, the apparatus comprising:
the block chain system acquisition module is used for acquiring a main chain and a branch chain in the double-layer block chain, wherein the main chain corresponds to an equipment using party, the branch chain corresponds to an equipment participating party, and the equipment participating party comprises a raw material supplying party and an equipment producing party;
the machine tool equipment information analysis module is used for determining the item information corresponding to the main chain based on the main chain, determining the machine tool equipment information based on the item information, and determining the raw material supplier information and the machine tool manufacturer information corresponding to the machine tool equipment information based on the machine tool equipment information and the branch chain;
and the energy consumption data acquisition module is used for respectively acquiring supply energy consumption data corresponding to the raw material supplier information and production energy consumption data corresponding to the machine tool manufacturer information based on the raw material supplier information and the machine tool manufacturer information, encrypting the supply energy consumption data and the production energy consumption data based on the branch chain and uploading the encrypted data to the main chain.
9. A terminal device, characterized in that the terminal device comprises a memory, a processor and a dual-layer block chain-based machine tool energy consumption data tracking program stored in the memory and operable on the processor, and when the processor executes the dual-layer block chain-based machine tool energy consumption data tracking program, the steps of the dual-layer block chain-based machine tool energy consumption data tracking method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, wherein the computer-readable storage medium stores thereon a dual-layer block-chain-based machine tool energy consumption data tracking program, which when executed by a processor, implements the steps of the dual-layer block-chain-based machine tool energy consumption data tracking method of any one of claims 1-7.
CN202211647275.5A 2022-12-21 2022-12-21 Machine tool energy consumption data tracking method and device based on double-layer block chain Active CN115643292B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211647275.5A CN115643292B (en) 2022-12-21 2022-12-21 Machine tool energy consumption data tracking method and device based on double-layer block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211647275.5A CN115643292B (en) 2022-12-21 2022-12-21 Machine tool energy consumption data tracking method and device based on double-layer block chain

Publications (2)

Publication Number Publication Date
CN115643292A true CN115643292A (en) 2023-01-24
CN115643292B CN115643292B (en) 2023-03-17

Family

ID=84949027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211647275.5A Active CN115643292B (en) 2022-12-21 2022-12-21 Machine tool energy consumption data tracking method and device based on double-layer block chain

Country Status (1)

Country Link
CN (1) CN115643292B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107835166A (en) * 2017-10-31 2018-03-23 济南浪潮高新科技投资发展有限公司 A kind of high value crystal retroactive method and device based on block chain
CN110335051A (en) * 2019-07-03 2019-10-15 烟台市同翔网络科技有限责任公司 A kind of unique code publication of food labelling based on block chain major-minor chain technology and circulation source tracing method
CN111401927A (en) * 2020-03-31 2020-07-10 綦昱钧 Food label unique code issuing and circulation tracing method based on block chain major-minor chain technology
CN112819483A (en) * 2020-12-30 2021-05-18 杭州趣链科技有限公司 Block chain-based product traceability management method and device and related equipment
WO2021227319A1 (en) * 2020-05-15 2021-11-18 南京东垚建筑科技研究院有限公司 Engineering collaborative blockchain data structure and application method
CN115081967A (en) * 2022-08-22 2022-09-20 中科航迈数控软件(深圳)有限公司 Method and system for simulating machining process of numerical control machine tool based on multi-dimensional perception
CN115270144A (en) * 2022-06-22 2022-11-01 国网山东省电力公司经济技术研究院 Transformer carbon footprint tracking method, system, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107835166A (en) * 2017-10-31 2018-03-23 济南浪潮高新科技投资发展有限公司 A kind of high value crystal retroactive method and device based on block chain
CN110335051A (en) * 2019-07-03 2019-10-15 烟台市同翔网络科技有限责任公司 A kind of unique code publication of food labelling based on block chain major-minor chain technology and circulation source tracing method
CN111401927A (en) * 2020-03-31 2020-07-10 綦昱钧 Food label unique code issuing and circulation tracing method based on block chain major-minor chain technology
WO2021227319A1 (en) * 2020-05-15 2021-11-18 南京东垚建筑科技研究院有限公司 Engineering collaborative blockchain data structure and application method
CN112819483A (en) * 2020-12-30 2021-05-18 杭州趣链科技有限公司 Block chain-based product traceability management method and device and related equipment
CN115270144A (en) * 2022-06-22 2022-11-01 国网山东省电力公司经济技术研究院 Transformer carbon footprint tracking method, system, equipment and storage medium
CN115081967A (en) * 2022-08-22 2022-09-20 中科航迈数控软件(深圳)有限公司 Method and system for simulating machining process of numerical control machine tool based on multi-dimensional perception

Also Published As

Publication number Publication date
CN115643292B (en) 2023-03-17

Similar Documents

Publication Publication Date Title
US11861026B2 (en) System and method for data management and security for digital manufacturing
CN108197891B (en) Electronic signing device and method based on block chain
US10698738B1 (en) Implementing a blockchain-based workflow
WO2019170172A2 (en) Implementing a blockchain-based workflow
EP2805445B1 (en) Host device, semiconductor memory device, and authentication method
CN110601816B (en) Lightweight node control method and device in block chain system
EP2124163A2 (en) Revocation status checking for digital rights management
US20110243332A1 (en) Data processing system, data processing method, source data processing device, destination data processing device, and storage medium
WO2020140672A1 (en) Blockchain-based asset data processing method, system and storage medium
US8005118B2 (en) Method and apparatus for implementing secure clock in device having no internal power source
CN112434336A (en) Block chain-based electronic medical record sharing method, device and system and storage medium
JP6965463B2 (en) Management of trust points in the ledger system
CN114884674B (en) User data circulation method, device and equipment based on block chain
CN112861102B (en) Method and system for processing electronic file based on block chain
CN111917711B (en) Data access method and device, computer equipment and storage medium
CN115643292B (en) Machine tool energy consumption data tracking method and device based on double-layer block chain
CN112528268B (en) Cross-channel applet login management method and device and related equipment
CN115694847A (en) Equipment management method, system and device
CN109859041B (en) Block chain-based fund transaction real-time updating method and system and electronic equipment
US20230146229A1 (en) Entity, gateway device, information processing device, information processing system, and information processing method
US20220360429A1 (en) Location-key encryption system
CN115408046A (en) Decentralized file version control method, computer equipment and storage medium
CN114399230A (en) Task information processing method, device, equipment and storage medium
US20200213135A1 (en) System and method for secure manufacturing of articles
CN113556334B (en) Data interaction encryption method, device, equipment and storage medium based on Internet of things

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