OpenQNX :: The QNX Community Portal

Oct 07, 2008 - 12:05 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 46 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Robert Kindred
Post subject: Creating a debug pipe  PostPosted: Aug 04, 2006 - 06:52 PM
Guest





We have about a hundred engine stands controlled by qnx boxes, with a 10"
ethernet cable connected toWindows boxes. On a serial port this would be
called a null modem cable.

All data into and out of each box is done via sockets. The problem is that
when something goes wrong, there is no way to attach the remote debugger,
save going out to the lab and hooking up a temporary ethernet switch.

My question is, is it possible to create a debug pipe through the Windows
box, such that it simply echoes the byte stream that it receives in both
directions? I would have the Windows box listen on port 8000, and then
connect another socket to qnx on port 8000 upon accept(). This way I would
tell Momentix that it is to debug the Windows box, but it would actually be
debugging the qnx box through this pipe.

Robert Kindred
 
   
Reply with quote Back to top
davidbacon
Post subject: Re: Creating a debug pipe  PostPosted: Aug 05, 2006 - 02:59 AM
New Member


Joined: Jun 13, 2006
Posts: 7
Location: Calgary
Oddly enough, the easiest way might actually be to use an
ssh tunnel. Assuming you're running sshd on the QNX box
and have the authentication stuff set up properly,

ssh -f -N -l root -L 8000:localhost:8000 qnxbox

on the Windose box (in Cygwin, at least) should make its
port 8000 listen etc. in the way you want.

dB

- - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Robert Kindred" wrote ~ Fri, 4 Aug 2006 13:52:28 -0500:
Quote:
We have about a hundred engine stands controlled by qnx boxes, with a 10"
ethernet cable connected toWindows boxes. On a serial port this would be
called a null modem cable.

All data into and out of each box is done via sockets. The problem is that
when something goes wrong, there is no way to attach the remote debugger,
save going out to the lab and hooking up a temporary ethernet switch.

My question is, is it possible to create a debug pipe through the Windows
box, such that it simply echoes the byte stream that it receives in both
directions? I would have the Windows box listen on port 8000, and then
connect another socket to qnx on port 8000 upon accept(). This way I would
tell Momentix that it is to debug the Windows box, but it would actually be
debugging the qnx box through this pipe.

Robert Kindred



 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.