Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit Senzemo Folder #813

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
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
7 changes: 7 additions & 0 deletions vendor/senzemo/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@ endDevices:
- smc30
- spu20
- spu20b
- sto10
- slw10
- srm10
- ssm40
- stf40
- stp40

4 changes: 4 additions & 0 deletions vendor/senzemo/slw10-codec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Uplink decoder decodes binary data uplink into a JSON object (optional)
# For documentation on writing encoders and decoders, see: https://thethingsstack.io/integrations/payload-formatters/javascript/
uplinkDecoder:
fileName: slw10.js
127 changes: 127 additions & 0 deletions vendor/senzemo/slw10.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
/*

_____ _____ __ _ __
/ ___/___ ____ ____ ___ ____ ___ ____ / ___/___ ____ _____/ /_(_)____/ /__
\__ \/ _ \/ __ \/_ / / _ \/ __ `__ \/ __ \\__ \/ _ \/ __ \/ ___/ __/ / ___/ //_/
___/ / __/ / / / / /_/ __/ / / / / / /_/ /__/ / __/ / / (__ ) /_/ / /__/ ,<
/____/\___/_/ /_/ /___/\___/_/ /_/ /_/\____/____/\___/_/ /_/____/\__/_/\___/_/|_|

Senstick SLW10 HW 1.0 - FW 1.0
*/


function decodeUplink(input)
{
const bytes = input.bytes;
const port = input.fPort;

var Status;
var BatteryVoltage;
var SensorVoltage;

// Alarm Packet
if (port == 1)
{
if (bytes.length == 1)
{
Status = bytes[0];

return {
data: {
Status: Status
},
warnings: [],
errors: []
};
}
}

// Data Packet
else if (port == 2)
{
if (bytes.length == 4)
{
BatteryVoltage = (bytes[0] << 8) + bytes[1];
SensorVoltage = (bytes[2] << 8) + bytes[3];

return {
data: {
Status: 0,
BatteryVoltage: BatteryVoltage,
SensorVoltage: SensorVoltage,
},
warnings: [],
errors: []
};
}

else if (bytes.length == 5)
{
Status = bytes[0];
BatteryVoltage = (bytes[1] << 8) + bytes[2];
SensorVoltage = (bytes[3] << 8) + bytes[4];

return {
data: {
Status: Status,
BatteryVoltage: BatteryVoltage,
SensorVoltage: SensorVoltage,
},
warnings: [],
errors: []
};
}
}

// If Config packet
else if (port == 3)
{
if (bytes.length == 9)
{
Status = bytes[0];
var SendPeriod = bytes[1];
var MoveThr = bytes[2];
var PacketConfirm = bytes[3];
var DataRatePlusADR = bytes[4];
var FamilyId = bytes[5];
var ProductId = bytes[6];
var HW = bytes[7];
var FW = bytes[8];

var ADRon = Boolean(DataRatePlusADR & (1 << 7));
var DataRate = (DataRatePlusADR & 0x7F);

return {
data: {
Status: Status,
SendPeriod: SendPeriod,
MoveThr:MoveThr,
PacketConfirm: PacketConfirm,
DataRate: DataRate,
ADRon: ADRon,
FamilyId: FamilyId,
ProductId: ProductId,
HW: HW/10,
FW: FW/10
},
warnings: [],
errors: []
};
}
}

// RTT FW warning
else if (port == 4)
{
var warning = "RTT FIRMWARE";

return {
data: {
warning: warning
},
warnings: [],
errors: []
};
}
}

Binary file added vendor/senzemo/slw10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
162 changes: 162 additions & 0 deletions vendor/senzemo/slw10.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
name: SLW10 - Senstick Leaf Wetness
description: Leaf Wetness LoRaWAN® sensor, SLW10 measures the presence and duration of moisture on the surface of leaves.
# Hardware versions (optional, use when you have revisions)
hardwareVersions:
- version: '1.0'
numeric: 10
partNumber: SLW10

# Firmware versions (at least one is mandatory)
firmwareVersions:
- # Firmware version
version: '1.0'
numeric: 10
# Corresponding hardware versions (optional)
hardwareVersions:
- '1.0'

# LoRaWAN Device Profiles per region
# Supported regions are EU863-870, US902-928, AU915-928, AS923, CN779-787, EU433, CN470-510, KR920-923, IN865-867, RU864-870
profiles:
EU863-870:
id: profile-eu868
lorawanCertified: false
codec: slw10-codec
AS923:
id: profile-as923
lorawanCertified: false
codec: slw10-codec
US902-928:
id: profile-us915
lorawanCertified: false
codec: slw10-codec
AU915-928:
id: profile-au915
lorawanCertified: false
codec: slw10-codec

