Troubleshooting RS232 Signals - Tips & Advice

  • Thread starter Kawakaze
  • Start date
  • Tags
    Nuts
In summary, the USB to serial port adaptor was not working, and it was due to the compatibility issue of the adapter. The adaptor was not responding to the software commands. The adaptor was using parallel port pins to drive a stepper motor. The best solution was to find an option for those with PCMCIA ports on their laptops.
  • #1
Kawakaze
144
0
Hi guys, I am trying to use a USB to serial port adaptor, but I am getting no signal on the pins, I am trying to use the RTS signal to control a switch, but I am getting nothing at all out of it. Any ideas? I've had a scope on it and its just a noisy flatline no matter what its supposed to be.
 
Computer science news on Phys.org
  • #2
Move the scope over to the tx data pin and see if it has no noise and is firmly against the rail. (I can never remember whether idle tx is high or low, but I think I remember that the data lines are supposed to be at the opposite rail from the handshake lines) Then see if the tx line wiggles when you blow data at it. Noise on the handshake worries me, those should be solid and clean. I assume you are sharing a good ground between scope and computer and you aren't using a low impedance probe that could leak destructive current levels either direction, true?
 
  • #3
Hi Bill thanks for the help, I have made a little progress. both the Tx and Rts are high, and the noise I got rid of (loose connection! *facepalm*). The logic seems to be there, but I have no control over it via software.

The project, I should maybe give you some insight. This is a USB to serial port adaptor to control a CCD on a telescope. The current connector is a parallel port, of course no one has a parallel port anymore. I have build a switching circuit, very simple with a transistor.

This didnt work, and on further investigation it seems the port itself is not responding to the software commands.

One more question, correct me if I am wrong, both parallel and usb ports have 5v signals, and a serial port has 12v. how would this work if the serial port is powered from a usb port?

sorry please don't get too technical I am far from a specialist in this kind of stuff. Thanks again.
 
  • #4
Kawakaze said:
.

One more question, correct me if I am wrong, both parallel and usb ports have 5v signals, and a serial port has 12v. how would this work if the serial port is powered from a usb port?

sorry please don't get too technical I am far from a specialist in this kind of stuff. Thanks again.

Serial port works with signal from +-3V to +-12 (or a little more). The MAX232(which is useful to connect a logic TTL circuit to a RS232 line) chip uses capacitor to make +-12 from 5V, for example. It depends on your adaptor.
 
  • #5
Solved, you are going to laugh. Seems it was due to compatibility, I tried it on a craptop with WinXP and it works like a charm, the logic is inverted but that shouldn't be too hard to fix. Thanks for the tips guys I certainly picked a few things up.
 
  • #6
Wow it's great to see that this is also a electronics forum! Nice to see you found the answer. Those communications issues can be a nightmare!
 
  • #7
On older PC's I've seen experiements where parallel port pins were used to drive stepper motors via an adapter board to amplify voltage and current. Generally this only worked in a true MSDOS environment where more precise timing was availalble. With a "smart" adapter board, you could use an USB interface that the board splits up into multiple outputs, along with some onboard timers.
 
  • #8
Here's an option for those with PCMCIA ports on their laptops. Quatech makes an adapter that is hardware based instead of software based usb/serial. it's the best way to go when you need that older connection.

I do a fair amount of re-programing and the ECU's are all RS-232 and that's no longer a port on laptops. tried many USB adapters but always fiddling with bit rate speed and drivers not to mention the programing errors from the adapter I had to find another option.

Not 100% sure if this is causing you any grief but I was glad to find a solution to the software usb adapter problem. hope this helps someone else.
 

1. What is RS232 and why is it used?

RS232 is a standard for serial communication that is commonly used in computer and electronic systems. It allows for devices to transmit data over long distances and is still used in many applications, particularly in industrial settings.

2. How do I know if there is a problem with my RS232 signal?

Some common signs of a problem with an RS232 signal include garbled or missing data, slow transmission speeds, and intermittent connection issues. You may also notice error messages or a lack of response from the receiving device.

3. What are some common causes of RS232 signal problems?

There are several potential causes of RS232 signal problems, including incorrect wiring, incorrect settings or configurations, faulty cables or connectors, and electrical interference from nearby devices. It is important to troubleshoot each potential cause to determine the source of the issue.

4. How can I troubleshoot RS232 signal issues?

To troubleshoot RS232 signal issues, start by checking all connections and cables to ensure they are secure and properly wired. Next, check the settings and configurations on both the transmitting and receiving devices to make sure they are compatible. If the issue persists, try using a different cable or removing any nearby devices that may be causing interference.

5. How can I prevent RS232 signal problems in the future?

To prevent RS232 signal problems, make sure to use high-quality cables and connectors, and follow proper wiring and grounding techniques. It is also important to regularly check and maintain the settings and configurations of any devices using RS232 communication. Additionally, avoiding placing other electronic devices too close to RS232 connections can help reduce the risk of interference.

Similar threads

Replies
37
Views
3K
Replies
16
Views
1K
Replies
31
Views
2K
  • Electrical Engineering
Replies
15
Views
1K
  • Computing and Technology
2
Replies
36
Views
3K
Replies
2
Views
800
  • Computing and Technology
Replies
7
Views
1K
Replies
3
Views
1K
  • Programming and Computer Science
Replies
2
Views
831
Replies
2
Views
5K
Back
Top