Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/20/04 15:38
Read: times


 
#81575 - Fix the problem
Responding to: ???'s previous message
Dear Nguyen:

Your problem could be come form different sides.

1- Do you have a optocoupler connection between MCU and PC serial port ??? ...if yes, check the correct optocoupler for that purpose, ie: high speeed opto, like 6N137.

2-What baudrate speed are you using ?....try to use low baud rate speed's like 9600 bps (if it's possible), and this will minimize your problems, high baud rate speeds, increase the possibility to lose data if you have not a correct design, of your interface and cable characteristics.

3-Be carrefully, think that your VB software is very very quick that your MCU, insert correct delays in the software.

4-I reccomend that you use HANDSHAKING, so you can controll the exactly moment when the data transfer occur.

5-Using a first "check" byte or bytes, could be a good idea too, that lets you to controll if the correct string is comming in from MCU. ie: "D,A,T,A,BYTE1,BYTE2,BYTE3,BYTE4"

6-Another good idea is : to empty the recieve buffer after recieving the full packed data in the VB software.

To finish, your problem could be a "mix" of my mencioned points, try to implement at least, Handshaking, 9600 bps, check the cable connection and quality, and interface design.

One more....are you using MAX232 or similar level converter ??
or a simple R-transistor method ?


List of 23 messages in thread
TopicAuthorDate
Need help... MCU and PC communication            01/01/70 00:00      
   MCU & PC communication            01/01/70 00:00      
   I have the same problem            01/01/70 00:00      
   Need more help from this            01/01/70 00:00      
      I use ascii            01/01/70 00:00      
         Reply to Jose'            01/01/70 00:00      
   Fix the problem            01/01/70 00:00      
      To my helpers            01/01/70 00:00      
         Handshaking...            01/01/70 00:00      
         RETI            01/01/70 00:00      
   ascii ?            01/01/70 00:00      
   Handshaking and More !!            01/01/70 00:00      
      Delays            01/01/70 00:00      
         Thanks to all my helpers, problem solved            01/01/70 00:00      
         Delays            01/01/70 00:00      
            Delays            01/01/70 00:00      
               UART, mode 3            01/01/70 00:00      
                  The 9th bit is the parity for VB            01/01/70 00:00      
                     send data from mcu to pc            01/01/70 00:00      
                        Yes, but the 9th bit is the parity in VB            01/01/70 00:00      
                           9th bit lost by Windoze?            01/01/70 00:00      
                              9th bit is supported            01/01/70 00:00      
                                 32-bit MS Windows            01/01/70 00:00      

Back to Subject List