Software for Attensys MODBUS RS485 based gateway.
Once started it emit JSON events with sensor data on port 2000.
You have to include the path for the USB interface as a docker volume and use the environment variable FTDI_UART_PATH.
docker run --rm -it --privileged -p 2000:2000 -e FTDI_UART_PATH=/dev/tty.usbserial-FTV7W913 -v /dev/tty.usbserial-FTV7W913:/dev/tty.usbserial-FTV7W913 attensys/gateway-wired:latest
docker run --rm -it --privileged -p 2000:2000 -e FTDI_UART_PATH=/dev/ttyUSB0 -e SLAVE_COUNT=1 -e REGISTER_COUNT=7 -e REGISTER_RANGE_START=1 -e REGISTER_RANGE_START=7 -v /dev/ttyUSB0:/dev/ttyUSB0 attensys/gateway-wired:armfh
Alter docker-compose.yml to match your system
docker-compose up --build
mkdir build
make
The binary is in build/AttensysGatewayWired
Run the Attensys wired gateway software providing the FTDI_UART_PATH environment variable pointing to your device.
FTDI_UART_PATH=/dev/cu.usbserial-FTV7W913 ./build/AttensysGatewayWired
mkdir build
make test
Content type
Image
Digest
sha256:a71a801bd…
Size
51.5 MB
Last updated
about 4 years ago
docker pull attensys/gateway-wired:auto-assignment