Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm experimenting with the "LOW SPEED DATA" port on my DirecTV Box (model #DRD523RB). I've connected to the DirecTV box via a nine pin serial connector. I hope to use the port to change channels etc.
I have no idea how to probe the port for "signs of life."
The first thing to do is to establish which logical tty is connected to the physical serial port. If there is only one serial port on the computer, then it will almost certainly be /dev/ttyS0. If not, you will have to experiment a bit. I like to get a program like C-Kermit or minicom, and use it to try sending data to a logical tty (type at the keyboard) while pins 2 & 3 on the serial port are jumpered together. When you see characters echo back whenever the jumper is installed, but stop echoing when the jumper is removed, you established the correlation between a logical device and a physical device.
Next, you will need to establish whether the set-top box is a DTE or DCE. This will dictate whether your cable needs to be a straight through cable, or one that crosses over the Tx & Rx signals, along with possibly other modem control signals. This is fairly easy if you hav a DVM or other way to meacure low voltage DC signals. The Tx signal on a serial interface with normally be driven to a logical zero, repesented by a positive voltage, somewhere between 6 & 12 volts DC. This signal will be on either of pins 2 or 3 on each interface (I guess we should assume that the set-top box uses some industry standard pin numbering scheme). The chassis may be used as a ground ref, pin 7 is even better. A functioning connection will require the Tx pin on each device to be connected to the Rx pin on the counterpart device.
Once you establish this, you will need to guess at the communications parameters, such as bit rate, parity, and number of data and parity bits. A very good first guess would be 9600 BPS, 8 data, 1 stop, no parity. Using your terminal emulator these seting are easy to modify. If the box only sends binary data not intended for direct human interpretation, it will be very difficult to establish when you've encountered the correct settings. In fact you may not ever be able to gues the correct settings this way, as it may not respond with anything until it has received some non-ASCII byte sequence that you are unable to send via a keyboard. The nature of the data sent on the interface should be documented, to explain how to operated the device through the interface.
You will probably have plenty of questions along the way. Come back here to ask away.
A breakout box works best, and usually has indicators to use to display signal levels. To jumper two adjacent pins, I often just use a small screwdriver tip. Helps to have some kind of third hand. It didn't sound like you had a lot of experience with these matters, and were unlikely to have a breakout box.
Oh, and while you are looking for minicon, look for minicom, instead (unless that was just a typo). It is probably already installed on your linux. C-kermit, might be. Should be easy to find.
It didn't sound like you had a lot of experience with these matters, and were unlikely to have a breakout box.
Oh, and while you are looking for minicon, look form minicom, instead (unless that was just a typo). It is probably already installed on your linux. C-kermit, might be. Should be easy to find.
You're right! I don't have any experience with this. Don't even know what a break-out box is -- yet. I learned the term researching this project.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.