CN112511621B - Data transmission method and device, storage medium, and electronic device - Google Patents

Data transmission method and device, storage medium, and electronic device Download PDF

Info

Publication number
CN112511621B
CN112511621B CN202011349138.4A CN202011349138A CN112511621B CN 112511621 B CN112511621 B CN 112511621B CN 202011349138 A CN202011349138 A CN 202011349138A CN 112511621 B CN112511621 B CN 112511621B
Authority
CN
China
Prior art keywords
data
object device
conversion node
target data
conversion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011349138.4A
Other languages
Chinese (zh)
Other versions
CN112511621A (en
Inventor
井皓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202011349138.4A priority Critical patent/CN112511621B/en
Publication of CN112511621A publication Critical patent/CN112511621A/en
Application granted granted Critical
Publication of CN112511621B publication Critical patent/CN112511621B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Abstract

The embodiment of the invention provides a data sending method and device, a storage medium and an electronic device, wherein the method comprises the following steps: converting data to be converted corresponding to first object equipment into data in a first preset format through a first conversion node of the first object equipment to obtain first target data; sending the first target data to a second conversion node of a second object device; converting the first target data into data in a second preset format through a second conversion node to obtain second target data; and sending the second target data to the second block chain through the second conversion node. The invention solves the problems of large resource consumption and low safety when a plurality of devices are interconnected and intercommunicated in the related technology, and achieves the effects of reducing the development difficulty of interconnection and intercommunication and saving development resources.

Description

Data transmission method and device, storage medium, and electronic device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a data sending method and device, a storage medium and an electronic device.
Background
The block chain technology is a technical scheme for decentralized trusting and collective maintenance of a distributed account book, and essentially realizes a distributed database system with untrustworthy data and credible calculation results by collectively participating in a multi-party storage and multi-party calculation mode by a plurality of nodes. A reliable and difficult-to-tamper account book record is maintained by using the block chain technology, so that the trust risk can be reduced, and the maintenance cost of cooperation of many participants can be effectively reduced.
The technology of the internet of things is developed rapidly, and the basic state of human society such as agriculture, industry, service industry and the like can be influenced profoundly. It is a trend that equipment manufacturers of the internet of things build own blockchain systems based on blockchain technology. Although a manufacturer establishes a self block chain system, interconnection and autonomy of manufacturer equipment are realized. However, the technologies, protocols, interfaces, and data structures used by the blockchain systems of various manufacturers are different, and when devices of different manufacturers need to be interconnected, a development program needs to adapt to the protocol, the interface, and the data format of the other manufacturer, and if the devices are interconnected with multiple manufacturers, multiple sets of programs need to be developed.
In view of the above technical problems, no effective solution has been proposed in the related art.
Disclosure of Invention
The embodiment of the invention provides a data sending method and device, a storage medium and an electronic device, which are used for at least solving the problems of high resource consumption and low safety when a plurality of devices are interconnected and intercommunicated in the related art.
According to an embodiment of the present invention, there is provided a data transmission method applied to a side chain system in a block chain, including: converting data to be converted corresponding to first object equipment into data in a first preset format through a first conversion node of the first object equipment to obtain first target data; sending the first target data to a second conversion node of a second object device, wherein the first conversion node and the second conversion node are both located in a side chain system, the first object device is a device in a first block chain, and the second object device is a device in a second block chain; converting the first target data into data in a second preset format through the second conversion node to obtain second target data, wherein the second target data is data identifiable by the second block chain; and sending the second target data to the second block chain through the second conversion node, wherein the second block chain is configured to perform an operation on the second object device by using the second target data.
According to another embodiment of the present invention, there is provided a data transmission method applied to a first object device in a block chain, including: determining a first instruction, wherein the first instruction comprises data to be converted and identification information of a second object device; and sending the first instruction to a first conversion node in a side chain system to instruct the first conversion node to convert the data to be converted into data in a first preset format to obtain first target data, wherein the side chain system further comprises a second conversion node, the second conversion node corresponds to the second object device, the second conversion node is used for converting the first target data into second target data in a second preset format and sending the second target data to a second block chain, and the second block chain is used for executing operation on the second object device by using the second target data.
According to another embodiment of the present invention, there is provided a data transmission apparatus including: the first conversion module is used for converting the data to be converted corresponding to the first object equipment into data in a first preset format through a first conversion node of the first object equipment to obtain first target data; a first sending module, configured to send the first target data to a second conversion node of a second object device, where the first conversion node and the second conversion node are both located in a side-chain system, the first object device is a device in a first block chain, and the second object device is a device in a second block chain; a second conversion module, configured to convert the first target data into data in a second preset format through the second conversion node, so as to obtain second target data, where the second target data is data that can be identified by the second block chain; a second sending module, configured to send the second target data to the second block chain through the second converting node, where the second block chain is configured to perform an operation on the second object device by using the second target data.
In an exemplary embodiment, the apparatus further includes: a second determining module, configured to determine, in the sidelink system, a first conversion node corresponding to a first object device before converting, by a first conversion node of the first object device, to-be-converted data corresponding to the first object device into data in a first preset format to obtain first target data; a second determining module, configured to determine the second conversion node corresponding to the second target device in the sidelink system.
In an exemplary embodiment, the first conversion module includes: a first receiving unit, configured to receive a first instruction sent by the first object device, where the first instruction includes the data to be converted and identification information of the first conversion node, and the identification information of the first conversion node is used to indicate an association relationship between the first block chain and the first conversion node; a first searching unit, configured to search the first conversion node in the sidelink system based on the identification information of the first conversion node; a first sending unit, configured to send the first instruction to the first conversion node, so as to convert the data to be converted into data in the first preset format through the first conversion node, and obtain the first target data.
In an exemplary embodiment, the apparatus further comprises: a first receiving module, configured to receive a first instruction sent by a first object device before sending the first target data to a second conversion node of a second object device, where the first instruction includes the data to be converted and identification information of the second object device.
In an exemplary embodiment, the first sending module includes: a second searching unit, configured to search, in the sidelink system, the second conversion node corresponding to the identification information of the second object device, so as to send the first target data to the second conversion node.
According to still another embodiment of the present invention, there is also provided a data transmission apparatus including: the first determining module is used for determining a first instruction, wherein the first instruction comprises data to be converted and identification information of second object equipment; a third sending module, configured to send the first instruction to a first conversion node in a side chain system, so as to instruct the first conversion node to convert the data to be converted into data in a first preset format, and obtain first target data, where the side chain system further includes a second conversion node, the second conversion node corresponds to the second object device, the second conversion node is configured to convert the first target data into second target data in a second preset format, and is configured to send the second target data to a second block chain, and the second block chain is configured to perform an operation on the second object device by using the second target data.
In an exemplary embodiment, the apparatus further includes a broadcasting module, configured to broadcast the first instruction in the first blockchain after determining the first instruction, so as to instruct other object devices in the first blockchain to record the first instruction.
According to a further embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, comprising a memory in which a computer program is stored and a processor configured to run the computer program to perform the steps of any of the method embodiments described above.
According to the invention, as the side chain system converts the data to be converted corresponding to the first object device into the data in the first preset format through the first conversion node of the first object device, the first target data is obtained; the side chain system sends the first target data to a second conversion node of a second object device, wherein the first conversion node and the second conversion node are both located in the side chain system, the first object device is a device in a first block chain, and the second object device is a device in a second block chain; the side chain system converts the first target data into data in a second preset format through a second conversion node to obtain second target data, wherein the second target data is data which can be identified by a second block chain; and the side chain system sends the second target data to a second block chain through a second conversion node, wherein the second block chain is used for executing operation on the second object device by utilizing the second target data. The method can realize the interconnection and intercommunication among the block chain systems of different devices by only developing one set of side chain system. Therefore, the problems of high resource consumption and low safety in interconnection and intercommunication among a plurality of devices in the related technology can be solved, the development difficulty of interconnection and intercommunication is reduced, and development resources are saved. Meanwhile, when the side chain system goes wrong, the normal operation of the manufacturer Internet of things block chain system is not influenced, and the safety and usability of the manufacturer Internet of things block chain system are enhanced.
Drawings
Fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a data transmission method according to an embodiment of the present invention;
fig. 2 is a flowchart (one) of a data transmission method according to an embodiment of the present invention;
fig. 3 is a flowchart of a data transmission method according to an embodiment of the present invention (ii);
FIG. 4 is a schematic architectural diagram according to an embodiment of the present invention;
FIG. 5 is an overall flow diagram according to an embodiment of the invention;
fig. 6 is a block diagram (one) of the structure of a data transmission apparatus according to an embodiment of the present invention;
fig. 7 is a block diagram of the structure of a data transmission apparatus according to an embodiment of the present invention (ii).
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the method running on a mobile terminal, fig. 1 is a block diagram of a hardware structure of the mobile terminal of a data transmission method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to the data transmission method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, that is, implementing the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In the present embodiment, a data transmission is provided, which is applied to a side chain system in a block chain, and fig. 2 is a flowchart (one) of a data transmission method according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, converting data to be converted corresponding to a first object device into data in a first preset format through a first conversion node of the first object device to obtain first target data;
optionally, in this embodiment, the data to be converted is data in a first block chain to which the first object device belongs.
Step S204, sending the first target data to a second conversion node of a second object device, wherein the first conversion node and the second conversion node are both located in a side chain system, the first object device is a device in a first block chain, and the second object device is a device in a second block chain;
optionally, in this embodiment, the first object device and the second object device establish a first block chain and a second block chain in a Person-to-Person (Person-to-Person, abbreviated as P2P) consensus network, and the first object device and the second object device issue identities to corresponding block chains, and then maintain a book record together, execute an intelligent contract, and achieve consensus; the first object device and the second object device can be internet of things devices, the internet of things devices realize interaction with other trusted devices through the development of trust relationships, and interconnection and intercommunication among devices in manufacturers are not required to be completed by a central control node.
Step S206, converting the first target data into data in a second preset format through a second conversion node to obtain second target data, wherein the second target data is data which can be identified by a second block chain;
optionally, in this embodiment, the first object device and the second object device establish a corresponding first conversion node and a corresponding second conversion node in the side chain system, convert the data to be converted in the local block chain into data in a preset format, obtain target data, and perform interconnection and interworking with object devices in other block chains based on the target data.
Optionally, the side chain system in this embodiment is used for each object device to establish its own conversion node in the side chain system, the conversion node converts data in the block chain into standard data, performs data interaction with other conversion nodes in the side chain system, and converts the obtained data into data that can be identified by its block chain.
Step S208, sending the second target data to a second block chain through the second conversion node, where the second block chain is used to perform an operation on the second object device by using the second target data.
The main body for executing the above steps may be a side chain system, but is not limited thereto.
Through the steps, the side chain system converts the data to be converted corresponding to the first object device into the data in the first preset format through the first conversion node of the first object device to obtain first target data; the side chain system sends the first target data to a second conversion node of a second object device, wherein the first conversion node and the second conversion node are both located in the side chain system, the first object device is a device in a first block chain, and the second object device is a device in a second block chain; the side chain system converts the first target data into data in a second preset format through a second conversion node to obtain second target data, wherein the second target data is data which can be identified by a second block chain; and the side chain system sends the second target data to a second block chain through a second conversion node, wherein the second block chain is used for executing operation on the second object device by utilizing the second target data. The interconnection and intercommunication among the block chain systems of different devices can be realized only by developing one set of side chain system. Therefore, the problems of high resource consumption and low safety in interconnection and intercommunication among a plurality of devices in the related technology can be solved, the development difficulty of interconnection and intercommunication is reduced, and development resources are saved. Meanwhile, when the side chain system has a problem, the normal operation of the manufacturer Internet of things block chain system is not influenced, and the safety and usability of the manufacturer Internet of things block chain system are enhanced.
In an exemplary embodiment, before converting, by a first conversion node of a first object device, data to be converted corresponding to the first object device into data in a first preset format, and obtaining first target data, the method further includes:
s1, determining a first conversion node corresponding to first object equipment in a side chain system;
and S2, determining a second conversion node corresponding to the second object device in the side chain system.
Optionally, in this embodiment, a side chain system may include a conversion node for each target device.
In an exemplary embodiment, converting, by a first conversion node of a first object device, data to be converted corresponding to the first object device into data in a first preset format to obtain first target data, includes:
the method comprises the steps that S1, a first instruction sent by first object equipment is received, wherein the first instruction comprises data to be converted and identification information of a first conversion node, and the identification information of the first conversion node is used for representing the association relation between a first block chain and the first conversion node;
s2, searching the first conversion node in the side chain system based on the identification information of the first conversion node;
and S3, sending the first instruction to the first conversion node so as to convert the data to be converted into the data in the first preset format through the first conversion node, and obtaining first target data.
Optionally, in this embodiment, the first preset format may be a standard format unified in the sidechain system.
In an exemplary embodiment, before sending the first target data into the second conversion node of the second object device, the method further comprises:
s1, receiving a first instruction sent by a first object device, wherein the first instruction comprises data to be converted and identification information of a second object device.
Optionally, in this embodiment, the first instruction includes information to which object device the data to be converted needs to be sent, that is, identification information of the second object.
In one exemplary embodiment, sending the first target data to a second translation node of a second object device includes:
s1, a second conversion node corresponding to the identification information of the second object device is searched in the side chain system, and the first target data are sent to the second conversion node.
Optionally, in this embodiment, the second conversion node is configured to convert the first target data into second target data and send the second target data to the second block chain, where the second block chain performs an operation on the second object device based on the second target data.
In the present embodiment, a data transmission method is provided, which is applied to a first object device in a block chain, and fig. 3 is a flowchart (ii) of a data transmission method according to an embodiment of the present invention, as shown in fig. 3, where the flowchart includes the following steps:
step S302, determining a first instruction, wherein the first instruction comprises data to be converted and identification information of a second object device;
step S304, sending a first instruction to a first conversion node in the side chain system to instruct the first conversion node to convert the data to be converted into data in the first preset format to obtain first target data, where the side chain system further includes a second conversion node, the second conversion node corresponds to a second object device, the second conversion node is configured to convert the first target data into second target data in the second preset format and is configured to send the second target data to a second block chain, and the second block chain is configured to perform an operation on the second object device by using the second target data.
Optionally, in this embodiment, the data to be converted is data in a first block chain to which the first object device belongs.
Optionally, in this embodiment, the first object device and the second object device establish a first block chain and a second block chain in a Person-to-Person (Person-to-Person, abbreviated as P2P) consensus network, and the first object device and the second object device issue identities to corresponding block chains, and then maintain a book record together, execute an intelligent contract, and achieve consensus; the first object device and the second object device can be internet of things devices, the internet of things devices realize interaction with other trusted devices through the development of trust relationships, and interconnection and intercommunication among devices in manufacturers are not required to be completed by a central control node.
Optionally, in this embodiment, the first object device and the second object device establish a corresponding first conversion node and a corresponding second conversion node in the side chain system, convert the data to be converted in the local block chain into data in a preset format, obtain target data, and perform interconnection and interworking with object devices in other block chains based on the target data.
Optionally, the side chain system in this embodiment is used for each object device to establish its own conversion node in the side chain system, the conversion node converts data in the block chain into standard data, performs data interaction with other conversion nodes in the side chain system, and converts the obtained data into data that can be identified by its block chain.
The executing subject of the above steps may be the first object device, etc., but is not limited thereto.
Through the steps, the first object device determines a first instruction, wherein the first instruction comprises the data to be converted and the identification information of the second object device; the first object device sends a first instruction to a first conversion node in a side chain system to instruct the first conversion node to convert data to be converted into data in a first preset format to obtain first target data, wherein the side chain system further comprises a second conversion node, the second conversion node corresponds to a second object device, the second conversion node is used for converting the first target data into second target data in a second preset format and sending the second target data to a second block chain, and the second block chain is used for operating the second object device by using the second target data. The method can realize the interconnection and intercommunication among the block chain systems of different devices by only developing one set of side chain system. Therefore, the problems of high resource consumption and low safety in interconnection and intercommunication among a plurality of devices in the related technology can be solved, the development difficulty of interconnection and intercommunication is reduced, and development resources are saved. Meanwhile, when the side chain system goes wrong, the normal operation of the manufacturer Internet of things block chain system is not influenced, and the safety and usability of the manufacturer Internet of things block chain system are enhanced.
In one exemplary embodiment, after determining the first instruction, the method further comprises:
s1, broadcasting a first instruction in a first block chain to instruct other object devices in the first block chain to record the first instruction.
The invention is described in detail below with reference to specific examples:
in this embodiment, the first object device is exemplified by the manufacturer a, and the second object device is exemplified by the manufacturer B.
The method aims at the problem that the interconnection and intercommunication of block chain systems of the Internet of things of different manufacturers cannot be realized in the related technology. When the devices of different manufacturers need to be interconnected, the development program needs to adapt to the protocol, interface and data format of the other manufacturer, and if the devices are interconnected with a plurality of manufacturers, a plurality of sets of programs need to be developed. In this embodiment, a set of side chain systems is provided, where each manufacturer establishes its own manufacturer node in a side chain, converts data of its own block chain system into standard data, and performs interconnection and intercommunication with other manufacturer block chain systems based on the standard data.
As shown in fig. 4, which is an architecture diagram in the present embodiment, in fig. 4, the vendor (vendor a or B) internet of things blockchain system: establishing a block chain in a P2P consensus network, using manufacturers' Internet of things equipment and an equipment service platform as participating nodes to issue identities into the block chain, then jointly maintaining an account book record by each participating node, executing an intelligent contract and achieving consensus; the Internet of things equipment realizes interaction with other trusted equipment through the development of trust relationship, does not need a central control node, and completes interconnection and intercommunication among equipment in a manufacturer.
Side chain system: the manufacturer nodes are established in the side chains of all manufacturers, the nodes convert data of the internet of things block chain system of the manufacturers into standard data, the standard data interact with other manufacturer nodes in the side chains, and the obtained data are converted into data which can be identified by the internet of things block chain system of the manufacturers through the other manufacturer nodes.
As shown in fig. 5, the present embodiment includes the following steps:
s501: each vendor builds the vendor node in the side chain and publishes the vendor's conversion application in the side chain.
S502: in a vendor A blockchain system, before sending a command 1, a device or App checks the vendor to which the command 1 target device belongs;
s503: if the manufacturer of the target device is other manufacturers, executing S504;
s504: sending a command 1 to a manufacturer A node in a side chain system;
s505: simultaneously with S504, command 1 is broadcast in the vendor a blockchain system, so that other nodes in the vendor a blockchain system record command 1;
s506: the manufacturer A node converts the command 1 into a standard command 2;
s507: the manufacturer A node sends a standard command 2 to a manufacturer B node;
s508: the manufacturer B node converts the standard command 2 into a command 3 which can be recognized by a manufacturer B blockchain system;
s509: the vendor node-B command 3 will be sent to the vendor B blockchain system;
s510: the vendor B blockchain system performs operations on the corresponding equipment of the vendor B according to the command 3.
It should be noted that, in fig. 5, "vendor a internet of things blockchain system" is simply referred to as "vendor a blockchain system," and vendor B is the same.
In summary, in this embodiment, each manufacturer establishes its own manufacturer transformation application node in the side chain; converting the data of the manufacturer A block chain system into standard data by a manufacturer A node in the side chain system; the manufacturer A node sends the standard data to the manufacturer B node; the manufacturer B node converts the standard data into data 1 which can be identified by a manufacturer B block chain system; the manufacturer B node sends the data 1 to a manufacturer B block chain system; the vendor B blockchain system operates with the in-system devices according to the data 1. Only one set of side chain system needs to be developed, interconnection and intercommunication among block chain systems of the Internet of things of different manufacturers are achieved, the development difficulty of interconnection and intercommunication is reduced, and development resources are saved. Meanwhile, when the side chain system has a problem, the normal operation of the manufacturer Internet of things block chain system is not influenced, and the safety and the usability of the manufacturer Internet of things block chain system are enhanced.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method according to the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a data transmission system is further provided, including:
the first object device is used for determining a first instruction, wherein the first instruction comprises data to be converted and identification information of a second object device, and the first object device is a device in a first block chain;
the side chain system is used for receiving a first instruction sent by the first object device;
the side chain system comprises a first conversion node, wherein the first conversion node is used for converting data to be converted corresponding to the first object device into data in a first preset format to obtain first target data, and the first conversion node corresponds to the first object device;
the side chain system further comprises a second conversion node, wherein the second conversion node is used for receiving the first target data sent by the first conversion node and converting the first target data into data in a second preset format to obtain second target data, the second target data is data identifiable by a second block chain, the second conversion node corresponds to a second object device, and the second object device is a device in the second block chain;
the second conversion node is further configured to send second target data into a second blockchain, wherein the second blockchain is configured to perform an operation on a second object device using the second target data.
The specific interaction process is described in the above embodiments, and is not described herein again.
In this embodiment, a data sending device is further provided, and the data sending device is used to implement the foregoing embodiments and preferred embodiments, and the description of the data sending device is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram (one) of a data transmission apparatus according to an embodiment of the present invention, as shown in fig. 6, the apparatus including:
a first conversion module 62, configured to convert, by using a first conversion node of a first object device, to-be-converted data corresponding to the first object device into data in a first preset format, to obtain first target data;
a first sending module 64, configured to send the first target data to a second conversion node of a second object device, where the first conversion node and the second conversion node are both located in a side chain system, the first object device is a device in a first block chain, and the second object device is a device in a second block chain;
a second conversion module 66, configured to convert the first target data into data in a second preset format through a second conversion node, so as to obtain second target data, where the second target data is data that can be identified by a second block chain;
a second sending module 68, configured to send the second target data to a second blockchain through the second converting node, where the second blockchain is configured to perform an operation on the second object device by using the second target data.
In an exemplary embodiment, the apparatus further includes: a second determining module, configured to determine, in the sidelink system, a first conversion node corresponding to a first object device before converting, by the first conversion node of the first object device, to-be-converted data corresponding to the first object device into data in a first preset format to obtain first target data; a second determining module, configured to determine the second conversion node corresponding to the second target device in the sidelink system.
In an exemplary embodiment, the first conversion module includes: a first receiving unit, configured to receive a first instruction sent by the first object device, where the first instruction includes the data to be converted and identification information of the first conversion node, and the identification information of the first conversion node is used to indicate an association relationship between the first block chain and the first conversion node; a first searching unit, configured to search the first conversion node in the sidelink system based on the identification information of the first conversion node; a first sending unit, configured to send the first instruction to the first conversion node, so as to convert the data to be converted into data in the first preset format through the first conversion node, and obtain the first target data.
In an exemplary embodiment, the apparatus further comprises: a first receiving module, configured to receive a first instruction sent by a first object device before sending the first target data to a second conversion node of a second object device, where the first instruction includes the data to be converted and identification information of the second object device.
In an exemplary embodiment, the first sending module includes: a second searching unit, configured to search, in the sidelink system, the second conversion node corresponding to the identification information of the second object device, so as to send the first target data to the second conversion node.
Fig. 7 is a block diagram (ii) of the structure of a data transmission apparatus according to an embodiment of the present invention, as shown in fig. 7, the apparatus including:
a first determining module 72, configured to determine a first instruction, where the first instruction includes data to be converted and identification information of a second object device;
a third sending module 74, configured to send the first instruction to a first conversion node in the side chain system, so as to instruct the first conversion node to convert the data to be converted into data in the first preset format, so as to obtain first target data, where the side chain system further includes a second conversion node, the second conversion node corresponds to a second object device, the second conversion node is configured to convert the first target data into second target data in the second preset format, and is configured to send the second target data to a second block chain, and the second block chain is configured to perform an operation on the second object device by using the second target data.
In an exemplary embodiment, the apparatus further includes a broadcasting module, configured to broadcast the first instruction in the first blockchain after determining the first instruction, so as to instruct other object devices in the first blockchain to record the first instruction.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
In the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, converting data to be converted corresponding to first object equipment into data in a first preset format through a first conversion node of the first object equipment to obtain first target data;
s2, sending the first target data to a second conversion node of a second object device, wherein the first conversion node and the second conversion node are both located in a side chain system, the first object device is a device in a first block chain, and the second object device is a device in a second block chain;
s3, converting the first target data into data in a second preset format through a second conversion node to obtain second target data, wherein the second target data is data which can be identified by a second block chain;
and S4, sending the second target data to a second block chain through the second conversion node, wherein the second block chain is used for executing operation on the second object device by utilizing the second target data.
In an exemplary embodiment, the computer readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
In an exemplary embodiment, the processor may be configured to execute the following steps by a computer program:
s1, converting data to be converted corresponding to first object equipment into data in a first preset format through a first conversion node of the first object equipment to obtain first target data;
s2, sending the first target data to a second conversion node of a second object device, wherein the first conversion node and the second conversion node are both located in a side chain system, the first object device is a device in a first block chain, and the second object device is a device in a second block chain;
s3, converting the first target data into data in a second preset format through a second conversion node to obtain second target data, wherein the second target data is data which can be identified by a second block chain;
and S4, sending the second target data to a second block chain through the second conversion node, wherein the second block chain is used for executing operation on the second object device by utilizing the second target data.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A data transmission method is characterized in that the method is applied to a side chain system in a block chain, and comprises the following steps:
converting data to be converted corresponding to first object equipment into data in a first preset format through a first conversion node of the first object equipment to obtain first target data;
sending the first target data to a second conversion node of a second object device, wherein the first conversion node and the second conversion node are both located in a side chain system, the first object device is a device in a first block chain, and the second object device is a device in a second block chain;
converting the first target data into data in a second preset format through the second conversion node to obtain second target data, wherein the second target data is data identifiable to the second block chain;
sending, by the second conversion node, the second target data into the second blockchain, where the second blockchain is used to perform an operation on the second object device using the second target data;
the side chain system is used for each object device to establish its own conversion node in the side chain system, the conversion node of each object device is used for converting data in a block chain into standard data and interacting with the conversion nodes of other object devices in the side chain system, the conversion nodes of other object devices are used for converting the obtained data into data which can be identified by its block chain, and each object device comprises the first object device and the second object device.
2. The method according to claim 1, wherein before converting the data to be converted corresponding to the first object device into the data in the first preset format through the first conversion node of the first object device, the method further comprises:
determining the first conversion node corresponding to the first object device in the sidechain system;
determining the second conversion node corresponding to the second object device in the sidechain system.
3. The method of claim 1, wherein converting, by a first conversion node of a first object device, data to be converted corresponding to the first object device into data in a first preset format to obtain first target data, comprises:
receiving a first instruction sent by the first object device, where the first instruction includes the data to be converted and identification information of the first conversion node, and the identification information of the first conversion node is used to indicate an association relationship between the first block chain and the first conversion node;
finding the first conversion node in the side chain system based on the identification information of the first conversion node;
and sending the first instruction to the first conversion node so as to convert the data to be converted into the data in the first preset format through the first conversion node, thereby obtaining the first target data.
4. The method of claim 1, wherein prior to sending the first target data into the second translation node of the second object device, the method further comprises:
and receiving a first instruction sent by the first object device, wherein the first instruction comprises the data to be converted and the identification information of the second object device.
5. The method of claim 4, wherein sending the first target data to a second translation node of a second object device comprises:
and searching the second conversion node corresponding to the identification information of the second object device in the side chain system so as to send the first target data to the second conversion node.
6. A data transmission method applied to a first object device in a block chain, comprising:
determining a first instruction, wherein the first instruction comprises data to be converted and identification information of a second object device;
sending the first instruction to a first conversion node in a side chain system to instruct the first conversion node to convert the data to be converted into data in a first preset format to obtain first target data, wherein the side chain system further comprises a second conversion node, the second conversion node corresponds to the second object device, the second conversion node is used for converting the first target data into second target data in a second preset format and sending the second target data to a second block chain, and the second block chain is used for performing operation on the second object device by using the second target data;
the side chain system is used for each object device to establish its own conversion node in the side chain system, the conversion node of each object device is used for converting data in a block chain into standard data and interacting data with the conversion nodes of other object devices in the side chain system, the conversion nodes of other object devices are used for converting the obtained data into data which can be identified by the block chain of itself, and each object device comprises the first object device and the second object device.
7. The method of claim 6, wherein after determining the first instruction, the method further comprises:
broadcasting the first instruction in a first blockchain to instruct other object devices in the first blockchain to record the first instruction.
8. A data transmission system, comprising:
the device comprises a first object device and a second object device, wherein the first object device is used for determining a first instruction, the first instruction comprises data to be converted and identification information of the second object device, and the first object device is a device in a first block chain;
a sidechain system for receiving the first instruction sent by the first object device;
the side chain system comprises a first conversion node, wherein the first conversion node is used for converting data to be converted corresponding to the first object device into data in a first preset format to obtain first target data, and the first conversion node corresponds to the first object device;
the side chain system further includes a second conversion node, where the second conversion node is configured to receive the first target data sent by the first conversion node, and is configured to convert the first target data into data in a second preset format to obtain second target data, where the second target data is data that can be identified by a second block chain, the second conversion node corresponds to a second object device, and the second object device is a device in the second block chain; the second conversion node is further configured to send the second target data to the second blockchain, where the second blockchain is configured to perform an operation on the second object device using the second target data;
the side chain system is further configured to establish a conversion node of each object device in the side chain system, the conversion node of each object device is configured to convert data in a block chain into standard data and perform data interaction with conversion nodes of other object devices in the side chain system, the conversion nodes of the other object devices are configured to convert obtained data into data that can be identified by the block chain of the object device, and each object device includes the first object device and the second object device.
9. A data transmission apparatus, comprising:
the first conversion module is used for converting data to be converted corresponding to first object equipment into data in a first preset format through a first conversion node of the first object equipment to obtain first target data;
a first sending module, configured to send the first target data to a second conversion node of a second target device, where the first conversion node and the second conversion node are both located in a side chain system, the first target device is a device in a first blockchain, and the second target device is a device in a second blockchain;
a second conversion module, configured to convert, by the second conversion node, the first target data into data in a second preset format to obtain second target data, where the second target data is data that can be identified by the second block chain;
a second sending module, configured to send the second target data to the second blockchain through the second conversion node, where the second blockchain is configured to perform an operation on the second object device by using the second target data;
the side chain system is used for each object device to establish its own conversion node in the side chain system, the conversion node of each object device is used for converting data in a block chain into standard data and interacting data with the conversion nodes of other object devices in the side chain system, the conversion nodes of other object devices are used for converting the obtained data into data which can be identified by the block chain of itself, and each object device comprises the first object device and the second object device.
10. A data transmission apparatus, comprising:
the first determining module is used for determining a first instruction, wherein the first instruction comprises data to be converted and identification information of second object equipment;
a third sending module, configured to send the first instruction to a first conversion node in a side chain system, so as to instruct the first conversion node to convert the data to be converted into data in a first preset format, so as to obtain first target data, where the side chain system further includes a second conversion node, the second conversion node corresponds to the second object device, the second conversion node is configured to convert the first target data into second target data in a second preset format, and is configured to send the second target data to a second block chain, and the second block chain is configured to perform an operation on the second object device by using the second target data;
the side chain system is used for each object device to establish its own conversion node in the side chain system, the conversion node of each object device is used for converting data in a block chain into standard data and interacting with the conversion nodes of other object devices in the side chain system, the conversion nodes of other object devices are used for converting the obtained data into data which can be identified by its block chain, and each object device comprises the first object device and the second object device.
11. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 5 when executed, or to perform the method of any of claims 6 to 7.
12. An electronic apparatus comprising a memory and a processor, wherein the memory has stored therein a computer program, and the processor is configured to execute the computer program to perform the method of any one of claims 1 to 5, or to perform the method of any one of claims 6 to 7.
CN202011349138.4A 2020-11-26 2020-11-26 Data transmission method and device, storage medium, and electronic device Active CN112511621B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011349138.4A CN112511621B (en) 2020-11-26 2020-11-26 Data transmission method and device, storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011349138.4A CN112511621B (en) 2020-11-26 2020-11-26 Data transmission method and device, storage medium, and electronic device

Publications (2)

Publication Number Publication Date
CN112511621A CN112511621A (en) 2021-03-16
CN112511621B true CN112511621B (en) 2022-12-30

Family

ID=74967917

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011349138.4A Active CN112511621B (en) 2020-11-26 2020-11-26 Data transmission method and device, storage medium, and electronic device

Country Status (1)

Country Link
CN (1) CN112511621B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500651B (en) * 2022-01-27 2023-06-30 成都质数斯达克科技有限公司 Block chain data transmission method, device and equipment and readable storage medium
CN114679487B (en) * 2022-03-25 2023-12-22 度小满科技(北京)有限公司 Link processing method, device, storage medium and processor

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10571444B2 (en) * 2017-04-27 2020-02-25 International Business Machines Corporation Providing data to a distributed blockchain network
CN108346100A (en) * 2018-02-14 2018-07-31 阿里巴巴集团控股有限公司 Assets management method and device, electronic equipment
JP6921266B2 (en) * 2018-12-21 2021-08-18 アドバンスド ニュー テクノロジーズ カンパニー リミテッド Verifying the integrity of the data stored on the consortium blockchain using the public sidechain
CN109873861B (en) * 2019-01-11 2022-04-12 平安科技(深圳)有限公司 Cross-block chain node interaction method and device, storage medium and electronic equipment
US20200334677A1 (en) * 2019-04-16 2020-10-22 Nokia Solutions And Networks Oy Transparent blockchain sidechains to support blockchain processing heterogeneity
CN110266655B (en) * 2019-05-30 2021-11-12 中国工商银行股份有限公司 Cross-chain interconnection method, device and system based on block chain
CN111369237B (en) * 2020-02-28 2023-07-14 腾讯科技(深圳)有限公司 Data processing method and device and computer storage medium
CN111445328A (en) * 2020-03-16 2020-07-24 西安交通大学 Cross-link gateway interaction system and method and supply chain data management method
CN111464518B (en) * 2020-03-25 2022-08-05 北京新创智链科技有限公司 Method and device for sending and verifying cross-link communication data
CN111885026B (en) * 2020-07-10 2023-01-31 海尔优家智能科技(北京)有限公司 Block chain-based interconnection and intercommunication method and device, storage medium and electronic device
CN111861481A (en) * 2020-09-22 2020-10-30 支付宝(杭州)信息技术有限公司 Block chain account checking method and system

Also Published As

Publication number Publication date
CN112511621A (en) 2021-03-16

Similar Documents

Publication Publication Date Title
CN112511621B (en) Data transmission method and device, storage medium, and electronic device
CN110808948A (en) Remote procedure calling method, device and system
CN112671904B (en) Method and device for transmitting equipment state information, storage medium and electronic device
CN114765819B (en) Information transmission method and device
CN111885115A (en) Equipment binding change method and device
CN111885594A (en) Equipment binding method and device
CN112737847B (en) Node upgrading method and device, storage medium and electronic device
CN112769794A (en) Data conversion method and device
US11595147B2 (en) Data transceiving method and device, and wavelength configuration method and device
CN113259918A (en) Equipment binding method and system
CN106657076B (en) TCP service implementation method and device for network name space
CN116243853A (en) Data transmission method and device, electronic equipment and nonvolatile storage medium
CN112422565B (en) Message processing method and device, storage medium and electronic device
CN113472637A (en) LORA gateway
CN113014610B (en) Remote access method, device and system
EP3908038A1 (en) Data distribution transmission method, network master node mn and network secondary node sn
CN110119111B (en) Communication method and device, storage medium, and electronic device
CN111464398A (en) Self-organizing centreless network high-level protocol testing method, equipment and storage medium
CN111008173A (en) Serial communication method, device and system
CN106664682A (en) A method for utilizing available resources in a communications network
CN113453207B (en) Identity type determining method and device, storage medium and electronic device
CN111107663B (en) Data transmission method and device, storage medium and electronic device
CN112559199A (en) Device and method for controlling android Bluetooth in glibc environment and terminal equipment
CN113778927B (en) Method, device and equipment for managing server network port chip based on substrate management controller
CN112653627B (en) Data transmission method, device and system, computer equipment and computer readable storage medium

Legal Events

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