NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Sensors, Actuators, and Robotics » Using PuTTY to see outgoing data
June 26, 2012 by mcgroover |
Hi all, I have used PuTTY to detect incoming data from the microcontroller to the computer, but I haven't yet found a way to see what is being sent to my microcontroller from my computer. When I am running a python program to communicate with the microcontroller, PuTTY will tell me that the port is in use. Does anyone know how to get around this and see what is being sent to the microcontroller? I have tried to display incoming data on my LCD but I am having the 1st and 3rd line issue with squares even after rewiring... :( Thanks. |
---|---|
June 27, 2012 by Ralphxyz |
Load the Initialload program does that work? Ralph |
June 27, 2012 by mcgroover |
Hi Ralph, Nope, initialload does not work. I have not stripped the breadboard completely though (only the LCD wires), so will probably do that tonight. It is strange because the microcontroller is functioning properly apart from this. I will post pictures of the setup if it doesn't work after tonight's open heart surgery. I may just buy a new LCD too as they are not too expensive. Do you agree though that the LCD is probably the only way to see what it coming in to the microcontroller? Thanks! Chris. |
June 27, 2012 by Ralphxyz |
Well you can/first should check the echo I think you connect the yellow and green wire together. With that you should see in putty what you are sending out echoed back. Better details on setting up the echo is in the ... Nerdkits tutorial. Sorry I forgot which tutorial has the instructions. When I am having problems I always revert back to initialload to get a handle on where my problem lies. Strip the breadboard down and start over it really does not take that long after two or three tries. Also it is good to have additional (hopefully working) breadboards so when one acts up (which they do) you can just switch and continue your project and trouble shoot later on. Ralph |
June 27, 2012 by mcgroover |
Sigh, no luck with the stripping of the breadboard and rewiring. I will just buy another kit as I need a second one anyway. I saw Humberto's suggestion about the echo back, but it seems that PuTTY will need to send the instructions to echo back. I would like to see if the python program is sending the data and in this case I think python is hogging the port (and PuTTY can't connect to it). Anyway, I will see how I go with the second system. Thanks for the help! |
June 28, 2012 by Rick_S |
As far as I know, only one program can access the serial port at a time. So if Python has it opened, Putty cannot open it and vice versa. I don't know of any software way to monitor serial data on the same computer. Serial sniffers monitor traffic, but they are hardware devices that connect to the serial lines themselves. Rick |
June 30, 2012 by photofoo |
I found a very handy app to deal with serial communication. It allows me to watch both sides of the conversation between the nk and my pc. This is working well on my PC with windows XP. Here is the link good luck http://www.serial-port-monitor.com/index.html |
July 02, 2012 by mcgroover |
Got the new LCD and it worked! (not sure how I damaged the first one). Photofoo, sounds like a great program. I tried to install it on my computer and it seemed very picky about the user rights and I can't get it to run (I will try later on another computer with more rights, though). Now that I have my new LCD and it can show what the microcontroller, I have a strange output. My microcontroller code is:
My python code is
The microcontroller always outputs 48 on the LCD screen? Anyone have an idea why? Does it have something to do with value type conversion? |
July 02, 2012 by mcgroover |
Now it is switching quickly betwee 48 and 51? |
Please log in to post a reply.
Did you know that signed numbers need to be sign-extended when chaging variable sizes? Learn more...
|