Serial Line Debugging

Has anybody tried debugging io-net components through serial line?Here is
what i am doing.(Ser1 of target is connected to Ser1 of the host machine).

  1. run pdebug -v /dev/ser1 & on the target machine
  2. run gdb
    gdb> target qnx /dev/ser1
    I get the following messages…
    Timeout in midpacket -retrying.
    MsgNak received - resending

Since i need to debug a io-net component i cannot use the other method of
using a TCP port in place of serial line

Any help is greatly appreciated…

Sreekanth

I’ve done this successfully. Not really sure
what the problem is here. Do your baud rates
match at either end.

-seanb

Sreekanth <sreekanth@cambira.com> wrote:
: Has anybody tried debugging io-net components through serial line?Here is
: what i am doing.(Ser1 of target is connected to Ser1 of the host machine).
: 1) run pdebug -v /dev/ser1 & on the target machine
: 2) run gdb
: gdb> target qnx /dev/ser1
: I get the following messages…
: Timeout in midpacket -retrying.
: MsgNak received - resending

: Since i need to debug a io-net component i cannot use the other method of
: using a TCP port in place of serial line

: Any help is greatly appreciated…

: Sreekanth

Yes…the baud rates are 57600 on both sides(pdebug man page recommends
it).By the way sometimes i do happen to get Remote debugging using /dev/ser1
message.But after the next command (for e.g., info pidlist) The errors start
occuring and it never recovers…Should i be running anything else on the
target machine?

Thanks

Sreekanth

“Sean Boudreau” <seanb@qnx.com> wrote in message
news:abb73n$coh$1@nntp.qnx.com

I’ve done this successfully. Not really sure
what the problem is here. Do your baud rates
match at either end.

-seanb

Sreekanth <> sreekanth@cambira.com> > wrote:
: Has anybody tried debugging io-net components through serial line?Here
is
: what i am doing.(Ser1 of target is connected to Ser1 of the host
machine).
: 1) run pdebug -v /dev/ser1 & on the target machine
: 2) run gdb
: gdb> target qnx /dev/ser1
: I get the following messages…
: Timeout in midpacket -retrying.
: MsgNak received - resending

: Since i need to debug a io-net component i cannot use the other method
of
: using a TCP port in place of serial line

: Any help is greatly appreciated…

: Sreekanth

Sorry to bother again guys…
I really need to find a solution for this problem.Can somebody tell
me if anything is missing from the following steps to achieve Remote
debugging over a serial line

  1. On target machine

pdebug -v /dev/ser1,57600 &

  1. On host machine
    gdb
    (gdb) target qnx /dev/ser1
    (The Host machine has serial port set to 57600 baud)
    At this point i get messages like
    " Timeout in midpacket -retrying.
    : MsgNak received - resending"
    It continues for three times and then quits.

What could i be doing wrong in this?

Sreekanth
ps: I have tried changing the baud rates at both the places to 115200 but
didn’t seem to help.

“Sreekanth” <sreekanth@cambira.com> wrote in message
news:abbjn7$nqd$1@inn.qnx.com

Yes…the baud rates are 57600 on both sides(pdebug man page recommends
it).By the way sometimes i do happen to get Remote debugging using
/dev/ser1
message.But after the next command (for e.g., info pidlist) The errors
start
occuring and it never recovers…Should i be running anything else on the
target machine?

Thanks

Sreekanth

“Sean Boudreau” <> seanb@qnx.com> > wrote in message
news:abb73n$coh$> 1@nntp.qnx.com> …
I’ve done this successfully. Not really sure
what the problem is here. Do your baud rates
match at either end.

-seanb

Sreekanth <> sreekanth@cambira.com> > wrote:
: Has anybody tried debugging io-net components through serial line?Here
is
: what i am doing.(Ser1 of target is connected to Ser1 of the host
machine).
: 1) run pdebug -v /dev/ser1 & on the target machine
: 2) run gdb
: gdb> target qnx /dev/ser1
: I get the following messages…
: Timeout in midpacket -retrying.
: MsgNak received - resending

: Since i need to debug a io-net component i cannot use the other method
of
: using a TCP port in place of serial line

: Any help is greatly appreciated…

: Sreekanth
\

I don’t think there is anything wrong with your method. It
sounds like a problem at the serial level. You might have
more luck posting in public.os, public.devtools.

-seanb

Sreekanth <sreekanth@cambira.com> wrote:
: Sorry to bother again guys…
: I really need to find a solution for this problem.Can somebody tell
: me if anything is missing from the following steps to achieve Remote
: debugging over a serial line
: 1) On target machine
: # pdebug -v /dev/ser1,57600 &
: 2) On host machine
: gdb
: (gdb) target qnx /dev/ser1
: (The Host machine has serial port set to 57600 baud)
: At this point i get messages like
: " Timeout in midpacket -retrying.
: : MsgNak received - resending"
: It continues for three times and then quits.

: What could i be doing wrong in this?

: Sreekanth
: ps: I have tried changing the baud rates at both the places to 115200 but
: didn’t seem to help.

