please help me regarding the mscomm32 in vb6. i tried to transmit serial data from computer to microcontroller through serial port. and i have some trouble on it.
I have a textbox, and a command button. while i press the command button, the computer will transmit a string of data on the textbox to the microcontroller. i use "mscomm1.output = text1.text". and on the microcontroller side, if the microcontroller receive a byte of data from computer,it will send "ack" back to the computer, my program work fine if i send a character to the microcontroller, but if i send a "string" it doesnt work if i run it, but in debug mode, it works well.
if i have a string in the textbox, i.e "test", then the computer will send it byte per byte, it would first send 'b', and after receive the "ack" from microcontroller, the computer send the next character 'e', and so on. where is the problem? please help me.