P1 can't open serial port

Moderator: leecollings

Post Reply
rhendriks
Posts: 44
Joined: Monday 23 December 2013 23:36
Target OS: Raspberry Pi / ODroid
Domoticz version: Newest
Location: Netherlands Helmond
Contact:

P1 can't open serial port

Post 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
bnwgraaf
Posts: 28
Joined: Monday 26 December 2016 19:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: P1 can't open serial port

Post 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....
Kohen
Posts: 23
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 »

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: 28
Joined: Monday 26 December 2016 19:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: P1 can't open serial port

Post 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]
Kohen
Posts: 23
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 »

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 1 guest