Pradeepa 1 Posted May 5, 2013 Share Posted May 5, 2013 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. Quote Link to post Share on other sites
Pradeepa 1 Posted May 6, 2013 Author Share Posted May 6, 2013 No one??? Quote Link to post Share on other sites
reaper7 67 Posted May 6, 2013 Share Posted May 6, 2013 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) Quote Link to post Share on other sites
Pradeepa 1 Posted May 7, 2013 Author Share Posted May 7, 2013 So what are my options? Quote Link to post Share on other sites
reaper7 67 Posted May 7, 2013 Share Posted May 7, 2013 try running Enrf24 lib on Stellaris Quote Link to post Share on other sites
Pradeepa 1 Posted May 8, 2013 Author Share Posted May 8, 2013 Ok will try to port and come back. Thank you. Quote Link to post Share on other sites
Pradeepa 1 Posted May 15, 2013 Author Share Posted May 15, 2013 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? Quote Link to post Share on other sites
reaper7 67 Posted May 15, 2013 Share Posted May 15, 2013 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? Quote Link to post Share on other sites
spirilis 1,265 Posted May 17, 2013 Share Posted May 17, 2013 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) Quote Link to post Share on other sites
L293D 11 Posted May 18, 2013 Share Posted May 18, 2013 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 Quote Link to post Share on other sites
Pradeepa 1 Posted May 19, 2013 Author Share Posted May 19, 2013 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? Quote Link to post Share on other sites
reaper7 67 Posted May 19, 2013 Share Posted May 19, 2013 try to change enrf tx address to "clie1" (in this way it is easier): const uint8_t txaddr[] = { 0x63, 0x6C, 0x69, 0x65, 0x31 }; Quote Link to post Share on other sites
Pradeepa 1 Posted May 19, 2013 Author Share Posted May 19, 2013 did it, but no luck. :\ Quote Link to post Share on other sites
OzGrant 22 Posted May 20, 2013 Share Posted May 20, 2013 Had the same problem, and solved as the Enrf24 lib has been updated(today) and all now works ok. It's on the 430 forum. Pradeepa 1 Quote Link to post Share on other sites
Pradeepa 1 Posted May 21, 2013 Author Share Posted May 21, 2013 http://forum.43oh.com/topic/3237-energia-library-nordic-nrf24l01-library/page-4 This has the answer... Thanks for your help everyone, Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.