ÈÈËÑÒªº¦´Ê£º µçÉÌÒ»¼þ´ú·¢ ÀäÁ´ÅäËÍ ÉçÇøÍŹº²ÖÅä ʳƷ²Ö´¢´ú·¢»õ ÔöֵЧÀÍ
ÐÂÏÊË®¹ûºÍÊß²ËÊÇÈËÃÇÈÕ³£Ëù±ØÐëάÉúËØ¡¢¿óÎïÖʼ°ÉÅʳÏËάµÄÖØÒªÀ´Ô´,½üÄêÀ´Ëæ×ÅÖйúÈ˾ùÊÕÈëºÍÏû·ÑÄÜÁ¦µÄÔö³¤,ÈËÃñ¶ÔÉúÏÊÊß¹ûÅ©²úÆ·µÄÆ·ÖÊÓÐÔ½À´Ô½¸ßµÄÒªÇ󡣿ÉÊÇ,¹ûÊßÓÉÓÚ×ÔÉíµÄÌصã,Ò»°ãº¬Ë®Á¿¶¼±È½Ï¸ß,ÔÚ´æ·ÅµÄʱºò¾ÍÈÝÒ×±¬·¢±äÖÊ¡¢¸¯°Ü,ʹËüÃǵÄÆ·ÖÊ´ó´òÕÛ¿Û,½µµÍÁËËüÃǵÄÉÌÒµ¼ÛÖµºÍÆ·ÖÊ,ËùÒÔÅ©²úÆ·ÔÚ²ÉÕªºóµÄÖü´æºÍתÔËÀú³ÌÖеı£ÏÊ´¦Àí±äµÃÓÈΪÖØÒª¡£¹ØÓÚ¹ûÊßµÄÉú´æÓжàÖÖÒªÁì,ÀýÈç:·À¸¯¼Á±£Ïʼ¼Êõ¡¢Í¿Ä¤Öü²Ø±£Ïʼ¼Êõ¡¢·øÕÕ´¦Àí±£Ïʼ¼ÊõÒÔ¼°Àä²Ø´æ´¢¼¼ÊõµÈ
ZigBeeÊÇ»ùÓÚIEEE802.15.4±ê×¼µÄµÍ¹¦ºÄ¾ÖÓòÍøÐÒé,Òò¾ßÓж̾àÀë¡¢µÍ¹¦ºÄ¡¢µÍËÙÂÊ¡¢µÍ±¾Ç®µÈÌصã,¿ÉÒÔÓÃÔÚ´«ÊäËÙÂÊÒªÇ󲻸ߵĵç×ÓÉ豸֮¼äµÄÊý¾Ý´«Êä,ÊÊÓÃÓÚС¹æÄ£µÄÎÞÏß´«¸ÐÍøÂç
Fig.1 Schematic of the supervisory system
Fig.2 The hardware module composition of the warehouse node
±¾ÎÄÉè¼ÆµÄ»ùÓÚZigBeeÎÞÏß´«¸ÐÆ÷ÍøÂçµÄÔ¶³Ì¼à¿ØϵͳÖ÷ÒªÓÉÉÏλ»ú¡¢»ã¾Û½ÚµãºÍ´«¸ÐÆ÷½Úµã3²¿·Ö×é³É,Æä¿ò¼Ü½á¹¹Èçͼ1Ëùʾ¡£¸÷¸ö´«¸ÐÆ÷½ÚµãÖ®¼äͨ¹ýZigBee¼¼Êõ×é³ÉµÄÐÇÐÍÍØÆ˽ṹµÄÎÞÏß´«¸ÐÍøÀ´Á¬½Ó,½«ÊÕÂ޵ļà²âÊý¾Ý·¢Ë͵½»ã¾Û½Úµã,ÉÏλ»ú½ÓÄÉRS-485´®ÐÐͨѶ,°Ñ»ã¾Û½ÚµãÓëÉÏλ»ú¼à¿Ø³ÌÐò½øÐÐ×ÜÏßÁ¬½Ó¡£Î¶ÈÐÅÏ¢Äܹ»ÊµÊ±´«ËÍ,¿ÉÒÔʵÏÖ¶ÔζȵÄÖÜÆÚÅÌÎÊ
ÂþÑÜÓÚ´æ´¢³¡ºÏ²î±ðλÖõĽڵã,ÆäÖ÷Ìå½ÓÄÉChipcon¹«Ë¾Éú²úµÄCC2430оƬ,ÔÚÆäÖÜΧ¸½¼Óζȴ«¸ÐÆ÷¡¢µçÔ´ÒÔ¼°µ÷ÊÔ½Ó¿Ú,×é³ÉÒ»¸ö¸ö¶ÀÁ¢µÄ½Úµãµ¥Î»,Æä½á¹¹µ¥Î»Èçͼ2Ëùʾ¡£
½ÚµãµÄÓ²¼þÑ¡ÔñTI¹«Ë¾µÄCC2430оƬ,ÍâΧ¸½¼ÓÖ±Á÷µçÔ´¡¢Î¶ȴ«¸ÐÆ÷ÒÔ¼°µ÷ÊԶ˿Ú,Èçͼ2Ëùʾ¡£CC2430ÊÇÒ»¿ÅÕæÕýµÄϵͳоƬ(SoC) CMOS½â¾ö¼Æ»®¡£ÕâÖÖ½â¾ö¼Æ»®Äܹ»Ìá¸ßÐÔÄܲ¢Âú×ãÒÔZigBeeΪ»ù´¡µÄ2.4GHz ISM²¨¶ÎÓ¦ÓÃ,¼°¶ÔµÍ±¾Ç®,µÍ¹¦ºÄµÄÒªÇó
Fig.3 Temperature measurement circuit for warehouse node
Fig.4 Temperature measurement circuit for warehouse node
ζȴ«¸ÐÆ÷½ÓÄÉDS18B20Êý×Öζȴ«¸ÐÆ÷,DS18B20µ¥ÏßÊý×Öζȴ«¸ÐÆ÷,¼´¡°Ò»ÏßÆ÷¼þ¡±,Óë΢´¦ÀíÆ÷Á¬½ÓÈçͼ3Ëùʾ¡£
±¾Î¶ȼì²âµç·ÊÂÇéÔÚ¼ÄÉúµçÔ´¹©µç·½·¨ÏÂ,DS18B20´Óµ¥ÏßÐźÅÏßÉÏÂÞÖÂÄÜÁ¿:ÔÚÐźÅÏßDQ´¦ÓڸߵçƽÆÚ¼ä°ÑÄÜÁ¿Öü±£´æÄÚ²¿µçÈÝÀï,ÔÚÐźÅÏß´¦Óڵ͵çƽÆÚ¼äͨ¹ýÏûºÄÖü±£´æÄÚ²¿µçÈÝÀïµÄµçÄÜÊÂÇé,Ö±µ½¸ßµçƽµ½À´ÔÙ¸ø¼ÄÉúµçÔ´(µçÈÝ)³äµç¡£ÕâÖÖÆæÌصļÄÉúµçÔ´·½·¨ÓÐ3¸öÀûÒæ:½øÐÐÔ¶¾àÀë²âÎÂʱ,ÎÞÐèʹÓÃÍâµØµçÔ´;¿ÉÒÔÔÚ²»ÉèͨÀýµçÔ´µÄÌõ¼þ϶ÁÈ¡ROM;Éè¼Æµç·Խ·¢¼ò½à,½öÓÃÒ»¸ù1/O¿ÚʵÏÖ²âΡ£
¸Ãϵͳ½èÖúÒƶ¯Í¨ÐÅÍøÂç¡¢InternetºÍÎÞÏß´«¸ÐÍøÂçµÄ»¥Áª,ÀûÓÃZigBeeÎÞÏß´«¸ÐÍøÂ罫Öն˽ڵãÊÕÂÞµ½µÄÊý¾Ý,¾GPRSÍøÂç·¢Ë͵½ÖÐÐĽڵã,ÔÙ¾ÖÐÐĽڵ㵽ÉÏλ»ú,ʵÏÖÒƶ¯³µÁ¾Î¶ȼà²âµÄЧ¹û
ϵͳµÄÈí¼þÖ÷ÒªÓÉϵͳÍøÂçÌåϵ¡¢Í¨ÐÅÐÒéÕ»ºÍÉÏλ»úÓ¦ÓÃÈí¼þ3²¿·Ö×é³É¡£
ͼ5 ÉÏλ»ú¼à¿ØÖÕ¶Ë
Fig.5 The monitoring terminal of the upper computer
ÍøÂçµÄÍØÆ˽ṹÓÐÐí¶àÖÖ,Ö÷ÒªÓзäÎÑ×´½á¹¹¡¢Íø×´½á¹¹¡¢ÐÇÐͽṹ¡¢Ê÷Ðͽṹ¡¢»·Ðͽṹ¡¢ÂþÑÜʽ½á¹¹¡¢×ÜÏ߽ṹµÈ¡£ÆäÖÐ,ÐÇÐÍÍøÂçÖÐËùÓнڵ㶼ֻÄÜÓëе÷Æ÷(е÷Àíµã)ͨÐÅ,ÇÒ±ØÐëÔÚе÷Æ÷µÄÉäƵ¹æÄ£ÄÚͨÐÅ,ƾ¾Ýе÷Æ÷µÄÀíÂÛÅÌËã,ËüµÄÁ¬½ÓÊýÁ¿µÄÉÏÏÞÊÇ216-1¸ö¡£ÓÉÓÚ±¾¼à¿Øϵͳ½ÚµãÊýÁ¿Ïà¶Ô½ÏÉÙ,Òƶ¯½ÚµãËùÕ¼ÊýÁ¿ºÜÉÙ,ËùÒÔ±¾ÏµÍ³Ñ¡ÓÃÊ÷ÐÎÍøÂçÍØÆ˽ṹ,Êý¾ÝÊÕÂÞÓÉÖն˽ڵ㵣¸º,·ÓɽڵãÖ÷ÒªÍê³ÉÊý¾Ýת·¢¡£Ê÷ÐÎÍØÆËÖеĸ÷½Úµã½«Êý¾ÝÖð¼¶ÉÏ´«,Ö±ÖÁ»ã¾Û½Úµã¡£
½ÚµãµÄÈí¼þÒÔÇкÏZigbeeÐÒéÕ»¹æ·¶µÄÒ»¸öÓ²¼þºÍÈí¼þƽ̨Z-StackΪ»ù´¡,ʹÓÃIAR¿ª·¢,È»ºóÖ²Èë´«¸ÐÆ÷µÄÐÅÏ¢ÊÕÂÞº¯Êý,×îºó¼ÓÈëÓ¦Óò㺯ÊýÍê³É¡£Z-StackÐÒéÕ»,Ï൱ÓÚÒ»¸öСÐ͵IJÙ×÷ϵͳ,ÒÔСÈÎÎñÂÖѯÐÎʽÔËÐÐ,¸÷ÈÎÎñµÄʱ¼ä±ê¼Çλ´¥·¢¸÷¸öÈÎÎñµÄÄ£¿é¡£¹ØÓÚζÈÊý¾ÝµÄ¶ÁÈ¡,ÓÉÓ¦ÓòãÀïÃæµÄ´«¸ÐÆ÷Çý¶¯º¯ÊýʵÏÖ¡£
ÉÏλ»úµÄÓ¦ÓÃÈí¼þÓÃC++ÃæÏò¹¤¾ßÓïÑÔ±àд¡£ÉÏλ»úͨ¹ý´®¿ÚºÍ»ã¾Û½ÚµãÏàÁ¬,Íê³ÉÊý¾Ý½ÓÊÕ¡¢´¦Àí¡¢ÏÔʾµÈ¹¦Ð§,ÆäÍØÆ˽ṹÈçͼ5Ëùʾ¡£
ÍøÂçÍØÆ˽ṹÏÔʾ²¿·ÖÄÚ²¿»õ²ÖµØͼ,¸÷¸ö½Úµãƾ¾ÝËùÔÚλÖÃÔÚÆäÖбÈÕÕ°²ÅÅ,Èç´Ë±ã¿ÉÒÔÊ÷ÐεÄÍØÆ˽ṹÏÔʾ¡£µ±½Úµã¼ì²âµ½Ä³Î»ÖÃζÈÒ쳣ʱ,ÍøÂçÏÔʾͼÖиýڵã±äÉ«¡£Ä³½ÚµãζÈÕý³£½ÚµãÏÔʾ³£É«,¸Ã½ÚµãζȹýµÍʱÍøÂçÏÔʾ±äΪ³ÈÉ«¡£
DS18B20µÄÇø·ÖÂÊ¿ÉÉ趨Ϊ9µ½12λ,±¾ÏµÍ³½ÓÄÉ12λÇø·ÖÂÊ,ת»»¾«¶ÈΪ0.0625¡æ,ת»»Î¶ÈÐźŵ¥´ÎÕ¼ÓÃʱ¼ä×î´óֵΪ750ms¡£Î¶ÈÊý¾ÝÓÉË«×Ö½Ú×é³É,´æ´¢½ÓÄɶþ½øÖƲ¹ÂëµÄÐÎʽ,1λΪ·ûºÅλ,Öмä7λΪÕûÊý²¿·Ö,µÍ4λΪСÊý²¿·Ö¡£DS18B20¸ßËÙÔÝ´æÆ÷RAMÓÉ9¸ö×ֽڵĴ洢Æ÷×é³É,µÚ0¡«1¸ö×Ö½ÚÓÃ×÷ζȵÄÊý¾ÝÏÔʾ¡£Í¨¹ýÏàÓ¦µÄ¹¦Ð§Ö¸ÁîÀ´Íê³É¶ÔζÈÊý¾ÝµÄÊÕÂ޺ͶÁÈ¡,ËùÓжÁд²Ù×÷¶¼ÊÇͨ¹ýÓëCC2430µÄÊäÈë¡¢Êä³ö½Ó¿ÚÍê³É¡£
ÔÚ±¾ÏµÍ³Éè¼ÆÖÐ,ÓÉÓÚÑ¡Ôñµç³Ø×÷Ϊ¸ö¸÷¼à²âµãµÄÄÜÔ´¹©Ó¦,Òò´Ë¾¡Á¿½µµÍ¹¦ºÄÊǺÜÊÇÖØÒªµÄÉè¼ÆÄ¿±ê¡£ÔÚÀäÁ´ÎïÁ÷¼°»õ²Ö´æ´¢Ê±,ÀíÂÛÉÏ˵ÐźſÉÒÔµÖ´ïËùÓÐλÖÃ,¿ÉÊÇ,ËæÖ®´øÀ´µÄ´ó¹¦ºÄ»áµ¼Ö¾³£¸ü»»µç³Ø¡£ÕâÑù¾ÍËõ¶ÌÁ˽ڵãµÄʹÓÃÖÜÆÚ,Õû¸öϵͳµÄÎȶ¨ÐÔÒ²»áϽµ¡£´Ó½µµÍ½Úµã¹¦ºÄµÄ½Ç¶È¿¼ÂÇ,ÔÚ¶Ô½ÚµãÉè¼Æʱ,Ñ¡ÓÃоƬÉèÖÃÐÝÃß»úÖÆ,ÿ¹ýÒ»¶Îʱ¼ä,Öն˽ڵã¾Í±»ÏµÍ³½ÐÐÑÒ»´Î·¢ËÍÊý¾Ý,½Ó×ÅÔÙ½øÈëÐÝÃßģʽÒÔ½ÚÔ¼ÄÜÁ¿¡£Â·ÓɽڵãºÍ»ã¾Û½Úµã²»¿É½øÈëÐÝÃßģʽ¡£
ϵͳÖи÷½Úµãƾ¾ÝÒªÇó×°ÖÃÔÚ»õ²ÖÖ¸¶¨Î»ÖÃ,Õû¸öϵͳ×éÍø˳Àû²¢Äܹ»Æ¾¾ÝÒªÇóÍê³ÉͨÐÅ¡£²âÊÔ½á¹û±êÃ÷,ÔÚ¿Õ¼äÎÞ×èµ²Ìõ¼þÏÂ,Êý¾ÝµÄ´«Êä¾àÀë¿ÉÒÔµÖ´ï40m;ÔÚ¿Õ¼äÓÐÕϰʱ(Èç×赲ǽ),´«Êä¾àÀëÒ²Äִܵï10m,Á½ÖÖÌõ¼þÏÂûÓжª°üÏÖÏ󱬷¢,Êý¾ÝµÄ·¢ËÍÕý³£¡£Í¨ÐÅÀú³ÌÖÐ×î´ó´«ÊäËÙÂÊΪÿÃë30¸ö×Ö½Ú¡£Öն˽ڵã½ÓÄɵ͹¦ºÄÉè¼Æºó,½ÚµãÊÂÇéµÄʵ¼ÊµçÁ÷Ϊ6mA×óÓÒ,Èç¹û½ÚµãÁ¬ÐøÊÂÇé,ʱ¼äÄܹ»µÖ´ïÒ»ÖÜÒÔÉÏ¡£
±¾ÎÄ»ùÓÚZigBeeÎÞÏß´«¸Ð¼¼ÊõÉè¼ÆÖÆ×÷Á˹ûÊß²Ö´¢ÎïÁ÷ζȼà¿Øϵͳ,¸Ãϵͳ³ä·ÖÀûÓÃCC2430оƬµÄÌصãÉè¼ÆÁËÖ÷´Ó½Úµã,Õû¸öϵͳӲ¼þ½á¹¹¾«¼ò¡¢Ìå»ýС¡¢ÄܺĵÍ,Ëù×é³ÉµÄÎÞÏß´«¸ÐÍøÂç¾ßÓÐ×Ô×éÖ¯¡¢×ÔÊÊÓ¦µÈÌص㡣ÀûÓÃËùÉè¼ÆµÄϵͳ½øÐÐʵÑéµ÷ÊÔ,½á¹û±êÃ÷,¸ÃϵͳµÖ´ïÁËÉè¼ÆÒªÇó,Ч¹ûÁ¼ºÃ¡£¼øÓÚÎÞÏß´«¸ÐÍøÂç¼¼Êõ¾ßÓй¦ºÄµÍ¡¢Êý¾Ý´«Êä¿É¿¿¡¢ÍøÂçÈÝÁ¿´ó¡¢¼æÈÝÐԺá¢ÊµÏÖ±¾Ç®µÍµÈÖî¶àÓŵã,¸Ãϵͳ¿É¹ã·ºÓ¦ÓÃÓÚÉú±¬·¢»îµÄ¸÷¸öÁìÓò,ÓÈÆäÊÊÓÃÓÚÊý×Ö¼ÒÍ¥¡¢ÖÇÄÜ´óÏÃζȿØÖÆ¡¢Ð¡Çø°²·À¼à²âµÈÎïÁªÍø¹¤³Ìµ±ÖÐ,¾ßÓнϺõÄͨÓÃÐÔºÍÓ¦ÓÃÇ°¾°¡£
¡¾±¾ÎıêÇ©¡¿
¡¾ÔðÈα༡¿yd2333Ôƶ¥µç×ÓÓÎÏ·ÔƲÖ