The echo command is typically used to display a string in the console. You can just type this command into a normal Windows console: The simplest case is something like the following which sends the string “hello” to COM1 (the first serial port). Instead you can just use Windows’ built-in echo, set and mode commands. I actually developed a small command line utility called SerialSend for doing exactly this, but in many cases you can get away without using any special programs at all. The sort of thing I might use this for is sending a command to a robot or other microcontroller-based device that I’m building using a USB-to-serial converter. I often need to send short character strings to a serial port in Windows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |