If you have a problem with your computer, you may have to go through log files, or as a software engineer, you may be looking for clues about a bug in a debug or error log. It can be done in any text editor, but there may be a better way thanks to lnav Log Files Navigator that allows checking those files more easily and efficiently in a Mac OS or Linux terminal. The following log files are supported by default even if they are compressed with gzip or bzip2: Common Web Access Log format CUPS page_log Syslog Glog VMware ESXi/vCenter Logs dpkg.log uWSGI “Generic” – Any message that starts with a timestamp Strace lnav is open-source software released under a BSD-2 clause in Github. It’s not new at all as some commits were made in January 2010, but it’s new to me, and hopefully to some of you as […]
How I Quadrupled Internet Speed in a Resort Room… with a Rope
I just temporarily moved into a room, or more exactly a small bungalow, and with my line of work I kind of need decent internet. I was told they had “WiFi”, and when I tried it out, I could log in fine, but the speed was pretty dismissal. I repeated the test close to the router and it achieved speeds I could easily live with. I happened to have a repeater with me, but it did not help as the only place I could plug was just outside my room, right under a roof, and performance was even worse (around 1 Mbps). So I had a closer look at the router installation, about 10 meters from my room, and realized it was basically stuck under a roof, which should block signals somewhat, but I’m just not sure how much… So I moved the router down, letting it hang by its […]
Getting Started with Qoitech Otii Developer Tool using ESP8266 and Raspberry Pi 4 Boards
Last month, I received Qoitech Otii Arc power supply, power meter, and DAQ unit that aims at helping hardware and software engineers develop energy-efficient products. I’ve now had time to test the unit with an ESP8266 board and Raspberry Pi 4 SBC, so I’ll show how to get started and my overall experience with the hardware and program. Requirements and Initial Setup The unit takes a 9V power supply or micro USB adapter as power input, but power output is done through banana plugs. I did not have any cables with banana plugs so I bought one on eBay for about $5 shipped. This cable is really convenient with output to USB (female connector), crocodile clips, and hook clips. However, as we’ll see below it may not be suitable for all types of loads, and you may have to make your own with a higher rated cable. You’ll need to […]
How to Build KiCad on Ubuntu 18.04 / 20.04 and Import Altium PCB Files
KiCad open-source EDA (Electronics Design Automation) suite software is now very popular, and many new projects are designed with the utility. AFAIK, some companies like Olimex switched all their new designs to KiCAD. But since many schematics and PCB layouts have been designed with other tools like EAGLE, Orcad Allegro, or Altium PCB design tools, it would be nice to be able to import those designs into KiCad. Converters have been around for a long time but when I tried to convert Beagleboard-xM OrCAD schematics to import them in KiCAD back in 2012, the results were really awful and unusable. But I recently saw a tweet saying it’s now possible to import Altium files into KiCAD. Finally, importing #altium boards into #kicad is only one click away (in the developer version). This allows to view and edit #opensource #hardware which was designed with #proprietary software, and thus, in fact, not […]
How to Detect STM32 Fakes
STMicro STM32 microcontrollers are very popular, and it’s a well-known fact there are some fakes on the market. What I did not know is that many don’t even pass the blinky test. I learned this in Greaseweazle Github repository, a “tools and USB interface for accessing a floppy drive at the raw flux level”, where keirf explains how to detect STM32 fakes, notable clones of STM32F103C8 found in Bluepill board. The photo above shows a real STM32F103C8T6 microcontroller, and all should have a similar top marking and only one circular depression on the bottom left to indicate pin 1. [Update July 9, 2023: STMicro has issued PCN MDG/22/13318 in November 2022 that changes the way chips are marked, so it’s no longer true that genuine chips from STMicro must look like the one above. Thanks to George for the update] keirf goes on to show two boards that are sold […]
Updating the BIOS (System Firmware) from the Device Manager in Windows 10
I recently started having problems playing YouTube videos in Firefox and Chrome in Ubuntu 18.04. The video would load, and I could see frames at any time, but it would just not play. I soon discovered that killing PulseAudio, and the video would play without audio. I also noticed I had Dummy Output in Sound settings. I tried all usual tricks to fix this, but still no luck. Then I discovered I had audio just after booting my computer, but after a while, there would be no audio at all. This seems to match the time by which the AMD GPU drives crashes (just warning), something that had happened ever since I installed Ubuntu on my Acer laptop. After more failed attempts, I decided to try to update the BIOS using Windows 10. A 10-minute task, right? I would just have to replace the hard drive with one pre-loaded with […]
Raspberry Pi Imager Makes Flashing OS Images Easier on Windows, macOS and Ubuntu
Most regular readers of this blog will probably find flashing operating system images to a MicroSD card to be child play. Just download the latest OS image, install balenaEtcher, select the image, the MicroSD card and you’re done. But people who have never used such tools may find it a bit confusing, so the Raspberry Pi Foundation has developer and now released a tool – Raspberry Pi Imager – working on Windows, macOS, and Ubuntu that makes it even easier. You’ll find the tool for your OS of choice on the Download page on Raspberry Pi website. I’ve given it a try in Ubuntu 18.04. Click on Operating System will bring you a list of the latest supported operating systems, an option to fully erase the MicroSD card, and another to install your own – already downloaded – custom image. I’ve selected Raspbian 2020-02-13, inserted my SD card and selected […]
Getting Started with RT-Thread Nano RTOS on RISC-V Processors
CNXSoft: This is a guest post by RT-Thread explaining how to create your first program running on their real-time operating system using a GD32V RISC-V MCU board as an example. This article describes how to “port” RT-Thread Nano to the RISC-V architecture, using the Eclipse IDE, GCC toolchain, and a basic project for the Gigadevice GD32V103 MCU. Foreword RT-Thread is an open-source embedded real-time operating system. RT-Thread has a standard version and a Nano version. The standard version consists of a kernel layer, components and service layer, and IoT framework layer, while the Nano version has a very small footprint and refined hard real-time kernel, better suited to resource-constrained microcontroller units (MCU). The main steps for porting Nano are as follows: Prepare a basic Eclipse project and get the RT-Thread Nano source code. Add the RT-Thread Nano source code to the base project and add the corresponding header path. Modify […]