Method and apparatus for data transmission, router, and Internet of Things device
By using blockchain systems and certificates in routers for data encryption and decryption, the problems of network congestion and low security during data transmission of IoT devices are solved, and the security and stability of data transmission are achieved.
Patent Information
- Application Number
- CN202210560795.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-23
- Publication Date
- 2025-06-17
- Estimated Expiration
- 2042-05-23
AI Technical Summary
The prior art has problems of network congestion and low data security during the data transmission of IoT devices, which may cause IoT devices to be disconnected and data to be easily tampered with.
By using blockchain systems and certificates in the router for data encryption and decryption, the data priority transmission queue of IoT devices is determined to ensure the security and stability of data transmission.
It effectively reduces the possibility of IoT devices being disconnected, improves the security of data transmission, and prevents data tampering.
Smart Images

Figure CN114978688B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of smart home appliances, and for example, relates to a method and device for data transmission, a router, and an Internet of Things device. Background Art
[0002] Currently, with the development of Internet of Things technology, more and more Internet of Things devices have entered people's lives. As a commonly used device for network data transmission, a router is used for communication between networked devices and cloud servers. However, when multiple devices send requests simultaneously, the router may experience network congestion, and data cannot be sent, resulting in Internet of Things devices being regarded as offline.
[0003] In related technologies, the method for configuring the network of Internet of Things devices includes: establishing a wireless link with the Internet of Things device; receiving the address information transmitted by the Internet of Things device; adding the Internet of Things device corresponding to the address information to the protection list; reserving wireless communication resources according to a preset value; transmitting the network request sent by the Internet of Things device through the preset wireless communication resources; recording the wireless communication resources actually occupied for transmitting the network request; and reducing the preset wireless communication resources according to the actually occupied wireless communication resources.
[0004] In the process of implementing the embodiments of the present disclosure, it is found that at least the following problems exist in related technologies:
[0005] This method can reduce the situation where Internet of Things devices are restricted by the router and disconnected during communication. However, when the information of the Internet of Things device is tampered with, the target data may be modified, resulting in low data transmission security. Summary of the Invention
[0006] To provide a basic understanding of some aspects of the disclosed embodiments, a simple summary is given below. The summary is not a comprehensive review, nor is it intended to identify key / important elements or delineate the scope of protection of these embodiments, but rather serves as a preface to the subsequent detailed description.
[0007] The embodiments of the present disclosure provide a method and device for data transmission, a router, and an Internet of Things device to improve the security of data transmission while reducing the disconnection of Internet of Things devices.
[0008] In some embodiments, the method includes: parsing the request data when a data transmission request is received; determining that the device sending the data transmission request is an Internet of Things device when it is determined that the request data carries a certificate issued by the blockchain system; decrypting the request data to obtain the target data; and putting the target data into the priority sending queue.
[0009] Optionally, decrypting the request data to obtain target data includes: determining a private key corresponding to the certificate carried in the request data; decrypting the request data with the private key to strip the certificate to obtain the target data.
[0010] Optionally, parsing the request data includes: determining a set position of the certificate in the request data according to the anti-disconnection protection protocol; determining the data in the set position as certificate information.
[0011] Optionally, determining that the request data carries a certificate issued by the blockchain system includes: determining whether the certificate information exists in the blockchain system; in the case where the certificate information exists in the blockchain system, determining that the request data carries a certificate issued by the blockchain system.
[0012] Optionally, before parsing the request data, it further includes: in the case of receiving a certificate application request sent by the blockchain system, determining the type of the application device according to the device information in the certificate application request; in the case where the application device is an Internet of Things device, generating a certificate according to the device information; sending the certificate to the blockchain system.
[0013] In some embodiments, the method includes: in the case of needing to send target data, encrypting the target data with a certificate issued by the blockchain system to obtain request data; generating a data transmission request according to the request data; sending the data transmission request to a router.
[0014] Optionally, encrypting the target data with a certificate issued by the blockchain system to obtain request data includes: determining a set position of the certificate according to the anti-disconnection protection protocol; adding the certificate to the target data according to the set position to obtain request data.
[0015] In some embodiments, the apparatus includes a processor and a memory storing program instructions, and the processor is configured to execute the above method for data transmission when running the program instructions.
[0016] In some embodiments, the router includes a processor and a memory storing program instructions, and the processor is configured to execute the above method for data transmission when running the program instructions.
[0017] In some embodiments, the Internet of Things device includes a processor and a memory storing program instructions, and the processor is configured to execute the above method for data transmission when running the program instructions.
[0018] The method, apparatus, router, and Internet of Things device for data transmission provided by the embodiments of the present disclosure can achieve the following technical effects:
[0019] When the router receives a data transmission request from a device, it parses the request data in the data transmission request to determine the information in the request data. When it is determined that the request data carries a certificate issued by the blockchain system, it is determined that the device sending the data transmission request is an Internet of Things device, and the data needs to be sent preferentially. The request data is decrypted to obtain the target data that actually needs to be sent. The target data is placed in the priority sending queue to avoid interrupting the current data sending process and preventing the preemption of the data sending priority of other Internet of Things devices. Since the target data of the Internet of Things device is placed in the priority sending queue, the sending priority of the target data is higher than that of non-Internet of Things devices, reducing the restrictions of the router on the Internet of Things device during the communication process and thus reducing the possibility of the Internet of Things device dropping the line. Since the blockchain system and the certificate can encrypt the target data to prevent tampering, the security of data transmission is improved while reducing the disconnection of the Internet of Things device.
[0020] The above general description and the following description are only exemplary and explanatory, and are not used to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] One or more embodiments are exemplarily illustrated by corresponding drawings. These exemplary illustrations and the drawings do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements. The drawings do not constitute a scale limitation, and among them:
[0022] Figure 1-1 is a schematic structural diagram of a connection between a networking device and a router provided by an embodiment of the present disclosure;
[0023] Figure 1-2 is another schematic structural diagram of a connection between a networking device and a router provided by an embodiment of the present disclosure;
[0024] Figure 2 is a schematic diagram of a method for data transmission provided by an embodiment of the present disclosure;
[0025] Figure 3 is another schematic diagram of a method for data transmission provided by an embodiment of the present disclosure;
[0026] Figure 4 is another schematic diagram of a method for data transmission provided by an embodiment of the present disclosure;
[0027] Figure 5 is another schematic diagram of a method for data transmission provided by an embodiment of the present disclosure;
[0028] Figure 6 is another schematic diagram of a method for data transmission provided by an embodiment of the present disclosure;
[0029] Figure 7It is a schematic diagram of another method for data transmission provided by an embodiment of the present disclosure;
[0030] Figure 8 It is a schematic diagram of another method for data transmission provided by an embodiment of the present disclosure;
[0031] Figure 9 It is a schematic diagram of another method for data transmission provided by an embodiment of the present disclosure;
[0032] Figure 10 It is a schematic diagram of a device for data transmission provided by an embodiment of the present disclosure. Detailed implementation manners
[0033] In order to more comprehensively understand the features and technical content of the embodiments of the present disclosure, the implementation of the embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. The accompanying drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical descriptions, for the sake of explanation, numerous details are provided to give a thorough understanding of the disclosed embodiments. However, one or more embodiments may still be implemented without these details. In other instances, well-known structures and devices may be shown in a simplified manner to simplify the drawings.
[0034] In the specification, claims and above-mentioned drawings of the embodiments of the present disclosure, the terms "first", "second", etc. are used to distinguish similar objects and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so as to implement the embodiments of the present disclosure described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion.
[0035] Unless otherwise specified, the term "plurality" means two or more.
[0036] In the embodiments of the present disclosure, the character " / " indicates that the objects before and after are in an "or" relationship. For example, A / B means: A or B.
[0037] The term "and / or" is a description of the associated relationship of objects and indicates that three relationships can exist. For example, A and / or B means: A or B, or, the three relationships of A and B.
[0038] The term "corresponding" may refer to an associated relationship or a binding relationship. A corresponding to B means that there is an associated relationship or a binding relationship between A and B.
[0039] At present, with the development of Internet of Things (IoT) technology, more and more IoT devices have entered people's lives, such as smart speakers, air conditioners, lights, water purifiers, etc. Users can control online IoT devices through terminal devices (such as mobile terminals). The commonly used method for determining whether an IoT device is online / offline is as follows: within a certain period of time, if the cloud server receives the heartbeat of the IoT device, it is considered that the IoT device is online. Within a certain period of time, if the cloud server does not receive the heartbeat of the IoT device, it is considered that the IoT device is offline. During the communication process between the IoT device and the cloud server, the router is used as the gateway to achieve data transmission.
[0040] As shown in Figure 1-1 When common IoT devices and non-IoT devices are connected to the router, they are connected through ordinary network protocols. When multiple connected devices (including IoT devices and non-IoT devices) send requests simultaneously, the router may experience network congestion problems, and data cannot be sent, resulting in the IoT device being considered offline. That is, although the IoT device is connected to the router, it is offline due to the limitations of the router.
[0041] As shown in Figure 1-2As shown in the figure, an embodiment of the present disclosure provides a connection method for an Internet of Things device and a non-Internet of Things device to a router. The non-Internet of Things device is connected to the router through a common network protocol, and the Internet of Things device is connected to the router through an anti-disconnection protection protocol. The anti-disconnection protection protocol includes a server and a client. The server is set in the router, and the client is set in the Internet of Things device. When multiple networked devices send requests simultaneously, the router puts the target data of the Internet of Things device into the priority sending queue according to the anti-disconnection protection protocol, and puts the target data of the non-Internet of Things device into the common sending queue according to the common network protocol. After the data in the priority sending queue is sent, the data in the common sending queue is sent, thereby reducing the possibility of the Internet of Things device dropping the line. Since there may be a problem that the target data is tampered with during the data transmission process. By adding a blockchain system and its distributed database to the router, the certificate for verifying the device type is stored in the distributed database. The server in the router is connected to the blockchain system and issues the certificate of the Internet of Things device to the blockchain system. The client in the Internet of Things device is connected to the blockchain system and obtains the certificate from the blockchain system. The Internet of Things device encrypts the target data through the certificate when sending the target data. When the router receives a data transmission request, it determines whether the device is an Internet of Things device by parsing the request data, and puts the target data obtained by decrypting the request data of the Internet of Things device into the priority sending queue. Since the blockchain system and the certificate can encrypt the target data to prevent tampering, the security of data transmission is improved while reducing the disconnection of the Internet of Things device. The connection method provided by the embodiment of the present disclosure can be realized only by the router and the Internet of Things device by updating their own firmware, without changing the hardware. For Internet of Things devices that do not require priority data transmission, the anti-disconnection protection protocol can be cancelled and regarded as non-Internet of Things devices.
[0042] Combined with Figure 2 As shown in the figure, an embodiment of the present disclosure provides a method for data transmission, including:
[0043] S220. When receiving a data transmission request, the router parses the request data.
[0044] S230. When it is determined that the request data carries a certificate issued by the blockchain system, the router determines that the device sending the data transmission request is an Internet of Things device.
[0045] S240. The router decrypts the request data to obtain the target data.
[0046] S250. The router puts the target data into the priority sending queue.
[0047] Using the method for data transmission provided by the embodiments of the present disclosure, when a router receives a data transmission request from a device, it parses the request data in the data transmission request to determine the information in the request data. When it is determined that the request data carries a certificate issued by a blockchain system, it is determined that the device sending the data transmission request is an Internet of Things device, and the data needs to be sent preferentially. The request data is decrypted to obtain the target data that actually needs to be sent. The target data is placed in a priority sending queue to avoid interrupting the current data sending process and prevent preempting the data sending priority of other Internet of Things devices. Since the target data of the Internet of Things device is placed in the priority sending queue, the sending priority of the target data is higher than that of non-Internet of Things devices, reducing the restriction of the router on the Internet of Things device during the communication process and thus reducing the possibility of the Internet of Things device dropping the line. Since the blockchain system and the certificate can encrypt and prevent tampering with the target data, the security of data transmission is improved while reducing the disconnection of the Internet of Things device.
[0048] Combined with Figure 3 As shown in the figure, the embodiments of the present disclosure provide another method for data transmission, including:
[0049] S221, when receiving a data transmission request, the router determines the set position of the certificate in the request data according to the anti-disconnection protection protocol.
[0050] S222, the router determines the data in the set position as the certificate information.
[0051] S223, the router determines whether the certificate information exists in the blockchain system.
[0052] S224, when the certificate information exists in the blockchain system, the router determines that the request data carries a certificate issued by the blockchain system.
[0053] S230, the router determines that the device sending the data transmission request is an Internet of Things device.
[0054] S241, the router determines the private key corresponding to the certificate carried in the request data.
[0055] S242, the router decrypts the request data through the private key to strip the certificate to obtain the target data.
[0056] S250, the router places the target data in the priority sending queue.
[0057] S251, when the target data is at the head of the priority sending queue, the router sends the target data to the corresponding network node.
[0058] S252, the router sends a data transmission request response to the Internet of Things device.
[0059] When using the method for data transmission provided by the embodiments of the present disclosure, in the case of receiving a data transmission request, according to the anti-disconnection protection protocol, the certificate information in the request data is determined. When the certificate information exists in the blockchain system, it is determined that the request data carries a certificate issued by the blockchain system, and the device sending the request data is an Internet of Things device. Since the request data contains a certificate, it is decrypted with the private key corresponding to the certificate (stored in the router) to obtain the target data to be actually sent. When the target data is at the head of the priority sending queue, the target data is sent to the corresponding network node and a data transmission request response is sent to the Internet of Things device, and the sending of the target data of the Internet of Things device is completed. Since the request data is encrypted data and needs to be decrypted before sending, the data transmission security is improved while reducing the disconnection of the Internet of Things device.
[0060] Combined with Figure 4 As shown in
[0061] S200, the router initializes the blockchain service.
[0062] S201, the router connects to the blockchain system.
[0063] S202, the router checks the validity periods of all certificates in the blockchain system.
[0064] S203, when it is determined that there are certificates whose validity periods meet the preset conditions, the router writes the alarm information of the Internet of Things device corresponding to the certificate into the blockchain system.
[0065] S210, when receiving a certificate application request sent by the blockchain system, the router determines the type of the application device according to the device information in the certificate application request.
[0066] S211, when the application device is an Internet of Things device, the router generates a certificate according to the device information.
[0067] S212, the router sends the certificate to the blockchain system.
[0068] S220, when receiving a data transmission request, the router parses the request data.
[0069] S230, when it is determined that the request data carries a certificate issued by the blockchain system, the router determines that the device sending the data transmission request is an Internet of Things device.
[0070] S240, the router decrypts the request data to obtain the target data.
[0071] S250, the router places the target data into the priority transmission queue.
[0072] Using the method for data transmission provided by the embodiments of the present disclosure, initialization is performed when starting to run, and connection is made with the blockchain system through the server. When the validity period of the certificate of an Internet of Things device in the blockchain system meets a preset condition, there is a risk that the certificate will expire, which may affect the data transmission of the corresponding Internet of Things device. By writing warning information into the blockchain system to remind the Internet of Things device, the possibility of the Internet of Things device going offline is reduced. When receiving a certificate application request sent by the blockchain system, there is a new device applying for anti-offline protection. When it is determined that the type of the device is an Internet of Things device, a certificate is generated according to the device information and sent to the blockchain system, so that the Internet of Things device carries the certificate when sending target data. Since a reminder is given when there is a risk of certificate expiration and verification is performed when the device applies for a certificate, the security of data transmission is improved.
[0073] For the determination in step S203 that there is a certificate whose validity period meets the preset condition, it is determined for the router that in the blockchain system, one or more certificates are about to expire or have expired.
[0074] Combined Figure 5 As shown, the embodiments of the present disclosure provide another method for data transmission, including:
[0075] S220, when receiving a data transmission request, the router parses the request data.
[0076] S230, when it is determined that the request data carries a certificate issued by the blockchain system, the router determines that the device sending the data transmission request is an Internet of Things device.
[0077] S240, the router decrypts the request data to obtain the target data.
[0078] S250, the router places the target data into the priority transmission queue.
[0079] S260, when receiving a certificate update request, the router generates a new certificate according to the device information in the certificate update request.
[0080] S261, the router sends the new certificate to the blockchain system.
[0081] S270, when receiving a certificate revocation request, the router determines the corresponding revoked certificate according to the device information in the certificate revocation request.
[0082] S271, the router deletes the revoked certificate from the blockchain system.
[0083] Using the method for data transmission provided by the embodiments of the present disclosure, when a certificate update request is received, there is a risk that the certificate of the Internet of Things device expires and a new certificate is required. A new certificate is generated based on the device information and sent to the blockchain system, improving the security of certificate issuance. When a certificate revocation request is received, the data of the Internet of Things device does not need to be sent preferentially. By deleting the revoked certificate from the blockchain system, the space occupied by the Internet of Things device in the blockchain system and the data transmission priority are reduced, improving the data transmission efficiency.
[0084] As shown in combination with Figure 6 Another method for data transmission provided by the embodiments of the present disclosure includes:
[0085] S320. When it is necessary to send target data, the Internet of Things device encrypts the target data using the certificate issued by the blockchain system to obtain request data.
[0086] S330. The Internet of Things device generates a data transmission request according to the request data.
[0087] S340. The Internet of Things device sends the data transmission request to the router.
[0088] Using the method for data transmission provided by the embodiments of the present disclosure, when the Internet of Things device needs to send target data, it encrypts the target data using the certificate issued by the blockchain system to obtain request data, and sends the data transmission request generated according to the request data to the router. Since the blockchain system and the certificate are used to encrypt the target data to prevent tampering, the data transmission security is improved while reducing the disconnection of the Internet of Things device.
[0089] As shown in combination with Figure 7 Another method for data transmission provided by the embodiments of the present disclosure includes:
[0090] S300. The Internet of Things device initializes the blockchain service.
[0091] S301. The Internet of Things device connects to the blockchain system.
[0092] S302. When in anti-disconnection protection, the Internet of Things device updates the device information in the blockchain system.
[0093] S303. When an alarm message is received, the Internet of Things device processes the alarm message and executes step S321.
[0094] S310. When it is necessary to apply for a certificate, the Internet of Things device sends the device information to the blockchain system.
[0095] S311. When receiving the application certificate response, the IoT device obtains the certificate from the blockchain system.
[0096] S321. When it is necessary to send the target data, the IoT device determines the set position of the certificate according to the anti-disconnection protection protocol.
[0097] S322. The IoT device adds the certificate to the target data according to the set position to obtain the request data.
[0098] S330. The IoT device generates a data transmission request according to the request data.
[0099] S340. The IoT device sends the data transmission request to the router.
[0100] Adopting the method for data transmission provided by the embodiment of the present disclosure, initialization is performed at the start of operation, and connection is made with the blockchain system through the client. When receiving the alarm information, there may be a risk of certificate expiration, and the alarm information is processed to determine that a prompt is received. When it is necessary to apply for a certificate, the device information is sent to the blockchain system so that the router generates the corresponding certificate. When the blockchain system determines that there is no certificate corresponding to the device information, it sends a certificate application request to the router. When receiving the application certificate response, the router has sent the generated certificate to the blockchain system, and the certificate is obtained from the blockchain system to improve the security of the certificate. When it is necessary to send the target data, the certificate is added to achieve encryption. Since the alarm information is received when there is a risk of certificate expiration, encryption is performed through the certificate when sending the target data to improve the security of data transmission.
[0101] Combined with Figure 8 As shown in the figure, the embodiment of the present disclosure provides another method for data transmission, including:
[0102] S320. When it is necessary to send the target data, the IoT device encrypts the target data using the certificate issued by the blockchain system to obtain the request data.
[0103] S330. The IoT device generates a data transmission request according to the request data.
[0104] S340. The IoT device sends the data transmission request to the router.
[0105] S350. The IoT device checks the validity period of the certificate.
[0106] S351. When it is determined that the validity period of the certificate meets the preset conditions, the IoT device sends a certificate update request to the router and deletes the certificate.
[0107] S352, The IoT device obtains a new certificate from the blockchain system.
[0108] S360, In the case where the certificate needs to be revoked, the IoT device sends a certificate revocation request to the router and deletes the certificate.
[0109] Using the method for data transmission provided by the embodiments of the present disclosure, when it is determined that the validity period of the certificate meets the preset conditions, there is a risk of certificate expiration, and a certificate update request is sent to the router to obtain a new certificate. In the case where the certificate needs to be revoked, the IoT device no longer needs to give priority to sending data, and sends a certificate revocation request to the router to reduce its own occupied priority, thereby improving the efficiency of data transmission.
[0110] For determining in step S351 that the validity period of the certificate meets the preset conditions, it is determined for the IoT device that the certificate is about to expire or has expired.
[0111] Combined with Figure 9 As shown, the embodiments of the present disclosure provide another method for data transmission, including:
[0112] S202, The router connects to the blockchain system.
[0113] S302, The IoT device connects to the blockchain system.
[0114] S310, The IoT device sends device information to the blockchain system.
[0115] S212, The router sends the certificate to the blockchain system.
[0116] S311, The IoT device obtains a certificate from the blockchain system.
[0117] S320, The IoT device encrypts the target data using the certificate issued by the blockchain system to obtain the request data.
[0118] S330, The IoT device generates a data transmission request according to the request data.
[0119] S340, The IoT device sends the data transmission request to the router.
[0120] S230, The router determines that the device sending the data transmission request is the IoT device.
[0121] S240, The router decrypts the request data to obtain the target data.
[0122] S251, The router sends the target data to the corresponding network node.
[0123] S252, The router sends a data transmission request response to the IoT device.
[0124] Using the method for data transmission provided by the embodiments of the present disclosure, when the router receives a data transmission request from a device, it parses the request data in the data transmission request to determine the information in the request data. When it is determined that the request data carries a certificate issued by the blockchain system, it is determined that the device sending the data transmission request is an Internet of Things device, and the data needs to be sent preferentially. The request data is decrypted to obtain the target data that actually needs to be sent. The target data is placed in the priority sending queue to avoid interrupting the current data sending process and prevent preempting the sending priority of other Internet of Things devices. Since the target data of the Internet of Things device is placed in the priority sending queue, the sending priority of the target data is higher than that of non-Internet of Things devices, reducing the restriction of the router on the communication process of the Internet of Things device and thus reducing the possibility of the Internet of Things device dropping offline. Since the blockchain system and the certificate can encrypt the target data to prevent tampering, the security of data transmission is improved while reducing the offline of the Internet of Things device.
[0125] Combined with Figure 10 As shown, the embodiments of the present disclosure provide a device for data transmission, including a processor 41 and a memory 42. Optionally, the device may further include a communication interface 43 and a bus 44. Among them, the processor 41, the communication interface 43, and the memory 42 can complete mutual communication through the bus 44. The communication interface 43 can be used for information transmission. The processor 41 can call the logical instructions in the memory 42 to execute the method for data transmission in the above embodiments.
[0126] In addition, when the logical instructions in the above-mentioned memory 42 are implemented in the form of software function units and sold or used as an independent product, they can be stored in a computer-readable storage medium.
[0127] The memory 42, as a storage medium, can be used to store software programs and computer-executable programs, such as the program instructions / modules corresponding to the method in the embodiments of the present disclosure. The processor 41 executes functional applications and data processing by running the program instructions / modules stored in the memory 42, that is, implements the method for data transmission in the above embodiments.
[0128] The memory 42 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the terminal device, etc. In addition, the memory 42 may include a high-speed random access memory and may also include a non-volatile memory.
[0129] An embodiment of the present disclosure provides a router, which includes the above-described device for data transmission.
[0130] An embodiment of the present disclosure provides an Internet of Things device, which includes the above-described device for data transmission.
[0131] An embodiment of the present disclosure provides a storage medium storing computer-executable instructions, and the computer-executable instructions are configured to execute the above-described method for data transmission.
[0132] The above storage medium may be a transient computer-readable storage medium or a non-transient computer-readable storage medium.
[0133] The technical solution of an embodiment of the present disclosure may be embodied in the form of a software product. The computer software product is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure. The foregoing storage medium may be a non-transient storage medium, including: various media that can store program codes such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk, or an optical disc, or may also be a transient storage medium.
[0134] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure, enabling those skilled in the art to practice them. Other embodiments may include structural, logical, electrical, process, and other changes. The embodiments only represent possible variations. Unless explicitly required, the individual components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the terms used in this application are only for describing the embodiments and do not limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates otherwise, the singular forms "a", "an", and "the" are intended to also include the plural forms. Similarly, as used in this application, the term "and / or" refers to any and all possible combinations of one or more of the associated listed items. Additionally, when used in this application, the term "comprise" and its variants "comprises" and / or "comprising" etc. mean the presence of the stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or groups of these. Without further limitation, an element defined by the statement "comprising one..." does not exclude the presence of additional identical elements in the process, method, or device comprising the element. In this article, each embodiment may focus on the differences from other embodiments, and the same or similar parts among the embodiments may be referred to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method parts disclosed in the embodiments, the relevant parts may refer to the description of the method parts.
[0135] Those skilled in the art will realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner may depend on the specific application and design constraints of the technical solution. The skilled person may use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of the embodiments of the present disclosure. The skilled person can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be repeated here.
[0136] In the embodiments disclosed in this document, the disclosed methods, products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units can be merely a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Additionally, the shown or discussed couplings or direct couplings or communication connections between each other can be through some interfaces. The indirect coupling or communication connection of the devices or units can be in electrical, mechanical, or other forms. The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to implement this embodiment. Additionally, in the embodiments of the present disclosure, the various functional units can be integrated in one processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.
[0137] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to the embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram can represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions marked in the block can occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, which can depend on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different blocks can also occur in a different order than that disclosed in the description. Sometimes, there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, which can depend on the functions involved. Each block in the block diagram and / or flowchart, as well as the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for data transmission, characterized in that, Including: When receiving a data transmission request, parsing the request data; When determining that the request data carries a certificate issued by the blockchain system, determining the device that sent the data transmission request as an Internet of Things device; Decrypting the request data to obtain the target data; Putting the target data into the priority sending queue; Among them, parsing the request data includes: determining the set position of the certificate in the request data according to the anti-disconnection protection protocol; determining the data in the set position as the certificate information.
2. The method according to claim 1, characterized in that, Decrypting the request data to obtain the target data includes: Determining the private key corresponding to the certificate carried by the request data; Decrypting and stripping the certificate from the request data through the private key to obtain the target data.
3. The method according to claim 1, characterized in that, Determining that the request data carries a certificate issued by the blockchain system includes: Determining whether the certificate information exists in the blockchain system; When the certificate information exists in the blockchain system, determining that the request data carries a certificate issued by the blockchain system.
4. The method according to claim 1, characterized in that, Before parsing the request data, it also includes: When receiving a certificate application request sent by the blockchain system, determining the type of the application device according to the device information in the certificate application request; When the application device is an Internet of Things device, generating a certificate according to the device information; Sending the certificate to the blockchain system.
5. A method for data transmission, characterized in that, Including: When the target data needs to be sent, the Internet of Things device encrypts the target data with the certificate issued by the blockchain system to obtain the request data; Generating a data transmission request according to the request data; Sending the data transmission request to the router so that when the router receives the data transmission request, it parses the request data; when determining that the request data carries a certificate issued by the blockchain system, determining the device that sent the data transmission request as an Internet of Things device; decrypting the request data to obtain the target data; Putting the target data into the priority sending queue; Among them, encrypting the target data with the certificate issued by the blockchain system to obtain the request data includes: determining the set position of the certificate according to the anti-disconnection protection protocol; adding the certificate to the target data according to the set position to obtain the request data.
6. A device for data transmission, comprising a processor and a memory storing program instructions, characterized in that, The processor is configured to execute the method for data transmission according to any one of claims 1 to 5 when running the program instructions.
7. A router, comprising a processor and a memory storing program instructions, characterized in that, The processor is configured to execute the method for data transmission according to any one of claims 1 to 4 when running the program instructions.
8. An Internet of Things device, comprising a processor and a memory storing program instructions, characterized in that, The processor is configured to execute the method for data transmission according to claim 5 when running the program instructions.
Citation Information
Patent Citations
Internet of Things equipment safety communication method and system
CN112332975A
Block chain-based forestry Internet of Things equipment authorization authentication access control method
CN113507370A
Method and device for network distribution of Internet of Things equipment, router and Internet of Things equipment
CN113923241A