: “Sreekanth” <sreekanth@cambira.com> wrote in message
: news:abbjn7$nqd$1@inn.qnx.com
:> Yes…the baud rates are 57600 on both sides(pdebug man page recommends
:> it).By the way sometimes i do happen to get Remote debugging using
: /dev/ser1
:> message.But after the next command (for e.g., info pidlist) The errors
: start
:> occuring and it never recovers…Should i be running anything else on the
:> target machine?
:>
:> Thanks
:>
:> Sreekanth
:>
:> “Sean Boudreau” <seanb@qnx.com> wrote in message
:> news:abb73n$coh$1@nntp.qnx.com
:> > I’ve done this successfully. Not really sure
:> > what the problem is here. Do your baud rates
:> > match at either end.
:> >
:> > -seanb
:> >
:> > Sreekanth <sreekanth@cambira.com> wrote:
:> > : Has anybody tried debugging io-net components through serial line?Here
:> is
:> > : what i am doing.(Ser1 of target is connected to Ser1 of the host
:> machine).
:> > : 1) run pdebug -v /dev/ser1 & on the target machine
:> > : 2) run gdb
:> > : gdb> target qnx /dev/ser1
:> > : I get the following messages…
:> > : Timeout in midpacket -retrying.
:> > : MsgNak received - resending
:> >
:> > : Since i need to debug a io-net component i cannot use the other method
:> of
:> > : using a TCP port in place of serial line
:> >
:> > : Any help is greatly appreciated…
:> >
:> > : Sreekanth
:> >
:> >
:>
:>

It works fine for me at 57600.

-seanb

Sreekanth <sreekanth@cambira.com> wrote:
: Hi,
: I have finally been able to figure out the serial line debugging.It was
: the problem with baud rates.The debugging in my case works only with 9600
: baud.Anything faster than that, it does not work.Is it the same conclusion
: from anybody else who tried it?If it is so…why is not documented anywhere?

: Thanks

: Sreekanth

Hi,
I have finally been able to figure out the serial line debugging.It was
the problem with baud rates.The debugging in my case works only with 9600
baud.Anything faster than that, it does not work.Is it the same conclusion
from anybody else who tried it?If it is so…why is not documented anywhere?

Thanks

Sreekanth

“Sean Boudreau” <seanb@qnx.com> wrote in message
news:acgoqt$ngu$1@nntp.qnx.com

I don’t think there is anything wrong with your method. It
sounds like a problem at the serial level. You might have
more luck posting in public.os, public.devtools.

-seanb

Sreekanth <> sreekanth@cambira.com> > wrote:
: Sorry to bother again guys…
: I really need to find a solution for this problem.Can somebody
tell
: me if anything is missing from the following steps to achieve Remote
: debugging over a serial line
: 1) On target machine
: # pdebug -v /dev/ser1,57600 &
: 2) On host machine
: gdb
: (gdb) target qnx /dev/ser1
: (The Host machine has serial port set to 57600 baud)
: At this point i get messages like
: " Timeout in midpacket -retrying.
: : MsgNak received - resending"
: It continues for three times and then quits.

: What could i be doing wrong in this?

: Sreekanth
: ps: I have tried changing the baud rates at both the places to 115200
but
: didn’t seem to help.

: “Sreekanth” <> sreekanth@cambira.com> > wrote in message
: news:abbjn7$nqd$> 1@inn.qnx.com> …
:> Yes…the baud rates are 57600 on both sides(pdebug man page recommends
:> it).By the way sometimes i do happen to get Remote debugging using
: /dev/ser1
:> message.But after the next command (for e.g., info pidlist) The errors
: start
:> occuring and it never recovers…Should i be running anything else on
the
:> target machine?
:
:> Thanks
:
:> Sreekanth
:
:> “Sean Boudreau” <> seanb@qnx.com> > wrote in message
:> news:abb73n$coh$> 1@nntp.qnx.com> …
:> > I’ve done this successfully. Not really sure
:> > what the problem is here. Do your baud rates
:> > match at either end.
:
:> > -seanb
:
:> > Sreekanth <> sreekanth@cambira.com> > wrote:
:> > : Has anybody tried debugging io-net components through serial
line?Here
:> is
:> > : what i am doing.(Ser1 of target is connected to Ser1 of the host
:> machine).
:> > : 1) run pdebug -v /dev/ser1 & on the target machine
:> > : 2) run gdb
:> > : gdb> target qnx /dev/ser1
:> > : I get the following messages…
:> > : Timeout in midpacket -retrying.
:> > : MsgNak received - resending
:
:> > : Since i need to debug a io-net component i cannot use the other
method
:> of
:> > : using a TCP port in place of serial line
:
:> > : Any help is greatly appreciated…
:
:> > : Sreekanth
:
:
:
:

I am able to connect to the target machine using qtalk at 115200 baud but
for Gdb i am stuck with 9600. Any ideas?

Sreekanth
“Sean Boudreau” <seanb@qnx.com> wrote in message
news:adit1j$eko$1@nntp.qnx.com

It works fine for me at 57600.

-seanb

Sreekanth <> sreekanth@cambira.com> > wrote:
: Hi,
: I have finally been able to figure out the serial line debugging.It
was
: the problem with baud rates.The debugging in my case works only with
9600
: baud.Anything faster than that, it does not work.Is it the same
conclusion
: from anybody else who tried it?If it is so…why is not documented
anywhere?

: Thanks

: Sreekanth

Not really. You should probably try public.qnxrtp.devtools.

-seanb

Sreekanth <sreekanth@cambira.com> wrote:
: I am able to connect to the target machine using qtalk at 115200 baud but
: for Gdb i am stuck with 9600. Any ideas?

: Sreekanth
: “Sean Boudreau” <seanb@qnx.com> wrote in message
: news:adit1j$eko$1@nntp.qnx.com
:>
:> It works fine for me at 57600.
:>
:> -seanb
:>
:> Sreekanth <sreekanth@cambira.com> wrote:
:> : Hi,
:> : I have finally been able to figure out the serial line debugging.It
: was
:> : the problem with baud rates.The debugging in my case works only with
: 9600
:> : baud.Anything faster than that, it does not work.Is it the same
: conclusion
:> : from anybody else who tried it?If it is so…why is not documented
: anywhere?
:>
:> : Thanks
:>
:> : Sreekanth