diff --git a/servapps/mbusd/cosmos-compose.json b/servapps/mbusd/cosmos-compose.json index 47760327..f3a9e8ad 100644 --- a/servapps/mbusd/cosmos-compose.json +++ b/servapps/mbusd/cosmos-compose.json @@ -1,7 +1,19 @@ { "cosmos-installer": { - "form": [ - { + "form": [ + { + "name": "baudrate", + "label": "Baudrate", + "initialValue": "/dev/ttyACM2", + "type": "select", + "options": [ + ["/dev/ttyACM0", "/dev/ttyACM0 Serialport 0 (Coprocessor)"], + ["/dev/ttyACM1", "/dev/ttyACM1 Serialport 1 (KNX, RS485 or RS232)"], + ["/dev/ttyACM2", "/dev/ttyACM2 Serialport 2 (RS485 or RS232)"], + ["/dev/ttyACM3", "/dev/ttyACM3 Serialport 3 (RS485 or RS232)"] + ] + }, + { "name": "baudrate", "label": "Baudrate", "initialValue": "9600", @@ -58,7 +70,7 @@ }, "entrypoint": "/usr/bin/mbusd -S -d -L - -p /dev/ttyS0 -s {Context.baudrate} -m {Context.mode}", "devices": [ - "/dev/ttyACM0:/dev/ttyS0:rwm" + "{Context.serialPort}:/dev/ttyS0:rwm" ], "volumes": [ {