Hi,everyone,
I use the CC1110.Do you know how can I get the Destination address/Source address of a node(maybe AP ,ED or RE) in the network?
Another question,sometimes the network will lose the message(only sender works but receiver can't receive or the two device can't link) after it communicates for a while successfully.Do you know what cause the problem?
Thank you very much!
Hi.
There is no mechanism to pull the dest/source address out of the SimpliciTI frame, so this have to be incorporated at the application layer. Use the appripriate SMPL_Ioctl to get the address of each node.
Kjetil
--PS. Thank you for clicking Verify Answer if this answered your question!
Hi,
The LinkID will have the value 0x00 by the codes as memset(addr.addr, 0x0, NET_ADDR_SIZE);
and the address will be relayed to ioctl by the codes as ioctl_info.send.addr = &addr;
in the fuction it will be used as a destnation address by the codes as smplStatus_t nwk_rawSend codes as memcpy(MRFI_P_DST_ADDR(&pOutFrame->mrfiPkt), info->addr, NET_ADDR_SIZE);
So what I don't understand is why the value 0x00 is used as the DST_Addr finally.
I did not know how the protocol tells the ED its destination device because there seems like no explicit codes the explicit address of destinaton device is not shown .
Can you tell me why the protocol build the link just use the LinkID with value of 0x00?
Chad
Chad,
First of all, seems you are running a older version of SimpliciTI. You should consider upgrading.
In the link process, a end device that does a SMPL_Link() do not know at this time who is going to respond and eventually link. So the link request is something that needs to be broadcast to every device in range. The broadcast address used in SimpliciTI in earlier versions where 0x00 (the latest version this is set by the mrfiBroadcastAddr[] ). Once a device responds to this link request, the connection table is populated with the destination address for this given link.
Have attached a packet sniffer picture that shows this process. Would recommend getting access to a sniffer as this simplifies the development.