Helium Python Helper
Project description
Helium Python Helper
A helper module used across various Nebra repos to reduce redundant features.
This package is used in a number of Nebra software repos:
Helium Hardware Definitions
from hm_pyhelper.hardware_definitions import variant_definitions
This repository contains the python file that contains a GPIO map for all of the different hardware combinations to be supported by the Nebra Helium Hotspot Software.
All numbers below are their GPIO / BCM Numbers, not physical pin numbers.
Note: Light hotspot software will also work on all models listed as type "full".
Nebra Hotspots
Model | ENV Identifier | SPI Bus | Reset Pin | Status LED | Button | Type | Cellular | Notes |
---|---|---|---|---|---|---|---|---|
Nebra Indoor Hotspot Gen 1 | NEBHNT-IN1 | 1.2 | 38 | 25 | 26 | Full | False | CM3 based |
Nebra Outdoor Hotspot Gen 1 | NEBHNT-OUT1 | 1.2 | 38 | 25 | 24 | Full | True | CM3 based |
Nebra Pi 0 Light Hotspot S | NEBHNT-LGT-ZS | 1.2 | 22 | 24 | 23 | Light | False | SPI Based Ethernet |
Nebra Pi 0 Light Hotspot X | NEBHNT-LGT-ZX | 1.2 | 22 | 24 | 23 | Light | False | USB Based Ethernet |
Nebra Beaglebone Light Hotspot | NEBHNT-BBB | 1.0 | 60 | 31 | 30 | Light | False | In Planning |
Nebra Pocket Beagle Light Hotspot | NEBHNT-PBB | 1.0 | 60 | 31 | 30 | Light | False | In Planning |
Nebra Hotspot HAT RockPi4 | NEBHNT-HHRK4 | 1.0 | 149 | 156 | 154 | Full | False | In Planning |
Nebra Hotspot HAT RPi | NEBHNT-HHRPI | 0.0 | 22 | 24 | 23 | Full | False | Should be compatible with 3+ & 4 |
Nebra Hotspot HAT RPi LIGHT | NEBHNT-HHRPL | 0.0 | 22 | 24 | 23 | Light | False | Light is compatible with all 40 pin headers |
Nebra Hotspot HAT Tinkerboard 2 | NEBHNT-HHTK | 2.0 | 167 | 163 | 162 | Full | False | Light would be compatible on TK1 |
Third Party Hotspots
We may be adding in support for other vendor's hotspots to use our software soon. Here are the variables for those.
These would also depend on their SOCs being supported by Balena.
Model | SOC/SBC | ENV Identifier | SPI Bus | Reset Pin | Status LED | Button | Type | Cellular | Notes |
---|---|---|---|---|---|---|---|---|---|
Rak Hotspot Miner | BCM2711 (Pi4 2gb RAM) | COMP-RAKHM | 0.0 | 17 | 20 | 21 | Full | False | Only Compatible with V2 hotspots with ECC Key. |
OG Helium Hotspot | BCM2711 (Pi4 2gb RAM) | COMP-HELIUM | 0.0 | 17 | 20 | 21 | Full | False | |
Syncrobit Hotspot 1 (Pi) | Full | False | |||||||
Syncrobit Hotspot 2 (RK) | Full | False | |||||||
Bobcat Miner 300 | Full | False | |||||||
SenseCAP M1 | BCM2711 (Pi4 2gb RAM) | COMP-SENSECAPM1 | 0.0 | 17 | 20 | 21 | Full | False |
DIY Hotspots
The following DIY options are also supported for light hotspot software only.
Please note, DIY Hotspots do not earn HNT.
Model | SOC/SBC | ENV Identifier | SPI Bus | Reset Pin | Status LED | Button | Type | Cellular | Notes |
---|---|---|---|---|---|---|---|---|---|
Pi Supply IoT LoRa Gateway HAT | RPi | DIY-PISLGH | 0.0 | 22 | Light | False | Any pi with 40 pin header | ||
RAK2287 | RPi | DIY-RAK2287 | 0.0 | 17 | Light | False | Any pi with 40 pin header |
utils
logger
from hm_pyhelper.utils import logger
logger = get_logger(__name__)
logger.debug("message to log")
Testing
To run tests:
pip install -r requirements.txt
pip install -r test-requirements.txt
PYTHONPATH=./ pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for hm_pyhelper-0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82e356b0cb34c7ed4fb0fd17f86be747f2328785470ab521d2e8c821e2a42d94 |
|
MD5 | e4d8457d83563878b1b8d8d3fdc88083 |
|
BLAKE2b-256 | 3ac90f3863febc8e84fb970e17bd2b14e56c4c3ec3339da5b659aeff15cf0f6a |