Jump to content
Sign in to follow this  
Pradeepa

Connecting Stellaris launchpad and MSP430 through NRF24L01

Recommended Posts

Good day,

 

I want to connect my Stellaris launchpad and the MSP430 2553 using NRF24L01 transceivers. I found following energia libraries,

 

For MSP430

 

http://forum.43oh.com/topic/3237-energia-library-nordic-nrf24l01-library/

 

For Stelaris launchpad

 

http://forum.stellarisiti.com/topic/464-energia-library-stellarpad-mirf-nrf24l01-library/

 

 

After that I connected the pins of the modules like below,

 

MSP430

 

CE >> P2.0

CSN >> P2.1

SCK >> P1.5

MOSI >> P1.7

MISO >> P1.6

 

Stellaris launchpad

 

 

CE >> PA6

CSN >> PA7

SCK >> PB4

MOSI >> PB7

MISO >> PB6

 

Then i used putty to check whether the transmission is happening. But I think it is not. 

 

MSP430 serial interface gives my this result,

 

 

Enrf24 radio transceiver status: Receive Mode
Received packet:
Enrf24 radio transceiver status: NO TRANSCEIVER PRESENT
Received packet:
Enrf24 radio transceiver status: NO TRANSCEIVER PRESENT
Received packet:
Enrf24 radio transceiver status: NO TRANSCEIVER PRESENT
Received packet:
Enrf24 radio transceiver status: NO TRANSCEIVER PRESENT
Received packet:
Enrf24 radio transceiver status: NO TRANSCEIVER PRESENT
Received packet:
Enrf24 radio transceiver status: NO TRANSCEIVER PRESENT
Received packet:
Enrf24 radio transceiver status: NO TRANSCEIVER PRESENT
Received packet:
Enrf24 radio transceiver status: NO TRANSCEIVER PRESENT
Received packet:
Enrf24 radio transceiver status: NO TRANSCEIVER PRESENT
Received packet:
Enrf24 radio transceiver status: NO TRANSCEIVER PRESENT
Received packet:
Enrf24 radio transceiver status: NO TRANSCEIVER PRESENT
Received packet:
Enrf24 radio transceiver status: NO TRANSCEIVER PRESENT
Received packet:
Enrf24 radio transceiver status: Receive Mode
Received packet:
 

Stellaris launchpad gives me following result

 

 

Timeout on response from server!
Finished sending
 

I'm not sure whether I am doing this correctly. Can someone please help me through. 

 

Share this post


Link to post
Share on other sites

first - msp Enrf24 lib have problem with read NRF24L01 register (maybe try miso,mosi swap?)

second - for me these two libraries will not work properly(one as a transmitter and second as receiver)

Share this post


Link to post
Share on other sites

 

second - for me these two libraries will not work properly(one as a transmitter and second as receiver)

 

Any reason for this? As i understood the transmission and reception part on wireless media is done entirly by the module and what we need to do is reading from the registers right?

Share this post


Link to post
Share on other sites

These two libraries are using different addressing schemes (in examples):

enrf:

const uint8_t txaddr[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0x01 };
radio.setTXaddress((void*)txaddr);

mirf:

Mirf.setRADDR((byte *)"clie1");

so,

1. You must set correct address on tx and rx

2. payload length and channels must be the same

3. maybe datarate too (250k,1M,2M) ??

 

I'm not a specialist, I don't use enrf.

 

Any progress with port enfr??

 

 

OT. why do You write about the same problem in two threads?

Share this post


Link to post
Share on other sites

FWIW, there shouldn't be anything stopping you from doing radio.setTXaddress((byte *)"clie1");

 

The Enrf24 library also mandates use of Dynamic Payload extensions on the chip.  It supports any of the 3 data rates.

I haven't personally tried Enrf24 on stellaris but I don't see why it wouldn't work.  It doesn't actively use the IRQ subsystem, requires the user to poll the IRQ line manually (using radio.available(true)) and otherwise uses the Arduino/Energia primitives for everything.  I have a Stellaris LaunchPad but have never used it for anything.  Might give it a spin soon.

 

(I am the developer of Enrf24 fyi)

Share this post


Link to post
Share on other sites

Spirilis - If you do happen to get your lib working with the Stellaris, please share it :-)

 

I posted in the libraries section of this forum a day or two ago asking if anyone had/could port it to the Stellaris.

 

L293D

Share this post


Link to post
Share on other sites

FWIW, there shouldn't be anything stopping you from doing radio.setTXaddress((byte *)"clie1");

 

The Enrf24 library also mandates use of Dynamic Payload extensions on the chip.  It supports any of the 3 data rates.

I haven't personally tried Enrf24 on stellaris but I don't see why it wouldn't work.  It doesn't actively use the IRQ subsystem, requires the user to poll the IRQ line manually (using radio.available(true)) and otherwise uses the Arduino/Energia primitives for everything.  I have a Stellaris LaunchPad but have never used it for anything.  Might give it a spin soon.

 

(I am the developer of Enrf24 fyi)

 I tried changing the address of the Mirf client. I even posted on 43oh on this. But had no luck. Also, even without the correct address your channel scanning should show available signals right? Or am i missing something?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...