> Hi,
Firstly, the null modem cable is fine. I have already used the same
cable and the same usb adapter successfully. However, even when it worked
it took a few attempts of restarting and trying repeatedly.
I will take back the phrase half-duplex if its incorrect. I am using
hyper terminal. Its a symmetrical situation and both machines have the
same settings. The only difference is the ‘host’ has no serial port and
hence uses a USB-RS232 adapter. The ‘target’ has a serial port. When I
use hyperterminal, I am able to transmit characters from target to host
but
not from host to target.
As I mentioned in my OP I have used the same cable before and it worked.
My question now is this -
- What is the protocol for this null modem cable communication?.
- Can I debug the communication between host and target?. Meaning, I want
to trace every single message that is being sent to and fro. Something
like using Wireshark on network card in promiscous mode, I want to look
at
every incoming and outgoing message.
I used to have an MS-DOS program that came with a funny T-connector. It
reflected data to and from; note that it required two serial ports on the
machine hosting it. It gave timings, reported CTS/DSR types of signals,
etc. I haven’t used it for at least 15 years, and no longer have a
machine that could support it. But it was the moral equivalent of
WireShark. I can’t remember the name, and don’t know if they have a Win32
version. Note that there is no concept of “message”, unless you believe a
single byte is a “message”. The program would list the bytes in the order
they arrived, showing each as a sequence of bytes until the other port saw
a byte going the other direction.
At least part of the reason I stopped using it was the fact that I simply
mo longer needed it.
Black Box Corporation used to sell a fairly expensive piece of hardware
that did this; you might check to see their current offerings, which might
be either cheaper, or your budget may be different than mine was.
joe
- The reason I want to do 1) and 2) above is that, this null modem setup
never actually works predictably. (I disagree with people who claim it is
simple to setup. Its not easy to get it to work, even if you sorted your
cable confusion :)). This time I am trying to get to the bottom of it
and
understand what is happening underneath. (Is there a certain sequence in
which we must start the host and targets?. Is there something with
USB-RS232 adapter that is causing issues in my case?. )
We called it “The WinDbg two-step”. First, start WinDbg on the host. It
will say “Waiting for conection”. Then boot the target. If, for any
reason, you stop WinDbg, when you restart it, if it hangs on “Waiting for
connection”, Issue Debug>Break from the menus. That usually gets them
talking again. When the target stops (because you asked it to), F5 to
continue it.
As WinDbg matured, there was less and less need to dance the WinDbg
two-step; it was much better at re-establishing the connection. But, Your
Mileage May Vary.
As we hit the various problems in WinDbg (such as dialogs popping up UNDER
the debug window, because it had gotten detached), I would tell my
students that one of the values of the course was to teach them how to
roll their eyes, and sigh, “It’s WinDbg”, with appropriate feeling. This
happened less and less as the program matured.
joe
Regards
T
On Thu, May 2, 2013 at 10:25 AM, wrote:
>
>> Folklore of not-too-many years ago was that if someone at Microsoft had
>> problems with getting WinDbg to talk across a serial line, the expert
>> would show up with a pair of wire cutters and snip all connections
>> except
>> in, out, and ground.
>>
>> To the OP: if you are typing on your host and seeing the characters on
>> your host, there is something deeply screwed up with your cable, and all
>> bets are off.
>>
>> In the worst case, go to your local computer store and buy a null modem
>> cable if you have made your own. And, as Scott has suggested, if you
>> have
>> purchased the cable, try purchasing another brand. We used cables from
>> Radio Shack which worked just fine.
>> joe
>>
>>
>> > What baud rate are you using?
>> >
>> > Have you tried using a different cable? We exclusively use serial
>> > debugging in our labs with physical machines and I’ve seen many
>> strange
>> > issues resolved by switching cables.
>> >
>> > -scott
>> > OSR
>> >
>> > —
>> > WINDBG is sponsored by OSR
>> >
>> > OSR is hiring!! Info at http://www.osr.com/careers
>> >
>> > For our schedule of WDF, WDM, debugging and other seminars visit:
>> > http://www.osr.com/seminars
>> >
>> > To unsubscribe, visit the List Server section of OSR Online at
>> > http://www.osronline.com/page.cfm?name=ListServer
>> >
>>
>>
>>
>> —
>> WINDBG is sponsored by OSR
>>
>> OSR is hiring!! Info at http://www.osr.com/careers
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>
> —
> WINDBG is sponsored by OSR
>
> OSR is hiring!! Info at http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer