[{"data":1,"prerenderedAt":138},["ShallowReactive",2],{"post-\u002Fblog\u002F2022\u002Fthe-remote-serial-debugging-nightmare":3},{"id":4,"title":5,"body":6,"categories":122,"date":127,"description":91,"extension":128,"image":129,"meta":130,"navigation":133,"path":134,"seo":135,"stem":136,"__hash__":137},"blog\u002Fblog\u002F2022\u002Fthe-remote-serial-debugging-nightmare.md","The Remote Serial Debugging Nightmare",{"type":7,"value":8,"toc":116},"minimark",[9,13,16,19,22,48,51,56,71,74,83,86,93,96,101],[10,11,12],"p",{},"Everybody playing around with hardware that has a serial port and is not located close to the desk will sooner or later run into the problem, that the wire simply gets to long for a serial connection, especially with non EIA-232\u002FRS-232, known as serial-TTL-UART.",[10,14,15],{},"Especially for debugging such hardware protocols, it is nice to have a terminal program, that also shows hex output and can understand hex input. Hterm is one of my favorite programs, when it comes to debugging serial stuff from a microcontroller.",[10,17,18],{},"Unfortunately, hterm is neither open source, nor does it support TCP-serial-bridges directly. And also many other tools lack some stuff. While Putty can simply use it's telnet protocol, it is missing a hex dump and input.",[10,20,21],{},"If you still want to use hterm, you have mostly three options (the latter two are mostly the same but differ in price):",[23,24,25,37,40],"ul",{},[26,27,28,29,36],"li",{},"Using a virtual COM port software (e.g. ",[30,31,35],"a",{"href":32,"rel":33},"https:\u002F\u002Fgithub.com\u002Fu-blox\u002Fcom2tcp",[34],"nofollow","com2tcp",", has an unsigned driver :-( )",[26,38,39],{},"Buying a professional\u002Fdedicated seriel2ethernet server (like in the picture of the post)",[26,41,42,43,47],{},"Use another ESP32\u002FESP8266 to create your own serial2ethernet server (quick hint: disable logging with ",[44,45,46],"code",{},"baud: 0"," setting to use the USB serial port for this)",[10,49,50],{},"Both solutions are not the best choice in my opinion, because with ESPhome StreamServer Component (using telnet as transport), you already have a serial port over TCP available. To why not connect directly using telnet.",[52,53,55],"h3",{"id":54},"tera-term-not-best-in-class-but-all-you-need","Tera Term - Not best in class, but all you need",[10,57,58,59,64,65,70],{},"If you install e.g. ",[30,60,63],{"href":61,"rel":62},"https:\u002F\u002Fgithub.com\u002Foxan\u002Fesphome-stream-server",[34],"StreamServer"," (yes, it is f*** easy to deploy) on your ESP32 or you use ",[30,66,69],{"href":67,"rel":68},"https:\u002F\u002Fgithub.com\u002Fjeelabs\u002Fesp-link",[34],"ESP-Link"," for ESP8266, you have the serial port you want. Now you need the appropriate terminal program to connect to it.",[10,72,73],{},"It perfectly works with putty, if you only want to send and receive ASCII text, just select telnet and enter the IP and port of your ESP.",[10,75,76,77,82],{},"But when it comes to hex (like in my ",[30,78,81],{"href":79,"rel":80},"https:\u002F\u002Fthe78mole.de\u002Freverse-engineering-the-buderus-km217\u002F",[34],"Buderus KM271 post","), you are simply lost with putty and you also can not easily connect hterm to it, without using a nasty com2tcp tool, running long wires or using the mentioned helper-ESP.",[10,84,85],{},"After configuring tera term appropriately, it seems to work quite well. Not as good as hterm, but better than the other options:",[10,87,88],{},[89,90],"img",{"alt":91,"src":92},"","\u002Fimages\u002Fblog\u002F2022\u002F01\u002Fimage-2.png",[94,95],"hr",{},[97,98,100],"h2",{"id":99},"kommentare-comments","Kommentare \u002F Comments",[10,102,103,104,109,110,115],{},"Hast du Fragen oder Anmerkungen zu diesem Artikel? ",[30,105,108],{"href":106,"rel":107},"https:\u002F\u002Fgithub.com\u002Fthe78mole-blog\u002Fthe78mole-blog.github.io\u002Fissues\u002Fnew?title=Kommentar+zu%3A+the-remote-serial-debugging-nightmare&labels=comment",[34],"Erstelle ein GitHub Issue"," oder starte eine ",[30,111,114],{"href":112,"rel":113},"https:\u002F\u002Fgithub.com\u002Fthe78mole-blog\u002Fthe78mole-blog.github.io\u002Fdiscussions",[34],"Diskussion",".",{"title":91,"searchDepth":117,"depth":117,"links":118},2,[119,121],{"id":54,"depth":120,"text":55},3,{"id":99,"depth":117,"text":100},[123,124,125,126],"ESP32","ESPhome","Networking","Windows","2022-01-31","md","\u002Fimages\u002Fblog\u002F2022\u002F01\u002Fserial-device-server.jpg",{"tags":131},[35,123,132,63],"Serial2Ethernet",true,"\u002Fblog\u002F2022\u002Fthe-remote-serial-debugging-nightmare",{"title":5,"description":91},"blog\u002F2022\u002Fthe-remote-serial-debugging-nightmare","qaV5DASJjBiwD72qAFKOc3UJmm3y1uTzzdWTnsKNbRY",1777286693867]