Simulation of Zigbee devices

Simulating Zigbee device(Motion sensor etc) packets for joining to ST HUB.
Any idea regarding this, how we need to form a zigbee packet and send to Hub directly?

Thanks
Satya