wasn-eu / CubeCell_Getting_Started

WASN LoRaWan Devices Getting Started Guide
https://www.wasn.eu
21 stars 8 forks source link

ModularNode & IndoorNode

Getting Started Guide

(c) by

You need to use Configurator version 5.0 or above, all older version will not work anymore.

Connecting the Indoor/ModularNode or CubeCell to your Computer

If you have a IndoorNode or CubeCell board just connect the micro USB to your computer.

If you have a ModularNode connect the supplied USB cable to your computer.

The drivers for the Silabs CP210x USB to serial adapter should be installed automatically via windows update. If not you can download it here.

Choosing the right firmware version

Before flashing the firmware you have to choose the firmware type. You have to choose between IndoorNode, ModularNode, Board, Capsule, TCA9548A.

Here is a comparison of these types:

Type IIC OneWire* TCA9548A Sensor Auto Scan Interrupt Serial Comments
Board X GPIO1 all sensors listet below GPIO2 GPIO3 TX, GPIO5 RX
Capsule X all sensors listet below GPIO2 GPIO3 TX, GPIO5 RX
TCA9548A X GPIO1 X all sensors listet below GPIO2 GPIO3 TX, GPIO5 RX
IndoorNode X fixed BME280/BME680 & one port with all sensors listet below X special for WASN IndoorNode
ModularNode X X X all sensors listet below X X special for WASN ModularNode
Mapper special for WASN Mapper

* OneWire is disabled for all types in MK3 firmware because of stability issues

These sensors are supported on IIC interface:

These sensors are supported on OneWire interface:

These sensors are supported on Serial interface:

Configurator for Windows

Use CubeCell Configurator to upload firmware

The easy way to get the Capsule up and running is:

The firmware has the following config:

The firmware auto detects the connected I2C sensor.
You can connect more than one sensor to the I2C bus.
The only limitation is, that you can connect only 1 sensor of each modell on each sensor socket.

If you have a TCA9548A I2C Switch conncted to the I2C Bus, Vext and GND you can connect up to 8 sensors of each model to each switch output. You need to flash the TCA9548A firmware to activate the use of the TCA9548A I2C switch.

The IndoorNode and ModularNode Firmware is only for our Nodes. This Firmwares will not work on other hardware.

OneWire Sensors will be supported on GPIO1. Right now the CubeCell hangs sometimes with activated OneWire.
Serial GPS modules are supported, connect GPIO3 TX and GPIO5 RX.

Use CubeCell Configurator for configuration

Use the CubeCell Database

Search for the dataset you would like to use for the connected CubeCell and click on use. The data can than be written to the CubeCell by clicking on write in the config tab.

Configurator for Android

Use Android Configurator for configuration

Use the Android Database

ToDo

Use the Cloud Database

ToDo

The Things Network decoder

ChirpStack decoder

Connecting a sensor

If you have bought the IndoorNode (buy) there is a BME280 or BME680 sensor fitted in the case.

If you have bought the ModularNode (buy) you can connect the sensor to one of the 3 sockets.

If you have bought a sensor from our Website (buy) or from Heltec then you can just plug it in the capsule.

If not here is the pinout for connecting your sensor:

You can connect more than one sensor to the I2C bus.
The only limitation is, that you can connect only 1 sensor of each modell on each sensor socket.

If you have a TCA9548A I2C Switch conncted to the I2C Bus, Vext and GND you can connect up to 8 sensors of each model to each switch output. You need to flash the ModularNode firmware to activate the use of the TCA9548A I2C switch.

OneWire Sensors will be supported on GPIO1. Right now the CubeCell hangs sometimes with activated OneWire.

You can check which sensor the CubeCell device has found:

Connecting an external trigger

You can trigger sending a package with an external switch.

Just connect a normally open switch to the GPIO pin mentioned in the table at the beginning og this guide and 3.3V.

If the switch is now closed, all sensor data is send.

To see if the trigger for sending a package was the timer or the external trigger there is the variable trigger in the decoder. If this variable is 1 then sending was triggerd by timer, if the variable i 0 then sending was triggerd from the external trigger.

Connecting a battery to the CubeCell Capsule

This battery fits nicely in the capsule (buy)

If you have bought the Capsule from us (buy) there is a battery connector installed.

RGB LED

Known AT Commands

This are the common AT commands. A full list can be found in this PDF

AT Command Value
+ADR=? on 1, off 0
+AppEui=? Unique (OTAA Mode)
+AppKey=? Unique (OTAA Mode)
+AppPort=? The Application Port 2 for general APPs and 10 for TTN MAPPER.
+ChipID=? get ChipID
+ChMask=? set the channelmask in the frequencyband
+Class=? Class A or C
+ConfirmedNbTrials=? The number of adaptive rate changes allowed. Default 4
+DefaultSet=1 to reset parameter to Default setting
+DelCDKEY=1 to delete the CDKEY
+DevAddr=? Unique (ABP Mode)
+DevEui=? Unique (OTAA Mode)
+DutyCycle=? The time between transmission in mS. Typically, 15000 to 3600000
+IsTxConfirmed=? LoRaWAN ACK Message 1 on, 0 off.
+Join=1 start join
+LORAWAN=? LoRaWAN 1, LoRa 0
+LPM=1 Low Power Mode
+NwkSKey=? Unique (ABP Mode)
+OTAA=? OTAA 1, ABP 0
+Passkey=? Unique (ABP Mode)
+RESET=1 device reset
+XXX wake up from deep sleep

This are special AT commands for our firmware

AT Command Value
+BATTERY=? shows current battery voltage
+FLASH=? shows firmware type
+GPS=? shows GPS status, on 1, off 0
+LED=? shows if RGB LED is activated
+REGION=? shows frequency band for installed firmware
+VER=? shows firmware version