Hi everyone.
I'm a newbie about zigbee.
I have one kit eZ430 with cc2530znp use msp430 microcontroller and one kit SmartRF06EB/BB Board cc2538.
So how to connect it together.
Can you give me example code of above problem
Thanks so much...
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.
Hi YiKai Chen and everyone,
Can I send data from eZ430znp mini kit to cc2538 with smartrf06. Where: eZ430znp is End Device and smartrf06 is Coordinator. Because i see that message format of them is difference.
Can you help me above problem
p/s: In z430znp i want to use void
afSendData(unsigned char destinationEndpoint, unsigned char sourceEndpoint, unsigned int destinationShortAddress, unsigned int clusterId, unsigned char* data, unsigned char dataLength);
and in smartRF06 i use below function to get data
void GenericApp_MessageMSGCB( afIncomingMSGPacket_t *pkt )
{
HalLcdWriteString( (char*)pkt->cmd.Data, HAL_LCD_LINE_6 );
switch ( pkt->clusterId )
{
case SAMPLELIGHT_CLUSTERID:
HalLcdWriteString( (char*)pkt->cmd.Data, HAL_LCD_LINE_6 );
break;
}
}
Thanks so much
It is definitely no problem using afSendData to send message from eZ430znp to cc2538. You just need to fill correct parameters.
Hi YiKai Chen
Can you tell me how to config cc2538 to receive massage from eZ430. I try configuring but not success.
Step by step in eZ430:
startZnp(END_DEVICE); //initial Device is End Device
and i use function: afSendData(0x00,DEFAULT_ENDPOINT,0xFFFF, 2, "test",4); to send cc2538 is ZC
thanks so much
This ís my problem. I thing it was connected because when eZ430 connect, if success Led in kit will toggle. And i use again project SampleLight to make ZC, i don't change code about binding of it. I just change code about getting data when message comming
thanks
I would suggest you using packet sniffer to check if your ZED joins ZC. If yes, check if the message is sent out from ZED.
The above image which i use Packet Sniffer when ez430znp send messages to SimpleLight project use cc2538. what does it mean? Does your ZED join ZC already?
I still cant get message from ez430znp.
I caught messages by following:
In ez430znp, i used: afSendData(0x01,DEFAULT_ENDPOINT,0, 0x21, "TestHung1", 8);
In function: uint16 zcl_event_loop( uint8 task_id, uint16 events )
if ( *msgPtr == AF_INCOMING_MSG_CMD )
{
GenericApp_MessageMSGCB( msgPtr );
}
But it isn't work.
Can't you help me? Thanks
No, I don't know why. Which Z-Stack example do you use in your test? Do you modify anything in ZStack?
Hi,
cc2538, i use SampleLight project in Home Automation 1.2.0. and eZ430znp i use example code for CC2530ZNP Mini Kit
I have another question. How to binding between cc2538 and eZ430znp.
Thanks