Home > OS >  Linux acquisition of PPM signal remote control
Linux acquisition of PPM signal remote control

Time:04-30

I want to remote control by rk3288 PPM signal,

PPM signal description:
PPM signal is put together multiple PWM signal transmission, a PPM the cycle of 20 ms, one of the channel signal range is 1 ~ 2 ms
With low level signal representative of ms 0.5 PPM signal a start signal channel, the following high level signal, in the range of 0.5 ~ 1.5 ms, on behalf of the channel of the PWM duty cycle,
The duty ratio is 0, high level 0.5 ms
50% duty cycle, the high level signal 1 ms
100% duty cycle, duty ratio 1.5 ms

Is simply the PPM signal is 20 ms hair once, then the remote control if to 0, so PPM signal is 20 ms has 0.5 ms is a high level,
, if to the full in the PPM signal is 20 ms has 1.5 ms is a high level,


Now I want to ask is rk3288 can pass the Linux driver to collect the signals of high level of time, such as 0.5 when ms is 0,1.5 ms is 1000
Of course, this need to be very accurate, there can be no error,
Simply need to GPIO 0.5 ms - 1.5 ms high level according to count, 0 ~ 1000

I use the timer on STM32 input capture realized, but I don't want to STM32 to do this collection, may have a way of directly on Linux implementation?
If so, how to implement? thank you
  • Related