@thomas-braun said in Smartmeter Elster AS1440:
@petlaw sagte in Smartmeter Elster AS1440:
Setz den user 'peter' in die Gruppe 'adm' rein, dann kann der auch logs lesen und du brauchst da keine root-Rechte.
Schalt den Desktop/X-Server aus.
Hit:7 https://repos.influxdata.com/debian stable InRelease
Da ist eine Doublette, vermutich hast du zwei .list-Files zu influx in /etc/apt/sources.list.d/ liegen. Lösche die mit dem Eintrag 'stable'.
Zu deinem eigentlichen Problem mit dem SerialPort fällt mir aber nix ein.
Erledigt.
Ich habe mal mit strace gecheckt, ob der Adapter überhaupt auf die Serielle Schnittstelle zugreift, da gibt es aber zu keinem Zeitpunkt einen open call auf /dev/ttyUSB0 oder irgendwas in /dev:
peter@SMARTY:~$ sudo ps -ef | grep smart
Debian-+ 1012 892 0 02:52 tty1 00:00:00 /usr/libexec/gsd-smartcard
iobroker 10177 10102 0 11:46 ? 00:00:01 io.smartmeter.0
peter 13490 5853 0 11:56 pts/1 00:00:00 grep smart
peter@SMARTY:~$ sudo strace -p 10177
strace: Process 10177 attached
epoll_wait(14, [], 1024, 41) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 999) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 999) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 999) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 999) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 999) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 51) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 3) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 18) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 195) = 0
write(23, "*2\r\n$3\r\nget\r\n$36\r\nio.system.adap"..., 56) = 56
write(23, "*2\r\n$3\r\nget\r\n$40\r\nio.system.adap"..., 60) = 60
futex(0x52740a8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
openat(AT_FDCWD, "/proc/self/stat", O_RDONLY) = 28
read(28, "10177 (io.smartmeter.0) R 10102 "..., 1023) = 309
close(28) = 0
write(23, "*2\r\n$3\r\nget\r\n$37\r\nio.system.adap"..., 57) = 57
write(23, "*2\r\n$3\r\nget\r\n$43\r\nio.system.adap"..., 63) = 63
write(23, "*2\r\n$3\r\nget\r\n$42\r\nio.system.adap"..., 62) = 62
write(23, "*2\r\n$3\r\nget\r\n$43\r\nio.system.adap"..., 63) = 63
write(23, "*2\r\n$3\r\nget\r\n$37\r\nio.system.adap"..., 57) = 57
write(23, "*2\r\n$3\r\nget\r\n$41\r\nio.system.adap"..., 61) = 61
write(23, "*2\r\n$3\r\nget\r\n$42\r\nio.system.adap"..., 62) = 62
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}, {EPOLLIN, {u32=17, u64=17}}], 1024, 0) = 2
read(23, "$118\r\n{\"val\":true,\"ack\":true,\"ts"..., 65536) = 1029
write(23, "*4\r\n$5\r\nsetex\r\n$36\r\nio.system.ad"..., 178) = 178
write(23, "*4\r\n$5\r\nsetex\r\n$40\r\nio.system.ad"..., 182) = 182
write(23, "*3\r\n$3\r\nset\r\n$37\r\nio.system.adap"..., 169) = 169
write(23, "*3\r\n$3\r\nset\r\n$43\r\nio.system.adap"..., 176) = 176
write(23, "*3\r\n$3\r\nset\r\n$42\r\nio.system.adap"..., 175) = 175
write(23, "*3\r\n$3\r\nset\r\n$43\r\nio.system.adap"..., 172) = 172
write(23, "*3\r\n$3\r\nset\r\n$37\r\nio.system.adap"..., 168) = 168
write(23, "*3\r\n$3\r\nset\r\n$41\r\nio.system.adap"..., 170) = 170
write(23, "*3\r\n$3\r\nset\r\n$42\r\nio.system.adap"..., 172) = 172
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
futex(0x52740a8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}, {EPOLLIN, {u32=17, u64=17}}], 1024, 0) = 2
read(23, "+OK\r\n+OK\r\n+OK\r\n+OK\r\n", 65536) = 20
write(23, "*3\r\n$7\r\npublish\r\n$36\r\nio.system."..., 172) = 172
write(23, "*3\r\n$7\r\npublish\r\n$40\r\nio.system."..., 176) = 176
write(23, "*3\r\n$7\r\npublish\r\n$37\r\nio.system."..., 173) = 173
write(23, "*3\r\n$7\r\npublish\r\n$43\r\nio.system."..., 180) = 180
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
futex(0x52740ac, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}, {EPOLLIN, {u32=17, u64=17}}], 1024, 0) = 2
read(23, "+OK\r\n+OK\r\n+OK\r\n+OK\r\n+OK\r\n", 65536) = 25
write(23, "*3\r\n$7\r\npublish\r\n$42\r\nio.system."..., 179) = 179
write(23, "*3\r\n$7\r\npublish\r\n$43\r\nio.system."..., 176) = 176
futex(0x6ca1124, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x6ca10d0, FUTEX_WAKE_PRIVATE, 1) = 1
write(23, "*3\r\n$7\r\npublish\r\n$37\r\nio.system."..., 172) = 172
write(23, "*3\r\n$7\r\npublish\r\n$41\r\nio.system."..., 174) = 174
write(23, "*3\r\n$7\r\npublish\r\n$42\r\nio.system."..., 176) = 176
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
futex(0x52740ac, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}, {EPOLLIN, {u32=17, u64=17}}], 1024, 0) = 2
read(23, ":0\r\n:0\r\n:0\r\n:0\r\n:0\r\n:0\r\n:0\r\n:0\r\n", 65536) = 32
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
futex(0x52740ac, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [{EPOLLIN, {u32=17, u64=17}}], 1024, 82) = 1
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
mprotect(0x7043000, 245760, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0x7043000, 245760, PROT_READ|PROT_EXEC) = 0
futex(0x52740ac, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_wait(14, [{EPOLLIN, {u32=17, u64=17}}], 1024, 0) = 1
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
write(23, "*2\r\n$3\r\nget\r\n$34\r\nio.system.adap"..., 54) = 54
write(23, "*2\r\n$3\r\nget\r\n$38\r\nio.system.adap"..., 58) = 58
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}], 1024, 0) = 1
read(23, ":0\r\n$104\r\n{\"val\":0.13,\"ack\":true"..., 65536) = 116
write(23, "*3\r\n$3\r\nset\r\n$34\r\nio.system.adap"..., 165) = 165
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}], 1024, 0) = 1
read(23, "$104\r\n{\"val\":1.79,\"ack\":true,\"ts"..., 65536) = 112
write(23, "*3\r\n$3\r\nset\r\n$38\r\nio.system.adap"..., 170) = 170
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}], 1024, 0) = 1
read(23, "+OK\r\n", 65536) = 5
write(23, "*3\r\n$7\r\npublish\r\n$34\r\nio.system."..., 169) = 169
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}], 1024, 0) = 1
read(23, "+OK\r\n", 65536) = 5
write(23, "*3\r\n$7\r\npublish\r\n$38\r\nio.system."..., 174) = 174
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}], 1024, 0) = 1
read(23, ":0\r\n", 65536) = 4
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}], 1024, 72) = 1
read(23, ":0\r\n", 65536) = 4
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 30) = 0
futex(0x52740a8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x52740a8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_wait(14, [{EPOLLIN, {u32=17, u64=17}}], 1024, 0) = 1
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
write(23, "*3\r\n$7\r\npublish\r\n$26\r\nlog.system"..., 198) = 198
write(23, "*3\r\n$7\r\npublish\r\n$27\r\nlog.system"..., 199) = 199
epoll_wait(14, [{EPOLLIN, {u32=17, u64=17}}, {EPOLLIN, {u32=23, u64=23}}], 1024, 0) = 2
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
epoll_ctl(14, EPOLL_CTL_ADD, 27, {EPOLLIN, {u32=4294967295, u64=4294967295}}) = 0
epoll_ctl(14, EPOLL_CTL_DEL, 27, 0x7ffe9b261044) = 0
ioctl(27, FIONBIO, [1]) = 0
futex(0x52740a8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x52740a8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x52740ac, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
read(23, ":1\r\n", 65536) = 4
write(23, "*3\r\n$7\r\npublish\r\n$26\r\nlog.system"..., 182) = 182
write(23, "*3\r\n$7\r\npublish\r\n$27\r\nlog.system"..., 183) = 183
epoll_wait(14, [{EPOLLIN, {u32=17, u64=17}}, {EPOLLIN, {u32=23, u64=23}}], 1024, 0) = 2
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
epoll_ctl(14, EPOLL_CTL_DEL, 27, 0x7ffe9b260dc4) = -1 ENOENT (No such file or di rectory)
futex(0x52740ac, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
read(23, ":1\r\n:1\r\n", 65536) = 8
write(23, "*3\r\n$7\r\npublish\r\n$26\r\nlog.system"..., 199) = 199
write(23, "*3\r\n$7\r\npublish\r\n$27\r\nlog.system"..., 200) = 200
epoll_ctl(14, EPOLL_CTL_ADD, 27, {EPOLLIN, {u32=27, u64=27}}) = 0
epoll_wait(14, [{EPOLLIN, {u32=17, u64=17}}, {EPOLLIN, {u32=23, u64=23}}], 1024, 0) = 2
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
read(23, ":1\r\n:1\r\n", 65536) = 8
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}], 1024, 610) = 1
read(23, ":1\r\n", 65536) = 4
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 568) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 999) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 999) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 999) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 999) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 999) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 249) = 0
write(23, "*2\r\n$3\r\nget\r\n$36\r\nio.system.adap"..., 56) = 56
write(23, "*2\r\n$3\r\nget\r\n$40\r\nio.system.adap"..., 60) = 60
futex(0x52740ac, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
openat(AT_FDCWD, "/proc/self/stat", O_RDONLY) = 29
read(29, "10177 (io.smartmeter.0) R 10102 "..., 1023) = 309
close(29) = 0
write(23, "*2\r\n$3\r\nget\r\n$37\r\nio.system.adap"..., 57) = 57
write(23, "*2\r\n$3\r\nget\r\n$43\r\nio.system.adap"..., 63) = 63
write(23, "*2\r\n$3\r\nget\r\n$42\r\nio.system.adap"..., 62) = 62
write(23, "*2\r\n$3\r\nget\r\n$43\r\nio.system.adap"..., 63) = 63
write(23, "*2\r\n$3\r\nget\r\n$37\r\nio.system.adap"..., 57) = 57
write(23, "*2\r\n$3\r\nget\r\n$41\r\nio.system.adap"..., 61) = 61
write(23, "*2\r\n$3\r\nget\r\n$42\r\nio.system.adap"..., 62) = 62
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}, {EPOLLIN, {u32=17, u64=17}}], 1024, 0) = 2
read(23, "$118\r\n{\"val\":true,\"ack\":true,\"ts"..., 65536) = 364
write(23, "*4\r\n$5\r\nsetex\r\n$36\r\nio.system.ad"..., 178) = 178
write(23, "*4\r\n$5\r\nsetex\r\n$40\r\nio.system.ad"..., 182) = 182
write(23, "*3\r\n$3\r\nset\r\n$37\r\nio.system.adap"..., 170) = 170
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
futex(0x52740ac, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}, {EPOLLIN, {u32=17, u64=17}}], 1024, 0) = 2
read(23, "$105\r\n{\"val\":26.75,\"ack\":true,\"t"..., 65536) = 665
write(23, "*3\r\n$3\r\nset\r\n$43\r\nio.system.adap"..., 176) = 176
write(23, "*3\r\n$3\r\nset\r\n$42\r\nio.system.adap"..., 174) = 174
write(23, "*3\r\n$3\r\nset\r\n$43\r\nio.system.adap"..., 172) = 172
write(23, "*3\r\n$3\r\nset\r\n$37\r\nio.system.adap"..., 168) = 168
write(23, "*3\r\n$3\r\nset\r\n$41\r\nio.system.adap"..., 170) = 170
write(23, "*3\r\n$3\r\nset\r\n$42\r\nio.system.adap"..., 172) = 172
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
futex(0x52740a8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}, {EPOLLIN, {u32=17, u64=17}}], 1024, 0) = 2
read(23, "+OK\r\n+OK\r\n", 65536) = 10
write(23, "*3\r\n$7\r\npublish\r\n$36\r\nio.system."..., 172) = 172
write(23, "*3\r\n$7\r\npublish\r\n$40\r\nio.system."..., 176) = 176
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
futex(0x52740a8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}, {EPOLLIN, {u32=17, u64=17}}], 1024, 0) = 2
read(23, "+OK\r\n", 65536) = 5
write(23, "*3\r\n$7\r\npublish\r\n$37\r\nio.system."..., 174) = 174
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
futex(0x52740a8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}, {EPOLLIN, {u32=17, u64=17}}], 1024, 0) = 2
read(23, "+OK\r\n", 65536) = 5
write(23, "*3\r\n$7\r\npublish\r\n$43\r\nio.system."..., 180) = 180
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
futex(0x52740a8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}, {EPOLLIN, {u32=17, u64=17}}], 1024, 0) = 2
read(23, "+OK\r\n", 65536) = 5
write(23, "*3\r\n$7\r\npublish\r\n$42\r\nio.system."..., 178) = 178
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
write(23, "*2\r\n$3\r\nget\r\n$34\r\nio.system.adap"..., 54) = 54
write(23, "*2\r\n$3\r\nget\r\n$38\r\nio.system.adap"..., 58) = 58
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}], 1024, 0) = 1
read(23, "+OK\r\n+OK\r\n+OK\r\n+OK\r\n:0\r\n:0\r\n", 65536) = 28
write(23, "*3\r\n$7\r\npublish\r\n$43\r\nio.system."..., 176) = 176
write(23, "*3\r\n$7\r\npublish\r\n$37\r\nio.system."..., 172) = 172
write(23, "*3\r\n$7\r\npublish\r\n$41\r\nio.system."..., 174) = 174
write(23, "*3\r\n$7\r\npublish\r\n$42\r\nio.system."..., 176) = 176
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}], 1024, 0) = 1
read(23, ":0\r\n:0\r\n:0\r\n$103\r\n{\"val\":0.2,\"ac"..., 65536) = 247
write(23, "*3\r\n$3\r\nset\r\n$34\r\nio.system.adap"..., 165) = 165
write(23, "*3\r\n$3\r\nset\r\n$38\r\nio.system.adap"..., 170) = 170
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}], 1024, 0) = 1
read(23, ":0\r\n+OK\r\n", 65536) = 9
write(23, "*3\r\n$7\r\npublish\r\n$34\r\nio.system."..., 169) = 169
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}], 1024, 0) = 1
read(23, "+OK\r\n", 65536) = 5
write(23, "*3\r\n$7\r\npublish\r\n$38\r\nio.system."..., 174) = 174
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}], 1024, 0) = 1
read(23, ":0\r\n", 65536) = 4
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}], 1024, 729) = 1
read(23, ":0\r\n", 65536) = 4
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 687) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 999) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 999) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 999) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 999) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 226) = 0
write(23, "*2\r\n$3\r\nget\r\n$36\r\nio.system.adap"..., 56) = 56
write(23, "*2\r\n$3\r\nget\r\n$40\r\nio.system.adap"..., 60) = 60
futex(0x52740ac, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
openat(AT_FDCWD, "/proc/self/stat", O_RDONLY) = 29
read(29, "10177 (io.smartmeter.0) R 10102 "..., 1023) = 309
close(29) = 0
write(23, "*2\r\n$3\r\nget\r\n$37\r\nio.system.adap"..., 57) = 57
write(23, "*2\r\n$3\r\nget\r\n$43\r\nio.system.adap"..., 63) = 63
write(23, "*2\r\n$3\r\nget\r\n$42\r\nio.system.adap"..., 62) = 62
write(23, "*2\r\n$3\r\nget\r\n$43\r\nio.system.adap"..., 63) = 63
write(23, "*2\r\n$3\r\nget\r\n$37\r\nio.system.adap"..., 57) = 57
write(23, "*2\r\n$3\r\nget\r\n$41\r\nio.system.adap"..., 61) = 61
write(23, "*2\r\n$3\r\nget\r\n$42\r\nio.system.adap"..., 62) = 62
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}, {EPOLLIN, {u32=17, u64=17}}], 1024, 0) = 2
read(23, "$118\r\n{\"val\":true,\"ack\":true,\"ts"..., 65536) = 919
mprotect(0xac90e6c0000, 262144, PROT_READ|PROT_WRITE) = 0
mprotect(0x17dcb7700000, 262144, PROT_READ|PROT_WRITE) = 0
mprotect(0x3913740000, 262144, PROT_READ|PROT_WRITE) = 0
mprotect(0x4481bb00000, 262144, PROT_READ|PROT_WRITE) = 0
futex(0x6ca1124, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x6ca10d0, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x6ca1124, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x6ca10d0, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x6c60e80, FUTEX_WAIT_PRIVATE, 0, NULL) = -1 EAGAIN (Resource temporarily unavailable)
futex(0x6c60e08, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x6ca1124, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x6ca10d0, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x6ca1120, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x6ca10d0, FUTEX_WAKE_PRIVATE, 1) = 1
getpid() = 10177
write(23, "*4\r\n$5\r\nsetex\r\n$36\r\nio.system.ad"..., 178) = 178
write(23, "*4\r\n$5\r\nsetex\r\n$40\r\nio.system.ad"..., 182) = 182
write(23, "*3\r\n$3\r\nset\r\n$37\r\nio.system.adap"..., 169) = 169
write(23, "*3\r\n$3\r\nset\r\n$43\r\nio.system.adap"..., 176) = 176
write(23, "*3\r\n$3\r\nset\r\n$42\r\nio.system.adap"..., 175) = 175
write(23, "*3\r\n$3\r\nset\r\n$43\r\nio.system.adap"..., 172) = 172
write(23, "*3\r\n$3\r\nset\r\n$37\r\nio.system.adap"..., 168) = 168
write(23, "*3\r\n$3\r\nset\r\n$41\r\nio.system.adap"..., 170) = 170
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
futex(0x52740ac, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}, {EPOLLIN, {u32=17, u64=17}}], 1024, 0) = 2
read(23, "$102\r\n{\"val\":11,\"ack\":true,\"ts\":"..., 65536) = 125
write(23, "*3\r\n$3\r\nset\r\n$42\r\nio.system.adap"..., 172) = 172
write(23, "*3\r\n$7\r\npublish\r\n$36\r\nio.system."..., 172) = 172
write(23, "*3\r\n$7\r\npublish\r\n$40\r\nio.system."..., 176) = 176
write(23, "*3\r\n$7\r\npublish\r\n$37\r\nio.system."..., 173) = 173
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
futex(0x52740ac, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}, {EPOLLIN, {u32=17, u64=17}}], 1024, 0) = 2
read(23, "+OK\r\n+OK\r\n+OK\r\n", 65536) = 15
write(23, "*3\r\n$7\r\npublish\r\n$43\r\nio.system."..., 180) = 180
write(23, "*3\r\n$7\r\npublish\r\n$42\r\nio.system."..., 179) = 179
write(23, "*3\r\n$7\r\npublish\r\n$43\r\nio.system."..., 176) = 176
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
futex(0x52740ac, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}, {EPOLLIN, {u32=17, u64=17}}], 1024, 0) = 2
read(23, "+OK\r\n+OK\r\n+OK\r\n", 65536) = 15
write(23, "*3\r\n$7\r\npublish\r\n$37\r\nio.system."..., 172) = 172
write(23, "*3\r\n$7\r\npublish\r\n$41\r\nio.system."..., 174) = 174
write(23, "*3\r\n$7\r\npublish\r\n$42\r\nio.system."..., 176) = 176
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
futex(0x52740a8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}, {EPOLLIN, {u32=17, u64=17}}], 1024, 0) = 2
read(23, ":0\r\n:0\r\n:0\r\n:0\r\n:0\r\n:0\r\n:0\r\n:0\r\n", 65536) = 32
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
futex(0x52740a8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_wait(14, [{EPOLLIN, {u32=17, u64=17}}], 1024, 0) = 1
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
write(23, "*2\r\n$3\r\nget\r\n$34\r\nio.system.adap"..., 54) = 54
write(23, "*2\r\n$3\r\nget\r\n$38\r\nio.system.adap"..., 58) = 58
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}], 1024, 0) = 1
read(23, ":0\r\n$103\r\n{\"val\":0.2,\"ack\":true,"..., 65536) = 115
write(23, "*3\r\n$3\r\nset\r\n$34\r\nio.system.adap"..., 165) = 165
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}], 1024, 0) = 1
read(23, "$104\r\n{\"val\":1.85,\"ack\":true,\"ts"..., 65536) = 112
write(23, "*3\r\n$3\r\nset\r\n$38\r\nio.system.adap"..., 170) = 170
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}], 1024, 0) = 1
read(23, "+OK\r\n", 65536) = 5
write(23, "*3\r\n$7\r\npublish\r\n$34\r\nio.system."..., 169) = 169
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}], 1024, 0) = 1
read(23, "+OK\r\n", 65536) = 5
write(23, "*3\r\n$7\r\npublish\r\n$38\r\nio.system."..., 174) = 174
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}], 1024, 0) = 1
read(23, ":0\r\n", 65536) = 4
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}], 1024, 90) = 1
read(23, ":0\r\n", 65536) = 4
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 47) = 0
futex(0x52740a8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_ctl(14, EPOLL_CTL_DEL, 27, 0x7ffe9b264604) = 0
futex(0x52740a8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
mprotect(0x7043000, 245760, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0x7043000, 245760, PROT_READ|PROT_EXEC) = 0
epoll_wait(14, [{EPOLLIN, {u32=17, u64=17}}], 1024, 0) = 1
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
futex(0x52740ac, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
write(23, "*3\r\n$7\r\npublish\r\n$26\r\nlog.system"..., 192) = 192
write(23, "*3\r\n$7\r\npublish\r\n$27\r\nlog.system"..., 193) = 193
write(23, "*3\r\n$7\r\npublish\r\n$26\r\nlog.system"..., 234) = 234
write(23, "*3\r\n$7\r\npublish\r\n$27\r\nlog.system"..., 235) = 235
write(23, "*3\r\n$7\r\npublish\r\n$26\r\nlog.system"..., 226) = 226
write(23, "*3\r\n$7\r\npublish\r\n$27\r\nlog.system"..., 227) = 227
write(23, "*3\r\n$7\r\npublish\r\n$26\r\nlog.system"..., 234) = 234
write(23, "*3\r\n$7\r\npublish\r\n$27\r\nlog.system"..., 235) = 235
write(23, "*3\r\n$7\r\npublish\r\n$26\r\nlog.system"..., 199) = 199
write(23, "*3\r\n$7\r\npublish\r\n$27\r\nlog.system"..., 200) = 200
write(23, "*3\r\n$7\r\npublish\r\n$26\r\nlog.system"..., 183) = 183
write(23, "*3\r\n$7\r\npublish\r\n$27\r\nlog.system"..., 184) = 184
write(23, "*3\r\n$7\r\npublish\r\n$26\r\nlog.system"..., 191) = 191
write(23, "*3\r\n$7\r\npublish\r\n$27\r\nlog.system"..., 192) = 192
epoll_wait(14, [{EPOLLIN, {u32=17, u64=17}}, {EPOLLIN, {u32=23, u64=23}}], 1024, 0) = 2
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
futex(0x52740ac, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5274040, FUTEX_WAKE_PRIVATE, 1) = 1
read(23, ":1\r\n:1\r\n:1\r\n:1\r\n:1\r\n:1\r\n:1\r\n:1\r\n"..., 65536) = 52
epoll_wait(14, [{EPOLLIN, {u32=17, u64=17}}], 1024, 0) = 1
read(17, "\1\0\0\0\0\0\0\0", 1024) = 8
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [{EPOLLIN, {u32=23, u64=23}}], 1024, 642) = 1
read(23, ":1\r\n", 65536) = 4
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 599) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 999) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 999) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, [], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
epoll_wait(14, ^C[], 1024, 1000) = 0
epoll_wait(14, [], 1024, 0) = 0
Im gegensatz zu socat:
stat("/dev/ttyUSB0", {st_mode=S_IFCHR|0777, st_rdev=makedev(0xbc, 0), ...}) = 0
openat(AT_FDCWD, "/dev/ttyUSB0", O_RDWR|O_APPEND) = 5