Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 illustrates anexemplary system architecture 100 to which embodiments of the device networking methods or devices of the present application may be applied.
As shown in fig. 1, thesystem architecture 100 may includeaccess devices 101, 102, 103, anetwork 104, and amanagement terminal 105. Thenetwork 104 is used to provide a medium for communication links between theaccess devices 101, 102, 103 and themanagement terminal 105.Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the administration end 105 to interact with theaccess devices 101, 102, 103 via thenetwork 104 to receive or send messages or the like. Theaccess devices 101, 102, 103 may be different video surveillance devices, such as webcams, hard disk recorders and decoders, etc. Theaccess devices 101, 102, 103 may correspond to different types of device discovery protocols, such as Ethernet frame format Ethernet II, Ethernet media access control protocol and physical layer specification IEEE802.3, user datagram protocol UDP and address resolution protocol ARP, and so on.
Themanagement terminal 105 may be various computer systems or devices, such as a laptop, a desktop, a server, etc., capable of installing the device management platform and supporting its operation. Themanagement terminal 105 may initiate a request such as resource access and device control to the access device through the device management platform according to the user request.
It should be noted that the device networking method provided in the embodiment of the present application is generally executed by themanagement terminal 105, and accordingly, the device networking apparatus is generally disposed in a device management platform running on themanagement terminal 105.
It should be understood that the number of access devices, networks, and administration ends in fig. 1 is merely illustrative. There may be any number of access devices, networks, and management endpoints, as desired for the implementation.
With continued reference to FIG. 2, aflow 200 of one embodiment of a device networking method according to the present application is shown. The equipment networking method comprises the following steps:
step 201, according to each of the plurality of device search protocols, sending a broadcast packet inquiring the device information to the access device in the local area network.
In this embodiment, a computer system or a device (e.g., themanagement terminal 105 shown in fig. 1) on which the device networking method operates may be connected to each access device in the local area network through a wired connection or a wireless connection.
In this embodiment, the device search protocol may be used to search for access devices in the local area network and set basic network parameters of the access devices.
In this embodiment, a network packet sent by search tool software of a device of a mainstream manufacturer may be analyzed in advance according to a device type (for example, a video monitoring device), so as to obtain search scheme information of the device in a network domain. And then acquiring a device search protocol possibly adopted by the type of device according to the search scheme information, defining the message format of the broadcast packet according to each piece of the search protocol information, and sending the broadcast packet inquiry device information to each access device in the local area network one by one.
In this embodiment, the device search scheme may be implemented by sending network broadcast packets based on Ethernet frame format Ethernet II, Ethernet media access control protocol, physical layer specification IEEE802.3, user datagram protocol UDP, address resolution protocol ARP, and other protocols or standards. The corresponding device search protocol is the above Ethernet II, IEEE802.3, UDP, ARP, etc.
Step 202, receiving device information fed back by each access device.
In this embodiment, when the message format of the broadcast packet is consistent with the search protocol associated with the access device, the access device is able to identify the broadcast packet that is sent instep 201 to query for device information and make feedback. The computer system or device (e.g., themanagement terminal 105 shown in fig. 1) may receive the device information fed back by each access device.
In some optional implementations of this embodiment, the device information may include at least one of: network parameters, device codes, physical addresses, software version numbers. Wherein, the network parameters of the equipment can be modified according to the requirement in the actual networking process; the physical addresses of the devices are unique to each device and are different from each other, and can be used to identify the respective access devices.
Step 203, based on the device information, obtaining device search protocol information and application programming interface information associated with the access device.
In this embodiment, the api refers to the convention for linking different components of a software system, and is essentially the code that the "computer os" or "library" provides to the application program for calling. Business operations such as accessing information resources of the access device, controlling the access device, and the like may be performed based on the application programming interface.
In this embodiment, based on the device information received instep 202, the device search protocol information and the application programming interface information applicable to the access device may be determined by the manufacturer of the device, the software version number, and the like. Each device can be further associated with its device search protocol and application programming interface version one-to-one using the physical address of the device.
Step 204, based on the device search protocol information, a network address is reallocated for the access device.
In this embodiment, a computer system or a device (e.g., the management side shown in fig. 1) on which the device networking method operates may receive device parameters including a newly assigned network address and the like set and submitted by a user, and then transmit the device parameters set by the user to each access device through a device search protocol corresponding to each access device and save them based on the device search protocol information acquired instep 203.
Step 205, based on the application programming interface information, the access device is accessed to the management platform.
In this embodiment, a connection may be further established with each access device based on the corresponding application programming interface, so as to complete the access of each access device to the management platform, and further maintain the connection state between the management platform and each access device.
In some optional implementations of this embodiment, the computer system or device on which the device networking method operates may receive and respond to a resource access request of the client, and the resource access request may include at least one of: the device control method comprises a device list acquisition request, a device acquisition information acquisition request, a device parameter acquisition request and a device control request. The client can be a remote terminal capable of logging in the equipment management platform; the device list may be formed based on the device search results ofstep 201 and step 202 of the present embodiment; the device acquisition information may be various types of information acquired by the device from outside the system, for example, for a video monitoring device, audio, video, etc. acquired by the device. The device control request may be different based on different access devices, for example, for a video monitoring device, it may be a pan/tilt control request, etc.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the device networking method according to the present embodiment. In the application scenario of fig. 3, the device networking method of this embodiment may be run in a device management platform of a management end. The user can log in the equipment management platform and start the equipment searching process through the equipment searching button. The management end may then search throughsteps 201 and 202 of the embodiment of fig. 2 to find each access device in the local area network, and present a device list based on the search result. Meanwhile, the management side may acquire the device search protocol information and the application programming interface information associated with the access device throughstep 203 of fig. 2.
The user may obtain the detailed parameters for a certain device in the device list, e.g. device 1 in fig. 3. As shown in fig. 3, by clicking a triangle button, device parameters such as a device name, a device number, an internet protocol address (IP address), a subnet mask, and the like corresponding to the device 1 can be displayed. Further, the user may change a particular parameter of the device, which may be re-entered, for example, by double-clicking on the current IP address. The management side may send the modified device parameters to each access device through the device search protocol matched with each device based on the device search protocol information acquired instep 203 of fig. 2 and store the modified device parameters, thereby reallocating the network address of the access device in the local area network.
After reconfiguring the network address of the device, the user can access the device to the management platform. In the application scenario of fig. 3, a user may initiate an access request of a corresponding device by clicking a circle button in the diagram. The management end may establish a connection with the access device through the application programming interface matched with the access device based on the application programming interface information acquired instep 203 of fig. 2, complete the access of the device to the management platform, and maintain the connection state between the management platform and each access device.
The method provided by the embodiment of the application realizes the automatic adaptation networking of the equipment, and improves the deployment and maintenance efficiency of the equipment management system.
With further reference to fig. 4, aflow 400 of another embodiment of a device networking method is shown. In this embodiment, the computer system or device on which the device networking method operates may be a gateway. Theprocess 400 of the device networking method includes the following steps:
step 401, according to each of the plurality of device search protocols, sends a broadcast packet inquiring about device information to the access device in the local area network.
In this embodiment, a network packet sent by search tool software of a device of a mainstream manufacturer may be analyzed according to a device type (e.g., a video monitoring device), so as to obtain search scheme information of the device in a network domain. And then acquiring a device search protocol possibly adopted by the type of device according to the search scheme information, defining the message format of the broadcast packet according to each piece of the search protocol information, and sending the broadcast packet inquiry device information to each access device in the local area network one by one.
Step 402, receiving device information fed back by each access device.
In this embodiment, when the message format of the broadcast packet is consistent with the search protocol associated with the access device, the access device is able to identify the broadcast packet that is sent instep 401 to query for device information and make feedback. A computer system or device, such as a gateway, on which the device networking method operates may receive device information fed back by various access devices.
Atstep 403, based on the device information, device search protocol information and application programming interface information associated with the access device are obtained.
In this embodiment, based on the device information obtained instep 402, the device search protocol and the api information applicable to the access device may be determined by the manufacturer of the device, the software version number, and the like. Each device can be further associated with its device search protocol and application programming interface version one-to-one using the physical address of the device.
Step 404, re-assigning a network address to the access device based on the device search protocol information.
In this embodiment, the computer system or the device on which the device networking method operates may receive the device parameters including the reallocated network address and the like set by the user, and then transmit the device parameters to the respective access devices through the device search protocol matched with the respective access devices and save them based on the device search protocol information acquired instep 403.
Step 405, establishing a connection with the access device based on the application programming interface information.
In this embodiment, based on the api information associated with the access device obtained instep 403, a connection may be established with the access device in the lan through a different api, and a connection status with each device may be maintained.
Step 406, construct a directory structure of the access device.
In this embodiment, based on the device information of the access device acquired instep 402, a directory structure of the access device may be constructed according to user settings, where the directory structure may include names of the respective access devices, physical addresses of the devices, re-assigned IP addresses, and the like.
Step 407, establish a connection with the management platform.
In this embodiment, a connection request may be initiated to the management platform based on platform parameters such as an interface type of the management platform, and then a connection may be established with the management platform.
Step 408, pushing the directory structure of the access device to the management platform.
In this embodiment, after the connection is established with the management platform instep 407, the directory structure of the access device constructed instep 406 may be further pushed to the management platform. Thus, the management platform can perform operations such as access and parameter configuration on each access device in the local area network through a computer system or device, such as a gateway, on which the device networking method operates.
In the embodiment of the application, the device networking method is operated in the gateway, and the management platform can be used as an access gateway of a superior platform to uniformly access and manage the access devices in the local area network. Furthermore, by adding a plurality of gateways, the management platform can conveniently realize the access and management of the access devices of a plurality of local area networks.
With further reference to fig. 5, aflow 500 of yet another embodiment of a device networking method is shown. As shown in fig. 5, theprocess 500 of this embodiment first searches for access devices in the discovered local area network throughsteps 501 to 503 and obtains device search protocol information and application programming interface information associated with each access device, which are similar tosteps 201 to 203 of the embodiment of fig. 2 and are not described herein again. On this basis, theprocess 500 of the present embodiment further includes the following steps:
step 504, receiving the device list obtaining request of the client, and returning the device list.
In this embodiment, the client may be a computer system or device on which the device networking method operates, may be another computer system or device capable of logging in the computer system or device, and may be another computer system or device that provides a Web page (Web page) for a user to interact with the computer system or device on which the device networking method operates through the Web page.
In this embodiment, the computer system or the device on which the device networking method operates may receive a device list acquisition request of the client and return a device list to the client. The device list may be formed based on the device search results ofstep 501 and step 502 of this embodiment.
And step 505, receiving the device grouping information sent by the client based on the device list.
In the present embodiment, the device group setting may be performed by the user on the Web page of the client based on the list of searched devices. After the user performs the grouping setting, the grouping information can be submitted to the computer system or the device on which the device networking method operates. The computer system or device on which the device networking method operates receives the packet information.
And step 506, grouping the access devices according to the device grouping information.
In this embodiment, based on the device grouping information received instep 505, the grouping structure of the access device may be saved, and the grouping operation for the access device is completed.
Step 507, receiving and executing network address setting of the access device by the client according to the grouping.
In this embodiment, the user may further perform batch setting of device parameters such as network addresses on any one of the device groups on the Web page of the client, for example, a value range of the network address of a certain group of devices is designated as 192.168.100.2-192.168.100.240, and then submit the device parameters. The computer system or equipment on which the equipment networking method operates receives the network address setting information and sends the network address setting information to each access equipment through a corresponding equipment searching protocol, and batch modification and setting of equipment parameters such as network addresses of the equipment are achieved.
And step 508, accessing the access device to the management platform based on the application programming interface information.
In this embodiment, after setting device parameters such as network addresses for access devices in batches, a user may select "one-touch access" to submit a request for accessing all devices to the management platform at one time. The computer system or the equipment on which the equipment networking method operates can establish connection with each access equipment based on the corresponding application programming interface and maintain the connection state with each access equipment; and then, the unified access of all the devices to the management platform is completed by constructing the directory structure of the access device and pushing the directory structure to the management platform.
The above embodiment of the present application further improves the efficiency of deployment and maintenance of the device management system by grouping the access devices, modifying and setting device parameters such as network addresses for the devices according to the groups, and pushing all the access devices to the management platform once to complete access.
With further reference to fig. 6, as an implementation of the method shown in the above figures, the present application provides an embodiment of an apparatus networking device, which corresponds to the embodiment of the method shown in fig. 2, and which can be applied to various computer systems or apparatuses.
As shown in fig. 6, thedevice networking apparatus 600 according to the present embodiment includes: a broadcastpacket sending module 601, aninformation receiving module 602, aninformation obtaining module 603, a networkaddress allocating module 604 and adevice access module 605. The broadcastpacket sending module 601 is configured to send a broadcast packet inquiring about device information to an access device in a local area network according to each of a plurality of device search protocols; theinformation receiving module 602 is configured to receive device information fed back by each access device; theinformation obtaining module 603 is configured to obtain device search protocol information and application programming interface information associated with the access device based on the device information; the networkaddress allocating module 604 is configured to reallocate a network address for the access device based on the device search protocol information; thedevice access module 605 is configured to access the access device to the management platform based on the application programming interface information.
In this embodiment, the broadcastpacket sending module 601 of thedevice networking apparatus 600 may define a message format of the broadcast packet according to each of device search protocols that may be adopted by each access device in the local area network, and send the broadcast packet to each access device in the local area network one by one to inquire device information.
In this embodiment, when the message format of the broadcast packet is consistent with the search protocol associated with the access device, the access device can identify the broadcast packet inquiring about the device information sent by the broadcastpacket sending module 601 and make feedback. Theinformation receiving module 602 may receive the device information fed back by each access device.
In this embodiment, based on the device information received by theinformation receiving module 602, theinformation obtaining module 603 may determine, through a manufacturer of the device, a software version number, and the like, device search protocol information and application programming interface information applicable to the access device. Each device can be further associated with its device search protocol and application programming interface version one-to-one using the physical address of the device.
In this embodiment, the networkaddress allocating module 604 may receive the device parameters including the newly allocated network address and the like set and submitted by the user, and then transmit the device parameters set by the user to each device and store them through the device search protocol matched with each device based on the device search protocol information acquired by theinformation acquiring module 603.
In this embodiment, thedevice accessing module 605 may further establish a connection with each device based on the corresponding application programming interface, complete the access of each device to the management platform, and further maintain the connection state between the management platform and each device.
Those skilled in the art will appreciate that the above-describeddevice networking apparatus 600 also includes some other well-known structures, such as processors, memories, etc., which are not shown in fig. 6 in order to not unnecessarily obscure embodiments of the present disclosure.
Referring now to FIG. 7, shown is a block diagram of acomputer system 700 suitable for use in implementing a terminal device or server of an embodiment of the present application.
As shown in fig. 7, thecomputer system 700 includes a Central Processing Unit (CPU)701, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from astorage section 708 into a Random Access Memory (RAM) 703. In theRAM 703, various programs and data necessary for the operation of thesystem 700 are also stored. TheCPU 701, theROM 702, and theRAM 703 are connected to each other via abus 704. An input/output (I/O)interface 705 is also connected tobus 704.
The following components are connected to the I/O interface 705: aninput portion 706 including a keyboard, a mouse, and the like; anoutput section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; astorage section 708 including a hard disk and the like; and acommunication section 709 including a network interface card such as a LAN card, a modem, or the like. Thecommunication section 709 performs communication processing via a network such as the internet. Adrive 710 is also connected to the I/O interface 705 as needed. Aremovable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on thedrive 710 as necessary, so that a computer program read out therefrom is mounted into thestorage section 708 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through thecommunication section 709, and/or installed from theremovable medium 711.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present application may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor comprises a broadcast packet sending module, an information receiving module, an information obtaining module, a network address distribution module and a device access module. The names of these modules do not constitute a limitation on the unit itself in some cases, and for example, the broadcast packet transmission module may also be described as a "module that transmits a broadcast packet inquiring about device information to an access device in a local area network according to each of a plurality of device search protocols".
As another aspect, the present application also provides a non-volatile computer storage medium, which may be the non-volatile computer storage medium included in the apparatus in the above-described embodiments; or it may be a non-volatile computer storage medium that exists separately and is not incorporated into the terminal. The non-transitory computer storage medium stores one or more programs that, when executed by a device, cause the device to: according to each of a plurality of device search protocols, sending a broadcast packet for inquiring device information to access devices in a local area network; receiving equipment information fed back by each access equipment; acquiring device search protocol information and application programming interface information associated with the access device based on the device information; reallocating a network address for the access device based on the device search protocol information; and accessing the access equipment to a management platform based on the application programming interface information.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by a person skilled in the art that the scope of the invention as referred to in the present application is not limited to the embodiments with a specific combination of the above-mentioned features, but also covers other embodiments with any combination of the above-mentioned features or their equivalents without departing from the inventive concept. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.