CN113645080A - Equipment configuration method, device, electronic equipment and system - Google Patents
Equipment configuration method, device, electronic equipment and system Download PDFInfo
- Publication number
- CN113645080A CN113645080A CN202110938529.8A CN202110938529A CN113645080A CN 113645080 A CN113645080 A CN 113645080A CN 202110938529 A CN202110938529 A CN 202110938529A CN 113645080 A CN113645080 A CN 113645080A
- Authority
- CN
- China
- Prior art keywords
- poe port
- equipment
- network
- port
- poe
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
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/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
- 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
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
-
- 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/0876—Aspects of the degree of configuration automation
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Automation & Control Theory (AREA)
- Small-Scale Networks (AREA)
Abstract
The embodiment of the application provides a device configuration method, a device, an electronic device and a system, wherein the method comprises the following steps: determining the equipment type of network equipment of each POE port of an access equipment interconnection system, wherein the POE ports correspond to the PSE ports one by one; when the power supply state of the PSE port corresponding to at least one POE port is the power supply state, matching the equipment type corresponding to at least one POE port with a plurality of preset list matching strategies to obtain a target list matching strategy, wherein the list matching strategy comprises at least one equipment type and configuration parameters of network equipment corresponding to at least one equipment type; and configuring the network equipment accessed to the at least one POE port according to the configuration parameters included in the target configuration policy. By applying the technical scheme provided by the embodiment of the application, the time consumed for configuring the network equipment accessed to the POE port can be reduced, and the delivery cost of the equipment interconnection system can be reduced.
Description
Technical Field
The present application relates to the field of teaching technologies, and in particular, to a device configuration method, an apparatus, an electronic device, and a system.
Background
The device interconnection system is a relatively complex electronic information system. The device interconnection system includes a plurality of devices. Therefore, when the device interconnection system is deployed and delivered, a user needs to spend a large amount of time to configure network parameters, configuration parameters for realizing functions and the like of each device accessed to a Power Over Ethernet (POE) port, so as to complete the deployment of the whole device interconnection system, and the delivery cost of the device interconnection system is high.
Disclosure of Invention
An object of the embodiments of the present application is to provide a device configuration method, an apparatus, an electronic device, and a system, so as to reduce time consumed for configuring a network device accessing a POE port, and reduce delivery cost of a device interconnection system. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides an apparatus configuration method, where the method includes:
determining the device type of network Equipment of each POE port of an access device interconnection system, wherein the POE ports correspond to Power Sourcing Equipment (PSE) ports one to one;
when the power supply state of the PSE port corresponding to at least one POE port is a power supply state, matching the device type corresponding to the at least one POE port with a plurality of preset list matching strategies to obtain a target list matching strategy, wherein the list matching strategy comprises at least one device type and configuration parameters of network devices corresponding to the at least one device type;
and configuring the network equipment accessed to the at least one POE port according to the configuration parameters included in the target configuration policy.
Optionally, the step of determining the device type of the network device accessing each POE port of the device interconnection system includes:
scanning each POE port of an equipment interconnection system to obtain equipment information of network equipment accessed to the equipment interconnection system, wherein the equipment information comprises a Media Access Control (MAC) address and an equipment type;
acquiring the MAC address of the network equipment of each POE port accessed to the equipment interconnection system through a serial interface bus;
and determining the equipment type of the network equipment accessed to each POE port according to the MAC address of the network equipment accessed to each POE port and the equipment information of the network equipment accessed to the equipment interconnection system.
Optionally, the method further includes:
and acquiring the power supply state of each PSE port through a hardware link bus.
Optionally, when the power supply state of the PSE port corresponding to the at least one POE port is the powered state, the step of matching the device type corresponding to the at least one POE port with a plurality of preset policy for provisioning orders to obtain a target policy for provisioning orders includes:
determining at least one POE port of which the corresponding equipment type is a preset equipment type;
and when the power supply state of the PSE port corresponding to the at least one POE port is the power supply state, matching the equipment type corresponding to the at least one POE port with a plurality of preset list matching strategies to obtain a target list matching strategy.
Optionally, before configuring the network device accessing to the at least one POE port according to the configuration parameters included in the target policy, the method further includes:
detecting whether the activation state of the network equipment accessed to the at least one POE port is activated;
if yes, executing the step of configuring the network equipment accessed to the at least one POE port according to the configuration parameters included in the target configuration policy;
and if not, activating the network equipment accessed to the at least one POE port by using the user authority information, and executing the step of configuring the network equipment accessed to the at least one POE port according to the configuration parameters included in the target policy.
Optionally, when the power supply state of the PSE port corresponding to the at least one POE port is the powered state, before matching the device type corresponding to the at least one POE port with the preset multiple policy for provisioning orders, the method further includes;
detecting whether a first network parameter of network equipment accessed to the POE port is matched with a preset second network parameter corresponding to the POE port or not aiming at each POE port in the at least one POE port;
and if not, distributing the second network parameter to the network equipment accessing the POE port.
Optionally, before determining the device type of the network device accessing each POE port, the method further includes:
and clearing the pre-recorded equipment information of the network equipment accessed to each POE port.
In a second aspect, an embodiment of the present application provides an apparatus for configuring a device, where the apparatus includes:
the device comprises a determining unit, a determining unit and a judging unit, wherein the determining unit is used for determining the device type of the network device of each POE port of the access device interconnection system, and the POE ports correspond to the PSE ports one to one;
the matching unit is used for matching the device type corresponding to the at least one POE port with a plurality of preset list matching strategies to obtain a target list matching strategy when the power supply state of the PSE port corresponding to the at least one POE port is a power supply state, wherein the list matching strategy comprises at least one device type and configuration parameters of network devices corresponding to the at least one device type;
and the configuration unit is used for configuring the network equipment accessed to the at least one POE port according to the configuration parameters included in the target configuration policy.
Optionally, the determining unit is specifically configured to:
scanning each POE port of an equipment interconnection system to obtain equipment information of network equipment accessed to the equipment interconnection system, wherein the equipment information comprises an MAC address and an equipment type;
acquiring the MAC address of the network equipment of each POE port accessed to the equipment interconnection system through a serial interface bus;
and determining the equipment type of the network equipment accessed to each POE port according to the MAC address of the network equipment accessed to each POE port and the equipment information of the network equipment accessed to the equipment interconnection system.
Optionally, the determining unit is further configured to:
and acquiring the power supply state of each PSE port through a hardware link bus.
Optionally, the matching unit is specifically configured to:
determining at least one POE port of which the corresponding equipment type is a preset equipment type;
and when the power supply state of the PSE port corresponding to the at least one POE port is the power supply state, matching the equipment type corresponding to the at least one POE port with a plurality of preset list matching strategies to obtain a target list matching strategy.
Optionally, the configuration unit is further configured to:
detecting whether the activation state of the network equipment accessed to the at least one POE port is activated;
if yes, configuring the network equipment accessed to the at least one POE port according to configuration parameters included in the target configuration policy;
and if not, activating the network equipment accessed to the at least one POE port by using the user authority information, and configuring the network equipment accessed to the at least one POE port according to the configuration parameters included in the target policy.
Optionally, the configuration unit is further configured to:
when the power supply state of the PSE port corresponding to at least one POE port is a power supply state, before the equipment type corresponding to the at least one POE port is matched with a plurality of preset list matching strategies, detecting whether a first network parameter of network equipment accessed to the POE port is matched with a second network parameter corresponding to the POE port or not aiming at each POE port; and if not, distributing the second network parameter to the network equipment accessing the POE port.
Optionally, the apparatus further comprises:
and the clearing unit is used for clearing the pre-recorded equipment information of the network equipment accessed to each POE port before determining the equipment type of the network equipment accessed to each POE port.
In a third aspect, an embodiment of the present application provides an electronic device, including an SOC (System on Chip), a network switching Chip connected to the SOC, and a PSE, where the network switching Chip includes a plurality of POE ports, the PSE includes a plurality of PSE ports, and the POE ports correspond to the PSE ports one to one;
the SOC is used for determining the equipment type of network equipment accessing each POE port of the equipment interconnection system, and the POE ports correspond to the PSE ports one by one; when the power supply state of the PSE port corresponding to at least one POE port is a power supply state, matching the device type corresponding to the at least one POE port with a plurality of preset list matching strategies to obtain a target list matching strategy, wherein the list matching strategy comprises at least one device type and configuration parameters of network devices corresponding to the at least one device type; and configuring the network equipment accessed to the at least one POE port according to the configuration parameters included in the target configuration policy.
Optionally, the SOC is connected to the network switch chip through a serial interface bus, and the SOC is connected to the network switch chip through an MAC interface bus;
the SOC is specifically configured to scan each POE port of the device interconnection system through the MAC interface bus to obtain device information of a network device accessing the device interconnection system, where the device information includes an MAC address and a device type; acquiring the MAC address of the network equipment of each POE port accessed to the equipment interconnection system through the serial interface bus; and determining the equipment type of the network equipment accessed to each POE port according to the MAC address of the network equipment accessed to each POE port and the equipment information of the network equipment accessed to the equipment interconnection system.
Optionally, the SOC is connected with the PSE through a hardware link bus;
the SOC is specifically configured to acquire a power supply state of each PSE port through the hardware link bus.
Optionally, the SOC is specifically configured to: determining at least one POE port of which the corresponding equipment type is a preset equipment type; and when the power supply state of the PSE port corresponding to the at least one POE port is the power supply state, matching the equipment type corresponding to the at least one POE port with a plurality of preset list matching strategies to obtain a target list matching strategy.
Optionally, the SOC is further configured to:
before configuring the network equipment accessed to the at least one POE port according to the configuration parameters included in the target configuration policy, detecting whether the activation state of the network equipment accessed to the at least one POE port is activated;
if yes, executing the step of configuring the network equipment accessed to the at least one POE port according to the configuration parameters included in the target configuration policy;
and if not, activating the network equipment accessed to the at least one POE port by using the user authority information, and executing the step of configuring the network equipment accessed to the at least one POE port according to the configuration parameters included in the target policy.
Optionally, the SOC is further configured to:
when the power supply state of the PSE port corresponding to at least one POE port is a power supply state, before the equipment type corresponding to the at least one POE port is matched with a plurality of preset list matching strategies, detecting whether a first network parameter of network equipment accessed to the POE port is matched with a preset second network parameter corresponding to the POE port or not for each POE port;
and if not, distributing the second network parameter to the network equipment accessing the POE port.
Optionally, the SOC is further configured to:
before determining the device type of the network device accessing each POE port, clearing the pre-recorded device information of the network device accessing each POE port.
In a fourth aspect, an embodiment of the present application provides a device interconnection system, including the electronic device as described in any one of the above third aspects.
In a fifth aspect, an embodiment of the present application provides an SOC, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement any of the device configuration method steps provided in the first aspect when executing the program stored in the memory.
In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program, when executed by a processor, implements any of the device configuration method steps provided in the first aspect.
Embodiments of the present application further provide a computer program product containing instructions, which when run on a computer, cause the computer to perform any of the device configuration method steps provided in the first aspect.
The embodiment of the application has the following beneficial effects:
in the technical solution provided in the embodiment of the present application, the device type of the network device accessing each POE port is determined. Because the POE ports correspond to the PSE ports one to one, the network equipment accessed to one POE port is the network equipment accessed to the PSE port corresponding to the POE port, and under the condition of determining the equipment type of the network equipment of one POE port, the equipment type of the network equipment accessed to the corresponding PSE port is also known.
The network equipment connected to the POE port can normally operate under the condition of power supply. When the power supply state of the PSE port corresponding to the at least one POE port is the powered state, it indicates that power is supplied to each network device accessing the at least one POE port, and the network device accessing the at least one POE port can operate normally. In this case, a target policy matching the device type corresponding to the at least one POE port is obtained, and the network device accessing the at least one POE port is configured by using the target policy matching the device type corresponding to the at least one POE port, so that the network device accessing the at least one POE port realizes a corresponding function.
Therefore, the automatic configuration of the normally-operated network equipment accessed to the POE port is realized, the user participation is reduced in the configuration process of the network equipment, the time consumed for configuring the network equipment accessed to the POE port is reduced, and the delivery cost of the equipment interconnection system is reduced.
Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and it is also obvious for a person skilled in the art to obtain other embodiments according to the drawings.
Fig. 1 is a first schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a second schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 3 is a first flowchart of an apparatus configuration method according to an embodiment of the present application;
fig. 4 is a second flowchart of an apparatus configuration method according to an embodiment of the present application;
fig. 5 is a third flowchart illustrating an apparatus configuration method according to an embodiment of the present application;
fig. 6 is a fourth flowchart illustrating an apparatus configuration method according to an embodiment of the present application;
fig. 7 is a fifth flowchart illustrating an apparatus configuration method according to an embodiment of the present application;
fig. 8 is a sixth flowchart illustrating an apparatus configuration method according to an embodiment of the present application;
FIG. 9 is a schematic view of a software control interface provided in an embodiment of the present application;
fig. 10 is a signaling diagram of a device configuration method according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an apparatus configuration device according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of an SOC according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the description herein are intended to be within the scope of the present disclosure.
For the sake of understanding, the following description explains words appearing in the embodiments of the present application.
POE means: the method can provide a direct current power supply technology for IP (Internet Protocol) based equipment while transmitting data signals for the equipment. The IP-based device may include, but is not limited to, an IP phone, an Access Point (AP), an Internet Protocol Camera (IPC), and the like. POE can guarantee the normal operation of current network when guaranteeing current structured wiring safety, realizes furthest reduce cost.
POE may also be referred to as Power over LAN (Power over LAN), and may also be referred to as Power over ethernet. POE is the latest standard specification for transmitting data and electric power while using the existing standard ethernet transmission cable. POE also maintains compatibility with existing ethernet systems and users. The IEEE 802.3af standard is a new POE standard, which adds a related standard for directly supplying power through a network cable on the basis of IEEE 802.3, is an extension of the existing ethernet standard, and is the first international standard for power distribution.
MDIO (Management Data Input/Output) bus: the bus is a simple two-wire serial interface bus, and the management device is connected with the transceiver with the management function so as to control the transceiver and collect state information from the transceiver. The state information that may be collected includes link state, transmission speed and selection, power down, low power sleep state, TX (transmit)/RX (Receive) mode selection, auto-negotiation control, and loopback mode control, among others. In addition to possessing the functions required by IEEE, transceiver vendors may add more information gathering functions.
The management device may include, but is not limited to, a MAC (media access control) address controller, a microprocessor, and the like. The management-capable transceiver may include, but is not limited to, a multi-port gigabit Ethernet transceiver, or a 10GbE XAUI transceiver, among others.
The POE system comprises: PSE and PD (Power Device, powered Device). The PSE is a device for supplying power to the ethernet client device, and is also a manager of the power supply process of the entire POE system. The PD is a PSE load receiving power supply, i.e., a client device of the POE system, such as an ethernet device, e.g., an IP phone, IPC, AP, PDA (Personal Digital Assistant), or a mobile phone charger.
The PSE and the PD establish an information link regarding connection status, device type, power consumption level, etc. of the PD based on IEEE 802.3af (an extended protocol standard for POE technology), and based on this, the PSE supplies power to the PD via the ethernet.
IPC: is a new generation camera generated by combining the traditional camera and the network technology. The IPC is internally provided with an embedded chip and adopts an embedded real-time operating system.
The IPC is formed by combining a network coding module and an analog camera. The network coding module codes and compresses the analog video signals collected by the analog camera into digital signals, thereby realizing direct access to network switching and routing equipment.
NET SWITCH (network switch chip): is an equipment for enlarging network, can provide more connection ports in the sub-network so as to connect more devices. With the development of communication technology and the promotion of informatization of national economy, the network exchange chip market is in a steady rising situation. The method has the characteristics of high cost performance, high flexibility, relative simplicity, easy realization and the like. Therefore, while ethernet technology has become the most important lan networking technology today, the network switch chip also becomes the most popular switch chip.
The device interconnection system is a relatively complex electronic information system. Common device interconnection systems include, but are not limited to, recording and broadcasting systems applied to the education field, conference systems applied to the office field, smart home systems applied to the life field, and traffic management systems applied to the intelligent traffic field. The following description will be given by taking a recording and broadcasting system as an example, but not by way of limitation.
The recording and broadcasting system comprises a plurality of devices, such as a management platform at a center end, a recording and broadcasting host at a teaching end, a camera, an audio host, pickup equipment, a teaching large screen and the like. At the teaching end of the recording and broadcasting system, a large number of network devices need to access the device interconnection system through the recording and broadcasting host. Therefore, when the recording and broadcasting system is deployed and delivered, a user needs to spend a lot of time on configuring network parameters, configuration parameters for realizing functions and the like of each network device accessing to the POE port on the recording and broadcasting host, and the deployment of the whole recording and broadcasting system is completed. The network parameters include an IP address, an occupied bandwidth, a data transmission rate, and the like.
However, with the development of economic society, the labor cost is higher and higher. This makes the delivery cost of the device interconnection system high and the deliverability of the device interconnection system poor.
In order to reduce the time consumed for configuring the network device of the POE port, reduce the delivery cost of the device interconnection system, and improve the deliverability of the device interconnection system, an embodiment of the present application provides an electronic device, as shown in fig. 1, the electronic device includes an SOC11, a network switching chip 12 connected to the SOC11, and a PSE 13. The network switching chip 12 includes a plurality of POE mouths, and the PSE 13 includes a plurality of PSE mouths, and on hardware PCB (Printed Circuit Board), POE mouth and PSE mouth one-to-one can manage through a table, through this table, can confirm the PSE mouth that every POE mouth corresponds.
Wherein, the SOC11 is a main control chip. In the embodiment of the present application, the SOC11, the network switching chip 12, and the PSE 13 are located on the same physical machine (such as the electronic device mentioned above, which may be specifically a recording and broadcasting host).
In the embodiment of the present application, the SOC11, the network switching chip 12, and the PSE 13 may also be independent physical machines respectively. The SOC11, the network switch chip 12 and the PSE 13 may also be located on the same physical machine in a two-by-two combination, for example, the SOC11 and the network switch chip 12 are located on the same physical machine, or the SOC11 and the PSE 13 are located on the same physical machine. As long as SOC11, network switch chip 12 and PSE 13 are guaranteed to be located in the same device interconnection system. The PSE port is a power supply management port of network equipment accessed to the corresponding POE port. This is not limitative.
The network device accesses the device interconnection system through the POE port included in the network switching chip 12.
The SOC11 is used for determining the equipment type of the network equipment of each POE port of the access equipment interconnection system, and the POE ports correspond to the PSE ports one by one; when the power supply state of the PSE port corresponding to at least one POE port is in a power supply state, matching the equipment type corresponding to the at least one POE port with a plurality of preset bill matching strategies to obtain a target bill matching strategy; and configuring the network equipment accessed to the at least one POE port according to the configuration parameters included in the target configuration policy.
In this embodiment of the present application, devices that can implement the same function may be attributed to devices of the same device type, that is, the device type may be determined according to the function that can be implemented by the network device. For example, a device that can implement an imaging function and a network transfer function is assigned to IPC, and a display image function is assigned to display large screen.
In the embodiment of the application, the type of the equipment can be refined according to actual requirements. For example, devices that can implement both the camera function and the network transmission function may be attributed to IPC; for example, all devices capable of only realizing the photographing function and the network transmission function are assigned as IPC1, all devices capable of only realizing the video recording function and the network transmission function are assigned as IPC2, and all devices capable of realizing the photographing function, the video recording function and the network transmission function are assigned as IPC 3. The division of the device type is not particularly limited.
In one example, the device type may include, but is not limited to, a version and a model. For example, IPCs of respective versions and models, audio hosts of respective versions and models, sound pickup apparatuses of respective versions and models, large display screens of respective versions and models, and the like.
In this embodiment of the present application, the policy of provisioning is a policy that determines which configuration parameter to use to configure the network device and the electronic device according to the device type of the network device.
The policy may include at least one device type and configuration parameters of a network device corresponding to each device type of the at least one device type. The configuration parameters are parameters for enabling the network device to implement a specified function, and the configuration parameters may include an access mode, a flow fetching scheme, an intelligent analysis policy, a director mode, and the like of the network device.
The power supply state of the PSE port comprises a power supply state and a power non-supply state. The unpowered state indicates that the PSE port is not supplying power to the outside. The powered state indicates that the PSE port is providing power to the outside. If network equipment is connected to the PSE port, the network equipment can receive power supply and then normally operate, and at the moment, the network equipment can be understood as POE power supply equipment.
In the technical solution provided in the embodiment of the present application, the device type of the network device accessing each POE port is determined. Because the POE ports correspond to the PSE ports one to one, the network equipment accessed to one POE port is the network equipment accessed to the PSE port corresponding to the POE port, and under the condition of determining the equipment type of the network equipment of one POE port, the equipment type of the network equipment accessed to the corresponding PSE port is also known.
The network equipment connected to the POE port can normally operate under the condition of power supply. When the power supply state of the PSE port corresponding to the at least one POE port is the powered state, it indicates that power is supplied to each network device accessing the at least one POE port, and the network device accessing the at least one POE port can operate normally. In this case, a target policy matching the device type corresponding to the at least one POE port is obtained, and the network device accessing the at least one POE port is configured by using the target policy matching the device type corresponding to the at least one POE port, so that the network device accessing the at least one POE port realizes a corresponding function.
Here, configuring, using the target policy, the network device accessing to the at least one POE port may include: the network equipment is configured, and the electronic equipment is configured, so that the electronic equipment is adapted to the network equipment, and corresponding functions are realized.
Therefore, the automatic configuration of the normally-operated network equipment accessed to the POE port is realized, the user participation is reduced in the configuration process of the network equipment, the time consumed for configuring the network equipment accessed to the POE port is reduced, and the delivery cost of the equipment interconnection system is reduced.
In an embodiment of the present application, the SOC11 may be specifically configured to: scanning each POE port of the equipment interconnection system to obtain equipment information of network equipment accessed into the equipment interconnection system, wherein the equipment information comprises an MAC address and an equipment type; acquiring the MAC address of the network equipment of each POE port of the access equipment interconnection system; and determining the equipment type of the network equipment accessed to each POE port according to the MAC address of the network equipment accessed to each POE port and the equipment information of the network equipment accessed to the equipment interconnection system.
In one embodiment of the present application, the SOC11 and the network switch chip 12 are connected via a serial interface bus, as in the electronic device shown in fig. 2. Based on the electronic device shown in fig. 2, the SOC11 may be specifically configured to obtain, through the serial interface bus, the MAC address of the network device accessing each POE port of the device interconnection system.
In another embodiment of the present application, as an electronic device shown in fig. 2, the SOC11 and the network switching chip 12 are connected through a MAC interface bus.
In this embodiment, the MAC interface bus may be a GMAC (gigabit ethernet media access control) interface bus, as shown in fig. 2, or may be another type of MAC interface. This is not limitative. The electronic device may include a plurality of POE ports and a plurality of PSE ports, and fig. 2 illustrates only 3 POE ports and 3 PSE ports, which is not limiting.
Based on the electronic device shown in fig. 2, the SOC11 may be specifically configured to scan each POE port of the device interconnection system through the MAC interface bus using a network scanning protocol, and obtain device information of the network device accessing the device interconnection system, where the device information includes a MAC address and a device type.
In this embodiment, the device information may include, in addition to the MAC address and the device type, an IP address, a device type, an activation status, a management port, and the like, which is not limited herein.
To ensure that the SOC11 acquires device information of the network device, a PHY (Physical layer) chip 14 is provided between the SOC11 and the network switching chip 12, as shown in fig. 2. The SOC11 is connected to the PHY chip 14 through the MAC interface bus, and the PHY chip 14 is connected to the network switch chip 12, so that the SOC11 is connected to the network switch chip 12 through the MAC interface bus, and the SOC11 can scan each POE port of the device interconnection system through the MAC interface bus by using a network scanning protocol, and obtain device information of the network device accessing the device interconnection system.
The electronic device provided in the embodiment of the present application may have a structure as shown in fig. 2, where SOC11 is connected to network switching chip 12 through a serial interface bus, and SOC11 is connected to network switching chip 12 through an MAC interface bus. Through the two connection modes, the equipment type of the network equipment accessed to each POE port can be simply and conveniently determined, and the configuration efficiency of the network equipment is further improved.
In this embodiment of the present application, the serial interface bus may be an MDIO bus, or may be another bus, as long as the MAC address of the network device accessing each POE port can be scanned.
In one embodiment of the present application, the electronic device shown in fig. 2, SOC11 and PSE 13 are connected via a hardware link bus. The hardware link bus may be an I2C bus, or may be another bus, as long as the power supply state accessed to each PSE port can be acquired. In the embodiment of the present application, power supply 15 supplies power to PSE 13, and then PSE 13 supplies power to the network device through the PSE port.
The SOC11 may be specifically configured to acquire a power supply state of each PSE port through a hardware link bus.
In the embodiment of the application, the SOC can accurately determine the power supply state of the PSE port, and the PSE port and the POE port are in one-to-one correspondence. Therefore, the power supply state of the PSE port is the power supply state of the network device accessing the corresponding POE port. Therefore, in the embodiment of the application, the SOC can accurately determine the power supply state of the network device, and further, accurate configuration of the network device is realized.
Based on the above electronic device, an embodiment of the present application provides a device configuration method, as shown in fig. 3. The method may be applied to the SOC11 of the electronic device shown in fig. 2, or may be applied to an electronic device communicating with the SOC11, which is not limited thereto. For ease of understanding, the following description will be made mainly of SOC, and is not intended to be limiting. The equipment configuration method comprises the following steps:
step S31, determining the device type of the network device of each POE port of the access device interconnection system, where the POE ports correspond to the PSE ports one to one.
The POE ports correspond to the PSE ports one by one, and one POE port corresponds to only one PSE port. Therefore, when determining which POE port the network device is accessed to, the power supply state of the network device can be known based on the power supply state of the PSE port corresponding to the POE port, so that the configuration of the device is facilitated.
In the embodiment of the application, when the device interconnection system is deployed, for each POE port of the device interconnection system, the SOC determines the device type of the network device accessing the POE port.
Step S32, when the power supply state of the PSE port corresponding to the at least one POE port is the power supply state, matching the device type corresponding to the at least one POE port with a plurality of preset policy for provisioning orders to obtain a target policy for provisioning orders.
In this application embodiment, SOC is after the equipment type of the network equipment of confirming the access of every POE mouth, based on above-mentioned POE mouth and PSE mouth one-to-one, and SOC can confirm the PSE mouth that every POE mouth corresponds, and then obtains the power supply state of the PSE mouth that every POE mouth corresponds.
After the SOC obtains the power supply state of each PSE port, if the power supply state of at least one POE port is the power supply state, the device type of the network device accessing the at least one POE port, that is, the device type corresponding to the at least one POE port, is obtained. The SOC matches the equipment type corresponding to the at least one POE port with a plurality of preset list matching strategies. The policy for provisioning may include at least one device type, configuration parameters of a network device corresponding to the at least one device type, and the like.
In this embodiment of the present application, matching, by a device type corresponding to at least one POE port, a provisioning policy refers to: the equipment type included in the policy for provisioning orders is the same as the equipment type corresponding to the at least one POE port.
That is, for a network device or a group of network devices connected to the POE port, the group of network devices has only one policy for provisioning. One or more functions of the device interconnection system are collectively implemented by one network device or a combination of a plurality of network devices within the group of network devices.
For example, the device interconnection system needs to implement video recording and photographing functions. The two existing network devices are IPC1 and IPC2, respectively, wherein IPC1 can implement video recording and photographing functions, and IPC2 can implement photographing functions.
If only the IPC1 is accessed to the POE port, the SOC matches the policy of the distribution list according to the equipment type of the IPC1 accessed to the POE port to obtain a policy of the distribution list 1, and configures the configuration parameters of the electronic equipment and the IPC1 according to the configuration parameters of the network equipment with the same type as the IPC1 equipment in the policy of the distribution list 1, so that the IPC1 can realize the functions of recording and taking pictures.
If IPC1 and IPC2 are accessed to the POE ports, the SOC matches a matching policy according to the equipment type of IPC1 accessed to the POE ports and the equipment type of IPC2 accessed to the POE ports to obtain a matching policy 2, and configures configuration parameters of the electronic equipment and IPC1 according to configuration parameters of network equipment with the same type as the IPC1 equipment in the matching policy 2, so that the IPC1 can realize a video recording function; according to the configuration parameters of the network equipment with the same type as the IPC2 equipment in the form of the form 2, the configuration parameters of the electronic equipment and the IPC2 are configured, so that the IPC2 can realize the photographing function.
After the SOC matches the device type corresponding to the at least one POE port with a plurality of preset policy for provisioning orders, a policy for provisioning orders, that is, a target policy for provisioning orders, is obtained, where the device type included in the policy is the same as the device type corresponding to the at least one POE port.
For example, the preset multiple-order policy includes:
and (3) a bill matching strategy A: type 1 of device 1, type 2 of device 2, configuration parameters 11 of device 1, and configuration parameters 12 of device 2;
and (4) a bill matching strategy B: type 1 of device 1, type 2 of device 2, type 3 of device 3, configuration parameters 21 of device 1, configuration parameters 22 of device 2, and configuration parameters 23 of device 3;
and C, a billing strategy C: type 1 of device 1 and configuration parameters 31 of device 1.
If the power supply state of the PSE port corresponding to the POE port 1 and the POE port 2 is the power supply state, the device type corresponding to the POE port 1 is type 1, and the device type corresponding to the POE port 2 is type 2, the SOC determines that the type 1 and the type 2 are matched with the order distribution strategy a, that is, the order distribution strategy a is the target order distribution strategy.
The preset multiple policy for matching orders may be set according to actual requirements, for example, the policy for matching orders may be set according to a configuration policy set according to a principle of lowest power consumption of the device interconnection system.
Step S33, configuring the network device accessing the at least one POE port according to the configuration parameters included in the target policy.
The configuration parameters are parameters for enabling the network device to realize specified functions. The designated functions include, but are not limited to, photographing, video recording, network communication, data analysis, and the like.
The above-described example of step S33 is also explained as an example. And the SOC determines that the order matching strategy A is a target order matching strategy, then the equipment 1 accessed to the POE port 1 is configured according to the configuration parameter 11, and the equipment 2 accessed to the POE port 2 is configured according to the configuration parameter 12.
In the technical solution provided in the embodiment of the present application, the device type of the network device accessing each POE port is determined. Because the POE ports correspond to the PSE ports one to one, the network equipment accessed to one POE port is the network equipment accessed to the PSE port corresponding to the POE port, and under the condition of determining the equipment type of the network equipment of one POE port, the equipment type of the network equipment accessed to the corresponding PSE port is also known.
The network equipment connected to the POE port can normally operate under the condition of power supply. When the power supply state of the PSE port corresponding to the at least one POE port is the powered state, it indicates that power is supplied to each network device accessing the at least one POE port, and the network device accessing the at least one POE port can operate normally. In this case, a target policy matching the device type corresponding to the at least one POE port is obtained, and the network device accessing the at least one POE port is configured by using the target policy matching the device type corresponding to the at least one POE port, so that the network device accessing the at least one POE port realizes a corresponding function.
Therefore, the automatic configuration of the normally-operated network equipment accessed to the POE port is realized, the user participation is reduced in the configuration process of the network equipment, the time consumed for configuring the network equipment accessed to the POE port is reduced, and the delivery cost of the equipment interconnection system is reduced.
In addition, the SOC configures the network equipment by using the order matching strategy, so that the subsequent accurate power consumption management of the equipment interconnection system is facilitated.
In an embodiment of the present application, in order to easily determine the device type of the network device accessing each POE port, the present application provides a device configuration method, as shown in fig. 4, the step S31 may be subdivided into the following steps.
Step S311, scanning each POE port of the device interconnection system to obtain device information of the network device accessing the device interconnection system, where the device information includes an MAC address and a device type.
In the embodiment of the present application, the device type may include, but is not limited to, a version and a model.
In one example, the SOC may be connected to the network switch chip via a MAC interface bus. The SOC can scan the network equipment accessing the equipment interconnection system through the POE port by using a network scanning protocol through an MAC interface bus, determine whether each POE port is connected with the network equipment or not, and obtain the equipment information of the network equipment connected with the POE port under the condition of determining that one POE port is connected with the network equipment. Thus, the SOC acquires the correspondence between the MAC address and the device type.
The optional implementation manner may be that the SOC sends the scanning information to the network device accessing the POE port through the POE port. And after receiving the scanning information, the network equipment returns the equipment information of the network equipment to the SOC.
Step S312, obtain the MAC address of the network device of each POE port of the access device interconnection system through the serial interface bus.
In this embodiment, the SOC may be connected to the network switch chip through a serial interface bus. The SOC scans each POE port through a serial interface bus, determines whether each POE port is connected with network equipment, and obtains the MAC address of the network equipment connected with the POE port under the condition that one POE port is determined to be connected with the network equipment. Thus, the SOC obtains the corresponding relationship between the POE port and the MAC address of the network device.
In the embodiment of the present application, the execution sequence of steps S311 and S312 is not limited.
Step S313, determining the device type of the network device accessing each POE port according to the MAC address of the network device accessing each POE port and the device information of the network device accessing the device interconnection system.
In this embodiment of the application, the SOC obtains the correspondence between the MAC address and the device type in step S311, and obtains the correspondence between the POE port and the MAC address of the network device in step S312. According to the two sets of corresponding relations, the SOC can determine the corresponding relation between the POE ports and the equipment types of the network equipment, namely determine the equipment types of the network equipment accessed to each POE port.
In the technical scheme provided by the embodiment of the application, the SOC respectively obtains the corresponding relationship between the MAC address and the device type and the corresponding relationship between the POE port and the MAC address by using the network scanning protocol and the serial interface bus. Thus, the SOC determines the device type of the network device for each POE port. Therefore, the power supply state of the network equipment can be conveniently and quickly determined subsequently, the network equipment can be quickly configured, the deployment time of the equipment interconnection system is shortened, and the delivery cost of the equipment interconnection system is reduced.
In an embodiment of the present application, in order to facilitate determining whether the power supply state of the network device is the power supply state, an embodiment of the present application provides a device configuration method, as shown in fig. 5, which further includes the following steps before the step S32.
Step S34, obtaining the power supply state of each PSE port through the hardware link bus.
In the embodiment of the application, the SOC is connected with the PSE through a hardware link bus. The SOC can acquire the power supply state of each PSE port in the PSE through a hardware link bus.
In the embodiment of the application, because POE mouth and PSE mouth are the one-to-one, SOC can be according to the POE mouth that network equipment connects, confirms the PSE mouth that network equipment connects, and then in the power supply state of following each PSE mouth, confirms the power supply state of the PSE mouth that network equipment connects. The power supply state of the PSE port is the power supply state of the network device.
In the technical scheme provided by the embodiment of the application, the SOC can accurately determine the power supply state of the PSE port, and the PSE port and the POE port are in one-to-one correspondence. Therefore, the power supply state of the PSE port is the power supply state of the network device accessing the corresponding POE port. Therefore, in the embodiment of the application, the SOC can accurately determine the power supply state of the network device, and further, accurate configuration of the network device is realized.
In an embodiment of the present application, in order to implement accurate configuration of a network device, the present application further provides a device configuration method, as shown in fig. 6, the step S32 may be subdivided into steps S321 and S322.
S321, determining the corresponding equipment type as at least one POE port of a preset equipment type;
and S322, when the power supply state of the PSE port corresponding to the at least one POE port is the power supply state, matching the device type corresponding to the at least one POE port with a plurality of preset list matching strategies to obtain a target list matching strategy.
In the embodiment of the application, the preset device type is a device type requiring configuration of the SOC. The type of the preset equipment can be set according to actual requirements. For example, the preset type may be IPC, a switch, or the like.
And the SOC determines at least one POE port of which the corresponding equipment type is a preset equipment type from the plurality of POE ports. And when the power supply state of the PSE port corresponding to the at least one POE port is the power supply state, matching the device type corresponding to the at least one POE port with a plurality of preset list matching strategies to obtain a target list matching strategy.
In this application embodiment, if the corresponding device type is in at least one POE mouth of presetting the device type, the power supply state of the PSE mouth that some POE mouths correspond is the state of having supplied power, and the power supply state of the PSE mouth that other POE mouths correspond is the state of not supplying power, then the SOC utilizes the device type that the POE mouth that state of having supplied power corresponds is correlated with and presets the policy of joining in marriage and match.
In the embodiment of the application, the SOC can accurately determine the network equipment needing to be configured, and the calculation resources of the SOC are saved.
In an embodiment of the present application, in order to implement accurate device configuration, an embodiment of the present application further provides a device configuration method, as shown in fig. 7, before the step S33, the following step is further included.
Step S35, detecting whether the activation status of the network device accessing the at least one POE port is activated; if yes, the process returns to step S33. If not, step S36 is executed.
In this embodiment of the application, before the SOC configures the network device accessing the at least one POE port according to the configuration parameters included in the target policy, it may detect whether the activation state of the network device accessing the at least one POE port is activated. The activation state may be acquired when the SOC acquires device information of the network device using a network scanning protocol, or may be predetermined by a user and input into the SOC. The active state indicates whether or not the function, the use time, and the like of the network device are limited. The activation state includes activated and deactivated. The activated state indicates that the network device has configured the user right information, and the deactivated state indicates that the network device has not configured the user right information. The user authority information may include, but is not limited to: user name, account number, password, fingerprint, voiceprint, face and the like.
For each network device accessing the at least one POE port, if the SOC detects that the activation state of the network device is activated, continuing to execute step S33, and configuring the network device according to the configuration parameters included in the target policy;
if the activation status of the network device is detected to be inactive, the process continues to step S36 to activate the network device.
The above step S35 may be performed before or after any of the steps S31 and S32, which is not limited.
Step S36, the network device accessing the at least one POE port is activated by using the user right information, and step S33 is executed.
In the embodiment of the application, the SOC is preset with user permission information. The user authority information may include, but is not limited to: user name, account number, password, fingerprint, voiceprint, face and the like.
For each network device accessing the at least one POE port, if detecting that the activation state of the network device is inactive, the SOC may input user right information to the network device; the network device activates the network device using the user right information. After successful activation, the network device returns a signal to the SOC indicating successful activation. The SOC determines that the network device is activated according to the signal indicating successful activation, and then performs step S33 to configure the network device according to the configuration parameters included in the target recipe policy.
In this embodiment of the present application, the function of activating the network device may be integrated in a network scanning protocol, and the SOC inputs the user right information into the network device using the network scanning protocol, so as to activate the network device.
The function of activating the network device may also be independently set up with an activation protocol, and the SOC may input the user right information into the network device to activate the network device.
In the technical scheme provided by the embodiment of the application, whether the network equipment is activated or not is considered, and when the network equipment is not activated, the user authority information is used for activating the network equipment. Therefore, the configuration of the equipment needing to be activated can be realized, and the delivery cost of the equipment interconnection system is further reduced.
In one embodiment of the present application, to implement configuration of a device, avoid address collision, and facilitate management of the device, as shown in fig. 8, the step S33 may be subdivided into the following steps.
Step S331, when the power supply state of the PSE port corresponding to at least one POE port is the power supply state, detecting whether a first network parameter of the network device accessed to the POE port is matched with a preset second network parameter corresponding to the POE port or not for each POE port in the at least one POE port; if not, go to step S332; if yes, go to step S333.
Step S332, allocating the second network parameter to the network device accessing the POE port.
Step S333, matching the device type corresponding to the at least one POE port with a plurality of preset policy for provisioning orders, to obtain a target policy for provisioning orders.
In the embodiment of the application, the network parameters include an IP address, occupied bandwidth, data transmission rate, and the like. The network device itself has network parameters, i.e. first network parameters. The first network parameter may be obtained when scanning is performed using a network scanning protocol, or may be pre-stored in the SOC for the user. Each POE port has a preset network parameter, i.e., a second network parameter.
For each POE port in the at least one POE port, the SOC detects whether a first network parameter of the network equipment accessing the POE port is the same as a preset second network parameter corresponding to the POE port. If the first network parameter and the second network parameter are not matched, the SOC may allocate the second network parameter to the network device accessing the POE port. If the first network parameter and the second network parameter match, the SOC may not perform other processing.
In this embodiment of the present application, the matching of the first network parameter and the second network parameter means that the first network parameter and the second network parameter are the same, or the first network parameter is within a value range of the second network parameter. This is not limitative.
In the technical scheme provided by the embodiment of the application, corresponding network parameters are established for each POE port. When the first network parameter of the network device is inconsistent with the preset second network parameter of the POE port accessed by the network device, the preset network parameter is distributed to the network device accessed to the POE port, so that the network resource of the device interconnection system is reasonably distributed, and meanwhile, the network device is convenient to manage.
In an embodiment of the present application, in order to save storage space and prevent a subsequently obtained network device from being absent, but still recorded in the SOC, and in order to achieve that the obtained device information is real-time network device information, rather than outdated network device information, before performing a device configuration list, the SOC may clear the pre-recorded device information accessed to each POE port, so as to clear historical device information, thereby achieving the above-mentioned purpose. Thereafter, the SOC may proceed with device configuration, i.e., perform the above steps S31-S33.
The following describes in detail a device configuration method provided in an embodiment of the present application with reference to a software control interface shown in fig. 9 and a signaling diagram of device configuration shown in fig. 10. As shown in fig. 9, the software control interface includes: configuration mode, configuration state, director policy, and one-key configuration and reset buttons.
The configuration mode may include, but is not limited to, a manual configuration mode (not shown in the figure), an automatic configuration mode, and the like. The manual configuration mode is a mode for manually configuring configuration parameters of the network equipment by a user; the automatic configuration mode is a mode in which the device interconnection system automatically completes configuration parameters of the network device.
The configuration state includes: no order state and order strategy X. The non-configuration state refers to that the POE power supply device of the access device interconnection system is not configured. The order allocation strategy X is an order allocation strategy adopted for configuring POE power supply equipment of the access equipment interconnection system.
The list of recipes includes: one or more POE power supply devices.
The director strategy comprises configuration list information, and the configuration list information comprises part or all information of each POE power supply device in the configuration list. As shown in fig. 9, the configuration list information includes the serial number, IP address, port, and status of the POE power supply device. The state is access support, the user permission information stored by the SOC can be used for establishing network connection with the POE power supply equipment, and the POE power supply equipment can be added into the equipment interconnection system.
In addition, the director policy area also includes add, modify, and delete buttons based on which the manifest list information can be added, modified, or deleted in the director policy.
And the one-key configuration button is used for indicating that the corresponding POE power supply equipment is configured by using the list configuration strategy included in the list configuration list.
And the reset button is used for adding, modifying, deleting and the like the configuration list information in the director strategy after one-key configuration is executed. That is, the reset is performed after one-key configuration, and the addition, modification, deletion, and the like of the configuration list information in the director policy can be performed.
As shown in fig. 9, a plurality of network devices access the recording and playing host through POE ports. The recording and broadcasting host is configured for the plurality of network devices.
And S101, selecting an automatic configuration mode by a user, and sending the automatic configuration mode to the SOC on the recording and broadcasting host through a network.
As in fig. 9, the user selects the configuration mode in the upper left corner as the auto configuration mode.
And step S102, generating a configuration list by the SOC according to the automatic configuration mode.
And the SOC clears the historical list of the matched orders according to the automatic configuration mode, so that the matched order state is a non-matched order state. Thereafter, the SOC generates a new recipe list.
Wherein, the list of configuration lists comprises each POE power supply device. For determining each network device accessing the POE port, refer to the description in fig. 3 to 8, which is not described herein again. The POE power supply equipment comprises: and accessing the POE port, wherein the PSE port corresponding to the accessed POE port is in a network device in a power supply state.
The power supply state of the PSE port comprises a power supply state and a power non-supply state. The unpowered state indicates that the PSE port is not supplying power to the outside. The powered state indicates that the PSE port is providing power to the outside. If the network equipment is connected with the PSE port in the power supply state, the network equipment can receive the power supply and then normally operates, and at the moment, the network equipment can be understood as POE power supply equipment.
In step S103, the SOC returns the list of configuration list to the user.
At this point, the software control interface displays the configuration list information, such as the information displayed in the director policy in fig. 9. The user can see the list information through the software control interface.
In this embodiment of the application, the SOC may also return the auto-configuration module and the non-configuration state to the user, which is not limited.
And step S104, clicking a one-key configuration button in the software control interface by a user, and further sending a one-key configuration instruction to the SOC through the network.
Wherein, the user clicks the one-key configuration button, that is, the one-key configuration instruction is input.
In the embodiment of the application, all POE power supply equipment of the access equipment interconnection system can be added into the equipment interconnection system at one time, so that the time consumed by configuration is saved.
In other embodiments of the present application, one or more network devices accessing the device interconnection system may also be selectively added to the device interconnection system.
Step S105, after receiving the one-key configuration instruction, the SOC completes one-key configuration, that is, determines a matching policy matched with the POE power supply devices in the matching list, and configures each POE power supply device according to the matched matching policy, thereby implementing parameter configuration of all network devices of the access device interconnection system.
The determination of the policy of matching the bill can be referred to the above description of fig. 3-8, and will not be described herein again.
And step S106, the SOC returns the configuration result to the user through the network.
The configuration result may include a configuration success or failure. The configuration result may also include a recipe state. Taking the policy of matching orders matched with the POE power supply equipment in the list of matching orders as policy 1 of matching orders as an example. If the configuration result comprises successful configuration, the list configuration state is a list configuration strategy 1; and if the configuration result comprises configuration failure, the list configuration state is a list non-configuration state.
At this point, the user can view the latest configuration list information and the device configuration is complete.
In the embodiment of the present application, after completing one device configuration, the next device configuration, such as adding, modifying, or deleting a device, may be started. That is, the user may add, modify, and delete the POE power supply device included in the list based on the list information displayed on the software control interface. The user inputs a one-key configuration instruction based on the addition, modification and deletion of the recipe list, and the one-key configuration instruction can also comprise the modified recipe list. After receiving the one-key configuration instruction, the SOC may re-determine the policy for provisioning according to the one-key configuration instruction including the modified provisioning list, and configure the corresponding POE power supply device based on the re-determined policy for provisioning.
Corresponding to the above device configuration method, an embodiment of the present application further provides a device configuration apparatus, as shown in fig. 11, the apparatus includes:
a determining unit 111, configured to determine a device type of a network device accessing each POE port of the device interconnection system, where the POE ports correspond to the PSE ports one to one;
a matching unit 112, configured to, when the power supply state of the PSE port corresponding to the at least one POE port is a powered state, match the device type corresponding to the at least one POE port with a plurality of preset policy for provisioning orders to obtain a target policy for provisioning orders, where the policy for provisioning orders includes at least one device type and configuration parameters of network devices corresponding to the at least one device type;
a configuring unit 113, configured to configure, according to a configuration parameter included in the target policy, a network device accessing to at least one POE port.
Optionally, the determining unit 111 may be specifically configured to:
scanning each POE port of the equipment interconnection system to obtain equipment information of network equipment accessed into the equipment interconnection system, wherein the equipment information comprises an MAC address and an equipment type;
acquiring the MAC address of the network equipment of each POE port of the access equipment interconnection system through a serial interface bus;
and determining the equipment type of the network equipment accessed to each POE port according to the MAC address of the network equipment accessed to each POE port and the equipment information of the network equipment accessed to the equipment interconnection system.
Optionally, the matching unit 112 may be specifically configured to:
and acquiring the power supply state of each PSE port through a hardware link bus.
Optionally, the matching unit 112 may be specifically configured to:
determining at least one POE port of which the corresponding equipment type is a preset equipment type;
when the power supply state of the PSE port corresponding to the at least one POE port is the power supply state, matching the equipment type corresponding to the at least one POE port with a plurality of preset list matching strategies to obtain a target list matching strategy.
Optionally, the configuration unit 113 may be specifically configured to:
detecting whether the activation state of the network equipment accessed to at least one POE port is activated;
if yes, triggering the configuration unit 113 to configure the network device accessing to the at least one POE port according to the configuration parameters included in the target configuration policy;
if not, the network device accessing the at least one POE port is activated by using the user permission information, and the configuration unit 113 is triggered to configure the network device accessing the at least one POE port according to the configuration parameters included in the target configuration policy.
Optionally, the configuration unit 113 may further be configured to:
when the power supply state of the PSE port corresponding to at least one POE port is the power supply state, before the equipment type corresponding to the at least one POE port is matched with a plurality of preset list matching strategies, detecting whether a first network parameter of network equipment accessed to the POE port is matched with a second network parameter corresponding to the POE port or not aiming at each POE port in the at least one POE port; and if not, distributing the second network parameter to the network equipment accessing the POE port.
Optionally, the device configuration apparatus may further include:
and the clearing unit is used for clearing the pre-recorded equipment information of the network equipment accessed to each POE port before determining the equipment type of the network equipment accessed to each POE port.
In the technical solution provided in the embodiment of the present application, the device type of the network device accessing each POE port is determined. Because the POE ports correspond to the PSE ports one to one, the network equipment accessed to one POE port is the network equipment accessed to the PSE port corresponding to the POE port, and under the condition of determining the equipment type of the network equipment of one POE port, the equipment type of the network equipment accessed to the corresponding PSE port is also known.
The network equipment connected to the POE port can normally operate under the condition of power supply. When the power supply state of the PSE port corresponding to the at least one POE port is the powered state, it indicates that power is supplied to each network device accessing the at least one POE port, and the network device accessing the at least one POE port can operate normally. In this case, a target policy matching the device type corresponding to the at least one POE port is obtained, and the network device accessing the at least one POE port is configured by using the target policy matching the device type corresponding to the at least one POE port, so that the network device accessing the at least one POE port realizes a corresponding function. Therefore, the automatic configuration of the normally-operated network equipment accessed to the POE port is realized, the user participation is reduced in the configuration process of the network equipment, the time consumed for configuring the network equipment accessed to the POE port is reduced, and the delivery cost of the equipment interconnection system is reduced.
The embodiment of the present application further provides an SOC, as shown in fig. 12, including a processor 121, a communication interface 122, a memory 123, and a communication bus 124, where the processor 121, the communication interface 122, and the memory 123 complete mutual communication through the communication bus 124;
a memory 123 for storing a computer program;
the processor 121 is configured to implement the steps of the device configuration method described in any one of fig. 3 to 10 when executing the program stored in the memory 123.
The communication bus mentioned in the above SOC may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the SOC and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
An embodiment of the present application further provides an equipment interconnection system, including the electronic equipment as described in any one of fig. 1 to fig. 2.
In yet another embodiment provided by the present application, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the device configuration method described in any of fig. 3 to 10 above.
In a further embodiment provided by the present application, there is also provided a computer program which, when run on a computer, causes the computer to perform the method steps of the device configuration method described in any of fig. 3-10 above.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, the device interconnection system, the SOC, the computer-readable storage medium, and the computer program embodiment, since they are substantially similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.
Claims (19)
1. A method for device configuration, the method comprising:
determining the equipment type of network equipment of each active Ethernet POE port of an access equipment interconnection system, wherein the POE ports correspond to PSE ports of power supply equipment one by one;
when the power supply state of the PSE port corresponding to at least one POE port is a power supply state, matching the device type corresponding to the at least one POE port with a plurality of preset list matching strategies to obtain a target list matching strategy, wherein the list matching strategy comprises at least one device type and configuration parameters of network devices corresponding to the at least one device type;
and configuring the network equipment accessed to the at least one POE port according to the configuration parameters included in the target configuration policy.
2. The method of claim 1, wherein the step of determining the device type of the network device accessing to each POE port of the device interconnection system comprises:
scanning each POE port of an equipment interconnection system to obtain equipment information of network equipment accessed to the equipment interconnection system, wherein the equipment information comprises a Media Access Control (MAC) address and an equipment type;
acquiring the MAC address of the network equipment of each POE port accessed to the equipment interconnection system through a serial interface bus;
and determining the equipment type of the network equipment accessed to each POE port according to the MAC address of the network equipment accessed to each POE port and the equipment information of the network equipment accessed to the equipment interconnection system.
3. The method of claim 1, further comprising:
and acquiring the power supply state of each PSE port through a hardware link bus.
4. The method as claimed in claim 1, wherein the step of matching the device type corresponding to the at least one POE port with a plurality of preset policy policies to obtain a target policy when the power supply status of the PSE port corresponding to the at least one POE port is a powered status includes:
determining at least one POE port of which the corresponding equipment type is a preset equipment type;
and when the power supply state of the PSE port corresponding to the at least one POE port is the power supply state, matching the equipment type corresponding to the at least one POE port with a plurality of preset list matching strategies to obtain a target list matching strategy.
5. The method of claim 1, wherein before configuring the network device accessing the at least one POE port according to the configuration parameters included in the target policy, the method further comprises:
detecting whether the activation state of the network equipment accessed to the at least one POE port is activated;
if yes, executing the step of configuring the network equipment accessed to the at least one POE port according to the configuration parameters included in the target configuration policy;
and if not, activating the network equipment accessed to the at least one POE port by using the user authority information, and executing the step of configuring the network equipment accessed to the at least one POE port according to the configuration parameters included in the target policy.
6. The method according to claim 1, wherein when the power supply state of the PSE port corresponding to at least one POE port is a powered state, before matching the device type corresponding to the at least one POE port with a plurality of preset policy profiles, the method further comprises;
detecting whether a first network parameter of network equipment accessed to the POE port is matched with a preset second network parameter corresponding to the POE port or not aiming at each POE port in the at least one POE port;
and if not, distributing the second network parameter to the network equipment accessing the POE port.
7. The method of any of claims 1-6, wherein prior to determining the device type of the network device accessing each POE port, the method further comprises:
and clearing the pre-recorded equipment information of the network equipment accessed to each POE port.
8. An apparatus for device configuration, the apparatus comprising:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining the device type of network equipment of each active Ethernet POE port of an access device interconnection system, and the POE ports correspond to PSE ports of power supply equipment one by one;
the matching unit is used for matching the device type corresponding to the at least one POE port with a plurality of preset list matching strategies to obtain a target list matching strategy when the power supply state of the PSE port corresponding to the at least one POE port is a power supply state, wherein the list matching strategy comprises at least one device type and configuration parameters of network devices corresponding to the at least one device type;
and the configuration unit is used for configuring the network equipment accessed to the at least one POE port according to the configuration parameters included in the target configuration policy.
9. The apparatus according to claim 8, wherein the determining unit is specifically configured to:
scanning each POE port of an equipment interconnection system to obtain equipment information of network equipment accessed to the equipment interconnection system, wherein the equipment information comprises a Media Access Control (MAC) address and an equipment type;
acquiring the MAC address of the network equipment of each POE port accessed to the equipment interconnection system through a serial interface bus;
determining the equipment type of the network equipment accessed to each POE port according to the MAC address of the network equipment accessed to each POE port and the equipment information of the network equipment accessed to the equipment interconnection system; or
The determining unit is further configured to:
acquiring the power supply state of each PSE port through a hardware link bus; or
The matching unit is specifically configured to:
determining at least one POE port of which the corresponding equipment type is a preset equipment type;
when the power supply state of the PSE port corresponding to the at least one POE port is the power supply state, matching the equipment type corresponding to the at least one POE port with a plurality of preset list matching strategies to obtain a target list matching strategy; or
The configuration unit is further configured to:
detecting whether the activation state of the network equipment accessed to the at least one POE port is activated;
if yes, configuring the network equipment accessed to the at least one POE port according to configuration parameters included in the target configuration policy;
if not, activating the network equipment accessed to the at least one POE port by using the user authority information, and configuring the network equipment accessed to the at least one POE port according to the configuration parameters included in the target distribution policy; or
The configuration unit is further configured to:
when the power supply state of the PSE port corresponding to at least one POE port is a power supply state, before the equipment type corresponding to the at least one POE port is matched with a plurality of preset list matching strategies, detecting whether a first network parameter of network equipment accessed to the POE port is matched with a second network parameter corresponding to the POE port or not aiming at each POE port; if not, the second network parameter is distributed to the network equipment accessing the POE port; or
The device further comprises:
and the clearing unit is used for clearing the pre-recorded equipment information of the network equipment accessed to each POE port before determining the equipment type of the network equipment accessed to each POE port.
10. An electronic device is characterized by comprising a System On Chip (SOC), a network switching chip connected with the SOC and a Power Supply Equipment (PSE), wherein the network switching chip comprises a plurality of active Ethernet (POE) ports, the PSE comprises a plurality of PSE ports, and the POE ports correspond to the PSE ports one by one;
the SOC is used for determining the equipment type of network equipment accessing each POE port of the equipment interconnection system, and the POE ports correspond to the PSE ports one by one; when the power supply state of the PSE port corresponding to at least one POE port is a power supply state, matching the device type corresponding to the at least one POE port with a plurality of preset list matching strategies to obtain a target list matching strategy, wherein the list matching strategy comprises at least one device type and configuration parameters of network devices corresponding to the at least one device type; and configuring the network equipment accessed to the at least one POE port according to the configuration parameters included in the target configuration policy.
11. The electronic device of claim 10, wherein the SOC is connected with the network switch chip via a serial interface bus and the SOC is connected with the network switch chip via a Media Access Control (MAC) interface bus;
the SOC is specifically configured to scan each POE port of the device interconnection system through the MAC interface bus to obtain device information of a network device accessing the device interconnection system, where the device information includes an MAC address and a device type; acquiring the MAC address of the network equipment of each POE port accessed to the equipment interconnection system through the serial interface bus; and determining the equipment type of the network equipment accessed to each POE port according to the MAC address of the network equipment accessed to each POE port and the equipment information of the network equipment accessed to the equipment interconnection system.
12. The electronic device of claim 10, wherein the SOC is connected with the PSE via a hardware link bus;
the SOC is specifically configured to acquire a power supply state of each PSE port through the hardware link bus.
13. The electronic device of claim 10, wherein the SOC is specifically configured to: determining at least one POE port of which the corresponding equipment type is a preset equipment type; and when the power supply state of the PSE port corresponding to the at least one POE port is the power supply state, matching the equipment type corresponding to the at least one POE port with a plurality of preset list matching strategies to obtain a target list matching strategy.
14. The electronic device of claim 10, wherein the SOC is further configured to:
before configuring the network equipment accessed to the at least one POE port according to the configuration parameters included in the target configuration policy, detecting whether the activation state of the network equipment accessed to the at least one POE port is activated;
if yes, executing the step of configuring the network equipment accessed to the at least one POE port according to the configuration parameters included in the target configuration policy;
and if not, activating the network equipment accessed to the at least one POE port by using the user authority information, and executing the step of configuring the network equipment accessed to the at least one POE port according to the configuration parameters included in the target policy.
15. The electronic device of claim 10, wherein the SOC is further configured to:
when the power supply state of the PSE port corresponding to at least one POE port is a power supply state, before the equipment type corresponding to the at least one POE port is matched with a plurality of preset list matching strategies, detecting whether a first network parameter of network equipment accessed to the POE port is matched with a preset second network parameter corresponding to the POE port or not for each POE port;
and if not, distributing the second network parameter to the network equipment accessing the POE port.
16. The electronic device of claims 10-15, wherein the SOC is further configured to:
before determining the device type of the network device accessing each POE port, clearing the pre-recorded device information of the network device accessing each POE port.
17. A device interconnection system, comprising an electronic device according to any one of claims 10 to 16.
18. The system-on-chip SOC is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory is used for storing a computer program;
the processor, when executing the program stored in the memory, implementing the method steps of any of claims 1-7.
19. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110938529.8A CN113645080B (en) | 2021-08-16 | 2021-08-16 | Equipment configuration method, device, electronic equipment and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110938529.8A CN113645080B (en) | 2021-08-16 | 2021-08-16 | Equipment configuration method, device, electronic equipment and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113645080A true CN113645080A (en) | 2021-11-12 |
CN113645080B CN113645080B (en) | 2023-05-05 |
Family
ID=78422116
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110938529.8A Active CN113645080B (en) | 2021-08-16 | 2021-08-16 | Equipment configuration method, device, electronic equipment and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113645080B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114979530A (en) * | 2022-05-13 | 2022-08-30 | 杭州海康威视数字技术股份有限公司 | A recording and broadcasting host, audio data transmission method and storage medium |
CN116346510A (en) * | 2022-12-30 | 2023-06-27 | 联想(北京)有限公司 | Control method and device, Ethernet power supply system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090063874A1 (en) * | 2007-08-27 | 2009-03-05 | Broadcom Corporation | Power sharing between midspan and endspan for higher power PoE |
CN104168121A (en) * | 2014-07-14 | 2014-11-26 | 杭州华三通信技术有限公司 | A PSE port protection method and PSE |
CN110098948A (en) * | 2018-01-30 | 2019-08-06 | 慧与发展有限责任合伙企业 | Use the automatic sign in of the terminal device of device configuration file |
CN111953508A (en) * | 2019-05-17 | 2020-11-17 | 阿里巴巴集团控股有限公司 | Equipment control method and device, switch and electronic equipment |
-
2021
- 2021-08-16 CN CN202110938529.8A patent/CN113645080B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090063874A1 (en) * | 2007-08-27 | 2009-03-05 | Broadcom Corporation | Power sharing between midspan and endspan for higher power PoE |
CN104168121A (en) * | 2014-07-14 | 2014-11-26 | 杭州华三通信技术有限公司 | A PSE port protection method and PSE |
CN110098948A (en) * | 2018-01-30 | 2019-08-06 | 慧与发展有限责任合伙企业 | Use the automatic sign in of the terminal device of device configuration file |
CN111953508A (en) * | 2019-05-17 | 2020-11-17 | 阿里巴巴集团控股有限公司 | Equipment control method and device, switch and electronic equipment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114979530A (en) * | 2022-05-13 | 2022-08-30 | 杭州海康威视数字技术股份有限公司 | A recording and broadcasting host, audio data transmission method and storage medium |
CN114979530B (en) * | 2022-05-13 | 2025-06-10 | 杭州海康威视数字技术股份有限公司 | Recording and broadcasting host, audio data transmission method and storage medium |
CN116346510A (en) * | 2022-12-30 | 2023-06-27 | 联想(北京)有限公司 | Control method and device, Ethernet power supply system |
Also Published As
Publication number | Publication date |
---|---|
CN113645080B (en) | 2023-05-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10616077B2 (en) | System architecture and methods for controlling and managing networking devices and expediting new service delivery in a subscriber's home network using micro-domains | |
CN104639913B (en) | A kind of network video recorder and its method for automatically accessing IPC | |
US8050192B2 (en) | Port forwarding configuration system and method for wire and wireless networks | |
WO2020056558A1 (en) | Bluetooth cluster online upgrade method and apparatus | |
CN105897527A (en) | Method and device for setting running parameter of smart home device in smart scene | |
CN112469055A (en) | Equipment network distribution method, related equipment and storage medium | |
CN104994527A (en) | Method for intelligent household electrical appliance to access router, intelligent household electrical appliance and mobile terminal | |
CN113645080B (en) | Equipment configuration method, device, electronic equipment and system | |
CN112291079A (en) | Network service configuration method and network management equipment | |
CN106534376A (en) | User online load balancing method, device and equipment | |
WO2019091439A1 (en) | Network slice generation method, device and terminal | |
EP2171917B1 (en) | System and method for providing device management service to electronic device having no broadband communication module | |
CN112684995B (en) | Cross-screen input method and device | |
CN104365059A (en) | Transmission management system, transmission system, and transmission management system program | |
CN112492618A (en) | A network sharing method, device, electronic device and storage medium | |
CN103546308A (en) | Distribution method, device and system for wireless controller networking | |
CN103533069B (en) | Method for starting automatic configuration of network equipment and network equipment | |
CA2936055A1 (en) | Access control device, communication system, program, and method for controlling access | |
WO2025152566A1 (en) | Terminal provisioning method, apparatus and device, and storage medium | |
CN108449562A (en) | A kind of method and device for adding web camera in network hard disk video recorder | |
WO2024188161A1 (en) | Wireless network configuration method and apparatus, device, and system | |
CN112817248A (en) | Shared device management method and device, storage medium and electronic device | |
CN110505075B (en) | Device management method and related device | |
CN116708062B (en) | Device management method and electronic device | |
CN107347126B (en) | The method of Configuration network camera |
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 |