6
QUICK GUIDE / DL-N5USB-PHUB
API COMMANDS
First Steps
Establish a connection with USB hub through a TELENT session.
IP: The unit’s assigned IP address. Default is 192.168.1.254
*Port number: If required, port number is 23 by default.
Establishing Commands
[SET USB PORT]
denotes command key words, case
[prm prm1]
denotes parameters and is case insensitive
<CR><LF
denotes a carriage return or a line feed; all commands must be ended
with a carriage return or a line feed.
Description
Command
Example
Power ON/OFF USB Port Command:
SET USB PORT prm prm1 <CR><LF>
Return:
USB PORT prm prm1 <CR><LF>
Parameter:
prm = {1, 2, 3, 4, 5, all}; 1~4: USB3.0 ports
5: USB2.0 charging port prm1 = {on, off}
default: on
Command:
SET USB PORT 1 ON
<CR><LF>
Return:
USB PORT 1 ON <CR><LF>
Description:
Set USB port 1 TO ON
Request USB Status
Command:
GET USB PORT prm <CR><LF>
Return:
USB PORT prm prm1 <CR><LF>
Parameter:
prm = {1, 2, 3, 4, 5, all}; 1~4: USB3.0 port 5:
USB2.0 charging port prm1 = {on, off}
Command:
GET USB PORT
1<CR><LF>
Return:
USB PORT 1 ON <CR><LF>
Request USB port’s
Power Status
Command:
GET USB PORT prm prm1 <CR><LF>
Return:
USB PORT prm prm1 value <CR><LF>
Parameter:
prm = {1, 2, 3, 4, 5}; 1~4: USB3.0 port 5:
USB2.0 charging port prm1 = {U, I, W, ALL}
Voltage, current, power, all prm2 = {xxxx}
The corresponding value, retain 2
significant digits
Command:
GET USB PORT 1
U<CR><LF>
Return:
USB PORT 1 U
2.4V<CR><LF>