Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid argument #4

Open
Lonewoelf opened this issue Jun 24, 2020 · 2 comments
Open

Invalid argument #4

Lonewoelf opened this issue Jun 24, 2020 · 2 comments

Comments

@Lonewoelf
Copy link

Lonewoelf commented Jun 24, 2020

Dear johannesthoma,

First of all thanks for this really well writen driver.
It was up and running on my Beagle Bone Black, really easily.
But whenever I actually try to read a value from the connected HC-SR04 it seems to return Invalid Argument.
Which situations could cause this measurement result?

@johannesthoma
Copy link
Owner

Hi Lonewoelf,

Thank you for your message. Do you think you configured the device
correctly (see README.md a little bit further down). It is very important
to get the GPIO numbers right, please double check that first.

Other than that, there is a HC-SR04 driver in mainline Linux meanwhile
(not my driver unfortunately). It is called srf04.c and is located in
drivers/iio/proximity in the kernel source tree. I never tried that driver
(I don't have the hardware any more) but from reading the source
I can understand that it should be HC-SR04 compatible. Can you
please check with your hardware if this driver is working with the
HC-SR04? I then can put a note in the README.md.

Thanks a lot,

  • Johannes

@Lonewoelf
Copy link
Author

Lonewoelf commented Jun 24, 2020

Hello johannes,

Thanks for the quick reply!

I am sure that I configured the right pins, but I was wondering if the driver might be incompatible with a beaglebone black (running debian)?
I was indeed able to find and compile srf04.c but I have no clue how to configure or actually use it, since it does not show up in /sys/class/.
I'm pretty new to linux drivers so any help would be appreciated.

Thanks in advance,

Lonewoelf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants