CN111669448A - Information interaction method and device for Internet of things equipment, storage medium and device - Google Patents

Information interaction method and device for Internet of things equipment, storage medium and device Download PDF

Info

Publication number
CN111669448A
CN111669448A CN202010616091.7A CN202010616091A CN111669448A CN 111669448 A CN111669448 A CN 111669448A CN 202010616091 A CN202010616091 A CN 202010616091A CN 111669448 A CN111669448 A CN 111669448A
Authority
CN
China
Prior art keywords
information
certificate
equipment
internet
things
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010616091.7A
Other languages
Chinese (zh)
Other versions
CN111669448B (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.)
Suzhou 360 Intelligent Security Technology Co Ltd
Original Assignee
Suzhou 360 Intelligent Security Technology 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 Suzhou 360 Intelligent Security Technology Co Ltd filed Critical Suzhou 360 Intelligent Security Technology Co Ltd
Priority to CN202010616091.7A priority Critical patent/CN111669448B/en
Publication of CN111669448A publication Critical patent/CN111669448A/en
Application granted granted Critical
Publication of CN111669448B publication Critical patent/CN111669448B/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/14Session management
    • H04L67/141Setup of application sessions
    • 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

Abstract

The invention relates to the technical field of information interaction of Internet of things equipment, and discloses an information interaction method, equipment, a storage medium and a device of the Internet of things equipment. When a connection request of the equipment of the Internet of things to be connected is received, an equipment certificate is extracted from the connection request; analyzing the equipment certificate to obtain an equipment identifier in the equipment certificate; determining the equipment information of the equipment of the Internet of things to be connected according to the equipment identification; and performing information interaction on the basis of the equipment information and the to-be-connected Internet of things equipment, thereby directly obtaining the equipment information of each to-be-connected Internet of things equipment from the equipment certificate, realizing interaction of the to-be-connected Internet of things equipment corresponding to different interface protocols, and improving the compatibility of Internet of things equipment interaction.

Description

