Main Site Documentation

Capture Debug Output and Send to Serial


#1

Hi,
I’m trying to capture and send the debug output from the cellularRadio module to the serial stream. I don’t see how to do this. Does anyone have an example? What I am sending the CellularRadio is something like this:


cellularRadio.SendATCommand("AT+SAPBR=4,1");

The debug window outputs:
CellularRadio : < GPRS
APN:
PHONENUM:
USER:
PWD:
RATE: 2

But I want to capture this and send it to the serial device…
Thanks,
~Shane


#2

you would need to be using serial debug.

But you could dig into the driver source and see if the debug.print() comes from there and deal with that how you like?


#3

HI Brett,
I guess I’ll need to make an event handler in the driver source because it looks like the debug output from the SIM900 is occurring asynchronously from the rest of the threads.

I’m using the driver that GHI provides (NOT the tcp/ip driver). Can you point me to the source for this driver so I can add this functionality and recompile it?
Thanks,
~Shane


#4

@ shanekirkbride - GHI usually publishes the source for Gagdeteer modules here: http://gadgeteer.codeplex.com/SourceControl/latest . But the cellular module does not seem to be there?


#5

Thanks Mike, I think I’ll need the cellular module but this is a good reference for the future.
~Shane


#6

the cellular module is a Seeed module, and the debug.print lines are in there (I checked).