63 lines
1.1 KiB
Markdown
63 lines
1.1 KiB
Markdown
# ePowerSwitch EPICS StreamDevice
|
|
|
|
An EPICS driver based on StreamDevice allowing to control remotely both ePowerSwitch 4 IEC and 8M+
|
|
|
|
# How to use
|
|
|
|
For a device with 4 outlets
|
|
```bash
|
|
$ startioc.sh 4
|
|
```
|
|
|
|
For a device with 8 outlets
|
|
```bash
|
|
$ startioc.sh 8
|
|
```
|
|
|
|
# Documentation
|
|
|
|
## Setters
|
|
|
|
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)
|
|
```
|
|
|
|
By default, it should be called
|
|
```
|
|
ePowerSwitch_set_outlet_0
|
|
ePowerSwitch_set_outlet_1
|
|
ePowerSwitch_set_outlet_2
|
|
ePowerSwitch_set_outlet_3
|
|
```
|
|
|
|
Furthermore, a record exposes the number of sockets of this device:
|
|
It **should not** be overwritten
|
|
|
|
```
|
|
$(DEVICE)_config_$(CONFIG_PARAMETER_NAME)
|
|
```
|
|
|
|
By default, it should be called
|
|
```
|
|
ePowerSwitch_config_maxOutlet
|
|
```
|
|
|
|
# Test
|
|
|
|
TODO _Should I ship with my java dummy server ?_ |