Hello,
I am planning to use CC2592 Range Extender with CC2530 with ZigBee Light Link Stack. For this I want to know if there is any support for integrating CC2592 with CC2530 using ZigBee Light Link.
Regards,
Aijt Wadekar
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I am planning to use CC2592 Range Extender with CC2530 with ZigBee Light Link Stack. For this I want to know if there is any support for integrating CC2592 with CC2530 using ZigBee Light Link.
Regards,
Aijt Wadekar
Dear Yikai,
As suggested by you, I have done following changes in order to enable support for CC2592 with CC2530 in Zigbee Light Link
1) Add ZMacSetTransmitPower(TX_PWR_PLUS_19) in zllSampleLight_Init( byte task_id )
2) In mac_radio_defs.c I have changed
/* P1_4 -> EN (LNA control) */
RFC_OBS_CTRL1 = RFC_OBS_CTRL_LNAMIX_PD_INV;
OBSSEL4 = OBSSEL_OBS_CTRL1;
with
/* P1_0 -> EN (LNA control) */
RFC_OBS_CTRL1 = RFC_OBS_CTRL_LNAMIX_PD_INV;
OBSSEL0 = OBSSEL_OBS_CTRL1;
3) And Hardware connection as shown in
Are these changes enough to completely enable support of CC2592 with CC2530 in ZLL? Because even after doing above changes it is not working.
Also, I have tested hardware by testing it with Z-Stack HA SmapleLight Code.
Regards,
Ajit Wadekar
Dear Yikai,
As mentioned in previous post I have verified it using Z-Stack HA SampleLight with HAL_PA_LNA_CC2592 enabled.
Regards,
Ajit Wadekar
Dear Yikai,
What is the difference between SampleLight-Zlight and SampleLight-EB in ZigBee light link?
Dear Yikai,
That is the problem I did check it by setting the break point at hwLight_UpdateLampColor() function and debugger does hit the function and timers are also called from here, but no action at the end.
Dear Yikai,
Can you please look into the original ZLL code and help me to check what is disable when HAL_PA_LNA is defined.
Regards,
Ajit Wadekar
Dear Yikai,
I have checked it on Oscilloscope there is no output on PWM.
Here the register value should be the following with INIT_PWM_PINS defined
#define INIT_PWM_PINS() \
{ \
PERCFG &= ~(0x40); /* bit 6 = 0 */ \
P0SEL |= ( 0x08 | 0x10 | 0x20 | 0x40); /* P0.3:6 */ \
P0DIR |= ( 0x08 | 0x10 | 0x20 | 0x40); /* P0.3:6 */ \
}
Sir here there are two hal_board_cfg.h files one for CC2530 and other for CC2531. Can you please tell me which hal_board_cfg.h file is used for Z-Light Router?
Add the following red code to HAL_BOARD_INIT() in hal_board.cfg.h under C:\Texas Instruments\Z-Stack Lighting 1.0.1\Components\hal\target\CC2530PMP4712 and it should fix your problem.
#elif defined (HAL_PA_LNA) || defined (HAL_PA_LNA_CC2590)
#define HAL_BOARD_INIT() \
{ \
uint16 i; \
\
SLEEPCMD &= ~OSC_PD; /* turn on 16MHz RC and 32MHz XOSC */ \
while (!(SLEEPSTA & XOSC_STB)); /* wait for 32MHz XOSC stable */ \
asm("NOP"); /* chip bug workaround */ \
for (i=0; i<504; i++) asm("NOP"); /* Require 63us delay for all revs */ \
CLKCONCMD = (CLKCONCMD_32MHZ | OSC_32KHZ); /* Select 32MHz XOSC and the source for 32K clock */ \
while (CLKCONSTA != (CLKCONCMD_32MHZ | OSC_32KHZ)); /* Wait for the change to be effective */ \
SLEEPCMD |= OSC_PD; /* turn off 16MHz RC */ \
\
/* Turn on cache prefetch mode */ \
PREFETCH_ENABLE(); \
/* Set UART1 I/O to alternate 2 location on P1 pins. */ \
PERCFG |= 0x02; /* U1CFG */ \
/* Set UART0 I/O to alternate 2 location on P1 pins. */ \
PERCFG |= 0x01; /* U1CFG */ \
\
INIT_PWM_PINS(); \
\
/* Set PA/LNA HGM control P0_7 */ \
P0DIR |= BV(7); \
\
/* setup RF frontend if necessary */ \
HAL_BOARD_RF_FRONTEND_SETUP(); \
}
#endif