background image

One example in Perl

on how to use those commands can be found at the demo CD in Unix\switchbox902.pl.

The outputs are there changed in sequence just to demonstrate it.
The code is meant to be changed by the user for other purposes.

The same can of course be done in other programming languages.
You have to change to current IP address for the box in the file switchbox902.pl to make the example work.
It is also possible to run the script in Windows environment by using, for example, ActivePerl.
On the CD there are also an example in Visual Basic.

10. Default settings.

IP address:

10.195.70.218

Port, http:

80

Port, telnet:

23

Title at web page:

No title.

Authorization:

Basic.

Lock time:

0

Name at buttons:

1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16

Turn on delay:

0/0,2/0,4/0,6/0,8/1,0/1,2/1,4/1,6/1,8/2,0/2,2/2,4/2,6/2,8/3,0s

Reset delay:

10s

Username/Password.

admin:

root/root_pwd

Change this to prevent unauthorized use.

user1-8:

1/2/3/4/5/6/7/8

No Usernames/Passwords.

Access rights:

user1-8:

No access rights.

unauthorized:

Full rights on all outputs.

Summary of Contents for IP-SwitchBox902

Page 1: ...he outputs On the reset page reset htm there are in addition buttons to make a temporary switching off for a specified time This time can be configured for each output At power on the outputs are swit...

Page 2: ...he ON or OFF button a request for this is sent to the box Then the button turns gray until the box has confirmed the change When the confirmation arrives the button indicates current setting again In...

Page 3: ...s controlled by IP SwitchBox 902 and is hence not dependent of any delays on the internet The time is configured at the configuration page switches htm These changes can only be done after you have lo...

Page 4: ...sly with this username This is the small Telnet client for the web browser At the page RS232 htm there are a small Telnet client It is a Java applet that starts when you load the page In this way you...

Page 5: ...Without title the username will not be showed You can configure a title with a blank only to get the username only at the top the pages RARP BOOTP By setting the IP address to 0 0 0 0 the IP address i...

Page 6: ...ers With up to 7 characters the layout of the page will be unchanged Turn on delay is used to delay switch on of the outputs for up to 10 minutes after power failure This is to activate the outputs in...

Page 7: ...and passwords for all 8 users and for admin and telnet The characters A Z a z and 0 9 may be used By leaving it blank at one Login the number of users are reduced by one By leaving it blank at Passwo...

Page 8: ...sent position is showed with slightly grayed ON OFF buttons The outputs can not be changed r w read write Present position is showed with normal ON OFF buttons The outputs can be changed 6 The RS232 p...

Page 9: ...parity one stop bit no handshake Connection to a PC is done with a straight cable that is with pin 1 to pin 1 2 to 2 etc The control commands are Switch on output x ONxx example ON01 Switch off outpu...

Page 10: ...tc S1 0 2 Specify delay for output 1 at power on etc A wwrrnnnnr Specify the access rights for up to 8 users those not logged in ninth user w read and write rights r read rights n no rights Z Prints t...

Page 11: ...oups it is easyer to read 4031 0000 FFFF 100F 1234 0 Control To control the box a http request for k1aaaabbbbccccdddd is sent Where a b c d are the parameters aaaa Bit mask for switch on Four bytes of...

Page 12: ...ble to run the script in Windows environment by using for example ActivePerl On the CD there are also an example in Visual Basic 10 Default settings IP address 10 195 70 218 Port http 80 Port telnet 2...

Page 13: ...same connector The difference between in and outgoing 48V is that the box gets its power supply from the in going 48V It is sufficient if 48V is available on one of the ingoing 48V connections to make...

Page 14: ...e the setup menu by pushing q like quit to control the box in normal way b Connect IP SwitchBox902 to the network The supplied blue cable is a straight cable that is used for connection to hubs the mo...

Reviews: