LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-05-2012, 04:47 AM   #1
SebastienS
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Rep: Reputation: Disabled
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..

Last edited by SebastienS; 03-07-2012 at 02:30 AM.
 
Old 03-28-2012, 01:25 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can you print only to system log and not to serial console? dbrazeau Linux - Kernel 1 07-26-2011 01:47 PM
when starting bind /var/log/messages serial isnt updated matters Slackware 15 12-19-2008 06:00 AM
Log into serial port remotely baddah Linux - Software 3 02-06-2008 10:07 AM
Log incomming data from a serial port shoekstr Linux - Hardware 6 05-28-2004 10:53 AM
I need a Advance Serial Port Monitor/Rcvr/Log sfingerh Linux - Software 5 04-09-2003 10:47 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration