Go Down

Topic: Debug Output From (Can't use Serial.print) (Read 1 time) previous topic - next topic

BRuTuS

#5
Nov 16, 2009, 03:35 am Last Edit: Nov 16, 2009, 03:36 am by brutus1975 Reason: 1
Cheat!

Use a serial lcd and connect it in parallel with the Pins.

It will then display anything sent to that port.  Just make sure your debug statements include a \n to jump down to the next line on the LCD.

BenF

Quote
Use a serial lcd and connect it in parallel with the Pins.

If data sent to the PC application is binary, you will not be able to display/view the data on the LCD. The binary data may even reconfigure your display (switch it off, change baudrate, enable blinking, change backlight etc.).  Even with ASCII only (e.g. GPS data) it is not practical because the volume of data is likely to overflow the LCD display quickly.
Quote
Just make sure your debug statements include a \n to jump down to the next line on the LCD.

Anything you add to the serial stream will also reach the PC application and may upset whatever protocol you're implementing.

retrolefty

#7
Nov 16, 2009, 08:11 am Last Edit: Nov 16, 2009, 08:13 am by retrolefty Reason: 1
Quote
Anything you add to the serial stream will also reach the PC application and may upset whatever protocol you're implementing.


Correct, for debug statements to make sense for troubleshooting a application talking to a PC, then it needs to stream to a different serial port, hardware or software.

Lefty


Go Up