Fedora Linux Support Community & Resources Center
Prev Previous Post   Next Post Next
  #1  
Old 13th August 2008, 02:40 AM
cj5cowboy Offline
Registered User
 
Join Date: Nov 2006
Location: Indiana
Age: 51
Posts: 39
getting data from a sensor

Hi,

I have a seismic sensor that I need to hook up to a serial port and start reading data from.
(I don't have much documentation other than a datasheet of the AD converter I found on the net)

Here is what I am trying to do.

The AD converter can be set in a 'mode' (4 different ones single step conversion and continuous conversion combined with a resolution).
There is no response if you set a mode.

Than there are a few commands one can use; status, get a digit pair(a byte) (there are 3 different digit pairs.
The sensor doesn't send any data over the serial link when not asked for it.

Anyway, I am trying to send one byte commands and try to retriven one byte responses but I seem to get a lot of 'Resource temporarily unavailable' messages when I try to read the data.

what would be the best way to talk to that sensor so that I don't get those EAGAIN 'Resource temporarily unavailable' erros ?

thanks,

Ron

Oh I am using C btw.
Reply With Quote
 

Tags
data, sensor

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fan / Temp sensor program synic Using Fedora 9 14th February 2009 10:44 AM
USB Temperature sensor Jeff Sadowski Guides & Solutions (No Questions) 2 6th August 2007 03:44 PM
Sensor error on gDesklets Edward Lichtner Using Fedora 0 21st October 2005 06:01 PM


Current GMT-time: 20:57 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat