Elias said:
ok, great, now we're going somewhere, but what if the device connected to the
port does not have a keyboard, then how can i check if it is connected? you
said that the keystrokes are echoed on the therminal emulator screen, you
mean which keystrokes? strokes on my pc keyboard? i have to type something on
my pc keyboard and if the other device is connected, then i have to see the
keystrokes on the screen of the emulator?
Thanks,
First of all, you should find a manual for your STB. I can see a problem
right away, by looking at this. This would be an example of a manual.
http://www.sbcatest.com/TechUpdates/DTV-MD-0058-DIRECTV Set-top Information for Installers-V2.0.pdf
The manual shows 8 bit codes being used for the commands. The
ASCII character set is encoded in 7 bit codes. Now, the
people who invented the protocol, on that example STB,
set the upper bit in the code. And I would guess, the
purpose is to prevent people from using Hyperterminal
to talk to their STB
At least some of the
returned codes are also 8 bit, and would display as
garbage on the Hyperterminal screen.
In short, the protocol is not intended to be human readable,
unlike the protocol used on a modem (where at least a few
things you do, are human readable, and fun to play with).
Seriously, you should be using a software intended for "talking"
to the STB. If that software cannot establish a connection,
then either the baud rate or similar setting is wrong, or
the type of RS-232 cable needs to be changed. RS-232 cables
are either straight through, or a null modem type cable, swaps
some signals. RS-232 is not supposed to be damaged, by
connecting a transmitter signal to a transmitter signal,
so you can try both types of cables, if the manual
doesn't happen to mention whether the STB is DTE or DCE.
My assumption is they'd set it up so it uses a straight
cable from the computer to the STB, and I have a 50:50
chance of being right
So you can connect a cable, between the PC and the STB,
run Hyperterminal, select the correct COM port, and start
typing. But the STB will be silent in return, because
it is expecting 8 bit codes with the upper bit set. It'll
have nothing to say.
You need keys on the keyboard, that generate codes having
decimal values higher than 127. Can you see yourself
typing "heart symbol" which is decimal 169 or hex 0xA9 ?
That protocol was designed for a computer program to drive.
There is no "heart" on my keyboard.
http://casa.colorado.edu/~ajsh/iso8859-1.html
This is an example of a software designed to do stuff
to a set top box. On one of their web pages, they
mention "irreversible damage" to the STB, as one outcome
of screwing with it. Like if you load the wrong firmware.
http://www.dmsiusa.com/documents/PCLink2.33U.pdf
I think you really need to visit a site that specializes in
hacking STBs, as someone will have already done whatever you're
trying to do, and they could save you a lot of grief and
wasted time.
HTH,
Paul