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

Add m2m-telecom vendor. GW-01-WIFI device. #127

Closed
wants to merge 1 commit into from
Closed
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
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/lorawan-devices.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions vendor/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1642,3 +1642,7 @@ vendors:
name: HelTec AutoMation
website: https://heltec.org/
logo: logo.png

- id: m2m-telecom
name: m2m-telecom
website: https://m2m-tele.com
52 changes: 52 additions & 0 deletions vendor/m2m-telecom/eu868.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Vendor profile ID, can be freely issued by the vendor
# This vendor profile ID is also used on the QR code for LoRaWAN devices, see
# https://lora-alliance.org/sites/default/files/2020-10/LoRa_Alliance_Vendor_ID_for_QR_Code.pdf
vendorProfileID: 42

# 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 or RP002-1.0.1
# 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: 1
# RX1 data rate offset
rx1DataRateOffset: 0
# RX2 data rate index
rx2DataRateIndex: 0
# RX2 frequency (MHz)
rx2Frequency: 868.525
# Factory preset frequencies (MHz)
factoryPresetFrequencies: [868.1, 868.3, 868.5]

# 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: false
# 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
118 changes: 118 additions & 0 deletions vendor/m2m-telecom/gw-01-wi-fi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
name: GW-01-WI-FI
description: Multi channel Open Source Low Cost LoRaWAN gateway with Wi-Fi connectivity

# Hardware versions (optional, use when you have revisions)
hardwareVersions:
- version: '1.0'
numeric: 1
- version: '1.0-rev-A'
numeric: 2

# Firmware versions (at least one is mandatory)
firmwareVersions:
- # Firmware version
version: '1.0'
numeric: 1
# 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:
# Unique identifier of the profile (lowercase, alphanumeric with dashes, max 36 characters)
id: eu868
lorawanCertified: true
# codec: gw-01-wifi-codec
US902-928:
id: us915
lorawanCertified: true
# codec: gw-01-wifi-codec

# Sensors that this device features (optional)
# Valid values are:
# 4-20 ma, accelerometer, altitude, analog input, auxiliary, barometer, battery, button, bvoc, co, co2, conductivity,
# current, digital input, dissolved oxygen, distance, dust, energy, gps, gyroscope, h2s, humidity, iaq, level, light,
# lightning, link, magnetometer, moisture, motion, no, no2, o3, particulate matter, ph, pir, pm2.5, pm10, potentiometer,
# power, precipitation, pressure, proximity, pulse count, pulse frequency, radar, rainfall, rssi, snr, solar radiation,
# sound, strain, surface temperature, temperature, tilt, time, tvoc, uv, vapor pressure, velocity, vibration, voltage,
# water potential, water, weight, wifi ssid, wind direction, wind speed.
sensors:
- no

# Dimensions in mm (optional)
# Use width, height, length and/or diameter
dimensions:
width: 110
length: 70
height: 27

# Weight in grams (optional)
weight: 350

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

# Operating conditions (optional)
operatingConditions:
# Temperature (Celcius)
temperature:
min: -35
max: 70
# Relative humidity (fraction of 1)
relativeHumidity:
min: 0
max: 0.97

# IP rating (optional)
#ipCode: IP64

# 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://m2m-tele.com/product/gw-01-wi-fi/
dataSheetURL: https://m2m-tele.com/blog/2021/04/02/lorawan-gateway-configuration-using-ui-web-interface/
#resellerURLs:
# - name: 'm2m-telecom'
# region:
# - Worldwide
# url: https://m2m-tele.com/product/gw-01-wi-fi/

# Photos
photos:
main: gw-01-wifi.jpg
other:
- gw-01-wifi-2.jpg
- gw-01-wifi-3.jpg
- gw-01-wifi-4.jpg
- gw-01-wifi-5.jpg
# Youtube or Vimeo Video (optional)
#videos:
# main: https://www.youtube.com/watch?v=JHzxcD2oEn8

# Regulatory compliances (optional)
#compliances:
# safety:
# - body: IEC
# norm: EN
# standard: 62368-1
# radioEquipment:
# - body: ETSI
# norm: EN
# standard: 301 489-1
# version: 2.2.0
# - body: ETSI
# norm: EN
# standard: 301 489-3
# version: 2.1.0
Binary file added vendor/m2m-telecom/gw-01-wifi-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vendor/m2m-telecom/gw-01-wifi-3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vendor/m2m-telecom/gw-01-wifi-4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vendor/m2m-telecom/gw-01-wifi-5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions vendor/m2m-telecom/gw-01-wifi-codec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
## 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: gw-01-wifi.js
# # Examples (optional)
# examples:
# - description: 32 knots from the North
# input:
# fPort: 1
# bytes: [0, 32]
# output:
# data:
# direction: 'N'
# speed: 32
# - description: 42 knots from the East
# input:
# fPort: 1
# bytes: [1, 42]
# output:
# data:
# direction: 'E'
# speed: 42
# - description: Unknown FPort
# input:
# fPort: 42
# bytes: [1, 42]
# output:
# errors:
# - unknown FPort
#
## Downlink encoder encodes JSON object into a binary data downlink (optional)
#downlinkEncoder:
# fileName: gw-01-wifi.js
# examples:
# - description: Turn green
# input:
# data:
# led: green
# output:
# bytes: [1]
# fPort: 2
# - description: Invalid color
# input:
# data:
# led: blue
# output:
# errors:
# - invalid LED color
#
## Downlink decoder decodes the encoded downlink message (optional, must be symmetric with downlinkEncoder)
#downlinkDecoder:
# fileName: gw-01-wifi.js
# examples:
# - description: Turn green
# input:
# fPort: 2
# bytes: [1]
# output:
# data:
# led: green
Binary file added vendor/m2m-telecom/gw-01-wifi.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions vendor/m2m-telecom/gw-01-wifi.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// var directions = ['N', 'E', 'S', 'W'];
// var colors = ['red', 'green'];
//
// function decodeUplink(input) {
// switch (input.fPort) {
// case 1:
// return {
// // Decoded data
// data: {
// direction: directions[input.bytes[0]],
// speed: input.bytes[1],
// },
// };
// default:
// return {
// errors: ['unknown FPort'],
// };
// }
// }
//
// function encodeDownlink(input) {
// var i = colors.indexOf(input.data.led);
// if (i === -1) {
// return {
// errors: ['invalid LED color'],
// };
// }
// return {
// // LoRaWAN FPort used for the downlink message
// fPort: 2,
// // Encoded bytes
// bytes: [i],
// };
// }
//
// function decodeDownlink(input) {
// switch (input.fPort) {
// case 2:
// return {
// // Decoded downlink (must be symmetric with encodeDownlink)
// data: {
// led: colors[input.bytes[0]],
// },
// };
// default:
// return {
// errors: ['invalid FPort'],
// };
// }
// }
4 changes: 4 additions & 0 deletions vendor/m2m-telecom/index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
endDevices:
# Unique identifier of the end device (lowercase, alphanumeric with dashes, max 36 characters)
- gw-01-wi-fi # look in gw-01-wi-fi.yaml for the end device definition
# - gw-01-poe
Loading