Hello, all, i'm working in a data logger and very accurate real time trigger.
I'm logging data from serial GPS and need to trigger another device with a timestamp string, each GPS PPS pulse arrive to pin 9.
I can read data and pulse without problems.
I have 3 task i need to do:
Read and log the data,
while data are arriving i need to extract new timestamp and save in it in a var.
When pulse arrive to pin 9 , i need to send this timestamp to another device using CAN bus (i have the device and lib here, no prob).
The app is a VERY TIME SENSITIVITY and if i use only one sketch i could have some delays and remaining process will need to wait one finish to continue..
Can anybody tell me what are the best practices to do a real time or multitasking app? or some sample?
i'm using a Galileo GEN 2 and some accesories, RS-232>TTL, CAN adapter, etc.
Thank in advance
If you want to run different scripts/routines at the same time you can run them in the background using the Terminal Console. Linux: Start Command In Background
About real time, the official image is Yocto and is not a real time OS. But, you can use the evaluation program from Wind River, the VxWorks RTOS from: Wind River VxWorks Evaluations that is a real time OS. I hope this helps.