ÄãºÃ£¬»¶Ó­À´µ½¾­¹ÜÖ®¼Ò [µÇ¼] [×¢²á]

ÉèΪÊ×Ò³ | ¾­¹ÜÖ®¼ÒÊ×Ò³ | Êղر¾Õ¾

·Ö²¼Ê½¹©µçÉ豸Զ³Ì¼à¿Øϵͳ¿ª·¢Éè¼ÆʵÏÖ_×Ô¶¯»¯×¨ÒµÂÛÎÄ

·¢²¼Ê±¼ä£º2015-01-23 À´Ô´£ºÈË´ó¾­¼ÃÂÛ̳
×Ô¶¯»¯×¨ÒµÂÛÎÄ·¶ÎÄ ·Ö²¼Ê½¹©µçÉ豸Զ³Ì¼à¿Øϵͳ¿ª·¢Éè¼ÆʵÏÖ£¨Èí¼þ²¿·Ö£© Ä¿¡¡¡¡Â¼ Ò» Ð÷ÂÛ1 1.1 ¿ÎÌâµÄÒâÒå1 1.2 ¿ÎÌâÖ÷ÒªÄÚÈÝ1 ¶þ ÏÂλ»ú³ÌÐòʵÏÖ2 2.1 ·Ö²¼Ê½Ô¶³Ì¼à¿Øϵͳ¸ÅÊö2 2.2 C8051F330µ¥Æ¬»ú½éÉÜ2 2.3 µç²ÎÊý²É¼¯×Ó³ÌÐòÉè¼Æ3 2.4 ζȲɼ¯×Ó³ÌÐòÉè¼Æ5 2.4.1 DS18B20¸ÅÊö5 2.4.2 DS18B20²âγÌÐò5 Èý ´«ËÍϵͳÈí¼þÉè¼Æ7 3.1 ´®¿Ú½éÉÜ7 3.2 ÏÂλ»ú´®¿Ú³ÌÐòÉè¼Æ7 3.2.1 ³õʼ»¯³ÌÐò7 3.2.2 ´®¿Ú·¢ËÍÓë½ÓÊÕ³ÌÐò8 3.2.3 CRCУÑé9 3.3 RS-485Ìصã9 3.4 ͨÐÅЭÒéÖƶ¨10 3.5 ×Üϵͳ³ÌÐòÁ÷³Ìͼ11 ËÄ ÉÏλ»ú½ÓÊÕ½çÃæ12 4.1 VC++¸ÅÊö12 4.2 ¿ÉÊÓ»¯½çÃæÉè¼Æ12 Îå ÉÏλ»ú³ÌÐò¿ª·¢14 5.1ÀàÎļþÌí¼Ó14 5.2Íê³É´®¿Ú²Ù×÷14 5.2.1 CSerialPortÀ๦ÄÜ14 5.2.2 CSerialPortÀàµÄº¯Êý14 5.2.3 ¶Ô´®¿Ú½øÐвÙ×÷16 5.3 ¶¨Ê±¹¦ÄܵÄʵÏÖ16 5.4 Êý¾Ý´æ´¢17 5.5 Èí¼þµ÷ÊÔ18 Áù ÂÛÎÄ×ܽá20 л´Ç21 ²Î¿¼ÎÄÏ×22 ¸½Â¼23 Õª¡¡¡¡Òª ±¾ÎÄÖ÷Òª²ûÊöÁËÀûÓÃC8051FϵÁе¥Æ¬»úºÍ¼ÆËã»ú×é³ÉRS-485ͨÐÅϵͳ£¬ÊµÏÖ¶ÔÔ¶³Ì¹©µçÉ豸µçÁ÷¡¢µçѹ¡¢ÆµÂÊ¡¢Î¶ȽøÐвÉÑù£¬½«½á¹ûͨ¹ýRS485×ÜÏß·¢Ë͵½¼ÆËã»ú²¢ÔÚ½çÃæÉÏÏÔʾµÄÉè¼ÆÓëʵÏÖ¡£ÔÚ½éÉÜ·Ö²¼Ê½¹©µçÉ豸µÄ»ù±¾¸ÅÄîºÍRS485µÈÔ¶³ÌͨѶЭÒéµÄ»ù´¡ÉÏ£¬½áºÏÓ²¼þµç·£¬Éè¼ÆºÍ±àдÏÂλ»úÈí¼þ£¬ÊµÏÖ·Ö²¼Ê½¹©µçÉ豸µÄÐźŲɼ¯¡¢Êý¾ÝÔ¶³Ì´«ËͺͿØÖÆÃüÁîµÄ½ÓÊյȹ¦ÄÜ¡£Í¬Ê±²ÉÓÃVisual C++ 6.0¿ª·¢³ö»ùÓÚWINDOWSµÄÉÏλ»ú¼à¿Ø½çÃ棬¶ÔÏÂλ»ú·¢Ë͵ÄÊý¾Ý½øÐд¦Àí£¬Íê³ÉÓëÏÂλ»úµÄͨѶ¹¦Äܲ¢¶ÔÊý¾Ý¿â½øÐйÜÀí¡£¸Ã½çÃæ¾ßÓÐÁ¼ºÃµÄÈË»ú½»»¥¹¦ÄÜ£¬Êý¾ÝÔ½ÏÞʱÄܹ»×Ô¶¯±¨¾¯¡£±¾ÎÄ»¹Ïêϸ¸ø³öÁËÀûÓÃVisual C++ 6.0¶Áд´®¿ÚµÄº¯ÊýʵÏÖ¡¢ÖÆ×÷½çÃæµÄ¾ßÌå²½ÖèÒÔ¼°Êý¾Ý´æÈëÊý¾Ý¿âµÄ¾ßÌå¹ý³Ì¡£ ¹Ø¼ü´Ê£º µ¥Æ¬»ú¡¡´®¿ÚͨÐÅ¡¡RS485×ÜÏß Remote Monitoring System of Distributed Power Supply Equipment (Part of Software) ABSTRACT This article describes the use of C8051F MCU and computer components RS-485 communication systems mainly, and has achieved current, voltage, frequency, temperature sampling in the long-range power supply equipment, then the results are sent to the computer interface displayed on the Design and implementation through the RS485 bus. On the basis of the basic concept of distributed power supply equipment and the long-distance communications of RS485 and so on, combining hardware, has designed and compile the next-bit software, and has achieved functions of long-distance data transmission,the distributed power supply equipment¡¯s signal acquisition, reception of control orders and so on. At the same time using Visual C + + 6.0 WINDOWS developed based on the PC monitor interface, the data that the crew sent to is took order with, and completes communication with the next crew and database management. The interface has a good interactive features, and the data can be time-limited automatic alarm. This paper also gives Concrete steps of the use of Visual C + + 6.0 to read and write serial port to achieve a function and the production interface, along with the specific process of data in the database. Key words: MCU Serial Communication RS485 bus
¾­¹ÜÖ®¼Ò¡°Ñ§µÀ»á¡±Ð¡³ÌÐò
  • ɨÂë¼ÓÈë¡°¿¼ÑÐѧϰ±Ê¼ÇȺ¡±
ÍƼöÔĶÁ
¾­¼ÃѧÏà¹ØÎÄÕÂ
±êÇ©ÔÆ
¾­¹ÜÖ®¼Ò¾«²ÊÎÄÕÂÍƼö