Hi Neocronos,
the 802.15.4 MACPHY codebase is a MAC - Media Access Controller and does not provide you with network layer functionality like ZigBee Does.
The MyWirelessApp provide you a good startng point, which works with 1 coordinator and 1 end device.
the MyStarNetworkApp provides you a good starting point for a star network.
But in the MyWirelessApp there is no addressing scheme (you need to program your own). If you look at the function App_SendAssociateResponse() you will see that when ever a node joins the 0x0001 address is always supplied:
/* Assign a short address to the device. In this example we simply
choose 0x0001. Though, all devices and coordinators in a PAN must have
different short addresses. However, if a device do not want to use
short addresses at all in the PAN, a short address of 0xFFFE must
be assigned to it. */
if(pMsgIn->msgData.associateInd.capabilityInfo & gCapInfoAllocAddr_c)
{
/* Assign a unique short address less than 0xfffe if the device requests so. */
pAssocRes->assocShortAddress[0] = 0x01;
pAssocRes->assocShortAddress[1] = 0x00;
}
else
If you need more devices joining you should make your own addressing scheme and re-program this code.
I can only recommend that you look at the MyStarNetworkApp as an example.
BR,
Mads