On Mon, Jun 26, 2017 at 8:30 AM, Alexander Graf <[email protected]> wrote:

>>> Which sensor do you want to connect?
>>
>>
>> It is a device that provides pulses related to movement. We monitor
>> these and take action on them. Some actions are the manipulation of
>
>
> So the duration of the pulse is the bit that provides information? On both
> edges? And max freq is 32khz?
>
> In that case, check out this stackexchange discussion:
>
>
> https://raspberrypi.stackexchange.com/questions/9787/pwm-input-in-raspberry-pi

This I know. There is no way it works via a high level interface. As
the reply indicated, one needs to use a kernel driver if one wants
responsiveness. That is my intention. I have made kernel drivers
before. This will be a first on an ARM system. So I am exploring what
the status is. Thus my questions about how openSUSE is set up for this
hardware. For example, are there any drivers that assume they can have
exclusive access to some of the pins?

> The main problem is that with PWM while your edges are only 32khz apart, you
> need to oversample quite a bit to know where they are :).

I do not intend to sample to sense the pulses. I expect to be
interrupted when a pulse occurs. The pulse is the data. It is not a
serial or some such signal from which I will derive data. Each
individual pulse indicates that something has happened, and the driver
must take action. The duration of the pulse is more of a hardware
issue. That is, how long does the line driver on the PI3 require a
pulse be for it to be detected and an interrupt delivered? It is this
rate of interrupt that I am wondering about. This is pretty much all
the device will be doing.

The main reason for going with openSUSE is that the networking part is
in place. Using openSUSE might be overkill. I am viewing it as a nice
way to get a Linux kernel driver in place. And we a comfortable with
it as an environment. We already use it as a diskless OS in data
collection sub-systems and as the desktop in our measurement systems.

I currently use a board where I need to run the TCP stack myself.
Having a complete network available is something we have really
wanted.

-- 
Roger Oberholtzer
-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to