A power-aware MAC layer protocol for real-time communication in wireless embedded systems