Skip to content

Commit

Permalink
feat: fix panther and Sensecap and add new variants
Browse files Browse the repository at this point in the history
Relates-to: #197
  • Loading branch information
shawaj authored Mar 21, 2023
1 parent 37f6bb4 commit 679582b
Showing 1 changed file with 70 additions and 2 deletions.
72 changes: 70 additions & 2 deletions hm_pyhelper/hardware_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def is_raspberry_pi() -> bool:
},

# Panther X1
'panther-fl1': {
'pantherx1-fl1': {
'FRIENDLY': 'Panther X1',
'SUPPORTED_MODELS': ['Panther X1'],
'CPU_ARCH': 'arm64',
Expand Down Expand Up @@ -483,6 +483,27 @@ def is_raspberry_pi() -> bool:
'CONTAINS_IC_IDS': []
},

# Linxdot RKCM3
'linxdot-rkcm3-fl1': {
'FRIENDLY': 'Linxdot RockPi Hotspot',
'SUPPORTED_MODELS': ['Linxdot RockPi Hotspot'],
'CPU_ARCH': 'arm64',
'BALENA_DEVICE_TYPE': ['radxa-cm3-rpicm4-ioboard'],
'SPIBUS': 'spidev0.0',
'SWARM_KEY_URI': ['ecc://i2c-1:96?slot=0'],
'RESET': 17,
'MAC': 'wlan0',
'STATUS': 22,
'BUTTON': 27,
'ECCOB': True,
'TYPE': 'Full',
'CELLULAR': False,
'FCC_IDS': [],
'CONTAINS_FCC_IDS': [],
'IC_IDS': [],
'CONTAINS_IC_IDS': []
},

# Pycom CM4
'pycom-fl1': {
'FRIENDLY': 'Pycom Hotspot',
Expand Down Expand Up @@ -526,6 +547,28 @@ def is_raspberry_pi() -> bool:
'CONTAINS_IC_IDS': []
},

# Syncrobit RKCM3
'syncrobit-rkcm3-fl1': {
'FRIENDLY': 'Syncrobit RockPi Hotspot',
'SUPPORTED_MODELS': ['Syncrobit RockPi Hotspot'],
'CPU_ARCH': 'arm64',
'BALENA_DEVICE_TYPE': ['radxa-cm3-rpicm4-ioboard'],
'SPIBUS': 'spidev0.0',
'SWARM_KEY_URI': ['ecc://i2c-1:96?slot=0', 'ecc://i2c-1:88?slot=2'],
'ONBOARDING_KEY_URI': ['ecc://i2c-1:96?slot=0', 'ecc://i2c-1:88?slot=15'],
'RESET': 17,
'MAC': 'wlan0',
'STATUS': 22,
'BUTTON': 27,
'ECCOB': True,
'TYPE': 'Full',
'CELLULAR': False,
'FCC_IDS': [],
'CONTAINS_FCC_IDS': [],
'IC_IDS': [],
'CONTAINS_IC_IDS': []
},

# COTX X3 Hotspot
'cotx-fl1': {
'FRIENDLY': 'COTX X3',
Expand All @@ -547,6 +590,28 @@ def is_raspberry_pi() -> bool:
'IC_IDS': [],
'CONTAINS_IC_IDS': []
},

# RisingHF
'risinghf-fl1': {
'FRIENDLY': 'RisingHF Hotspot',
'SUPPORTED_MODELS': ['RisingHF Hotspot'],
'CPU_ARCH': 'arm64',
'BALENA_DEVICE_TYPE': ['raspberrypi3-64'],
'SPIBUS': 'spidev1.0',
'SWARM_KEY_URI': ['ecc://i2c-1:96?slot=0'],
'RESET': 38,
'MAC': 'eth0',
'STATUS': 25,
'BUTTON': 24,
'ECCOB': True,
'TYPE': 'Full',
'CELLULAR': True,
'FCC_IDS': [],
'CONTAINS_FCC_IDS': [],
'IC_IDS': [],
'CONTAINS_IC_IDS': []
},

# Midas CM4
'midas-fl1': {
'FRIENDLY': 'Midas Hotspot',
Expand Down Expand Up @@ -582,7 +647,7 @@ def is_raspberry_pi() -> bool:
variant_definitions['COMP-RAKHM'] = variant_definitions['rak-fl1']
variant_definitions['COMP-HELIUM'] = variant_definitions['helium-fl1']
variant_definitions['COMP-SENSECAPM1'] = variant_definitions['senscap-fl1']
variant_definitions['COMP-PANTHERX1'] = variant_definitions['panther-fl1']
variant_definitions['COMP-PANTHERX1'] = variant_definitions['pantherx1-fl1']
variant_definitions['COMP-FINESTRA'] = variant_definitions['finestra-fl1']
variant_definitions['COMP-PISCESP100'] = variant_definitions['pisces-fl1']
variant_definitions['COMP-COTX3'] = variant_definitions['cotx-fl1']
Expand All @@ -591,6 +656,9 @@ def is_raspberry_pi() -> bool:
variant_definitions['COMP-PYCOM'] = variant_definitions['pycom-fl1']
variant_definitions['COMP-SYNCROBITCM4'] = variant_definitions['syncrobit-fl1']
variant_definitions['COMP-MIDAS'] = variant_definitions['midas-fl1']
variant_definitions['COMP-SYNCROBITRKCM3'] = variant_definitions['syncrobit-rkcm3-fl1']
variant_definitions['COMP-LINXDOTRKCM3'] = variant_definitions['linxdot-rkcm3-fl1']
variant_definitions['COMP-RISINGHF'] = variant_definitions['risinghf-fl1']


def get_variant_attribute(variant_name, attribute_key):
Expand Down

0 comments on commit 679582b

Please sign in to comment.