dinuxbg / pru-gcc-examples

Simple example projects for PRU-GCC
49 stars 12 forks source link

hc-sr04-range-sensor: How to read data from a Beaglebone Black #3

Closed 524c closed 5 years ago

524c commented 5 years ago

Hello,

Can you give me some help to use this example on a Beaglebone Black?

I can run the firmware, but I'm lost on how to read the read data from the hc-sr04-range-sensor example.

dinuxbg commented 5 years ago

Hi. Commands are given at the end of README.md. If you can run the firmware, and your wiring is correct, then you can type the following commands to see the measurement in millimeters:

sudo bash
echo hello > /dev/rpmsg_pru31
cat /dev/rpmsg_pru31 

Press Ctrl+C to exit