0 Òý ÑÔ
´óÖÐÐÍÎÀÐÇÕ¾¾ù¾ßÓÐÏàÓ¦µÄ¡¢ÍêÉƵÄÌìÏ߸ú×ÙËÅ·þϵͳ£¬ÌìÏßËÅ·þ¸ú×ÙϵͳÒÀ¾ÝÐűêÐźÅÇ¿Èõ£¬¾ö¶¨ÌìÏßתÏò£¬Çý¶¯ÌìÏßÐýת£¬´ïµ½×¼È·¶ÔÐÇ¡£Ëæ×ÅͨÐż¼ÊõºÍµç×Ó¼¼ÊõµÄ·¢Õ¹£¬Ð¡ÐÍÎÀÐÇÕ¾Èç³µÔØÕ¾¡¢±ãЯվÊÜ»ú¶¯ÐÔÄܺͱãЯÐÔÄܵľÖÏÞ£¬²»¿ÉÄܲÉÓôóÖÐÐÍÎÀÐÇÕ¾²ÅÄÜʹÓõÄËÅ·þ¸ú×Ùϵͳ£¬²ÉÓò»Í¬ÔÀí£¬¿ª·¢ÊÊÓÃÓÚСÐÍÎÀÐÇÕ¾ÌìÏߵĶÔÐÇ×°Ö㬾ßÓÐÏÖʵÒâÒå¡£
1 ϵͳ¸ÅÊö
¸Ã×°ÖÃͨ¹ýGPS²É¼¯µØÀíÐÅÏ¢¡¢µç×ÓÂÞÅ̲ɼ¯×Ë̬ÐÅÏ¢£¬¸ù¾ÝGPS²É¼¯µÄµØÀíÐÅÏ¢£¬½áºÏͨÐÅÎÀÐÇλÖ㬼ÆËã³ö¶ÔÐÇËùÐèÒªµÄ±ê×¼·½Î»¡¢¸©Ñö¡¢¼«»¯²ÎÊý£¬Í¬Ê±¼ÆËã³öµ±µØ¡¢µ±Äê´ÅÆ«½ÇÊý¾Ý£»Í¨¹ý²É¼¯µç×ÓÂÞÅÌÊý¾Ý£¬µÃµ½³õ²½·½Î»¡¢¸©Ñö¡¢¼«»¯Êý¾Ý£¬ÆäÖи©ÑöºÍ¼«»¯¾ùΪÌìÏßʵ¼ÊÖ¸ÏòÖµ£¬µ«ÊÇ·½Î»ÖµÊÇÒԴű±Îª±ê×¼²âÁ¿Öµ£»Í¨¹ýGPSµÃµ½µÄ´ÅÆ«½ÇÊý¾Ý£¬¶Ô´Óµç×ÓÂÞÅ̵õ½µÄÒԴű±Îª±ê×¼µÄ·½Î»Öµ½øÐÐÐÞÕý£¬µÃµ½±È½Ï׼ȷµÄ¡¢ÒÔÕ汱Ϊ±ê×¼µÄÕæʵ·½Î»Êý¾Ý¡£Æäϵͳ½á¹¹Èçͼ1Ëùʾ£¬ÆäÖлùÓÚEVC4ƽ̨µÄ¶àÏß³ÌÓ¦ÓóÌÐòÁ÷³Ì½á¹¹Èçͼ2Ëùʾ¡£
2 Ó²¼þÉè¼Æ
±¾×°ÖÃÔÚÉè¼ÆÉÏ£¬Ñ¡ÔñS3C2440×÷ΪÖ÷¿ØÖÆÆ÷¹¹³ÉÓ²¼þƽ̨£¬ÀûÓÃÆä·á¸»µÄÍⲿ½Ó¿ÚºÍ¸ßËÙ´¦ÀíÄÜÁ¦£¬´ïµ½ÊµÊ±²É¼¯Êý¾Ý¡¢¼°Ê±´¦ÀíÊý¾Ý¡¢¿ìËÙ´«ÊäÊý¾Ý¡¢²»¸½¼Ó¶îÍâ½Ó¿ÚÉ豸µÄÄ¿µÄ¡£ÓÉÓÚ¸Ã×°ÖÃÐèÒª²âÁ¿µÄ²ÎÊý¶à£¬GPS¡¢µç×ÓÂÞÅÌͳһ²ÉÓÃRS 232½Ó¿Ú£¬±£Ö¤Á˲âÁ¿Êý¾Ý¾«¶ÈºÍ½Ó¿ÚÒ»ÖÂÐÔ¡£¹©µçͳһ²ÉÓÃ+5 V﮵ç³ØµçÔ´¹©µç¡£
3 Èí¼þÉè¼Æ
±¾×°ÖòÉÓÃARM9×÷ΪÖ÷¿ØÖÆÆ÷£¬ÒÔWindows CE£®net²Ù×÷ϵͳ×÷Ϊϵͳƽ̨£¬Ê¹ÓÃEVC4¿ª·¢»·¾³×÷Ϊ¿ª·¢¹¤¾ß£¬Èí¼þ²ÉÓöàÏ߳̽ṹ£¬MFCºÍAPI±à³Ì¼¼Êõ£¬ÊµÊ±²É¼¯´«¸ÐÆ÷Êý¾Ý£¬¼ÆËãÐÞÕý·½Î»Öµ£¬´ïµ½×¼È·¶ÔÐǵÄÄ¿µÄ¡£
3£®1 ×ÜÌå³ÌÐòÉè¼Æ
±¾×°ÖóÌÐò²ÉÓöàÏ߳̽ṹ£¬ÔÚÖ÷Ïß³Ì(Óû§½Ó¿ÚÏß³Ì)µÄ»ù´¡ÉÏ£¬Ôö¼ÓÁ½¸ö¸¨ÖúÏß³Ì(¹¤×÷ÕßÏß³Ì)£¬¸¨ÖúÏ̸߳ºÔð´¦ÀíÊý¾Ý²É¼¯£¬Ö÷Ï̸߳ºÔð½çÃæÏìÓ¦¡¢Êý¾ÝÈںϡ¢Êý¾ÝÏÔʾ¡£Ï̴߳¦Àí²ÉÓÃAPI£¬¶ø²»²ÉÓÃMFC±à³Ì£¬Ôö¼ÓÁ˳ÌÐòµÄͨÓÃÐÔ¡£³ÌÐòÖл¹Ê¹ÓÃSuspend-Thread¹ÒÆðÏ̡߳¢ResumeThread»Ö¸´Ï̡߳¢Exit-ThreadÍ˳öÏ̡߳£
Ïß³Ìͬ²½²ÉÓÃÁÙ½çÇøÓò(Ò²³Æ¹Ø¼üÇøÓò£¬¼´CRITI-CAL SECTION)´ëÊ©£¬Ê×ÏÈÓÃCRITICAL_SEC-TIONÉêÃ÷Ò»¸öÈ«¾Ö±äÁ¿£¬ÔÙµ÷ÓÃInitializeCriticalSec-tion³õʼ»¯£¬Ê¹ÓÃEnterCriticalSection½øÈë¹Ø¼üÇøÓò£¬Ê¹ÓÃLeaveCriticalSectionÀ뿪¹Ø¼üÇøÓò£¬Ê¹ÓÃDelete-CriticalSectionº¯Êýɾ³ý¹Ø¼üÇøÓò¡£Æä¹Ø¼ü²¿·Ö´úÂëÈçÏ£º