Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions vendor/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2209,3 +2209,7 @@ vendors:
- id: safora
name: Safora Technologies
website: https://www.safora-tech.com

- id: option
name: Option NV
website: https://www.option.com
85 changes: 85 additions & 0 deletions vendor/option/cloudgate-probe-mbus-codec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
uplinkDecoder:
fileName: cloudgate-probe-mbus.js
examples:
- description: Analog input voltage
input:
fPort: 1
bytes: [0, 2, 210, 4]
output:
data:
measurements:
- type: analogInput
voltage_mV: 1234

- description: Modbus register value
input:
fPort: 1
bytes: [2, 8, 1, 129, 26, 6, 50, 0, 4, 0]
output:
data:
measurements:
- type: modbusValue
slaveId: 1
registerNumber: 400001
rawData: [50, 0, 4, 0]

- description: Firmware version report
input:
fPort: 1
bytes: [10, 14, 2, 0, 4, 5, 84, 76, 49, 76, 84, 51, 53, 48, 53, 53]
output:
data:
measurements:
- type: firmwareVersion
firmwareVersion: '2.0.4'
hardwareVersion: 5
serial: TL1LT35055

downlinkEncoder:
fileName: cloudgate-probe-mbus.js
examples:
- description: Reboot the device
input:
data:
command: reboot
output:
bytes: [1, 0]
fPort: 2

- description: Set the basic configuration
input:
data:
command: setBasicConfiguration
mainInterval: 120
debounceTime: 100
analogInMode: 1
digitalInMode: 2
digitalOut1Mode: 0
digitalOut2Mode: 0
reportOutputPinsState: true
output:
bytes: [7, 9, 120, 0, 100, 0, 1, 2, 0, 0, 1]
fPort: 2

- description: Write value 1234 to holding register 400020 on Modbus slave 1
input:
data:
command: writeModbusRegister
deviceId: 1
registerNumber: 400020
numRegisters: 1
data: [4, 210]
output:
bytes: [5, 7, 1, 148, 26, 6, 1, 4, 210]
fPort: 2

downlinkDecoder:
fileName: cloudgate-probe-mbus.js
examples:
- description: Reboot the device
input:
fPort: 2
bytes: [1, 0]
output:
data:
command: reboot
47 changes: 47 additions & 0 deletions vendor/option/cloudgate-probe-mbus-profile-eu868.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# LoRaWAN MAC version: 1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4 or 1.1
macVersion: '1.0.3'
# LoRaWAN Regional Parameters version. Values depend on the LoRaWAN version:
# 1.0: TS001-1.0
# 1.0.1: TS001-1.0.1
# 1.0.2: RP001-1.0.2 or RP001-1.0.2-RevB
# 1.0.3: RP001-1.0.3-RevA
# 1.0.4: RP002-1.0.0, RP002-1.0.1, RP002-1.0.2, RP002-1.0.3 or RP002-1.0.4
# 1.1: RP001-1.1-RevA or RP001-1.1-RevB
regionalParametersVersion: 'RP001-1.0.3-RevA'

# Whether the end device supports join (OTAA) or not (ABP)
supportsJoin: true
# If your device is an ABP device (supportsJoin is false), uncomment the following fields:
# RX1 delay
#rx1Delay: 5
# RX1 data rate offset
#rx1DataRateOffset: 0
# RX2 data rate index
#rx2DataRateIndex: 0
# RX2 frequency (MHz)
#rx2Frequency: 869.525
# Factory preset frequencies (MHz)
#factoryPresetFrequencies: [868.1, 868.3, 868.5, 867.1, 867.3, 867.5, 867.7, 867.9]

# Maximum EIRP
maxEIRP: 16
# Whether the end device supports 32-bit frame counters
supports32bitFCnt: true

# Whether the end device supports class B
supportsClassB: false
# If your device supports class B, uncomment the following fields:
# Maximum delay for the end device to answer a MAC request or confirmed downlink frame (seconds)
#classBTimeout: 60
# Ping slot period (seconds)
#pingSlotPeriod: 128
# Ping slot data rate index
#pingSlotDataRateIndex: 0
# Ping slot frequency (MHz). Set to 0 if the band supports ping slot frequency hopping.
#pingSlotFrequency: 869.525

# Whether the end device supports class C
supportsClassC: true
# If your device supports class C, uncomment the following fields:
# Maximum delay for the end device to answer a MAC request or confirmed downlink frame (seconds)
classCTimeout: 60
47 changes: 47 additions & 0 deletions vendor/option/cloudgate-probe-mbus-profile-us915.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# LoRaWAN MAC version: 1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4 or 1.1
macVersion: '1.0.3'
# LoRaWAN Regional Parameters version. Values depend on the LoRaWAN version:
# 1.0: TS001-1.0
# 1.0.1: TS001-1.0.1
# 1.0.2: RP001-1.0.2 or RP001-1.0.2-RevB
# 1.0.3: RP001-1.0.3-RevA
# 1.0.4: RP002-1.0.0, RP002-1.0.1, RP002-1.0.2, RP002-1.0.3 or RP002-1.0.4
# 1.1: RP001-1.1-RevA or RP001-1.1-RevB
regionalParametersVersion: 'RP001-1.0.3-RevA'

# Whether the end device supports join (OTAA) or not (ABP)
supportsJoin: true
# If your device is an ABP device (supportsJoin is false), uncomment the following fields:
# RX1 delay
#rx1Delay: 5
# RX1 data rate offset
#rx1DataRateOffset: 0
# RX2 data rate index
#rx2DataRateIndex: 0
# RX2 frequency (MHz)
#rx2Frequency: 869.525
# Factory preset frequencies (MHz)
#factoryPresetFrequencies: [868.1, 868.3, 868.5, 867.1, 867.3, 867.5, 867.7, 867.9]

# Maximum EIRP
maxEIRP: 30
# Whether the end device supports 32-bit frame counters
supports32bitFCnt: true

# Whether the end device supports class B
supportsClassB: false
# If your device supports class B, uncomment the following fields:
# Maximum delay for the end device to answer a MAC request or confirmed downlink frame (seconds)
#classBTimeout: 60
# Ping slot period (seconds)
#pingSlotPeriod: 128
# Ping slot data rate index
#pingSlotDataRateIndex: 0
# Ping slot frequency (MHz). Set to 0 if the band supports ping slot frequency hopping.
#pingSlotFrequency: 869.525

# Whether the end device supports class C
supportsClassC: true
# If your device supports class C, uncomment the following fields:
# Maximum delay for the end device to answer a MAC request or confirmed downlink frame (seconds)
classCTimeout: 60
Loading