I recommend to install Ubuntu to this article. Since Fall Creators Update we need to install Windows Subsystem for Linux from Windows Store.įor now (21 October 2017) we have three Linux distributions in Windows Store to choose from: Open command prompt and go to OptionalFeatures.exe and enable Windows Subsystem for Linux then reboot your PC. Go to Settings -> Update and Security -> For developers and change Sideload apps setting to Developer mode. If you have installed Windows 10 Version 1709 (Fall Creators Update) Build 16215 or Higher: In the next time when you need to use bash shell open command prompt and use bash command. Then begin automatic downloading and installation of Linux Subsystem. After rebooting you need to open command prompt and use bash command. Next open command prompt and go to OptionalFeatures.exe and enable Windows Subsystem for Linux (Beta) then reboot your PC. Go to Settings -> Update and Security -> For developers and change Sideload apps setting to Developer mode If you have installed Windows 10 Build Less Than 16215:įirst, you need to install Windows Subsystem for Linux. Also Make sure that your user is in the dialout group.In this article I will tell how to make work with command prompt on Windows 10 better with Windows Subsystem for Linux, Hyper terminal, oh-my-zsh framework for zsh and zsh-syntax-highlighting plugin.įor this article you need to have Windows 10 圆4 Version 1607 Build 14393 or higher and installed Node.js. You can do this in linux without installing any software at all!įirst connect the device and then identify the device( ls /dev/tty*. Update: From the comments I understand that you only need to read the data. It should be listed as shown in the image: To find it, connect your device and execute: ls /dev/tty* dev/ttyUSB0 is equivalent to the COM port name and will vary each time the device is connected and also depends on the number of serial devices connected(Just like in Windows, where it appears as COM1 on one connection and say COM2 when you reconnect it). For baud rate, refer to the documentation of the device you are connecting. Here I have specified the baud rate as 115200 and the device as /dev/ttyUSB0. To run it, type sudo picocom -b 19200 /dev/ttyUSB0 Install it by typing: sudo apt-get install picocom There are other alternatives like minicom, but I use this picocom because it is very easy to use. So if you want to communicate with the device, you can use the HyperTerminal Equivalent called picocom. It could be something like /dev/ttyUSB0 or /dev/ttyACM0 if it is a serial device. If you connect a serial device, it will again appear as a file in /dev folder. A pendrive you connect will appear as /dev/sdx where x could be a,b,c.Īlso in Linux, we don't use the term COM. In Linux every device is is represented as files. Until now I was using sudo for using the serial ports. Update: You need to add yourself to the 'dialout' group to access the serial ports: sudo gpasswd -add dialout It might be an adjustment to launch and run all of these applications from CLI instead of a GUI, but you will most likely grow to prefer this method over the GUI of HyperTerminal over time, that is if you don't immediately fall in love with using CLI for all of it. Most (if not all) of those can be installed from Ubuntu's Software Center. There are many Linux terminal emulators to choose from and install in case you don't like Ubuntu's default terminal emulator. In case you are unfamiliar or just not yet completely comfortable with using a linux terminal for all of this, you can refer to the Ubuntu Community Wiki page for Using The Terminal. Minicom can easily be installed from the Ubuntu Repositories and is a fairly popular application for accessing/utilizing com ports. In Ubuntu, there are many great built-in applications that replace the functionality of HyperTerminal, though, as well as great additional applications that are available for free in the Ubuntu repositories.įor instance, ssh and telnet are already immediately available for remote terminal login to devices over a network.Ĭurl and wget are also installed by default and are great for running other types of network interactions, especially those involving http protocol. HyperTerminal appears to be a Windows-Only program - HyperTerminal Website
0 Comments
Leave a Reply. |