I also tried (without success unfortunately) adding a docker-compose.yaml file that defines the /dev/ttyACM0
device explicitely:
Still, it does not work - any more ideas ???
version: "2.1"
services:
hello:
build: .
restart: always
privileged: true
network_mode: host
devices:
- "/dev/ttyACM0:/dev/ttyACM0"
cap_add:
- SYS_RAWIO
This is what gets spit out after the serialport Port Creation (see below).
On Tinker-Debian, none of this nonsense-log is happening. Instead the serialport can read the port correctly.
Here is the log on the balenaOS: (it should not happen) :
[Logs] [6/11/2022, 13:35:43] [hello] [SUCCESS]: /dev/ttyACM0: PORT OPENED
[Logs] [6/11/2022, 13:35:43] [hello] 0
[Logs] [6/11/2022, 13:35:47] [hello] 0OK
[Logs] [6/11/2022, 13:35:47] [hello]
[Logs] [6/11/2022, 13:35:47] [hello] 0OK
[Logs] [6/11/2022, 13:35:47] [hello] OK
[Logs] [6/11/2022, 13:35:47] [hello]
[Logs] [6/11/2022, 13:35:47] [hello] 0OK
[Logs] [6/11/2022, 13:35:47] [hello] OK
[Logs] [6/11/2022, 13:35:47] [hello] E
[Logs] [6/11/2022, 13:35:48] [hello] 0OK
[Logs] [6/11/2022, 13:35:48] [hello] OK
[Logs] [6/11/2022, 13:35:48] [hello] E1
[Logs] [6/11/2022, 13:35:48] [hello] 0OK
[Logs] [6/11/2022, 13:35:48] [hello] OK
[Logs] [6/11/2022, 13:35:48] [hello] E1
[Logs] [6/11/2022, 13:35:48] [hello] 0OK
[Logs] [6/11/2022, 13:35:48] [hello] OK
[Logs] [6/11/2022, 13:35:48] [hello] E1 E
[Logs] [6/11/2022, 13:35:48] [hello] 0OK
[Logs] [6/11/2022, 13:35:48] [hello] OK
[Logs] [6/11/2022, 13:35:48] [hello] E1 E0
[Logs] [6/11/2022, 13:35:51] [hello] 0OK
[Logs] [6/11/2022, 13:35:51] [hello] OK
[Logs] [6/11/2022, 13:35:51] [hello] E1 E0OK
[Logs] [6/11/2022, 13:35:51] [hello]
[Logs] [6/11/2022, 13:35:51] [hello] 0OK
[Logs] [6/11/2022, 13:35:51] [hello] OK
[Logs] [6/11/2022, 13:35:51] [hello] E1 E0OK
[Logs] [6/11/2022, 13:35:51] [hello] OK
[Logs] [6/11/2022, 13:35:51] [hello] 0OK
[Logs] [6/11/2022, 13:35:51] [hello]
[Logs] [6/11/2022, 13:35:51] [hello] OK
[Logs] [6/11/2022, 13:35:51] [hello] E1 E0OK
[Logs] [6/11/2022, 13:35:51] [hello] OK
[Logs] [6/11/2022, 13:35:51] [hello] E
[Logs] [6/11/2022, 13:35:52] [hello] 0OK
[Logs] [6/11/2022, 13:35:52] [hello] OK
[Logs] [6/11/2022, 13:35:52] [hello] E1 E0OK
[Logs] [6/11/2022, 13:35:52] [hello] OK
[Logs] [6/11/2022, 13:35:52] [hello] E1
[Logs] [6/11/2022, 13:35:52] [hello] 0OK
[Logs] [6/11/2022, 13:35:52] [hello] OK
[Logs] [6/11/2022, 13:35:52] [hello] E1 E0OK
[Logs] [6/11/2022, 13:35:52] [hello] OK
[Logs] [6/11/2022, 13:35:52] [hello] E1
[Logs] [6/11/2022, 13:35:52] [hello] 0OK
[Logs] [6/11/2022, 13:35:52] [hello] OK
[Logs] [6/11/2022, 13:35:52] [hello] E1 E0OK
[Logs] [6/11/2022, 13:35:52] [hello] OK
[Logs] [6/11/2022, 13:35:52] [hello] E1 E
[Logs] [6/11/2022, 13:35:52] [hello] 0OK
[Logs] [6/11/2022, 13:35:52] [hello] E1 E0OK
[Logs] [6/11/2022, 13:35:52] [hello] OK
[Logs] [6/11/2022, 13:35:52] [hello] OK
[Logs] [6/11/2022, 13:35:52] [hello] E1 E0