solar3s / goregen

golang client for regenbox
GNU General Public License v3.0
9 stars 10 forks source link

rbox connection almost instant + read error #2

Closed rkjdid closed 7 years ago

rkjdid commented 7 years ago

on rare occasions, a connection to serial port gets established almost instantly, but it is in a bad state.

this requires software restart or unplug/plug of serial port

rkj@rkdeb:~/go/src/github.com/solar3s/goregen$ ./goregen 
2017/05/24 01:56:03 root directory: /home/rkj/.goregen
2017/05/24 01:56:03 static directory: /home/rkj/.goregen/static
2017/05/24 01:56:03 config file: /home/rkj/.goregen/config.toml
2017/05/24 01:56:03 trying "/dev/ttyUSB0"...
**2017/05/24 01:56:03 connected to "/dev/ttyUSB0" in 82.482µs**
2017/05/24 01:56:03 starting conn watcher (poll rate: 1s)
2017/05/24 01:56:03 listening on localhost:3636...
**2017/05/24 01:56:04 closing serial connection to "/dev/ttyUSB0": read timeout (250ms)**
rkjdid commented 7 years ago

panic log after ctrl-c (this doesn't always happen)

rkjdid commented 7 years ago

haven't seen the bug for a while, it might be fixed (youpee?)