On Wed, 1 Jul 2020 22:45:25 -0700 (PDT), in
gmane.comp.hardware.beagleboard.user
[email protected] wrote:

>Hi,
>
>I am doing a project using both beaglebone and raspberry pi. Now only the 
>pi has internet connection and I have to sync their time. Currently I can 
>send the pi's time to beaglebone green every second, but I don't know how 
>to use this data to set the system time on Beaglebone. I plan to write a 
>shell script so it can be running all the time from boot. Anyone knows how 
>to do that? Thanks.
>

        "Information... We want... Information"

        How is the BBG connected to the R-Pi for this transfer? If the R-Pi is
sending time data, there has to be something on the BBG that is reading it.

        It would probably be easier to have the BBG /ask/ the R-Pi for the
time, and that could be done using a cron job on the BBG. Of course, that
means now the R-Pi has to have running process to accept the requests... 
        
        It all comes down to how the two devices are communicating. If the BBG
is connected to the R-Pi via USB (hope you are using an external power
supply on the BBG -- don't think an R-Pi USB can provide the power draw)
you might just need to configure the R-Pi as a gateway, and let the BBG NTP
(or whatever recent Debian/systemd sets up) do normal time sync through the
R-Pi's network connection (or run a tier 3 NTP server on the R-Pi and let
the BBG time sync to it).


-- 
Dennis L Bieber

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/cotrff52nb4frtqp8qjc9t4bq8272defnr%404ax.com.

Reply via email to