Skip to main content

Noyito Relay Driver

jumpstarter-driver-noyito-relay provides Jumpstarter power drivers for NOYITO USB relay boards in 1, 2, 4, and 8-channel variants.

Two hardware series are supported:

  • NoyitoPowerSerial - 1/2-channel boards using a CH340 USB-to-serial chip (serial port, supports status query)
  • NoyitoPowerHID - 4/8-channel "HID Drive-free" boards presenting as a USB HID device (no serial port, supports all-channels status query)

Both use the same 4-byte binary command protocol (A0 + channel + state + checksum).

Installation

:substitutions:
$ pip3 install --extra-index-url {{index_url}} jumpstarter-driver-noyito-relay

If you are using NoyitoPowerHID, the hid Python package requires the native hidapi shared library. Install it for your OS before use:

OS Command
macOS brew install hidapi
Debian/Ubuntu sudo apt-get install libhidapi-hidraw0
Fedora/RHEL sudo dnf install hidapi

Configuration

NoyitoPowerSerial (1/2-Channel Serial)

Parameter Type Default Description
port str (required) Serial port path, e.g. /dev/ttyUSB0
channel int 1 Relay channel to control (1 or 2)
all_channels bool false Switch both channels simultaneously

Example configuration controlling both channels independently:

export:
  relay1:
    type: jumpstarter_driver_noyito_relay.driver.NoyitoPowerSerial
    config:
      port: "/dev/ttyUSB0"
      channel: 1
  relay2:
    type: jumpstarter_driver_noyito_relay.driver.NoyitoPowerSerial
    config:
      port: "/dev/ttyUSB0"
      channel: 2

NoyitoPowerHID (4/8-Channel HID)

Parameter Type Default Description
num_channels int 4 Number of relay channels on the board (4 or 8)
channel int 1 Relay channel to control (1..num_channels)
all_channels bool false Fire every channel simultaneously
vendor_id int 5131 USB vendor ID (override if needed)
product_id int 2007 USB product ID (override if needed)

Example configuration for a 4-channel board (channel 1) and an 8-channel board (all channels simultaneously):

export:
  relay_4ch_ch1:
    type: jumpstarter_driver_noyito_relay.driver.NoyitoPowerHID
    config:
      num_channels: 4
      channel: 1
  relay_8ch_all:
    type: jumpstarter_driver_noyito_relay.driver.NoyitoPowerHID
    config:
      num_channels: 8
      channel: 1
      all_channels: true

Board Detection

To determine which driver to use, check whether the board appears as a serial port or a HID device:

  • Serial port (/dev/ttyUSB*, /dev/tty.usbserial-*): Use NoyitoPowerSerial (1/2-channel CH340 board)
  • No serial port / HID only: Use NoyitoPowerHID (4/8-channel HID Drive-free board). Confirm with lsusb - the NOYITO HID module appears with VID 0x1409 / PID 0x07D7 (decimal: 5131 / 2007).

Hardware Notes (Serial)

  • Purchase: NOYITO 2-Channel USB Relay Module (Amazon)
  • Chip: CH340 USB-to-serial
  • Baud rate: 9600
  • Default port: /dev/ttyUSB0 (Linux) - may appear as /dev/tty.usbserial-* on macOS
  • Channels: 1 or 2 independent relay channels on one USB port
  • Supply voltage: 5 V via USB

Hardware Notes (HID)

Usage

Inside a jmp exporter shell:

# Power on relay 1
j relay1 on

# Query state of relay 1
j relay1 status
# on

# Power cycle relay 2 with a 3-second wait
j relay2 cycle --wait 3

# Power off relay 1
j relay1 off

# Power on all 8 channels simultaneously
j relay_8ch_all on

API Reference

.. autoclass:: jumpstarter_driver_noyito_relay.driver.NoyitoPowerSerial()
    :members:

.. autoclass:: jumpstarter_driver_noyito_relay.driver.NoyitoPowerHID()
    :members:

Metadata

Release files for jumpstarter-driver-noyito-relay 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jumpstarter-driver-noyito-relay 0.9.0
File Size Uploaded
jumpstarter_driver_noyito_relay-0.9.0.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jumpstarter-driver-noyito-relay 0.9.0
File Interpreter ABI Platform
jumpstarter_driver_noyito_relay-0.9.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.2 kB

Release files / jumpstarter_driver_noyito_relay-0.9.0.tar.gz

Download URL jumpstarter_driver_noyito_relay-0.9.0.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
902058ba4f4dae8f4b346da13b3b30b6da5e25852d5fde4c287a38b5dffc90b2
BLAKE2b-256 checksum
How to use checksums
3a8cbbf4ffee60997b98ffe2f40d2ac5abbfbe6a3acfa87ffa63429118cf9562
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Release files / jumpstarter_driver_noyito_relay-0.9.0-py3-none-any.whl

Download URL jumpstarter_driver_noyito_relay-0.9.0-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
771b8b9f19a13db9a434438d34fc89e74b05f3a8255c447bcef99d4db2d6f86e
BLAKE2b-256 checksum
How to use checksums
fe582cfddd0028568c7ae7c1b634726260c72c06c3eb4bded6837576cb2404b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page