tag:blogger.com,1999:blog-7098474.post4763090037776975078..comments2024-03-09T17:12:26.153+00:00Comments on Chris’ Miscellanea: DCF77 via GPIO on the Raspberry Pi (patched radioclkd2)Anonymoushttp://www.blogger.com/profile/12629131958615141514noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-7098474.post-28439622524253112452016-05-20T12:52:46.179+00:002016-05-20T12:52:46.179+00:00Yes, one such line is needed.Yes, one such line is needed.Anonymoushttps://www.blogger.com/profile/12629131958615141514noreply@blogger.comtag:blogger.com,1999:blog-7098474.post-85948124713693565622016-05-20T11:34:27.570+00:002016-05-20T11:34:27.570+00:00Hi Christian,
Is there a line like "server 1...Hi Christian,<br /><br />Is there a line like "server 127.127.28.0 ..." to add to ntp.conf file ?<br /><br />DCF77 module works fine and shm is updated but it seems that ntp coudn't read info.<br /><br />Thanks.<br />Robert.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7098474.post-82464208796135572582016-02-22T07:28:23.747+00:002016-02-22T07:28:23.747+00:00Christian,
Thanks for all your help. Appears I no...Christian,<br /><br />Thanks for all your help. Appears I now have a working radioclock. Appears positioning of antenna is key to get a good reception!<br /><br />Thanks again,<br /><br />Added clock unit 0 on line '/sys/class/gpio/gpio0/value:-DCD'<br />pid 24432 for device /sys/class/gpio/gpio0/value<br />warning: bad pulse length 0.000000<br />pulse start: at 1456083401.010611<br />warning: bad clear length 1456083401.010611<br />warning: bad pulse length 0.244607<br />pulse start: at 1456083402.008892<br />warning: bad clear length 0.753674<br />pulse end: length 0.137454 - 0: 1<br />pulse start: at 1456083403.017807<br />pulse end: length 0.134396 - 1: 1Anonymoushttps://www.blogger.com/profile/07955674496452236114noreply@blogger.comtag:blogger.com,1999:blog-7098474.post-19103006749429764142016-02-21T19:45:26.193+00:002016-02-21T19:45:26.193+00:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/07955674496452236114noreply@blogger.comtag:blogger.com,1999:blog-7098474.post-3885532428899731702016-02-14T21:01:56.721+00:002016-02-14T21:01:56.721+00:00That's odd... I've added two additional pi...That's odd... I've added two additional pictures to the blog-post illustrating the steps I perform. -- If your pulses aren't registered on the RPI GPIOs, I have no idea what else could be wrong.<br /><br />One thing of note, though: I'm using a really old Raspberry-Pi-1 (the one with the single-core CPU). But of course GPIOs should still work.<br /><br />Does it stop working only after you connected the GPIO pin, or maybe even as soon as it's powered from the Raspberry-Pi? Maybe the power-supply is bad and injecting some noise?Anonymoushttps://www.blogger.com/profile/12629131958615141514noreply@blogger.comtag:blogger.com,1999:blog-7098474.post-72397285535005159192016-02-14T20:09:45.036+00:002016-02-14T20:09:45.036+00:00Hi Christian,
Many thanks for the tips. I think I...Hi Christian,<br /><br />Many thanks for the tips. I think I am making some progress now. When I connect the TCON pin out from the PCB to GPIO0 and run the radioclkd2 -d -v -s gpio /sys/class/gpio/gpio0/value:dcd I get the following:<br /><br />[root@raspi ~]# radioclkd2 -v -d -s gpio /sys/class/gpio/gpio0/value:DCD<br />version 0.06<br />Added clock unit 0 on line '/sys/class/gpio/gpio0/value:DCD'<br />pid 7950 for device /sys/class/gpio/gpio0/value<br />warning: bad pulse length 1338508556.097678<br /><br /><br />And nothing more. Also I noticed the LED on the small PCB stays on and no longer flashes!<br /><br />I did the other test you suggest, i.e. gounding the GPIO0 and I get the change in state as expected.<br /><br /><br />Any suggestions....<br /><br />Thanks,<br /><br />Pete.Anonymoushttps://www.blogger.com/profile/07955674496452236114noreply@blogger.comtag:blogger.com,1999:blog-7098474.post-58967585369156509912016-02-13T11:33:46.092+00:002016-02-13T11:33:46.092+00:00Two additional remarks for troubleshooting:
- aft...Two additional remarks for troubleshooting:<br /><br />- after you "echo both >/sys/class/gpio/gpioNUM/edge", the interrupt counter for GPIO should increase over time<br /><br /> [root@rpi-cvogel gpio4]# grep gpio /proc/interrupts <br /> 49: **<b>3178</b>** ARMCTRL 49 Edge 20200000.gpio:bank0<br /> 50: 0 ARMCTRL 50 Edge 20200000.gpio:bank1<br /><br />Whever there are pulses, radioclkd2 in debug/verbose mode should show them (reception is very poor in my office).<br /><br /> [root@rpi-cvogel gpio0]# radioclkd2 -d -v -s gpio /sys/class/gpio/gpio0/value:dcd<br /> version 0.06<br /> Added clock unit 0 on line '/sys/class/gpio/gpio0/value:dcd'<br /> pid 1185 for device /sys/class/gpio/gpio0/value<br /> warning: bad pulse length 1455363072.715686<br /> pulse start: at 1455363072.750117<br /> warning: bad clear length 0.034431<br /> warning: bad pulse length 0.048952<br /> pulse start: at 1455363072.908969<br /> warning: bad pulse length 0.008809<br /> pulse start: at 1455363073.022650<br /><br />You can have a very crude "digital scope" on your GPIO pins by doing this:<br /><br /><br /> [root@rpi-cvogel gpio0]# while cat /sys/class/gpio/gpio0/value ; do : ; done<br /> 1<br /> 1<br /> 1<br /> 1<br /> 0<br /> 0<br />Anonymoushttps://www.blogger.com/profile/12629131958615141514noreply@blogger.comtag:blogger.com,1999:blog-7098474.post-54183999829319050082016-02-12T22:50:56.728+00:002016-02-12T22:50:56.728+00:00I haven't used radioclkd for a some time, but....I haven't used radioclkd for a some time, but...<br /><br />- run it with -d and -v, it should print every single pulse<br />- touch the gpio pin with a wire to Vcc(3.3V!) or GND, it must show at least one pulse!<br />- check if "cat /sys/class/gpio/gpioNUMBER/value" shows 0 or 1 when you connect the GPIO to Vcc or GND<br /><br />If that does not show proper data, something is screwed up with that GPIO pin.Anonymoushttps://www.blogger.com/profile/12629131958615141514noreply@blogger.comtag:blogger.com,1999:blog-7098474.post-83431969985875371872016-02-12T18:11:13.161+00:002016-02-12T18:11:13.161+00:00Thanks for the post, nice work, trying to replicat...Thanks for the post, nice work, trying to replicate.<br /><br />I am using one of these from SYMTRIK<br />http://www.pvelectronics.co.uk/index.php?main_page=product_info&cPath=9&products_id=2<br /><br />the LED seems stable with a flash about every second.<br /><br />Connected Vdd and GND to two 1.5v batteries and the TCON output to GPIO0 on my Pi (next to the 3V pin). I downloaded and compiled your code from Git. But when I run the command in your readme all i get is "no serial line change". I did not use the capacitor, do you think this could be the problem? Is this absolutely necessary, if so what size?<br /><br />Thanks,<br /><br />Pete.Anonymoushttps://www.blogger.com/profile/07955674496452236114noreply@blogger.comtag:blogger.com,1999:blog-7098474.post-81615397449860550072014-12-05T21:10:21.855+00:002014-12-05T21:10:21.855+00:00There's no difference between all the GND pins...There's no difference between all the GND pins, as far as I know (and according to the schematics).Anonymoushttps://www.blogger.com/profile/12629131958615141514noreply@blogger.comtag:blogger.com,1999:blog-7098474.post-4766085199271761352014-12-05T21:01:23.357+00:002014-12-05T21:01:23.357+00:00Thanks, I'll try moving the receiver further a...Thanks, I'll try moving the receiver further away from the pi and my desktop. <br /><br />Regarding GND I saw from your picture that you used Pin 9 as opposed to Pin 6 - all diagrams present Pin 6 as a black ground and all the other (including the one you used) as white - I thought that maybe there's something special about them that make them desirable for this application.<br /><br />Cheerssilviuhttps://www.blogger.com/profile/00468952261324160815noreply@blogger.comtag:blogger.com,1999:blog-7098474.post-79483320073421472002014-12-05T14:20:55.638+00:002014-12-05T14:20:55.638+00:00- I don't have the setup running right now, bu...- I don't have the setup running right now, but I just used a few metres of normal unshielded cable. The signal is quite strong in Germany, where I'm located, so there are normally no issues.<br /><br />What do you mean by "not using the default GND?"<br /><br />You could try to use a longer cable and wind it through a huge ferrite coil to suppress HF (from the Raspberry PI).<br />Anonymoushttps://www.blogger.com/profile/12629131958615141514noreply@blogger.comtag:blogger.com,1999:blog-7098474.post-89736095308263629172014-12-05T13:56:55.372+00:002014-12-05T13:56:55.372+00:00Hi,
I'm curious about a few things:
- How fa...Hi,<br /><br />I'm curious about a few things:<br /><br />- How far did you locate the receiver from the PI?<br />- is there a special reason for not using the default GND ?<br /><br />I'm in romania - a bit far from the transmitter but I do have dcf77 clocks that work just fine, but I can't get the pi to pick it up.<br /><br />Thankssilviuhttps://www.blogger.com/profile/00468952261324160815noreply@blogger.com