µØÏ»ðÔÖ±¨¾¯ÏµÍ³Éè¼ÆÒ»Ö±ÒÔÀ´ÊÇÑо¿µÄÈȵ㣬֮ǰÉè¼ÆµÄϵͳ´ó¶à²ÉÓÃÓÐÏßÁ¬½Ó£¬µ«ÓÉÓÚÒõ°µ¡¢³±ÊªµÄµØÏ»·¾³£¬Ïß·ÈÝÒ׸¯Ê´µ¼ÖÂϵͳʧЧ¡£Îª´Ë£¬ÎÒÃÇÔÚ¶ÔÏÖÓлðÔÖ¼à¿ØϵͳºÍÎÞÏß´«¸ÐÆ÷ÍøÂçÑо¿µÄ»ù´¡ÉÏ£¬¿¼Âǵ½¿Ó¡¢µØµÀʽÈË·À¹¤³ÌµÄÌØÊâ»·¾³£¬Éè¼ÆÁËÒ»ÖÖÎÞÏß»ðÔÖ¼à¿Øϵͳ¡£
1 ϵͳµÄ×ÜÌå·½°¸
¸Ã¼à¿ØϵͳÖ÷Òª¶Ô¿Ó¡¢µØµÀʽÈË·À¹¤³ÌÎÂʪ¶È¡¢»ðÔÖÐÅÏ¢£¨ÑÌÎí²ÎÊý£©½øÐмà²â¡£ÏµÍ³ÓÉÖնˡ¢ÎÞÏßÍø¹Ø¡¢Â·Óɽڵ㼰´«¸ÐÆ÷½Úµã×é³É£¬Èçͼ1Ëùʾ¡£´«¸ÐÆ÷½ÚµãÖ÷ÒªÓÉÈô¸É»ðÔÖ̽²âÆ÷×é³É£¬Â·ÓÉÊÇÐÅÏ¢µÄÖмÌÕ¾£¬¸ºÔ𽫾àÀëÍø¹Ø½ÏÔ¶µÄ´«¸ÐÆ÷½ÚµãµÄ±¨¾¯ÐźŴ«µÝ¸øÍø¹Ø£¬Íø¹ØÊÇËùÓнڵãÐÅÏ¢µÄ»ã¾Ûµã£¬¸ºÔð½«ÊÕµ½µÄÐÅϢͨ¹ý´®¿ÚÏò PC »ú·¢ËÍ¡£
̽²âÆ÷ͨ¹ý̽²â»ðÔÖÌØÕ÷²ÎÊýÅжϻðÔֵķ¢Éú£¬Ò»µ©ÅжϳöÓлðÔÖ·¢Éú£¬Ôò½øÐÐ×Ô¶¯±¨¾¯£¬²¢½«Êý¾ÝÐÅÏ¢°üÀ¨·¢³ö±¨¾¯µÄ´«¸ÐÆ÷½ÚµãµØÖ·£¬Í¨¹ýÉäƵ·¢ËÍÆ÷Öն˿ØÖÆÆ÷·¢ËÍ¡£Öն˿ÉÒÔÓÉһ̨¼ÆËã»úÀ´µ£ÈΣ¬¼ÆËã»úÔËÐÐÌض¨Èí¼þ£¬¸ºÔð·ÖÎö´¦Àí̽²âÆ÷½Úµã·¢Ë͹ýÀ´µÄÊý¾Ý£¬²¢ÇÒ¿ÉÒÔʵʱµØÏÔʾ¼à¿ØÇøÓòµØϵÄÇé¿ö¡£ÁíÍ⣬¿ÉÒÔͨ¹ý»ùÕ¾¶ÔÕû¸öÍøÂçÖеĽڵã̽²â²ÎÊý½øÐÐÅäÖõ÷Õû£¬±£Ö¤²»Í¬Çé¿öÏ»ðÔÖ±¨¾¯µÄ׼ȷÐÔ¡£
2 ϵͳӲ¼þÉè¼Æ
ÍøÂçÖÐÿ¸ö½Úµã¾ùÒÔ CC2420 Ϊ¿ØÖƺËÐÄ¡£CC2420 ÊÇ·ûºÏ2.4GHz IEEE802.15.4±ê×¼µÄÉäƵÊÕ·¢Æ÷¡£Ëü»ùÓÚChipcon¹«Ë¾µÄSmartRF 03¼¼Êõ£¬ÒÔ0.18 ¦Ìm CMOS ¹¤ÒÕÖƳɣ¬Ö»Ð輫ÉÙÍⲿԪÆ÷¼þ£¬ÐÔÄÜÎȶ¨ÇÒ¹¦ºÄ¼«µÍ¡£CC2420 µÄÑ¡ÔñÐÔºÍÃô¸ÐÐÔÖ¸Êý³¬¹ýÁËIEEE802.15.4±ê×¼µÄÒªÇ󣬿ÉÈ·±£¶Ì¾àÀëͨÐŵÄÓÐЧÐԺͿɿ¿ÐÔ¡£
2.1 ´«¸ÐÆ÷½ÚµãÉè¼Æ
Õë¶Ô¿Ó¡¢µØµÀʽÈË·À¹¤³Ì»ðÔÖÔçÆÚ̽²â£¬´«¸ÐÆ÷Ä£¿é¿ÉÒÔÓÉζȡ¢ÑÌÎíÒÔ¼° COÆøÌåµÈ´«¸ÐÆ÷×é³É¡£±¾ÂÛÎĵĴ«¸ÐÆ÷Ä£¿éÓÉÎÂʪ¶È´«¸ÐÆ÷Ä£¿éºÍ¹âµçÐÍÑÌÎí̽²âÄ£¿éÁ½²¿·Ö×é³É£¬¿ÉÒÔʵÏÖÎÂʪ¶ÈµÄ²âÁ¿ºÍÑÌÎí̽²â¡£ÎÂʪ´«¸ÐÆ÷²ÉÓÃSHT11£¬Ëü²ÉÓöÀÌØµÄ CMOSens TM¼¼Êõ£¬¾ßÓÐÊý×ÖʽÊä³ö¡¢Ãâµ÷ÊÔ¡¢Ãâ±ê¶¨¡¢ÃâÍâΧµç·¼°¿¹¸ÉÈÅÄÜÁ¦Ç¿µÄÌص㣬ֻÐèÒ»ÌõʱÖÓÏߺÍÒ»ÌõÊý¾ÝÏ߾ͿÉÒÔ°Ñ´«¸ÐÆ÷²É¼¯µ½µÄÎÂʪ¶È´«¸øCC2420¡£Æä½á¹¹¿òͼÈçͼ2Ëùʾ¡£¹âµçÐÍÑÌÎí̽²âÄ£¿éÊÇͨ¹ýÒ»¶ÔºìÍâÏß·¢ÉäºÍ½ÓÊÕ¶þ¼«¹ÜʵÏֵġ£Õý³£Çé¿öÏ£¬Ã»ÓÐÑÌÎí½øÈë¹âѧ̽²âÊÒ¶þ¼«¹Ü·¢³öµÄºìÍâ¹âÏß±»¹âѧÃÔ¹¬ÎüÊÕ£¬½ÓÊÕ¶þ¼«¹Ü½ÓÊÕ²»µ½¹âÏß¡£»ðÔÖ·¢Éúʱ£¬ÓÐÑÌÎí¿ÅÁ£½øÈë¹âѧ̽²âÊÒ£¬Ê¹ºìÍâ¹âÏß·¢ÉúÉ¢É䣬½ÓÊÕ¶þ¼«¹ÜÊÕµ½É¢Éä¹âÏߣ¬²úÉúµçÁ÷Ðźţ¬¾¹ý·Å´óºóÓÉ SIG Òý½ÅÊä³ö£¬Ë͸ø Atmegal28 ¾¹ý AD ת»»ºó½øÐÐÏà¹Ø´¦Àí¡£PULSEÒý½Å½ÓAtmega128µÄI/O Òý½Å£¬¿ØÖƺìÍâ·¢Éä¶þ¼«¹ÜµÄ¿ªÆôÓë¹Ø±Õ¡£
ͼ2ÖÐSCKºÍDATA Òý½Å·Ö±ðÊÇ´®ÐнӿÚʱÖÓÏߺÍÊý¾ÝÏߣ¬Á¬½Ó Atmega128 ÏàÓ¦µÄÒý½Å¡£
2.2 Íø¹Ø½ÚµãµÄÉè¼Æ
Íø¹Ø½ÚµãÊǽ«ËùÓнڵãÊý¾Ý»ã×Ü¡¢·ÖÎö¡¢´æ´¢ºÍ·¢Ë͵Ļú¹¹¡£ËüÓë¼ÆËã»úÖ®¼äÀûÓÃRS232Òì²½´®¿Ú½øÐÐͨÐÅ£¬Èçͼ3 Ëùʾ¡£Æ书ÄÜÏ൱ÓÚ 1¸ö½ÓÈëµã£¬Ò»·½Ã潫Ö÷»úÏò´«¸ÐÆ÷½Úµã·¢Ë͵ĿØÖÆÐźÅÒÔÎÞÏߵķ½Ê½·¢Éä³öÈ¥£¬ÁíÒ»·½Ã潫´«¸ÐÆ÷½Úµã²É¼¯µÄ»ðÔÖ²ÎÁ¿´«Ë͸øÖ÷»ú¡£
ͼ3ÖУ¬´®¿ÚÄ£¿éÊÇ CC2420 Óë¼à¿ØÖ÷»úµÄͨÐŽӿڣ¬¸ºÔð½«ÊÕµ½µÄ±¨¾¯ÐÅÏ¢Ë͸øÖ÷»úÏÔʾ£¬Í¬Ê±»¹´«ËÍÖ÷»ú·¢¸øÍø¹ØµÄ¿ØÖÆÃüÁî¡£
3 ϵͳÈí¼þÉè¼Æ
Èí¼þÉè¼Æ°üÀ¨ÈýÖÖÀàÐͽڵãµÄÉè¼Æ£¬Í¬Ê±Îª²Ù×÷ÈËÔ±Äܹ»Ö±¹ÛµØÔÚ¼à¿ØÖ÷»úÉϼì²â¸÷¸öÇøÓòµÄ»ðÔÖÌØÕ÷Ðźš£´«¸ÐÆ÷½Úµã¡¢Â·ÓɺÍÍø¹Ø½Úµã¶¼ÊÇ»ùÓÚZigBee ÐÒéÕ»½øÐÐÉè¼ÆµÄ¡£ZigBeeÐÒéÕ»µÄ¹¹¼ÜÈçͼ4 Ëùʾ¡£ÒªÊµÏÖ½ÓÊÕÀ´×ÔÆäËû½ÚµãµÄÐÅÏ¢£¬È»ºóÑ°ÕÒ×îÓÅ·¾¶½øÐд«µÝ£¬Í¬Ê±»¹ÊµÏÖ´«¸ÐÆ÷½ÚµãµÄ²¿·Ö¹¦ÄÜ£»Íø¹Ø½ÚµãµÄÓ¦ÓòãÖÐʵÏÖ°üÀ¨ÍøÂçµÄ×齨¡¢¶Ô¼ÓÈëÍøÂçµÄ½ÚµãÍøÂçµØÖ·µÄ·ÖÅä¼°ÓëPC»úµÄͨÐÅ¡£
Ó¦ÓòãÖеĸ÷¸ö¹¦ÄܲÉÓÃʼþ´¥·¢µÄÐÎʽÀ´ÊµÏÖ£¬¸ù¾Ý¹¦ÄܵÄÒªÇóÔÚÊʵ±µÄλÖõ÷ÓÃʼþ´¥·¢º¯Êý£¬ÊµÏÖÏàÓ¦µÄ¹¦ÄÜ¡£ÍøÂç²ã°üº¬ÁËÍøÂç²ãµÄÅäÖòÎÊýºÍÍøÂç²ã¿âº¯Êý½Ó¿ÚÎļþ£¬Ö÷ҪʵÏÖÍøÂçά»¤¡¢ÍøÂç²ãÊý¾ÝµÄ·¢ËÍÓë½ÓÊÕ¡¢Â·ÓÉÑ¡ÔñÒÔ¼°¹ã²¥Í¨ÐŹ¦ÄÜ¡£MAC²ãºÍÎïÀí²ã¶¼ÊDzÉÓÃIEEE802.15.4 ±ê×¼£¬MAC ²ã¸ºÔð´¦ÀíËùÓеÄÎïÀíÎÞÏßÐŵÀ·ÃÎÊ£¬²¢²úÉúÍøÂçÐźš¢Í¬²½Ðźţ»Ö§³ÖPAN Á¬½ÓºÍ·ÖÀ룬ÌṩÁ½¸ö¶ÔµÈ MAC ʵÌåÖ®¼ä¿É¿¿µÄÁ´Â·¡£ÎïÀí²ã¶¨ÒåÁËÎïÀíÎÞÏßÐŵÀºÍ MAC ×Ó²ãÖ®¼äµÄ½Ó¿Ú£¬ÌṩÎïÀí²ãÊý¾Ý·þÎñºÍÎïÀí²ã¹ÜÀí·þÎñ¡£ÐÒéµÄ¸÷²ãÖ®¼äͨ¹ý²Ù×÷ϵͳÀ´ÊµÏÖÎȶ¨¿É¿¿µÄÐ×÷¡£
3.2 ´«¸ÐÆ÷½ÚµãÈí¼þÉè¼Æ
´«¸ÐÆ÷½ÚµãµÄ¹¦ÄÜÊÇʵʱ²É¼¯µØÏ»ðÔÖ²ÎÁ¿Ðźţ¬°üÀ¨Î¶ȡ¢ÑÌÎíŨ¶È£¬²¢ÇÒ¶Ô»ðÔÖ²ÎÁ¿½øÐзÖÎö£¬ÅжÏÊÇ·ñÊÇ»ð¾¯Ðźš£Èç¹ûÊǾÍÏòÍø¹Ø·¢Ëͱ¨¾¯Ðźţ¬ÓÉÍø¹Ø֪ͨ¼à²âÈËÔ±¡£Á÷³ÌÈçͼ5Ëùʾ¡£
3.3 ·ÓɽڵãµÄÈí¼þÉè¼Æ
´«¸ÐÆ÷½ÚµãµÄ¹¦ÄÜÊÇʵʱ²É¼¯µØÏ»ðÔÖ²ÎÁ¿Ðźţ¬°üÀ¨Î¶ȡ¢ÑÌÎíŨ¶È£¬²¢ÇÒ¶Ô»ðÔÖ²ÎÁ¿½øÐзÖÎö£¬ÅжÏÊÇ·ñÊÇ»ð¾¯Ðźš£Èç¹ûÊǾÍÏòÍø¹Ø·¢Ëͱ¨¾¯Ðźţ¬ÓÉÍø¹Ø֪ͨ¼à²âÈËÔ±¡£Á÷³ÌÈçͼ5Ëùʾ¡£
3.3 ·ÓɽڵãµÄÈí¼þÉè¼Æ
ʵ¼Ê°²×°ÖÐijЩµ¥Ôª¾àÀë¼à¿ØÊÒ½ÏԶʱ£¬´«¸ÐÆ÷½Úµã¾Í¿ÉÄÜÎÞ·¨½«±¨¾¯ÐźŴ«Ë͵½Íø¹Ø½Úµã£¬´Ëʱ¾ÍÐèҪ·ÓÉÀ´ÊµÏÖ¡£Â·ÓɵÄÖ÷Òª¹¦ÄÜÊÇΪÐÅÏ¢µÄ´«µÝÌṩ½ÓÁ¦×÷Óã¬À©´óÐźŵĴ«Ê䷶Χ¡£Òò´Ë£¬Ò»°ãÇé¿öÏ£¬ËüÓ¦¸ÃÒ»Ö±´¦Óڻ״̬²»Ó¦ÐÝÃß¡£Â·ÓÉÔÚ½øÐÐÐÅÏ¢´«µÝʱ£¬»áΪ¾¹ýËüµÄÿ¸öÊý¾ÝÖ¡Ñ°ÕÒÒ»Ìõ×î¼Ñ´«Êä·¾¶£¬²¢½«¸ÃÊý¾ÝÓÐЧµØ´«Ë͵½Ä¿µÄ½Úµã¡£Á÷³ÌͼÈçͼ6Ëùʾ¡£
3.4 Íø¹Ø½ÚµãÈí¼þÉè¼Æ
Íø¹Ø½Úµã¸ºÔðÍøÂçµÄ×齨£¬²¢ÇÒ»á¶Ô¼ÓÈëÕâ¸öÍøÂçµÄÉ豸·ÖÅäÍøÂçµØÖ·¡£µ±ÆäËûÀàÐͽڵã¼ÓÈëÍøÂçºó£¬ËüµÄ¹¤×÷Á÷³ÌÊÇ£º¼ÆËã»ú·¢ËÍÃüÁîÒÔºó£¬Íø¹Ø½ÓÊÕÃüÁ¸ù¾ÝÃüÁîÅжϼÆËã»úÐèÒªÄĸö½ÚµãµÄÐÅÏ¢£¬²¢Ïò¸Ã½Úµã·¢ËÍÃüÁîÒªÇ󽫶ÔӦͼ6·ÓɽڵãÁ÷³ÌͼÊý¾Ý´«»ØÍø¹Ø£¬È»ºóÔÙ½«½ÓÊÕµ½µÄÖ¸¶¨½ÚµãµÄÐÅÏ¢°´¼È¶¨¸ñʽ·¢Ë͸ø PC »ú£¬Í¨¹ýPC »úÉϵÄϵͳ×é̬ͼ¿ÉÒԹ۲쵽¸ÃÐÅÏ¢¡£Íø¹Ø½ÚµãµÄ×éÍøÁ÷³ÌÈçͼ7Ëùʾ¡£
4 ½áÓï
Õë¶ÔÄ¿Ç°ÎÒ¹ú¿Ó¡¢µØµÀʽÈË·À¹¤³Ì»ðÔÖ¼à²âϵͳ´æÔÚµÄÎÊÌ⣬Éè¼ÆÁËÒ»ÖÖÎÞÏß»ðÔÖ¼à¿Øϵͳ¡£¸Ãϵͳ¼¯¼à²â¡¢ÏÔʾ¡¢±¨¾¯¡¢Í¨Ðŵȶ๦ÄÜÓÚÒ»Ì壬¿ÉÒÔ¶ÔÄ¿±êÇøÓò½øÐÐÔ¶³Ì¼à¿Ø£¬¼à²â½ÚµãÌå»ýС£¬ÎÞÐè²¼Ïߣ¬Òƶ¯¡¢°²×°ºÍ¼ìÐÞ·½±ã¡£