HermesCarrierLibrary 1.0.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package HermesCarrierLibrary --version 1.0.5
NuGet\Install-Package HermesCarrierLibrary -Version 1.0.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="HermesCarrierLibrary" Version="1.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HermesCarrierLibrary --version 1.0.5
#r "nuget: HermesCarrierLibrary, 1.0.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install HermesCarrierLibrary as a Cake Addin
#addin nuget:?package=HermesCarrierLibrary&version=1.0.5

// Install HermesCarrierLibrary as a Cake Tool
#tool nuget:?package=HermesCarrierLibrary&version=1.0.5

Hermes Carrier Library

Hermes Library is a set of APIs that allow developers to access and interact with ant, usb and bluetooth devices within their applications. The library provides an easy-to-use interface for managing communication between devices and the application.


  • Ant: The Ant library provides access to ant devices trough Ant Dongle and allows you to send and receive data from these devices. You can also set up and manage ant channels, broadcast data, and receive responses from the devices. For more information about ant, you can visit the ant developer website.

  • USB: The USB library provides access to USB devices and allows you to send and receive data from these devices. You can also configure the communication between the application and the device, including setting up transfer and control transfers. The library is heavily based on android's USB host API

  • Bluetooth: The Bluetooth library provides access to Bluetooth devices and allows you to send and receive data from these devices. You can also manage the pairing of devices and configure the communication settings between the application and the device. (Not yet implemented)

Getting Started

The library is available as a NuGet package, and you can install it using the following command in the Package Manager Console:

Install-Package HermesCarrierLibrary



In this example we will show how to use the Ant library to send a ResetSystemMessage to an Ant Dongle.

// We can get a list of all the Ant Dongles connected to the device or we can detect newly connected devices
// We will use the first one
var trasmitter = deviceService.AntTransmitters.FirstOrDefault();

// We can now open the Ant Dongle
    await transmitter.OpenAsync();

// If everything went well, we can now start using the Ant Dongle        
await transmitter.SendMessageAsync(new ResetSystemMessage()); // Will send the ResetSystemMessage to the Ant Dongle


In this example we will show how to use the USB library to open a USB device and send a message to it.

// Now we can get list of all the USB devices connected to the device
var devices = deviceService.UsbDevices.FirstOrDefault();

// We can get usb interfaces from the device
var interfaces = device.Interfaces.First();

// We can also get the endpoints from the interface
var endpoint = interfaces.Endpoints.First();

// We can now open the USB device
await device.OpenAsync();

// If everything went well, we can now start using the USB device
await device.ClaimInterfaceAsync(interface); // Claim the interface

// Now we can send the message
var bytes = new byte[0];
var transfer = new UsbBulkTransfer(endpoint, bytes, bytes.Length, 1000);
var result = await device.BulkTransfer(transfer);


The Bluetooth library is not yet implemented.

Demo App

The demo app is a simple application that allows you to test the library and see how it works. You can find the demo app in the Hermes Demo App

OS Support

OS Ant USB Bluetooth
  • ✅: Supported
  • ❌: Not supported
  • ⌛: Planned


Hermes Library is licensed under the Apache License, Version 2.0


Contributions are welcome! If you want to contribute or just have a idea to the project, please open an issue or a pull request.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-android33.0 is compatible.  net7.0-ios was computed.  net7.0-ios16.1 is compatible.  net7.0-maccatalyst was computed.  net7.0-maccatalyst16.1 is compatible.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net7.0-windows10.0.19041 is compatible.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net7.0

    • No dependencies.
  • net7.0-android33.0

    • No dependencies.
  • net7.0-ios16.1

    • No dependencies.
  • net7.0-maccatalyst16.1

    • No dependencies.
  • net7.0-windows10.0.19041

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated 184 5/26/2023
1.0.7 116 5/26/2023
1.0.6 209 3/8/2023
1.0.5 229 2/15/2023
1.0.4 227 2/14/2023
1.0.3 234 2/8/2023
1.0.2 250 2/8/2023
1.0.1 235 2/7/2023
1.0.1-beta 123 2/7/2023
1.0.0 246 2/7/2023