Pulsecounter Glitch?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
rmtucker
Normal user
Posts: 57
Joined: 04 Oct 2015, 17:14

Pulsecounter Glitch?

#1 Post by rmtucker » 16 Oct 2015, 19:40

I have a one Tsl257 photodiode connected to gpio12 and gpio13 detecting pulses from an electricity meter.
I have set up two tasks using pulse counter one for watts and one for kwh.
The first on gpio12 and the second on gpio13.
On average it is recording about 50 pulses in 5 mins.
But sometimes the second task is counting one less pulse,But not every time,sometimes they match??

rmtucker
Normal user
Posts: 57
Joined: 04 Oct 2015, 17:14

Re: Pulsecounter Glitch?

#2 Post by rmtucker » 16 Oct 2015, 20:01

Just to prove it:-

[attachment=0]untitled.JPG[/attachment]
Attachments
untitled.JPG
untitled.JPG (79.82 KiB) Viewed 6570 times

rmtucker
Normal user
Posts: 57
Joined: 04 Oct 2015, 17:14

Re: Pulsecounter Glitch?

#3 Post by rmtucker » 16 Oct 2015, 21:49

Strange thing is though after a reset and letting it run for a while,you can see the totals are correct but the count is off?
Attachments
untitled.JPG
untitled.JPG (78.24 KiB) Viewed 6556 times

rmtucker
Normal user
Posts: 57
Joined: 04 Oct 2015, 17:14

Re: Pulsecounter Glitch?

#4 Post by rmtucker » 20 Oct 2015, 15:54

Just an update on this.
Yes it does show some discrepancies on the web front end but it is working perfectly!.
It has recorded about 37,000 pulses and never missed a beat so :D
Well done that developer :D :D

rmtucker
Normal user
Posts: 57
Joined: 04 Oct 2015, 17:14

Re: Pulsecounter Glitch?

#5 Post by rmtucker » 26 Oct 2015, 19:31

Well after approx 112,000 pulses it seems to have slipped up somewhere as Domoticz is reporting 30 pulses less than the pulsecounter in ESPEasy.
I can only imagine that it has had a connection problem to my domoticz server and then disappeared out of the log after a while so i can not prove it.
It would be nice to have the pulsecounters catch up somehow if this happens???
If it cant connect does it retry?,if so how many times or how long does it try for?
Even so the Espeasy pulse counter is bang on so very happy with that side of things.

rmtucker
Normal user
Posts: 57
Joined: 04 Oct 2015, 17:14

Re: Pulsecounter Glitch?

#6 Post by rmtucker » 26 Oct 2015, 21:26

I have managed to send the extra 30 pulses through the Domoticz api/url so they are both matching again.
But this makes me wonder if the pulsecounter should be sending the total count in some way.
I know if it goes down it would lose count but surely we can read the domoticz count if the esp is reset and restart from there?

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 30 guests