Fixing performance issues with Realtek RTL8156B 2.5GbE USB dongle in Ubuntu

cdc_ncm vs r8152 drivers ubuntu

A few days ago, I reviewed a USB 3.0 to 2.5 Gbps Ethernet adapter based on Realtek RTL8156B chip in Ubuntu 20.04, and let’s say the reliability and performance were underwhelming. I got some recommendations like changing cables, the MTU size, etc… Playing around with cables did no help, but one comment mentioned the cdc_ncm driver could be the issue, followed by another saying that updating to Linux kernel 5.14 should install the correct r8152 driver… So I just did that:

This upgraded Linux 5.13 (shipped with Ubuntu 20.04 + HWE) to Linux 5.14, but still no luck as the system kept using the cdc_ncm driver with a half-duplex link:

But then I thought I may have to use udev rules to prevent loading the cdc_ncm driver, and there’s indeed 50-usb-realtek-net.rules in r8152 driver to do just that. So I copied the file in /etc/udev/rules.d/ folder. Since I […]

IoT device monitoring as a product reliability improvement tool

IoT Device Monitoring with Torizon Platform

CNXSoft: This is a guest post by Renato Kiss, Product Manager – Software at Toradex, explaining how IoT device monitoring can be used with open-source software tools like Fluent Bit to improve product reliability, using temperature monitoring as an example. It is impossible to dissociate connected devices from modern life. They are present in homes, offices, industries – basically, in every business, connected devices play vital roles. In a market estimated at 24.1 billion devices and with a revenue of more than USD 1.5 trillion by 2030, IoT will grow based on both consumer and business applications. Hardware will account for about one-third of this value with the majority being distributed in services, including the connectivity for the system. As part of this growth, more services will be added to IoT business and some specialists estimate the economic potential, including IoT products and services, can unlock at least USD 5.5 […]

Building a NanoPi M4V2 based All-in-One Linux PC running Armbian (Ubuntu/Debian)

Armbian Ubuntu All-in-One PC

At the end of my review of “RPI All-in-One” PC with Raspberry Pi 4, I noted the system also appeared to be compatible with NanoPi M4V2 single board computer. I’ve now tried it out, and assembling the board inside the 10.1-inch display is even easier than I initially thought. That means I now have a NanoPi M4V2 All-in-One PC running Ubuntu Hirsute or Debian Buster with XFCE desktop environment from Armbian, and most features work including the display and wireless connectivity, but I still have an issue with the touchscreen function. Here are the steps I followed initially: Download Armbian Buster XFCE image from Armbian and flash it to a microSD card with tools like USBimager. Insert the microSD card in the board Install the USB Type-C and HDMI-A adapters in the display. Insert the USB Type-C and HDMI port of the NanoPi M4V2 SBC into the adapters Install the […]

How to repair lost data in .ost and .pst files in Microsoft Outlook 365 (Sponsored)

Microsoft Outlook Repair Tool

Any software, even the most reliable, can at times encounter certain errors that prevent it from functioning, and Microsoft Outlook is no exception. Despite the fact that this program is extremely reliable, in certain situations, users may indeed encounter errors that require proactive action. In most cases, these errors are related to the storage of personal information in OST and PST files. These files are necessary for the stable operation of the application since they store part of the user data. In the event that these files are damaged, then further work with the program becomes impossible, and it will complain about errors. In this article, we will take a closer look at the basic recovery methods. Note that not only standard approaches to solving the problem will be considered, but also various additional tools. Recovery Toolbox for Outlook is an effective tool for recovering errors from Outlook. The program […]

Blink an LED on ESP32 board with Tuya Link SDK

Tuya-ledapp-Featured-Image

Tuya is an All-in-one IoT Platform that enables the user to build smart IoT solutions by connecting devices efficiently, securely, and reliably. This is a getting started article to set up the Tuya platform with the Espressif’s ESP32 boards via tuya link SDK. Further, we use it to control an LED through an Android device. When the switch in the Tuya Smart App is turned ON, the LED connected to the ESP32 board glows and vice versa. Prerequisites Hardware: ESP32 board LED with suitable ballast resistor Breadboard, micro-USB cable, and connecting wires Software: Tuya Account: Tuya IoT Platform (Web) Tuya Account: Tuya Smart Application (Android) Python 3.x Arduino IDE GitHub Link: https://github.com/JayeshRajam/Tuya-ledapp.git Hardware Connections for Tuya Link SDK The ESP32 board is placed on a breadboard. The positive terminal of the LED is connected to digital pin 5 of the ESP32 board and the negative terminal is connected to the […]

A deep dive into Raspberry Pi Zero 2 W’s power consumption

Raspberry Pi Zero 2 W Power Consumption measurements with Otii Arc

When I completed my review of Raspberry Pi Zero 2 W, I mentioned I would test the power consumption of the board later. It took a while, but I’ve finally come around it using Otii Arc from Qoitech and Otii software to provide some pretty power consumption charts, and even energy consumption. Since the Raspberry Pi Foundation recommends a 5V/2.5A power supply, I’ll first try to get as close as possible as 2.5A, then I’ll go through tricks to reduce idle power consumption to less than 75 mA / 375 mW, and finally check the energy consumption under various CPU core count and frequency. Raspberry Pi Zero 2 W Power consumption under load, with accessories I started with the latest Raspberry Pi OS Lite “Bullseye” image and connected my Raspberry Pi Zero 2 W board to Qoitech Otii Arc tools as shown below. It used to cost around $500, but […]

Tribulations with Linux on Zidoo M6 Rockchip RK3566 mini PC

Rockchip Short eMMC D0 pin

After our review of the Zidoo M6 mini PC with Android 11, we’ve installed Linux on the Rockchip device, and we did boot to a Linux Qt user interface built with buildroot. Let’s try to see what we can do with the image, and then try Ubuntu from a competing mini PC to check out if that can work. Since there’s no package manager to install a screenshooting program, I tried to use the usual method to take a framebuffer screenshot.

It generated an 8MB file which looked good, but the content was just comprised of zeros.

I asked Zidoo for a method to take screenshots in their Linux image, but I was told there weren’t any at this time… No worries, let’s try some of the applications in the Qt interface starting with the Multivideoplayer: It starts well with 9 videos of Big Buck Bunny playing simultaneously, […]

Setting up a motion activated light with Sonoff Zigbee sensor and T2 WiFi switch

Sonoff T2 wiring Thailand

Earlier this month, I received a Sonoff ZBBridge Zigbee gateway, a motion sensor, and a Sonoff T2 wireless switch in order to set up everything to work as a motion activated light using Zigbee and WiFi through the eWelink Android app and cloud service. You can check out the first post to have a closer look at the hardware and accessories. We’ve now had time to configure everything and will report the results of the project in this post. The idea is basically to detect motion with the Zigbee sensor, which then transmits the info through the gateway, and the T2 switch is controlled by the eWelink cloud. Last time around, I thought I had a switch with a neutral wire at home, but I did not check in detail enough, and I’ve been unable to use it. Without suitable switches in my home, it was not practical to rewire […]

Exit mobile version
EmbeddedTS embedded systems design