background image

6

(C) Copyright 2010-2014 SKD System AB

Command Interface

To access command interface start TCP port 60000. This can be done by starting Serial Terminal application in PC, by starting
communications script or from application program in the control system.

Example of communication with the product from PC via TCP by using Python script:

import sys,os.socket
TCP_PORT = 60000; BUFFER_SIZE = 5000; TCP_IP = "192.168.1.222";
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((TCP_IP, TCP_PORT))
s.send("acsw:1-1;")
s.close()

Example of command session:

Serial Interface Commands

Common

nodename; 

Read node name

nodename:[name]; 

Set node name. Up to 12 alphanumerics Example: 

nodename:First; 

Set node name to First

who; 

Read node id and name

help; 

Help, lists commands and command groups

productdata; 

Read product data.

states; 

Read device states

defaults; 

Read default settings. Default settings are parameters reinstated after Restore command.

Summary of Contents for Rhone2

Page 1: ...control HTTP TCP USB control Android Wieland mini male connector connection to mains Wieland mini female connectors connection of electric equipment WiFi control from Android device via LAN Software controlled fuse in addition to physical fuse Dimensions L220 W100 H30mm Applications Power control on workplace Switching of power to power distribution lists and electrical equipment on workplace One ...

Page 2: ...loor or after other types of mechanical distress Installation Mounting Mount Rhone2 into cabinet backside of desk underneath desk wall or other appropriate place Use velcro closing alternatively metal fixtures Velcro closing is included in delivery Connect power cables Connect product to the mains with cable that has Wieland mini GST15i3 female connector on the product end Connect product to equip...

Page 3: ...be accessed directly from PC application from app or via scripted interfaceThere are also many examples of script interface There are many simple examples of how to communicate over serial interface using scripting language Python Indirect WiFi access from laptop PC or Android For access from Android use app skdRhone2 which can be downloaded from Google play Configure LAN from app Configure Rhone2...

Page 4: ...ware controlled fuse Automatic fuse is by default enabled Default current limit 16Ampere Default latency 3sec AutoFuse settings can be changed via Web TCP or from app If current through AC switch exceeds preset threshold AutoFuse will turn off AC switch and get into disabled state If disabled enable AutoFuse function to supervise current level NOTE AutoFuse does not block the AC switch function It...

Page 5: ... will connect automatically via WiFi Use of sensors Activate sensor and set sensor timers via web app or by command via LAN If activated when sensor detects presence it turns on AC switch AC switch is turned off automatically after preset timer period of no presence NOTE At activation of sensor control manual control is deactivated NOTE When power to the unit is turned on sensor will calibrate its...

Page 6: ...TCP_PORT 60000 BUFFER_SIZE 5000 TCP_IP 192 168 1 222 s socket socket socket AF_INET socket SOCK_STREAM s connect TCP_IP TCP_PORT s send acsw 1 1 s close Example of command session Serial Interface Commands Common nodename Read node name nodename name Set node name Up to 12 alphanumerics Example nodename First Set node name to First who Read node id and name help Help lists commands and command gro...

Page 7: ... reset the node to activate the change Example landhcp 1 Activate DHCP client AC switch h acsw Help AC switch commands acsw Read AC outlet states acsw id state Set AC outlet outport id 1 to off 0 or on 1 Example acsw 1 1 Turn on AC1 acsw 1 0 E meter h emeter Help E meter commands emeter Read E meter status and measurement results emeter id activate Start Stop KWH meter Example emeter 1 1 Start KWH...

Page 8: ...ontrols AC1 If Orange AC1 is on activated by Sensor1 LED2 If off AC2 is disconnected If Green AC2 is turned on activated by SW2 command or via Android If Red Sensor2 is activated and controls AC2 If Orange AC2 is on activated by Sensor2 Fast blinking Green When holding for SW2 for 15 seconds to initiate restoring factory defaults Indirect Connection Over WiFi Connection between skdRhone2 app in An...

Page 9: ...s 4sec Handling The fuse is a resettable fuse PTC Fuse increases its internal resistance at overcurrent on internal DC source The fuse resumes normal operation after fault is removed unless device was exposed to conditions outside of its normal operating area AC switch Function Switching of AC ports Connectors Wieland mini connectors 3pins GST15i3 white Male connector for connection to mains Femal...

Page 10: ...le Function AC connector for connection of user equipment Type Wieland Gesis mini GST15i3 female Characteristics Rated 16A color white Indirect WiFi control Function Communication via WiFi from Android device indirectly via LAN Characteristics Communication between the Android app and the product over WiFi starts automatically when app is activated AutoFuse Function Software controlled fuse Comple...

Page 11: ...vate Sensors Command acsw does not switch This is normal situation when Sensor1 and or Sensor2 are activated If Sensor1 and of Sensor2 are activated command acsw is deactivated To enable command acsw deactivate Sensor function by command psensor Example psensor 1 0 deactivates Sensor1 psensor 2 0 deactivates Sensor2 Sensor not working Check that sensor is activated Sensor is activated via Android ...

Page 12: ...aults Default IP 192 168 1 222 If IP was set via DHCP client check DHCP server for ip address MAC address of the node can be found on the product label Alternatively check IP via app LAN control will not work if two nodes in the LAN have the same IP address If firmware was upgraded verify that the last three digits in MAC address of the product have been reasigned to correspond to the last three M...

Reviews: