Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering short pulses #11

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Filtering short pulses #11

wants to merge 6 commits into from

Conversation

ghost
Copy link

@ghost ghost commented May 20, 2014

I tried to filter that short pulses before or after a real 100/200 mS pulse. In case of a POST-pulse i added a delay (time defined in DCF77.h as delayPost) and reinitialized the flankTime to millis() for simply ignoring that short pulse.
If a short PRE-Pulse is detected, there's a short delay (defined in DCF77.h as delayPre), the flankTime is reinitialized and the sensorvalue is re-readed. Maybe it should be possible to adapt the delayPre/delayPost-value "self-learning" by counting the errors and increasing that values automatically)
I changed the rPW and rCT to shorter "+" and "-".

As a second, i added the function getCEST, which returns 1, when CEST is active and 0 if CET is set (as always, this is meant for the next minute)

I added some function names for planned functions: getWeekday(), getEncWeatherData() and getAlertData().
getWeekday() should return the Weekday, getEncWeatherData should return the Encrypted MeteoTime-Weather-Data for external Decryption, getAlertData() should give back the German Civil Alert Data (not encrypted)

In SyncProvider.pde i changed Line 74 "unsigned long getDCFTime()" to "time_t getDCFTime()", because i got compilation errors on Teensy (3.1). Now it compiles both on Arduino Uno and Teensy 3.1

Goldspielzeug added 6 commits May 20, 2014 23:28
- added function with return of CEST: getCEST()
returns 1 if CEST and 0 if CET (MEZ).

- added delays for filtering short PRE/POST-pulses (see DCF77.h)

- changed functions for rPW and rCT to "-" for Prepulses and "+" for Postpulses
i have changed the functions which reject short pulses before or after a correct pulse. It seems to correct some of that short jitter pulses better.They are detected in debug mode, but nevertheless in some cases the buffer is good to be used.

-addes some function names for getWeekday() (to be implemented), 
getEncWeatherData() to get the encrypted MeteoTime-Data for (external) decryption,
and getAlertData() to get the Civil Alert Data.
Changed getDCFTime to time_t, which compiles on both Teensy 3.1 and Arduinos now ("unsigned long" didn't for the teensy)
@thijse
Copy link
Owner

thijse commented Apr 19, 2015

Sorry to respond so late! Thanks for all the updates. I will review and merge them as soon as I can

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant