Software Development & Linux Porting for Smart PDU with Open-Source Solutions

Project in Nutshell:

Promwad developed software for a smart power distribution unit (PDU) for data centres based on a Microchip Cortex-A5 microprocessor for data centres. The software included Linux OS and power distribution management applications. With open-source libraries, we reduced development and licensing costs, providing our client with a competitive advantage due to the reduced cost and enhanced functionality of the final product. 

Client & Challenge 

A leading supplier of server equipment for data centres was planning to expand its product line and release a new model of PDU devices for server rooms. As it did not have the internal resources to develop firmware, it turned to Promwad to leverage our expertise in embedded systems and Linux-based solutions. 

Solution

Our task was to develop firmware for a power distribution unit (PDU) designed for remote power management and monitoring of server room equipment. The PDU device should control power distribution, measure consumption, and manage events on other connected devices.  

The project consisted of two phases:  

  • porting the Linux OS to the hardware;  
  • development of applications for PDU management. 

For this purpose, we formed a team of software engineers who specialise in C/C++ and Linux under the guidance of a technical leader. The team worked on a fixed-price model and executed the project in a cascade mode. 

1. Hardware Description

The power distribution unit (PDU) was based on a Microchip Cortex-A5 microprocessor and was equipped with the LAN, serial, and LCD interfaces. The PDUs could operate in different master-slave modes and could be assembled in the chain.  

The PDU contained a lot of sub-modules, each of them operated with its own logic. The sub-modules, together with PDU, handled the whole electrical power distribution logic; they facilitated the power line commutation and protected the power consumers.  

This modular structure and complex interconnections influenced firmware development, but we successfully implemented all the logic.
 

2. Software Development

In the first development phase, the team focused on porting the Linux operating system to control the PDU and porting the OS to the Microchip Cortex-A5 microprocessor using the Isar database. 

The second stage was application development. To develop applications for the PDU, Promwad’s engineers used C++ (17 standard), CMake tools, Isar, and open-source libraries: 

  • Google protocol buffer for organising interprocess communication between software and hardware components; 
  • libraries for working with JSON data structures; 
  • LDAP, RADIUS and SSL libraries for user authorisation in different modes; 
  • SWUpdate for managing system and application updates; 
  • SQL-based database engine; 
  • Net-SNMP is a simple network management protocol (SNMP) for device management.  

During the application development process, the engineers performed load testing with full data flow simulation.
 

The developed applications perform the following functions: 

  • device parameters and configuration management; 
  • scheduling of actions and processing of the rules for the events; 
  • interrogation, aggregation and processing of the measured data; 
  • user and role management via different security and authorisation protocols; 
  • software updates for all components. 

All applications and devices communicate using the Inter-Process Communication (IPC) protocol based on the Google protocol buffers. 
 

Our team faced some challenges during the project but successfully found solutions: 

Partial lack of hardware

At the time of firmware development, the client did not yet have ready hardware. To avoid putting the project on pause and understand the algorithms and characteristics of the future hardware, we developed an emulation of the expected data based on the client's specifications. 

Unstable device performance data 

Performance data was needed to determine whether the device met response time and load requirements.  

So, the team periodically developed load-testing applications and evaluated different algorithm implementations. For example, we needed to ensure that the PDU could collect and process data from other connected devices and produce results in less than one second. 

Business Value 

Our client received the completed software and documentation for integration and installation. We also conducted joint testing and eliminated minor compatibility issues. Using open-source libraries allowed us to reduce development and licensing costs, which lowered the cost of the final device — smart sockets. This makes the new product more affordable and gives our client a competitive advantage in the market.



Reach Out

 

More of What We Do for Energy Management

  • Power Quality Analyser: a case study on developing a power quality analyser that combines AMP (asymmetric multiprocessing) Linux with RTOS. 

Other Case Studies

Tell us about your project!

All submitted information will be kept confidential.