Tag archive for: macOS

How to terminate screen terminal sessions cleanly on macOS

So how do you communicate with a serial device that is connected to your Mac?

In this situation, you can use the screen command on your Mac to do so.

After you terminate the serial session with Ctrl+A+D, you may find that the serial device is still being hogged by the screen command.

When you try to access the device again, you may encounter a Resource busy error message.

For example, after I detached my screen terminal from /dev/cu.SLAB_USBtoUART, I will get the following message if I try to connect to the same device again:

Cannot open line ‘/dev/cu.SLAB_USBtoUART’ for R/W: Resource busy

Given these points, this post shows how we can terminate screen terminal sessions cleanly on macOS.

How to connect to an ESP32 development board via Bluetooth on your Mac

When you are trying to build a ESP32 project that uses Bluetooth to receive from or send data to another device on Mac, you may want to use your Mac to connect to your ESP32 board to test Bluetooth connectivity.

In this case, you will need to first connect your Mac with the ESP32 development board via Bluetooth.

So how can you do that?

In case you need it, this is how to connect to an ESP32 development board via Bluetooth on your Mac.