User`s manual

User’s Manual NETIO-230A
www.koukaam.se
21
system update
Switches the system to firmware upgrade mode.
system reset to default
Reverts all settings to factory default values. After issuing the command the device restarts
automatically.
5.3.5 URL control using the CGI commands
For some customers who already have their own web site or web control application, NETIO-230A
can be easily integrated through convenient URLs. This section specifies the external HTTP based
application programming interface.
CGI command device control uses following command format:
http://<IP address>/tgi/control.tgi/<command>
Change <IP address> to the real IP address of your device. String <command> is the actual command.
List of CGI commands
hash=hash
Hash string request, hash is needed to generate encrypted password. Command returns <html>
hash </html>.
login=<plain | crypted>:u=<user name>:p=<heslo>
Login to the device. By typing login=plain you choose to login with unencrypted password.
For encrypted password login use login=crypted. Next parameters are login user name and
password.
Command return values are:
<html>555 FORBIDDEN</html> - You are not logged in or bad command.
<html>100 HELLO</html> - Successful login.
<html>553 INVALID LOGIN</html> - Bad user name / password.
<html>554 ALREADY LOGGED IN</html> - You are trying to log in although you are already
logged in.
quit=quit
Logout. Return value is <html>110 BYE</html>.
port=<list | xxxx>
Parameter list will show current port status in format: <html> port1 port2 port3 port4 </html>,
where port1 to port4 represent values 0 for OFF and 1 for ON status of the output.
Parameter xxxx is a string for changing status of outputs. Instead the x character insert 0,1,u or
i like in case of setting the outputs via Telnet interface.
All commands can be shortened to its first character. Possible short hands are stated in bold.
Example: command port=list can be shortened to p=l.