Communicating by RS-232

barcodeftdirs232

I'm trying to communicate with a serial barcode scanner. This is how i've linked it to my computer (the circles represent the color of the wires already soldered in the serial plug) :

http://img441.imageshack.us/img441/6126/0079.png

When I scan a barcode (a special one telling the scanner to send an ASCII debug) or just a normal random barcode, all I can see in my serial terminal are accentuated letters and I don't understand why I can't see the barcode. I think the baud rate is fine, and I don't know if it's encoded or something…

Could you help me figure it out ? This is what I get :

ÍøÌÔÃøÃÇøÇËøËÊøÊÎøÏËøÊÎøÎÏøÏÓøÓÑøÑÖøÖøÔÐøÐ×ø×ÔøÔ

Best Answer

The "FTDI friend" is the wrong tool for the job. What you want is a cheaper, off the shelf USB to RS232 converter from a generic computer or office supply store.

As Gustavo points out, the signaling voltage of the FTDI friend is incorrect - about 3.3v unipolar instead of the higher, bipolar RS232 levels used by just about anything of recent vintage that has a 9-pin serial cable.

However, that's not the only issue. The "sense" of the logic is also customarily inverted between logic level and RS232-level serial signaling. So even if there were not a potential damage issue due to the voltage incompatibility, the upside-down data would not be interpretable by a typical receiver.

It might at first seem ironic that a USB-serial chip packed with a a converter to RS232 levels and a 9-pin connector is cheaper than a module with just a chip and the signals broken out at logic level to wires, but not really, when you consider the size of the market for the two products.