WO2020207194A1 - Blockchain-based iot device changing method and apparatus - Google Patents

Blockchain-based iot device changing method and apparatus Download PDF

Info

Publication number
WO2020207194A1
WO2020207194A1 PCT/CN2020/079360 CN2020079360W WO2020207194A1 WO 2020207194 A1 WO2020207194 A1 WO 2020207194A1 CN 2020079360 W CN2020079360 W CN 2020079360W WO 2020207194 A1 WO2020207194 A1 WO 2020207194A1
Authority
WO
WIPO (PCT)
Prior art keywords
iot device
server
blockchain system
contract
iot
Prior art date
Application number
PCT/CN2020/079360
Other languages
French (fr)
Chinese (zh)
Inventor
刘丽平
苏小康
张开翔
范瑞彬
Original Assignee
深圳前海微众银行股份有限公司
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 深圳前海微众银行股份有限公司 filed Critical 深圳前海微众银行股份有限公司
Publication of WO2020207194A1 publication Critical patent/WO2020207194A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Definitions

  • the embodiments of the present invention relate to the field of financial technology (Fintech), and in particular, to a method and device for changing an IOT (Internet of Things) device based on a block chain (BlockChain).
  • Fintech field of financial technology
  • IOT Internet of Things
  • BlockChain block chain
  • the MQTT (Message Queue Telemetry Transport) protocol is a message protocol based on the publish/subscribe paradigm under the ISO standard (ISO/IEC PRF 20922).
  • the MQTT protocol works on the TCP/IP (Transmission Control Protocol/Internet Protocol) protocol suite. It is a publish/subscribe type designed for remote devices with low hardware performance and when the network conditions are not ideal. Message protocol.
  • the IOT device alliance system based on the MQTT protocol can be shown in Figure 1.
  • the internal network of a financial institution can be multiple IOT devices connected to MQ (Message Queue, message queue) through an MQTT cluster, and outside the financial institution
  • MQ Message Queue, message queue
  • the network is to connect the MQ of this financial institution with the MQ of other financial institutions through a bridge method.
  • the MQ1 of financial institution 1 and the MQ2 of financial institution 2 are connected through a bridge, which is used to subscribe to event publishing from MQ1 To MQ2 and subscribe events from MQ2 to MQ1.
  • the embodiment of the present invention provides a method and device for changing an IOT device based on a blockchain.
  • an IOT device alliance system constructed based on the MQTT protocol the operation and maintenance cost of the change of the IOT device is reduced.
  • the method for changing the IOT device based on the blockchain provided by the embodiment of the present invention is applicable to an IOT device alliance system including multiple servers; each server is used to manage its own IOT device; the multiple servers pass through the block The chain system conducts information exchange of IOT devices;
  • the method includes:
  • the first server generates a first transaction request containing the first IOT device information; the first IOT device information is the device information of the IOT device changed under the first server; the first server is among the multiple servers Any of
  • the first server sends the first transaction request to the blockchain system; the first transaction request is used to instruct the blockchain system to call the device management contract to generate and store a first transaction log;
  • the first transaction log records the device management topic and the first IOT device information; any server in the IOT device alliance system subscribes to the device management topic; the first transaction log is used by the second server to determine Whether to subscribe to the first IOT device topic indicated by the first IOT device information; the second server is any server other than the first server in the IOT device alliance system.
  • changing equipment in the system can be adding equipment, deleting equipment, updating equipment, etc., and changing equipment Defined as the first IOT device, and the first server is used to manage the first IOT device.
  • the first server generates a first transaction request containing the information of the first IOT device and sends it to the blockchain system.
  • the blockchain system receives the first transaction request and generates the first transaction recording the first IOT device information after calling the device management contract.
  • Log storing the first transaction log in the blockchain system
  • the second server can obtain the first transaction log by subscribing to the device management topic, and determine whether to subscribe to the first IOT device topic according to the first transaction log.
  • the second server can obtain the event published by the first IOT device.
  • the IOT device alliance system after the second server obtains the event published by the first IOT device, it can send the event Send to the corresponding IOT device, so that the IOT device corresponding to the second server receives the event published by the first IOT device.
  • the first server only needs to write the transaction to change the device information in the blockchain system, and the second server can subscribe to the device management topic to obtain the information of the changed device, and execute the change of the device information The corresponding action.
  • the entire system does not require a bridge to change the binding or mapping of the device, and avoids the inconsistency caused by the MQ and bridge services belonging to different financial institutions, reduces the operation and maintenance costs, and is suitable for the rapidly developing IOT networking system.
  • the method further includes:
  • the first server obtains a second transaction log from the blockchain system;
  • the second transaction log is the blockchain system calling the device management contract based on the second transaction request sent by the second server Generated;
  • the second transaction log records the second IOT device information and the device management topic, the second IOT device information is the device information of the new IOT device under the second server;
  • the first server subscribes the second IOT device topic indicated by the second IOT device information to the blockchain system according to the second IOT device information in the second transaction log.
  • the first server can also obtain the second transaction log in the blockchain system by subscribing to the device management topic, and subscribe to the blockchain system for the second transaction log according to the second IOT device information in the second transaction log. IOT device theme.
  • the first server can obtain the published event. Further, the first server can send the published event to the IOT device corresponding to the first server to Realize the interconnection between IOT devices.
  • the first server subscribes to the topic of the second IOT device, it does not need to perform binding or mapping actions of the newly added device, which reduces the operation and maintenance cost of the newly added device in the IOT device alliance system.
  • the method before the first server generates the first transaction request containing the first IOT device information, the method further includes:
  • the first server generates the first IOT device theme according to the first IOT device information
  • the first server generates and sends a first deployment request to the blockchain system according to the theme of the first IOT device; the first deployment request is used to instruct the blockchain system to deploy the first IOT Theme contract of equipment theme;
  • the first server receives the first deployment result returned by the blockchain system, and the first deployment result is sent by the blockchain system after the deployment of the theme contract of the first IOT device theme is completed;
  • the first deployment result includes the contract address of the theme contract of the first IOT device theme.
  • the first server can generate a first deployment request according to the theme of the first IOT device and send it to the blockchain system.
  • the blockchain system deploys the corresponding theme contract and the contract address of the theme contract to be deployed.
  • the second server can subscribe to the theme corresponding to the changed device.
  • the changing device calls the corresponding theme contract publishing event in the blockchain system
  • the second server subscribing to the theme contract can obtain the event published by the changing device and send it to the IOT device corresponding to the second server to realize the change The interconnection of the device with other IOT devices.
  • the first IOT device theme may be recorded in the first transaction request when the first transaction request is generated, and the blockchain system is based on the first transaction request.
  • a transaction request generates a first transaction log recording the topic of the first IOT device, so that the second server can subscribe to the first IOT device topic from the blockchain system according to the first IOT device topic in the first transaction log to Improve the efficiency of the second server subscribing to the first IOT topic.
  • the method before the first server generates the first deployment request, the method further includes:
  • the first server sends a second deployment request to the blockchain system; the second deployment request is used to instruct the blockchain system to deploy a system contract;
  • the first server receives the second deployment result returned by the blockchain system; the second deployment result is sent after the blockchain system completes the deployment of the system contract;
  • the method further includes:
  • the first server updates the correspondence between the first IOT device subject and the contract address of the subject contract of the first IOT device subject to the system contract.
  • the first server may also send a transaction request for instructing the blockchain system to deploy the system contract to the blockchain system, that is, the blockchain system is deploying the subject contract Before, you can also deploy the system contract first. After the blockchain system has deployed the theme contract, it will feed back the contract address of the theme contract to the first server.
  • the first server can update the correspondence between the theme and the contract address of the theme contract to the system contract, so that the system contract stores the current area
  • the correspondence between the latest theme and contract address in the blockchain system is equivalent to storing the correspondence between all IOT device themes and contract addresses in the current IOT device alliance system.
  • the first server can determine the contract address of the subject contract of the subject of the first IOT device to be called, so that the blockchain system can call the contract according to the address to complete the event publishing of the first IOT device .
  • the first IOT device publishes the event via the first server in the blockchain system, which can prevent the event from being tampered with and improve the security of publishing the event.
  • an embodiment of the present invention also provides a block chain-based IOT device modification device, including:
  • the processing unit is configured to generate a first transaction request including first IOT device information; the first IOT device information is the device information of the IOT device changed under the first server; the first server is among the multiple servers Any of
  • the transceiver unit is configured to send the first transaction request to the blockchain system; the first transaction request is used to instruct the blockchain system to invoke a device management contract to generate and store a first transaction log;
  • the first transaction log records the device management topic and the first IOT device information; any server in the IOT device alliance system subscribes to the device management topic; the first transaction log is used by the second server to determine Whether to subscribe to the first IOT device topic indicated by the first IOT device information; the second server is any server other than the first server in the IOT device alliance system.
  • processing unit is further configured to:
  • the second transaction log is generated by the blockchain system based on the second transaction request sent by the second server calling the device management contract;
  • the second transaction log records second IOT device information and the device management topic, and the second IOT device information is the device information of the newly added IOT device under the second server;
  • the second IOT device information in the second transaction log subscribe to the blockchain system the second IOT device topic indicated by the second IOT device information.
  • processing unit is further configured to:
  • the transceiver unit According to the theme of the first IOT device, generate and control the transceiver unit to send a first deployment request to the blockchain system; the first deployment request is used to instruct the blockchain system to deploy the first IOT Theme contract of equipment theme;
  • the first deployment result includes the contract address of the theme contract of the first IOT device theme.
  • processing unit is further configured to:
  • control the transceiver unit Before generating the first deployment request, control the transceiver unit to send a second deployment request to the blockchain system; the second deployment request is used to instruct the blockchain system to deploy a system contract;
  • the processing unit is also used for:
  • an embodiment of the present invention also provides a computing device, including:
  • Memory used to store program instructions
  • the processor is configured to call the program instructions stored in the memory, and execute the above blockchain-based IOT device modification method according to the obtained program.
  • an embodiment of the present invention also provides a computer-readable non-volatile storage medium, including computer-readable instructions.
  • the computer reads and executes the computer-readable instructions, the computer executes the above-mentioned blockchain-based The method of changing the IOT device.
  • an embodiment of the present invention also provides a computer program product, the computer program product includes a computer program stored on a computer-readable non-volatile storage medium, the computer program includes program instructions, when the program When the instruction is executed by the computer, the computer is caused to execute the method for changing the IOT device based on the blockchain.
  • the embodiment of the present invention provides a method for changing IOT equipment applicable to the IOT equipment alliance system.
  • changing equipment in the system can be adding equipment, deleting equipment, updating equipment, etc., and changing equipment can be defined
  • It is the first IOT device
  • the first server is used to manage the first IOT device.
  • the first server generates a first transaction request containing the information of the first IOT device and sends it to the blockchain system.
  • the blockchain system receives the first transaction request and generates the first transaction recording the first IOT device information after calling the device management contract.
  • Log storing the first transaction log in the blockchain system, the second server can obtain the first transaction log by subscribing to the device management topic, and determine whether to subscribe to the first IOT device topic according to the first transaction log.
  • the second server can obtain the event published by the first IOT device.
  • the IOT device alliance system after the second server obtains the event published by the first IOT device, it can send the event Send to the corresponding IOT device, so that the IOT device corresponding to the second server receives the event published by the first IOT device.
  • the first server only needs to write the transaction to change the device information in the blockchain system, and the second server can subscribe to the device management topic to obtain the information of the changed device, and execute the change of the device information The corresponding action.
  • the entire system does not require a bridge to change the binding or mapping of the device, and avoids the inconsistency caused by the MQ and bridge services belonging to different financial institutions, reduces the operation and maintenance costs, and is suitable for the rapidly developing IOT networking system.
  • Figure 1 is a schematic diagram of a first IOT device alliance system provided by an embodiment of the present invention
  • Figure 2 is a schematic diagram of a second IOT device alliance system provided by an embodiment of the present invention.
  • Figure 3 is a schematic diagram of a third IOT device alliance system provided by an embodiment of the present invention.
  • Figure 4 is a schematic diagram of a fourth IOT device alliance system provided by an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of a method for changing an IOT device according to an embodiment of the present invention.
  • Figure 6 is a schematic diagram of an IOT device alliance system in a specific scenario provided by an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of an IOT device changing apparatus provided by an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a computing device provided by an embodiment of the present invention.
  • the embodiment of the present invention provides a blockchain-based IOT device alliance system.
  • the IOT device alliance system introduces blockchain technology on the basis of the MQTT protocol and is modified from the blockchain-based IOT device provided by the embodiment of the present invention. The method is applicable.
  • the IoT device alliance system includes multiple servers, each of which is used to manage its own IOT device.
  • the server here is understood as a publishing and subscribing server for message publishing and message subscription. Multiple publishing and subscribing servers implement IOT through the blockchain system. Information exchange of equipment.
  • Figure 2 exemplarily shows a blockchain-based IOT device alliance system, including multiple publishing and subscribing servers, each publishing and subscribing server corresponds to its own IOT device cluster, and each publishing and subscribing server is used to manage its own corresponding
  • the publishing and subscriber server and the IOT device cluster are connected through the MQTT cluster, which is used for protocol conversion.
  • a publish-subscribe server and the IOT device cluster and MQTT cluster corresponding to the publish-subscribe server belong to the same financial institution. That is to say, multiple financial institutions are involved in the IOT device alliance system, and each financial institution includes IOT.
  • the device cluster, the MQTT cluster, and the publishing and subscribing server have a corresponding relationship.
  • the IOT device cluster includes at least one IOT device
  • the MQTT cluster includes at least one proxy server.
  • the proxy server may be a server of the open source message broker software Mosquitto.
  • the publish-subscribe server between the two financial institutions is connected through the blockchain system.
  • the publish-subscribe server can write the publishing events of the IOT device to the blockchain system, or read the events from the blockchain system and send it to the IOT device. .
  • financial institution 1 includes IOT device cluster 1, MQTT cluster 1, and publish-subscribe server 1
  • financial institution 2 includes IOT device cluster 2, MQTT cluster 2, and publish-subscribe server 2
  • the subscription servers 2 are connected through a blockchain system, and realize the information exchange of IOT equipment between the two financial institutions through the blockchain system.
  • the publishing and subscribing server can access the blockchain system through certificates and public and private keys, and access the MQTT cluster through account numbers and passwords, so as to ensure the security of information within and between financial institutions.
  • a device management contract is stored in the blockchain system.
  • the device management contract can be a pre-established contract in the blockchain system.
  • the device management contract corresponds to a fixed device management topic.
  • Each publishing and subscribing server will subscribe to the device management topic. , That is to say, any event written into the device management topic will be obtained by any publishing and subscribing server in the IOT device alliance system. For example, if the device management subject is "com.aaaaaa.iot", any publishing and subscriber server in the IOT device alliance system subscribes to the subject "com.aaaaaa.iot". If a publishing and subscriber server writes the event corresponding to the topic " com.aaaaaa.iot 1", other publishing and subscribing servers can subscribe to the event "com.aaaaaa.iot 1".
  • the IOT equipment alliance system uses blockchain technology to connect the publishing and subscribing servers of multiple financial institutions, that is, the publishing and subscribing servers of each financial institution are connected to the blockchain system. Both the publishing and subscribing servers of the two financial institutions can communicate through the blockchain system.
  • the IOT device alliance system Compared with the IOT device alliance system shown in Figure 1, the IOT device alliance system based on blockchain technology has a simple networking method and is easy to maintain. For example, there are currently four IOT devices in financial institutions for networking. If the networking method shown in Figure 1 is adopted, the IOT device alliance system will become the architecture shown in Figure 3. For the convenience of description, the IOT device alliance system The MQTT cluster in Figure 3 is omitted. In Figure 3, when the MQ of each financial institution is connected to a foreign financial institution, it must pass a bridge. If you want to realize the pairwise connection of four financial institutions, the four financial institutions need to establish 6 connections, and 6 For example, a bridge 23 is required between MQ2 of financial institution 2 and MQ3 of financial institution 3.
  • the publishing and subscribing server of each financial institution is connected to the blockchain system, eliminating the need for bridging between MQs.
  • the star networking of the IOT device alliance system based on blockchain technology is simpler and easier to maintain.
  • the blockchain-based IOT device alliance system provided by the embodiment of the present invention is more suitable for rapidly developing IOT networking than the IOT device alliance system shown in FIG. 1, for example, the financial institution 3 in FIG. 3 adds IOT For devices, the bridges connected to MQ3 need to perform binding or mapping actions for newly added devices. Specifically, bridge 34, bridge 13, and bridge 23 perform binding or mapping actions for newly added devices.
  • the blockchain-based IOT device alliance system provided by the embodiment of the present invention is used, there is no need to perform binding or mapping actions of newly-added devices, only the information of the newly-added devices needs to be written into the blockchain system, and other financial institutions The subscriber server can complete the subscription action.
  • the financial institution 3 adds equipment, and the publish-subscribe server 3 writes the information of the newly-added device into the blockchain system, then publish-subscribe server 1, publish-subscribe server 2,
  • the publishing and subscribing server 4 can subscribe to the information of the newly added device.
  • the specific implementation process is explained in the following embodiments.
  • FIG. 5 exemplarily shows the flow of a block chain-based IOT device change method provided by an embodiment of the present invention.
  • the flow can be executed by a block chain-based IOT device change device.
  • the device can be located in the publishing and subscribing server or the publishing and subscribing server.
  • the publish-subscribe server is referred to as the server for short.
  • This process involves the publish-subscribe servers of two financial institutions (the first financial institution and the second financial institution), which are defined as the first server and the second Server, the first server is any one of multiple servers in the IOT device alliance system, and the second server is any server other than the first server.
  • the first financial institution understands that there is a financial institution that has changed the IOT device.
  • the change of the IOT device can include addition, deletion, parameter modification, connection relationship change, etc., and the first financial institution’s newly added IOT device is explained. It is used to add the new IOT device to the corresponding IOT device cluster.
  • the first server and the second server are connected through a blockchain system, and the process involves the execution of the first server, the second server and the blockchain system.
  • the process specifically includes:
  • Step 501 The first server generates a first transaction request containing the first IOT device information.
  • the first IOT device information is understood as the device information of the IOT device changed under the first server. Specifically, when there is a newly-added IOT device under the first server, the first server may receive an adding instruction containing the first IOT device information, and generate a first transaction request according to the first IOT device information in the adding instruction.
  • the first transaction request includes the first IOT device information, and the first IOT device information may include the device identifier of the IOT device, the device category, the device parameters, and the financial institution to which it belongs.
  • the adding instruction can be issued by the operation and maintenance personnel or sent by the IOT device to be added.
  • the first server may also generate the first IOT device theme corresponding to the first IOT device information according to the first IOT device information, and generate the first IOT device theme according to the first IOT device theme.
  • a deployment request the first deployment request is used to instruct the blockchain system to deploy the theme contract of the first IOT device theme.
  • the first server sends the first deployment request to the blockchain system, and the blockchain system deploys the theme contract of the first IOT device theme according to the first deployment request, and sends the first deployment result to the first server after the deployment is completed, where ,
  • the first deployment result includes the contract address of the theme contract of the first IOT device theme.
  • the first server receives the first deployment result returned by the blockchain system, and the first server includes the first IOT device theme and the contract address of the theme contract of the first IOT device theme.
  • the first server may also generate a second deployment request and send it to the blockchain system.
  • the second deployment request is used to instruct the blockchain system to deploy the system contract.
  • the system After the system receives the second deployment request, it deploys the system contract and returns the second deployment result to the first server.
  • the system contract can be empty in the initial state.
  • the first server after receiving the contract address of the theme contract of the first IOT device theme, the first server can update the correspondence between the first IOT device theme and the contract address of the theme contract of the first IOT device theme to the system contract . That is to say, the corresponding relationship between the two is stored in the system contract, and after the theme contract of the first IOT device theme is added to the blockchain system, it is updated.
  • Step 502 The first server sends the first transaction request to the blockchain system.
  • Step 503 The blockchain system calls the device management contract to generate and store the first transaction log.
  • the first transaction request may also include a device management theme corresponding to the device management contract in the blockchain system, and the first transaction request is used to instruct the blockchain system to call the device management contract to generate and store The first transaction log.
  • the blockchain system calls the device management contract, it generates the first transaction log and stores it in the blockchain system.
  • the first transaction log records the device management topic and the first IOT device information. Since any server in the IOT device alliance system has subscribed to the device management topic, it can be determined that the first transaction log generated by the blockchain system can be used by other servers (servers other than the first server in the IOT device alliance system) Obtaining, that is, the first transaction log can be obtained by the second server, which is equivalent to the blockchain system sending the first transaction log to the second server.
  • Step 504 The blockchain system sends the first transaction log to the second server.
  • Step 505 The second server determines whether to subscribe to the first IOT device topic indicated by the first IOT device information according to the first transaction log.
  • the second server may determine the first IOT device topic indicated by the first IOT device information according to the information of the first IOT device, and determine whether to subscribe to the first IOT device topic, and if so, it may send to the block according to the first IOT device topic
  • the chain system sends a monitoring request, that is, once the first IOT device publishes an event corresponding to the topic to the blockchain system, it can be monitored by the second server, and the second server can obtain the event from the blockchain system.
  • the second server determines not to subscribe to the topic of the first IOT device, the first transaction log can be ignored, and the events published by the first IOT device will not be obtained.
  • the first server before generating the first transaction request, may also generate the first IOT device subject based on the first IOT device information, and when generating the first transaction request, record the first IOT device subject in In the first transaction request, the blockchain system generates a first transaction log recording the subject of the first IOT device according to the first transaction request, that is, the first transaction log may also record the subject of the first IOT device, and the second The server may directly determine whether to subscribe to the first IOT device topic based on the first IOT device topic, thereby improving the efficiency of the second server's subscribing to the first IOT device topic.
  • FIG. 6 is a schematic diagram of the IOT device alliance system in a specific scenario provided by an embodiment of the present invention.
  • the IOT of the financial institution 1 The equipment includes transaction statistics equipment.
  • the IOT equipment of financial institution 2 includes payment equipment used for transactions, such as card payment equipment and code scanning payment equipment.
  • the transaction statistics equipment subscribes to the device theme and scan of the card payment equipment.
  • the device theme of the code payment device The device theme of the code payment device.
  • the first server (publishing and subscribing server 2) receives the addition instruction containing the device information of the facial payment device, generates a first transaction request and sends it to the district Block chain system, the block chain system calls the device management contract to generate the first transaction log recording the device information of the facial payment device.
  • the second server (publishing and subscribing server 1) obtains the first transaction log, it judges the financial institution 1 Does the transaction statistics device need to subscribe to the device topic of the facial payment device? If so, send a monitoring request to the blockchain system to monitor the events published by the facial payment device.
  • the first transaction log may also include the category of the IOT device, the financial institution to which the IOT device belongs, the performance parameters of the IOT device, etc., for the second server to make judgments.
  • the second server determines whether to subscribe to the topic of the first IOT device, which can be determined by the logic inside the second server; it can also send the first transaction log to the IOT device under the second server, and the IOT device under the second server is based on its own
  • the logic judges whether it is necessary to obtain the events published by the first IOT device, and feeds back the judgment result to the second server; it can also display the relevant information in the first transaction log to the operation and maintenance personnel, and the operation and maintenance personnel make a manual judgment and feed it back to The second server.
  • the first IOT device publishes events corresponding to the theme.
  • the events published here can be understood as transaction parameters, device parameters, control instructions, etc. sent by the first IOT device.
  • the face-swiping payment device publishes device-themed events, and can publish transaction amounts, transaction cards, etc.
  • the first server generates the first transaction request and sends the first transaction request to the blockchain system.
  • the blockchain system calls the device management contract to generate and store the first IOT device information recorded.
  • Transaction log for the second server to determine whether to subscribe to the topic of the first IOT device.
  • the first server may also obtain the second transaction log in the blockchain system, and determine whether to subscribe to the second IOT device topic according to the second transaction log, as in the following embodiment.
  • the first server subscribes to the device management topic, and when a transaction log corresponding to the device management topic is added to the blockchain system, the first server obtains the transaction log. Specifically, after an IOT device is added to the second server, the second server generates a second transaction request according to the device information of the newly added IOT device.
  • the second transaction request includes the second IOT device information, and the second IOT device information is the first 2.
  • the second server sends the second transaction request to the blockchain system, and the blockchain system calls the device management contract to generate a second transaction log and store it in the blockchain system, where the second transaction log records the second IOT Device information.
  • the first server determines whether to subscribe to the second IOT device topic indicated by the second IOT device information according to the second transaction log.
  • the second IOT device topic sends a monitoring request to the blockchain system, and the monitoring request is used to obtain new events published by the second IOT device.
  • the MQTT cluster corresponding to the first server can perform corresponding configuration according to the second IOT device topic, so that the first server can obtain the newly added events published by the second IOT device Later, the first server can send the newly added event to the IOT device under the first server through the MQTT cluster.
  • the IOT device under the first server can also be configured accordingly based on the theme of the second IOT device, so as to implement related operations after receiving a new event published by the second IOT device.
  • the specific implementation manner in which the first server obtains the second transaction log to determine whether to subscribe to the second IOT device topic is similar to the specific implementation manner in which the second server obtains the first transaction log to determine whether to subscribe to the first IOT device topic. This will not be repeated here.
  • the second server may be at least one, and in different embodiments, the second server may be a different server.
  • the IOT device alliance system includes four publishing and subscribing servers A, B, C, and D.
  • the publishing and subscribing server A is understood as The first server
  • the three publishing and subscribing servers of B, C, and D are all understood as the second server.
  • the publishing and subscribing server A generates the first transaction request and sends it to the blockchain system
  • the blockchain system generates the first transaction Log
  • the first transaction log can be subscribed by the three publish-subscribe servers of B, C, and D.
  • a publish-subscribe server is the first server, and A publish-subscribe server subscribes to the second transaction log.
  • the second transaction log is the area after B publish-subscribe server sends the second transaction request to the blockchain system.
  • the B publishing and subscribing server at this time is the second server in this embodiment.
  • the IOT device under the first server can also be deleted.
  • the first server receives the delete instruction, it generates a first transaction request according to the IOT device information to be deleted in the delete instruction, where the first transaction request includes The first IOT device information, the first IOT device information is the IOT device information to be deleted.
  • the first server generates the first transaction request, and sends the first transaction request to the blockchain system, and the blockchain system calls the device management contract to generate and store the first transaction log corresponding to the device management theme, and the first transaction The log includes the first IOT device information.
  • the second server obtains the first transaction log, and according to the first transaction log, unsubscribes the first IOT device topic from the blockchain system.
  • the change of IOT equipment can include not only adding equipment, deleting equipment, but also updating equipment, such as device parameter modification, connection relationship change, etc., which is equivalent to that the first server receives a change instruction, which is used to instruct IOT New addition, deletion of equipment or parameter changes, etc.
  • the second server can subscribe or unsubscribe the first IOT device topic, and the first server can also subscribe or unsubscribe the first IOT device topic.
  • the newly-added device in financial institution 2 is a face-swiping payment device.
  • the blockchain system After the first server sends the first transaction request to the blockchain system, the blockchain system generates the first transaction log.
  • the second server subscribes to the device topic of the face-swiping payment device and sends it to the transaction statistics device after obtaining the publishing event of the face-swiping payment device.
  • the first server can also determine whether to subscribe to the face-swiping payment according to the first transaction log The device theme of the device.
  • the first server can also subscribe to the device theme of the facial payment device and obtain the publication of the facial payment device After the event, it is sent to the scan code payment device.
  • the first server may also determine whether to subscribe or unsubscribe to the first IOT device topic according to the first IOT device topic indicated by the first IOT device information in the first transaction log.
  • the first server may also change according to the change The first IOT device information in the instruction directly determines whether it is necessary to subscribe or unsubscribe the first IOT device topic.
  • changing equipment in the system can be adding equipment, deleting equipment, updating equipment, etc., and changing equipment Defined as the first IOT device, and the first server is used to manage the first IOT device.
  • the first server generates a first transaction request containing the information of the first IOT device and sends it to the blockchain system.
  • the blockchain system receives the first transaction request and generates the first transaction recording the first IOT device information after calling the device management contract.
  • Log storing the first transaction log in the blockchain system
  • the second server can obtain the first transaction log by subscribing to the device management topic, and determine whether to subscribe to the first IOT device topic according to the first transaction log.
  • the second server can obtain the event published by the first IOT device.
  • the IOT device alliance system after the second server obtains the event published by the first IOT device, it can send the event Send to the corresponding IOT device, so that the IOT device corresponding to the second server receives the event published by the first IOT device.
  • the first server only needs to write the transaction to change the device information in the blockchain system, and the second server can subscribe to the device management topic to obtain the information of the changed device, and execute the change of the device information The corresponding action.
  • the entire system does not require a bridge to change the binding or mapping of the device, and avoids the inconsistency caused by the MQ and bridge services belonging to different financial institutions, reduces operation and maintenance costs, and is suitable for the rapidly developing IOT networking system.
  • FIG. 7 exemplarily shows the structure of a block chain-based IOT device modification device provided by an embodiment of the present invention, which can execute the process of the block chain-based IOT device modification method .
  • the device includes:
  • the processing unit 701 is configured to generate a first transaction request containing first IOT device information; the first IOT device information is the device information of the IOT device changed under the first server; the first server is the multiple servers Any of
  • the transceiver unit 702 is configured to send the first transaction request to the blockchain system; the first transaction request is used to instruct the blockchain system to call the device management contract to generate and store a first transaction log;
  • the first transaction log records the device management topic and the first IOT device information; any server in the IOT device alliance system subscribes to the device management topic; the first transaction log is used by the second server Determine whether to subscribe to the first IOT device topic indicated by the first IOT device information; the second server is any server other than the first server in the IOT device alliance system.
  • processing unit 701 is further configured to:
  • the second transaction log is generated by the blockchain system based on the second transaction request sent by the second server calling the device management contract;
  • the second transaction log records second IOT device information and the device management topic, and the second IOT device information is the device information of the newly added IOT device under the second server;
  • the second IOT device information in the second transaction log subscribe to the blockchain system the second IOT device topic indicated by the second IOT device information.
  • processing unit 701 is further configured to:
  • the transceiver unit 702 According to the theme of the first IOT device, generate and control the transceiver unit 702 to send a first deployment request to the blockchain system; the first deployment request is used to instruct the blockchain system to deploy the first deployment request
  • the first deployment result includes the contract address of the theme contract of the first IOT device theme.
  • processing unit 701 is further configured to:
  • control the transceiver unit 702 Before generating the first deployment request, control the transceiver unit 702 to send a second deployment request to the blockchain system; the second deployment request is used to instruct the blockchain system to deploy a system contract;
  • the processing unit 701 is further configured to:
  • the correspondence between the first IOT device subject and the contract address of the subject contract of the first IOT device subject is updated to all The system contract.
  • an embodiment of the present invention also provides a computing device, as shown in FIG. 8, including:
  • the memory 801 is used to store program instructions
  • the processor 802 is configured to call the program instructions stored in the memory, and execute the above-mentioned blockchain-based IOT device modification method according to the obtained program.
  • embodiments of the present invention also provide a computer-readable non-volatile storage medium, including computer-readable instructions.
  • the computer reads and executes the computer-readable instructions, the computer executes the above-mentioned region-based The method of changing the IOT device of the block chain.
  • the embodiments of the present invention also provide a computer program product.
  • the computer program product includes a computer program stored on a computer-readable non-volatile storage medium.
  • the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the method for changing the IOT device based on the blockchain.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Signal Processing (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Medical Informatics (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

Disclosed are a blockchain-based IOT device changing method and apparatus. The method is applicable to an IOT device alliance system. The method comprises: a first server generating a first transaction request, and sending the first transaction request to a blockchain system; the blockchain system invoking a device management contract to generate and store a first transaction log; and a second server determining, according to the first transaction log, whether to subscribe to a first IOT device topic. When a device is changed in a system, a first server only needs to write, into a blockchain system, a transaction involving information of a changed device, and a second server can acquire the information of the changed device by means of subscribing to a device management topic, and can execute a corresponding action for the information of the changed device. The whole system does not need a bridge to perform a binding or mapping action on a changed device, and the problem of inconsistency due to the fact that an MQ and a bridging service belong to different financial institutions is prevented, so that operation and maintenance costs are reduced. The present invention is applicable to a rapidly developing IOT networking system.

Description

一种基于区块链的IOT设备变更的方法及装置Method and device for changing IOT equipment based on blockchain
相关申请的交叉引用Cross references to related applications
本申请要求在2019年04月12日提交中国专利局、申请号为201910292923.1、申请名称为“一种基于区块链的IOT设备变更的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on April 12, 2019, the application number is 201910292923.1, and the application name is "a method and device for changing IOT equipment based on blockchain", and its entire contents Incorporated in this application by reference.
技术领域Technical field
本发明实施例涉及金融科技(Fintech)领域,尤其涉及一种基于区块链(Block Chain)的IOT(Internet of Things,物联网)设备变更的方法及装置。The embodiments of the present invention relate to the field of financial technology (Fintech), and in particular, to a method and device for changing an IOT (Internet of Things) device based on a block chain (BlockChain).
背景技术Background technique
MQTT(Message Queue Telemetry Transport,遥感传输)协议是ISO标准(ISO/IEC PRF 20922)下基于发布/订阅范式的消息协议。MQTT协议工作在TCP/IP(Transmission Control Protocol/Internet Protocol,传输控制协议/因特网互联协议)协议族上,是为硬件性能低下的远程设备以及在网络状况不理想的情况下设计的发布/订阅型消息协议。The MQTT (Message Queue Telemetry Transport) protocol is a message protocol based on the publish/subscribe paradigm under the ISO standard (ISO/IEC PRF 20922). The MQTT protocol works on the TCP/IP (Transmission Control Protocol/Internet Protocol) protocol suite. It is a publish/subscribe type designed for remote devices with low hardware performance and when the network conditions are not ideal. Message protocol.
金融科技领域中,基于MQTT协议构建的IOT设备联盟***可以如图1所示,金融机构内部的组网可以为多个IOT设备通过MQTT集群与MQ(Message Queue,消息队列)连接,金融机构外部的组网为将本金融机构的MQ通过桥接方式与其他金融机构的MQ连接,例如,金融机构1的MQ1与金融机构2的MQ2之间通过桥接器连接,该桥接器用于从MQ1订阅事件发布至MQ2以及从MQ2订阅事件发布至MQ1。In the field of financial technology, the IOT device alliance system based on the MQTT protocol can be shown in Figure 1. The internal network of a financial institution can be multiple IOT devices connected to MQ (Message Queue, message queue) through an MQTT cluster, and outside the financial institution The network is to connect the MQ of this financial institution with the MQ of other financial institutions through a bridge method. For example, the MQ1 of financial institution 1 and the MQ2 of financial institution 2 are connected through a bridge, which is used to subscribe to event publishing from MQ1 To MQ2 and subscribe events from MQ2 to MQ1.
现有IOT设备联盟***中,一旦出现某金融机构变更设备,如新增设备、删除设备或者更新设备,则需要将该设备信息发送至其他金融机构,进一步的,金融机构之间的桥接器需要完成该变更设备的绑定或者映射动作,又由于MQ和桥接服务分属不同的金融机构,运维成本较高。In the existing IOT equipment alliance system, once a financial institution changes equipment, such as adding equipment, deleting equipment, or updating equipment, the equipment information needs to be sent to other financial institutions. Furthermore, the bridge between financial institutions needs To complete the binding or mapping action of the changed device, and because the MQ and the bridge service belong to different financial institutions, the operation and maintenance cost is high.
发明内容Summary of the invention
本发明实施例提供一种基于区块链的IOT设备变更的方法及装置,在基于MQTT协议构建的IOT设备联盟***中,降低IOT设备变更的运维成本。The embodiment of the present invention provides a method and device for changing an IOT device based on a blockchain. In an IOT device alliance system constructed based on the MQTT protocol, the operation and maintenance cost of the change of the IOT device is reduced.
本发明实施例提供的一种基于区块链的IOT设备变更的方法,适用于包括多个服务器的IOT设备联盟***;每个服务器用于管理各自的IOT设备;所述多个服务器通过区块链***进行IOT设备的信息交互;The method for changing the IOT device based on the blockchain provided by the embodiment of the present invention is applicable to an IOT device alliance system including multiple servers; each server is used to manage its own IOT device; the multiple servers pass through the block The chain system conducts information exchange of IOT devices;
所述方法包括:The method includes:
第一服务器生成包含第一IOT设备信息的第一交易请求;所述第一IOT设备信息为所述第一服务器下变更的IOT设备的设备信息;所述第一服务器为所述多个服务器中的任一个;The first server generates a first transaction request containing the first IOT device information; the first IOT device information is the device information of the IOT device changed under the first server; the first server is among the multiple servers Any of
所述第一服务器将所述第一交易请求发送至所述区块链***;所述第一交易请求用于指示所述区块链***调用设备管理合约生成并存储第一交易日志;所述第一交易日志记录有设备管理主题及所述第一IOT设备信息;所述IOT设备联盟***中的任一服务器均订阅有所述设备管理主题;所述第一交易日志用于第二服务器确定是否订阅所述第一IOT设备信息指示的第一IOT设备主题;所述第二服务器为所述IOT设备联盟***中除所述第一服务器以外的任一服务器。The first server sends the first transaction request to the blockchain system; the first transaction request is used to instruct the blockchain system to call the device management contract to generate and store a first transaction log; The first transaction log records the device management topic and the first IOT device information; any server in the IOT device alliance system subscribes to the device management topic; the first transaction log is used by the second server to determine Whether to subscribe to the first IOT device topic indicated by the first IOT device information; the second server is any server other than the first server in the IOT device alliance system.
上述技术方案中,提供一种适用于IOT设备联盟***的IOT设备变更的方法,具体的,在***中变更设备,可以是在***中新增设备、删除设备、更新设备等,可以将变更设备定义为第一IOT设备,第一服务器用于管理该第一IOT设备。第一服务器生成包含第一IOT设备信息的第一交易请求,发送至区块链***,区块链***接收第一交易请求,调用设备管理合约后生成记录有第一IOT设备信息的第一交易日志,将该第一交易日志存储在区块链***中,第二服务器可以通过订阅设备管理主题,获取第一交易日志,并根据第一交易日志确定是否订阅第一IOT设备主题。若第二服务器订阅第一IOT设备主题,则可以实现第二服务器获取第一IOT设备发布的事件,该IOT设备联盟***中,第二服务器获取到第一IOT设备发布的事件后,可以将事件 发送至对应的IOT设备,从而实现第二服务器对应的IOT设备接收第一IOT设备发布的事件。在***中变更设备时,第一服务器只需要在区块链***中写入变更设备信息的交易,则第二服务器可以通过订阅设备管理主题,获取变更设备的信息,并针对变更设备信息执行的相应动作。整个***无需桥接器进行变更设备的绑定或者映射动作,且避免由于MQ和桥接服务分属不同的金融机构所存在的不一致问题,降低运维成本,适用于快速发展的IOT组网***。In the above technical solution, a method for changing IOT equipment of the IOT Equipment Alliance system is provided. Specifically, changing equipment in the system can be adding equipment, deleting equipment, updating equipment, etc., and changing equipment Defined as the first IOT device, and the first server is used to manage the first IOT device. The first server generates a first transaction request containing the information of the first IOT device and sends it to the blockchain system. The blockchain system receives the first transaction request and generates the first transaction recording the first IOT device information after calling the device management contract. Log, storing the first transaction log in the blockchain system, the second server can obtain the first transaction log by subscribing to the device management topic, and determine whether to subscribe to the first IOT device topic according to the first transaction log. If the second server subscribes to the topic of the first IOT device, the second server can obtain the event published by the first IOT device. In the IOT device alliance system, after the second server obtains the event published by the first IOT device, it can send the event Send to the corresponding IOT device, so that the IOT device corresponding to the second server receives the event published by the first IOT device. When the device is changed in the system, the first server only needs to write the transaction to change the device information in the blockchain system, and the second server can subscribe to the device management topic to obtain the information of the changed device, and execute the change of the device information The corresponding action. The entire system does not require a bridge to change the binding or mapping of the device, and avoids the inconsistency caused by the MQ and bridge services belonging to different financial institutions, reduces the operation and maintenance costs, and is suitable for the rapidly developing IOT networking system.
可选的,所述方法还包括:Optionally, the method further includes:
所述第一服务器从所述区块链***中获取第二交易日志;所述第二交易日志是所述区块链***基于所述第二服务器发送的第二交易请求调用所述设备管理合约生成的;所述第二交易日志中记录有第二IOT设备信息和所述设备管理主题,所述第二IOT设备信息是所述第二服务器下新增的IOT设备的设备信息;The first server obtains a second transaction log from the blockchain system; the second transaction log is the blockchain system calling the device management contract based on the second transaction request sent by the second server Generated; the second transaction log records the second IOT device information and the device management topic, the second IOT device information is the device information of the new IOT device under the second server;
所述第一服务器根据所述第二交易日志中的第二IOT设备信息,向所述区块链***订阅所述第二IOT设备信息所指示的第二IOT设备主题。The first server subscribes the second IOT device topic indicated by the second IOT device information to the blockchain system according to the second IOT device information in the second transaction log.
上述技术方案中,第一服务器还可以通过订阅设备管理主题,获取区块链***中的第二交易日志,并根据第二交易日志中的第二IOT设备信息,向区块链***订阅第二IOT设备主题。在第二IOT设备将事件发布至区块链***中时,第一服务器可以获取到该发布事件,进一步的,第一服务器可以将该发布事件发送至与第一服务器对应的IOT设备中,以实现IOT设备之间的互联。此外,第一服务器在订阅第二IOT设备主题时,也无需执行新增设备的绑定或者映射动作,降低IOT设备联盟***中新增设备的运维成本。In the above technical solution, the first server can also obtain the second transaction log in the blockchain system by subscribing to the device management topic, and subscribe to the blockchain system for the second transaction log according to the second IOT device information in the second transaction log. IOT device theme. When the second IOT device publishes the event to the blockchain system, the first server can obtain the published event. Further, the first server can send the published event to the IOT device corresponding to the first server to Realize the interconnection between IOT devices. In addition, when the first server subscribes to the topic of the second IOT device, it does not need to perform binding or mapping actions of the newly added device, which reduces the operation and maintenance cost of the newly added device in the IOT device alliance system.
可选的,所述第一服务器生成包含第一IOT设备信息的第一交易请求之前,还包括:Optionally, before the first server generates the first transaction request containing the first IOT device information, the method further includes:
所述第一服务器根据所述第一IOT设备信息,生成所述第一IOT设备主题;The first server generates the first IOT device theme according to the first IOT device information;
所述第一服务器根据所述第一IOT设备主题,生成并向所述区块链*** 发送第一部署请求;所述第一部署请求用于指示所述区块链***部署所述第一IOT设备主题的主题合约;The first server generates and sends a first deployment request to the blockchain system according to the theme of the first IOT device; the first deployment request is used to instruct the blockchain system to deploy the first IOT Theme contract of equipment theme;
所述第一服务器接收所述区块链***返回的第一部署结果,所述第一部署结果是所述区块链***完成所述第一IOT设备主题的主题合约的部署后发送的;所述第一部署结果包括所述第一IOT设备主题的主题合约的合约地址。The first server receives the first deployment result returned by the blockchain system, and the first deployment result is sent by the blockchain system after the deployment of the theme contract of the first IOT device theme is completed; The first deployment result includes the contract address of the theme contract of the first IOT device theme.
上述技术方案中,第一服务器可以根据第一IOT设备主题生成第一部署请求,并发送至区块链***,区块链***部署相对应的主题合约,以及将部署完成的主题合约的合约地址返回至第一服务器,实现在区块链***中部署与变更设备对应的主题合约,第二服务器可以订阅变更设备对应的主题。当变更设备调用区块链***中对应的主题合约发布事件时,订阅该主题合约的第二服务器可以获取到变更设备发布的事件,并发送至与第二服务器对应的IOT设备,以实现将变更设备与其它IOT设备的互联。进一步的,在第一服务器生成第一交易请求之前生成第一IOT设备主题,则可以在生成第一交易请求时,将第一IOT设备主题记录在第一交易请求中,区块链***根据第一交易请求生成记录有第一IOT设备主题的第一交易日志,以使得第二服务器可以根据第一交易日志中的第一IOT设备主题,从区块链***中订阅第一IOT设备主题,以提高第二服务器订阅第一IOT设主题的效率。In the above technical solution, the first server can generate a first deployment request according to the theme of the first IOT device and send it to the blockchain system. The blockchain system deploys the corresponding theme contract and the contract address of the theme contract to be deployed. Return to the first server to implement the deployment of the theme contract corresponding to the changed device in the blockchain system, and the second server can subscribe to the theme corresponding to the changed device. When the changing device calls the corresponding theme contract publishing event in the blockchain system, the second server subscribing to the theme contract can obtain the event published by the changing device and send it to the IOT device corresponding to the second server to realize the change The interconnection of the device with other IOT devices. Further, if the first IOT device theme is generated before the first server generates the first transaction request, the first IOT device theme may be recorded in the first transaction request when the first transaction request is generated, and the blockchain system is based on the first transaction request. A transaction request generates a first transaction log recording the topic of the first IOT device, so that the second server can subscribe to the first IOT device topic from the blockchain system according to the first IOT device topic in the first transaction log to Improve the efficiency of the second server subscribing to the first IOT topic.
可选的,在所述第一服务器生成第一部署请求之前,还包括:Optionally, before the first server generates the first deployment request, the method further includes:
所述第一服务器向所述区块链***发送第二部署请求;所述第二部署请求用于指示所述区块链***部署***合约;The first server sends a second deployment request to the blockchain system; the second deployment request is used to instruct the blockchain system to deploy a system contract;
所述第一服务器接收所述区块链***返回的第二部署结果;所述第二部署结果是所述区块链***完成所述***合约的部署后发送的;The first server receives the second deployment result returned by the blockchain system; the second deployment result is sent after the blockchain system completes the deployment of the system contract;
在所述第一服务器接收所述区块链***返回的第一部署结果之后,还包括:After the first server receives the first deployment result returned by the blockchain system, the method further includes:
所述第一服务器将所述第一IOT设备主题和所述第一IOT设备主题的主题合约的合约地址的对应关系更新至所述***合约。The first server updates the correspondence between the first IOT device subject and the contract address of the subject contract of the first IOT device subject to the system contract.
上述技术方案中,第一服务器在生成第一部署请求之前,还可以向区块 链***发送用于指示区块链***部署***合约的交易请求,也就是说,区块链***在部署主题合约之前,还可以先部署***合约。当区块链***部署完主题合约后,把主题合约的合约地址反馈至第一服务器,第一服务器可以将主题和主题合约的合约地址的对应关系更新至***合约,以使得***合约存储当前区块链***中最新主题和合约地址的对应关系,相当于存储当前IOT设备联盟***中全部IOT设备主题和合约地址的对应关系。在第一IOT设备发布事件时,第一服务器可以确定出待调用的第一IOT设备主题的主题合约的合约地址,以使得区块链***根据该地址调用合约,完成第一IOT设备的事件发布。且第一IOT设备经第一服务器将事件发布是区块链***中,可以防止事件被篡改,提高发布事件的安全性。In the above technical solution, before generating the first deployment request, the first server may also send a transaction request for instructing the blockchain system to deploy the system contract to the blockchain system, that is, the blockchain system is deploying the subject contract Before, you can also deploy the system contract first. After the blockchain system has deployed the theme contract, it will feed back the contract address of the theme contract to the first server. The first server can update the correspondence between the theme and the contract address of the theme contract to the system contract, so that the system contract stores the current area The correspondence between the latest theme and contract address in the blockchain system is equivalent to storing the correspondence between all IOT device themes and contract addresses in the current IOT device alliance system. When the first IOT device publishes an event, the first server can determine the contract address of the subject contract of the subject of the first IOT device to be called, so that the blockchain system can call the contract according to the address to complete the event publishing of the first IOT device . Moreover, the first IOT device publishes the event via the first server in the blockchain system, which can prevent the event from being tampered with and improve the security of publishing the event.
相应的,本发明实施例还提供了一种基于区块链的IOT设备变更的装置,包括:Correspondingly, an embodiment of the present invention also provides a block chain-based IOT device modification device, including:
处理单元,用于生成包含第一IOT设备信息的第一交易请求;所述第一IOT设备信息为第一服务器下变更的IOT设备的设备信息;所述第一服务器为所述多个服务器中的任一个;The processing unit is configured to generate a first transaction request including first IOT device information; the first IOT device information is the device information of the IOT device changed under the first server; the first server is among the multiple servers Any of
收发单元,用于将所述第一交易请求发送至所述区块链***;所述第一交易请求用于指示所述区块链***调用设备管理合约生成并存储第一交易日志;所述第一交易日志记录有设备管理主题及所述第一IOT设备信息;所述IOT设备联盟***中的任一服务器均订阅有所述设备管理主题;所述第一交易日志用于第二服务器确定是否订阅所述第一IOT设备信息指示的第一IOT设备主题;所述第二服务器为所述IOT设备联盟***中除所述第一服务器以外的任一服务器。The transceiver unit is configured to send the first transaction request to the blockchain system; the first transaction request is used to instruct the blockchain system to invoke a device management contract to generate and store a first transaction log; The first transaction log records the device management topic and the first IOT device information; any server in the IOT device alliance system subscribes to the device management topic; the first transaction log is used by the second server to determine Whether to subscribe to the first IOT device topic indicated by the first IOT device information; the second server is any server other than the first server in the IOT device alliance system.
可选的,所述处理单元还用于:Optionally, the processing unit is further configured to:
从所述区块链***中获取第二交易日志;所述第二交易日志是所述区块链***基于所述第二服务器发送的第二交易请求调用所述设备管理合约生成的;所述第二交易日志中记录有第二IOT设备信息和所述设备管理主题,所述第二IOT设备信息是所述第二服务器下新增的IOT设备的设备信息;Obtain a second transaction log from the blockchain system; the second transaction log is generated by the blockchain system based on the second transaction request sent by the second server calling the device management contract; The second transaction log records second IOT device information and the device management topic, and the second IOT device information is the device information of the newly added IOT device under the second server;
根据所述第二交易日志中的第二IOT设备信息,向所述区块链***订阅所述第二IOT设备信息所指示的第二IOT设备主题。According to the second IOT device information in the second transaction log, subscribe to the blockchain system the second IOT device topic indicated by the second IOT device information.
可选的,所述处理单元还用于:Optionally, the processing unit is further configured to:
在所述生成包含第一IOT设备信息的第一交易请求之前,根据所述第一IOT设备信息,生成所述第一IOT设备主题;Before the generating the first transaction request containing the first IOT device information, generate the first IOT device subject according to the first IOT device information;
根据所述第一IOT设备主题,生成并控制所述收发单元向所述区块链***发送第一部署请求;所述第一部署请求用于指示所述区块链***部署所述第一IOT设备主题的主题合约;According to the theme of the first IOT device, generate and control the transceiver unit to send a first deployment request to the blockchain system; the first deployment request is used to instruct the blockchain system to deploy the first IOT Theme contract of equipment theme;
控制所述收发单元接收所述区块链***返回的第一部署结果,所述第一部署结果是所述区块链***完成所述第一IOT设备主题的主题合约的部署后发送的;所述第一部署结果包括所述第一IOT设备主题的主题合约的合约地址。Controlling the transceiver unit to receive the first deployment result returned by the blockchain system, the first deployment result being sent by the blockchain system after the deployment of the theme contract of the first IOT device theme; The first deployment result includes the contract address of the theme contract of the first IOT device theme.
可选的,所述处理单元还用于:Optionally, the processing unit is further configured to:
在所述生成第一部署请求之前,控制所述收发单元向所述区块链***发送第二部署请求;所述第二部署请求用于指示所述区块链***部署***合约;Before generating the first deployment request, control the transceiver unit to send a second deployment request to the blockchain system; the second deployment request is used to instruct the blockchain system to deploy a system contract;
控制所述收发单元接收所述区块链***返回的第二部署结果;所述第二部署结果是所述区块链***完成所述***合约的部署后发送的;Controlling the transceiver unit to receive the second deployment result returned by the blockchain system; the second deployment result is sent after the blockchain system completes the deployment of the system contract;
所述处理单元还用于:The processing unit is also used for:
在控制所述收发单元接收所述区块链***返回的第一部署结果之后,将所述第一IOT设备主题和所述第一IOT设备主题的主题合约的合约地址的对应关系更新至所述***合约。After controlling the transceiver unit to receive the first deployment result returned by the blockchain system, update the correspondence between the first IOT device subject and the contract address of the subject contract of the first IOT device subject to the System contract.
相应的,本发明实施例还提供了一种计算设备,包括:Correspondingly, an embodiment of the present invention also provides a computing device, including:
存储器,用于存储程序指令;Memory, used to store program instructions;
处理器,用于调用所述存储器中存储的程序指令,按照获得的程序执行上述基于区块链的IOT设备变更的方法。The processor is configured to call the program instructions stored in the memory, and execute the above blockchain-based IOT device modification method according to the obtained program.
相应的,本发明实施例还提供了一种计算机可读非易失性存储介质,包括计算机可读指令,当计算机读取并执行所述计算机可读指令时,使得计算 机执行上述基于区块链的IOT设备变更的方法。Correspondingly, an embodiment of the present invention also provides a computer-readable non-volatile storage medium, including computer-readable instructions. When the computer reads and executes the computer-readable instructions, the computer executes the above-mentioned blockchain-based The method of changing the IOT device.
相应的,本发明实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机可读非易失性存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述基于区块链的IOT设备变更的方法。Correspondingly, an embodiment of the present invention also provides a computer program product, the computer program product includes a computer program stored on a computer-readable non-volatile storage medium, the computer program includes program instructions, when the program When the instruction is executed by the computer, the computer is caused to execute the method for changing the IOT device based on the blockchain.
本发明实施例提供一种适用于IOT设备联盟***的IOT设备变更的方法,具体的,在***中变更设备,可以是在***中新增设备、删除设备、更新设备等,可以将变更设备定义为第一IOT设备,第一服务器用于管理该第一IOT设备。第一服务器生成包含第一IOT设备信息的第一交易请求,发送至区块链***,区块链***接收第一交易请求,调用设备管理合约后生成记录有第一IOT设备信息的第一交易日志,将该第一交易日志存储在区块链***中,第二服务器可以通过订阅设备管理主题,获取第一交易日志,并根据第一交易日志确定是否订阅第一IOT设备主题。若第二服务器订阅第一IOT设备主题,则可以实现第二服务器获取第一IOT设备发布的事件,该IOT设备联盟***中,第二服务器获取到第一IOT设备发布的事件后,可以将事件发送至对应的IOT设备,从而实现第二服务器对应的IOT设备接收第一IOT设备发布的事件。在***中变更设备时,第一服务器只需要在区块链***中写入变更设备信息的交易,则第二服务器可以通过订阅设备管理主题,获取变更设备的信息,并针对变更设备信息执行的相应动作。整个***无需桥接器进行变更设备的绑定或者映射动作,且避免由于MQ和桥接服务分属不同的金融机构所存在的不一致问题,降低运维成本,适用于快速发展的IOT组网***。The embodiment of the present invention provides a method for changing IOT equipment applicable to the IOT equipment alliance system. Specifically, changing equipment in the system can be adding equipment, deleting equipment, updating equipment, etc., and changing equipment can be defined It is the first IOT device, and the first server is used to manage the first IOT device. The first server generates a first transaction request containing the information of the first IOT device and sends it to the blockchain system. The blockchain system receives the first transaction request and generates the first transaction recording the first IOT device information after calling the device management contract. Log, storing the first transaction log in the blockchain system, the second server can obtain the first transaction log by subscribing to the device management topic, and determine whether to subscribe to the first IOT device topic according to the first transaction log. If the second server subscribes to the topic of the first IOT device, the second server can obtain the event published by the first IOT device. In the IOT device alliance system, after the second server obtains the event published by the first IOT device, it can send the event Send to the corresponding IOT device, so that the IOT device corresponding to the second server receives the event published by the first IOT device. When the device is changed in the system, the first server only needs to write the transaction to change the device information in the blockchain system, and the second server can subscribe to the device management topic to obtain the information of the changed device, and execute the change of the device information The corresponding action. The entire system does not require a bridge to change the binding or mapping of the device, and avoids the inconsistency caused by the MQ and bridge services belonging to different financial institutions, reduces the operation and maintenance costs, and is suitable for the rapidly developing IOT networking system.
附图说明Description of the drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings needed in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative work, other drawings can be obtained from these drawings.
图1为本发明实施例提供的第一种IOT设备联盟***的示意图;Figure 1 is a schematic diagram of a first IOT device alliance system provided by an embodiment of the present invention;
图2为本发明实施例提供的第二种IOT设备联盟***的示意图;Figure 2 is a schematic diagram of a second IOT device alliance system provided by an embodiment of the present invention;
图3为本发明实施例提供的第三种IOT设备联盟***的示意图;Figure 3 is a schematic diagram of a third IOT device alliance system provided by an embodiment of the present invention;
图4为本发明实施例提供的第四种IOT设备联盟***的示意图;Figure 4 is a schematic diagram of a fourth IOT device alliance system provided by an embodiment of the present invention;
图5为本发明实施例提供的一种IOT设备变更方法的流程示意图;5 is a schematic flowchart of a method for changing an IOT device according to an embodiment of the present invention;
图6为本发明实施例提供的具体场景下的IOT设备联盟***的示意图;Figure 6 is a schematic diagram of an IOT device alliance system in a specific scenario provided by an embodiment of the present invention;
图7为本发明实施例提供的一种IOT设备变更装置的结构示意图;FIG. 7 is a schematic structural diagram of an IOT device changing apparatus provided by an embodiment of the present invention;
图8为本发明实施例提供的一种计算设备的结构示意图。FIG. 8 is a schematic structural diagram of a computing device provided by an embodiment of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
本发明实施例提供一种基于区块链的IOT设备联盟***,该IOT设备联盟***在MQTT协议的基础上,引入区块链技术,与本发明实施例提供的基于区块链的IOT设备变更的方法相适用。IOT设备联盟***包括多个服务器,每个服务器用于管理各自的IOT设备,此处的服务器理解为用于消息发布和消息订阅的发布订阅服务器,多个发布订阅服务器通过区块链***实现IOT设备的信息交互。The embodiment of the present invention provides a blockchain-based IOT device alliance system. The IOT device alliance system introduces blockchain technology on the basis of the MQTT protocol and is modified from the blockchain-based IOT device provided by the embodiment of the present invention. The method is applicable. The IoT device alliance system includes multiple servers, each of which is used to manage its own IOT device. The server here is understood as a publishing and subscribing server for message publishing and message subscription. Multiple publishing and subscribing servers implement IOT through the blockchain system. Information exchange of equipment.
图2示例性的示出了一种基于区块链的IOT设备联盟***,包括多个发布订阅服务器,每个发布订阅服务器对应各自的IOT设备集群,每个发布订阅服务器用于管理自己对应的IOT设备集群中的IOT设备,发布订阅服务器与IOT设备集群通过MQTT集群进行连接,MQTT集群用于协议转换。进一步的,一个发布订阅服务器以及与该发布订阅服务器对应的IOT设备集群、MQTT集群同属于一个金融机构,也就是说,在IOT设备联盟***中涉及多 个金融机构,每个金融机构内部包括IOT设备集群、MQTT集群和发布订阅服务器,三者为对应关系,其中,IOT设备集群中包括至少一个IOT设备,MQTT集群中包括至少一个代理服务器,该代理服务器可以为开源消息代理软件Mosquitto的服务器。两个金融机构之间的发布订阅服务器通过区块链***连接,发布订阅服务器可以向区块链***中写入IOT设备的发布事件,也可以从区块链***中读取事件发送至IOT设备。参照图2为例,金融机构1内部包括IOT设备集群1、MQTT集群1和发布订阅服务器1,金融机构2内部包括IOT设备集群2、MQTT集群2和发布订阅服务器2,发布订阅服务器1与发布订阅服务器2之间通过区块链***连接,并通过区块链***实现两金融机构之间IOT设备的信息交互。Figure 2 exemplarily shows a blockchain-based IOT device alliance system, including multiple publishing and subscribing servers, each publishing and subscribing server corresponds to its own IOT device cluster, and each publishing and subscribing server is used to manage its own corresponding In the IOT device cluster, the publishing and subscriber server and the IOT device cluster are connected through the MQTT cluster, which is used for protocol conversion. Further, a publish-subscribe server and the IOT device cluster and MQTT cluster corresponding to the publish-subscribe server belong to the same financial institution. That is to say, multiple financial institutions are involved in the IOT device alliance system, and each financial institution includes IOT. The device cluster, the MQTT cluster, and the publishing and subscribing server have a corresponding relationship. Among them, the IOT device cluster includes at least one IOT device, and the MQTT cluster includes at least one proxy server. The proxy server may be a server of the open source message broker software Mosquitto. The publish-subscribe server between the two financial institutions is connected through the blockchain system. The publish-subscribe server can write the publishing events of the IOT device to the blockchain system, or read the events from the blockchain system and send it to the IOT device. . Referring to Figure 2 as an example, financial institution 1 includes IOT device cluster 1, MQTT cluster 1, and publish-subscribe server 1, financial institution 2 includes IOT device cluster 2, MQTT cluster 2, and publish-subscribe server 2, publish-subscribe server 1 and publish The subscription servers 2 are connected through a blockchain system, and realize the information exchange of IOT equipment between the two financial institutions through the blockchain system.
发布订阅服务器可以通过证书和公私钥访问区块链***,以及通过账号和密码访问MQTT集群,从而保障各金融机构内部以及金融机构之间的信息安全性。The publishing and subscribing server can access the blockchain system through certificates and public and private keys, and access the MQTT cluster through account numbers and passwords, so as to ensure the security of information within and between financial institutions.
区块链***中存储有设备管理合约,该设备管理合约可以是在区块链***中预先建立的合约,该设备管理合约对应固定的设备管理主题,每个发布订阅服务器都会订阅该设备管理主题,也就是说,任何写入该设备管理主题的事件,都会被IOT设备联盟***中的任一个发布订阅服务器获取到。例如,设备管理主题为“com.aaaaaa.iot”,IOT设备联盟***中的任一个发布订阅服务器都订阅主题“com.aaaaaa.iot”,若某一发布订阅服务器写入该主题对应的事件“com.aaaaaa.iot 1”,则其他发布订阅服务器即可以订阅到该事件“com.aaaaaa.iot 1”。A device management contract is stored in the blockchain system. The device management contract can be a pre-established contract in the blockchain system. The device management contract corresponds to a fixed device management topic. Each publishing and subscribing server will subscribe to the device management topic. , That is to say, any event written into the device management topic will be obtained by any publishing and subscribing server in the IOT device alliance system. For example, if the device management subject is "com.aaaaaa.iot", any publishing and subscriber server in the IOT device alliance system subscribes to the subject "com.aaaaaa.iot". If a publishing and subscriber server writes the event corresponding to the topic " com.aaaaaa.iot 1", other publishing and subscribing servers can subscribe to the event "com.aaaaaa.iot 1".
本发明实施例提供的IOT设备联盟***通过采用区块链技术,实现将多个金融机构的发布订阅服务器连接,也就是说,每个金融机构的发布订阅服务器都与区块链***连接,任意两个金融机构的发布订阅服务器都可以通过区块链***进行通信。The IOT equipment alliance system provided by the embodiment of the present invention uses blockchain technology to connect the publishing and subscribing servers of multiple financial institutions, that is, the publishing and subscribing servers of each financial institution are connected to the blockchain system. Both the publishing and subscribing servers of the two financial institutions can communicate through the blockchain system.
基于区块链技术的IOT设备联盟***相比于图1示出的IOT设备联盟***,组网方式简单且易维护。举例来说,当前有四个金融机构中的IOT设备 进行组网,若采用图1的组网方式,IOT设备联盟***则变为图3示出的架构,为了方便描述,将IOT设备联盟***中的MQTT集群在图3中省略。图3中,每个金融机构的MQ在与外金融机构连接时,都要通过桥接器,若想实现四个金融机构的两两连接,则四个金融机构需要建立6条连接,且采用6个桥接器,例如,金融机构2的MQ2和金融机构3的MQ3之间需要桥接器23连接。而本发明实施例提供的IOT设备联盟***,可以参照图4所示,每个金融机构的发布订阅服务器均与区块链***连接,省去了各MQ之间的桥接。基于区块链技术的IOT设备联盟***的星型组网,相比于图1示出的网状组网,组网方式简单且易维护。Compared with the IOT device alliance system shown in Figure 1, the IOT device alliance system based on blockchain technology has a simple networking method and is easy to maintain. For example, there are currently four IOT devices in financial institutions for networking. If the networking method shown in Figure 1 is adopted, the IOT device alliance system will become the architecture shown in Figure 3. For the convenience of description, the IOT device alliance system The MQTT cluster in Figure 3 is omitted. In Figure 3, when the MQ of each financial institution is connected to a foreign financial institution, it must pass a bridge. If you want to realize the pairwise connection of four financial institutions, the four financial institutions need to establish 6 connections, and 6 For example, a bridge 23 is required between MQ2 of financial institution 2 and MQ3 of financial institution 3. For the IOT device alliance system provided by the embodiment of the present invention, as shown in FIG. 4, the publishing and subscribing server of each financial institution is connected to the blockchain system, eliminating the need for bridging between MQs. Compared with the mesh network shown in Figure 1, the star networking of the IOT device alliance system based on blockchain technology is simpler and easier to maintain.
此外,本发明实施例提供的基于区块链的IOT设备联盟***相比图1示出的IOT设备联盟***,更适用于快速发展的IOT组网,例如,图3中金融机构3新增IOT设备,则与MQ3相连接的桥接器均需要执行新增设备的绑定或者映射动作,具体的,桥接器34、桥接器13、桥接器23执行新增设备的绑定或者映射动作。但是采用本发明实施例提供的基于区块链的IOT设备联盟***时,则无需执行新增设备的绑定或者映射动作,只需要将新增设备的信息写入区块链***,其他金融机构的订阅服务器即可以完成订阅动作,具体的,图4中金融机构3新增设备,发布订阅服务器3将新增设备的信息写入区块链***,则发布订阅服务器1、发布订阅服务器2、发布订阅服务器4即可以订阅到该新增设备的信息,具体实现过程在下述实施例中解释。In addition, the blockchain-based IOT device alliance system provided by the embodiment of the present invention is more suitable for rapidly developing IOT networking than the IOT device alliance system shown in FIG. 1, for example, the financial institution 3 in FIG. 3 adds IOT For devices, the bridges connected to MQ3 need to perform binding or mapping actions for newly added devices. Specifically, bridge 34, bridge 13, and bridge 23 perform binding or mapping actions for newly added devices. However, when the blockchain-based IOT device alliance system provided by the embodiment of the present invention is used, there is no need to perform binding or mapping actions of newly-added devices, only the information of the newly-added devices needs to be written into the blockchain system, and other financial institutions The subscriber server can complete the subscription action. Specifically, in Figure 4, the financial institution 3 adds equipment, and the publish-subscribe server 3 writes the information of the newly-added device into the blockchain system, then publish-subscribe server 1, publish-subscribe server 2, The publishing and subscribing server 4 can subscribe to the information of the newly added device. The specific implementation process is explained in the following embodiments.
基于上述描述,图5示例性的示出了本发明实施例提供的一种基于区块链的IOT设备变更的方法的流程,该流程可以由基于区块链的IOT设备变更的装置执行,该装置可以位于发布订阅服务器中,也可以是该发布订阅服务器。Based on the above description, FIG. 5 exemplarily shows the flow of a block chain-based IOT device change method provided by an embodiment of the present invention. The flow can be executed by a block chain-based IOT device change device. The device can be located in the publishing and subscribing server or the publishing and subscribing server.
为了方便描述,下述实施例中将发布订阅服务器简称为服务器,该流程涉及到两个金融机构(第一金融机构和第二金融机构)的发布订阅服务器,分别定义为第一服务器和第二服务器,第一服务器为IOT设备联盟***中多个服务器中的任一个,第二服务器为除第一服务器以外的任一个服务器。其 中,第一金融机构理解为存在变更IOT设备的金融机构,IOT设备的变更可以包括新增、删除、参数修改、连接关系变化等,以第一金融机构新增IOT设备进行说明,第一服务器用于将该新增IOT设备添加至对应的IOT设备集群中。第一服务器与第二服务器通过区块链***连接,该流程涉及执行主体为第一服务器、第二服务器和区块链***。For the convenience of description, in the following embodiments, the publish-subscribe server is referred to as the server for short. This process involves the publish-subscribe servers of two financial institutions (the first financial institution and the second financial institution), which are defined as the first server and the second Server, the first server is any one of multiple servers in the IOT device alliance system, and the second server is any server other than the first server. Among them, the first financial institution understands that there is a financial institution that has changed the IOT device. The change of the IOT device can include addition, deletion, parameter modification, connection relationship change, etc., and the first financial institution’s newly added IOT device is explained. It is used to add the new IOT device to the corresponding IOT device cluster. The first server and the second server are connected through a blockchain system, and the process involves the execution of the first server, the second server and the blockchain system.
如图5所示,该流程具体包括:As shown in Figure 5, the process specifically includes:
步骤501,第一服务器生成包含第一IOT设备信息的第一交易请求。Step 501: The first server generates a first transaction request containing the first IOT device information.
第一IOT设备信息理解为第一服务器下变更的IOT设备的设备信息。具体的,当第一服务器下存在新增的IOT设备时,第一服务器可以接收包含有第一IOT设备信息的添加指令,并根据添加指令中的第一IOT设备信息生成第一交易请求,该第一交易请求中包括第一IOT设备信息,第一IOT设备信息可以包括IOT设备的设备标识、设备类别、设备参数、所属金融机构等。添加指令可以是运维人员下发的也可以是待添加的IOT设备发送的。The first IOT device information is understood as the device information of the IOT device changed under the first server. Specifically, when there is a newly-added IOT device under the first server, the first server may receive an adding instruction containing the first IOT device information, and generate a first transaction request according to the first IOT device information in the adding instruction. The first transaction request includes the first IOT device information, and the first IOT device information may include the device identifier of the IOT device, the device category, the device parameters, and the financial institution to which it belongs. The adding instruction can be issued by the operation and maintenance personnel or sent by the IOT device to be added.
本发明实施例中,第一服务器在生成第一交易请求之前,还可以根据第一IOT设备信息,生成第一IOT设备信息对应的第一IOT设备主题,并根据第一IOT设备主题,生成第一部署请求,该第一部署请求用于指示区块链***部署第一IOT设备主题的主题合约。第一服务器将第一部署请求发送至区块链***,区块链***根据第一部署请求部署第一IOT设备主题的主题合约,在部署完成后将第一部署结果发送至第一服务器,其中,该第一部署结果包括第一IOT设备主题的主题合约的合约地址。第一服务器接收区块链***返回的第一部署结果,则第一服务器中包括有第一IOT设备主题和第一IOT设备主题的主题合约的合约地址。In the embodiment of the present invention, before generating the first transaction request, the first server may also generate the first IOT device theme corresponding to the first IOT device information according to the first IOT device information, and generate the first IOT device theme according to the first IOT device theme. A deployment request, the first deployment request is used to instruct the blockchain system to deploy the theme contract of the first IOT device theme. The first server sends the first deployment request to the blockchain system, and the blockchain system deploys the theme contract of the first IOT device theme according to the first deployment request, and sends the first deployment result to the first server after the deployment is completed, where , The first deployment result includes the contract address of the theme contract of the first IOT device theme. The first server receives the first deployment result returned by the blockchain system, and the first server includes the first IOT device theme and the contract address of the theme contract of the first IOT device theme.
上述实施例中,第一服务器在生成第一部署请求之前,还可以生成第二部署请求并发送至区块链***,该第二部署请求用于指示区块链***部署***合约,区块链***在接收到第二部署请求后,部署***合约,并返回第二部署结果至第一服务器。其中,***合约在初始状态下可以为空。进一步的,当第一服务器在接收到第一IOT设备主题的主题合约的合约地址后,可以将 第一IOT设备主题和第一IOT设备主题的主题合约的合约地址的对应关系更新至***合约中。也就是说,***合约中存储有二者的对应关系,且在区块链***中新增第一IOT设备主题的主题合约后,进行更新。In the above embodiment, before generating the first deployment request, the first server may also generate a second deployment request and send it to the blockchain system. The second deployment request is used to instruct the blockchain system to deploy the system contract. After the system receives the second deployment request, it deploys the system contract and returns the second deployment result to the first server. Among them, the system contract can be empty in the initial state. Further, after receiving the contract address of the theme contract of the first IOT device theme, the first server can update the correspondence between the first IOT device theme and the contract address of the theme contract of the first IOT device theme to the system contract . That is to say, the corresponding relationship between the two is stored in the system contract, and after the theme contract of the first IOT device theme is added to the blockchain system, it is updated.
步骤502,第一服务器将第一交易请求发送至区块链***。Step 502: The first server sends the first transaction request to the blockchain system.
步骤503,区块链***调用设备管理合约生成并存储第一交易日志。Step 503: The blockchain system calls the device management contract to generate and store the first transaction log.
本发明实施例中,第一交易请求中还可以包括与区块链***中的设备管理合约相对应的设备管理主题,该第一交易请求用于指示区块链***调用设备管理合约生成并存储第一交易日志。区块链***调用设备管理合约后,生成第一交易日志存储至区块链***中,第一交易日志记录有设备管理主题及第一IOT设备信息。由于IOT设备联盟***中的任一服务器都订阅了设备管理主题,则可以确定出该区块链***生成的第一交易日志可以被其它服务器(IOT设备联盟***中除第一服务器以外的服务器)获取,也就是第一交易日志可以被第二服务器获取,相当于区块链***将第一交易日志发送至第二服务器。In the embodiment of the present invention, the first transaction request may also include a device management theme corresponding to the device management contract in the blockchain system, and the first transaction request is used to instruct the blockchain system to call the device management contract to generate and store The first transaction log. After the blockchain system calls the device management contract, it generates the first transaction log and stores it in the blockchain system. The first transaction log records the device management topic and the first IOT device information. Since any server in the IOT device alliance system has subscribed to the device management topic, it can be determined that the first transaction log generated by the blockchain system can be used by other servers (servers other than the first server in the IOT device alliance system) Obtaining, that is, the first transaction log can be obtained by the second server, which is equivalent to the blockchain system sending the first transaction log to the second server.
步骤504,区块链***将第一交易日志发送至第二服务器。Step 504: The blockchain system sends the first transaction log to the second server.
步骤505,第二服务器根据第一交易日志,确定是否订阅第一IOT设备信息指示的第一IOT设备主题。Step 505: The second server determines whether to subscribe to the first IOT device topic indicated by the first IOT device information according to the first transaction log.
第二服务器可以根据第一IOT设备的信息,确定第一IOT设备信息指示的第一IOT设备主题,并判断是否订阅该第一IOT设备主题,若是,则可以根据第一IOT设备主题向区块链***发送监听请求,也就是说,一旦第一IOT设备发布对应主题的事件至区块链***中,则可以被第二服务器监听到,第二服务器可以从区块链***中获取该事件。当然,若第二服务器确定不订阅第一IOT设备主题,则可以忽略该第一交易日志,且不会获取到第一IOT设备发布的事件。The second server may determine the first IOT device topic indicated by the first IOT device information according to the information of the first IOT device, and determine whether to subscribe to the first IOT device topic, and if so, it may send to the block according to the first IOT device topic The chain system sends a monitoring request, that is, once the first IOT device publishes an event corresponding to the topic to the blockchain system, it can be monitored by the second server, and the second server can obtain the event from the blockchain system. Of course, if the second server determines not to subscribe to the topic of the first IOT device, the first transaction log can be ignored, and the events published by the first IOT device will not be obtained.
本发明实施例中,第一服务器在生成第一交易请求之前,还可以根据第一IOT设备信息,生成第一IOT设备主题,并在生成第一交易请求时,将第一IOT设备主题记录在第一交易请求中,区块链***根据第一交易请求生成 记录有第一IOT设备主题的第一交易日志,也就是说,第一交易日志中还可以记录有第一IOT设备主题,第二服务器可以直接根据第一IOT设备主题,判断是否订阅该第一IOT设备主题,从而提高第二服务器订阅第一IOT设备主题的效率。In the embodiment of the present invention, before generating the first transaction request, the first server may also generate the first IOT device subject based on the first IOT device information, and when generating the first transaction request, record the first IOT device subject in In the first transaction request, the blockchain system generates a first transaction log recording the subject of the first IOT device according to the first transaction request, that is, the first transaction log may also record the subject of the first IOT device, and the second The server may directly determine whether to subscribe to the first IOT device topic based on the first IOT device topic, thereby improving the efficiency of the second server's subscribing to the first IOT device topic.
进一步的,结合图6,对第二服务器判断是否订阅第一IOT设备主题做如下解释,图6为本发明实施例提供的一种具体场景下的IOT设备联盟***的示意图,金融机构1的IOT设备包括交易统计设备,金融机构2的IOT设备包括用于进行交易的支付设备,如刷卡支付设备、扫码支付设备,本IOT设备联盟***中,交易统计设备订阅刷卡支付设备的设备主题和扫码支付设备的设备主题。此时,若金融机构2新增IOT设备为刷脸支付设备,则第一服务器(发布订阅服务器2)接收包含有刷脸支付设备的设备信息的添加指令,生成第一交易请求并发送至区块链***,区块链***调用设备管理合约生成记录有刷脸支付设备的设备信息的第一交易日志,第二服务器(发布订阅服务器1)获取到该第一交易日志后,判断金融机构1的交易统计设备是否需要订阅该刷脸支付设备的设备主题,若是,则向区块链***发送监听请求,从而监听刷脸支付设备发布的事件。Further, in conjunction with FIG. 6, the second server determines whether to subscribe to the first IOT device theme as follows. FIG. 6 is a schematic diagram of the IOT device alliance system in a specific scenario provided by an embodiment of the present invention. The IOT of the financial institution 1 The equipment includes transaction statistics equipment. The IOT equipment of financial institution 2 includes payment equipment used for transactions, such as card payment equipment and code scanning payment equipment. In this IOT equipment alliance system, the transaction statistics equipment subscribes to the device theme and scan of the card payment equipment. The device theme of the code payment device. At this time, if the newly-added IOT device of financial institution 2 is a facial payment device, the first server (publishing and subscribing server 2) receives the addition instruction containing the device information of the facial payment device, generates a first transaction request and sends it to the district Block chain system, the block chain system calls the device management contract to generate the first transaction log recording the device information of the facial payment device. After the second server (publishing and subscribing server 1) obtains the first transaction log, it judges the financial institution 1 Does the transaction statistics device need to subscribe to the device topic of the facial payment device? If so, send a monitoring request to the blockchain system to monitor the events published by the facial payment device.
本发明实施例中,第一交易日志中还可以包括IOT设备的类别、IOT设备所属金融机构、IOT设备的性能参数等,以用于第二服务器进行判断。第二服务器判断是否订阅第一IOT设备主题,可以通过第二服务器内部的逻辑进行判断;也可以将第一交易日志发送至第二服务器下的IOT设备,第二服务器下的IOT设备根据自己的逻辑进行判断是否需要获取第一IOT设备发布的事件,并将判断结果反馈给第二服务器;还可以将第一交易日志中的相关信息展示给运维人员,运维人员人工进行判断后反馈给第二服务器。In the embodiment of the present invention, the first transaction log may also include the category of the IOT device, the financial institution to which the IOT device belongs, the performance parameters of the IOT device, etc., for the second server to make judgments. The second server determines whether to subscribe to the topic of the first IOT device, which can be determined by the logic inside the second server; it can also send the first transaction log to the IOT device under the second server, and the IOT device under the second server is based on its own The logic judges whether it is necessary to obtain the events published by the first IOT device, and feeds back the judgment result to the second server; it can also display the relevant information in the first transaction log to the operation and maintenance personnel, and the operation and maintenance personnel make a manual judgment and feed it back to The second server.
第一IOT设备发布对应主题的事件,此处发布的事件可以理解为第一IOT设备发送的交易参数、设备参数、控制指令等。如刷脸支付设备发布设备主题的事件,可以发布交易金额、交易卡片等。The first IOT device publishes events corresponding to the theme. The events published here can be understood as transaction parameters, device parameters, control instructions, etc. sent by the first IOT device. For example, the face-swiping payment device publishes device-themed events, and can publish transaction amounts, transaction cards, etc.
上述实施例具体阐述了第一服务器生成第一交易请求,并将第一交易请 求发送至区块链***,区块链***调用设备管理合约,生成并存储记录有第一IOT设备信息的第一交易日志,以供第二服务器进行判断是否订阅第一IOT设备主题。此外,第一服务器也可以获取到区块链***中的第二交易日志,并根据第二交易日志进行判断是否订阅第二IOT设备主题,具体如下述实施例。The above embodiment specifically explained that the first server generates the first transaction request and sends the first transaction request to the blockchain system. The blockchain system calls the device management contract to generate and store the first IOT device information recorded. Transaction log for the second server to determine whether to subscribe to the topic of the first IOT device. In addition, the first server may also obtain the second transaction log in the blockchain system, and determine whether to subscribe to the second IOT device topic according to the second transaction log, as in the following embodiment.
第一服务器订阅设备管理主题,当区块链***中新增设备管理主题对应的交易日志时,第一服务器获取该交易日志。具体的,第二服务器下新增IOT设备后,第二服务器根据新增IOT设备的设备信息生成第二交易请求,该第二交易请求中包括第二IOT设备信息,第二IOT设备信息即第二服务器下新增的IOT设备的设备信息。第二服务器将第二交易请求发送至区块链***,区块链***调用设备管理合约生成第二交易日志并存储至区块链***中,其中,该第二交易日志中记录有第二IOT设备信息,第一服务器在确定出区块链***中存在新增的第二交易日志后,根据第二交易日志判断是否订阅第二IOT设备信息所指示的第二IOT设备主题,若是,则根据第二IOT设备主题向区块链***发送监听请求,该监听请求用于获取第二IOT设备发布的新增事件。The first server subscribes to the device management topic, and when a transaction log corresponding to the device management topic is added to the blockchain system, the first server obtains the transaction log. Specifically, after an IOT device is added to the second server, the second server generates a second transaction request according to the device information of the newly added IOT device. The second transaction request includes the second IOT device information, and the second IOT device information is the first 2. Device information of the IOT device newly added under the server. The second server sends the second transaction request to the blockchain system, and the blockchain system calls the device management contract to generate a second transaction log and store it in the blockchain system, where the second transaction log records the second IOT Device information. After determining that there is a newly added second transaction log in the blockchain system, the first server determines whether to subscribe to the second IOT device topic indicated by the second IOT device information according to the second transaction log. The second IOT device topic sends a monitoring request to the blockchain system, and the monitoring request is used to obtain new events published by the second IOT device.
进一步的,当第一服务器确定订阅第二IOT设备主题后,第一服务器对应的MQTT集群可以根据第二IOT设备主题进行相应的配置,以实现第一服务器获取第二IOT设备发布的新增事件后,第一服务器可以将新增事件通过MQTT集群发送至第一服务器下的IOT设备。以及第一服务器下的IOT设备也可以基于第二IOT设备主题进行相应配置,以实现在接收到第二IOT设备发布的新增事件之后,执行相关的操作。Further, after the first server determines to subscribe to the second IOT device topic, the MQTT cluster corresponding to the first server can perform corresponding configuration according to the second IOT device topic, so that the first server can obtain the newly added events published by the second IOT device Later, the first server can send the newly added event to the IOT device under the first server through the MQTT cluster. And the IOT device under the first server can also be configured accordingly based on the theme of the second IOT device, so as to implement related operations after receiving a new event published by the second IOT device.
本发明实施例中,第一服务器获取第二交易日志判断是否订阅第二IOT设备主题的具体实施方式和第二服务器获取第一交易日志判断是否订阅第一IOT设备主题的具体实施方式相似,在此不再赘述。In the embodiment of the present invention, the specific implementation manner in which the first server obtains the second transaction log to determine whether to subscribe to the second IOT device topic is similar to the specific implementation manner in which the second server obtains the first transaction log to determine whether to subscribe to the first IOT device topic. This will not be repeated here.
第二服务器可以为至少一个,且在不同实施例下第二服务器可以为不同的服务器。假设该IOT设备联盟***中包括A、B、C、D四个发布订阅服务 器,在一个实施例中,A发布订阅服务器对应的IOT设备集群中存在新增设备,则A发布订阅服务器即理解为第一服务器,B、C、D三个发布订阅服务器均理解为第二服务器,进一步的,A发布订阅服务器生成第一交易请求并发送至区块链***中,区块链***生成第一交易日志,该第一交易日志可以被B、C、D三个发布订阅服务器订阅,若此时,B、D两个发布订阅服务器确定订阅该新增设备的主题,则可以确定出B、D两个发布订阅服务器分别向区块链***发送监听请求。在另一个实施例中,A发布订阅服务器为第一服务器,A发布订阅服务器订阅到第二交易日志,该第二交易日志是B发布订阅服务器向区块链***中发送第二交易请求后区块链***生成的,则此时B发布订阅服务器即为本实施例中的第二服务器。The second server may be at least one, and in different embodiments, the second server may be a different server. Assuming that the IOT device alliance system includes four publishing and subscribing servers A, B, C, and D. In one embodiment, there are new devices in the IOT device cluster corresponding to the publishing and subscribing server A, and the publishing and subscribing server A is understood as The first server, the three publishing and subscribing servers of B, C, and D are all understood as the second server. Further, the publishing and subscribing server A generates the first transaction request and sends it to the blockchain system, and the blockchain system generates the first transaction Log, the first transaction log can be subscribed by the three publish-subscribe servers of B, C, and D. If at this time, the two publish-subscribe servers of B and D determine to subscribe to the topic of the newly added device, then the two Each publishing and subscribing server sends monitoring requests to the blockchain system. In another embodiment, A publish-subscribe server is the first server, and A publish-subscribe server subscribes to the second transaction log. The second transaction log is the area after B publish-subscribe server sends the second transaction request to the blockchain system. Generated by the block chain system, the B publishing and subscribing server at this time is the second server in this embodiment.
此外,第一服务器下的IOT设备还可以被删除,当第一服务器接收到删除指令后,根据删除指令中的待删除的IOT设备信息,生成第一交易请求,其中该第一交易请求中包括第一IOT设备信息,该第一IOT设备信息即待删除的IOT设备信息。具体的,第一服务器生成第一交易请求,并将第一交易请求发送至区块链***,区块链***调用设备管理合约生成并存储与设备管理主题对应的第一交易日志,第一交易日志中包括第一IOT设备信息。第二服务器获取第一交易日志,并根据第一交易日志,从区块链***中取消订阅第一IOT设备主题。当然,IOT设备的变更不仅可以包括新增设备、删除设备,还可以包括更新设备,如设备的参数修改、连接关系变化等,相当于,第一服务器接收变更指令,该变更指令用于指示IOT设备的新增、删除或参数变化等。In addition, the IOT device under the first server can also be deleted. When the first server receives the delete instruction, it generates a first transaction request according to the IOT device information to be deleted in the delete instruction, where the first transaction request includes The first IOT device information, the first IOT device information is the IOT device information to be deleted. Specifically, the first server generates the first transaction request, and sends the first transaction request to the blockchain system, and the blockchain system calls the device management contract to generate and store the first transaction log corresponding to the device management theme, and the first transaction The log includes the first IOT device information. The second server obtains the first transaction log, and according to the first transaction log, unsubscribes the first IOT device topic from the blockchain system. Of course, the change of IOT equipment can include not only adding equipment, deleting equipment, but also updating equipment, such as device parameter modification, connection relationship change, etc., which is equivalent to that the first server receives a change instruction, which is used to instruct IOT New addition, deletion of equipment or parameter changes, etc.
此外,第一服务器向区块链***中发送交易请求后,第二服务器可以订阅或取消订阅第一IOT设备主题,第一服务器同样可以订阅或取消订阅第一IOT设备主题。举例来说,如图6中,金融机构2中存在新增设备为刷脸支付设备,第一服务器向区块链***中发送第一交易请求后,区块链***生成第一交易日志,第二服务器订阅该刷脸支付设备的设备主题,并在获取到刷脸支付设备的发布事件后发送至交易统计设备,此外,第一服务器也可以根 据第一交易日志判断是否需要订阅该刷脸支付设备的设备主题,若第一服务器确定出扫码支付设备需要获取刷脸支付设备的发布事件,则第一服务器也可以订阅刷脸支付设备的设备主题,并在获取到刷脸支付设备的发布事件后发送至扫码支付设备。也就是说,第一服务器也可以根据第一交易日志中的第一IOT设备信息所指示的第一IOT设备主题确定是否订阅或取消订阅第一IOT设备主题,此外,第一服务器还可以根据变更指令中的第一IOT设备信息,直接确定出是否需要订阅或取消订阅第一IOT设备主题。In addition, after the first server sends a transaction request to the blockchain system, the second server can subscribe or unsubscribe the first IOT device topic, and the first server can also subscribe or unsubscribe the first IOT device topic. For example, as shown in Figure 6, the newly-added device in financial institution 2 is a face-swiping payment device. After the first server sends the first transaction request to the blockchain system, the blockchain system generates the first transaction log. The second server subscribes to the device topic of the face-swiping payment device and sends it to the transaction statistics device after obtaining the publishing event of the face-swiping payment device. In addition, the first server can also determine whether to subscribe to the face-swiping payment according to the first transaction log The device theme of the device. If the first server determines that the code scanning payment device needs to obtain the publishing event of the facial payment device, the first server can also subscribe to the device theme of the facial payment device and obtain the publication of the facial payment device After the event, it is sent to the scan code payment device. In other words, the first server may also determine whether to subscribe or unsubscribe to the first IOT device topic according to the first IOT device topic indicated by the first IOT device information in the first transaction log. In addition, the first server may also change according to the change The first IOT device information in the instruction directly determines whether it is necessary to subscribe or unsubscribe the first IOT device topic.
上述技术方案中,提供一种适用于IOT设备联盟***的IOT设备变更的方法,具体的,在***中变更设备,可以是在***中新增设备、删除设备、更新设备等,可以将变更设备定义为第一IOT设备,第一服务器用于管理该第一IOT设备。第一服务器生成包含第一IOT设备信息的第一交易请求,发送至区块链***,区块链***接收第一交易请求,调用设备管理合约后生成记录有第一IOT设备信息的第一交易日志,将该第一交易日志存储在区块链***中,第二服务器可以通过订阅设备管理主题,获取第一交易日志,并根据第一交易日志确定是否订阅第一IOT设备主题。若第二服务器订阅第一IOT设备主题,则可以实现第二服务器获取第一IOT设备发布的事件,该IOT设备联盟***中,第二服务器获取到第一IOT设备发布的事件后,可以将事件发送至对应的IOT设备,从而实现第二服务器对应的IOT设备接收第一IOT设备发布的事件。在***中变更设备时,第一服务器只需要在区块链***中写入变更设备信息的交易,则第二服务器可以通过订阅设备管理主题,获取变更设备的信息,并针对变更设备信息执行的相应动作。整个***无需桥接器进行变更设备的绑定或者映射动作,且避免由于MQ和桥接服务分属不同的金融机构所存在的不一致问题,降低运维成本,适用于快速发展的IOT组网***。In the above technical solution, a method for changing IOT equipment of the IOT Equipment Alliance system is provided. Specifically, changing equipment in the system can be adding equipment, deleting equipment, updating equipment, etc., and changing equipment Defined as the first IOT device, and the first server is used to manage the first IOT device. The first server generates a first transaction request containing the information of the first IOT device and sends it to the blockchain system. The blockchain system receives the first transaction request and generates the first transaction recording the first IOT device information after calling the device management contract. Log, storing the first transaction log in the blockchain system, the second server can obtain the first transaction log by subscribing to the device management topic, and determine whether to subscribe to the first IOT device topic according to the first transaction log. If the second server subscribes to the topic of the first IOT device, the second server can obtain the event published by the first IOT device. In the IOT device alliance system, after the second server obtains the event published by the first IOT device, it can send the event Send to the corresponding IOT device, so that the IOT device corresponding to the second server receives the event published by the first IOT device. When the device is changed in the system, the first server only needs to write the transaction to change the device information in the blockchain system, and the second server can subscribe to the device management topic to obtain the information of the changed device, and execute the change of the device information The corresponding action. The entire system does not require a bridge to change the binding or mapping of the device, and avoids the inconsistency caused by the MQ and bridge services belonging to different financial institutions, reduces operation and maintenance costs, and is suitable for the rapidly developing IOT networking system.
基于同一发明构思,图7示例性的示出了本发明实施例提供的一种基于区块链的IOT设备变更的装置的结构,该装置可以执行基于区块链的IOT设备变更的方法的流程。Based on the same inventive concept, FIG. 7 exemplarily shows the structure of a block chain-based IOT device modification device provided by an embodiment of the present invention, which can execute the process of the block chain-based IOT device modification method .
该装置包括:The device includes:
处理单元701,用于生成包含第一IOT设备信息的第一交易请求;所述第一IOT设备信息为第一服务器下变更的IOT设备的设备信息;所述第一服务器为所述多个服务器中的任一个;The processing unit 701 is configured to generate a first transaction request containing first IOT device information; the first IOT device information is the device information of the IOT device changed under the first server; the first server is the multiple servers Any of
收发单元702,用于将所述第一交易请求发送至所述区块链***;所述第一交易请求用于指示所述区块链***调用设备管理合约生成并存储第一交易日志;所述第一交易日志记录有设备管理主题及所述第一IOT设备信息;所述IOT设备联盟***中的任一服务器均订阅有所述设备管理主题;所述第一交易日志用于第二服务器确定是否订阅所述第一IOT设备信息指示的第一IOT设备主题;所述第二服务器为所述IOT设备联盟***中除所述第一服务器以外的任一服务器。The transceiver unit 702 is configured to send the first transaction request to the blockchain system; the first transaction request is used to instruct the blockchain system to call the device management contract to generate and store a first transaction log; The first transaction log records the device management topic and the first IOT device information; any server in the IOT device alliance system subscribes to the device management topic; the first transaction log is used by the second server Determine whether to subscribe to the first IOT device topic indicated by the first IOT device information; the second server is any server other than the first server in the IOT device alliance system.
可选的,所述处理单元701还用于:Optionally, the processing unit 701 is further configured to:
从所述区块链***中获取第二交易日志;所述第二交易日志是所述区块链***基于所述第二服务器发送的第二交易请求调用所述设备管理合约生成的;所述第二交易日志中记录有第二IOT设备信息和所述设备管理主题,所述第二IOT设备信息是所述第二服务器下新增的IOT设备的设备信息;Obtain a second transaction log from the blockchain system; the second transaction log is generated by the blockchain system based on the second transaction request sent by the second server calling the device management contract; The second transaction log records second IOT device information and the device management topic, and the second IOT device information is the device information of the newly added IOT device under the second server;
根据所述第二交易日志中的第二IOT设备信息,向所述区块链***订阅所述第二IOT设备信息所指示的第二IOT设备主题。According to the second IOT device information in the second transaction log, subscribe to the blockchain system the second IOT device topic indicated by the second IOT device information.
可选的,所述处理单元701还用于:Optionally, the processing unit 701 is further configured to:
在所述生成包含第一IOT设备信息的第一交易请求之前,根据所述第一IOT设备信息,生成所述第一IOT设备主题;Before the generating the first transaction request containing the first IOT device information, generate the first IOT device subject according to the first IOT device information;
根据所述第一IOT设备主题,生成并控制所述收发单元702向所述区块链***发送第一部署请求;所述第一部署请求用于指示所述区块链***部署所述第一IOT设备主题的主题合约;According to the theme of the first IOT device, generate and control the transceiver unit 702 to send a first deployment request to the blockchain system; the first deployment request is used to instruct the blockchain system to deploy the first deployment request The theme contract of the IOT equipment theme;
控制所述收发单元702接收所述区块链***返回的第一部署结果,所述第一部署结果是所述区块链***完成所述第一IOT设备主题的主题合约的部署后发送的;所述第一部署结果包括所述第一IOT设备主题的主题合约的合 约地址。Controlling the transceiver unit 702 to receive the first deployment result returned by the blockchain system, the first deployment result being sent by the blockchain system after the deployment of the theme contract of the first IOT device theme; The first deployment result includes the contract address of the theme contract of the first IOT device theme.
可选的,所述处理单元701还用于:Optionally, the processing unit 701 is further configured to:
在所述生成第一部署请求之前,控制所述收发单元702向所述区块链***发送第二部署请求;所述第二部署请求用于指示所述区块链***部署***合约;Before generating the first deployment request, control the transceiver unit 702 to send a second deployment request to the blockchain system; the second deployment request is used to instruct the blockchain system to deploy a system contract;
控制所述收发单元702接收所述区块链***返回的第二部署结果;所述第二部署结果是所述区块链***完成所述***合约的部署后发送的;Control the transceiver unit 702 to receive the second deployment result returned by the blockchain system; the second deployment result is sent after the blockchain system completes the deployment of the system contract;
所述处理单元701还用于:The processing unit 701 is further configured to:
在控制所述收发单元702接收所述区块链***返回的第一部署结果之后,将所述第一IOT设备主题和所述第一IOT设备主题的主题合约的合约地址的对应关系更新至所述***合约。After controlling the transceiver unit 702 to receive the first deployment result returned by the blockchain system, the correspondence between the first IOT device subject and the contract address of the subject contract of the first IOT device subject is updated to all The system contract.
基于同一发明构思,本发明实施例还提供了一种计算设备,如图8所示,包括:Based on the same inventive concept, an embodiment of the present invention also provides a computing device, as shown in FIG. 8, including:
存储器801,用于存储程序指令;The memory 801 is used to store program instructions;
处理器802,用于调用所述存储器中存储的程序指令,按照获得的程序执行上述基于区块链的IOT设备变更的方法。The processor 802 is configured to call the program instructions stored in the memory, and execute the above-mentioned blockchain-based IOT device modification method according to the obtained program.
基于同一发明构思,本发明实施例还提供了一种计算机可读非易失性存储介质,包括计算机可读指令,当计算机读取并执行所述计算机可读指令时,使得计算机执行上述基于区块链的IOT设备变更的方法。Based on the same inventive concept, embodiments of the present invention also provide a computer-readable non-volatile storage medium, including computer-readable instructions. When the computer reads and executes the computer-readable instructions, the computer executes the above-mentioned region-based The method of changing the IOT device of the block chain.
基于同一发明构思,本发明实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机可读非易失性存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述基于区块链的IOT设备变更的方法。Based on the same inventive concept, the embodiments of the present invention also provide a computer program product. The computer program product includes a computer program stored on a computer-readable non-volatile storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the method for changing the IOT device based on the blockchain.
本发明是参照根据本发明实施例的方法、设备(***)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processors of general-purpose computers, special-purpose computers, embedded processors, or other programmable data processing equipment to generate a machine, so that instructions executed by the processor of the computer or other programmable data processing equipment are generated for use It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment. The instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。Although the preferred embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications to these embodiments once they learn the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. In this way, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these modifications and variations.

Claims (11)

  1. 一种基于区块链的物联网IOT设备变更方法,其特征在于,适用于包括多个服务器的IOT设备联盟***;每个服务器用于管理各自的IOT设备;所述多个服务器通过区块链***进行IOT设备的信息交互;A blockchain-based IOT device change method for the Internet of Things, which is characterized in that it is applicable to an IOT device alliance system including multiple servers; each server is used to manage its own IOT device; the multiple servers pass through the blockchain The system conducts information exchange of IOT equipment;
    所述方法包括:The method includes:
    第一服务器生成包含第一IOT设备信息的第一交易请求;所述第一IOT设备信息为所述第一服务器下变更的IOT设备的设备信息;所述第一服务器为所述多个服务器中的任一个;The first server generates a first transaction request containing the first IOT device information; the first IOT device information is the device information of the IOT device changed under the first server; the first server is among the multiple servers Any of
    所述第一服务器将所述第一交易请求发送至所述区块链***;所述第一交易请求用于指示所述区块链***调用设备管理合约生成并存储第一交易日志;所述第一交易日志记录有设备管理主题及所述第一IOT设备信息;所述IOT设备联盟***中的任一服务器均订阅有所述设备管理主题;所述第一交易日志用于第二服务器确定是否订阅所述第一IOT设备信息指示的第一IOT设备主题;所述第二服务器为所述IOT设备联盟***中除所述第一服务器以外的任一服务器。The first server sends the first transaction request to the blockchain system; the first transaction request is used to instruct the blockchain system to call the device management contract to generate and store a first transaction log; The first transaction log records the device management topic and the first IOT device information; any server in the IOT device alliance system subscribes to the device management topic; the first transaction log is used by the second server to determine Whether to subscribe to the first IOT device topic indicated by the first IOT device information; the second server is any server other than the first server in the IOT device alliance system.
  2. 如权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, wherein the method further comprises:
    所述第一服务器从所述区块链***中获取第二交易日志;所述第二交易日志是所述区块链***基于所述第二服务器发送的第二交易请求调用所述设备管理合约生成的;所述第二交易日志中记录有第二IOT设备信息和所述设备管理主题,所述第二IOT设备信息是所述第二服务器下新增的IOT设备的设备信息;The first server obtains a second transaction log from the blockchain system; the second transaction log is the blockchain system calling the device management contract based on the second transaction request sent by the second server Generated; the second transaction log records the second IOT device information and the device management topic, the second IOT device information is the device information of the new IOT device under the second server;
    所述第一服务器根据所述第二交易日志中的第二IOT设备信息,向所述区块链***订阅所述第二IOT设备信息所指示的第二IOT设备主题。The first server subscribes the second IOT device topic indicated by the second IOT device information to the blockchain system according to the second IOT device information in the second transaction log.
  3. 如权利要求1所述的方法,其特征在于,所述第一服务器生成包含第一IOT设备信息的第一交易请求之前,还包括:The method according to claim 1, wherein before the first server generates the first transaction request containing the first IOT device information, the method further comprises:
    所述第一服务器根据所述第一IOT设备信息,生成所述第一IOT设备主 题;The first server generates the first IOT device subject according to the first IOT device information;
    所述第一服务器根据所述第一IOT设备主题,生成并向所述区块链***发送第一部署请求;所述第一部署请求用于指示所述区块链***部署所述第一IOT设备主题的主题合约;The first server generates and sends a first deployment request to the blockchain system according to the theme of the first IOT device; the first deployment request is used to instruct the blockchain system to deploy the first IOT Theme contract of equipment theme;
    所述第一服务器接收所述区块链***返回的第一部署结果,所述第一部署结果是所述区块链***完成所述第一IOT设备主题的主题合约的部署后发送的;所述第一部署结果包括所述第一IOT设备主题的主题合约的合约地址。The first server receives the first deployment result returned by the blockchain system, and the first deployment result is sent by the blockchain system after the deployment of the theme contract of the first IOT device theme is completed; The first deployment result includes the contract address of the theme contract of the first IOT device theme.
  4. 如权利要求3所述的方法,其特征在于,在所述第一服务器生成第一部署请求之前,还包括:The method of claim 3, wherein before the first server generates the first deployment request, the method further comprises:
    所述第一服务器向所述区块链***发送第二部署请求;所述第二部署请求用于指示所述区块链***部署***合约;The first server sends a second deployment request to the blockchain system; the second deployment request is used to instruct the blockchain system to deploy a system contract;
    所述第一服务器接收所述区块链***返回的第二部署结果;所述第二部署结果是所述区块链***完成所述***合约的部署后发送的;The first server receives the second deployment result returned by the blockchain system; the second deployment result is sent after the blockchain system completes the deployment of the system contract;
    在所述第一服务器接收所述区块链***返回的第一部署结果之后,还包括:After the first server receives the first deployment result returned by the blockchain system, the method further includes:
    所述第一服务器将所述第一IOT设备主题和所述第一IOT设备主题的主题合约的合约地址的对应关系更新至所述***合约。The first server updates the correspondence between the first IOT device subject and the contract address of the subject contract of the first IOT device subject to the system contract.
  5. 一种基于区块链的IOT设备变更的装置,其特征在于,包括:A block chain-based device for changing IOT equipment is characterized in that it includes:
    处理单元,用于生成包含第一IOT设备信息的第一交易请求;所述第一IOT设备信息为第一服务器下变更的IOT设备的设备信息;所述第一服务器为所述多个服务器中的任一个;The processing unit is configured to generate a first transaction request including first IOT device information; the first IOT device information is the device information of the IOT device changed under the first server; the first server is among the multiple servers Any of
    收发单元,用于将所述第一交易请求发送至所述区块链***;所述第一交易请求用于指示所述区块链***调用设备管理合约生成并存储第一交易日志;所述第一交易日志记录有设备管理主题及所述第一IOT设备信息;所述IOT设备联盟***中的任一服务器均订阅有所述设备管理主题;所述第一交易日志用于第二服务器确定是否订阅所述第一IOT设备信息指示的第一IOT设备主题;所述第二服务器为所述IOT设备联盟***中除所述第一服务器以 外的任一服务器。The transceiver unit is configured to send the first transaction request to the blockchain system; the first transaction request is used to instruct the blockchain system to invoke a device management contract to generate and store a first transaction log; The first transaction log records the device management topic and the first IOT device information; any server in the IOT device alliance system subscribes to the device management topic; the first transaction log is used by the second server to determine Whether to subscribe to the first IOT device topic indicated by the first IOT device information; the second server is any server other than the first server in the IOT device alliance system.
  6. 如权利要求5所述的装置,其特征在于,所述处理单元还用于:The device according to claim 5, wherein the processing unit is further configured to:
    从所述区块链***中获取第二交易日志;所述第二交易日志是所述区块链***基于所述第二服务器发送的第二交易请求调用所述设备管理合约生成的;所述第二交易日志中记录有第二IOT设备信息和所述设备管理主题,所述第二IOT设备信息是所述第二服务器下新增的IOT设备的设备信息;Obtain a second transaction log from the blockchain system; the second transaction log is generated by the blockchain system based on the second transaction request sent by the second server calling the device management contract; The second transaction log records second IOT device information and the device management topic, and the second IOT device information is the device information of the newly added IOT device under the second server;
    根据所述第二交易日志中的第二IOT设备信息,向所述区块链***订阅所述第二IOT设备信息所指示的第二IOT设备主题。According to the second IOT device information in the second transaction log, subscribe to the blockchain system the second IOT device topic indicated by the second IOT device information.
  7. 如权利要求5所述的装置,其特征在于,所述处理单元还用于:The device according to claim 5, wherein the processing unit is further configured to:
    在所述生成包含第一IOT设备信息的第一交易请求之前,根据所述第一IOT设备信息,生成所述第一IOT设备主题;Before the generating the first transaction request containing the first IOT device information, generate the first IOT device subject according to the first IOT device information;
    根据所述第一IOT设备主题,生成并控制所述收发单元向所述区块链***发送第一部署请求;所述第一部署请求用于指示所述区块链***部署所述第一IOT设备主题的主题合约;According to the theme of the first IOT device, generate and control the transceiver unit to send a first deployment request to the blockchain system; the first deployment request is used to instruct the blockchain system to deploy the first IOT Theme contract of equipment theme;
    控制所述收发单元接收所述区块链***返回的第一部署结果,所述第一部署结果是所述区块链***完成所述第一IOT设备主题的主题合约的部署后发送的;所述第一部署结果包括所述第一IOT设备主题的主题合约的合约地址。Controlling the transceiver unit to receive the first deployment result returned by the blockchain system, the first deployment result being sent by the blockchain system after the deployment of the theme contract of the first IOT device theme; The first deployment result includes the contract address of the theme contract of the first IOT device theme.
  8. 如权利要求7所述的装置,其特征在于,所述处理单元还用于:The device according to claim 7, wherein the processing unit is further configured to:
    在所述生成第一部署请求之前,控制所述收发单元向所述区块链***发送第二部署请求;所述第二部署请求用于指示所述区块链***部署***合约;Before generating the first deployment request, control the transceiver unit to send a second deployment request to the blockchain system; the second deployment request is used to instruct the blockchain system to deploy a system contract;
    控制所述收发单元接收所述区块链***返回的第二部署结果;所述第二部署结果是所述区块链***完成所述***合约的部署后发送的;Controlling the transceiver unit to receive the second deployment result returned by the blockchain system; the second deployment result is sent after the blockchain system completes the deployment of the system contract;
    所述处理单元还用于:The processing unit is also used for:
    在控制所述收发单元接收所述区块链***返回的第一部署结果之后,将所述第一IOT设备主题和所述第一IOT设备主题的主题合约的合约地址的对应关系更新至所述***合约。After controlling the transceiver unit to receive the first deployment result returned by the blockchain system, update the correspondence between the first IOT device subject and the contract address of the subject contract of the first IOT device subject to the System contract.
  9. 一种计算设备,其特征在于,包括:A computing device, characterized by comprising:
    存储器,用于存储程序指令;Memory, used to store program instructions;
    处理器,用于调用所述存储器中存储的程序指令,按照获得的程序执行权利要求1至4任一项所述的方法。The processor is configured to call the program instructions stored in the memory, and execute the method according to any one of claims 1 to 4 according to the obtained program.
  10. 一种计算机可读非易失性存储介质,其特征在于,包括计算机可读指令,当计算机读取并执行所述计算机可读指令时,使得计算机执行如权利要求1至4任一项所述的方法。A computer-readable non-volatile storage medium, characterized by comprising computer-readable instructions, when the computer reads and executes the computer-readable instructions, the computer is caused to execute any one of claims 1 to 4 Methods.
  11. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储在计算机可读非易失性存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使得计算机执行如权利要求1至4任一项所述的方法。A computer program product, characterized in that, the computer program product includes a computer program stored on a computer-readable non-volatile storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer, The computer is caused to execute the method according to any one of claims 1 to 4.
PCT/CN2020/079360 2019-04-12 2020-03-13 Blockchain-based iot device changing method and apparatus WO2020207194A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910292923.1A CN110062041B (en) 2019-04-12 2019-04-12 Method and device for changing IOT (input/output) equipment based on block chain
CN201910292923.1 2019-04-12

Publications (1)

Publication Number Publication Date
WO2020207194A1 true WO2020207194A1 (en) 2020-10-15

Family

ID=67318884

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/079360 WO2020207194A1 (en) 2019-04-12 2020-03-13 Blockchain-based iot device changing method and apparatus

Country Status (2)

Country Link
CN (1) CN110062041B (en)
WO (1) WO2020207194A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679472A (en) * 2022-03-01 2022-06-28 达闼机器人股份有限公司 Communication system, method, apparatus, storage medium, and electronic device

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110062041B (en) * 2019-04-12 2023-04-07 深圳前海微众银行股份有限公司 Method and device for changing IOT (input/output) equipment based on block chain
CN112543184B (en) * 2020-11-19 2022-07-22 杭州甘道智能科技有限公司 Block chain-based equipment authentication activation method
CN114153153B (en) * 2021-12-13 2024-05-03 珠海格力电器股份有限公司 Device control method, system, device, electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107104816A (en) * 2017-03-07 2017-08-29 阿里巴巴集团控股有限公司 A kind of information change monitoring method and device
US20180137457A1 (en) * 2016-11-16 2018-05-17 Sap Se Monitoring inventory based on iot device data
CN108347362A (en) * 2018-01-09 2018-07-31 海尔优家智能科技(北京)有限公司 A kind of method and bridging device and devices in system finding new equipment
CN108365993A (en) * 2018-03-09 2018-08-03 深圳前海微众银行股份有限公司 Block chain link point dynamic altering method, system and computer readable storage medium
US20190058697A1 (en) * 2017-08-17 2019-02-21 Domanicom Corporation Systems and methods for implementing data communication with security tokens
CN110062041A (en) * 2019-04-12 2019-07-26 深圳前海微众银行股份有限公司 A kind of method and device of the IOT equipment changing based on block chain

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106100981B (en) * 2016-08-22 2019-08-23 布比(北京)网络技术有限公司 Social network data exchange method and device
US10243743B1 (en) * 2017-09-13 2019-03-26 Vijay K. Madisetti Tokens or crypto currency using smart contracts and blockchains
CN108875386A (en) * 2017-05-16 2018-11-23 江峰 A kind of multicenter finite field block catenary system framework with block issue mechanism and application demand issue mechanism
KR102016730B1 (en) * 2017-05-24 2019-09-03 라온시큐어(주) Authentification methods and system based on programmable blockchain and one-id
US10783600B2 (en) * 2017-05-25 2020-09-22 GM Global Technology Operations LLC Method and system using a blockchain database for data exchange between vehicles and entities
CN107911421B (en) * 2017-10-30 2020-05-15 上海点融信息科技有限责任公司 Method, apparatus, and computer storage medium for configuring cross-network communications in a blockchain
CN108134819A (en) * 2017-12-06 2018-06-08 北京连琪科技有限公司 Block chain operating status is collected and transfer approach, device and server
CN109462483B (en) * 2018-11-27 2022-09-30 平安科技(深圳)有限公司 Block chain based mail evidence storage method, device, equipment and storage medium
CN109801152A (en) * 2019-01-24 2019-05-24 中国农业银行股份有限公司 Supplementary pension method for processing business and system based on block chain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180137457A1 (en) * 2016-11-16 2018-05-17 Sap Se Monitoring inventory based on iot device data
CN107104816A (en) * 2017-03-07 2017-08-29 阿里巴巴集团控股有限公司 A kind of information change monitoring method and device
US20190058697A1 (en) * 2017-08-17 2019-02-21 Domanicom Corporation Systems and methods for implementing data communication with security tokens
CN108347362A (en) * 2018-01-09 2018-07-31 海尔优家智能科技(北京)有限公司 A kind of method and bridging device and devices in system finding new equipment
CN108365993A (en) * 2018-03-09 2018-08-03 深圳前海微众银行股份有限公司 Block chain link point dynamic altering method, system and computer readable storage medium
CN110062041A (en) * 2019-04-12 2019-07-26 深圳前海微众银行股份有限公司 A kind of method and device of the IOT equipment changing based on block chain

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679472A (en) * 2022-03-01 2022-06-28 达闼机器人股份有限公司 Communication system, method, apparatus, storage medium, and electronic device

Also Published As

Publication number Publication date
CN110062041A (en) 2019-07-26
CN110062041B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
WO2020207194A1 (en) Blockchain-based iot device changing method and apparatus
US11070360B2 (en) Parallel transaction validation and block generation in a blockchain
US10552448B2 (en) Systems and methods for event driven object management and distribution among multiple client applications
CN111213340B (en) Selecting attestation delegation for cryptographic functions and making it secure
EP3785160B1 (en) Cryptlet proofing services
WO2021109735A1 (en) Cross-chain-network-based resource processing method, and device
US9253265B2 (en) Hot pluggable extensions for access management system
JP2022529967A (en) Extracting data from the blockchain network
CN112106336A (en) Agent and account book on blockchain
US7523317B2 (en) Computer grid access management system
JP7228322B2 (en) Auto-commit transaction management in blockchain networks
CN110324399B (en) Bringing cluster awareness into a facility management portal
CN112154434A (en) Automatic data projection of intelligent contract groups on blockchains
CN110908812B (en) Service data processing method, device, readable storage medium and computer equipment
US11416294B1 (en) Task processing for management of data center resources
CN113535335B (en) Virtual resource allocation method and device based on block chain and electronic equipment
CN113630310A (en) Distributed high-availability gateway system
CN113645251B (en) Data transmission method and device suitable for cross-regional service
WO2021047227A1 (en) Cross-region service sharing method, apparatus and management device, and storage medium
CN112565340B (en) Service scheduling method, device, computer system and medium for distributed application
CN110290215B (en) Signal transmission method and device
US20220321567A1 (en) Context Tracking Across a Data Management Platform
CN114598700A (en) Communication method and communication system
US11582345B2 (en) Context data management interface for contact center
CN113271364A (en) Sharing system, method, computer device and storage medium of service arrangement data

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20787475

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 02/02/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20787475

Country of ref document: EP

Kind code of ref document: A1