| With the rapid developing of communication and network technology, a lots of people pay more attention to smart clothing. It is necessary for Wireless Body Area Network as the support of smart clothing at communication area to be researched. As the result of research, it not only could promote the development of smart clothing, but also could provide a useful reference to IEEE 802.15.6 standard. And it both have the important value in practice and theory.This paper focuses on Wireless Body Area Network. Firstly, it introduced the IEEE802.15.6standard further, and analyzed the MAC access protocol, then compared four MAC protocols,namely, Slot-Aloha, CSMA/CA, S-MAC, T-MAC. It explained the four reasons of the energy consumption in MAC layer. They are idle listening, collision conflict, overhearing, excessive information of control. According to different data traffic in the medical Wireless Body Area Network, we proposed a MAC protocol based on data traffic priorities. The use of priorities depends on different data rate or different data arriving time. The MAC protocol is used to avoid date collision conflict, and reduces energy consumption. In this paper we simulated two circumstances:one is set up three priorities in the whole network, and another is set the whole network a priority. The result shows that setting only one priority is a better choice when low delay was required in network, and the lower priority, the lower delay. Setting the variety of priority is better when the higher ratio of throughput and energy consumption are required in the network. So the priority should be made the appropriate adjustments according to the specific requirements of the network.At last, we designed a turn signal smart clothing based on Lilypad Arduino microcontorller.we designed the circuit diagram of this smart clothing, and programmed about the turn signal,The result shows that the turn signal is light successful and the mode can changed between day mode and night mode. all the expected design goal is achieved. |