P1 can't open serial port

Post Reply
rhendriks
Posts: 185
Joined: Tuesday 24 December 2013 0:36
Target OS: Raspberry Pi
Domoticz version: Newest
Location: Netherlands Helmond
Contact:

P1 can't open serial port

Post by rhendriks » Sunday 25 December 2016 13:14

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

bnwgraaf
Posts: 11
Joined: Monday 26 December 2016 20:20
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: P1 can't open serial port

Post by bnwgraaf » Saturday 14 January 2017 5:32

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

Kohen
Posts: 28
Joined: Monday 12 October 2015 12:05
Target OS: NAS (Synology & others)
Domoticz version:
Location: Veldhoven, The Netherlands
Contact:

Re: P1 can't open serial port

Post by Kohen » Wednesday 25 January 2017 9:38

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....
Synology NAS 412+, Aeotec stick V5, Aeotec recessed door sensor, Aeotec micro double smart switch, Fibaro Dimmer, iPad 2 with own 3d printed wall mount.

bnwgraaf
Posts: 11
Joined: Monday 26 December 2016 20:20
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: P1 can't open serial port

Post by bnwgraaf » Wednesday 25 January 2017 10:22

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 serial-getty@ttyAMA0.service
sudo systemctl disable serial-getty@ttyAMA0.service

Kohen
Posts: 28
Joined: Monday 12 October 2015 12:05
Target OS: NAS (Synology & others)
Domoticz version:
Location: Veldhoven, The Netherlands
Contact:

Re: P1 can't open serial port

Post by Kohen » Thursday 26 January 2017 21:11

And how to do that on a synology?
Synology NAS 412+, Aeotec stick V5, Aeotec recessed door sensor, Aeotec micro double smart switch, Fibaro Dimmer, iPad 2 with own 3d printed wall mount.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests