Serial Woes.
Feb. 8th, 2009 03:51 pmSo, I haven't been able to get the serial IR receiver working on my PVR. It could be any one of a whole host of problems, and I'm trying to narrow things down. First off, I need to know that I'm A) programming the correct serial port (this machine has two, and I don't know which is which) and B) that the serial port I'm using actually works.
My plan was simple: I have an old external 2400-baud modem with auto-adaption capabilities so that if a serial port is even vaguely usable, I can talk to the modem and it can tell me what is up with the port. All I need is to connect it to the machine with an appropriate serial cable, and I'm good to go.
Well, that's my next problem. It seems that I no longer own a serial cable with a male 25-pin end on it. I do have some 25-pin to 9-pin adapters but they're all female-25 to male-9 where I need male-25 to male/female-9 to get things to work. With all the cables and adapters I have this should have been easy to come up with, but I'm surprised to find myself missing crucial bits.
So, before I go out and buy a serial cable adapter that I will only be using for a short time for diagnostic purposes, I thought that I would ask my friends list. So, does anyone have any old serial cables or adapters around that I could use to hook an old serial 25-pin DCE device (modem with female 25-pin connector) to a modern DTE (computer with 9-pin male connector) that I could borrow?
My plan was simple: I have an old external 2400-baud modem with auto-adaption capabilities so that if a serial port is even vaguely usable, I can talk to the modem and it can tell me what is up with the port. All I need is to connect it to the machine with an appropriate serial cable, and I'm good to go.
Well, that's my next problem. It seems that I no longer own a serial cable with a male 25-pin end on it. I do have some 25-pin to 9-pin adapters but they're all female-25 to male-9 where I need male-25 to male/female-9 to get things to work. With all the cables and adapters I have this should have been easy to come up with, but I'm surprised to find myself missing crucial bits.
So, before I go out and buy a serial cable adapter that I will only be using for a short time for diagnostic purposes, I thought that I would ask my friends list. So, does anyone have any old serial cables or adapters around that I could use to hook an old serial 25-pin DCE device (modem with female 25-pin connector) to a modern DTE (computer with 9-pin male connector) that I could borrow?
no subject
Date: 2009-02-08 09:12 pm (UTC)If you simply need to figure out if it's the correct serial port you could try to connect it with a null modem cable (if you have one) to another computer and start a terminal program (e.g minicom) in either end and see if they can find each other.
An even simpler test would be to put an LED and a resistor in serial from the DTR (or RTS) to ground on the serial port and trying to send anything with minicom or write a simple program that tickles the bits a little. You will probably not be able to see the individual changes, but you should at the very least be able to see it flick on and off once in a while. For the record, a suitable value for the resistor is, oh, 1 kOhm. That should be low enough that it's visible even in daylight and high enough to in no way risk damaging the port. You could probably get by with anything from 2-300 Ohm to a couple of kOhms, but 1k is, well, a nice middle value.
no subject
Date: 2009-02-08 09:13 pm (UTC)no subject
Date: 2009-02-08 09:16 pm (UTC)no subject
Date: 2009-02-08 09:18 pm (UTC)no subject
Date: 2009-02-08 09:17 pm (UTC)I DO have a null-modem cable but its got a female DB-25 on one end, which is precisely the thing I don't have any way to connect to.
no subject
Date: 2009-02-08 09:27 pm (UTC)