Hi,
I haven't heard anything back from developers, but I got a solution to the
problem.
I modified the file "debug.c", and changed all the serial code to POSE
HostControl API functions. Now I can use "tail -f" to watch my debugging
messages in a terminal without the tricky serial port thing.
The change is minimum:
======================
#include <HostControl.h>
...
HostFILE *fh;
fh = HostFOpen("/tmp/MyDebug.txt", "a" );
if (fh == NULL) {
// Well ...
}
if ( printFileLineTitle ) {
StrPrintF( logBuf, "[ %s ] %s:%d:", title, fname, line );
StrPrintF( logMsg, "%-25s", logBuf );
HostFPutS( logMsg, fh );
HostFFlush( fh );
printFileLineTitle = false;
}
if ( COUNT_TICKS ) {
StrPrintF( logMsg, " [ ticks: %ld ] ", TimGetTicks() );
HostFPutS( logMsg, fh );
HostFFlush( fh );
}
StrPrintF( logMsg, "%s: %s", function, msg );
HostFPutS( logMsg, fh );
HostFFlush( fh );
HostFClose( fh );
...
===========================
But I am still interested in knowing how to view the messages output from
serial port.
Thanks!
Max
--- Max Bian <[EMAIL PROTECTED]> wrote:
>
> Hi.
> I am interested in hacking plucker. I found debug.c interesting. There are
> some functions to send the debug messages to serial port. My question is how
> to access these messages at real time?
> In POSE, the serial port is mapped to localhost:6416 in the default setup. I
> am not sure how I read from there. A telnet connection to that address
> always gives me garbage.
> While I am testing the pose logging setting on serial port, I'd appreciate a
> help on this from official developers.
> Thanks!
> Max
>
>
>
> ---------------------------------
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com