LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Serial datation and log (https://www.linuxquestions.org/questions/programming-9/serial-datation-and-log-932784/)

SebastienS 03-05-2012 04:47 AM

Serial datation and log
 
Hi everybody,

I have to find a solution to log data (and date the data) from serial in my software. This software will be implemented on Linux system (2.6.29 precisly). It's an embedded software and the linux has also an RTC.

I found some documentation on internet. According to me, the best solution to be more deterministic on datation is to implement a new line discipline which add a datation service to the serial driver.

I need to be more deterministic as possible with a non-real time system and I want to re-use this software on different systems. That forces me not to modify the low-level layer driver which is specific to the hardware.

So, do you know if there is already some existing project which includes this kind of solution?

I tried to find some documentation on "how to implement a new line discipline" but unsuccessfully. Do you know something on this subject?


Regards,
Sébastien

ps : sorry for my writting, I'm french..

theNbomr 03-28-2012 01:25 PM

I realize that this rely comes a bit late. I'm not sure what you mean by the word 'datation'. A little Googling suggests that you might mean what we call 'time-stamp'; to attach a time & date component to a data point or message. Is that what you mean?

What degree of time granularity do you require? Don't forget that serial data is generally considered quite slow, and the time between the start of a message and the end of transmission of the message my be relatively long.

What is the nature of your data? Does it come in human-readable, line-at-a-time fashion, where using existing canonical mode drivers would suffice to distinguish arrival of a message?

--- rod.


All times are GMT -5. The time now is 02:36 AM.