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 ?
Oh I am using C btw.