NebraLtd / hm-pyhelper

A helper module used across various Nebra repos to reduce redundant features.
https://nebra.io/hmpyhelper
MIT License
9 stars 16 forks source link

Add parameters to support USB concentrators #28

Open shawaj opened 2 years ago

shawaj commented 2 years ago

For the 5g software, we need to add a parameter to the variants file that says USB or SPI and relates to the connection method of the concentrator

This will then be picked up in hm-pktfwd to determine what to put in the config.json

shawaj commented 2 years ago
    # Nebra 5G
    'NEBHNT-5G': {
        'FRIENDLY': 'Nebra 5G Gateway',
        'APPNAME': '5G',
        'SPIBUS': 'spidev2.0',
        'RESET': 167,
        'MAC': 'eth0',
        'STATUS': 163,
        'BUTTON': 162,
        'ECCOB': False,
        'TPM2': True,
        'TYPE': 'Full',
        'CELLULAR': False
        },

I'm in two minds whether for SPI bus we could just put a USB bus address instead. Like /dev/ttyACM or whatever

shawaj commented 2 years ago

See here for reference https://github.com/NebraLtd/hm-pyhelper/pull/84#issuecomment-1000496510