Skip to main content

Connecting to a serial port on MAC OS

Sometimes you need to connect to the serial port of a device from your MAC OS computer. It's pretty simple, first you need to list all your serial ports using the command: ls /dev/tty*


Then, find the device name you want to connect to and type the command: screen /dev/tty[DEVICE_NAME], In the example above, if you want to connect to the tty.usbserial device, you will type in your terminal: screen /dev/tty.usbserial



Type enter, wait some seconds and you will be connected to the device serial port!

Comments

Popular posts from this blog

Angular 2+ with Internet Explorer IE9+

After published our latest Angular 7 application to production, we noticed that some of our customers couldn't access the app in Internet Explorer 11. Fortunately, there's a simple fix do make it work. All you need is to edit your polyfills.ts file located on the root of your project, and uncomment the lines after the Browser polyfills comment, as follows: And it's all! Hope to help someone!

Building a API Client for VueJS

Hello! In this post i will show you how you could create a simple API Client service to use in your VueJS application so you could easily make HTTP Server calls from your app. First, make sure to install the Vue-resource module in your app using npm or yarn like: npm install vue-resource --save Then, import it into your main.js file, like below: Now, create a new file named api-client.js, put it in a directory called "services" and add the code: The code is self explaining and you can modify it as your needs. Now, you only need to use your ApiClient anywhere in your application. Below, i'm giving you a sample of using it in a Login component. Hope you enjoy!