SAMR21 Generic TX RX

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello all, i'm using the SamR21 as a generic TX and RX, but i'm not receving the right message, i would like know if someone know where exactly i get the right package.

 

In TX i'm just using the example code, to send every 5s "A"

TX 

 

void usr_wireless_app_task(void)
{
    // TODO (Project Wizard) - Add application tasks here.
    // This function will be called repeatedly from main.c. (Refer to function app_task(), WirelessTask() in main.c)
    // The following code demonstrates transmission of a sample packet frame every 1 second.

    

#ifdef TRANSMITTER_ENABLED        
        // This code block will be called only if the transmission is enabled.
        transmit_sample_frame((uint8_t*)"A", 1);    
        delay_ms(5000);
    #endif

 

}
 

But in the RX side i'm trying to use 

 

uint8_t *receive_value;
        

receive_value = frame->mpdu;      
        
        port_pin_set_output_level(PIN_PA19,false);
        delay_ms(100);
        port_pin_set_output_level(PIN_PA19,true);

 

But in the debug i didn't see nothing in any place.

in RX i'm working as PROMISCUOUS_MODE

just a simple TX and RX.

 

thanks a lot

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hey, 

 

If you go to the link ->  https://www.microchip.com/webdoc/GUID-16A6E967-ABB5-42D8-BBED-6F0DBB16B126/index.html?GUID-4E7AE0EB-F0A7-4290-A86D-9D2EDDC1F493  and select -> 

IEEE 802.15.4 MAC Wireless Project Wizard -> Transmit/Receive Page you will find 2 options to set the device in Promiscuous or Normal mode.

 

You can configure the IEEE project with promiscuous mode enabled. the example project might help you in debugging your issue

a phoenix will rise from the ashes at the right time and at the right place