Articles containing useful examples

OpenThread CLI Example

OpenThread provides a command-line interface (CLI) that can be useful for people new to Thread. It provides an easy way to configure a Thread device, manage a Thread network, and test communication between devices. This article will show how to use CLI with devices running an OpenThread stack. Tools used: Two Nordic development kits that

2024-10-23T20:18:35+03:00By |Categories: How To|Tags: , |0 Comments

Flutter – resolve ‘:flutter_plugin_android_lifecycle:androidJdkImage’

Since I updated the Android Studio to Android Studio Ladybug | 2024.2.1, some of my projects in Flutter have stopped working. The error was: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':flutter_plugin_android_lifecycle:compileDebugJavaWithJavac'. > Could not resolve all files for configuration ':flutter_plugin_android_lifecycle:androidJdkImage'. > Failed to transform core-for-system-modules.jar to match

2024-10-15T18:55:53+03:00By |Categories: How To|0 Comments

OpenThread Border Router on Raspberry Pi

This article will present the steps for setting up a Thread border router on Raspberry Pi 5 using the open-source implementation OpenThread. The border router's software stack will run on the host processor (Raspberry Pi), and a minimal “controller” will run on a device with a Thread radio (NRF52840 USB dongle). This kind of setup

2024-10-08T06:25:11+03:00By |Categories: How To|Tags: , |0 Comments

How To Create a BLE Sensor Beacon (Part 2): The Firmware

This article is the second installment in a series that details the creation process of a Bluetooth Low Energy (BLE) sensor beacon (See Part 1). Here, we provide an overview of the firmware structure and functionality without diving into code details. The BLE beacon project is code-named "Athena," you may see this name mentioned in

2024-09-29T21:06:53+03:00By |Categories: How To|Tags: , , |0 Comments

How To Create a BLE Sensor Beacon (Part 1): The Hardware

In several articles, we will outline the necessary steps and tools for creating a Bluetooth Low Energy (BLE) beacon. The BLE beacon project is codenamed “Athena,” and you may see this name mentioned in the article and in the schematics and source code. All the software tools used for this project are either open-source or

2024-09-08T09:12:19+03:00By |Categories: How To|Tags: , , |0 Comments

Example Service About Automatic Restoration of iptables

In some cases, we need to load iptables after everything has started. The following is an example of a service to accomplish this. The service starts when the server is idle, checks for the executable file, and then starts it. [Unit] Description=runs iptables restore on boot ConditionPathExist=/etc/iptables-my/iprestore.sh After=network.target [Service] Type=idle User=root ExecStart=/etc/iptables-my/iprestore.sh RemainAfterExit=yes GuessMainPID=no [Install]

2024-06-29T12:19:38+03:00By |Categories: How To|0 Comments

Experience With Setting Up Ports

Sometimes, when you don't work with a specific system, you can forget how to set it up or check its settings. This happened to me when I set up an Ubuntu server. It had been 6-7 years since I last worked on this type of server, and I missed out on some new features and

2024-06-29T11:45:48+03:00By |Categories: How To|0 Comments

Import JSON file in TypeScript

In this example, I will show you a simple way to import JSON files in TypeScript code. It requires just two simple steps. The first is to change the tsconfig.json file by adding the line: , "resolveJsonModule": true in "compilerOptions" section. { "compilerOptions": { ... , "resolveJsonModule": true ... } ... } After that, you have

2022-09-13T21:14:21+03:00By |Categories: How To|0 Comments

Install Django and Verify It

Django is a Python framework used to create websites. Installation is easy. The recommended way is to use pip. python -m pip install Django This will install Django and you will see something like this: Django instalation using pip After the installation is complete you can verify it using this code: import django print(django.get_version()) If

2020-11-15T21:15:44+02:00By |Categories: How To|0 Comments

KiCad – Create Template

KiCad templates are used to create projects with common settings. Templates can contain everything you need for a new project, for example, table and graphic formating, board outlines, schematic elements, etc. You can create a KiCad template with the following easy steps: Create a project with the settings you needAdd a folder named meta in

2020-07-26T19:33:56+03:00By |Categories: How To|1 Comment
Go to Top