adding user guide, changing exemple, and adding comment over http
This commit is contained in:
@@ -20,22 +20,7 @@ $ startioc.sh 8
|
||||
|
||||
The stream device exposes 4 or 8 individual setter records.
|
||||
```
|
||||
$(DEVICE)_set_$(PARAMETER_NAME)_$(PARAMETER_ID)
|
||||
```
|
||||
|
||||
By default, it should be called
|
||||
```
|
||||
ePowerSwitch_get_outlet_0
|
||||
ePowerSwitch_get_outlet_1
|
||||
ePowerSwitch_get_outlet_2
|
||||
ePowerSwitch_get_outlet_3
|
||||
```
|
||||
|
||||
## Getters
|
||||
|
||||
The stream device exposes 4 or 8 individual getter records:
|
||||
```
|
||||
$(DEVICE)_get_$(PARAMETER_NAME)_$(PARAMETER_ID)
|
||||
$(DEVICE_NAME)_set_outlet_n
|
||||
```
|
||||
|
||||
By default, it should be called
|
||||
@@ -46,11 +31,26 @@ ePowerSwitch_set_outlet_2
|
||||
ePowerSwitch_set_outlet_3
|
||||
```
|
||||
|
||||
## Getters
|
||||
|
||||
The stream device exposes 4 or 8 individual getter records:
|
||||
```
|
||||
$(DEVICE_NAME)_get_outlet_n
|
||||
```
|
||||
|
||||
By default, it should be called
|
||||
```
|
||||
ePowerSwitch_get_outlet_0
|
||||
ePowerSwitch_get_outlet_1
|
||||
ePowerSwitch_get_outlet_2
|
||||
ePowerSwitch_get_outlet_3
|
||||
```
|
||||
|
||||
Furthermore, a record exposes the number of sockets of this device:
|
||||
It **should not** be overwritten
|
||||
|
||||
```
|
||||
$(DEVICE)_config_$(CONFIG_PARAMETER_NAME)
|
||||
$(DEVICE_NAME)_config_$(CONFIG_PARAMETER_NAME)
|
||||
```
|
||||
|
||||
By default, it should be called
|
||||
@@ -60,4 +60,10 @@ ePowerSwitch_config_maxOutlet
|
||||
|
||||
# Test
|
||||
|
||||
TODO _Should I ship with my java dummy server ?_
|
||||
TODO _Should I ship with my java dummy server ?_
|
||||
|
||||
# User guide
|
||||
|
||||
- [ePowerSwitch 4 IEC](https://www.kvm-concepts.de/wp-content/uploads/neol_epowerswitch_4iec_manual.pdf)
|
||||
|
||||
- [ePowerSwitch 8M+](https://www.neol.com/fileadmin/downloads/en/ePowerSwitch-8M-Plus-EN.pdf)
|
||||
@@ -2,6 +2,7 @@ require stream
|
||||
|
||||
epicsEnvSet("ASYN_PORT","myDriverPort")
|
||||
|
||||
# I use HTTP to use TCP and disconnect after, but no disconnection is done, so I disconnect manually.
|
||||
drvAsynIPPortConfigure("$(ASYN_PORT)","127.0.0.1:55555 http", 0, 0, 0)
|
||||
|
||||
dbLoadTemplate("template$(EPOWERSWITCH_SOCKET_NUMBER).substitutions", "PORT=$(ASYN_PORT)")
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
if [ $1 -eq 4 -o $1 -eq 8 ]
|
||||
then
|
||||
export DEVICE_NAME="ePower"
|
||||
export DEVICE_NAME="ePowerSwitch"
|
||||
export EPOWERSWITCH_SOCKET_NUMBER=$1
|
||||
echo "Starting ePowerSwitch drivers with $1 outlets"
|
||||
iocsh st.cmd
|
||||
|
||||
Reference in New Issue
Block a user