Problems with USB/RS232 converter.
The microcontroller sends this every second with 9600 8 N 1:
20111
20122
20222
20233
20333
20344
20444
20455
20555
20566
20666
20677
20788
20888
20899
20999
When using a ST-LAB USB / RS232, Textfield1.text looks like this:
20111??20122??20222??20233??20333??20344??20444??20455??20555??20566??20666??20677??20788??20888??20899??20999
next second:
20111??20122??20222??20233??20333??20344??20444??20455??20555??20566??20666??20677??20788??20888??20899??20999
next second:
20111??20122??20222??20233??20333??20344??20444??20455??20555??20566??20666??20677??20788??20888??20899??20999
and that’s okay
However, when any other 232 / USB converter is used, Textfield1.text looks like this:
0899??20999
after the next second:
0899??20999
after the next second:
6??20677??20788??20888??20899??20999
after the next second:
??20999
Does not figure out why there is a difference between some USB / RS232 converters.
St.lab usb is based on Prolific pl2303 chip and have buffer.
128-byte outbound buffer and 384-byte inbound buffer
other model without this chip is possible no have buffer.
other : check cable connection for RTS (Request to Send) and CTS (Clear to Send) pin 7 and 8 of 9 pin rs232 serial connector ( cannon 9 pin ) and/or pin 4 and 5 of 25 pin rs232 connector.
Normally the pin is no bypassed ( 7 and 8 welded for 9 pin rs232 ).
I hope you can understand my English with macaroni
I had the same problem with a truck scale. I had used a moxa rs232 to UDP converter. when I connected the 7/8 pin and turned off the buffer, I did not have any more problems.
Those ?? are most likely an end of record marker (probably or &h0D0A) and you should be treating them as such while most likely discarding the first packet.
St.lab usb is based on Prolific pl2303 chip and have buffer.
128-byte outbound buffer and 384-byte inbound buffer
other model without this chip is possible no have buffer.
other : check cable connection for RTS (Request to Send) and CTS (Clear to Send) pin 7 and 8 of 9 pin rs232 serial connector ( cannon 9 pin ) and/or pin 4 and 5 of 25 pin rs232 connector.
Normally the pin is no bypassed ( 7 and 8 welded for 9 pin rs232 ).
I hope you can understand my English with macaroni[/quote]
I anderstan but i has to use Google translator too because of my bad english