Information interaction method and device for Internet of things equipment, storage medium and device
Technical Field
The invention relates to the technical field of information interaction of Internet of things equipment, in particular to an information interaction method, equipment, a storage medium and a device of the Internet of things equipment.
Background
The CA center adopts a digital Certificate authentication technology which is based on a digital encryption technology, and through the digital Certificate, the CA center can perform various processes such as encryption, decryption, digital signature and signature authentication on various information transmitted on the internet, and can also ensure that the content cannot be invaded by lawbreakers during the digital transmission process, or even if the content cannot be viewed.
There are some certificates in Internet of Things (IoT) devices, but the descriptions of the devices in these certificates are managed by using a uniform certificate, but because IoT devices have various different transmission protocols, the data interaction process of the IoT devices is limited.
Disclosure of Invention
The invention mainly aims to provide an information interaction method, information interaction equipment, a storage medium and an information interaction device of equipment of the Internet of things, and aims to improve the compatibility of the interaction of the equipment of the Internet of things.
In order to achieve the above object, the present invention provides an information interaction method for an internet of things device, including the following steps:
when a connection request of the to-be-connected Internet of things equipment is received, extracting an equipment certificate from the connection request;
analyzing the equipment certificate to obtain an equipment identifier in the equipment certificate;
determining the equipment information of the equipment of the Internet of things to be connected according to the equipment identification;
and carrying out information interaction with the Internet of things equipment to be connected based on the equipment information.
Optionally, the analyzing the device certificate to obtain the device identifier in the device certificate includes:
analyzing the equipment certificate to obtain analyzed certificate information;
comparing the analyzed certificate information with preset extension keywords, and obtaining a certificate extension field in the analyzed certificate information according to a comparison result;
and obtaining the equipment identifier in the equipment certificate according to the certificate extension field.
Optionally, before the analyzed certificate information is compared with a preset extension keyword, and a certificate extension field in the analyzed certificate information is obtained according to a comparison result, the method further includes:
judging the certificate type of the analyzed certificate information;
obtaining the current certificate type corresponding to the analyzed certificate information according to the judgment result;
and searching a corresponding preset expansion keyword in a preset expansion keyword mapping table according to the current certificate type.
Optionally, before searching for the corresponding preset extended keyword in the preset extended keyword mapping table according to the current certificate type, the method further includes:
acquiring a historical certificate type;
searching historical extension field information corresponding to the historical certificate type, and determining a historical extension keyword according to the historical extension field information;
and establishing a preset expansion keyword mapping table according to the corresponding relation between the historical certificate type and the historical expansion keywords.
Optionally, before extracting a device certificate from the connection request when the connection request of the to-be-connected internet-of-things device is received, the method further includes:
when a certificate write-in instruction is received, extracting the extended area information and the corresponding equipment identification in the certificate write-in instruction;
extracting standard certificate information in the certificate writing instruction, and acquiring certificate data structure information in the standard certificate information;
expanding the certificate data structure information according to the expanded area information to obtain expanded standard certificate information;
and writing the equipment identification into the extended area information in the extended standard certificate information to obtain an equipment certificate.
Optionally, before the expanding the certificate data structure information according to the expanded area information to obtain expanded standard certificate information, the method further includes:
when an extended area adjusting instruction is received, updating the extended area information according to the extended area adjusting instruction to obtain updated extended area information;
the expanding the certificate data structure information according to the expanded area information to obtain expanded standard certificate information includes:
and expanding the certificate data structure information according to the updated expanded area information to obtain expanded standard certificate information.
Optionally, before obtaining the device certificate according to the extended area information in the extended standard certificate information in which the device identifier is written, the method further includes:
when an equipment identifier adjusting instruction is received, updating the equipment identifier according to the equipment identifier adjusting instruction to obtain an updated equipment identifier;
the writing the device identifier into extended area information in the extended standard certificate information to obtain a device certificate includes:
and writing the updated equipment identifier into the extended area information in the extended standard certificate information to obtain an equipment certificate.
Optionally, the device information includes: device type information;
the information interaction is carried out on the basis of the equipment information and the to-be-connected Internet of things equipment, and the information interaction comprises the following steps:
and performing information interaction with the to-be-connected Internet of things equipment based on the equipment type information.
Optionally, the performing information interaction with the to-be-connected internet of things device based on the device type information includes:
acquiring the equipment type information of the equipment of the Internet of things to be connected;
determining target interaction protocol information according to the equipment type information;
acquiring current interactive protocol information, and judging whether the current interactive protocol information is consistent with the target interactive protocol information;
when the current interactive protocol information is inconsistent with the target interactive protocol information, adjusting the current interactive protocol information into the target interactive protocol information;
and carrying out information interaction with the to-be-connected Internet of things equipment based on the target interaction protocol information.
Optionally, the device information includes: device capability information;
the information interaction is carried out on the basis of the equipment information and the to-be-connected Internet of things equipment, and the information interaction comprises the following steps:
and carrying out information interaction with the Internet of things equipment to be connected based on the equipment capability information.
Optionally, the performing information interaction with the to-be-connected internet of things device based on the device capability information includes:
acquiring equipment capacity information of the to-be-connected Internet of things equipment;
determining target support function information according to the equipment capability information;
judging whether the current opened function information is consistent with the target support function information or not;
when the current opened function information is inconsistent with the target support function information, adjusting the current opened function information to the target support function information;
and carrying out information interaction with the equipment of the Internet of things to be connected based on the target support function information.
Optionally, before performing information interaction with the to-be-connected internet of things device based on the target support function information, the method includes:
performing function distribution on the to-be-connected Internet of things equipment based on the target support function information to obtain the to-be-connected Internet of things equipment with distributed functions;
and performing information interaction with the to-be-connected Internet of things equipment after function distribution based on the target support function information.
Optionally, before performing information interaction with the to-be-connected internet of things device based on the device information, the method includes:
acquiring the use time of the equipment certificate;
obtaining the validity time of the equipment certificate according to the use time;
judging whether the current time exceeds the valid period time;
and when the current time exceeds the valid period time, executing the step of carrying out information interaction with the to-be-connected Internet of things equipment based on the equipment information.
Optionally, before performing information interaction with the to-be-connected internet of things device based on the device information, the method includes:
performing security verification on the equipment to be connected and the Internet of things equipment according to the equipment certificate to obtain a verification result;
when the verification result is that the verification is successful, a secure interaction channel is established with the to-be-connected Internet of things equipment;
the information interaction is carried out on the basis of the equipment information and the to-be-connected Internet of things equipment, and the information interaction comprises the following steps:
and carrying out information interaction with the to-be-connected Internet of things equipment according to the secure interaction channel and the equipment information.
In addition, in order to achieve the above object, the present invention further provides an information interaction apparatus for an internet of things device, where the information interaction apparatus for the internet of things device includes:
the extraction module is used for extracting the equipment certificate from the connection request when receiving the connection request of the equipment of the Internet of things to be connected;
the analysis module is used for analyzing the equipment certificate to obtain an equipment identifier in the equipment certificate;
the determining module is used for determining the equipment information of the equipment of the Internet of things to be connected according to the equipment identification;
and the interaction module is used for carrying out information interaction with the to-be-connected Internet of things equipment based on the equipment information.
Optionally, the parsing module is further configured to parse the device certificate to obtain parsed certificate information;
comparing the analyzed certificate information with preset extension keywords, and obtaining a certificate extension field in the analyzed certificate information according to a comparison result;
and obtaining the equipment identifier in the equipment certificate according to the certificate extension field.
Optionally, the parsing module is further configured to perform certificate type judgment on the parsed certificate information;
obtaining the current certificate type corresponding to the analyzed certificate information according to the judgment result;
and searching a corresponding preset expansion keyword in a preset expansion keyword mapping table according to the current certificate type.
Optionally, the information interaction apparatus of the internet of things device further includes: an extended keyword mapping table establishing module;
the extended keyword mapping table establishing module is used for acquiring a historical certificate type;
searching historical extension field information corresponding to the historical certificate type, and determining a historical extension keyword according to the historical extension field information;
and establishing a preset expansion keyword mapping table according to the corresponding relation between the historical certificate type and the historical expansion keywords.
In addition, in order to achieve the above object, the present invention further provides an information interaction device of an internet of things device, where the information interaction device of the internet of things device includes: the information interaction program of the internet of things equipment is executed by the processor to realize the steps of the information interaction method of the internet of things equipment.
In addition, in order to achieve the above object, the present invention further provides a storage medium, where an information interaction program of an internet of things device is stored on the storage medium, and when executed by a processor, the information interaction program of the internet of things device implements the steps of the information interaction method of the internet of things device as described above.
According to the technical scheme provided by the invention, when a connection request of the to-be-connected Internet of things equipment is received, an equipment certificate is extracted from the connection request; analyzing the equipment certificate to obtain an equipment identifier in the equipment certificate; determining the equipment information of the equipment of the Internet of things to be connected according to the equipment identification; and performing information interaction on the basis of the equipment information and the to-be-connected Internet of things equipment, thereby directly obtaining the equipment information of each to-be-connected Internet of things equipment from the equipment certificate, realizing interaction of the to-be-connected Internet of things equipment corresponding to different interface protocols, and improving the compatibility of Internet of things equipment interaction.
Drawings
Fig. 1 is a schematic structural diagram of an information interaction device of an internet of things device in a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a first embodiment of an information interaction method of the internet of things device according to the present invention;
fig. 3 is a network topology diagram of the internet of things according to an embodiment of the information interaction method of the internet of things device of the invention;
fig. 4 is a schematic network structure diagram of an information interaction method of an internet of things device according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of a second embodiment of an information interaction method for internet of things equipment according to the present invention;
fig. 6 is a schematic flow chart of an information interaction method for internet of things equipment according to a third embodiment of the invention;
fig. 7 is a block diagram of a first embodiment of an information interaction device of an internet of things device according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an information interaction device of an internet of things device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the information interaction device of the internet of things device may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), the optional user interface 1003 may also include a standard wired interface and a wireless interface, and the wired interface of the user interface 1003 may be a Universal Serial Bus (USB) interface in the present invention. The network interface 1004 may optionally include a standard wired interface as well as a wireless interface (e.g., WI-FI interface). The Memory 1005 may be a high speed Random Access Memory (RAM); or a stable Memory, such as a Non-volatile Memory (Non-volatile Memory), and may be a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the information interaction device of the internet of things device, and may include more or less components than those shown, or combine certain components, or arrange different components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an information interaction program of the internet of things device.
In the information interaction device of the internet of things device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting peripheral equipment; the information interaction device of the internet of things device calls the information interaction program of the internet of things device stored in the memory 1005 through the processor 1001, and executes the information interaction method of the internet of things device provided by the embodiment of the invention.
Based on the hardware structure, the embodiment of the information interaction method of the Internet of things equipment is provided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of an information interaction method for internet of things equipment according to the present invention.
In a first embodiment, the information interaction method for the internet of things equipment includes the following steps:
step S10: when a connection request of the to-be-connected Internet of things equipment is received, an equipment certificate is extracted from the connection request.
It should be noted that, an execution subject of the embodiment is information interaction equipment of the internet of things equipment, and may also be other equipment that can achieve the same or similar functions.
In this embodiment, the to-be-connected internet-of-things device is an intelligent internet-of-things device supporting different interface protocols, and includes an air conditioner, a television, and the like, and may further include other devices capable of being connected to a network.
In a specific implementation, when the to-be-connected internet-of-things equipment needs to be managed in the internet of things, each to-be-connected internet-of-things equipment needs to be connected, and under a general condition, as a connection request of each to-be-connected internet-of-things equipment carries an equipment certificate, the to-be-connected internet-of-things equipment can be connected with the equipment certificate carried by each to-be-connected internet-of-things equipment through the equipment certificate, namely, the to-be-connected internet-of-things equipment is subjected to security verification according to the; when the verification result is that the verification is successful, a secure interaction channel is established with the to-be-connected Internet of things equipment; and performing information interaction with the to-be-connected internet-of-things device according to the secure interaction channel and the device information, conversely, when the verification result is verification failure, it indicates that the current device certificate is a tampered certificate or a failed certificate, and therefore, the to-be-connected internet-of-things device cannot be connected, and corresponding warning can be performed, so that the security of network interaction is improved, for example, authentication failure information is fed back to the to-be-connected internet-of-things device, so that the to-be-connected internet-of-things device performs message reminding on a user according to the authentication failure information, and reminding can be performed in other manners.
It is understood that, in order to realize the identification of the certificate of failure, the usage time of the device certificate can be obtained; obtaining the validity time of the equipment certificate according to the use time; judging whether the current time exceeds the valid period time; the step S40 is executed when the current time exceeds the validity time, where the device certificate in this embodiment is provided with the use time of the certificate, for example, the generation time of the current certificate is 2020, 1 and 30 days, since the validity time can be obtained according to the generation time of the certificate in general cases, for example, if the validity time is one year, the current validity time is from 2020, 1 and 30 days to 2021, 1 and 30 days, and when the current time is 2020, 4 and 5 days, the current device certificate is still within the validity time, the interaction using the current device certificate can be continued, and when the current time is 2021, 4 and 5 days, the current device certificate is invalidated, in which case, the current device-related certificate needs to be revoked, so as to ensure the security of the interaction between the internet-of things devices.
In specific implementation, the valid period can be set while generating the device certificate, and when the valid period is reached, the device certificate is revoked and revocation reminding is performed, that is, the current certificate is expired and other reminding information is performed, so that the device certificate is conveniently updated in time.
Step S20: and analyzing the equipment certificate to obtain the equipment identifier in the equipment certificate.
It should be noted that, because the device certificate in this embodiment includes the device identifier, the device identifier in the device certificate is obtained by parsing the device certificate, and the identification of each device of the internet of things to be connected can be realized through the device identifier.
In this embodiment, the device certificate includes device type information and device capability information, and may further include other information, which is not limited in this embodiment, as shown in a schematic network structure diagram shown in fig. 4, the internet of things devices in the home area include a television, an air conditioner, and the like, the television and the air conditioner perform information interaction with the control center through a gateway, and the device Identifier may be in the form of an Object Identifier (OID), and may also be in another form, which is not limited in this embodiment, which is described in this embodiment by taking the OID form as an example, for example, 1.2.3.4.x.y, where X ═ 1 represents a device type, and X ═ 2 represents a device capability, so as to implement identification of the internet of things devices of different interface protocols.
Step S30: and determining the equipment information of the equipment of the Internet of things to be connected according to the equipment identification.
In this embodiment, the device information may be device type information, and may also be device capability information, the device information of the to-be-connected internet-of-things device is determined by the device identifier, for example, when X in the device identifier is 1, the device type information is included, where the device type information is different from the device capability information, that is, when X in the device identifier is 1, the device type information is represented, and when X is 2, the device capability information is represented, and then after the device type information is determined, Y is further identified, for example, X is 1, Y is 123, that is 1.2.3.4.1.123, it is indicated that the to-be-connected internet-of-things device is a television, and when X is 1, Y is 124, that is 1.2.3.4.1.124, it is indicated that the to-be-connected internet-of-things device is an air conditioner, so that accuracy of identification of the to-be-connected device is achieved.
Step S40: and carrying out information interaction with the Internet of things equipment to be connected based on the equipment information.
In a specific implementation, the device information includes: the equipment type information, equipment type information is the kind of equipment, for example TV or air conditioner, can discern the type of equipment through equipment information to the discernment of the thing networking equipment of waiting to connect is realized, based on equipment information with the thing networking equipment of waiting to connect carries out information interaction, includes: based on the equipment type information and the to-be-connected Internet of things equipment, carrying out information interaction, specifically:
acquiring the equipment type information of the equipment of the Internet of things to be connected; determining target interaction protocol information according to the equipment type information; acquiring current interactive protocol information, and judging whether the current interactive protocol information is consistent with the target interactive protocol information; when the current interactive protocol information is inconsistent with the target interactive protocol information, adjusting the current interactive protocol information into the target interactive protocol information; and carrying out information interaction with the to-be-connected Internet of things equipment based on the target interaction protocol information.
In this embodiment, the device type information of the to-be-connected internet-of-things device is acquired, and the target interaction protocol information is determined according to the device type information, where the target interaction protocol information may be a wireless interaction protocol, a bluetooth interaction protocol, and the like, and may also be an interaction protocol in other forms.
In another embodiment, the device information includes: the device capability information may be supported device function information, for example, an air conditioner supports a cooling function and a heating function, a television supports a remote controller and a channel switching function, and may also be other device function information, which is not limited in this embodiment. In this embodiment, a cooling function of an air conditioner is taken as an example for explanation, for example, device information is 1.2.3.4.2.456, where X is 2 and Y is 456 and is cooling, so as to realize identification of the device capability information, where the information interaction with the to-be-connected internet of things device based on the device information includes: based on the equipment capability information and the to-be-connected Internet of things equipment, carrying out information interaction, specifically:
acquiring equipment capacity information of the to-be-connected Internet of things equipment; determining target support function information according to the equipment capability information; judging whether the current opened function information is consistent with the target support function information or not; when the current opened function information is inconsistent with the target support function information, adjusting the current opened function information to the target support function information; and carrying out information interaction with the equipment of the Internet of things to be connected based on the target support function information.
In this embodiment, device capability information of the to-be-connected internet-of-things device is acquired; the method comprises the steps of determining target support function information according to the equipment capacity information, for example, obtaining a refrigeration function supported by the to-be-connected Internet of things equipment according to the equipment capacity information, and then distributing the refrigeration function to the to-be-connected Internet of things equipment, so that the distribution of the functions of the to-be-connected Internet of things equipment is realized.
In an embodiment, before the information interaction with the to-be-connected internet of things device based on the target support function information, the method includes:
performing function distribution on the to-be-connected Internet of things equipment based on the target support function information to obtain the to-be-connected Internet of things equipment with distributed functions; and performing information interaction with the to-be-connected Internet of things equipment after function distribution based on the target support function information.
In this embodiment, functions supported by the to-be-connected internet of things device, that is, device capability information, can be obtained according to the device information, so that the to-be-connected internet of things device can be subjected to function allocation according to the device capability information, and it is ensured that control information of the to-be-connected internet of things device is a function supported by the to-be-connected internet of things device, for example, when a television support switch function is obtained through the device information, the television can be controlled to be turned on or turned off according to the supported switch function, so that control over various to-be-connected internet of things devices is realized.
According to the scheme, when a connection request of the to-be-connected Internet of things equipment is received, the equipment certificate is extracted from the connection request; analyzing the equipment certificate to obtain an equipment identifier in the equipment certificate; determining the equipment information of the equipment of the Internet of things to be connected according to the equipment identification; and performing information interaction on the basis of the equipment information and the to-be-connected Internet of things equipment, thereby directly obtaining the equipment information of each to-be-connected Internet of things equipment from the equipment certificate, realizing interaction of the to-be-connected Internet of things equipment corresponding to different interface protocols, and improving the compatibility of Internet of things equipment interaction.
Referring to fig. 5, fig. 5 is a flowchart illustrating a second embodiment of the information interaction method for the internet of things device according to the present invention, and the second embodiment of the information interaction method for the internet of things device according to the present invention is provided based on the first embodiment illustrated in fig. 2.
In the second embodiment, the step S20 includes:
step S201, the device certificate is analyzed to obtain analyzed certificate information.
It should be noted that, because the device certificate is a certificate after being encrypted, in order to facilitate analysis of the device certificate, the device certificate may be analyzed to obtain analyzed certificate information, for example, a decryption key is obtained, and the device certificate is decrypted by the decryption key, so as to implement analysis of the device certificate, and the device certificate may also be analyzed by other manners, which is not limited in this embodiment.
Step S202, comparing the analyzed certificate information with preset extension keywords, and obtaining a certificate extension field in the analyzed certificate information according to a comparison result.
In this embodiment, the preset extended keyword may be a subjectAltName, and may also be an extended keyword in other forms.
In specific implementation, the analyzed certificate information is compared with the subjectAltName, and the certificate extension field in the analyzed certificate information is obtained according to the comparison result, so that identification of the extension field is realized.
Step S203, obtaining the equipment identification in the equipment certificate according to the certificate extension field.
In this embodiment, the device identifier is managed through a certificate extension field in the certificate information, that is, the objectaltname carries the device identifier whose OID is 1.2.3.4.x.y, so that the device information of the device in the internet of things to be connected is marked through the extension field, and the device in the internet of things to be connected can be directly and automatically identified through the device information.
In an embodiment, before the step S202, the method further includes:
judging the certificate type of the analyzed certificate information; obtaining the current certificate type corresponding to the analyzed certificate information according to the judgment result; and searching a corresponding preset expansion keyword in a preset expansion keyword mapping table according to the current certificate type.
It should be noted that, because the types of certificates supported by different devices of the internet of things to be connected are different, for example, the device of the internet of things to be connected supports an x.509v3 certificate or the device of the internet of things to be connected supports a CA certificate, and the preset extension keywords corresponding to different certificate types are also different, in order to improve the accuracy of identifying the extension keywords, by performing certificate type judgment on the analyzed certificate information, for example, when the certificate type is an x.509v3 certificate, a current certificate type corresponding to the analyzed certificate information is obtained according to a judgment result, and a corresponding preset extension keyword is searched in a preset extension keyword mapping table according to the current certificate type, for example, the extension keyword corresponding to an x.509v3 certificate is subjectalname, so as to obtain an accurate certificate extension field.
In an embodiment, before the searching for the corresponding preset extended keyword in the preset extended keyword mapping table according to the current certificate type, the method further includes:
acquiring a historical certificate type; searching historical extension field information corresponding to the historical certificate type, and determining a historical extension keyword according to the historical extension field information; and establishing a preset expansion keyword mapping table according to the corresponding relation between the historical certificate type and the historical expansion keywords.
In this embodiment, in order to improve the efficiency of identifying the certificate extension field, a preset extension key mapping table may be pre-established, corresponding extension field information may be obtained according to the certificate type by looking up a table, specifically, a corresponding relationship between the history certificate type and the corresponding history extension field information is obtained according to the history certificate type and the corresponding history extension field information, and the preset extension key mapping table is established according to the corresponding relationship between the history certificate type and the corresponding history extension field information, so as to implement establishment of the preset extension key mapping table.
According to the scheme, the corresponding preset expansion keywords are searched in the preset expansion keyword mapping table according to the identification of the certificate type, so that the certificate expansion field is obtained according to the preset expansion keywords, and the intelligent identification of the equipment certificate is realized.
Referring to fig. 6, fig. 6 is a schematic flow chart of a third embodiment of the information interaction method for the internet of things device of the present invention, and the third embodiment of the information interaction method for the internet of things device of the present invention is proposed based on the first embodiment or the second embodiment.
In the third embodiment, before the step S10, the method further includes:
step S101, when receiving a certificate writing instruction, extracting the extended area information and the corresponding device identifier in the certificate writing instruction.
It should be noted that the certificate write instruction is to perform certificate extension on a standard certificate, so that custom setting can be performed in an extension area, for example, writing an equipment identifier in a custom extension area, so as to obtain an extended equipment certificate, thereby implementing personalized setting of the certificate, and improving flexibility of use of the equipment certificate.
Step S102, extracting the standard certificate information in the certificate writing instruction, and acquiring the certificate data structure information in the standard certificate information.
In this embodiment, when writing in a certificate, the certificate includes extended area information and a corresponding device identifier, that is, the extended area information and the device identifier written in the extended area information, and also includes standard certificate information when writing in a certificate, that is, the certificate is extended based on the standard certificate information, and generation of the certificate is not required again, and only the extension is performed on the basis of the standard certificate information, so that the efficiency of certificate generation is improved.
Step S103, according to the extended area information, extending the certificate data structure information to obtain extended standard certificate information.
In specific implementation, the certificate data structure information is expanded according to the expansion area information to obtain expanded standard certificate information, that is, the expansion area information is written in the standard certificate information, so that the expansion of the standard certificate information is realized.
And step S104, writing the equipment identification into the extended area information in the extended standard certificate information to obtain an equipment certificate.
In this embodiment, since the device identifier needs to be written in the device certificate, the identification of the device of the internet of things to be connected can be realized, that is, the device identifier is written in the extended area information in the extended standard certificate information, so that the identification of the device certificate is realized, for example, the OID written in the objectaltname in the extended area is 1.2.3.4.x.y, so that the device certificate with the device identifier is obtained, the limitation of the conventional device certificate is avoided, and the device information of the device of the internet of things to be connected can be more comprehensively displayed.
In an embodiment, before the step S103, the method further includes:
and when an extended area adjusting instruction is received, updating the extended area information according to the extended area adjusting instruction to obtain updated extended area information.
In this embodiment, as the parameter information of the device information is more and more, the more parameter contents that need to be written in the extended area, naturally, the requirement for the capacity of the extended area is brought, if on the conventional basis, only after the certificate is extended, the extended area is fixed and cannot be adjusted, but in this implementation, when an extended area adjustment instruction is received, the extended area information is updated according to the extended area adjustment instruction, so as to obtain updated extended area information, for example, when the extended area information is 10K, 10K can be adjusted to 15K according to the extended area adjustment instruction, thereby implementing flexible adjustment of the extended area.
The step S103 includes:
and expanding the certificate data structure information according to the updated expanded area information to obtain expanded standard certificate information.
Further, before the step S104, the method further includes:
and when an equipment identification adjusting instruction is received, updating the equipment identification according to the equipment identification adjusting instruction to obtain the updated equipment identification.
In this embodiment, as more and more functions are supported by the device, when the device of the internet of things to be connected is upgraded, the functions supported by the device of the internet of things to be connected are different from the functions supported by the original device identifier, and under such a condition, the original device identifier cannot meet the device requirement of the current device of the internet of things to be connected.
The step S104 includes:
and writing the updated equipment identifier into the extended area information in the extended standard certificate information to obtain an equipment certificate.
According to the scheme, the updating of the extended area and the equipment identifier is realized through the extended area adjusting instruction and the equipment identifier adjusting instruction, and the flexible adjustment of the extended area and the equipment identifier is realized.
In addition, an embodiment of the present invention further provides a storage medium, where an information interaction program of an internet of things device is stored on the storage medium, and when executed by a processor, the information interaction program of the internet of things device implements the steps of the terminal network access method described above.
Since the storage medium adopts all technical solutions of all the embodiments, at least all the beneficial effects brought by the technical solutions of the embodiments are achieved, and no further description is given here.
In addition, referring to fig. 7, an embodiment of the present invention further provides an information interaction apparatus for an internet of things device, where the information interaction apparatus for the internet of things device includes:
the extraction module 10 is configured to, when receiving a connection request of an internet of things device to be connected, extract a device certificate from the connection request.
In this embodiment, the to-be-connected internet-of-things device is an intelligent internet-of-things device supporting different interface protocols, and includes an air conditioner, a television, and the like, and may further include other devices capable of being connected to a network.
In a specific implementation, when the to-be-connected internet-of-things equipment needs to be managed in the internet of things, each to-be-connected internet-of-things equipment needs to be connected, and under a general condition, as a connection request of each to-be-connected internet-of-things equipment carries an equipment certificate, the to-be-connected internet-of-things equipment can be connected with the equipment certificate carried by each to-be-connected internet-of-things equipment through the equipment certificate, namely, the to-be-connected internet-of-things equipment is subjected to security verification according to the; when the verification result is that the verification is successful, a secure interaction channel is established with the to-be-connected Internet of things equipment; and performing information interaction with the to-be-connected internet-of-things device according to the secure interaction channel and the device information, conversely, when the verification result is verification failure, it indicates that the current device certificate is a tampered certificate or a failed certificate, and therefore, the to-be-connected internet-of-things device cannot be connected, and corresponding warning can be performed, so that the security of network interaction is improved, for example, authentication failure information is fed back to the to-be-connected internet-of-things device, so that the to-be-connected internet-of-things device performs message reminding on a user according to the authentication failure information, and reminding can be performed in other manners.
It is understood that, in order to realize the identification of the certificate of failure, the usage time of the device certificate can be obtained; obtaining the validity time of the equipment certificate according to the use time; judging whether the current time exceeds the valid period time; the step S40 is executed when the current time exceeds the validity time, where the device certificate in this embodiment is provided with the use time of the certificate, for example, the generation time of the current certificate is 2020, 1 and 30 days, since the validity time can be obtained according to the generation time of the certificate in general cases, for example, if the validity time is one year, the current validity time is from 2020, 1 and 30 days to 2021, 1 and 30 days, and when the current time is 2020, 4 and 5 days, the current device certificate is still within the validity time, the interaction using the current device certificate can be continued, and when the current time is 2021, 4 and 5 days, the current device certificate is invalidated, in which case, the current device-related certificate needs to be revoked, so as to ensure the security of the interaction between the internet-of things devices.
In specific implementation, the valid period can be set while generating the device certificate, and when the valid period is reached, the device certificate is revoked and revocation reminding is performed, that is, the current certificate is expired and other reminding information is performed, so that the device certificate is conveniently updated in time.
And the parsing module 20 is configured to parse the device certificate to obtain a device identifier in the device certificate.
It should be noted that, because the device certificate in this embodiment includes the device identifier, the device identifier in the device certificate is obtained by parsing the device certificate, and the identification of each device of the internet of things to be connected can be realized through the device identifier.
In this embodiment, the device certificate includes device type information and device capability information, and may further include other information, which is not limited in this embodiment, as shown in a schematic network structure diagram shown in fig. 4, the internet of things devices in the home area include a television, an air conditioner, and the like, the television and the air conditioner perform information interaction with the control center through a gateway, and the device Identifier may be in the form of an Object Identifier (OID), and may also be in another form, which is not limited in this embodiment, which is described in this embodiment by taking the OID form as an example, for example, 1.2.3.4.x.y, where X ═ 1 represents a device type, and X ═ 2 represents a device capability, so as to implement identification of the internet of things devices of different interface protocols.
The determining module 30 is configured to determine, according to the device identifier, device information of the to-be-connected internet-of-things device.
In this embodiment, the device information may be device type information, and may also be device capability information, the device information of the to-be-connected internet-of-things device is determined by the device identifier, for example, when X in the device identifier is 1, the device type information is included, where the device type information is different from the device capability information, that is, when X in the device identifier is 1, the device type information is represented, and when X is 2, the device capability information is represented, and then after the device type information is determined, Y is further identified, for example, X is 1, Y is 123, that is 1.2.3.4.1.123, it is indicated that the to-be-connected internet-of-things device is a television, and when X is 1, Y is 124, that is 1.2.3.4.1.124, it is indicated that the to-be-connected internet-of-things device is an air conditioner, so that accuracy of identification of the to-be-connected device is achieved.
And the interaction module 40 is configured to perform information interaction with the to-be-connected internet of things device based on the device information.
In a specific implementation, the device information includes: the equipment type information, equipment type information is the kind of equipment, for example TV or air conditioner, can discern the type of equipment through equipment information to the discernment of the thing networking equipment of waiting to connect is realized, based on equipment information with the thing networking equipment of waiting to connect carries out information interaction, includes: based on the equipment type information and the to-be-connected Internet of things equipment, carrying out information interaction, specifically:
acquiring the equipment type information of the equipment of the Internet of things to be connected; determining target interaction protocol information according to the equipment type information; acquiring current interactive protocol information, and judging whether the current interactive protocol information is consistent with the target interactive protocol information; when the current interactive protocol information is inconsistent with the target interactive protocol information, adjusting the current interactive protocol information into the target interactive protocol information; and carrying out information interaction with the to-be-connected Internet of things equipment based on the target interaction protocol information.
In this embodiment, the device type information of the to-be-connected internet-of-things device is acquired, and the target interaction protocol information is determined according to the device type information, where the target interaction protocol information may be a wireless interaction protocol, a bluetooth interaction protocol, and the like, and may also be an interaction protocol in other forms.
In another embodiment, the device information includes: the device capability information may be supported device function information, for example, an air conditioner supports a cooling function and a heating function, a television supports a remote controller and a channel switching function, and may also be other device function information, which is not limited in this embodiment. In this embodiment, a cooling function of an air conditioner is taken as an example for explanation, for example, device information is 1.2.3.4.2.456, where X is 2 and Y is 456 and is cooling, so as to realize identification of the device capability information, where the information interaction with the to-be-connected internet of things device based on the device information includes: based on the equipment capability information and the to-be-connected Internet of things equipment, carrying out information interaction, specifically:
acquiring equipment capacity information of the to-be-connected Internet of things equipment; determining target support function information according to the equipment capability information; judging whether the current opened function information is consistent with the target support function information or not; when the current opened function information is inconsistent with the target support function information, adjusting the current opened function information to the target support function information; and carrying out information interaction with the equipment of the Internet of things to be connected based on the target support function information.
In this embodiment, device capability information of the to-be-connected internet-of-things device is acquired; the method comprises the steps of determining target support function information according to the equipment capacity information, for example, obtaining a refrigeration function supported by the to-be-connected Internet of things equipment according to the equipment capacity information, and then distributing the refrigeration function to the to-be-connected Internet of things equipment, so that the distribution of the functions of the to-be-connected Internet of things equipment is realized.
In an embodiment, before the information interaction with the to-be-connected internet of things device based on the target support function information, the method includes:
performing function distribution on the to-be-connected Internet of things equipment based on the target support function information to obtain the to-be-connected Internet of things equipment with distributed functions; and performing information interaction with the to-be-connected Internet of things equipment after function distribution based on the target support function information.
In this embodiment, functions supported by the to-be-connected internet of things device, that is, device capability information, can be obtained according to the device information, so that the to-be-connected internet of things device can be subjected to function allocation according to the device capability information, and it is ensured that control information of the to-be-connected internet of things device is a function supported by the to-be-connected internet of things device, for example, when a television support switch function is obtained through the device information, the television can be controlled to be turned on or turned off according to the supported switch function, so that control over various to-be-connected internet of things devices is realized.
According to the scheme, when a connection request of the to-be-connected Internet of things equipment is received, the equipment certificate is extracted from the connection request; analyzing the equipment certificate to obtain an equipment identifier in the equipment certificate; determining the equipment information of the equipment of the Internet of things to be connected according to the equipment identification; and performing information interaction on the basis of the equipment information and the to-be-connected Internet of things equipment, thereby directly obtaining the equipment information of each to-be-connected Internet of things equipment from the equipment certificate, realizing interaction of the to-be-connected Internet of things equipment corresponding to different interface protocols, and improving the compatibility of Internet of things equipment interaction.
Further, the parsing module 20 is further configured to parse the device certificate to obtain parsed certificate information;
comparing the analyzed certificate information with preset extension keywords, and obtaining a certificate extension field in the analyzed certificate information according to a comparison result;
and obtaining the equipment identifier in the equipment certificate according to the certificate extension field.
Further, the parsing module 20 is further configured to perform certificate type judgment on the parsed certificate information;
obtaining the current certificate type corresponding to the analyzed certificate information according to the judgment result;
and searching a corresponding preset expansion keyword in a preset expansion keyword mapping table according to the current certificate type.
Further, the parsing module 20 is further configured to obtain a historical certificate type;
searching historical extension field information corresponding to the historical certificate type, and determining a historical extension keyword according to the historical extension field information;
and establishing a preset expansion keyword mapping table according to the corresponding relation between the historical certificate type and the historical expansion keywords.
Further, the information interaction device of the internet of things device further comprises: a certificate write module;
the certificate writing module is used for extracting the extended area information and the corresponding equipment identifier in the certificate writing instruction when the certificate writing instruction is received;
extracting standard certificate information in the certificate writing instruction, and acquiring certificate data structure information in the standard certificate information;
expanding the certificate data structure information according to the expanded area information to obtain expanded standard certificate information;
and writing the equipment identification into the extended area information in the extended standard certificate information to obtain an equipment certificate.
Further, the information interaction device of the internet of things device further comprises: an adjustment module;
the adjusting module is used for updating the extended area information according to the extended area adjusting instruction when receiving the extended area adjusting instruction to obtain updated extended area information;
and expanding the certificate data structure information according to the updated expanded area information to obtain expanded standard certificate information.
Further, the adjusting module is further configured to update the device identifier according to the device identifier adjusting instruction when receiving the device identifier adjusting instruction, so as to obtain an updated device identifier;
the writing the device identifier into extended area information in the extended standard certificate information to obtain a device certificate includes:
and writing the updated equipment identifier into the extended area information in the extended standard certificate information to obtain an equipment certificate.
Further, the device information includes: device type information; the interaction module is further used for performing information interaction with the to-be-connected Internet of things equipment based on the equipment type information.
Further, the interaction module is further configured to obtain device type information of the to-be-connected internet-of-things device;
determining target interaction protocol information according to the equipment type information;
acquiring current interactive protocol information, and judging whether the current interactive protocol information is consistent with the target interactive protocol information;
when the current interactive protocol information is inconsistent with the target interactive protocol information, adjusting the current interactive protocol information into the target interactive protocol information;
and carrying out information interaction with the to-be-connected Internet of things equipment based on the target interaction protocol information.
Further, the device information includes: device capability information; the interaction module is further used for performing information interaction with the to-be-connected Internet of things equipment based on the equipment capability information.
Further, the interaction module is further configured to acquire device capability information of the to-be-connected internet-of-things device;
determining target support function information according to the equipment capability information;
judging whether the current opened function information is consistent with the target support function information or not;
when the current opened function information is inconsistent with the target support function information, adjusting the current opened function information to the target support function information;
and carrying out information interaction with the equipment of the Internet of things to be connected based on the target support function information.
Further, the interaction module is further configured to perform function distribution on the to-be-connected internet-of-things device based on the target support function information to obtain the to-be-connected internet-of-things device after function distribution;
and performing information interaction with the to-be-connected Internet of things equipment after function distribution based on the target support function information.
Further, the interaction module is further configured to obtain a usage time of the device certificate;
obtaining the validity time of the equipment certificate according to the use time;
judging whether the current time exceeds the valid period time;
and when the current time exceeds the valid period time, executing the step of carrying out information interaction with the to-be-connected Internet of things equipment based on the equipment information.
Further, the interaction module is further configured to perform security verification on the to-be-connected internet-of-things device according to the device certificate to obtain a verification result;
when the verification result is that the verification is successful, a secure interaction channel is established with the to-be-connected Internet of things equipment;
the information interaction is carried out on the basis of the equipment information and the to-be-connected Internet of things equipment, and the information interaction comprises the following steps:
and carrying out information interaction with the to-be-connected Internet of things equipment according to the secure interaction channel and the equipment information.
The information interaction device of the internet of things equipment adopts all the technical schemes of all the embodiments, so that the information interaction device at least has all the beneficial effects brought by the technical schemes of the embodiments, and is not repeated herein.
The invention provides A1 and an information interaction method of Internet of things equipment, wherein the information interaction method of the Internet of things equipment comprises the following steps:
when a connection request of the to-be-connected Internet of things equipment is received, extracting an equipment certificate from the connection request;
analyzing the equipment certificate to obtain an equipment identifier in the equipment certificate;
determining the equipment information of the equipment of the Internet of things to be connected according to the equipment identification;
and carrying out information interaction with the Internet of things equipment to be connected based on the equipment information.
A2, the method as in a1, the parsing the device certificate to obtain the device identifier in the device certificate includes:
analyzing the equipment certificate to obtain analyzed certificate information;
comparing the analyzed certificate information with preset extension keywords, and obtaining a certificate extension field in the analyzed certificate information according to a comparison result;
and obtaining the equipment identifier in the equipment certificate according to the certificate extension field.
A3, the method as in a2, wherein before the step of comparing the parsed certificate information with a preset extension key and obtaining the certificate extension field in the parsed certificate information according to the comparison result, the method further comprises:
judging the certificate type of the analyzed certificate information;
obtaining the current certificate type corresponding to the analyzed certificate information according to the judgment result;
and searching a corresponding preset expansion keyword in a preset expansion keyword mapping table according to the current certificate type.
A4, the method of A3, wherein before the corresponding preset extended keyword is looked up in a preset extended keyword mapping table according to the current certificate type, the method further comprises:
acquiring a historical certificate type;
searching historical extension field information corresponding to the historical certificate type, and determining a historical extension keyword according to the historical extension field information;
and establishing a preset expansion keyword mapping table according to the corresponding relation between the historical certificate type and the historical expansion keywords.
A5, the method according to any one of A1-A4, wherein before extracting the device certificate from the connection request when the connection request of the device of the Internet of things to be connected is received, the method further comprises:
when a certificate write-in instruction is received, extracting the extended area information and the corresponding equipment identification in the certificate write-in instruction;
extracting standard certificate information in the certificate writing instruction, and acquiring certificate data structure information in the standard certificate information;
expanding the certificate data structure information according to the expanded area information to obtain expanded standard certificate information;
and writing the equipment identification into the extended area information in the extended standard certificate information to obtain an equipment certificate.
A6, the method as in A5, wherein before the expanding the certificate data structure information according to the expanded region information to obtain expanded standard certificate information, the method further comprises:
when an extended area adjusting instruction is received, updating the extended area information according to the extended area adjusting instruction to obtain updated extended area information;
the expanding the certificate data structure information according to the expanded area information to obtain expanded standard certificate information includes:
and expanding the certificate data structure information according to the updated expanded area information to obtain expanded standard certificate information.
A7, the method as in A5, wherein before obtaining the device certificate according to the extended area information written by the device ID into the extended standard certificate information, the method further comprises:
when an equipment identifier adjusting instruction is received, updating the equipment identifier according to the equipment identifier adjusting instruction to obtain an updated equipment identifier;
the writing the device identifier into extended area information in the extended standard certificate information to obtain a device certificate includes:
and writing the updated equipment identifier into the extended area information in the extended standard certificate information to obtain an equipment certificate.
A8, the method of any one of A1-A4, the device information comprising: device type information;
the information interaction is carried out on the basis of the equipment information and the to-be-connected Internet of things equipment, and the information interaction comprises the following steps:
and performing information interaction with the to-be-connected Internet of things equipment based on the equipment type information.
A9, the method as in A8, the interacting information with the IOT device to be connected based on the device type information, comprising:
acquiring the equipment type information of the equipment of the Internet of things to be connected;
determining target interaction protocol information according to the equipment type information;
acquiring current interactive protocol information, and judging whether the current interactive protocol information is consistent with the target interactive protocol information;
when the current interactive protocol information is inconsistent with the target interactive protocol information, adjusting the current interactive protocol information into the target interactive protocol information;
and carrying out information interaction with the to-be-connected Internet of things equipment based on the target interaction protocol information.
A10, the method of any one of A1-A4, the device information comprising: device capability information;
the information interaction is carried out on the basis of the equipment information and the to-be-connected Internet of things equipment, and the information interaction comprises the following steps:
and carrying out information interaction with the Internet of things equipment to be connected based on the equipment capability information.
A11, the method as in A10, the interacting information with the IOT device to be connected based on the device capability information, comprising:
acquiring equipment capacity information of the to-be-connected Internet of things equipment;
determining target support function information according to the equipment capability information;
judging whether the current opened function information is consistent with the target support function information or not;
when the current opened function information is inconsistent with the target support function information, adjusting the current opened function information to the target support function information;
and carrying out information interaction with the equipment of the Internet of things to be connected based on the target support function information.
A12, the method as in A11, before the information interaction with the Internet of things device to be connected based on the target support function information, the method comprising:
performing function distribution on the to-be-connected Internet of things equipment based on the target support function information to obtain the to-be-connected Internet of things equipment with distributed functions;
and performing information interaction with the to-be-connected Internet of things equipment after function distribution based on the target support function information.
A13, the method as in any one of A1-A4, wherein before the information interaction with the to-be-connected Internet of things device based on the device information, the method comprises:
acquiring the use time of the equipment certificate;
obtaining the validity time of the equipment certificate according to the use time;
judging whether the current time exceeds the valid period time;
and when the current time exceeds the valid period time, executing the step of carrying out information interaction with the to-be-connected Internet of things equipment based on the equipment information.
A14, the method as in any one of A1-A4, wherein before the information interaction with the to-be-connected Internet of things device based on the device information, the method comprises:
performing security verification on the equipment to be connected and the Internet of things equipment according to the equipment certificate to obtain a verification result;
when the verification result is that the verification is successful, a secure interaction channel is established with the to-be-connected Internet of things equipment;
the information interaction is carried out on the basis of the equipment information and the to-be-connected Internet of things equipment, and the information interaction comprises the following steps:
and carrying out information interaction with the to-be-connected Internet of things equipment according to the secure interaction channel and the equipment information.
In addition, to achieve the above object, the present invention further provides B15, an information interaction apparatus for an internet of things device, where the information interaction apparatus for an internet of things device includes:
the extraction module is used for extracting the equipment certificate from the connection request when receiving the connection request of the equipment of the Internet of things to be connected;
the analysis module is used for analyzing the equipment certificate to obtain an equipment identifier in the equipment certificate;
the determining module is used for determining the equipment information of the equipment of the Internet of things to be connected according to the equipment identification;
and the interaction module is used for carrying out information interaction with the to-be-connected Internet of things equipment based on the equipment information.
The apparatus of B16, as stated in B15, the parsing module is further configured to parse the device certificate to obtain parsed certificate information;
comparing the analyzed certificate information with preset extension keywords, and obtaining a certificate extension field in the analyzed certificate information according to a comparison result;
and obtaining the equipment identifier in the equipment certificate according to the certificate extension field.
B17, the device according to B16, the parsing module further configured to perform certificate type determination on the parsed certificate information;
obtaining the current certificate type corresponding to the analyzed certificate information according to the judgment result;
and searching a corresponding preset expansion keyword in a preset expansion keyword mapping table according to the current certificate type.
B18, the apparatus as described in B17, the information interaction apparatus of the internet of things device further includes: an extended keyword mapping table establishing module;
the extended keyword mapping table establishing module is used for acquiring a historical certificate type;
searching historical extension field information corresponding to the historical certificate type, and determining a historical extension keyword according to the historical extension field information;
and establishing a preset expansion keyword mapping table according to the corresponding relation between the historical certificate type and the historical expansion keywords.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An information interaction method for Internet of things equipment is characterized by comprising the following steps:
when a connection request of the to-be-connected Internet of things equipment is received, extracting an equipment certificate from the connection request;
analyzing the equipment certificate to obtain an equipment identifier in the equipment certificate;
determining the equipment information of the equipment of the Internet of things to be connected according to the equipment identification;
and carrying out information interaction with the Internet of things equipment to be connected based on the equipment information.
2. The information interaction method of the internet of things device as claimed in claim 1, wherein the parsing the device certificate to obtain the device identifier in the device certificate comprises:
analyzing the equipment certificate to obtain analyzed certificate information;
comparing the analyzed certificate information with preset extension keywords, and obtaining a certificate extension field in the analyzed certificate information according to a comparison result;
and obtaining the equipment identifier in the equipment certificate according to the certificate extension field.
3. The information interaction method of the internet of things equipment as claimed in claim 2, wherein before the analyzed certificate information is compared with a preset extension keyword, and a certificate extension field in the analyzed certificate information is obtained according to a comparison result, the method further comprises:
judging the certificate type of the analyzed certificate information;
obtaining the current certificate type corresponding to the analyzed certificate information according to the judgment result;
and searching a corresponding preset expansion keyword in a preset expansion keyword mapping table according to the current certificate type.
4. The information interaction method of the internet of things equipment as claimed in claim 3, wherein before the corresponding preset extended keyword is searched in a preset extended keyword mapping table according to the current certificate type, the method further comprises:
acquiring a historical certificate type;
searching historical extension field information corresponding to the historical certificate type, and determining a historical extension keyword according to the historical extension field information;
and establishing a preset expansion keyword mapping table according to the corresponding relation between the historical certificate type and the historical expansion keywords.
5. The information interaction method of the internet of things equipment as claimed in any one of claims 1 to 4, wherein before extracting the equipment certificate from the connection request when receiving the connection request of the to-be-connected internet of things equipment, the method further comprises:
when a certificate write-in instruction is received, extracting the extended area information and the corresponding equipment identification in the certificate write-in instruction;
extracting standard certificate information in the certificate writing instruction, and acquiring certificate data structure information in the standard certificate information;
expanding the certificate data structure information according to the expanded area information to obtain expanded standard certificate information;
and writing the equipment identification into the extended area information in the extended standard certificate information to obtain an equipment certificate.
6. The information interaction method of the internet of things equipment as claimed in claim 5, wherein before the step of expanding the certificate data structure information according to the expanded area information to obtain expanded standard certificate information, the method further comprises:
when an extended area adjusting instruction is received, updating the extended area information according to the extended area adjusting instruction to obtain updated extended area information;
the expanding the certificate data structure information according to the expanded area information to obtain expanded standard certificate information includes:
and expanding the certificate data structure information according to the updated expanded area information to obtain expanded standard certificate information.
7. The information interaction method for devices of the internet of things according to claim 5, wherein before obtaining the device certificate according to the extended area information in which the device identifier is written in the extended standard certificate information, the method further comprises:
when an equipment identifier adjusting instruction is received, updating the equipment identifier according to the equipment identifier adjusting instruction to obtain an updated equipment identifier;
the writing the device identifier into extended area information in the extended standard certificate information to obtain a device certificate includes:
and writing the updated equipment identifier into the extended area information in the extended standard certificate information to obtain an equipment certificate.
8. The utility model provides an information interaction device of thing networking equipment which characterized in that, information interaction device of thing networking equipment includes:
the extraction module is used for extracting the equipment certificate from the connection request when receiving the connection request of the equipment of the Internet of things to be connected;
the analysis module is used for analyzing the equipment certificate to obtain an equipment identifier in the equipment certificate;
the determining module is used for determining the equipment information of the equipment of the Internet of things to be connected according to the equipment identification;
and the interaction module is used for carrying out information interaction with the to-be-connected Internet of things equipment based on the equipment information.
9. The utility model provides an information interaction equipment of thing networking equipment which characterized in that, information interaction equipment of thing networking equipment includes: the information interaction method comprises the steps of a memory, a processor and an information interaction program stored on the memory and running on the processor, wherein the information interaction program of the internet of things equipment realizes the information interaction method of the internet of things equipment according to any one of claims 1 to 7 when being executed by the processor.
10. A storage medium, wherein an information interaction program of an internet of things device is stored on the storage medium, and when executed by a processor, the information interaction program of the internet of things device implements the steps of the information interaction method of the internet of things device according to any one of claims 1 to 7.
CN202010616091.7A 2020-06-30 2020-06-30 Information interaction method and device for Internet of things equipment, storage medium and device Active CN111669448B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010616091.7A CN111669448B (en) 2020-06-30 2020-06-30 Information interaction method and device for Internet of things equipment, storage medium and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010616091.7A CN111669448B (en) 2020-06-30 2020-06-30 Information interaction method and device for Internet of things equipment, storage medium and device

