Network Technologies Incorporated PWR-RMT-RBT2-515R-LC Manual Download Page 10

  
Use a program of your choice like Java, PHP or Curl to make a packet request via HTTP protocol. 
This request can also be done via modern web browser by typing in the target URL and entering 
credentials in the pop up dialog.   

Example

 URL: 192.168.3.1/control.cgi?outlet=1&command=3  

 
 

Use HTTP Script to Control Outlet and Get Status 

 

Control Outlet: 

 

Packet Request: 

 

"GET" <target> "HTTP/1.1"CRLF  
"Host:" <host ip>CRLF 
"Keep-Alive: 300"CRLF 
"Connection: keep-alive"CRLF 
"Authorization: Basic" <auth>CRLFCRLF 
             ;auth:encoded account(admin:1234) with base-64  

Request Description: 

 

Target: "control.cgi?<action>"  

Action: outlet=<0/1/2> 
                         0 means outlet all,  
                         1 means outlet 1,   
                         2 means outlet 2  
            command=<0/1/2/3/4/5> 
                                0 means power off,  
                                1 means power on,  
                                2 means power switch(i.e. from On 

 Off, or from Off 

 On) 

3 means power reset,  
4 means UIS on,  
5 means UIS off (/4/5 MNS only)  

Example:

 control.cgi?outlet=1&command=3(Outcome: outlet 1 reset) 

Packet Response: 

 

XML format: 

 

"<?xml version='1.0'?>" "<request>" 
"<outlet1_status>”{OUTLET1_STATUS}”</outlet1_status>” 
"<outlet2_status>”{OUTLET2_STATUS}”</outlet2_status>” 
"<uis_status>”{UIS_STATUS}”</uis_status>” "</request>"  

XML Description: 

 

OUTLET1_STATUS / OUTLET2_STATUS /  UIS_STATUS: 0 means off, 1 means on  

Summary of Contents for PWR-RMT-RBT2-515R-LC

Page 1: ...ting up your Device pg 5 2 1 Connecting the Device to your network pg 5 Chapter 3 Software and Remote Setup pg 6 3 1 Accessing the UI pg 6 3 2 Web User Interface pg 6 3 3 Accessing the Device Remotely...

Page 2: ...ts the internet is offline it will automatically reset the router and then afterwards test the network to see if everything is back online This feature saves the trouble of 1 Users having to manually...

Page 3: ...1 2 Application Diagrams and Working Examples...

Page 4: ...et power On Off LED button Power Indicator Orange LED Reset to Factory Default Long press all 3 LED buttons Internet Indicator Green LED Web Server CPU 32 bit RISC CPU Supported Browsers IE Java Suppo...

Page 5: ...n off Chapter 2 Setting up your Device 2 1 Connecting the PWR RMT RBT2 515R LC to your network Step 1 Connect the power cord to the PWR RMT RBT2 515R LC and then to a wall outlet or power strip Step 2...

Page 6: ...ogram From within the program you can get the current IP for the device if DHCP is enabled Click on the Launch Web User Interface button to access the UI To configure a static IP for the device recomm...

Page 7: ...d to allow less secure apps https www google com settings security lesssecureapps 3 3 2 Google Hangouts Setup on UI Log into the UI interface and click on the Google Talk button Set the status to Onli...

Page 8: ...r router and port forward port 80 or any other port to the IP assigned to the PWR RMT RBT2 515R LC Next register for a free DDNS provider for your dynamic WAN IP This will ensure that when your IP cha...

Page 9: ...settings 3 Should I use a static local IP vs a DHCP assigned IP for the device Answer We recommend using a static IP The reason why is DHCP will recycle itself after a couple of hours or days dependin...

Page 10: ...CRLFCRLF auth encoded account admin 1234 with base 64 Request Description Target control cgi action Action outlet 0 1 2 0 means outlet all 1 means outlet 1 2 means outlet 2 command 0 1 2 3 4 5 0 mean...

Page 11: ...L S2_L S3_L S4_L S5_L site_lost UIS_fun U_S UIS_fun g_target1 G_T1 g_target1 g_target2 G_T2 g_target2 request XML Description SITE n n number string Site n IP Address C n _S n number digit unit millis...

Reviews: