Skip to main content

Posts

How to Play a Sound After a Terminal Command Completes

  Sometimes, while working on the terminal, especially during long-running processes, it’s useful to have an audible notification when the task is finished. In this guide, we’ll show you how to make your terminal play a sound after any command completes, ensuring you're alerted without constantly checking the terminal. Why Do This? This trick can save time and improve workflow, especially when: You’re running lengthy build processes or installations. You’re waiting for large file transfers. You're programming embedded systems and need confirmation when flashing is done. Let’s dive into how to do this on a Linux system. Step-by-Step Guide to Playing a Sound After a Command 1. Using paplay or aplay to Play Sounds On most Linux distributions, you can use paplay or aplay to play sound files directly from the terminal. Here's how you can append a sound notification after a command. Basic Command Structure : PC:~$ your_command && paplay /path/to/soundfile.oga  Or, if

Board Support Package for Linux (BSP)

Numerous Chip manufacturers such as STMicroelectronics, Texas instruments,Qualcomm Incorporated provides evaluation boards to their products. they can be used to characterize study and evaluate numerous parameters in order to decide if it worthy of spending more time and budget on that particular unit.  Those boards can be called demo cards or Development kits (DK) not to be conflicted with Software development kit lol.  in general those board allows you to sense and evaluate the effort it takes to boot, program and run applications. The DK is usually more complete and may be part of a package that includes more software and examples demonstrating the capabilities of the solution.                                         Figure1 : STM32MP1 Discovery Board A Board Support Package(BSP) is a collection of software used to boot and run the embedded system. it is the essential software needed to work with a board.  with a proper BSP all you need to do is boot the system and start developpin

how to attach a USB device to ubuntu 20 running on WSL

 This article will tackle the steps needed to attach a usb device to ubuntu through WSL on windows 10  for this tutorial you will nedd  - Ubuntu 20.xx on wsl2  - mobixterm  to start the process you need to run ubuntu  and type the following on your terminal  pc:~$ sudo apt install linux - tools - 5.4 . 0 - 77 - generic hwdata pc:~$ sudo update - alternatives -- install / usr / local / bin / usbip usbip / usr / lib / linux - tools / 5.4 . 0 - 77 - generic / usbip 20 Attaching a device First ensure a WSL command prompt is open. This will keep the WSL 2 lightweight VM active. From an administrator command prompt on Windows, run this command. It will list all the USB devices connected to Windows. pc:cmdadmin>  usbipd wsl list Select the bus ID of the device you’d like to attach to WSL and run this command. You’ll be prompted by WSL for a password to run a sudo command. pc:cmdadmin> usbipd wsl attach --busid <busid> From within WSL, run lsusb to list the attached USB devices.

What is a Spacecraft On-Board Computer (OBC)

A Spacecraft On-board Computer (OBC) is essentially a fully redundant radiation hardened, self-contained flight computer for satellite application. A dual-String Single board Computer with 28V-70V power supply and interfacing provide all the power required for most satellite application The heart of the computer is the radiation hardened version of a processor that can withstand the most stringent radiation environment. Processing capability is usually requiring a radiation hardened SRAM and EEPROM providing the needed processing capabilities and memory of most spacecraft control application.

Most common baud rates table

  The following table shows the most used baud rates. The left side part of the table shows speed and bit duration. The right part shows real transmission speed assuming there is no parity, 8 data bits and one stop bit.   Bauds Bits/s Bit duration Speed Actual speed Actual byte duration 50 bauds 50 bits/s 20.000 ms 6.25 bytes/s 5 bytes/s 200.000 ms 75 bauds 75 bits/s 13.333 ms 9.375 bytes/s 7.5 bytes/s 133.333 ms 110 bauds 110 bits/s 9.091 ms 13.75 bytes/s 11 bytes/s 90.909 ms 134 bauds 134 bits/s 7.463 ms 16.75 bytes/s 13.4 bytes/s 74.627 ms 150 bauds 150 bits/s 6.667 ms 18.75 bytes/s 15 bytes/s 66.667 ms 200 bauds 200 bits/s 5.000 ms 25 bytes/s 20 bytes/s 50.000 ms 300 bauds 300 bits/s 3.333 ms 37.5 bytes/s 30 bytes/s 33.333 ms 600 bauds 600 bits/s 1.667 ms 75 bytes/s 60 bytes/s 16.667 ms 1200 bauds 1200 bits/s 833.333 µs 150 bytes/s 120 bytes/s 8.333 ms 1800 bauds 1800 bits/s 555.556 µs 225 bytes/s

What is Artificial intelligence of things (AIoT)

The Artificial Intelligence of Things (AIoT) is basically the combination of Artificial intelligence (AI) technologies with the Internet of things (IoT) infrastructure where the goal is to obtain more efficient IoT operations, enhance human-machine interactions and ameliorate data management and analytics. AIoT: When AI Meets the Internet of Things The Internet of Things (IoT) is a technology is helping us to reimagine our daily lives, however artificial intelligence (AI) is the real driving force behind the IoT’s full potential. Its most basic form comes in applications of tracking our fitness levels, to its wide-reaching potential across industries and urban planning, the  combination between AI and the IoT leads to a smarter future that could happen very soon.  Every day, Iot Devices used the internet to communicate, collect and send insights about our online activities and its estimated to generate an increasing 1 billion GB of data every day. By 2025, there’s projected to b

How to test crystal oscillators

 This post is about a simple circuit to test  crystal oscillators . They are found in most of the RF and processing circuitry as an external component to provide clocking, time reference for synchronization of internal system operations. testing them isn't that straight forward by connecting its terminals to a multimeter or an oscilloscope. This is an interesting test circuit for crystals in 1MHz - 30MHz range with 2 NPN transistors, Zeners, some passives, and thought of testing a few crystals. When the DUT crystal oscillates, the signal passes through the 1nF loading capacitor to the two Zeners, thereby charging the 4.7nF capacitor and turns on the second transistor which in turn illuminates the LED, indicating that it's all good!