Skip to content

Scanner program not working on RPi 3B+ #713

@OldSurferDude

Description

@OldSurferDude

Having issues with ACK not working correctly? Please see common issues.

Describe the bug
A clear and concise description of what the bug is.

The scanner example compiles and runs on the RPi fine, but the output is 0 with random rare 1. The scanner program for the arduino runs as expected.

Please include:

  1. Code to reproduce: current library using example in rf24libs/RF24/examples_linux/extra
  2. Expected behaviour: like that of the Arduino code
  3. What device(es) are you using? Please specify make and model. Arduino Nano, RPi 3B+

Additional context
Add any other context about the problem here.
The process to test is

  1. download libraries
    2.in a terminal, move to folder
  2. make
  3. sudo ./scanner

I use scanner to ensure my wiring is correct. When I got a bad result:

  • I found a loopback test to check MISO and MOSI. This was showed they were wired correctly.
  • I used pigs to bit-bang the other pins (SCLK, CE, CSN) and power was present.
  • I swapped in three different nRF24's that worked on the Nano's
    The hardware was good.

I ran GettingStarted on two Nano's with success
In a similar fashion to how I tried to run scanner, I ran GettingStarted on the RPi3b+ and one Nano with success.

From this I conclude that there is a problem with scanner.

Scanner is not important other than to confirm that the wiring is correct. An unsophisticated diagnostic program that does this function would be OK, read and write a register?

This is low priority

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions