CN116113013A - Method, device, gateway device, system and storage medium for controlling network access of equipment - Google Patents
Method, device, gateway device, system and storage medium for controlling network access of equipment Download PDFInfo
- Publication number
- CN116113013A CN116113013A CN202210982182.1A CN202210982182A CN116113013A CN 116113013 A CN116113013 A CN 116113013A CN 202210982182 A CN202210982182 A CN 202210982182A CN 116113013 A CN116113013 A CN 116113013A
- Authority
- CN
- China
- Prior art keywords
- accessed
- equipment
- information
- object model
- devices
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
- H04W48/10—Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/18—Selecting a network or a communication service
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/16—Gateway arrangements
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Telephonic Communication Services (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the application provides a method, a device, gateway equipment and a storage medium for controlling equipment to access to the network, and relates to the technical field of the Internet of things, wherein the scheme comprises the following steps: and acquiring equipment information of one or more equipment to be accessed, wherein the equipment information is used for determining a target object model associated with the equipment to be accessed, and the target object model is used for determining the state and/or control mode of the equipment to be accessed. And determining at least one object model associated with the equipment to be accessed from object models of the one or more equipment through equipment information of the one or more equipment to be accessed and the mapping relation. And controlling the network corresponding to the gateway equipment to which the at least one device to be accessed is accessed according to the target object model associated with the at least one device to be accessed. The scheme is used for accelerating the effective network access of the equipment and improving the efficiency of the network access process.
Description
Technical Field
The present application relates to the field of internet of things, and in particular, to a method for controlling a device to access to a network, a gateway device, a system, and a storage medium.
Background
Currently, the zigbee3.0 device needs to exchange necessary networking model information at the application layer after channel networking. The existing gateway has the defect of slow processing of equipment network access, and under the condition of increased equipment, the equipment and the gateway have multiple round-trip command interaction, so that the technical defect existing during the equipment network access is more obvious, and the problems of slow equipment network access process, low network access efficiency, need of network access attempt again and the like are caused.
Disclosure of Invention
The embodiment of the application provides a method, gateway equipment, a system and a storage medium for controlling equipment to access to the network.
In a first aspect, an embodiment of the present application provides a method for controlling a device to access a network, where the method includes: and acquiring equipment information of one or more equipment to be accessed, wherein the equipment information is used for determining a target object model associated with the equipment to be accessed, and the target object model is used for determining the state and/or control mode of the equipment to be accessed. Determining an associated target object model of at least one device to be accessed from object models of one or more devices through device information of the one or more devices to be accessed and a mapping relation, wherein the mapping relation at least comprises the association relation between the device information of the at least one device to be accessed and the target object model, and the at least one device to be accessed belongs to the one or more devices to be accessed. And controlling the network corresponding to the gateway equipment to which the at least one device to be accessed is accessed according to the target object model associated with the at least one device to be accessed.
The embodiment of the application provides a method for controlling network access of equipment, because one or more object models are stored in gateway equipment, the mapping relation at least comprises the association relation between equipment information of at least one equipment to be accessed and object models, after the gateway equipment acquires the equipment information of one or more equipment to be accessed, the object models associated with the at least one equipment to be accessed can be determined from the one or more object models according to the mapping relation, and because the object models are used for determining the state of the equipment and/or the control mode, the gateway equipment can control the at least one equipment to be accessed to access a network according to the object models associated with the equipment to be accessed in the at least one equipment to be accessed.
In one possible implementation manner of the present application, the method provided by the embodiment of the present application further includes: the one or more devices to be accessed comprise a first type of device, and acquiring device information of the one or more devices to be accessed comprises: and transmitting a broadcast instruction for instructing the first type of device that received the broadcast instruction to provide device information of the first type of device and for instructing a response sequence of each first type of device. And sequentially receiving the device information fed back by each first type of device according to the response sequence.
In one possible implementation manner of the present application, the broadcast instruction further carries information for determining a respective response time for each first type of device, where the response time information is used to determine a response sequence of each first type of device.
In one possible implementation manner of the present application, the one or more devices include one or more devices of a second type, and acquiring device information of the one or more devices to be accessed includes: and sending standard instructions to each second type of device, wherein the standard instructions are used for requesting the information of each second type of device. Device information fed back by each second type of device is received.
In one possible implementation manner of the present application, determining, from object models of one or more devices, at least one object model associated with the device to be accessed through device information of the device to be accessed and a mapping relationship, includes: and under the condition that the gateway equipment is provided with a target object model related to the equipment information of the first equipment to be accessed, determining the object model related to the equipment information of the first equipment to be accessed, which is determined from the object models of one or more equipment according to the mapping relation, as the target object model, wherein the first equipment to be accessed is any one of the at least one equipment to be accessed. And under the condition that the gateway equipment does not have the target object model associated with the equipment information of the first equipment to be accessed, determining the acquired closest object model of the first equipment to be accessed according to the equipment information of the first equipment to be accessed as the target object model associated with the target equipment, wherein the equipment information associated with the closest object model is different from the version information of the first equipment to be accessed, and the module ID is the same.
In one possible implementation manner of the present application, before acquiring the device information of the one or more devices to be accessed, the method further includes: and determining the association relation between the equipment information of each equipment in the one or more pieces of equipment and the object model associated with the equipment to obtain a mapping relation.
In one possible implementation manner of the present application, the one or more devices to be accessed include a second device to be accessed, where the second device to be accessed is a device other than the at least one device to be accessed, and the gateway device does not have an object model associated with the second device to be accessed, and the method further includes: and acquiring an object model associated with the second device to be accessed from the target device. The target device is a superior device of the gateway device when the gateway device is in a networking state, and the target device is a second device to be accessed when the gateway device is not in a networking state and/or the superior device of the gateway device does not have an object model associated with the second device to be accessed.
In one possible implementation manner of the present application, the at least one device to be accessed includes a third device to be accessed, where the third device to be accessed is a device accessing the network through the closest object model, and the method further includes: and after the third device to be accessed is accessed to the network corresponding to the gateway device, acquiring a target object model associated with the third device to be accessed from the third device to be accessed.
In one possible implementation manner of the present application, after obtaining the object model of the third device to be accessed from the third device to be accessed, the method further includes: and updating the mapping relation, wherein the updated mapping relation at least comprises the association relation between the equipment information of the third equipment to be accessed and the target object model associated with the third equipment to be accessed.
In one possible implementation of the present application, the device information includes a module ID and version information of the device, the object model includes one or more endpoint information of the device, the endpoint information is used to identify the device, and the endpoint information includes attribute information, control commands, grouping information, scene information, configuration information, and linkage information of the endpoint.
In a second aspect, an embodiment of the present application provides a device for controlling network access of a device, where the device for controlling network access of a device may implement a method in the first aspect or any possible implementation manner of the first aspect, and thus may also implement beneficial effects in the first aspect or any possible implementation manner of the first aspect. The means for controlling the access to the network may be a gateway device, or may be means for supporting the gateway device to implement the method of the first aspect or any possible implementation of the first aspect, e.g. a chip or a control circuit applied in the gateway device. The network access device of the control equipment can realize the method through software, hardware or corresponding software executed by hardware.
As an example, an embodiment of the present application provides an apparatus for controlling device networking, where the apparatus for controlling device networking is a gateway device or a chip applied in the gateway device, and the apparatus for controlling device networking includes: the system comprises a first acquisition unit, a second acquisition unit and a processing unit, wherein the first acquisition unit is used for acquiring equipment information of one or more equipment to be accessed, the equipment information is used for determining a target object model associated with the equipment to be accessed, and the target object model is used for determining the state and/or control mode of the equipment to be accessed. The second obtaining unit is configured to determine, from object models of one or more devices stored in the gateway device, a target object model associated with at least one device to be accessed through device information of the one or more devices to be accessed and a mapping relationship, where the mapping relationship at least includes an association relationship between the device information of the at least one device to be accessed and the target object model, and the at least one device to be accessed belongs to the one or more devices to be accessed. And the processing unit is used for controlling the at least one device to be accessed to access the network corresponding to the gateway device according to the target object model associated with the at least one device to be accessed.
In one possible implementation manner of the present application, the first obtaining unit is further configured to send a broadcast instruction, where the broadcast instruction is used to instruct the first type of device that receives the broadcast instruction to provide device information of the first type of device, and indicate a response sequence of each first type of device. And sequentially receiving the device information fed back by each first type of device according to the response sequence.
In a possible implementation manner of the present application, the first obtaining unit is further configured to send a standard instruction to each second type of device, where the standard instruction is used to request each second type of device information. Device information fed back by each second type of device is received.
In one possible implementation manner of the present application, the second obtaining unit is further configured to determine, as the object model, an object model associated with the device information of the first device to be accessed, which is determined from object models of one or more devices according to the mapping relationship, in a case where the gateway device has the object model associated with the device information of the first device to be accessed, where the first device to be accessed is any one of the at least one device to be accessed. And under the condition that the gateway equipment does not have the target object model associated with the equipment information of the first equipment to be accessed, determining the acquired closest object model of the first equipment to be accessed according to the equipment information of the first equipment to be accessed as the target object model associated with the target equipment, wherein the equipment information associated with the closest object model is different from the version information of the first equipment to be accessed, and the module ID is the same.
In one possible implementation manner of the present application, before acquiring the device information of the one or more devices to be accessed, the first acquiring unit is further configured to determine an association relationship between the device information of each device in the one or more devices and the object model associated with the device, so as to obtain a mapping relationship.
In one possible implementation manner of the present application, the second obtaining unit is further configured to obtain, from the target device, an object model associated with the second device to be accessed. The target device is a superior device of the gateway device when the gateway device is in a networking state, and the target device is a second device to be accessed when the gateway device is not in a networking state and/or the superior device of the gateway device does not have an object model associated with the second device to be accessed.
In one possible implementation manner of the present application, the second obtaining unit is further configured to obtain, from the third device to be accessed, a target object model associated with the third device to be accessed after the third device to be accessed accesses the network corresponding to the gateway device.
In one possible implementation manner of the present application, the processing unit is further configured to update the mapping relationship, where the updated mapping relationship at least includes an association relationship between device information of the third device to be accessed and a target object model associated with the third device to be accessed.
In a third aspect, embodiments of the present application provide a gateway device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the gateway device implementing a method of controlling device access as described in any one of the possible implementations of the first aspect to the first aspect when the computer program is executed by the processor.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored therein a computer program or instructions which, when run on a computer, cause the computer to perform a method of controlling device networking as described in any one of the possible implementations of the first aspect to the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform a method of controlling device networking as described in the first aspect or in various possible implementations of the first aspect.
In a sixth aspect, embodiments of the present application provide an apparatus for controlling device networking for implementing various methods in the foregoing first aspect or various possible designs of any one of the first aspect. The means for controlling the access to the network may be the gateway device described above, or an apparatus comprising the gateway device described above, or a component (e.g. a chip) applied in the gateway device.
The device for controlling the network access of the equipment described in the sixth aspect comprises a corresponding module, a unit, and the module and the unit for implementing the method, wherein the module and the unit can be implemented by hardware, software, or implemented by hardware to execute corresponding software. The hardware or software includes one or more modules or units corresponding to the functions described above.
In a seventh aspect, an embodiment of the present application provides an apparatus for controlling device network access, where the apparatus for controlling device network access includes: at least one processor. Wherein the processor, when run by the control device networking means, executes computer-executable instructions or programs stored in the control device networking means to cause the control device networking means to perform the method as in any of the various possible designs of the first aspect described above. For example, the means for controlling the access to the network may be a gateway device or a component applied in the gateway device.
It will be appreciated that the processor described in the seventh aspect may further include: a bus and a memory for storing code and data. Optionally, the at least one processor sense interface and the memory are coupled to each other.
In an eighth aspect, embodiments of the present application provide a chip including a processor for executing a computer program or instructions to implement the method of controlling device networking described in the first aspect or various possible implementations of the first aspect.
Drawings
Fig. 1 is a system architecture diagram for controlling network access of a device according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a gateway device according to an embodiment of the present application;
fig. 3 is a flow chart of a method for controlling a device to access a network according to an embodiment of the present application;
fig. 4 is a schematic diagram of a method for controlling a device to access a network according to an embodiment of the present application;
fig. 5 is a schematic diagram of another method for controlling a device to access a network according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a device for controlling network access of equipment according to an embodiment of the present application.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In order to illustrate the technical solutions described in the present application, the following description is made by specific examples.
The application aims at the fact that after channel networking of the Zigbee 3.0-based equipment, necessary networking model information exchange needs to be carried out at an application layer. Zigbee technology (ZigBee Technology ) is a low power consumption, low latency, high reliability, and short range wireless communication network protocol. The ZigBee gateway equipment is core equipment for constructing a ZigBee network, and is accessed into the ZigBee network through the connecting gateway equipment.
Existing gateway devices are very slow to handle for normal zigbee3.0 application layer networking. In general, when a ZigBee device accesses the network, command interaction needs to be performed between the ZigBee device and a gateway device for multiple round trips to build a control model of the ZigBee device at the gateway device, which is a model of objects described below. This process is time consuming, especially in the case of poor network signals, or a large number of devices, or the failure of many devices to complete the network access process, and the network access attempt has to be re-performed.
As shown in fig. 1, fig. 1 is a system architecture diagram for controlling network access of equipment according to an embodiment of the present application, where the system includes: gateway device 100, and one or more ZigBee devices.
Wherein the one or more ZigBee devices comprise: one or more ZigBee devices of the first type and/or one or more ZigBee devices of the second type.
The ZigBee device in the embodiment of the application refers to a terminal device which can be accessed into a ZigBee wireless communication network based on a ZigBee protocol, so that low-speed and short-distance information transmission is realized. In practical scene application, the device based on the ZigBee technology can be intelligent equipment in the field of intelligent home, such as an intelligent illumination LED lamp, an intelligent curtain and the like. The first type of ZigBee device in the embodiments of the present application refers to a device manufactured by a manufacturer and capable of supporting a response to a private instruction (such as a broadcast instruction described below) of the manufacturer, and of course, devices manufactured by other manufacturers but still capable of responding to the broadcast instruction may also be regarded as first type ZigBee devices. The second type of ZigBee device refers to a device produced by another manufacturer or a device that cannot respond to manufacturer private instructions (such as broadcast instructions described below).
The gateway device 100 is a control device in a ZigBee network, and may connect to one or more ZigBee devices through a ZigBee protocol, and access to the network through a router, and implement functions of collecting device information, inputting and outputting information, controlling devices, and the like at an application layer. Specifically, the ZigBee device passes through the gateway device 100.
Optionally, the gateway device 100 may have a repository therein, where one or more object models are stored. The object model is used for determining the state and the control mode of the ZigBee equipment, and specifically comprises endpoint information of one or more ZigBee equipment corresponding to the object model. The endpoint information is a logical connection point, and there may be one or more logical connection points in the device. The endpoint information is illustratively the source of communication between gateway device 100 and the devices. Gateway device 100 communicates with the device through endpoint information of the device to learn the status and attributes of the device. For example, as shown in fig. 4, the endpoint information in the object model corresponding to the ZigBee device may include: attributes, control commands, grouping information, scene information, configuration information, and linkage information for each endpoint. The gateway device 100 can control the device by knowing the state of the device in the actual scenario in which the device is applied through information included in the endpoint information.
In addition, the object model may be stored in a higher-level device of the gateway device 100, for example, a higher-level gateway device, a higher-level node device, or a cloud. In this way, the gateway device 100 may also obtain object models from devices other than ZigBee devices through the northbound interface (Northbound Interface, intf.n).
It should be noted that, the northbound interface is an interface provided to other factories or operators for access and management, that is, an interface provided upwards, and is generally a lower-level interface connected to a higher-level layer interface. Illustratively, gateway device 100 may communicate with a superior device via a northbound interface to exchange information with the superior device.
In one possible embodiment of the present application, the system for controlling the network access of a device as shown in fig. 1 may further include: the system comprises superior gateway equipment, superior node equipment and a cloud. For example, the gateway device 100 and the ZigBee device networked by the gateway device 100 may be communicatively connected to a superior device, such as a superior gateway device, a cloud, or the like. Specifically, the upper gateway device is an upper gateway device of the gateway device 100, such as a transmission gateway, and the upper node device may be a router, a coordinator, or the like.
The method for accessing the equipment into the network is applied to gateway equipment. The effective network access of the equipment is accelerated by pre-establishing a mapping relation between Module ID (Module ID) of the equipment and version information of the equipment and an object model of the equipment and adopting a private broadcast instruction to accelerate the acquisition of equipment information of the equipment.
As shown in fig. 2, fig. 2 shows a schematic structural diagram of a gateway device 100 provided in an embodiment of the present application, where the gateway device 100 includes: a storage module 110, a processing module 120, a transmitting and receiving module 130, and a communication module 140. The processing module 120 is connected to the storage module 110, the transmitting and receiving module 130, and the communication module 140, respectively. The storage module 110 stores an object model corresponding to the ZigBee device and a corresponding mapping relationship. The processing module 120 may be configured to establish a mapping relationship between device information and a corresponding object model through the device information and the object model of the ZigBee device acquired by the sending and receiving module 130, and may also be configured to guide the ZigBee device to access a network corresponding to the gateway device. The sending and receiving module 130 is configured to obtain the object model of the device from a superior device of the gateway, such as a cloud, or may also be configured to obtain the object model of the device from the ZigBee device, and correspondingly, may also receive information fed back from the superior device or the ZigBee device. The communication module 140 supports the gateway device 100 to establish communication connection with other devices (ZigBee device and superior device).
In the embodiment of the present application, a specific structure of an execution body of a method of controlling device networking is not particularly limited as long as communication can be performed with a method of controlling device networking according to the embodiment of the present application by running a program in which codes of the method of controlling device networking of the embodiment of the present application are recorded. For example, an execution body of a method for controlling network access of a device provided in the embodiment of the present application may be a functional module in the gateway device 100 capable of calling a program and executing the program, or an apparatus, such as a chip, applied to network access of a control device in the gateway device 100. This application is not limited thereto. The following embodiments will be described taking as an example a gateway apparatus 100 as an execution subject of a method of controlling an apparatus to access a network.
As shown in fig. 3, fig. 3 shows a flow chart of a method for controlling a device to access a network, where an execution body is a gateway device, and an object model of one or more devices is stored in the gateway device, and the method includes the following steps:
As an example, in case one or more devices to be accessed access the gateway device at the application layer, the gateway device needs device information of the one or more devices to be accessed for exchanging device information with the devices to be accessed. As an example, in connection with fig. 1, the device to be accessed may be a ZigBee device of the first type or a ZigBee device of the second type, and the embodiment of the present application is not limited.
As an example, the device information in the embodiment of the present application may be a module ID of the device. Or the device information may also be a module ID and version information, wherein the version information functions to determine the firmware version of the device. Since there may be multiple versions of a device, and the object model corresponding to different versions is generally different, the accuracy of determining the object model of the device by the gateway device can be improved by using the combination of the module ID and the version information as the device information.
The mapping relationship at least comprises the association relationship between the equipment information of at least one equipment to be accessed and the target object model, and the at least one equipment to be accessed belongs to one or more pieces of equipment to be accessed.
The form of the mapping relationship is not limited in the embodiment of the present application, and the mapping relationship may be a table, such as a mapping relationship between equipment information and an object model shown in table 1:
TABLE 1 mapping relationship between device information and object model
Apparatus and method for controlling the operation of a device | Device information | Object model |
Apparatus 1 | Module ID1+ version information 1 | Object model 1 |
Device 2 | Module ID1+ version information 2 | Object model 2 |
Device 3 | Module ID2+ version information 1 | Object model 3 |
Device 4 | Module ID2+ version information 2 | Object model 4 |
Apparatus 5 | Module ID2+ version information 3 | Without any means for |
... | ... | ... |
For example, assuming that the acquired device information of the device 1 is the module id1+ version information 1, the object model of the device 1 may be determined to be the object model 1 through the mapping relationship provided in the above table 1. Through the mapping relation, the gateway equipment can quickly and accurately find out the corresponding object model through the equipment information of the equipment.
The embodiment of the application provides a method for controlling network access of equipment, because one or more object models are stored in gateway equipment, the mapping relation at least comprises the association relation between equipment information of at least one equipment to be accessed and object models, after the gateway equipment acquires the equipment information of one or more equipment to be accessed, the object models associated with the at least one equipment to be accessed can be determined from the one or more object models according to the mapping relation, and because the object models are used for determining the state of the equipment and/or the control mode, the gateway equipment can control the at least one equipment to be accessed to access a network according to the object models associated with the equipment to be accessed in the at least one equipment to be accessed.
As an example, in connection with the system for controlling the network access of the device shown in fig. 1, the object model is used to determine the state and the control mode of the device, and specifically includes endpoint information of one or more devices to be accessed corresponding to the object model. The endpoint information includes attributes, control commands, grouping information, scene information, configuration information, and linkage information for each endpoint. The gateway device can guide the device to be accessed to the network corresponding to the gateway device through the endpoint information in the target object model. Through the stored object model, the gateway device can quickly acquire the endpoint information of the device, so as to guide the device to access the network.
In one possible embodiment of the present application, the above step 210 may be implemented in the following manner: the gateway device sends a first instruction (e.g., a standard instruction) to each device to be accessed, where the first instruction is used to request the device to be accessed to send device information of the device to be accessed to the gateway device. The first instruction may carry indication information, where the indication information is used to request the device to be accessed to send device information of the device to be accessed to the gateway device.
Of course, in the embodiment of the present application, the gateway device may request, through an instruction, the device to be accessed to report the device information of the device to be accessed, and each device to be accessed may also actively report the device information to the gateway device.
Of course, in one possible embodiment of the present application, the one or more devices to be accessed may include a first type of device and may also include a second type of device, and thus, in a possible implementation of the present application, step 210 may be implemented by way of:
step 211, the gateway device sends a broadcast instruction, and accordingly, at least one first type device of the one or more devices to be accessed receives a broadcast instruction from the gateway device, where the broadcast instruction is used to request device information of each first type device, and indicates a response sequence of each first type device. At least one device of the first type is a device that can receive a broadcast instruction and can identify the broadcast instruction within the coverage area of the gateway device.
As an example, the broadcast instruction may include a first field for requesting device information of each first type of device and indicating a response order of each first type of device. As another example, the broadcast instruction may further include a first field functioning to request device information of each first type of device and a second field indicating a response order of each first type of device.
The broadcast instruction in the embodiment of the application may carry information for determining a response time of each device, and the response time of each device may be used for determining a response sequence of each first type of device.
As one example, the information of the response time may be a way to calculate the response time. And sending a broadcast instruction to the first type of equipment at the gateway equipment, wherein the time for the first type of equipment to receive the instruction is T1, the fixed time delay is T2, the position sequence L refers to the position sequence of the first type of equipment in the short address array, and the fixed time interval between each two equipment is T3.
Wherein T1>0, T2>0, T3>0; l is a positive integer. Wherein, T2 and T3 are fixed values between the device and the access gateway device, and the values may be manually set or reference values, which are not limited in the embodiment of the present application. Alternatively, T2 may be 200ms and T3 may be 100ms. The device response time T is: t=t1+t2+l×t3.
By way of example, the short address may be a 16-bit address that is dynamically allocated when the device joins the network. The form of the position order in the short address array is not limited in the embodiment of the present application, and the short address array may be a table, such as the position order in the short address array shown in table 2:
TABLE 2 position order in short address array
Position order | Device of the first type | Short address |
1 | Device 1 of the first type | 0x0010 |
2 | Device 2 of the first type | 0x0011 |
3 | Device 3 of the first type | 0x0100 |
... | ... | ... |
For example, the response time information may also be response information corresponding to each device, for example, the response time corresponding to the first type of device 1 is T1, the response time corresponding to the second type of device 2 that needs to be responded is T2, and the time interval between T1 and T2 is a fixed time delay.
Optionally, the broadcast instruction is further configured to instruct the first type of device to report a mapping relationship between device information of the first type of device and the object model. As an example, the first type of device may be the ZigBee device of the first type described above.
Step 212, each first type device sequentially feeds back device information to the gateway device according to the respective response sequence, and the gateway device sequentially receives the device information fed back by each first type device according to the response sequence. In this way, the gateway device may reduce the number of times instructions are sent to the first type of device, thereby improving the efficiency of device networking.
As an example, as shown in fig. 4, the gateway device transmits a broadcast instruction, requests acquisition of device information of each first type device, and indicates a response order of each first type device. Wherein, three first type devices respond to the broadcast instruction and feed back respective device information to the gateway device in sequence according to the response sequence indicated by the broadcast instruction.
The gateway device sends a broadcast instruction, and at least one first type device in the one or more devices to be accessed receives the broadcast instruction from the gateway device, wherein the broadcast instruction is used for requesting device information of each first type device and indicating response sequence of each first type device. At least one device of the first type is a device that can receive a broadcast instruction and can identify the broadcast instruction within the coverage area of the gateway device.
In the case where the one or more devices to be accessed include a second type of device (e.g., a ZigBee device of the second type), in one possible implementation of the present application, step 210 may be implemented by: the gateway device sends a standard instruction to at least one second type device in the one or more devices to be accessed, wherein the standard instruction is used for requesting device information of each second type device. At least one device of the second type receives the standard instruction within the coverage of the gateway device and feeds back the respective device information to the gateway device. The gateway device receives device information fed back by each second type of device.
It should be explained that the standard command is a standard command corresponding to the ZigBee protocol, and the second type of device may refer to a standard ZigBee device that responds to the standard command, or may be a third party ZigBee device that cannot respond to the broadcast command. In particular, the second type of device may be a second type of ZigBee device in the system in which the control device of fig. 1 is networked. In this way, the gateway device may direct the third party device to access the network.
In a possible embodiment of the present application, in the case that one or more devices to be accessed includes both the first type of device and the second type of device, the gateway device may first send the broadcast command and then send the standard command, and of course, may also first send the standard command and then send the broadcast command.
In a possible embodiment of the present application, in a case where the gateway device finds that there are one or more devices to be accessed in the periphery, the method may further include determining, by the gateway device, a type of each of the one or more devices to be accessed, so as to facilitate the gateway device determining that the broadcast instruction or the standard instruction is not to be transmitted subsequently.
Of course, in the case where the gateway device first transmits a broadcast instruction, if the gateway device determines that some of the one or more devices to be accessed do not respond to the broadcast instruction, that is, do not provide respective device information according to the broadcast instruction, the gateway device may transmit a standard instruction to the devices that do not respond to the broadcast instruction.
As an example, as shown in fig. 3, the gateway device first transmits a standard instruction to the second type of device 1 for acquiring device information of the second type of device 1. The second type device 1, after receiving the standard instruction, feeds back device information of the second type device 1 to the gateway device. The gateway device sends a standard instruction to the second type of device 2 after receiving the device information fed back from the second type of device 2. Accordingly, after receiving the device information fed back by the second type device 2, the gateway device sends a standard instruction to the second type device 3.
In a possible embodiment of the present application, before step 210, the method provided in the embodiment of the present application further includes determining, by the gateway device, an association relationship between device information of at least one device to be accessed and an object model corresponding to the device to be accessed, so as to obtain a mapping relationship. In this embodiment of the present application, the mapping relationship may be established by the gateway device itself, for example, when the gateway device accesses the gateway device or in the process of accessing the gateway device, the gateway device obtains the target object model of the a device from the a device, and then establishes the association relationship between the target object model of the a device and the device information of the a device, where the mapping relationship may also be preconfigured in the gateway device in advance, or may also be obtained by the gateway device from other devices (such as a cloud).
Alternatively, in the case where the gateway device creates the mapping relationship, the gateway device may also store the mapping relationship in the gateway device/upper level device.
For example, the object model and mapping relationship of one of the target devices stored in the gateway device may be as shown in the schematic diagram of fig. 5.
It should be noted that, the manner of acquiring the device information of the device and the object model mapped by the device may refer to the description of the following embodiments, which is not repeated herein.
As a possible embodiment, the gateway device determines, from object models of one or more devices, a target object model associated with at least one device to be accessed through device information of the one or more devices to be accessed and a mapping relationship, by the following specific ways:
in the mode 1, when the gateway device has a target object model associated with device information of a first device to be accessed in the gateway device, an object model associated with the device information of the first device to be accessed, which is determined from object models of one or more devices according to a mapping relationship, is determined as the target object model, and the first device to be accessed is any one of at least one device to be accessed.
As an example, in a system in which a control device is networked as shown in fig. 1, an object model of one or more ZigBee devices of a first type is preconfigured in the gateway device. Such as gateway devices and ZigBee devices of the first type are manufactured by the same manufacturer. Therefore, the gateway device can acquire the object model of the ZigBee device of the first type from the gateway device through the device information and the mapping relation of the ZigBee device of the first type.
It can be understood that the object model and the mapping relation of the first device to be accessed are stored in the gateway device, and when the corresponding first device to be accessed is accessed to the network next time, the gateway device only needs to acquire the device information of the first device to be accessed, and the object model mapped with the first device to be accessed can be taken out from the gateway device according to the device information, so that the corresponding first device to be accessed to the network corresponding to the gateway device is guided. By establishing the mapping relation to assist the equipment to access the network, the gateway equipment can reduce the times of exchanging information with the first equipment to be accessed, thereby accelerating the equipment to access the network and improving the efficiency of the network access flow.
In the mode 2, when the gateway device does not have the object model associated with the device information of the first device to be accessed, the gateway device determines the acquired closest object model of the first device to be accessed according to the device information of the first device to be accessed as the object model associated with the object device, the device information associated with the closest object model is different from the version information of the device, and the module ID is the same.
As an example, taking the first device to be accessed as device 5 as an example in connection with table 1, assume that the device information of device 5 is: module id2+ version information 3. The gateway device cannot find the corresponding object model in the gateway device according to the device information of the device 5, whereas the device 3 and the device 4 have the same module ID2 as the device 5, but the version information is different, and can find the object model 3 and the object model 4 corresponding to the device 3 and the device 4 in the gateway device. Illustratively, version information 2 of device 4 is closest to version information 3 of device 5. The gateway device thus obtains the closest object model of the device 5, i.e. object model 4, from the gateway device by means of the device information of the device 5. The gateway device can control the device 5 to access the network rapidly according to the object model 4 by finding the closest object model corresponding to the device 5, so that the network access speed and efficiency of the device 5 are improved.
In one possible embodiment of the present application, the one or more devices to be accessed further includes a second device to be accessed, the second device to be accessed is a device other than the at least one device to be accessed, and the gateway device does not have an object model associated with the second device to be accessed.
In one possible embodiment of the present application, the embodiment of the present application may further obtain the object model by:
The gateway equipment acquires an object model associated with the second equipment to be accessed from the target equipment. The gateway device is in a networking state, the target device is a superior device of the gateway device, and the target device is a second device to be accessed when the gateway device is not in the networking state and/or the superior device of the gateway device does not have an object model associated with the second device to be accessed.
As an example, in the system for accessing the control device shown in fig. 1 to the network, the object model of the second device to be accessed is obtained from a superior device of the gateway device, for example, a superior gateway device, a superior node device, or a cloud end, through a northbound interface. The acquisition mode may refer to the description of fig. 1, and will not be described herein.
As another example, in the case that the gateway device and the upper device of the gateway device do not have the object model associated with the second device to be accessed, the gateway device may acquire the object model from the corresponding device needing to access the network through a southbound interface (Southbound Interface, intf.s).
It should be explained that, the southbound interface is an interface for managing network management or devices of other manufacturers, that is, an interface provided downwards, and is generally an interface on a higher layer side connected to a lower layer interface.
Specifically, the gateway device obtains the object model from the corresponding device needing to access the network through the southbound interface, and can broadcast the instruction and/or the standard instruction through the gateway device. For example, a second device to be accessed in the devices to be accessed may identify a broadcast instruction sent by the gateway device, and feed back information of the corresponding object model to the gateway device. The second device to be accessed does not have a corresponding object model in the gateway device, for example because of an update of the version information, no access is made to the corresponding object model at the gateway device. For example, a second device to be accessed in the devices to be accessed may identify a standard instruction sent by the gateway device, and feed back corresponding object model information to the gateway device. By the method, the gateway equipment can quickly find the object model mapped by the second equipment to be accessed when the next equipment is accessed to the network, so that the effect of quick access of the equipment is achieved.
In one possible embodiment of the present application, the at least one device to be accessed includes a third device to be accessed, where the third device to be accessed is a device accessing the network through the closest object model, the method provided by the embodiment of the present application may further include: and after the third device to be accessed is accessed to the network corresponding to the gateway device, acquiring a target object model associated with the third device to be accessed from the third device to be accessed.
Of course, optionally, after obtaining the target object model associated with the third device to be accessed from the third device to be accessed, the method provided in the embodiment of the present application may further include: the gateway equipment updates the mapping relation, and the updated mapping relation at least comprises the association relation between the equipment information of the third equipment to be accessed and the target object model associated with the third equipment to be accessed.
As an example, in order for a gateway device to quickly access a network to which the gateway device corresponds, the gateway device may prioritize use of the closest object model to which the device corresponds without the object model to which the device corresponds. Of course, after the object model corresponding to the third device to be accessed is obtained, the mapping relationship between the device information of the third device to be accessed and the closest object model needs to be updated to be the mapping relationship between the device information of the third device to be accessed and the mapped model. By the method, the gateway equipment can accurately acquire the state information of the third equipment to be accessed after the third equipment to be accessed is accessed to the network, and the third equipment to be accessed is accurately controlled.
As a possible embodiment, the gateway device in the embodiment of the present application has first configuration information, where the first configuration information is used to indicate, in a case where the gateway device does not have a target object model or a closest object model of a certain device, a path of the target object model of the device acquired by the gateway device. For example, the first configuration information may indicate, in a case where the gateway device does not have the object model of a certain device, the object model of the device in the upper device of the gateway device first. And under the condition that the object model of a certain device is not found in the superior device, acquiring the object model of the device from the device. The first configuration information may be preconfigured in the gateway device, may be sent to the gateway device by the superior device, or may be determined by the gateway device by itself, which is not limited in the embodiment of the present application.
It will be appreciated that each device, such as a gateway device, includes corresponding structures and/or software modules that perform the functions described above. Those of skill in the art will readily appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the present application may perform the division of the functional units according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated in one processing unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice.
The method according to the embodiment of the present application is described above with reference to fig. 1 to 5, and the apparatus for performing the method according to the embodiment of the present application is described below. It will be understood by those skilled in the art that the method and apparatus may be combined and cited, and the apparatus for controlling device networking provided in the embodiments of the present application may perform the steps performed by the gateway device in the method for controlling device networking.
In the case of using an integrated unit, fig. 6 shows a device for controlling network access of a device for controlling network access, which may be a gateway device or a device applied in the gateway device, such as a chip or a processing circuit, where the device for controlling network access may include: a first acquisition unit 310, a second acquisition unit 320, and a processing unit 330.
In an alternative implementation, the apparatus for controlling the network access of a device may further comprise a storage unit for storing program code and data of the apparatus for controlling the network access of a device.
The means for controlling the access to the network of the device is, for example, a gateway device or a chip for application in the gateway device. The gateway device is configured to obtain device information of one or more devices to be accessed, where the device information is used to determine a target model associated with the devices to be accessed, and the target model is used to determine a state and/or a control manner of the devices to be accessed, by using the first obtaining unit 310. The second obtaining unit 320 is configured to determine, from object models of one or more devices stored in the gateway device, a target object model associated with at least one device to be accessed through device information of the one or more devices to be accessed and a mapping relationship, where the mapping relationship at least includes an association relationship between device information of the at least one device to be accessed and the target object model, and the at least one device to be accessed belongs to the one or more devices to be accessed. The processing unit 330 is configured to control, by the gateway device, the at least one device to be accessed to a network corresponding to the gateway device according to the object model associated with the at least one device to be accessed.
In one possible implementation manner of the present application, the first obtaining unit 310 is further configured to send a broadcast instruction to the gateway device, where the broadcast instruction is used to instruct the first type of device that receives the broadcast instruction to provide device information of the first type of device, and indicate a response sequence of each first type of device. The gateway device receives the device information fed back by each first type of device in turn according to the response sequence.
In a possible implementation manner of the present application, the first obtaining unit 310 is further configured to send, to each second type of device, a standard instruction to the gateway device, where the standard instruction is used to request each second type of device information. The gateway device receives device information fed back by each second type of device.
In one possible implementation manner of the present application, the second obtaining unit 320 is further configured to determine, as the object model, an object model associated with the device information of the first device to be accessed, which is determined from object models of one or more devices according to the mapping relationship, in a case where the gateway device has the object model associated with the device information of the first device to be accessed, where the first device to be accessed is any one of the at least one device to be accessed. And under the condition that the gateway equipment does not have the target object model associated with the equipment information of the first equipment to be accessed, determining the acquired closest object model of the first equipment to be accessed as the target object model associated with the target equipment according to the equipment information of the first equipment to be accessed, wherein the equipment information associated with the closest object model is different from the version information of the first equipment to be accessed, and the module ID is the same.
In a possible implementation manner of the present application, before the gateway device obtains the device information of the one or more devices to be accessed, the first obtaining unit 310 is further configured to determine an association relationship between the device information of each device of the one or more devices and the object model associated with the device, to obtain the mapping relationship.
In one possible implementation manner of the present application, the second obtaining unit 320 is further configured to obtain, by the gateway device, an object model associated with the second device to be accessed from the target device. The gateway device is in a networking state, the target device is a superior device of the gateway device, and the target device is a second device to be accessed when the gateway device is not in the networking state and/or the superior device of the gateway device does not have an object model associated with the second device to be accessed.
In one possible implementation manner of the present application, the second obtaining unit 320 is further configured to obtain, by the gateway device, after the third device to be accessed accesses the network corresponding to the gateway device, a target object model associated with the third device to be accessed from the third device to be accessed.
In one possible implementation manner of the present application, the processing unit 330 is further configured to update the mapping relationship by using the gateway device, where the updated mapping relationship at least includes an association relationship between device information of the third device to be accessed and a target object model associated with the third device to be accessed.
The processing unit 120 may be a processor or controller, such as a central processing unit, a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules, and circuits described in connection with this disclosure. A processor may also be a combination that performs a computational function, such as a combination comprising one or more microprocessors, a combination of a digital signal processor and a microprocessor, and so forth. The memory module may be a memory.
With further reference to fig. 2, fig. 2 is a schematic structural diagram of a gateway device 100 according to an embodiment of the present application. As shown in fig. 2, the gateway apparatus 100 of this embodiment includes: at least one processing module 120 (only one processor is shown in fig. 2), a memory module 110, and a computer program, such as a data processing program, stored in the memory module 110 and executable on the at least one processing module 120. The processing module 120, when executing a computer program, implements the steps of any of the various method embodiments described above. The processing module 120, when executing a computer program, implements the steps of the embodiments of the respective data processing methods described above. The processing module 120, when executing a computer program, performs the functions of the modules/units in the above-described device embodiments, such as the functions of the units 310 to 330 shown in fig. 6.
Alternatively, the structure of the gateway device 100 as shown in fig. 2 may further include a memory, which may be a read-only memory (ROM) or other type of static storage device that may store static information and instructions, a random access memory (random access memory, RAM) or other type of dynamic storage device that may store information and instructions, or an electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), a compact disc (compact disc read-only memory, CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto. The memory may also be integrated with the processor.
The memory is used for storing computer execution instructions for executing the scheme, and the processor is used for controlling the execution. The processor is configured to execute the computer-executable instructions stored in the memory, thereby implementing a method for controlling network access of a device according to the following embodiments of the present application.
Alternatively, the computer-executable instructions in the embodiments of the present application may be referred to as application program codes, which are not specifically limited in the embodiments of the present application.
In one aspect, a computer readable storage medium is provided having instructions stored therein that, when executed, implement the functions as performed by gateway device 100 in fig. 2.
In one aspect, a computer program product is provided comprising instructions that when executed implement the functions as performed by gateway device 100 in fig. 2.
In one aspect, the present embodiments provide a chip for use in gateway device 100, the chip including at least one processor for executing instructions to implement the functions performed by gateway device 100 as in fig. 2.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are performed in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, a network device, a user device, or other programmable apparatus. The computer program or instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer program or instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center by wired or wireless means. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that integrates one or more available media. The usable medium may be a magnetic medium, e.g., floppy disk, hard disk, tape; optical media, such as digital video discs (digital video disc, DVD); but also semiconductor media such as solid state disks (solid state drive, SSD).
Although the present application has been described herein in connection with various embodiments, other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed application, from a review of the figures, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and the "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
Although the present application has been described in connection with specific features and embodiments thereof, it will be apparent that various modifications and combinations can be made without departing from the spirit and scope of the application. Accordingly, the specification and drawings are merely exemplary illustrations of the present application as defined in the appended claims and are considered to cover any and all modifications, variations, combinations, or equivalents that fall within the scope of the present application. It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to include such modifications and variations as well.
Claims (14)
1. A method for controlling network access of devices, applied to gateway devices, characterized in that at least one or more object models of the devices are stored in the gateway devices, comprising:
acquiring equipment information of one or more equipment to be accessed, wherein the equipment information is used for determining a target object model associated with the equipment to be accessed, and the target object model is used for determining the state and/or control mode of the equipment to be accessed;
determining an associated target object model of at least one device to be accessed from object models of one or more devices through the device information of the one or more devices to be accessed and a mapping relation, wherein the mapping relation at least comprises the association relation between the device information of the at least one device to be accessed and the target object model, and the at least one device to be accessed belongs to one or more devices to be accessed;
and controlling at least one device to be accessed to access to a network corresponding to the gateway device according to the target object model associated with the at least one device to be accessed.
2. The method for controlling network access of devices according to claim 1, wherein the one or more devices to be accessed include a first type of device, and the obtaining device information of the one or more devices to be accessed includes:
Transmitting a broadcast instruction for instructing the first type of device that received the broadcast instruction to provide device information of the first type of device, and for instructing a response order of each of the first type of devices;
and receiving the device information fed back by each device of the first type in turn according to the response sequence.
3. A method of controlling network access of devices according to claim 2, wherein the broadcast instructions further carry information for each of the first type of devices to determine a respective response time, the information of the response time being used to determine a response order of each of the first type of devices.
4. A method of controlling access to a network by a device according to claim 1, wherein the one or more devices comprise one or more devices of a second type, and the obtaining device information of the one or more devices to be accessed comprises:
sending standard instructions to each second type of equipment, wherein the standard instructions are used for requesting each second type of equipment information;
and receiving the device information fed back by each device of the second type.
5. A method for controlling network access of devices according to any one of claims 1 to 4, wherein determining, from object models of one or more devices, at least one object model associated with the device to be accessed by using the device information of the one or more devices to be accessed and a mapping relationship, includes:
under the condition that the gateway equipment is provided with a target object model related to equipment information of first equipment to be accessed, determining an object model related to the equipment information of the first equipment to be accessed, which is determined from object models of one or more equipment according to the mapping relation, as a target object model, wherein the first equipment to be accessed is any one of at least one equipment to be accessed;
and under the condition that the gateway equipment does not have the target object model associated with the equipment information of the first equipment to be accessed, determining the acquired closest object model of the first equipment to be accessed according to the equipment information of the first equipment to be accessed as the target object model associated with the target equipment, wherein the equipment information associated with the closest object model is different from the version information of the first equipment to be accessed, and the module ID is the same.
6. A method of controlling access to a network by a device according to any one of claims 1 to 4, wherein prior to obtaining device information of one or more devices to be accessed, the method further comprises:
and determining the association relation between the equipment information of each piece of equipment in one or more pieces of equipment and the object model associated with the equipment, and obtaining the mapping relation.
7. The method of controlling network access of devices according to any one of claims 1 to 4, wherein one or more devices to be accessed include a second device to be accessed, the second device to be accessed being a device other than at least one of the devices to be accessed, and the gateway device not having therein an object model associated with the second device to be accessed, the method further comprising:
acquiring an object model associated with the second device to be accessed from target equipment;
and the target equipment is the upper-level equipment of the gateway equipment when the gateway equipment is in a networking state, and/or the target equipment is the second equipment to be accessed when the gateway equipment is not in the networking state and/or the upper-level equipment of the gateway equipment does not have the object model associated with the second equipment to be accessed.
8. The method of controlling network access of devices according to any of claims 1-4, wherein at least one of the devices to be accessed comprises a third device to be accessed, the third device to be accessed being a device accessing the network through a closest object model, the method further comprising:
and after the third device to be accessed accesses the network corresponding to the gateway device, acquiring a target object model associated with the third device to be accessed from the third device to be accessed.
9. The method for controlling network access of a device according to claim 8, after the obtaining, from the third device to be accessed, an object model of the third device to be accessed, the method further comprising:
and updating the mapping relation, wherein the updated mapping relation at least comprises the association relation between the equipment information of the third equipment to be accessed and the target object model associated with the third equipment to be accessed.
10. A method of controlling network access of a device according to any one of claims 1 to 4, wherein the device information comprises a module ID and version information of the device, the object model comprises one or more endpoint information of the device, the endpoint information is used to identify the device, and the endpoint information comprises attribute information, control commands, grouping information, scene information, configuration information, and linkage information of the endpoint.
11. An apparatus for controlling access to a network by a device, comprising:
the first acquisition unit is used for acquiring equipment information of one or more equipment to be accessed, wherein the equipment information is used for determining a target object model associated with the equipment to be accessed, and the target object model is used for determining the state and/or control mode of the equipment to be accessed;
the second obtaining unit is configured to determine, from object models of one or more devices stored in the gateway device, a target object model associated with at least one device to be accessed through the device information of the one or more devices to be accessed and a mapping relationship, where the mapping relationship at least includes an association relationship between device information of the at least one device to be accessed and the target object model, and at least one device to be accessed belongs to one or more devices to be accessed;
and the processing unit is used for controlling at least one device to be accessed to access to the network corresponding to the gateway device according to the target object model associated with the at least one device to be accessed.
12. Gateway device comprising a memory, a processor and a communication interface, and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 10 when executing the computer program.
13. A computer readable storage medium storing a computer program, which when executed by a processor implements the method of any one of claims 1 to 10.
14. A system for controlling the access of devices to a network, characterized in that the system comprises a gateway device and one or more devices, the gateway device being adapted to perform the method according to any of claims 1 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210982182.1A CN116113013A (en) | 2022-08-16 | 2022-08-16 | Method, device, gateway device, system and storage medium for controlling network access of equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210982182.1A CN116113013A (en) | 2022-08-16 | 2022-08-16 | Method, device, gateway device, system and storage medium for controlling network access of equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116113013A true CN116113013A (en) | 2023-05-12 |
Family
ID=86262615
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210982182.1A Pending CN116113013A (en) | 2022-08-16 | 2022-08-16 | Method, device, gateway device, system and storage medium for controlling network access of equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116113013A (en) |
-
2022
- 2022-08-16 CN CN202210982182.1A patent/CN116113013A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110012437B (en) | Method, device and system for sending multicast message | |
US10754869B2 (en) | Managing data format of data received from devices in an internet of things network | |
JP6859340B2 (en) | Equipment, systems and methods for retrieving, processing and updating global information | |
CN109120477B (en) | Dynamic analysis method, device, server and storage medium based on modbus protocol | |
CN106920382B (en) | Method for controlling intelligent instrument to access network, master station and data centralized unit | |
CN111416723A (en) | Equipment management method and related equipment | |
US20230045914A1 (en) | Method and apparatus for controlling device in internet of things, and gateway device and storage medium | |
CN110035133B (en) | Method and device for acquiring IP address of peer-to-peer device in android WiFi-Direct connection | |
CN117978811B (en) | Mapping relation determination method and system, storage medium and electronic device | |
WO2016154918A1 (en) | Data processing method, apparatus and device | |
CN104917794A (en) | Data sharing method, device and system | |
EP3901766A1 (en) | Offline configuration method and apparatus for smart device | |
CN114285695B (en) | Communication method, device, apparatus, system and storage medium | |
US10887249B2 (en) | Resource trees by management controller | |
CN109525417B (en) | Household appliance access method based on internet access, household appliance controller and storage medium | |
CN116113013A (en) | Method, device, gateway device, system and storage medium for controlling network access of equipment | |
CN111511041B (en) | Remote connection method and device | |
CN106028303B (en) | Intelligent device discovery method and device | |
CN114448801B (en) | Method for creating real-time channel group, network topology, equipment and storage medium | |
CN111212399B (en) | Data transmission method and device, computer storage medium and electronic equipment | |
EP3573303B1 (en) | Forwarder network-access recognition method, sdn controller, and forwarder | |
US11729060B2 (en) | Methods and nodes for cluster formation | |
CN109640339B (en) | Method, device, system and storage medium for managing multiple Bluetooth antenna devices | |
CN105389218A (en) | Methods of server cabinet for processing basic input output system (BIOS) information, and nodes | |
EP3317763A1 (en) | Commissioning of virtualized entities |
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 |