Troubleshooting RS232 Signals - Tips & Advice

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

Discussion Overview

The discussion revolves around troubleshooting RS232 signals when using a USB to serial port adapter, particularly in the context of controlling a CCD on a telescope. Participants explore issues related to signal integrity, compatibility, and the differences between serial and parallel communication protocols.

Discussion Character

  • Technical explanation
  • Exploratory
  • Debate/contested

Main Points Raised

  • One participant reports no signal on the RTS pin and a flatline on the oscilloscope, seeking advice on potential causes.
  • Another suggests checking the TX data pin for noise and ensuring a good ground connection, while questioning the use of a low impedance probe.
  • A participant shares progress, noting that both TX and RTS are high after fixing a loose connection, but software control remains unresponsive.
  • There is a discussion about voltage levels, with one participant stating that serial ports typically operate between ±3V to ±12V, and mentioning the use of a MAX232 chip to convert 5V signals.
  • One participant reports success with a different computer setup, indicating compatibility issues with the original setup, while noting that the logic is inverted.
  • Another participant shares experiences with using parallel ports to drive stepper motors and mentions the need for precise timing in older environments.
  • A suggestion is made for using a hardware-based PCMCIA adapter for those with older laptops, highlighting issues faced with USB adapters and programming errors.

Areas of Agreement / Disagreement

Participants express various viewpoints on troubleshooting methods and compatibility issues, with no consensus reached on the best approach or solution. The discussion remains open with multiple competing views on the effectiveness of different adapters and setups.

Contextual Notes

Limitations include potential misunderstandings about voltage levels and signal integrity, as well as the dependency on specific hardware configurations and software environments.

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
7K
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
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 36 ·
2
Replies
36
Views
5K