Hi, I have some question about usage of SimpliciTI for a star network topology, in which the AP is always on and the ED are battery powered, so they turn on only sometimes to transmit a small packet of data and get back another packet of data.
- In this link is stated that in SimpliciTI V1.1 and V1.2 is not possible to get remote remote peer address, but I found the nwk_getConnInfo function that, given a linkID_t, returns a connInfo_t structure, which in turn contain a peerAddr field. Function prototype is contained into nwk.h (implementation in nwk.c) and file has following header:
Filename: nwk.h
Revised: $Date: 2008-05-06 16:48:33 -0700 (Tue, 06 May 2008) $
Revision: $Revision: 17025 $
It should be part of SimpliciTI V1.1.0. Does this fuction work correcly as expected? Or do we have to use the implementation suggested in the FAQ? - AP code in SEH Sensor Monitor example use a vector of linkID_t to store linked device descriptor. Sample implementation will use a new vector element for each connection request. If an ED connects and then reboots, without saving connection information to be used on subsequent power up, the AP will allocate a new element, even if the ED should be conisdered an "already linked device". Is there a way to obtain a peer address before allocating a linkID_t? This way we can lookup if a device is already linked and reuse the same linkID_t of the previous connection. Should this lookup be part of SimpliciTI stack? Or is this an application feature to be implemented in AP code?
- Radio message exchange request the AP to invoke SMPL_LinkListen to create a linkID_t, then call SMPL_Receive given the linkID_t of the peer to check for a message. The ED sends a message by SMPL_Send (to AP given the linkID_t obtained from SMPL_Link), which is in turn read from AP. Now AP should reply with a response packet. To do so, does AP need to call SMPL_Send and the ED should be blocked onto a SMPL_Receive? linkID_t used for each device is the same obtained from the LinkListen (in AP) o Link (in ED)? Or do we have to exchange roles and perform a LinkListen in the ED and a Link in AP?
Thanks in advance,
Stefano