Hello,
I am now using the rf4ce protocol based on jn5168,In order to enhance signal quality, I want to be able to use JN5168's Boost mode. Here I refer to Boosting Wireless range for JN5168 modules to set it up,
#define WRITE_REG32(A, B) *(volatile uint32 *)(A) = (B)
#define READ_REG32(A) *(volatile uint32 *)(A)
PRIVATE void vApplyBoostMode(void )
{
WRITE_REG32(0x2001e28,0x3);
WRITE_REG32(0x2001e68,0x280000);
WRITE_REG32(0x2001e70,0x46ca10);
uint32 u32Temp = READ_REG32(0x2001e54);
u32Temp = (u32Temp | 0x700);
WRITE_REG32(0x2001e54,u32Temp);
}
But I find that the function stays at the first command when it is executed and cannot be executed later.So I want to know if there's any other way to turn on JN5168's boost mode.
The sdk is JN-SW-4060
The work is JN-AN-1200-ZigBee-RF4CE-Application-Template
Hi Tianheng, I hope you're doing well!
I'm really sorry for the inconvenience this may cause, but unfortunately, RF4CE for the JN5168 is no longer supported.
A custom cluster can be used to enable similar functionality to RF4CE. I can link you to a guide explaining how to add clusters to the ZigBee Stack for the JN5168:
https://community.nxp.com/docs/DOC-335075
Please let me know if you need any more information.
Best regards,
Sebastian
Hello,
I used eAppApiPlmeGet(PHY_PIB_ATTR_TX_POWER,u8TxPower) on JN-AN-1200-ZigBee-RF4CE-Application-Template to read the current Tx power of JN5168, and I got a result of “u8TxPower = 128”.That is to say, the current Tx power of jn5168 is -0, I use eAppApiPlmeSet(PHY_PIB_ATTR_TX_POWER, u8TxPower) to set the size of the tx power,such as eAppApiPlmeSet(PHY_PIB_ATTR_TX_POWER,1),The return value is successful, at which point i read that the current Tx power becomes “u8TxPower = 129”(-1),so it looks like the power is actually reduced instead of increased.according to the document 《JN5168-001-MXX.pdf》 description, the Tx power of JN5168-001-M00/03 can reach 2.5 DB.
So what should i do if i want to achieve 2.5db?