I'm trying to debug my custom MySensors gateway and a standard RFLink gateway, both of which connect via serial port to my Synology NAS running Domoticz.
I read every now and then in topic on this forum that people log the traffic on the serial port: how is that enabled? I only found the standard Domoticz log in the web GUI but that one does not show serial traffic.
How to debug serial port sensors
Moderators: leecollings, Stuntteam
-
- Posts: 4
- Joined: Saturday 03 June 2017 14:45
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
-
- Posts: 72
- Joined: Friday 11 March 2016 18:23
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Essex, UK
- Contact:
Re: How to debug serial port sensors
Try strace, e.g.:
You will see serial calls among others and can narrow down to specific file descriptor that corresponds to interested serial port device.
That if you want to debug with Domoticz running.
Or you can stop domoticz and do "screen /dev/name-of-your-RFLink-tty"
Code: Select all
sudo strace -s 1000 -e trace=writev,readv -fp "`pidof domoticz`"
That if you want to debug with Domoticz running.
Or you can stop domoticz and do "screen /dev/name-of-your-RFLink-tty"
-
- Posts: 4
- Joined: Saturday 03 June 2017 14:45
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: How to debug serial port sensors
Thanks!
I think I narrowed down the issue to the serial port driver: the cdc-acm driver seems to hang on my Synology; on any other system the serial communications works fine, just on my NAS it stalls.
I think I narrowed down the issue to the serial port driver: the cdc-acm driver seems to hang on my Synology; on any other system the serial communications works fine, just on my NAS it stalls.
Who is online
Users browsing this forum: No registered users and 0 guests