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

problem with module MRF24J40MA receipt or send #2

Open
carlosfelipe29 opened this issue Aug 11, 2016 · 2 comments
Open

problem with module MRF24J40MA receipt or send #2

carlosfelipe29 opened this issue Aug 11, 2016 · 2 comments

Comments

@carlosfelipe29
Copy link

Hi, everybody,

I have two modules MRF24J40MA, one with arduino mini, another one with mi Rpi. I run the git codes
mrf24j40_radio.py or mrf24j40_registers.py, but I don't receive any signal on my arduino console.

I have checked the SPI protocols and it is fine.
Is there any function to send a package from SPI-py with MRF24J40MA to another module?.

I appreciate your help on it.

I am new on this, I would like if someone could explain me what mrf24j40_radio.py code does?

Thanks a lot

@carlosfelipe29
Copy link
Author

On the fucntion:
def check_int_reg(self):
int_reg = self.spi.read("INTSTAT")
return int_reg

within the main always appers on Zero (0) the result of radio.check_int_reg()

@mstaflex
Copy link
Owner

Hi!

The scripts in this repo are not meant as full abstraction of the hardware.. They are meant as library abstractions of the Spi and register access..
You will still need to dig into the functionality of the Mrf24j40 consulting the data sheet.
Simply calling the scripts should not result in any meaningful output.
But you can start with using the radio component (which is the most abstract one) and go from there.
The init procedures that it calls should put the modules in a valid state from where it is relatively simple to proceed.

Check the section non-beacon mode in the datasheet and follow the instructions there.

If you achieve your goals, please feel free to back-contribute a full example here for example..

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