Troubleshooting RS232 Signals - Tips & Advice

  • Thread starter Thread starter Kawakaze
  • Start date Start date
  • Tags Tags
    Nuts
Click For Summary
SUMMARY

The forum discussion centers on troubleshooting RS232 signals when using a USB to serial port adapter for controlling a CCD on a telescope. Users identified issues with signal noise and compatibility, particularly noting that the RTS signal was not functioning as expected. The MAX232 chip was mentioned as a solution for converting TTL logic levels to RS232, and it was confirmed that the USB-powered serial port operates with signals ranging from ±3V to ±12V. Ultimately, the problem was resolved by using a Windows XP machine, highlighting the importance of compatibility in these setups.

PREREQUISITES
  • Understanding of RS232 signal levels and communication protocols
  • Familiarity with USB to serial port adapters
  • Basic knowledge of electronics, including the function of the MAX232 chip
  • Experience with troubleshooting signal integrity using an oscilloscope
NEXT STEPS
  • Research the specifications and applications of the MAX232 chip for RS232 communication
  • Learn about USB to serial port adapter compatibility issues and solutions
  • Explore troubleshooting techniques for RS232 signals using oscilloscopes
  • Investigate alternative methods for controlling devices via USB, such as using PCMCIA adapters
USEFUL FOR

Electronics enthusiasts, hobbyists working with serial communication, and developers needing to interface modern computers with legacy RS232 devices.

Kawakaze
Messages
144
Reaction score
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
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?
 
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.
 
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.
 
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.
 
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!
 
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.
 
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.
 

Similar threads

Replies
37
Views
6K
Replies
2
Views
5K
  • · Replies 4 ·
Replies
4
Views
7K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
16
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 36 ·
2
Replies
36
Views
4K