Disclosure of Invention
The invention mainly aims to solve the technical problem of how to realize unified management of the intelligent box and the PoE function.
The first aspect of the invention provides an intelligent box power supply method, which comprises the following steps:
the intelligent box receives a power supply request, and opens a PoE function of the intelligent box according to the power supply request;
Detecting an impedance value of the intelligent box corresponding to equipment to be powered through a PoE interface of the intelligent box, and judging whether the equipment to be powered needs to be powered according to the impedance value;
if power supply is needed, the intelligent box supplies power to the equipment to be powered through the PoE interface;
And displaying the power supply condition of the intelligent box through the interactive interface of the intelligent box.
Optionally, in a first implementation manner of the first aspect of the present invention, detecting, by a PoE interface of the intelligent boxes, an impedance value of each intelligent box corresponding to a device to be powered, and determining, according to the impedance value, whether the device to be powered needs to be powered includes:
Detecting a current value of the intelligent box corresponding to equipment to be powered through a PoE interface of the intelligent box;
Obtaining an impedance value of the equipment to be powered according to the current value of the equipment to be powered;
And judging whether the equipment to be powered needs to be powered according to the impedance value of the equipment to be powered.
Optionally, in a second implementation manner of the first aspect of the present invention, if power is required, the power supplying, by the intelligent box, the device to be powered through the PoE interface includes:
if power supply is needed, judging the power supply level of the equipment to be powered according to the impedance value of the equipment to be powered;
And the intelligent box supplies power to the equipment to be powered through the PoE interface according to the power supply level.
Optionally, in a third implementation manner of the first aspect of the present invention, before detecting, by a PoE interface of the intelligent box, an impedance value of the intelligent box corresponding to the device to be powered, the method further includes:
Pushing the web control interface;
opening a PoE interface of the intelligent box through the web control interface;
and detecting the impedance value of the intelligent box corresponding to the equipment to be powered through the PoE interface.
The second aspect of the invention provides an intelligent box power supply system, which comprises an intelligent box, equipment to be powered, a power supply equipment management module and a power supply module;
the intelligent box receives a power supply request, and opens a PoE function of the intelligent box according to the power supply request;
The power supply module detects the impedance value of the intelligent box corresponding to the equipment to be powered, and judges whether the equipment to be powered needs to be powered according to the impedance value;
and the power supply equipment management module acquires the power supply condition of the intelligent box and displays the power supply condition.
Optionally, in a first implementation manner of the second aspect of the present invention, the power supply module includes a PoE interface, where the PoE interface is connected to a network port of the intelligent box, and the power is supplied to the device to be powered on the network port of the intelligent box.
Optionally, in a second implementation manner of the second aspect of the present invention, the power supply module further includes a PSE chip board, the PSE chip board is disposed on a motherboard of the smart box, and the smart box is connected to the power supply module through the motherboard and an I2C interface in the PSE chip board, so as to read register information of the power supply module.
Optionally, in a second implementation manner of the third aspect of the present invention, the power supply device management module obtains a power supply condition in register information of the power supply module through a motherboard of the intelligent box and an I2C interface in the PSE chip board.
The second aspect of the invention provides a smart box power supply device, which comprises a memory and at least one processor, wherein the memory is stored with instructions, the memory and the at least one processor are interconnected through a line, and the at least one processor calls the instructions in the memory so that the smart box power supply device can execute the smart box power supply method.
A third aspect of the present invention provides a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the above-described smart box power supply method.
In the embodiment of the invention, an intelligent box receives a power supply request, a PoE function of the intelligent box is started according to the power supply request, an impedance value of the intelligent box corresponding to equipment to be powered is detected through a PoE interface of the intelligent box, whether the equipment to be powered needs to be powered is judged according to the impedance value, if the equipment to be powered needs to be powered, the intelligent box supplies power to the equipment to be powered through the PoE interface, and a power supply condition of the intelligent box is displayed through an interactive interface of the intelligent box. According to the invention, the PoE interface of the intelligent box is used for detecting the impedance value of the intelligent box corresponding to the equipment to be powered, judging whether the equipment to be powered needs to be powered or not according to the impedance value, and if so, the intelligent box is used for powering the equipment to be powered, so that the PoE function in the intelligent box can be integrated, the PoE power can be supplied to the outside, and unified management of the intelligent box and the PoE function is realized.
Detailed Description
The embodiment of the invention provides an intelligent box power supply method, an intelligent box power supply system, intelligent box power supply equipment and a storage medium.
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the present disclosure has been illustrated in the drawings in some form, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and examples of the present disclosure are for illustrative purposes only and are not intended to limit the scope of the present disclosure.
In describing embodiments of the present disclosure, the term "comprising" and its like should be taken to be open-ended, i.e., including, but not limited to. The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first," "second," and the like, may refer to different or the same object. Other explicit and implicit definitions are also possible below.
For ease of understanding, a specific flow of an embodiment of the present invention is described below with reference to fig. 1, where an embodiment of a method for powering an intelligent box according to the present invention includes:
s100, the intelligent box receives the power supply request, and according to the power supply request, the PoE function of the intelligent box is started.
In this embodiment, the intelligent box receives a power supply request, automatically detects whether a device to be powered needs power supply, and starts the PoE function of the intelligent box according to the power supply request, and the PoE function of the intelligent box, which is also a power over ethernet function, is a technology that can provide dc power for some IP-based terminals (such as an IP telephone, a wireless local area network access point AP, a network camera, etc.) while transmitting data signals.
S200, detecting the impedance value of the intelligent box corresponding to the equipment to be powered through the PoE interface of the intelligent box, and judging whether the equipment to be powered needs to be powered or not according to the impedance value.
In this embodiment, after the PoE function of the intelligent box is turned on, the PoE interface of the intelligent box determines whether the Device to be powered is a PD (Power Device) by detecting the impedance value of the Device to be powered, that is, determining whether the Device to be powered needs to be powered, and generally detects the impedance value between PoE Power supply pins through a preset detection voltage, where the preset detection voltage may be a voltage of about 5V.
And S300, if power supply is needed, the intelligent box supplies power to the equipment to be powered through the PoE interface.
In this embodiment, when the intelligent box determines that the device to be powered needs to supply power, the power will be supplied to the PD device.
S400, displaying the power supply condition of the intelligent box through an interactive interface of the intelligent box.
In this embodiment, after the power supply of the intelligent box is successful, poE information can be reported to the management platform of the device through an MQTT (Message Queuing Telemetry Transport, message queue telemetry transmission) protocol, where the PoE information includes power supply voltage and current, and the PoE information is displayed through an interactive interface of the management platform, so as to check the power supply voltage and current of the intelligent box in time.
In an optional implementation manner of the first aspect of the present invention, detecting, through a PoE interface of each intelligent box, an impedance value of each intelligent box corresponding to a device to be powered, and determining, according to the impedance value, whether the device to be powered needs to be powered includes:
The method comprises the steps of detecting a current value of the intelligent box corresponding to equipment to be powered through a PoE interface of the intelligent box, obtaining an impedance value of the equipment to be powered according to the current value of the equipment to be powered, and judging whether the equipment to be powered needs to be powered according to the impedance value of the equipment to be powered.
In this embodiment, the smart box applies a specific voltage (e.g., 5-12V) to the device to be powered, and observes the current value to determine the impedance of the device to be powered. Impedance is a physical quantity that represents the performance of an element or a segment of the electrical performance of a circuit. The ratio of the peak voltage (or effective value) at two ends of a section of passive circuit in an alternating current circuit to the peak current (or effective value) passing through the circuit is called impedance, and under the condition of a certain voltage, the larger the impedance is, the smaller the current is, and the impedance has a function of limiting the current. And comparing the impedance value with a preset impedance threshold, and if the impedance value is larger than the preset impedance threshold, judging that the equipment to be powered needs to be powered.
In an optional implementation manner of the first aspect of the present invention, if power supply is required, the power supply of the smart box to the device to be powered through the PoE interface includes:
if power is needed, judging the power supply grade of the equipment to be powered according to the impedance value of the equipment to be powered, and supplying power to the equipment to be powered through the PoE interface by the intelligent box according to the power supply grade.
In this embodiment, different power supply levels are set for the intelligent box first, then, the PoE interface of the intelligent box is used to detect the impedance value of the device to be powered, and whether the device to be powered is judged according to the impedance value, if power is required to be supplied, the power supply level corresponding to the impedance value is obtained by looking up a preset power supply list, and according to the power supply level, the intelligent box correspondingly powers the device to be powered through the PoE interface.
In an optional implementation manner of the first aspect of the present invention, before detecting, through a PoE interface of the intelligent box, an impedance value of the intelligent box corresponding to the device to be powered, the method further includes:
the method comprises the steps of pushing a web control interface, starting a PoE interface of an intelligent box through the web control interface, and detecting an impedance value of the intelligent box corresponding to equipment to be powered through the PoE interface.
In this embodiment, the power supply management system of the intelligent boxes pushes the web control interface, and can control the PoE interface of each intelligent box to be turned on and off through the web control interface, wherein the PoE interface of each intelligent box can be turned on and off by clicking the disable/enable button, and meanwhile, the PoE interface state can be checked at the web control interface. And detecting the impedance value of the intelligent box corresponding to the equipment to be powered through the PoE interface.
Referring to fig. 2, an embodiment of the power supply system for a smart box according to the present invention includes:
The intelligent box 30 receives a power supply request, a PoE function of the intelligent box 30 is started according to the power supply request, the power supply module 20 detects an impedance value of the intelligent box corresponding to the equipment 10 to be powered, judges whether the equipment 10 to be powered needs to be powered according to the impedance value, if so, the intelligent box 30 supplies power to the equipment 10 to be powered through the power supply module 20, and the power supply equipment management module 40 acquires and displays the power supply condition of the intelligent box 30.
In this embodiment, the intelligent box 30 receives a power supply request sent by a user, and starts a PoE function of the intelligent box 30 according to the power supply request, the power supply module 20 detects a current value of the device 10 to be powered through a PoE interface of the intelligent box 30 to determine an impedance value of the device 10 to be powered, determines whether the device 10 to be powered needs to be powered according to the impedance value and a preset impedance threshold, determines a power supply level if power is needed, then uses the PoE interface to supply power to the device 10 to be powered according to the power supply level through the power supply module 20, and the power supply management module 40 obtains a power supply condition of the intelligent box 30 and displays the power supply condition on an interactive interface.
In an alternative embodiment of the second aspect of the present invention, the power module 20 includes a PoE interface, which is connected to the network port of the smart box 30, and supplies power to the device to be powered 10 at the network port of the smart box 30.
In this embodiment, the power supply module 20 includes a PoE interface, the PoE interface is connected with a network port of the intelligent box 30, the PoE interface provides a power over ethernet function, the power is supplied to the device 10 to be powered on the network port of the intelligent box 30, and supports 802.3AF and 802.3AT, when the network port is plugged into the PoE interface, the PoE interface will detect whether the voltage detection device is a powered device requiring power supply, i.e. PD, if the voltage detection device is detected as the powered device, the power is supplied to the device, if the voltage detection device is detected as not being the powered device, the power is not supplied to the device, and management of the PoE function is performed by connecting a main control CPU of the intelligent box 30 with an I2C interface of the PSE chip.
In an alternative embodiment of the second aspect of the present invention, the power supply module 20 further includes a PSE chip board, where the PSE chip board is disposed on a motherboard of the smart box 30, and the smart box 30 is connected to the power supply module 20 through an I2C interface in the motherboard and the PSE chip board to read register information of the power supply module 20.
In this embodiment, the power supply module 20 further includes a PSE chip board, the main PSE chip of PoE is made into a buckle plate, and the buckle plate is fastened on the motherboard of the intelligent box 30, and the intelligent box 30 is connected with the power supply module 20 through the motherboard CPU and the internal I2C interface of the PoE chip board, so that the register information of the power supply module 20 can be directly read, thereby performing control and inquiry
In an alternative embodiment of the second aspect of the present invention, the power supply device management module obtains the power supply condition in the register information of the power supply module 20 through the I2C interface in the motherboard of the smart box 30 and the PSE chip board.
In this embodiment, the power supply device management module reads the register information of the PSE chip through the CPU of the motherboard and the I2C interface in the PSE chip board, takes the voltage and current of the power supply, encapsulates the data in the API interface, calls the API through the web front-end interface to take the information, and displays it on the display interface.
Fig. 3 is a schematic diagram of a smart box power supply device according to an embodiment of the present invention, where the smart box power supply device 500 may have a relatively large difference due to different configurations or performances, and may include one or more processors (central processing units, CPU) 510 (e.g., one or more processors) and a memory 520, and one or more storage mediums 530 (e.g., one or more mass storage devices) storing application programs 533 or data 532. Wherein memory 520 and storage medium 530 may be transitory or persistent storage. The program stored in the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations in the smart box power supply 500. Still further, the processor 510 may be configured to communicate with the storage medium 530 and execute a series of instruction operations in the storage medium 530 on the smart box power supply 500.
The smart box-based power supply 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input/output interfaces 560, and/or one or more operating systems 531, such as Windows Serve, mac OS X, unix, linux, free BSD, and the like. It will be appreciated by those skilled in the art that the smart box power supply structure shown in fig. 3 is not limiting on the smart box-based power supply and may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, and may also be a volatile computer readable storage medium, where instructions are stored in the computer readable storage medium, which when executed on a computer, cause the computer to perform the steps of the smart box power supply method.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Moreover, although operations are depicted in a particular order, this should be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single implementation. Conversely, various features that are described in the context of a single implementation can also be implemented in multiple implementations separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.