Yet another DCF77 decoder. This one is intended for the Raspberry Pi
platform but might work on other devices using GPIO pins too.
The received data can be logged for later playback/analysis.
The software is written as a library for easy reuse into other software.
===> The following configuration options are available for dcf77pi-3.7.1.1_3:
DOCS=on: Build and/or install documentation
DOXYGEN=off: Build documentation with Doxygen
===> Use 'make config' to modify these settings
Normally, dcf77pi and readpin need to be run as root due to the permissions of
/dev/gpioc* , but they can be run as a regular user by changing the permissions
of the device node:
# chmod 0660 /dev/gpioc*
And to make the change persistent across reboots:
# echo "perm gpioc* 0660" >> /etc/devfs.conf
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
comms/dcf77pi: update to 3.3.0
Changes:
* improve support for decoding the alarm messages by showing the main German
regions which are affected. Note that this was an experimental and now
unused system. With permission from Mr. Wenzelewski from DIN
* Doxygen support, provide a Doxyfile (not supported by the port yet)
* Small fixes to the FidoCADJ schematics
* library:
- assign date/time fields more independently so that errors are corrected
faster
- record the accumulated minute length at the end of each line in the log
(Only the first 15 lines of the commit message are shown above )
- Update comms/dcf77pi to version 3.2.0
- Use USE_LDCONFIG
Overall changes:
- Compile with -fpic instead of -fPIC (potentially smaller code size)
- Add a schematics file for the hardware receiver in FidoCadJ format
- Language and typographical updates to README.md
- Several signed/unsigned/size fixes
Library changes:
- Extract generic third-party code for bits 1..14 from decode_alarm.h into a
new file bits1to14.h
- Convert almost all calculations for decoding the live signal into integer
operations, drop fields 'a', 'frac', and 'maxone' from struct bitinfo.
- New function setclock_ok() in setclock.h
(Only the first 15 lines of the commit message are shown above )
comms/dcf77pi: update to 3.1.0, improve pkg-descr
General:
- add partial support for OSX and Cygwin
- add bitinfo.last0 field which represents the last pulse where the radio signal
was 0
- store radio signal into a new field bitinfo.signal
- more robust handling of radio signal glitches
- improve realfreq by approximately 7% on a non-optimized standard build
- simplify code for handling DST changes and leap seconds
- defer assigning the decoded time until the minute length has been checked
to match the exact expected value (i.e. 59 unless a leap second occurs)
- code cleanups
README:
- mention supported platforms
dcf77pi:
- display updates, show last0
readpin:
- overhaul to make more use of libdcf77
- drop -t parameter
comms/dcf77pi: Update 3.0.0.1
The code to decode the radio signal, date/time, and civil warnings is now
provided in a library libdcf77.so together with the relevant header files.
dcf77pi is now split up into dcf77pi (the live client) and dcf77pi-analyze
(the client to analyze log files). The -f parameter of dcf77pi is dropped.
Apply minor lint(1) fixes.
comms/dcf77pi: update to 2.1.0
General:
- the maxzero and maxone parameters are now determined dynamically, remove
them from config.txt and README.md
- Do not consider time offset jumps if bit 17 and 18 are equal
readpin:
- add a -q parameter to suppress displaying of the raw signal (default off)
- display updates
dcf77pi:
- display updates/fixes, show radio state
(OK if no receive/transmit/random errors)
comms/dcf77pi: update to 2.0.3, use the new @sample keyword
- Mention the "backspace" key in README.md
- Reset DST and leap second announcements at the next hour
- Detect sudden jumps to non-DST
- Relax conditions for processing a DST change
comms/dcf77pi: update to 2.0.2
- Prevent a possible string overflow when reading the configuration file.
- Plug a few memory leaks.
- Refactor a lot of code.
- Replace -l parameter (specify logfile) of dcf77pi by an interactive 'L' key
which can also be used to change or disable the log file.
- New entry in config.txt, "outlogfile", to specify the the default log file
(default empty).
- Fix a bug where the hour would be wrongly considered off by one at the
moment of a DST change.
- Various bug fixes in the GUI code (only affected displaying of the data).
- Handle log files with \n\r line endings used by RISC OS (which runs on the
Raspberry Pi).
- Slightly improve output when reading from a log file.
- Update README.md
comms/dcf77pi: update to 2.0.1
- support DESTDIR and install-strip, uninstall targets in upstream Makefile
- clean up port Makefile accordingly
- bugfix: do not accept removed 'S' command line option
- bugfix: display 'no minute' at the correct position in GUI mode
- do not leak curses memory at exit
comms/dcf77pi: update to version 2.0.0
- Provide an ncurses based interface in live mode, no changes when reading
from a log file
- Drop the -v and -S parameters, they are now part of the GUI
- add ncurses to USES
comms/dcf77pi: Update to 1.1.3
Changes:
- Add the correct number of minutes when the accumulated minute length is
more than 60 seconds (happens when e.g. the transmitter is off).
- Disallow DST changes or leap seconds if a 0 is specified for summermonth,
wintermonth, or leapsecmonths.
- Allow compilation on NetBSD.
Update to 1.1.2
Changes:
- replace hardcoded realfreq parameter with a dynamically determined value
and update README.md
- minor updates to time decoder
Update to 1.1.1
Changes:
dcf77pi:
- Calculate century (modulo 400) from year, month, day of week, day of month
- New parameter -S to set the system time
- Improvements to DST handling
- Set error state if day of month is too large, not just when greater than 31
readpin:
- New parameter -t for readpin to adjust nanosleep() delay
- Determine realfreq dynamically, do not use realfreq from config.txt
general:
- Documentation updates
- Code cleanups
* Update to 1.1.0:
- New algorithm to receive bits from the radio signal from an idea by
Udo Klein, with permission [1] (configuration file changed)
- Use two independent maximum values for 0 and 1 bits (configuration
file changed)
- New verbose display output
- Weaken precondition for processing leap seconds and DST changes to not
insist on correct values for parity bits and bit 0, 20, 17, 18
- README.md updated
- Style and other minor fixes
* Simplify PORTDOCS installation
[1] http://blog.blinkenlight.net/experiments/dcf77/binary-clock/#comment-5916
Update to 1.0.4 :
- better detection for bits in the radio signal
- catch more corner cases in decoding of the time data
The configuration file (hardware.txt) needs to be updated with this update.
Yet another DCF77 decoder. This one is intended for the Raspberry Pi
platform but might work on other devices using GPIO pins too.
The received data can be logged for later playback/analysis.
WWW: https://github.com/rene0/dcf77pi