A method for a network apparatus to control power provision to a powered device connected to the network apparatus, the network apparatus including:
- a first port for connection to an electronic device;
- a second port for connection to the powered device;
- a third port for connection to a power supply device that provides electric power;
- a transmission unit connected between the first port and the second port for data transmission between the electronic device and the powered device;
- a switch unit connected between the transmission unit and the third port for controlling transmission of electric power from the power supply device to the powered device;
- and
- a control unit connected to the transmission unit and the switch unit;
- said method comprising:
- by the transmission unit, detecting whether the transmission unit is communicatively connected to the electronic device via the first port, and providing a first-port connection status that indicates a result of the detection to the control unit;
- by the control unit, controlling the switch unit to operate in a conductive state where electric power received from the third port is permitted to pass through the switch unit and is directed toward the transmission unit when the first-port connection status indicates that the transmission unit is communicatively connected to the electronic device via the first port;
- by the transmission unit, transmitting the electric power passing through the third port and the switch unit to the powered device via the second port upon receipt of the electric power passing through the third port and the switch unit;
- and
- by the control unit when an interruption condition is met, controlling the switch unit to operate in a non-conductive state where electric power received from the third port is not permitted to pass through the switch unit, wherein the interruption condition includes that the first-port connection status indicate that the transmission unit is not communicatively connected to the electronic device via the first port.