Home Linux Community Forums Hardware Drivers Line discipline, serial datation and log

Line discipline, serial datation and log

Link to this post 06 Mar 12

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?


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

Link to this post 06 Mar 12

Please do not double post.

Link to this post 06 Mar 12

Yes sorry but this post seems to be in the wrong section. It's a programming question that's why I re-post it in the other section. Please delete it if you know how to.


Link to this post 07 Mar 12

I've removed the other post, hopefully someone will come along with an answer to your question. Sorry, but it's not something I'm familiar with.

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Linux Training / Board

/** BC-056 Ameex changes to add tracking code - 2016-01-22 **/ ?>