# Author: Aviosys # Created: 2011/03/15 # Modified: 2011/03/15 User can control the 9258’s action directly though the HTTP command interface. The syntax of the command line interface is : http://username:password@XXX.XXX.XXX.XXX/Set.cmd?CMD=***Power+para1=*+para2=*+para3=*?? Explanations of each part of the order: Username : 9258’s username, default username is admin Password : 9258’s password, default password is 12345678 XXX.XXX.XXX.XXX the IP Address of 9258 CMD=***Power : the function module of 9258 para1 ~ para3 parameters Example 1 : control the power supply of 9258: http://admin:12345678@192.168.1.10 /Set.cmd?CMD=SetPower+ P60=1+P61=1+P62=1+P63=0 This command control IP Power 9258 IP address at 192.168.1.0, user name is admin and password is 12345678. This call will: turn on the power of outlet1 (p60), turn on the power of outlet2 (p61), turn on the power of outlet3 (p62), turn off the power of outlet4 (p63). When this call is sent, the IP Power will return the following message: P60=1,P61=1,P62=1,P63=0 Functions supported by the IP Power 9258: 1. SetPower : to control I/O - read parameter as follow out1 set parameter as 0 (output1 disconnect power )or 1(output1 connect power) out2-out4 same as out1 2. GetPower : to read I/O pasameter - read parameter as follow out1 if parameter reply as 0 (output1 disconnect power )or 1(output1 connect power) out2-out4 same as out1 http:// /admin:1234567@ 192.168.1.100/Set.cmd?CMD=GetPower the above command assumes the 9258 IP address as 192.168.1.10, username is admin,password is 12345678 The 9258 will get return the message as follow: P60=1,P61=1,P62=1,P63=0 Schedule Control The ports can be scheduled to switch on/off at specific times by issuing the following command: http://username:password@XXX.XXX.XXX.XXX/Set.cmd? CMD=SetSchedule+Power=**+YY=****+MM=**+DD=**+HH=**+MN=**+SS=**+PARAM=****+ONOFF=* Explanations of each part of the call: Username : 9258’s username, default username is admin Password : 9258’s password, default password is 12345678 XXX.XXX.XXX.XXX the IP Address of 9258 Power=** setting of each parameter Control parameter are 1A 1B 2A 2B 3A 3B 4A 4B . A means connect power . B means discount power YY=****+MM=**+DD=**+HH=**+MN=**+SS=* : time parameter YY : year ( 20YY ) , 01 = 2001 MM : month ( 0 1-12 ) DD : date ( 01-31) HH : hour (24 hours : 0- 23) MN : minute ( 1-60 ) SS : second (1-60) PARAM=* : time schedule parameter . Parameter list as follow: 128 operate ONCE 127 EVERYDAY 31 MONDAY to FRIDAY 96 SATURDAY & SUNDAY ONOFF=* : operate parameter 0 open 1 close Example 1: control power on / off of 9258: http:// /admin:12345678@192.168.1.10/Set.cmd? CMD=SetSchedule+Power=1A+YY=2006+MM=02+DD=16+HH=06+MN=02+SS=16+PARAM=128+ONOFF=1 Above command assumes the 9258 IP address as 192.168.1.0, user name is admin and password is 12345678. This 9258 will connect power of outlet1 (p60) on 2006/2/16 06:02 Note: 1. please use + to separate each parameter ,you can only control certain power on /off as : http://admin:12345678@192.168.1.10/ Set.cmd?CMD=SetPower+P60=1 2. The syntax is case sensitive.