Okay, let's look for Linux Zigbee gateway applications primarily written in C or C++. Finding a ready-to-use, feature-rich gateway application primarily in C/C++ is slightly less common than options in Python or Node.js (like Zigbee2MQTT or ZHA/zigpy), but there are strong contenders, especially when considering core components or SDKs.
Based on the search results, here are some of the best or most relevant C/C++ based Zigbee gateway applications and implementations for Linux:
-
deCONZ (by Dresden Elektronik)
- Description: This is a popular and mature option[1]. deCONZ itself is a C++ application that runs on Linux (including Debian, Ubuntu, Raspberry Pi OS) [14, 24]. It manages a Zigbee network using Dresden Elektronik's ConBee or RaspBee hardware adapters [15, 17, 24][2].
- Features: It provides a graphical interface (the deCONZ GUI accessible via VNC [17]) and a comprehensive REST API plugin (which is open source [14, 16]) for interacting with Zigbee devices (lights, sensors, switches) [16, 17]. It also integrates with the Phoscon web application for a user-friendly interface [16, 17]. It supports a wide range of devices from different vendors [17][1][2].
- Language: The core application and REST API plugin are written in C++ [14, 16]. Some parts might involve closed-source blobs from the vendor [14].
- Suitability: Good choice for a relatively ready-to-use gateway application with both user interface and API access, especially if using ConBee/RaspBee hardware.
-
Texas Instruments (TI) Z-Stack Linux Gateway
- Description: This is more of an SDK or software suite provided by TI for creating a Zigbee-to-IP gateway solution on Linux (x86 or ARM like BeagleBone Black) [3, 4, 18, 21]. It typically works with a TI SimpleLink MCU (like CC13x2/CC26x2 or older CC253x) running Zigbee Network Processor (ZNP) firmware [3, 4, 21]. The download link has historically been problematic but might be available via archives or support forums [10, 25].
- Features: Provides a set of C-based server applications running on the Linux host that abstract Zigbee network management via a socket API [3, 4, 7]. Includes source code for these servers and sample gateway applications (one C-based terminal GUI, one Node.js web app) [3, 4][3]. Uses protobuf over local sockets for communication [7][4].
- Language: The core gateway server subsystem is implemented as a C-based application [4][3]. Sample applications may be C or other languages [4]. Building for x86 might require specific steps and handling of dependencies like protobuf-c [10, 11, 12, 18].
- Suitability: Best suited for developers building custom gateway solutions on Linux using TI Zigbee hardware, offering lower-level control and source code access for the gateway servers [3, 4].
-
ubisys Components & SDKs
- Description: ubisys offers various C++ components and SDKs for Zigbee development that support Linux [1, 5, 6, 9][5]. Their Compact7B stack is an embedded C++ library that can run on Linux hosts (e.g., Raspberry Pi with specific radio modules) [9]. They also provide SDKs for integrating Zigbee (including Zigbee Direct) into applications [1]. Their G1 gateway runs Linux [5, 8][6][7].
- Features: Provides object-oriented C++ libraries [6, 9]. Offers SDKs with shared objects (.so) for Linux development [1][5]. Supports Zigbee 3.0 and Zigbee Direct [1, 9].
- Language: Primarily C++ [1, 6, 9].
- Suitability: Geared towards developers creating custom Zigbee applications or integrating ubisys hardware/software into their solutions on Linux.
-
kappaio
- Description: An open-source Linux Zigbee gateway specifically mentioned as being based on the TI CC2531 USB dongle [2].
- Language: Written mostly in C/C++ [2][8].
- Suitability: Appears to be a less common or perhaps less mature project compared to deCONZ or the TI stack, but is explicitly C/C++ and open source [2]. Might be worth investigating if using a CC2531.
-
Lower-Level Libraries (for building custom solutions):
- libezsp (by Legrand): A C++ library specifically designed to communicate with Silicon Labs Zigbee transceivers using the EZSP protocol over UART on Linux [26][9]. It's not a full gateway application but provides the C++ building blocks for interacting with the radio.
- Silicon Labs Zigbee Host Software: Silicon Labs provides host applications like
Z3Gateway and zigbeed which can be built and run on Linux (often demonstrated on Raspberry Pi) as part of their Gecko SDK [13, 20]. These are likely written in C/C++.
- Nordic Semiconductor ZBOSS NCP Host: For use with Nordic nRF SoCs in a Network Co-Processor (NCP) setup, Nordic provides a ZBOSS NCP Host package with prebuilt libraries for Linux (Ubuntu specified) and potentially source for recompiling [22][10].
Considerations:
- Hardware: Your choice might depend heavily on the Zigbee coordinator hardware you plan to use (e.g., ConBee/RaspBee for deCONZ, TI chips for Z-Stack Linux Gateway, Silicon Labs chips for libezsp/Z3Gateway).
- Ease of Use vs. Flexibility: deCONZ offers a more application-like experience out-of-the-box [17], while the TI Z-Stack and other SDKs/libraries provide more flexibility but require more development effort [3, 4].
- Maturity and Community: deCONZ has a large user base and integration with systems like Home Assistant [14, 15, 17]. The TI stack is backed by the manufacturer but might have had availability issues [25].
In summary, deCONZ is likely the most feature-complete and user-friendly application written primarily in C++ for Linux Zigbee gateways. If you need more control or are building a custom solution using specific hardware (especially TI), the TI Z-Stack Linux Gateway C source code and servers are a strong, albeit more developer-focused, option [3, 4]. Other SDKs and libraries from ubisys, Silicon Labs, Nordic, and projects like libezsp provide C/C++ components for more specialized development [1, 9, 20, 26].