Publications (2)

Publication Number Publication Date
CN111669448A true CN111669448A (en) 2020-09-15
CN111669448B CN111669448B (en) 2023-04-07

Family

ID=72390755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010616091.7A Active CN111669448B (en) 2020-06-30 2020-06-30 Information interaction method and device for Internet of things equipment, storage medium and device

Country Status (1)

Country Link
CN (1) CN111669448B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291279A (en) * 2020-12-31 2021-01-29 南京敏宇数行信息技术有限公司 Router intranet access method, system and equipment and readable storage medium
CN112469042A (en) * 2021-01-28 2021-03-09 北京树米网络科技有限公司 System for locking bound equipment, module and subscriber identity module

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170302656A1 (en) * 2015-07-25 2017-10-19 Confia Systems, Inc. Device-Level Authentication with Unique Device Identifiers
CN107612909A (en) * 2017-09-18 2018-01-19 阿里巴巴集团控股有限公司 Information interacting method, device and equipment on internet of things equipment
CN110708170A (en) * 2019-12-13 2020-01-17 腾讯科技(深圳)有限公司 Data processing method and device and computer readable storage medium
US20200067706A1 (en) * 2018-08-24 2020-02-27 Cable Television Laboratories, Inc Systems and methods for enhanced internet of things digital certificate security

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170302656A1 (en) * 2015-07-25 2017-10-19 Confia Systems, Inc. Device-Level Authentication with Unique Device Identifiers
CN107612909A (en) * 2017-09-18 2018-01-19 阿里巴巴集团控股有限公司 Information interacting method, device and equipment on internet of things equipment
US20200067706A1 (en) * 2018-08-24 2020-02-27 Cable Television Laboratories, Inc Systems and methods for enhanced internet of things digital certificate security
CN110708170A (en) * 2019-12-13 2020-01-17 腾讯科技(深圳)有限公司 Data processing method and device and computer readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291279A (en) * 2020-12-31 2021-01-29 南京敏宇数行信息技术有限公司 Router intranet access method, system and equipment and readable storage medium
CN112469042A (en) * 2021-01-28 2021-03-09 北京树米网络科技有限公司 System for locking bound equipment, module and subscriber identity module
CN112469042B (en) * 2021-01-28 2021-05-25 北京树米网络科技有限公司 System for locking bound equipment, module and subscriber identity module

