Це відео не доступне.
Перепрошуємо.
#73 Serial Monitoring your Arduino or ESP8266 with Putty (Tutorial)
Вставка
- Опубліковано 21 сер 2016
- In this video I show how you can monitor two or more serial lines in your projects. This can be necessary if you connect a GPS or GSM module to your board. I use Putty for this purpose
Putty Download: www.putty.org
USB-Serial Adapter with 3.3V: www.aliexpress....
Supporting Material and Blog Page: www.sensorsiot.org
Github: www.github.com...
If you want to support the channel and buy from Banggood use this link to start your shopping: bit.ly/2jAQEf4 (no additional charges for you)
Official Wemos Store: s.click.aliexpr...
/ sensorsiot
/ spiessa
Interesting AND useful! Thanks for sharing that Andreas!
Nothing special. But I thought, I can later reference to it if somebody asks...
Can you show us how to test a ESP8266 TCP/UDP connection using Putty. That would be really interesting. Thank you for your lovely videos.
What you will see in the upcoming video is a telnet connection from the ESP82566 to Putty (for debugging).
uhuu... Good leson!! THANKS Very Much. From Brazil.
Glad you liked it!
The new Nextion libraries have hardcoded a baud rate for the nexSerial interface in NexHardware.cpp. This makes it ignore/reset anything you specify before nexInit(). I just now tracked down this 'problem' after finding this video. I've since changed the default baud in the library to 115200 and no longer use Serial2.begin in my esp32 code. Glad that neither of my devices have a hardware failure.
Oh, when using PuTTY, set the translation to ISO-8859-1. That's what is used in the Nextion editor program.
Great video. To summarize then, if using an Arduino Uno, are all these true?
1. Connect the Arduino to the PC using the USB cable and then use Putty on the PC to send and receive characters to and from Arduino?
2. Connect the Arduino through TX0 and RX0 pins to a USB serial adapter, connect the USB serial adapter through a USB cable to PC and connect putty on the PC to send and receive characters to and from Arduino?
3. Cannot do both because there is only one serial device.
Thank you in advance.
You can use Putty instead of Serial monitor. With an Arduino Mega you have more than one Serial connections and you can connect the 2nd or 3rd through a USB to serial connector.
And 2- Wouldn't using multiple TX/RX lines on a single UART connection cause loading effects or introduce noise depending on the circuits of the modules?
These are low-frequency lines, I would not care too much.
I am looking for something to capture data between 2 serial devices and be able to access/monitor that data through a webserver over wifi. Wondering if you or anyone has something like this, maybe using an ESP8266? Serial devices are standard RS232 (+/- 12v I think). I'm only interested in capturing the data, and don't need control line status. I know I would probably need to level shift to 3.3 or 5v, but maybe some model Arduino can handle it without? Thank you.
Maybe you divide your project in different parts. Then you find solutions for each part and finally, you can answer the question.
Hi Andreas, I don't know if the question is consistent with this video, however: I'm using an FTDI adapter, a WROOM-02 and an Arduino IDE. My question is if I can and how, via my pc, I can send and receive AT commands via Putty while in WROOM-02 is running a sketch
Thank you
You need a sketch on the WROOM which is capable to handle AT commands. So far, I only saw such sketches on the small ESP8266 boards
I suggest not to use USB to TTL converters with FTDI chips, because there are so many fake ones and you get trouble with the drivers. Instead use the CP2104 that are recommended by lady ada to!
Again a very good video!
Do you know of one which also has 3.3v on all pins (also on TX)? Then, I put the link into the comment. I use the one in the link since a few month without problems.
The driver/fake issue was about two years ago and I did not hear anything since then.
Maby FTDI has stopped shutting down fake ones with their drivers, because lots of commercial devices use them to, wtihout knowing they where fake.
I have a bunch of these FTDI converters here and some look the same like yours. Never have tryed them. I'll try them in my next project.
I haven't used the CP2104 yet but I can test the outputs of mine. Haven't fryed any 3V3 devices with the different PL2303, CP2102 and CH340G I use. Maby it was only luck.
The one in my video has 5V on TX even if I select 3.3V. The others do not offer the option. The only one I own which is ok is the one in the link.
No I just have to figure out how to redirect the output to an excel spreadsheet or web page over a WiFi connection on an ESP8266!
Not easy. You need a board which can create a USB host. The ESP8266 cannot do that.
@@AndreasSpiess I watched another of your videos - looks like you figured out how to send the monitor to PuTTY via WiFi, I can work with that!
Thanks for the videos. Two questions though, 1- Is PuTTY the best available software for serial monitoring? I've used RealTerm for a while and it's nice but its terminal showing the serial data is quite lacking and frustrating.
I like putty more. But that is jus me.
Again, nice video from the guy with the swiss accent. :-) ave you ever tried using Linux? In my experience, developing is much easier there, handling serial ports is less complicated and no additional drivers are ever needed.
Just first steps with the Raspberry. I am quite familiar with windows and therefore, quite productive. So, I have no need to change, I just will "append" a little Linux to my skills set. Maybe that will change in the future. You never know...
Thanks for all your videos.
You're welcome!
Great thing about a terminal app is you can use ansi for colors and bell, and cursor control
Didn't know that!
instagram.com/p/BERnO6sEiLE/?taken-by=tablatronix
How did you do that? Seems to go via Wi-Fi?
telnet server running on esp, makes it easy to debug ota, until esp has ssh serial support. But it IS slow.
I have to give it a try. Thanks
I greatly enjoy your tutorials including this one on adding a serial monitor. Would appreciate your thoughts on this application: I am passing serial data from Arduino to Python. This prohibits me from watching the arduino serial monitor or plotter (since Arduino would then be unable to communicate with Python). Would any of your suggestions in this tutorial allow me to visualize data on a second serial monitor/plotter while at the same time sending data from Arduino to python on the 1st serial monitor? Also, it appears to me that Putty allows serial monitor but not serial plotter. Is there a way of using a second serial connection as a serial plotter? Thanks, Mike
You can use Serial2 for communication, too. Some boards like the ESP32 support this with hardware. For other boards like the UNO you need to use the softSerial library.
Can we make USB rubber ducky with nodemcu esp8266?
Maybe. I am not interested in this stuff.
@@AndreasSpiess oh, ok..
Good ol' PuTTY... Is there anything it can't connect to? I originally got it for SSH, but almost any communication task I come up against, I find PuTTY will effortlessly fill the bill.
Stay tuned, then. You will see it in another role in one of my next videos...
thanks for you videos ,i have question,is there a possibility to make nextion display like a serial monitor of arduino?
This is not easy, because the whole content of the display has to change rapidly.
Hi Andreas ! There is a book in witch I can read what you say ? I have difficulties to understand the English spoken but I like it very much ? I want to made for myself a wifi meteo station with ESP 8266 and it is perfect . Thank you , Ion
There is no book. Maybe it helps if you enable automatic subtitles on UA-cam?
Thanks for the great video. Any idea why Arduino send different ascii characters? I send the same "hello world" but Putty shows different characters... baud rate and everything is checked and it all seems good. Any help from anyone is appreciated
This is very strange and never happened to me (Hello world does not contain any special characters).
@@AndreasSpiess Thanks for the response Sir. I made it even simple and instead of "hello world" I'm now sending "m1", a delay then "m2" and another delay. In putty instead of those I see "I3", "Ig". Isn't that funny?! It seems like ascii code being interpreted differently between Ard. and putty
Issues with the Wemos esp8266(clone ) This was easy with my Nano. Realy nice debug workaround when wanting to use the hw serial pins. Though, I'm having issues getting my Wemos esp8266 to output anything to the serial console by way of the SW serial assigned pins. I've tried SoftwareSerial mySerial(13, 15) for GIOP (D7, D8) Silkscreen on the board. both compile. Thoughts, suggestions?
Reverse RX with TX? This is a common error.
For the ESP8266, I found the following additional two lines are required for the ESP, but, not the Nano
// In setup()
// define mode for software serial pins rx, tx
pinMode(rxPin, INPUT);
pinMode(txPin, OUTPUT);
@@AndreasSpiess Thanks, Please keep supplying us with the great video!
Great video! I'm curious if you have verified that the 3.3v switch selection on the CH340G UART module actually level shifts the TX line to 3.3v. I have seen some adapters that the Vcc output line lowers to 3.3v but the TX line is still at 5v.
+Jon Raymond You are right. I will put the link to the adaptor which is ok in the comments
+Jon Raymond You are right. I will put the link to the adaptor which is ok in the comments
hello mr andreas thanks for this vedio
please i have a question for you if you can help me and a appreciate your pleasure ?
how i can read that value and use it
for exemple im using gps module for detecting the speed of device so i need to read that vitesse and use it for exaple to store it or do some function with it
and thanks mr andreas spiess
Unfortunately, I cannot help you, I have no time. But I am sure, Dr. Google is able to help.
Hi Andreas, just uploading my video about nRF51822 with UART and putty. Could not believe it. Sorry but don't watched you video yet.
Coincidence. I think, the focus of your video is different to mine. So, both can be watched and in both a viewer can learn something if he wants...
Andreas Spiess
Sometimes the universe have an arbitrary humor of synchronicity. And i don`t mentioned that you have to connect the lines crosswised (maybe to obvious for me), so thanks for make it clear.
is there a way to debug a esp8266 through the network, using PuTTy?
+rcostasarmento Maybe, but I do not know it.
it depends what you understand under 'debug', it is possible to send messages using telnet, which PuTTy can handle. It would require to run a telnet server on the ESP8266
Yes, I mean sending/receiving messages from/to the PC. I would like to test my project on the Field, as well as to do OTA updates.
Is it required that the ESP was in AP mode, in order to run a telnet server?
when i am connecting FTDI in my device manager i am not able to recognize COM port number as the page refreshes when i connect or disconnect the FTDI but it doenst shows any new connection on port with number so how do i deal with it
Maybe your computer does not have the driver for the FTDI device. Then, you would see an "unknown device" in your device manager
Yes i am able to see a device named as "FT232R USB UART" under other device so how can i demonstrate the exercise should i download any drivers if so can you please me with any link and i am using
"FT232RL 3.3V 5.5V FTDI USB to TTL Serial Adapter Module" with Windows 7 OS on PC
I am not a Windows specialist. So, please google. I am sure, you will find a solution
WILD!
:-)
Great video. Thanks
You're welcome!
There is a huge audio level difference between your intro and your explanatory recording, it is also less clear but this might be the level....
+Graham Gillett Sorry for that. The recording was done as always, but the mixing was not correct.
simpel - auf die idee muss man erst kommen !!
hut ab vor deinen filmen!!!
+Norbert Hartmann War nur ein kleines "Zwischendurch", damit ich bei der nächsten Gelegenheit nur einen Verweis machen muss.
+Norbert Hartmann War nur ein kleines "Zwischendurch", damit ich bei der nächsten Gelegenheit nur einen Verweis machen muss.
Sehr schönes Video, ich wusste gar nicht das Putty auch sowas kann.
Als Tip: www.der-hammer.info/terminal/
H-Therm ist mein Lieblings-Terminal Programm wenn ein einfaches nicht mehr ausreicht.
Man hat bei h-term sogar einen Timestamp wann was gesendet wurde und kann damit messen wie schnell eine Antwort kommt
Very nice video. My favorite terminal program is h-term www.der-hammer.info/terminal/
if a simple terminal is not enough
Danke für den Tip!
thank you this a great
You're welcome!
Nice overview! I know it has been said before, but no need to wear gloves - coming from someone who has worked with his hands most of his life, let me say there is NOTHING you need to cover up!
Thanks for your comment!
+Andreas Spiess ...and motorcycles can leave some nasty love bites ;)
I know!
Presses open... windows sounds... sick waste of time
Thank you for sharing your opinion.