CN112187508B - Internet of things gateway equipment management method, device, equipment and readable storage medium - Google Patents
Internet of things gateway equipment management method, device, equipment and readable storage medium Download PDFInfo
- Publication number
- CN112187508B CN112187508B CN202010850772.XA CN202010850772A CN112187508B CN 112187508 B CN112187508 B CN 112187508B CN 202010850772 A CN202010850772 A CN 202010850772A CN 112187508 B CN112187508 B CN 112187508B
- Authority
- CN
- China
- Prior art keywords
- information
- gateway
- equipment
- internet
- gateway device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/04—Network management architectures or arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application relates to a method and a device for managing gateway equipment of the Internet of things, computer equipment and a storage medium. The method comprises the following steps: after gateway equipment of the Internet of things is powered on, acquiring a network address of the gateway equipment; sending an equipment information acquisition instruction to the gateway equipment according to the network address; receiving the device information returned by the gateway device based on the device information acquisition instruction; determining a management identifier corresponding to the gateway device according to the device information; and establishing a corresponding relation between the network address and the management identifier. By adopting the method, the efficiency of managing the gateway equipment of the Internet of things can be improved.
Description
Technical Field
The application relates to the field of internet, in particular to a method, a device, equipment and a readable storage medium for managing gateway equipment of the internet of things.
Background
With the rapid development of the internet of things, more and more terminal devices access the internet of things through gateway devices of the internet of things. When the gateway device of the internet of things is managed at present, different network addresses need to be manually configured for the gateway device according to the field network environment in the installation and deployment process of the gateway device, the device information and the network addresses of the gateway device are recorded manually, and then the recorded device information and the recorded network addresses of the gateway device are recorded into a corresponding gateway device management platform, so that the gateway device management platform records the recorded device information and the recorded network addresses of the gateway device to manage the gateway device.
However, the method for managing the gateway device of the internet of things is complex to operate and prone to errors, so that the efficiency of managing the gateway device of the internet of things is low.
Disclosure of Invention
Based on this, it is necessary to provide a method, an apparatus, a device and a readable storage medium for managing an internet of things gateway device, aiming at the technical problem of low efficiency of management of the internet of things gateway device.
An internet of things gateway device management method, the method comprising:
after gateway equipment of the Internet of things is powered on, acquiring a network address of the gateway equipment;
sending an equipment information acquisition instruction to the gateway equipment according to the network address;
receiving equipment information returned by the gateway equipment based on the equipment information acquisition instruction;
determining a management identifier corresponding to the gateway device according to the device information;
and establishing a corresponding relation between the network address and the management identifier.
In one embodiment, the determining the management identifier corresponding to the gateway device according to the device information includes:
acquiring equipment layout information;
and determining a management identifier corresponding to the gateway device according to the device layout information and the position information.
In one embodiment, the determining the management identifier corresponding to the gateway device according to the device layout information and the location information includes:
determining second position information of the gateway equipment according to the equipment layout information and the first position information;
and determining a management identifier corresponding to the gateway equipment according to the second position information.
In one embodiment, the method further comprises:
acquiring configuration information corresponding to the management identifier;
generating a gateway configuration instruction according to the configuration information;
and sending the gateway configuration instruction to the gateway equipment according to the corresponding relation so as to enable the gateway equipment to carry out gateway configuration according to the configuration information.
In one embodiment, the method further comprises:
when detecting that the first upgrading resource information corresponding to the management identification is updated, acquiring a first upgrading resource package corresponding to the first upgrading resource information;
generating a first resource upgrading instruction according to the first upgrading resource package;
and sending the first resource upgrading instruction to the gateway equipment according to the corresponding relation so as to enable the gateway equipment to upgrade resources according to the first upgrading resource package.
In one embodiment, the method further comprises:
when detecting that second upgrading resource information corresponding to the management identification is updated, acquiring a second upgrading resource package corresponding to the second upgrading resource information;
generating a second resource upgrading instruction according to the second upgrading resource package;
and forwarding the second resource upgrading instruction to the Internet of things terminal through the gateway equipment according to the corresponding relation so as to enable the Internet of things terminal to carry out resource upgrading according to the second upgrading resource packet, wherein the Internet of things terminal is accessed into the Internet of things through the gateway equipment.
An internet of things gateway device management apparatus, the apparatus comprising:
the network address acquisition module is used for acquiring the network address of gateway equipment after the gateway equipment of the Internet of things is powered on;
the instruction sending module is used for sending an equipment information acquisition instruction to the gateway equipment according to the network address;
the information receiving module is used for receiving the equipment information returned by the gateway equipment based on the equipment information acquisition instruction;
a management identifier determining module, configured to determine, according to the device information, a management identifier corresponding to the gateway device;
and the corresponding relation establishing module is used for establishing the corresponding relation between the network address and the management identifier.
In one embodiment, the device information is location information, and the management identifier determining module is further configured to:
acquiring equipment layout information;
and determining a management identifier corresponding to the gateway device according to the device layout information and the position information.
In an embodiment, the location information is first location information of an internet of things terminal accessing the internet of things through the gateway device, and the management identifier determining module is further configured to:
determining second position information of the gateway equipment according to the equipment layout information and the first position information;
and determining a management identifier corresponding to the gateway device according to the second location information.
In one embodiment, the apparatus further comprises:
the configuration information acquisition module is used for acquiring the configuration information corresponding to the management identifier;
the instruction generating module is used for generating a gateway configuration instruction according to the configuration information;
the instruction sending module is further configured to send the gateway configuration instruction to the gateway device according to the corresponding relationship, so that the gateway device performs gateway configuration according to the configuration information.
In one embodiment, the apparatus further comprises:
the upgrade resource package acquisition module is used for acquiring a first upgrade resource package corresponding to the first upgrade resource information when the update of the first upgrade resource information corresponding to the management identifier is detected;
the instruction generating module is further used for generating a first resource upgrading instruction according to the first upgrading resource package;
the instruction sending module is further configured to send the first resource upgrading instruction to the gateway device according to the corresponding relationship, so that the gateway device performs resource upgrading according to the first upgrading resource package.
In an embodiment, the upgraded resource package obtaining module is further configured to obtain a second upgraded resource package corresponding to second upgraded resource information when it is detected that the second upgraded resource information corresponding to the management identifier is updated;
the instruction generating module is further configured to generate a second resource upgrading instruction according to the second upgrading resource package;
the instruction sending module is further configured to forward the second resource upgrading instruction to the internet of things terminal through the gateway device according to the corresponding relationship, so that the internet of things terminal performs resource upgrading according to the second upgrading resource package, and the internet of things terminal accesses the internet of things through the gateway device.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the above method when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
According to the method, the device, the equipment and the readable storage medium for managing the gateway equipment of the Internet of things, after the gateway equipment of the Internet of things is powered on, the network address of the gateway equipment is obtained, the equipment information obtaining instruction is sent to the gateway equipment according to the network address, the equipment information returned by the gateway equipment based on the equipment information obtaining instruction is received, the management identification corresponding to the gateway equipment is determined according to the equipment information, and the corresponding relation between the network address and the management identification is established, so that the network address and the equipment information of the gateway equipment can be automatically obtained after the gateway equipment of the Internet of things is powered on, the corresponding relation between the network address and the management identification is established based on the equipment information, the gateway equipment is managed based on the corresponding relation, and the management efficiency of the gateway equipment of the Internet of things is improved.
Drawings
Fig. 1 is an application environment diagram of a gateway device management method of the internet of things in one embodiment;
fig. 2 is a schematic flowchart of a gateway device management method of the internet of things in an embodiment;
FIG. 3 is a diagram illustrating an installation deployment of a gateway device in one embodiment;
FIG. 4 is a schematic diagram illustrating installation and deployment of a management area in an installation and deployment diagram in one embodiment;
fig. 5 is a schematic flowchart of a gateway device management method of the internet of things in another embodiment;
fig. 6 is a block diagram illustrating a structure of an internet of things gateway device management apparatus in an embodiment;
fig. 7 is a block diagram of a gateway device management apparatus of the internet of things in another embodiment;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The internet of things gateway device management method provided by the application can be applied to the application environment shown in fig. 1. The internet of things terminal 106 accesses the internet of things through the gateway device 104 of the internet of things, and the gateway device 104 and the gateway device management platform 102 communicate through a network. In an embodiment, after the gateway device 104 of the internet of things is powered on, the gateway device management platform 102 acquires a network address of the gateway device 104, sends a device information acquisition instruction to the gateway device 104 according to the network address, receives device information returned by the gateway device 104 based on the device information acquisition instruction, determines a management identifier corresponding to the gateway device according to the device information, and establishes a corresponding relationship between the network address and the management identifier. In another embodiment, after the gateway device 104 of the internet of things is powered on, the gateway device 104 automatically obtains the network address and the device information of the gateway device 104 itself, and reports the network address and the device information to the gateway device management platform 102, and the gateway device management platform 102 determines the management identifier corresponding to the gateway device according to the device information and establishes the corresponding relationship between the network address and the management identifier.
The internet of things terminal 106 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, portable wearable devices, and various internet of things devices, and the gateway device management platform 102 may be implemented by an independent server or a server cluster formed by multiple servers.
In an embodiment, as shown in fig. 2, a method for managing gateway devices of the internet of things is provided, which is described by taking the method as an example applied to the gateway device management platform 102 in fig. 1, and includes the following steps:
s202, after the gateway equipment of the Internet of things is powered on, the network address of the gateway equipment is obtained.
The Internet of Things (IOT) is used for acquiring any object or process needing monitoring, connection and interaction in real time and acquiring various required information of sound, light, heat, electricity, mechanics, chemistry, biology, position and The like through various devices and technologies such as various information sensors, radio frequency identification technologies, global positioning systems, infrared sensors, laser scanners and The like, and realizing The ubiquitous connection of objects, objects and people through various possible network accesses, thereby realizing intelligent sensing, identification and management of The objects and The processes.
The gateway equipment of the Internet of things is equipment for connecting the sensing network and the traditional communication network, and can realize protocol conversion between the sensing network and the communication network and between different types of sensing networks.
In one embodiment, after the gateway device of the internet of things is powered on, a manager can perform access configuration on the gateway device, the gateway device accesses the communication network according to the access configuration performed by the manager, obtains a network address of the gateway device, and reports the network address to the gateway device management platform, so that the gateway device management platform obtains the network address of the gateway device. The network address may be an IP address of the gateway device, and the IP address may be dynamically obtained in a DHCP manner. DHCP (dynamic host configuration protocol) is a network protocol for local area networks. The method is characterized in that a server controls a range of IP addresses, and a client can automatically obtain the IP address and the subnet mask allocated by the server when logging in the server.
In one embodiment, after the gateway device of the internet of things is powered on, a manager can perform access configuration on the gateway device, the gateway device accesses the communication network according to the access configuration performed by the manager, obtains a network address of the gateway device, sends a connection request to the gateway device management platform according to the network address, and the gateway device management platform obtains the network address of the gateway device according to the received connection request.
And S204, sending an equipment information acquisition instruction to the gateway equipment according to the network address.
The device information obtaining instruction instructs the user to obtain the device information of the gateway device, where the device information of the gateway device may specifically be identification information of the gateway device or location information of the gateway device, and specifically, the identification information may be a device number, and the location information may be a location coordinate or a location number.
In one embodiment, after acquiring the network address of the gateway device, the gateway device management platform generates a device information acquisition instruction, and sends the device information acquisition instruction to the gateway device, so that the gateway device acquires the device information according to the device information acquisition instruction. The device information obtaining instruction carries an information type, the information type is the type of device information to be obtained, the information type of the device information can be an identification type or a position type, when the information type carried by the device information obtaining instruction is the identification type, the device information obtained based on the device information obtaining instruction is the identification information, and when the information type carried by the device information obtaining instruction is the position type, the device information obtained based on the device information obtaining instruction is the position information.
Specifically, the type of the device information in the device information obtaining instruction may be represented by a type string, the type string may be one of a letter, a number, and a symbol, and the identification type and the location type respectively correspond to different type strings, for example, the type string corresponding to the identification type is "01", and the type string corresponding to the location type is "02".
In one embodiment, after acquiring the network address of the gateway device, the gateway device may further acquire a device model of the gateway device, and report the network address and the device model to the gateway device management platform, and the gateway device management platform generates a corresponding device information acquisition instruction according to the device model of the gateway device, and sends the device information acquisition instruction to the gateway device corresponding to the network address.
The method for generating the corresponding equipment information acquisition instruction by the gateway equipment management platform according to the equipment model of the gateway equipment comprises the following steps: the gateway equipment management platform judges whether the gateway equipment has the capacity of acquiring the position information or not according to the equipment model of the gateway equipment, and if the gateway equipment does not have the capacity of acquiring the position information, the gateway equipment management platform generates an equipment information acquisition instruction carrying an identification type; and if the gateway equipment has the position information acquisition capability, the gateway equipment management platform generates an equipment information acquisition instruction carrying the position type.
And S206, receiving the device information returned by the gateway device based on the device information acquisition instruction.
The device information may be identification information of the gateway device or location information of the gateway device, specifically, the identification information may be a device number, and the location information may be a location coordinate or a location number.
In one embodiment, after receiving the device information acquisition instruction, the gateway device acquires corresponding device information according to the device information acquisition instruction, and returns the acquired device information to the gateway device management platform, and the gateway device management platform receives the device information returned by the gateway device.
In an embodiment, the gateway device obtains the corresponding device information according to the information type carried by the device information obtaining instruction and according to the information type, and specifically, the gateway device determines a corresponding device information obtaining manner according to the information type and obtains the corresponding device information according to the determined device information obtaining manner.
In one embodiment, when the information type carried by the device information obtaining instruction is an identification type, the gateway device directly obtains identification information of itself from a local storage, and returns the identification information to the gateway device management platform, and the gateway device management platform receives the identification information returned by the gateway device.
Specifically, when an installer installs and deploys the gateway devices, the installer allocates corresponding identification information to each gateway device, and the gateway devices store the allocated identification information, so that when receiving a device information acquisition instruction, the installer acquires the corresponding identification information. Wherein the identification information may be a device number.
For example, fig. 3 shows an installation deployment diagram of a gateway device in an embodiment, and when an installer installs and deploys the gateway device, when the installed gateway device corresponds to the management area D in fig. 3, the gateway device is assigned with a corresponding device number "4".
In one embodiment, when the information type carried by the device information obtaining instruction is a location identifier, the gateway device obtains location information of itself and returns the obtained location information to the gateway device management platform, and the gateway device management platform receives the location information returned by the gateway device.
Specifically, if a positioning module (such as a GPS, a big dipper, etc.) is built in or externally connected to the gateway device, the gateway device obtains its own position information through the positioning module; if a near field communication module (such as NFC, RFID, or the like) is built in or outside the gateway device, the gateway device reads a positioning tag or a positioning graphic code, which is provided near the installation location, through the near field communication module, so as to obtain its own location information.
And S208, determining the management identifier corresponding to the gateway device according to the device information.
The management identifier is an identifier assigned to each gateway device to manage the gateway devices.
In one embodiment, after receiving device information returned by the gateway device based on the device information acquisition instruction, the gateway device management platform determines a management identifier corresponding to the gateway device according to the device information.
Specifically, when the device information is identification information, the corresponding management identifier is determined according to the identification information, where the management identifier and the identification information may be the same or different. For example, when the identification information is a device number, the gateway device management platform may directly determine the device number as a management identifier, or may generate a corresponding management identifier according to the device number.
S210, establishing a corresponding relation between the network address and the management identifier.
In an embodiment, after the gateway device management platform determines the management identifier corresponding to the gateway device, the gateway device management platform establishes a corresponding relationship between the acquired network address and the management identifier, and stores the corresponding relationship, so as to manage the gateway device corresponding to the network address based on the corresponding relationship.
In the above embodiment, after the gateway device of the internet of things is powered on, the gateway device management platform obtains the network address of the gateway device, sends the device information obtaining instruction to the gateway device according to the network address, receives the device information returned by the gateway device based on the device information obtaining instruction, determines the management identifier corresponding to the gateway device according to the device information, and establishes the corresponding relationship between the network address and the management identifier, so that the network address and the device information of the gateway device can be automatically obtained after the gateway device of the internet of things is powered on, and the corresponding relationship between the network address and the management identifier is established based on the device information, so that the gateway device is managed based on the corresponding relationship, and the efficiency of managing the gateway device of the internet of things is improved.
In one embodiment, the device information received by the gateway device management platform is location information, and after receiving the location information, the gateway device management platform acquires device layout information and determines a management identifier of the gateway device according to the device layout information and the location information.
Specifically, the device layout information includes a corresponding relationship between a management area and a management identifier, and may specifically be an installation deployment diagram of the gateway device, where the location information is location information acquired by the gateway device through a positioning module or a near field communication module, and after the location information is acquired by the gateway device management platform, the management area to which the location information belongs is determined, and the corresponding management identifier is determined according to the determined management area. For example, the location information is longitude and latitude coordinates of the gateway device, the gateway device management platform calculates a relative location of the gateway device with respect to a reference point according to coordinates of a preset reference point in the device layout drawing, and determines a management area to which the gateway device belongs according to the relative location, thereby determining a corresponding management identifier.
For example, referring to an installation deployment diagram of the gateway device shown in fig. 3, the diagram shows a management area a to a management area P, the management area a to the management area P correspond to a management identifier 1 to a management identifier 16, a horizontal interval between the management areas is 50m, a vertical interval is 50m, a reference point is set at a central position, a relative position of the gateway device with respect to the reference point is determined to be (-75, 25) according to the obtained position information of the gateway device, and the relative position corresponds to a management area C, so that the management identifier corresponding to the gateway device is determined to be 3.
In the above embodiment, after the gateway device management platform acquires the location information, the device layout information is acquired, and the management identifier corresponding to the gateway device is determined according to the device layout information and the location information, so that a corresponding relationship between the network address and the management identifier can be established according to the location information, the gateway device is managed based on the corresponding relationship, and the efficiency of managing the gateway device of the internet of things is improved.
In one embodiment, the location information is first location information of an internet of things terminal accessing the internet of things through a gateway device. Specifically, after receiving an equipment information acquisition instruction carrying a position identifier, gateway equipment acquires first position information of an internet of things terminal accessed to the internet of things through the gateway equipment according to the equipment information acquisition instruction, and returns the first position information to a gateway equipment management platform, and after receiving the first position information, the gateway equipment management platform acquires equipment layout information and determines second position information of the gateway equipment according to the equipment layout information and the first position information; and determining the management identifier corresponding to the gateway device according to the second location information.
For example, fig. 4 shows an installation and deployment schematic diagram of one management area of an installation and deployment diagram (fig. 3) of a gateway device, after receiving first location information of the internet of things terminal 402, a gateway device management platform acquires the installation and deployment diagram (refer to fig. 3) of the device, and determines that the internet of things terminal 402 belongs to the management area C according to the installation and deployment diagram and the first location information of the device, and then the gateway device 404 corresponding to the internet of things terminal 402 also belongs to the management area C (i.e., obtains second location information of the gateway device 404), thereby determining that a management identifier corresponding to the gateway device 404 is 3.
In the above embodiment, the gateway device management platform obtains the first location information of the terminal of the internet of things, determines the second location information of the gateway device according to the device layout information and the first location information, and determines the management identifier corresponding to the gateway device according to the second location information, so that the gateway device does not have a positioning function and can determine the location information of the gateway device in time, and then establishes the corresponding relationship between the network address and the management identifier according to the location information of the gateway device, so as to manage the gateway device based on the corresponding relationship, thereby improving the efficiency of managing the gateway device of the internet of things.
In one embodiment, the method for managing the internet of things gateway device further includes the following steps: and acquiring configuration information corresponding to the management identifier, generating a gateway configuration instruction according to the configuration information, and sending the gateway configuration instruction to the gateway equipment according to the corresponding relation so that the gateway equipment performs gateway configuration according to the configuration information, thereby enabling a corresponding local network networking terminal to access the Internet of things through the gateway equipment. Wherein the configuration information comprises a communication interface configuration file of the gateway device.
In one embodiment, after establishing a correspondence between a network address and a management identifier, when receiving a configuration information acquisition request of a gateway device, a gateway device management platform determines the network address of the gateway device that sends the configuration information acquisition request, determines the management identifier of the gateway device according to the network address and the pre-stored correspondence, acquires configuration information corresponding to the management identifier, and returns the configuration information to the gateway device, and the gateway device performs gateway configuration according to the configuration information, so that a corresponding network networking terminal can access the internet of things through the gateway device.
In the above embodiment, the gateway device management platform obtains the configuration information corresponding to the management identifier, generates the gateway configuration instruction according to the configuration information, and sends the gateway configuration instruction to the gateway device according to the corresponding relationship, so that the gateway device automatically performs gateway configuration according to the configuration information, and further, the corresponding network networking terminal can access the internet of things through the gateway device, thereby improving the gateway configuration efficiency and accuracy of the gateway device.
In one embodiment, after establishing a corresponding relationship between a network address and a management identifier, when it is detected that first upgrade resource information corresponding to the management identifier is updated, a gateway device management platform acquires a first upgrade resource package corresponding to the first upgrade resource information, generates a first resource upgrade instruction according to the first upgrade resource package, and sends the first resource upgrade instruction to a gateway device according to the corresponding relationship, so that the gateway device performs resource upgrade according to the first upgrade resource package. The first upgrade resource information is information of upgrade resources corresponding to the gateway device, the first upgrade resource may be a first upgrade package, the first upgrade resource information may be a size of the first upgrade package and version information of the first upgrade package, and the version information may specifically be a version number.
In the above embodiment, when detecting that the first upgrade resource information corresponding to the management identifier is updated, the gateway device management platform implements resource upgrade on the gateway device by acquiring the first upgrade resource packet, thereby avoiding manual upgrade on the gateway device and improving the upgrade efficiency of the gateway device.
In one embodiment, after the gateway device management platform establishes the corresponding relationship between the network address and the management identifier, when it is detected that second upgrade resource information corresponding to the management identifier is updated, a second upgrade resource package corresponding to the second upgrade resource information is acquired, a second resource upgrade instruction is generated according to the second upgrade resource package, and the second resource upgrade instruction is forwarded to the internet of things terminal through the gateway device according to the corresponding relationship, so that the internet of things terminal performs resource upgrade according to the second upgrade resource package, and the internet of things terminal accesses the internet of things through the gateway device. The second upgrade resource information is information of upgrade resources corresponding to the gateway device, the second upgrade resource may be a second upgrade package, the second upgrade resource information may be a size of the second upgrade package and version information of the second upgrade package, and the version information may specifically be a version number.
In the above embodiment, when detecting that the second upgrade resource information corresponding to the management identifier is updated, the gateway device management platform realizes resource upgrade of the internet of things terminal by acquiring the second upgrade resource packet, thereby avoiding manual upgrade of the internet of things terminal and improving upgrade efficiency of the internet of things terminal.
In an embodiment, as shown in fig. 5, an internet of things gateway device management is further provided, which is described by taking the application of the method to the gateway device management platform 102 in fig. 1 as an example, and includes the following steps:
s502, after the gateway equipment of the Internet of things is powered on, the network address of the gateway equipment is obtained.
S504, sending an equipment information acquisition instruction to the gateway equipment according to the network address.
S506, receiving the device information returned by the gateway device based on the device information acquisition instruction.
And S508, determining the management identifier corresponding to the gateway device according to the device information.
S510, establishing a corresponding relation between the network address and the management identifier.
S512, when it is detected that the first upgrade resource information corresponding to the management identifier is updated, a first upgrade resource package corresponding to the first upgrade resource information is obtained.
And S514, generating a first resource upgrading instruction according to the first upgrading resource package.
And S516, sending the first resource upgrading instruction to the gateway equipment according to the corresponding relation, so that the gateway equipment carries out resource upgrading according to the first upgrading resource package.
It should be understood that although the various steps in the flowcharts of fig. 2 and 5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2 and 5 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 6, there is provided an internet of things gateway device management apparatus, including: a network address obtaining module 602, an instruction sending module 604, an information receiving module 606, a management identifier determining module 608, and a corresponding relationship establishing module 610, wherein:
a network address obtaining module 602, configured to obtain a network address of a gateway device after the gateway device of the internet of things is powered on;
an instruction sending module 604, configured to send an apparatus information obtaining instruction to the gateway apparatus according to the network address;
an information receiving module 606, configured to receive device information returned by the gateway device based on the device information acquisition instruction;
a management identifier determining module 608, configured to determine, according to the device information, a management identifier corresponding to the gateway device;
a corresponding relationship establishing module 610, configured to establish a corresponding relationship between the network address and the management identifier.
In the above embodiment, after the gateway device of the internet of things is powered on, the gateway device management platform obtains the network address of the gateway device, sends the device information obtaining instruction to the gateway device according to the network address, receives the device information returned by the gateway device based on the device information obtaining instruction, determines the management identifier corresponding to the gateway device according to the device information, and establishes the corresponding relationship between the network address and the management identifier, so that the network address and the device information of the gateway device can be automatically obtained after the gateway device of the internet of things is powered on, and the corresponding relationship between the network address and the management identifier is established based on the device information, so that the gateway device is managed based on the corresponding relationship, and the efficiency of managing the gateway device of the internet of things is improved.
In one embodiment, the device information is location information, and the management identity determining module 608 is further configured to:
acquiring equipment layout information;
and determining a management identifier corresponding to the gateway equipment according to the equipment layout information and the position information.
In the above embodiment, after the gateway device management platform acquires the location information, the device layout information is acquired, and the management identifier corresponding to the gateway device is determined according to the device layout information and the location information, so that a corresponding relationship between the network address and the management identifier can be established according to the location information, the gateway device is managed based on the corresponding relationship, and the efficiency of managing the gateway device of the internet of things is improved.
In an embodiment, the location information is first location information of an internet of things terminal accessing the internet of things through the gateway device, and the management identifier determining module 608 is further configured to:
determining second position information of the gateway equipment according to the equipment layout information and the first position information;
and determining the management identifier corresponding to the gateway equipment according to the second position information.
In the above embodiment, the gateway device management platform obtains the first location information of the terminal of the internet of things, determines the second location information of the gateway device according to the device layout information and the first location information, and determines the management identifier corresponding to the gateway device according to the second location information, so that the gateway device does not have a positioning function and can also determine the location information of the gateway device, and then establishes a corresponding relationship between the network address and the management identifier according to the location information of the gateway device, so as to manage the gateway device based on the corresponding relationship, thereby improving the efficiency of managing the gateway device of the internet of things.
In one embodiment, as shown in fig. 7, the apparatus further comprises: a configuration information obtaining module 612 and an instruction generating module 614, wherein:
a configuration information obtaining module 612, configured to obtain configuration information corresponding to the management identifier;
the instruction generating module 614 is configured to generate a gateway configuration instruction according to the configuration information;
the instruction sending module 604 is further configured to send the gateway configuration instruction to the gateway device according to the corresponding relationship, so that the gateway device performs gateway configuration according to the configuration information.
In the above embodiment, the gateway device management platform obtains the configuration information corresponding to the management identifier, generates the gateway configuration instruction according to the configuration information, and sends the gateway configuration instruction to the gateway device according to the corresponding relationship, so that the gateway device automatically performs gateway configuration according to the configuration information, and further, the corresponding network networking terminal can access the internet of things through the gateway device, thereby improving the gateway configuration efficiency and accuracy of the gateway device.
In one embodiment, as shown in fig. 7, the apparatus further comprises: an upgrade resource package obtaining module 616, wherein:
an upgrade resource package obtaining module 616, configured to obtain a first upgrade resource package corresponding to the first upgrade resource information when it is detected that the first upgrade resource information corresponding to the management identifier is updated;
the instruction generating module 614 is further configured to generate a first resource upgrading instruction according to the first upgrading resource package;
the instruction sending module 604 is further configured to send the first resource upgrade instruction to the gateway device according to the corresponding relationship, so that the gateway device performs resource upgrade according to the first upgrade resource package.
In the above embodiment, when detecting that the first upgrade resource information corresponding to the management identifier is updated, the gateway device management platform implements resource upgrade on the gateway device by acquiring the first upgrade resource packet, thereby avoiding manual upgrade on the gateway device and improving the upgrade efficiency of the gateway device.
In an embodiment, the upgraded resource package obtaining module 616 is further configured to, when it is detected that the second upgraded resource information corresponding to the management identifier is updated, obtain a second upgraded resource package corresponding to the second upgraded resource information;
the instruction generating module 614 is further configured to generate a second resource upgrading instruction according to the second upgrading resource package;
the instruction sending module 604 is further configured to forward the second resource upgrade instruction to the internet of things terminal through the gateway device according to the corresponding relationship, so that the internet of things terminal performs resource upgrade according to the second upgrade resource package, and the internet of things terminal accesses the internet of things through the gateway device.
In the above embodiment, when detecting that the second upgrade resource information corresponding to the management identifier is updated, the gateway device management platform realizes resource upgrade on the internet of things terminal by acquiring the second upgrade resource packet, thereby avoiding manual upgrade on the internet of things terminal, and improving the upgrade efficiency of the internet of things terminal.
For specific limitations of the internet of things gateway device management apparatus, reference may be made to the above limitations on the internet of things gateway device management method, which is not described herein again. All modules in the internet of things gateway equipment management device can be completely or partially realized through software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a gateway device management platform 102, the internal structure of which may be as shown in fig. 8. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the corresponding relation data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize a method for managing gateway equipment of the Internet of things.
It will be appreciated by those skilled in the art that the configuration shown in fig. 8 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of: after gateway equipment of the Internet of things is powered on, acquiring a network address of the gateway equipment; sending a device information acquisition instruction to the gateway device according to the network address; receiving equipment information returned by the gateway equipment based on the equipment information acquisition instruction; determining a management identifier corresponding to the gateway equipment according to the equipment information; and establishing a corresponding relation between the network address and the management identifier.
In one embodiment, the device information is location information, and when the processor executes the step of determining the management identifier corresponding to the gateway device according to the device information, the processor is caused to specifically execute the following steps: acquiring equipment layout information; and determining a management identifier corresponding to the gateway equipment according to the equipment layout information and the position information.
In one embodiment, the location information is first location information of an internet of things terminal accessing the internet of things through the gateway device, and when the processor executes the step of determining the management identifier corresponding to the gateway device according to the device layout information and the location information, the processor is caused to specifically execute the following steps: determining second position information of the gateway equipment according to the equipment layout information and the first position information; and determining the management identifier corresponding to the gateway equipment according to the second position information.
In one embodiment, the computer program, when executed by the processor, causes the processor to further perform the steps of: acquiring configuration information corresponding to the management identifier; generating a gateway configuration instruction according to the configuration information; and sending the gateway configuration instruction to the gateway equipment according to the corresponding relation so that the gateway equipment performs gateway configuration according to the configuration information.
In one embodiment, the computer program, when executed by the processor, causes the processor to further perform the steps of: when detecting that the first upgrade resource information corresponding to the management identification is updated, acquiring a first upgrade resource package corresponding to the first upgrade resource information; generating a first resource upgrading instruction according to the first upgrading resource package; and sending the first resource upgrading instruction to the gateway equipment according to the corresponding relation so that the gateway equipment carries out resource upgrading according to the first upgrading resource package.
In one embodiment, the computer program, when executed by the processor, causes the processor to further perform the steps of: when detecting that the second upgraded resource information corresponding to the management identifier is updated, acquiring a second upgraded resource packet corresponding to the second upgraded resource information; generating a second resource upgrading instruction according to the second upgrading resource package; and forwarding the second resource upgrading instruction to the Internet of things terminal through the gateway equipment according to the corresponding relation so that the Internet of things terminal carries out resource upgrading according to the second upgrading resource packet, and the Internet of things terminal accesses the Internet of things through the gateway equipment.
In one embodiment, a computer readable storage medium is provided, storing a computer program that, when executed by a processor, causes the processor to perform the steps of: after gateway equipment of the Internet of things is powered on, acquiring a network address of the gateway equipment; sending a device information acquisition instruction to the gateway device according to the network address; receiving equipment information returned by the gateway equipment based on the equipment information acquisition instruction; determining a management identifier corresponding to the gateway equipment according to the equipment information; and establishing a corresponding relation between the network address and the management identifier.
In one embodiment, the device information is location information, and when the computer program is executed by the processor to determine the management identifier corresponding to the gateway device according to the device information, the processor is specifically caused to execute the following steps: acquiring equipment layout information; and determining a management identifier corresponding to the gateway equipment according to the equipment layout information and the position information.
In one embodiment, the location information is first location information of an internet of things terminal accessing the internet of things through the gateway device, and when the processor executes the step of determining the management identifier corresponding to the gateway device according to the device layout information and the location information, the processor is caused to specifically execute the following steps: determining second position information of the gateway equipment according to the equipment layout information and the first position information; and determining the management identifier corresponding to the gateway equipment according to the second position information.
In one embodiment, the computer program, when executed by the processor, causes the processor to further perform the steps of: acquiring configuration information corresponding to the management identification; generating a gateway configuration instruction according to the configuration information; and sending the gateway configuration instruction to the gateway equipment according to the corresponding relation so that the gateway equipment performs gateway configuration according to the configuration information.
In one embodiment, the computer program, when executed by the processor, causes the processor to further perform the steps of: when the first upgrade resource information corresponding to the management identification is detected to be updated, a first upgrade resource packet corresponding to the first upgrade resource information is obtained; generating a first resource upgrading instruction according to the first upgrading resource package; and sending the first resource upgrading instruction to the gateway equipment according to the corresponding relation so that the gateway equipment carries out resource upgrading according to the first upgrading resource packet.
In one embodiment, the computer program, when executed by the processor, causes the processor to further perform the steps of: when detecting that the second upgrade resource information corresponding to the management identifier is updated, acquiring a second upgrade resource packet corresponding to the second upgrade resource information; generating a second resource upgrading instruction according to the second upgrading resource package; and forwarding the second resource upgrading instruction to the Internet of things terminal through the gateway equipment according to the corresponding relation so that the Internet of things terminal carries out resource upgrading according to the second upgrading resource packet, and the Internet of things terminal accesses the Internet of things through the gateway equipment.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A method for managing gateway equipment of the Internet of things is characterized by comprising the following steps:
after gateway equipment of the Internet of things is powered on, acquiring a network address and an equipment model of the gateway equipment;
sending an equipment information acquisition instruction to the gateway equipment according to the network address and the equipment model, wherein the equipment information acquisition instruction comprises the following steps: when the gateway equipment is determined to have the position information acquisition capability according to the equipment model, generating an equipment information acquisition instruction carrying a position type; when determining that the gateway equipment does not have the position information acquisition capability according to the equipment model, generating an equipment information acquisition instruction carrying an identification type;
receiving the device information returned by the gateway device based on the device information acquisition instruction; when the device information acquisition instruction carries a position type, the device information is position information, and when the device information acquisition instruction carries an identification type, the device information is identification information;
determining a management identifier corresponding to the gateway device according to the device information;
and establishing a corresponding relation between the network address and the management identifier.
2. The method according to claim 1, wherein the device information is location information, and the determining the management identifier corresponding to the gateway device according to the device information includes:
acquiring equipment layout information;
and determining a management identifier corresponding to the gateway device according to the device layout information and the position information.
3. The method according to claim 2, wherein the location information is first location information of an internet of things terminal accessing the internet of things through the gateway device, and the determining the management identifier corresponding to the gateway device according to the device layout information and the location information includes:
determining second position information of the gateway equipment according to the equipment layout information and the first position information;
and determining a management identifier corresponding to the gateway equipment according to the second position information.
4. The method of claim 1, further comprising:
acquiring configuration information corresponding to the management identifier;
generating a gateway configuration instruction according to the configuration information;
and sending the gateway configuration instruction to the gateway equipment according to the corresponding relation so as to enable the gateway equipment to carry out gateway configuration according to the configuration information.
5. The method of claim 1, further comprising:
when detecting that first upgrade resource information corresponding to the management identification is updated, acquiring a first upgrade resource packet corresponding to the first upgrade resource information;
generating a first resource upgrading instruction according to the first upgrading resource package;
and sending the first resource upgrading instruction to the gateway equipment according to the corresponding relation so as to enable the gateway equipment to upgrade resources according to the first upgrading resource package.
6. The method of claim 1, further comprising:
when detecting that second upgrading resource information corresponding to the management identification is updated, acquiring a second upgrading resource package corresponding to the second upgrading resource information;
generating a second resource upgrading instruction according to the second upgrading resource package;
and forwarding the second resource upgrading instruction to the Internet of things terminal through the gateway equipment according to the corresponding relation so as to enable the Internet of things terminal to carry out resource upgrading according to the second upgrading resource packet, wherein the Internet of things terminal is accessed into the Internet of things through the gateway equipment.
7. An internet of things gateway device management apparatus, the apparatus comprising:
the network address acquisition module is used for acquiring the network address and the equipment model of gateway equipment after the gateway equipment of the Internet of things is powered on;
an instruction sending module, configured to send an apparatus information obtaining instruction to the gateway apparatus according to the network address and the apparatus model, including: when the gateway equipment is determined to have the position information acquisition capability according to the equipment model, generating an equipment information acquisition instruction carrying a position type; when the gateway equipment is determined to be not provided with the position information acquisition capability according to the equipment model, generating an equipment information acquisition instruction carrying an identification type;
the information receiving module is used for receiving the equipment information returned by the gateway equipment based on the equipment information acquisition instruction; when the device information acquisition instruction carries a position type, the device information is position information, and when the device information acquisition instruction carries an identification type, the device information is identification information;
a management identifier determining module, configured to determine, according to the device information, a management identifier corresponding to the gateway device;
and the corresponding relation establishing module is used for establishing the corresponding relation between the network address and the management identifier.
8. The apparatus of claim 7, wherein the device information is location information, and wherein the management identifier determining module is further configured to:
acquiring equipment layout information;
and determining a management identifier corresponding to the gateway equipment according to the equipment layout information and the position information.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010850772.XA CN112187508B (en) | 2020-08-21 | 2020-08-21 | Internet of things gateway equipment management method, device, equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010850772.XA CN112187508B (en) | 2020-08-21 | 2020-08-21 | Internet of things gateway equipment management method, device, equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112187508A CN112187508A (en) | 2021-01-05 |
CN112187508B true CN112187508B (en) | 2023-04-07 |
Family
ID=73925498
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010850772.XA Active CN112187508B (en) | 2020-08-21 | 2020-08-21 | Internet of things gateway equipment management method, device, equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112187508B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113824599A (en) * | 2021-11-01 | 2021-12-21 | 珠海格力电器股份有限公司 | Equipment networking and control method and device thereof, computer equipment and storage medium |
CN114285884A (en) * | 2021-12-17 | 2022-04-05 | 瀚云科技有限公司 | Gateway device connection method, gateway device management device, and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101938692A (en) * | 2010-08-16 | 2011-01-05 | 中国电信股份有限公司 | Location information management method, platform and system |
CN106919061A (en) * | 2017-03-08 | 2017-07-04 | 芜湖美智空调设备有限公司 | Home appliance management method and device |
CN109996203A (en) * | 2018-01-02 | 2019-07-09 | 中国移动通信有限公司研究院 | Method, apparatus, electronic equipment and the computer readable storage medium of sensors configured |
CN110011823A (en) * | 2019-01-18 | 2019-07-12 | 阿里巴巴集团控股有限公司 | The long-range management implementation method and device of internet of things equipment |
CN110505125A (en) * | 2018-05-17 | 2019-11-26 | 苏州狗尾草智能科技有限公司 | The universal management method and system of smart machine |
-
2020
- 2020-08-21 CN CN202010850772.XA patent/CN112187508B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101938692A (en) * | 2010-08-16 | 2011-01-05 | 中国电信股份有限公司 | Location information management method, platform and system |
CN106919061A (en) * | 2017-03-08 | 2017-07-04 | 芜湖美智空调设备有限公司 | Home appliance management method and device |
CN109996203A (en) * | 2018-01-02 | 2019-07-09 | 中国移动通信有限公司研究院 | Method, apparatus, electronic equipment and the computer readable storage medium of sensors configured |
CN110505125A (en) * | 2018-05-17 | 2019-11-26 | 苏州狗尾草智能科技有限公司 | The universal management method and system of smart machine |
CN110011823A (en) * | 2019-01-18 | 2019-07-12 | 阿里巴巴集团控股有限公司 | The long-range management implementation method and device of internet of things equipment |
Also Published As
Publication number | Publication date |
---|---|
CN112187508A (en) | 2021-01-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11843600B2 (en) | Subnet-based device allocation with geofenced attestation | |
CN108418862B (en) | Micro-service management method and system based on artificial intelligence service cloud platform | |
CN110334297B (en) | Terminal page loading method, terminal, server and storage medium | |
US20150058473A1 (en) | Network address mapping to nearby location identification | |
CN106878368B (en) | Method and device for realizing information push | |
US20160381510A1 (en) | Method of locating a mobile device and a cloud computer system employing same | |
CN112511660B (en) | Management system, method and device of edge terminal equipment and storage medium | |
CN112187508B (en) | Internet of things gateway equipment management method, device, equipment and readable storage medium | |
JP2016517518A (en) | Access point selection for assistance data generation | |
CN108959384B (en) | Webpage data acquisition method and device, computer equipment and storage medium | |
US20190150206A1 (en) | Method and Device for Establishing Wireless Connection through First Application on User Equipment | |
CN113259479B (en) | Data processing method and equipment | |
KR20140014088A (en) | Generating maps of private spaces using mobile computing device sensors | |
JP7535022B2 (en) | Apparatus, method and program for remotely managing devices | |
CN112423281B (en) | Wireless module upgrading method, device, computer equipment and storage medium | |
CN108595280B (en) | Interface adaptation method and device, computer equipment and storage medium | |
CN103618780A (en) | Method and device for realizing multiple virtual machine mounted externally-arranged components | |
CN108111496B (en) | Method, device and system for exposing http service for dubbo distributed application | |
CN112069239B (en) | Method, system, device and storage medium for using database based on HTTP request | |
CN112000346B (en) | File upgrading method, device, computer equipment and storage medium | |
CN106685708B (en) | Method, device and system for determining service relationship | |
US20140136597A1 (en) | Relay enabled dynamic virtual private network | |
CN116320059A (en) | Building protocol data processing method, device and system | |
US10143022B2 (en) | Dynamic generation of geographically bound MANET IDs | |
CN114585055B (en) | Vehicle-mounted WiFi access method, vehicle controller, cloud server and 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 |