Which file i can get port & pin configuration of led connected in light project for toggling,on and off process under home automation in z-stack home 1.2.2?
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.
Which file i can get port & pin configuration of led connected in light project for toggling,on and off process under home automation in z-stack home 1.2.2?
Try to add the following red line in zcl_event_loop().
if ( *msgPtr == AF_INCOMING_MSG_CMD )
{
zcl_ProcessMessageMSG( (afIncomingMSGPacket_t *)msgPtr );
osal_msg_send( zclYourApplicaiton_TaskID, msgPtr );
}
And you should receive AF_INCOMING_MSG_CMD.
You have to define MT_AF_FUNC and MT_AF_CB_FUNC to receive AF_INCOMING_MSG_CMD through hyper terminal.
Do you add the following red line in zcl_event_loop()?
if ( *msgPtr == AF_INCOMING_MSG_CMD )
{
zcl_ProcessMessageMSG( (afIncomingMSGPacket_t *)msgPtr );
osal_msg_send( zclYourApplicaiton_TaskID, msgPtr );
}
Try to revise red part to your sampleDoorLockController_TestEp and test again.
// Test Endpoint to allow SYS_APP_MSGs
static endPointDesc_t sampleDoorLockController_TestEp =
{
SAMPLEDOORLOCKCONTROLLER_ENDPOINT, // Test endpoint
&MT_TaskID,
(SimpleDescriptionFormat_t *)NULL, // No Simple description for this test endpoint
(afNetworkLatencyReq_t)0 // No Network Latency req
};
Here are my transmit sequence and receive response. receiving data through uart is soul of my application. if it doesn't work then i can't do anything in my applicaion. i have tried with different sample applications of original z-stack 1.2.2 and also tried with z-stack version 1.2.1 sample application but same result i.e. no data received.
My problem is solved now. I had made changes as described in the document. Dono why these changes are not done in z-stack.Changes made for AF_INCOMING_MSG response.docx
Sorry, i forgot to include the files.
I didn't mention simultaneous reception in z-tool and hyper terminal but i said its impossible to receive simultaneously. Closing the COM port in one and and opening in other i am doing one by one1488.data.rar.
0x28 is not FCS but last byte is FCS. I had resetted the nwk and then checked again. what i find is SrcAddr gets repeated in the extra three bytes. i have included the response and you can find that beside SrcAddr one byte 0x1D is common in both of these response. Don't know why SrcAddr gets repeated again and where this extra byte 0x1D comes from.
I am sending data through function defined for sending temperature in original z-stack. Just modified pReportCmd->attrList[0].attrData = 0; for testing AFINCOMING_MSG.
zclSampleTemperatureSensor_DstAddr.addrMode = Addr16Bit;
zclSampleTemperatureSensor_DstAddr.endPoint = SAMPLETHERMOSTAT_ENDPOINT;
zclSampleTemperatureSensor_DstAddr.addr.shortAddr = 0;