Beken 2421 initialization

More
26 May 2016 20:19 #49319 by van Zyl
Beken 2421 initialization was created by van Zyl
I am a noob at this, so please be kind.

I am trying to write the receiver side of the SymaX protocol. In my debugging I resorted to studying the Beken 2421 datasheets. I found what seems be a problem with the initialization of the RF module. (see links at bottom to datasheets)

Here is the code from symax_nrf24l01.c It shows (approximately) correct values for the first 5 registers, but the values for registers 0x0C - 0x0E are reversed.

Which are right?

NRF24L01_WriteRegisterMulti(0x00, (u8 *) "x40x4Bx01xE2", 4);
NRF24L01_WriteRegisterMulti(0x01, (u8 *) "xC0x4Bx00x00", 4);
NRF24L01_WriteRegisterMulti(0x02, (u8 *) "xD0xFCx8Cx02", 4);
NRF24L01_WriteRegisterMulti(0x03, (u8 *) "x99x00x39x21", 4);
NRF24L01_WriteRegisterMulti(0x04, (u8 *) "xF9x96x82x1B", 4);
NRF24L01_WriteRegisterMulti(0x05, (u8 *) "x24x06x7FxA6", 4);
.
.
.
NRF24L01_WriteRegisterMulti(0x0C, (u8 *) "x00x12x73x00", 4);
NRF24L01_WriteRegisterMulti(0x0D, (u8 *) "x46xB4x80x00", 4);
NRF24L01_WriteRegisterMulti(0x0E, (u8 *) "x41x10x04x82x20x08x08xF2x7DxEFxFF", 11);


Datasheet: halckemy.s3.amazonaws.com/uploads/docume...337/Beken-BK2421.pdf

Application notes in Chinese: www.google.com/url?sa=t&rct=j&q=&esrc=s&...m=bv.122852650,d.cWw

Please Log in or Create an account to join the conversation.

More
26 May 2016 22:07 #49328 by hexfet
Replied by hexfet on topic Beken 2421 initialization
The registers are set to the same values used by the stock transmitter according to the SPI captures in this thread . Whether the stock tx or the datasheet is right is not known.

If any are backwards it must not make a difference. I have a Beken chip in my Devo, and it works fine with my Syma X12.

Please Log in or Create an account to join the conversation.

Time to create page: 0.037 seconds
Powered by Kunena Forum