Also Published As

Publication number Publication date
CN111669448B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN107154935B (en) Service request method and device
CN111669448B (en) Information interaction method and device for Internet of things equipment, storage medium and device
US20050198293A1 (en) Information-processing apparatus, information-processing method, and computer program
JP2018517367A (en) Service provider certificate management
CN110688648B (en) Security chip firmware updating method and device
CN111158738B (en) Headset firmware upgrading method and device and readable storage medium
CN111241559A (en) Training model protection method, device, system, equipment and computer storage medium
CN110351225B (en) Hardware device networking method and system, computing device and readable storage medium
CN110225516B (en) Connection method and system of wireless network
US20130333052A1 (en) Information processing system, information processing apparatus, and computer-readable storage medium
US8490155B2 (en) Method and apparatus for detecting downloadable conditional access system host with duplicated secure micro
JP4453656B2 (en) Terminal authentication apparatus and method
US11962465B2 (en) Control system, electronic device, and control method
EP1854260A1 (en) Access rights control in a device management system
CN115174266A (en) Air conditioner control method and device, electronic equipment and computer readable storage medium
WO2021164121A1 (en) Mobile terminal and application program data synchronization method therefor, and storage medium
CN110889698B (en) Command processing method, electronic equipment and storage medium
CN114491328A (en) Website access method, equipment, storage medium and device
CN114465835A (en) Household appliance equipment, application terminal, Bluetooth network distribution method and system
CN107548058B (en) Equipment access method and intelligent terminal
CN105704521A (en) A method and apparatus for realizing a customized channel list
CN112039729B (en) Device identification method, server, electronic device, and storage medium
WO2024037227A1 (en) Method and apparatus for displaying application program, and electronic device and computer-readable storage medium
CN117492872A (en) Environment configuration method, device, system and storage medium
CN108833583B (en) Power plant information management system and method based on mobile terminal

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