How to debug serial port sensors

433Mhz opensource Receiver & Transmitter.

Moderators: leecollings, Stuntteam

Post Reply
Cyberwizzard
Posts: 4
Joined: Saturday 03 June 2017 14:45
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

How to debug serial port sensors

Post by Cyberwizzard »

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.
RidingTheFlow
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

Post by RidingTheFlow »

Try strace, e.g.:

Code: Select all

sudo strace -s 1000 -e trace=writev,readv -fp "`pidof domoticz`"
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"
Cyberwizzard
Posts: 4
Joined: Saturday 03 June 2017 14:45
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: How to debug serial port sensors

Post by Cyberwizzard »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests