Use khadas as master clock

Which system do you use? Android, Ubuntu, OOWOW or others?


Which version of system do you use? Khadas official images, self built images, or others?

20.04 Noetic

Please describe your issue below:

I would like to ask if there is a way to output time of khadas vim 4 to an external device ( e.g gnss/ins receiver), through its pins, so i can achieve time_sync between 2 modules. Main idea is to be khadas vim 4 as master clock and the external device as slave.

Can this task be achieved ?

Thanks in advance!

Hi @Manolis_Chrysanidis

What do you mean by output time through pins ?

Eg, You can use standard program API
C/C++ - #include <time.h>
Python - import time
Shell script - date

To get the time and send the data through the serial port pins.


Hello @Electr1 ,

first of all thanks for the infos. I would like to ask something more.
Excuse me for my newbie questions, but all of these overlays



are refered to GPIO functionalities right?

The reason i am asking is because i would like to now if i choose for example fdt_overlays=uart_e

it will not affect or change something else on another connection.

Thanks in advance.

Hello @Manolis_Chrysanidis ,

Yes, they will modify the functionality to enable or disable those functions respectively from their default configuration.

it’s gpio pins by default, with uart_e overlay it will enable the uart functionality.


1 Like

Nice thank you my friend @Electr1 !!

1 Like