# Sensors that this device features (optional)
# Valid values are: accelerometer, altitude, auxiliary, barometer, battery, button, co2, distance, dust, gps, gyroscope,
# humidity, light, link, magnetometer, moisture, ph, pir, proximity, rssi, snr, sound, temperature, tvoc, velocity,
# vibration, water, wind direction and wind speed.
sensors:


# Dimensions in mm (optional)
# Use width, height, length and/or diameter
dimensions:
width: 25
length: 105
height: 25

# Weight in grams (optional)
weight: 90

# Battery information (optional)
battery:
replaceable: true
type: ER14505

# Operating conditions (optional)
operatingConditions:
# Temperature (Celsius)
temperature:
min: -40
max: 85
# Relative humidity (fraction of 1)
relativeHumidity:
min: 0
max: 1.00

# IP rating (optional)
ipCode: IP67

# Key provisioning (optional)
# Valid values are: custom (user can configure keys), join server and manifest.
keyProvisioning:
- custom
- join server

# Key security (optional)
# Valid values are: none, read protected and secure element.
keySecurity: none

# Product and data sheet URLs (optional)
productURL: https://senzemo.com/products/leaf-wetness-sensor/
dataSheetURL: https://senzemo.com/wp-content/uploads/2023/05/Senstick-Leaf-Wetness-SLW10-Datasheet.pptx.pdf
resellerURLs:
- name: 'Sensational Systems'
region:
- United Kingdom
url: https://sensational.systems/
- name: 'Arcsgroup'
region:
- Australia
url: https://thearcsgroup.com/
- name: Choovio
region:
- United States
url: https://www.choovio.com/iot-online-shop/brand/senzemo-distributor/
- name: IrysIoT
region:
- United States
url: https://irysiot.com/
- name: IoT Shop (Alpha-Omega Gmbh.)
region:
- European Union
url: https://iot-shop.de/en/shop/category/brand-senzemo-945
- name: M2M Germany
region:
- European Union
url: https://www.m2mgermany.de/
- name: Allnet
region:
- European Union
url: https://www.allnet.de/
- name: IoT Systems
region:
- European Union
url: https://www.iot-systems.at/
- name: AgroID
region:
- European Union
url: https://www.agroid.it/
- name: EdgeIoT
region:
- Brazil
url: https://www.edgeiot.com.br/
- name: ES Canada
region:
- Canada
url: https://www.es-canada.com/


# Photos
photos:
main: slw10.png


# Youtube or Vimeo Video (optional)

# Regulatory compliances (optional)
compliances:
safety:
- body: IEC
norm: EN
standard: 62368-1
radioEquipment:
- body: ETSI
norm: EN
standard: 303 446-1
- body: ETSI
norm: EN
standard: 303 446-2
- body: ETSI
norm: EN
standard: 301 489-17
- body: ETSI
norm: EN
standard: 61000-6-1
- body: IEC
norm: EN
standard: 61000-6-2
48 changes: 37 additions & 11 deletions vendor/senzemo/smc30.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ firmwareVersions:
# humidity, light, link, magnetometer, moisture, ph, pir, proximity, rssi, snr, sound, temperature, tvoc, velocity,
# vibration, water, wind direction and wind speed.
sensors:
- temperature
- humidity
- pressure
- battery


# Dimensions in mm (optional)
# Use width, height, length and/or diameter
Expand Down Expand Up @@ -86,25 +83,54 @@ keyProvisioning:
keySecurity: none

# Product and data sheet URLs (optional)
productURL: http://senstick.co
dataSheetURL: https://senstick.co/downloads/Senstick-SMC30-Datasheet.pdf
productURL: https://senzemo.com/products/indoor-microclimate-sensor/
dataSheetURL: https://senzemo.com/wp-content/uploads/2022/11/Senstick-SMC30-Datasheet.pdf
resellerURLs:
- name: 'Sensational Systems'
region:
- European Union
- United Kingdom
url: https://sensational.systems/
- name: 'Arcsgroup'
region:
- Australia
url: https://thearcsgroup.com/
- name: 'mydevices'
- name: Choovio
region:
- United States
url: https://www.choovio.com/iot-online-shop/brand/senzemo-distributor/
- name: IrysIoT
region:
- United States
url: https://mydevices.com/
- name: 'Concept13'
url: https://irysiot.com/
- name: IoT Shop (Alpha-Omega Gmbh.)
region:
- European Union
url: https://www.concept13.co.uk/
url: https://iot-shop.de/en/shop/category/brand-senzemo-945
- name: M2M Germany
region:
- European Union
url: https://www.m2mgermany.de/
- name: Allnet
region:
- European Union
url: https://www.allnet.de/
- name: IoT Systems
region:
- European Union
url: https://www.iot-systems.at/
- name: AgroID
region:
- European Union
url: https://www.agroid.it/
- name: EdgeIoT
region:
- Brazil
url: https://www.edgeiot.com.br/
- name: ES Canada
region:
- Canada
url: https://www.es-canada.com/


# Photos
photos:
Expand Down
Loading
Loading