mysensors live raw data debug

Post Reply
Posts: 4
Joined: Thursday 06 April 2017 11:14
Target OS: Linux
Domoticz version: 3.8153
Location: NL

mysensors live raw data debug

Post by haaxema » Thursday 06 April 2017 11:24

Hi all,

I have build a USB gateway (connected to a linux machine) with 2 local attatched sensors (Gasmeter-pulse and kWh pulse)
All is working wel BUT I'd like to see the raw (serial) data so I can verify the reading of the sensors. (just to be sure)

Used hardware:
- Arduino nano
- reed sensor (gas pulse)
- LDR (kWh pulse)
- Mysensors 2.2.1
- Domoticz 3.5877
- NRF24L01 (work in progress, just local sensors right now)

Is is possible to save/show the raw serial messages in a 'live' system?


Posts: 78
Joined: Friday 11 March 2016 19:23
Target OS: Raspberry Pi
Domoticz version:
Location: Essex, UK

Re: mysensors live raw data debug

Post by RidingTheFlow » Wednesday 12 April 2017 19:53

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests