Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 418
  • Last Modified:

connecting two rs232 devices

hello,

I have a barcode scanner which has a 9 PIN female type rs232 connector and i need to connect it to a piece of hardware which also as a 9 PIN female rs232 connector .

I bought a gender changer which has male connectors at both ends and I connected the two devices using this. It didn't work however  . The gender changer is a straight pin connector.

What do i need to connect these two devices  ?

thanks

k
0
kfc23
Asked:
kfc23
  • 3
  • 2
  • 2
1 Solution
 
CallandorCommented:
You need what's called a crossover or null modem cable, which swaps the transmit and receive signals.  You can buy one with the appropriate connectors at a place like www.ramelectronics.com.
0
 
CallandorCommented:
Oops - wrong link.  here's the right one: http://www.ramelectronics.net/html/nullmodem_cables.html
0
 
kfc23Author Commented:
thanks for the help.

I thought null modem cables were for  two DTE devices (for instance two computers) ? what about hand shaking etc ?

I have a barcode scanner which I'm trying to connect to a device which runs an embedded java app . The java app simply  reads barcode strings sent over rs232 .

I'm just making sure the null modem cable is the correct option before I go out and buy it .

thanks again.

ken



0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
CallandorCommented:
There's only two standard ways that I know to connect RS-232: the straight way you tried, and using a null modem.  There is always the possiblity that one or both of these devices do not communicate using standard communications protocols.  Did you get a manual that describes how to communicate with them?  You can try hooking them up to a PC and analyzing them with a program like LookRS232.
0
 
kfc23Author Commented:
the scanner works fine when i connect it to my pc and use hyper terminal. I've also had no problem with using a different type of scanner ( with male type connector ) connected to the module running my java app .

I'll go ahead and try the null modem.

thanks for the help.
0
 
BinskyCommented:
You'll probably have solved it with the nullmodem cable, but to verify this you could check out the pinning of the barcode scanner port and the hardware's port. If they have their RX (receive) and TX (transmit) signals on the same pin (number), you can be sure you need a nullmodem cable.

And you were right, this cable is also used to create a serial connection between two pc's, but can also be needed to connect some pieces of hardware together.
0
 
BinskyCommented:
No objections from me! Good answer!
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now