Page 1 of 1

P1 can't open serial port

Posted: Sunday 25 December 2016 12:14
by rhendriks
Since a few updates the P1 port soes not work anymore.
In the logfile :

Code: Select all

2016-12-25 13:02:00.676 P1 Smart Meter: Serial Worker stopped... 
2016-12-25 13:02:00.677 P1 Smart Meter: Using serial port: /dev/ttyAMA0 
2016-12-25 13:02:18.723 Error: Serial Port closed!... Error: End of file 
I have used the serial port AMA0.
If I would read out the p1 data in PuTTy this is the output:

Code: Select all

 
root@raspberrypi:~# cu -l /dev/ttyAMA0 -s 9600 --parity=none
cu: open (/dev/ttyAMA0): Permission denied
cu: /dev/ttyAMA0: Line in use
then I did this:

Code: Select all

sudo chmod a+rw /dev/ttyAMA0
cu -l /dev/ttyAMA0 -s 9600 --parity=none
I see the telegrams from the P1 meter ,but after +/- 1min it did stopped .
what can I do to let it work?

Domoticz V3.5877

Re: P1 can't open serial port

Posted: Saturday 14 January 2017 4:32
by bnwgraaf
Same lroblem for me!

I have a working p1 meter reading on a rpi b+ and I am now setting up a new rpi zero.

All installation went okay (fresh jessie with domoticz}.

I can read with the co.mands mentioned in this post, but the readings stop after a few seconds.

In domoticz I have added the P1, with the right settings, but the devices list stays empty....

Re: P1 can't open serial port

Posted: Wednesday 25 January 2017 8:38
by Kohen
Same for me.

Running Domoticz on a Synology DS412+ (DSM6)
Running with the latest beta.

I've disconnected the USB reconnected it to another port
Also removed and added it again
nothing....

Re: P1 can't open serial port

Posted: Wednesday 25 January 2017 9:22
by bnwgraaf
I have added some line in a srtupfile and now it works perfectly!

Code: Select all

sudo nano /etc/rc.local
Add these lines:

Code: Select all

sudo systemctl stop [email protected]
sudo systemctl disable [email protected]

Re: P1 can't open serial port

Posted: Thursday 26 January 2017 20:11
by Kohen
And how to do that on a synology?