微信图片_20230822161139.jpg

Table of Contents:

1. Introduction

1.1 What is SN50v3-NB NB-IoT Sensor Node

SN50v3-NB is a Long Range NB-IoT Sensor Node.  It is designed to facilitate developers to quickly deploy industrial level NB-IoT solutions. It helps users to turn the idea into a practical application and make the Internet of Things a reality. It is easy to program, create and connect your things everywhere.

SN50v3-NB wireless part is based on NB model allows the user to send data and reach extremely long ranges at low data-rates.It provides ultra-long range spread spectrum communication and high interference immunity whilst minimising current consumption.It targets professional wireless sensor network applications such as irrigation systems, smart metering, smart cities, building automation, and so on.

SN50v3-NB uses STM32l0x chip from ST, STML0x is the ultra-low-power STM32L072xxxx microcontrollers incorporate the connectivity power of the universal serial bus (USB 2.0 crystal-less) with the high-performance ARM® Cortex®-M0+ 32-bit RISC core operating at a 32 MHz frequency, a memory protection unit (MPU), high-speed embedded memories (192 Kbytes of Flash program memory, 6 Kbytes of data EEPROM and 20 Kbytes of RAM) plus an extensive range of enhanced I/Os and peripherals.

SN50v3-NB is an open source product, it is based on the STM32Cube HAL drivers and lots of libraries can be found in ST site for rapid development.

SN50v3-NB supports different uplink methods including MQTT, MQTTs, UDP & TCP for different application requirement, and support uplinks to various IoT Servers.

SN50v3-NB supports BLE configure and OTA update which make user easy to use.

SN50v3-NB is powered by 8500mAh Li-SOCI2 battery, it is designed for long-term use up to several years.

SN50v3-NB has optional built-in SIM card and default IoT server connection version. Which makes it works with simple configuration.

微信图片_20230823093934.png

1.2 ​Features

  • NB-IoT Bands: B1/B2/B3/B4/B5/B8/B12/B13/B17/B18/B19/B20/B25/B28/B66/B70/B85 @H-FDD
  • Ultra-low power consumption
  • Open-source hardware / software
  • Multiply Sampling and one uplink
  • Support Bluetooth v5.1 remote configure and update firmware
  • Uplink via MQTT, MQTTs, TCP, or UDP
  • Uplink on periodically
  • Downlink to change configure
  • 8500mAh Battery for long term use
  • Nano SIM card slot for NB-IoT SIM

1.3 Specification

Common DC Characteristics:

  • Supply Voltage: 2.5v ~ 3.6v
  • Operating Temperature: -40 ~ 85°C

I/O Interface:

  • Battery output (2.6v ~ 3.6v depends on battery)
  • +5v controllable output
  • 3 x Interrupt or Digital IN/OUT pins
  • 3 x one-wire interfaces
  • 1 x UART Interface
  • 1 x I2C Interface

NB-IoT Spec:

NB-IoT Module: BC660K-GL

Support Bands:

  • B1 @H-FDD: 2100MHz
  • B2 @H-FDD: 1900MHz
  • B3 @H-FDD: 1800MHz
  • B4 @H-FDD: 2100MHz
  • B5 @H-FDD: 860MHz
  • B8 @H-FDD: 900MHz
  • B12 @H-FDD: 720MHz
  • B13 @H-FDD: 740MHz
  • B17 @H-FDD: 730MHz
  • B18 @H-FDD: 870MHz
  • B19 @H-FDD: 870MHz
  • B20 @H-FDD: 790MHz
  • B25 @H-FDD: 1900MHz
  • B28 @H-FDD: 750MHz
  • B66 @H-FDD: 2000MHz
  • B70 @H-FDD: 2000MHz
  • B85 @H-FDD: 700MHz

Battery:

  • Li/SOCI2 un-chargeable battery
  • Capacity: 8500mAh
  • Self Discharge: <1% / Year @ 25°C
  • Max continuously current: 130mA
  • Max boost current: 2A, 1 second

Power Consumption

  • STOP Mode: 10uA @ 3.3v
  • Max transmit power: 350mA@3.3v

1.4 Applications

  • Smart Buildings & Home Automation
  • Logistics and Supply Chain Management
  • Smart Metering
  • Smart Agriculture
  • Smart Cities
  • Smart Factory

1.5 Sleep mode and working mode

Deep Sleep Mode: Sensor doesn't have any NB-IoT activate. This mode is used for storage and shipping to save battery life.

Working Mode: In this mode, Sensor will work as NB-IoT Sensor to Join NB-IoT network and send out sensor data to server. Between each sampling/tx/rx periodically, sensor will be in IDLE mode), in IDLE mode, sensor has the same power consumption as Deep Sleep mode.

1.6 Button & LEDs

1675071855856-879.png

Behavior on ACTFunctionAction
Pressing ACT between 1s < time < 3sSend an uplink

If sensor has already attached to NB-IoT network, sensor will send an uplink packet, blue led will blink once.
Meanwhile, BLE module will be active and user can connect via BLE to configure device.

Pressing ACT for more than 3sActive Device

Green led will fast blink 5 times, device will enter OTA mode for 3 seconds. And then start to  attach NB-IoT network.
Green led will solidly turn on for 5 seconds after joined in network.
Once sensor is active, BLE module will be active and user can connect via BLE to configure device, no matter if device attach NB-IoT network or not.

Fast press ACT 5 times.Deactivate DeviceRed led will solid on for 5 seconds. Means device is in Deep Sleep Mode.

Note: When the device is executing a program, the buttons may become invalid. It is best to press the buttons after the device has completed the program execution.

1.7 BLE connection

SN50v3-NB support BLE remote configure and firmware update.

BLE can be used to configure the parameter of sensor or see the console output from sensor. BLE will be only activate on below case:

  • Press button to send an uplink
  • Press button to active device.
  • Device Power on or reset.

If there is no activity connection on BLE in 60 seconds, sensor will shut down BLE module to enter low power mode.

1.8 Pin Definitions , Switch & SIM Direction

SN50v3-NB use the mother board which as below.

SN50v3-NB.png

1.8.1 Jumper JP2

Power on Device when put this jumper.

1.8.2 BOOT MODE / SW1

1) ISP: upgrade mode, device won't have any signal in this mode. but ready for upgrade firmware. LED won't work. Firmware won't run.

2) Flash: work mode, device starts to work and send out console output for further debug

1.8.3 Reset Button

Press to reboot the device.

1.8.4 SIM Card Direction

See this link. How to insert SIM Card.

 

2. Use SN50v3-NB to communicate with IoT Server

2.1 Send data to IoT server via NB-IoT network

The SN50v3-NB is equipped with a NB-IoT module, the pre-loaded firmware in SN50v3-NB will get environment data from sensors and send the value to local NB-IoT network via the NB-IoT module.  The NB-IoT network will forward this value to IoT server via the protocol defined by SN50v3-NB.

Below shows the network structure:

微信图片_20230823093934.png

There are two version: -GE and -1D version of SN50v3-NB.

GE Version: This version doesn't include SIM card or point to any IoT server. User needs to use AT Commands to configure below two steps to set SN50v3-NB send data to IoT server.

  • Install NB-IoT SIM card and configure APN. See instruction of Attach Network.

Below shows result of different server as a glance.

ServersDash BoardComments
Node-Red

image-20230819113244-8.png

 
DataCake

image-20230819113244-9.png

 
Tago.IO  
General UDPRaw Payload. Need Developer to design Dash Board 
General MQTTRaw Payload. Need Developer to design Dash Board 
ThingSpeak

image-20230819113244-10.png

 
ThingsBoard

image-20230819113244-11.png

 

1D Version: This version has 1NCE SIM card pre-installed and configure to send value to DataCake. User Just need to select the sensor type in DataCake and Activate SN50v3-NB and user will be able to see data in DataCake. See here for DataCake Config Instruction.

2.2  Working Mode & Uplink Payload

SN50v3-NB has different working mode for the connections of different type of sensors. This section describes these modes. User can use the AT Command AT+CFGMOD to set SN50v3-NB to different working modes.

For example:

 AT+CFGMOD=2       // will set the SN50v3-NB to work in MOD=2 distance mode which target to measure distance via Ultrasonic Sensor.

The uplink payloads are composed in ASCII String. For example:

0a cd 00 ed 0a cc 00 00 ef 02 d2 1d (total 24 ASCII Chars). Representative the actually payload:

0x 0a cd 00 ed 0a cc 00 00 ef 02 d2 1d  Total 12 bytes

NOTE:

1. All modes share the same Payload Explanation from HERE.
2. By default, the device will send an uplink message every 1 hour.

2.2.1  CFGMOD=1 (Default Mode)

In this mode, the uplink payload usually contains 27 bytes. (Note: Time stamp field are added since firmware version v1.2.0)

Size(bytes)

82211212224
ValueDevice IDVerBATSignal Strength

MOD

0x01

Temperature (DS18B20)(PC13)

Digital in(PB15) & InterruptADC
(PA4)

Temperature

by

SHT20/SHT31

Humidity

by

SHT20/SHT31

Timestamp

If the cache upload mechanism is turned on, you will receive the payload shown in the figure below.

Frame headerFrame data(1)Frame data(2)F…Frame data(X)

NOTE:

1. Only up to 10 sets of latest data will be cached.

2. Theoretically, the maximum upload bytes are 215.

If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the NB sensor uplink data.

image-20230908113118-1.png

The payload is ASCII string, representative same HEX: 0x f866207058378443 0464 0dee 16 01 00f7 00 0001 00fc 0232 64fa7491 

where:

  • Device ID: f866207058378443 = 866207058378443
  • Version: 0x04:dSN50v3-NB,0x64=100=1.0.0
  • BAT:  0x0dee = 3566 mV = 3.566V
  • Singal:  0x16 = 22
  • Model: 0x01 = 1
  • Temperature by DS18b20: 0x00f7 = 247/10=24.7
  • Interrupt: 0x00 = 0
  • ADC: 0x0001 =1= 1.00mv
  • Temperature by SHT20/SHT31: 0x00fc = 252 = 25.2 °C
  • Humidity by SHT20/SHT31: 0x0232 = 562 = 56.2 %rh
  • Timestamp: 64fa7491 =1694135441=2023-09-08 09:10:41

Connection mode of I2C sensor and DS18B20 temperature sensor:

image-20240312185720-1.jpeg
  

2.2.2  CFGMOD=2 (Distance Mode)

This mode is target to measure the distance. Total 25 bytes, (Note: Time stamp field are added since firmware version v1.2.0)

Size(bytes)

8221121224
ValueDevice IDVerBATSignal Strength

MOD

0x02

Temperature (DS18B20)(PC13)

Digital in(PB15) & InterruptADC
(PA4)

Distance measure by:

1) LIDAR-Lite V3HP

Or

2) Ultrasonic Sensor

Timestamp

If the cache upload mechanism is turned on, you will receive the payload shown in the figure below.

Frame headerFrame data(1)Frame data(2)F…Frame data(X)

NOTE:

1.    Only up to 10 sets of latest data will be cached.

2.    Theoretically, the maximum upload bytes are 193.

If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the NB sensor uplink data.

image-20230915113054-1.png

So the payload is 0xf868411056754138 0078 0ca9 11 02 010b 00 0ca8 0158 60dacc87 

where:

  • Device ID: 0xf868411056754138 = 868411056754138
  • Version:    0x0078=120=1.2.0
  • BAT:      0x0ca9 = 3241mV = 3.241 V
  • Singal:  0x11 = 17
  • Model: 0x02 = 2
  • Temperature by DS18b20: 0x010b= 267 = 26.7  °C
  • Interrupt: 0x00 = 0
  • ADC: 0x0ca8 = 3240 mv
  • Distance by LIDAR-Lite V3HP/Ultrasonic Sensor: 0x0158 = 344 cm
  • Timestamp: 0x60dacc87 = 1,624,951,943 = 2021-06-29 15:32:23

  

Connection of LIDAR-Lite V3HP:

image-20230512173758-5.png

Connection to Ultrasonic Sensor:

Need to remove R1 and R2 resistors to get low power,otherwise there will be 240uA standby current.

image-20230512173903-6.png

2.2.3  CFGMOD=3 (3 ADC + I2C)

This mode has total 29 bytes. Include 3 x ADC + 1x I2C, (Note: Time stamp field are added since firmware version v1.2.0)

Size(bytes)

822112122224
ValueDevice IDVerBATSignal Strength

MOD

0x03

ADC1
(PA4)

Digital in(PB15) & InterruptADC2
(PA5)

Temperature

by

SHT20/SHT31

Humidity

by

SHT20/SHT31

ADC3
(PA8)
Timestamp

ADC1 uses pin PA4 to measure

ADC2 uses pin PA5 to measure

ADC3 uses pin PA8 to measure

(Suitable for motherboard version: LSN50 v3.1)

If the cache upload mechanism is turned on, you will receive the payload shown in the figure below.

Frame headerFrame data(1)Frame data(2)F…Frame data(X)

NOTE:

1.    Only up to 10 sets of latest data will be cached.

2.    Theoretically, the maximum upload bytes are 226.

If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the NB sensor uplink data.

image-20230915113214-2.png

So the payload is 0x f868411056754138 0078 0cf0 12 03 0cbc 00 0cef 010a 024b 0cef 60dbc494 

where:

  • Device ID: 0xf868411056754138 = 868411056754138
  • Version:    0x0078=120=1.2.0
  • BAT:      0x0cf0 = 3312 mV = 3.312 V
  • Singal:  0x12 = 18
  • Model: 0x03 = 3
  • ADC1:  0x0cbc= 3260mV
  • Interrupt: 0x00 = 0
  • ADC2: 0x0cef =3311 mv
  • Temperature by SHT20/SHT31: 0x010a = 266 = 26.6 °C
  • Humidity by SHT20/SHT31: 0x024b =587 = 58.7 %rh
  • ADC3: 0x0cef = 3311 mv
  • Timestamp: 0x60dbc494 = 1,625,015,444= 2021-06-30 09:10:44

  

2.2.4  CFGMOD=4 (3 x DS18B20)

Hardware connection is as below, (Note: R3 & R4 should change from 10k to 4.7k to support DS18B20, Software set to AT+CFGMOD=4

image-20230513134006-1.png

This mode has total 27 bytes. (Note: Time stamp field are added since firmware version v1.2.0)  As shown below:

Size(bytes)

82211221224
ValueDevice IDVerBATSignal Strength

MOD

0x04

Temperature1 (DS18B20) (PC13)

ADCDigital in & Interrupt

Temperature2 (DS18B20) (PA9)

Temperature3 (DS18B20) (PA10)

Timestamp

If the cache upload mechanism is turned on, you will receive the payload shown in the figure below.

Frame headerFrame data(1)Frame data(2)F…Frame data(X)

NOTE:

1.    Only up to 10 sets of latest data will be cached.

2.    Theoretically, the maximum upload bytes is 215.

If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the NB sensor uplink data.

image-20230915113247-3.png

So the payload is 0x f868411056754138 0078 0cdf 15 04 010a 0cde 00 00fb 0100 60dbcb3f  

where:

  • Device ID: 0xf868411056754138 = 868411056754138
  • Version: 0x0078=120=1.2.0
  • BAT:      0x0cdf = 3295 mV = 3.295 V
  • Singal:  0x15 = 21
  • Model: 0x04 = 4
  • Temperature1 by DS18b20: 0x010a = 226 = 22.6 °C
  • ADC: 0x0cde = 3294 mv
  • Interrupt: 0x00 = 0
  • Temperature2 by DS18b20: 0x00fb = 251 = 25.1°C
  • Temperature3 by DS18b20: 0x0100  = 256 = 25.6 °C
  • Timestamp: 0x60dbcb3f = 1,625,017,151= 2021-06-30 09:39:11

  

2.2.5  CFGMOD=5 (Weight Measurement by HX711)

image-20230512164658-2.png

Notes about hardware connection:

  1. Don't connect the HX711 module VCC to SN50v3-NB 3.3v VCC, in this case, the SN50v3-NB will always power on HX711 and the battery will run out soon.
  2. HX711 support 5v VCC, but while connect the SN50v3-NB's +5V to HX711 VCC, the value from HX711 is not stable.
  3. Connect SN50v3-NB +5V to HX711 VCC via a LDO module is stable.

Each HX711 need to be calibrated before used. User need to do below two steps:

  1. Zero calibration. Don't put anything on load cell and run AT+WEIGRE to calibrate to Zero gram.
  2. Adjust calibration factor (default value 400): Put a known weight thing on load cell and run AT+WEIGAP to adjust the Calibration Factor.

For example:

AT+WEIGAP =403.0

Response:  Weight is 401 g

Check the response of this command and adjust the value to match the real value for thing. 

This mode has total 25 bytes. (Note: Time stamp field are added since firmware version v1.2.0). As shown below:

Size(bytes)

8221122124
ValueDevice IDVerBATSignal Strength

MOD

0x05

Temperature (DS18B20)

ADCDigital in & Interrupt

Weight

Timestamp

If the cache upload mechanism is turned on, you will receive the payload shown in the figure below.

Frame headerFrame data(1)Frame data(2)F…Frame data(X)

NOTE:

1.    Only up to 10 sets of latest data will be cached.

2.    Theoretically, the maximum upload bytes are 193.

If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the NB sensor uplink data.

image-20230915143611-1.png

So the payload is 0x f868411056754138 0078 0c94 14 05 0137 0c93 00 003a 60dbe59e 

where:

  • Device ID: 0xf868411056754138 = 868411056754138
  • Version:    0x0078=120=1.2.0
  • BAT:      0x0c94 = 3220 mV = 3.220 V
  • Singal:  0x14 = 20
  • Model: 0x05 = 5
  • Temperature by DS18b20: 0x0137 = 311 = 31.1 °C
  • ADC: 0x0c93 = 3219 mv
  • Interrupt: 0x00 = 0
  • Weigt by HX711: 0x003a  = 58 g
  • Timestamp: 0x60dbe59e = 1,625,023,902= 2021-06-30 11:31:42

  

2.2.6  CFGMOD=6 (Counting mode)

In this mode, uplink payload includes in total 22 bytes, (Note: Time stamp field are added since firmware version v1.2.0)

Size(bytes)

8221144
ValueDevice IDVerBATSignal Strength

MOD 0x06

Pulse countTimestamp

If the cache upload mechanism is turned on, you will receive the payload shown in the figure below.

Frame headerFrame data(1)Frame data(2)F…Frame data(X)

NOTE:

1.    Only up to 10 sets of latest data will be cached.

2.    Theoretically, the maximum upload bytes are 160.

If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the NB sensor uplink data.

image-20230915145858-2.png

The payload is ASCII string, representative same HEX: 0x f868411056754138 0078 0cc7 14 06 00000002 60dc03e5

 where:

  • Device ID: 0xf868411056754138 = 868411056754138
  • Version: 0x0078=120=1.2.0
  • BAT:      0x0cc7 =3271mV =3.271V
  • Singal:  0x14 = 20
  • Model: 0x06 = 6
  • Pulse count:  0x00000002= 2
  • Timestamp:  0x60dc03e5 = 1,625,031,653= 2021-06-30 13:40:53

  

2.3 ​Payload Types

To meet different server requirement, SN50v3-NB supports different payload type.

Includes:

User can specify the payload type when choose the connection protocol. Example:

AT+PRO=2,0            // Use UDP Connection & hex Payload

AT+PRO=2,5            // Use UDP Connection & Json Payload

AT+PRO=3,5            // Use MQTT Connection & Json Payload

2.3.1 General Json Format(Type=5)

This is the General Json Format. As below:

{"IMEI":"866207058378443","Model":"SN50V3-NB","mod":1,"battery":3.56,"signal":25,"DS18B20_Temp":-409.5,"digital in":0,"adc1":1,"temperature":0.0,"humidity":0.0,"1":{0.0,0.0,1,-409.5,2023/10/23 05:57:02},"2":{0.0,0.0,1,-409.5,2023/10/23 03:57:12},"3":{0.0,0.0,1,-409.5,2023/10/23 03:42:12},"4":{0.0,64.1,0,-409.5,2023/10/20 09:55:08},"5":{0.0,64.1,0,-409.5,2023/10/20 09:40:08},"6":{0.0,64.1,0,-409.5,2023/10/20 08:26:14},"7":{0.0,64.1,0,-409.5,2023/10/20 08:11:14},"8":{0.0,64.1,0,-409.5,2023/10/20 07:56:14}}

Notice, from above payload:

  • Temperature , Humidity , Battery & Signal are the value at uplink time.
  • Json entry 1 ~ 8 are the last 1 ~ 8 sampling data as specify by AT+NOUD=8  Command. Each entry includes (from left to right): Temperature, Humidity, Sampling time.

2.3.2 HEX format Payload(Type=0)

This is the HEX Format. As below:

f86620705837844304640ddc1501Ffff0000010000000065360ee60001f0010000000065360b2e0001f001000000006535ef180001f001000000006535eb940000f0010000028165324e7c0000f0010000028165324af80000f00100000281653239a60000f00100000281653236220000f001000002816532329e

image-20230915150651-3.png

Version:

These bytes include the hardware and software version.

Higher byte: Specify Sensor Model: 0x00 for SN50v3

Lower byte: Specify the software version: 0x64=100, means firmware version 1.0.0

BAT (Battery Info):

Ex1: 0x0CBA = 3258mV

Signal Strength:

NB-IoT Network signal Strength.

Ex1: 0x16 = 22

0        -113dBm or less

1        -111dBm

2...30 -109dBm... -53dBm

31      -51dBm or greater

99      Not known or not detectable

Temperature: 

If payload is: 0105H:  (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree

If payload is: FF3FH :  (FF3F & 8000 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.

(FF3F & 8000: Judge whether the highest bit is 1, when the highest bit is 1, it is negative)

Humidity:   

Read:0295(H)=661(D)    Value:  661 / 10=66.1, So 66.1%

TimeStamp:   

Unit TimeStamp Example: 64d49439(H) = 1691653177(D)

Put the decimal value into this link(https://www.epochconverter.com/) to get the time.

2.3.3 ThingsBoard Payload(Type=3)

Type3 payload special design for ThingsBoard, it will also configure other default server to ThingsBoard.

{"IMEI": "866207058378443", "Model": "SN50V3-NB","mod": 1,"battery": 3.56,"signal": 20,"DS18B20_Temp": 25.9,"digital in": 0,"adc1": 1,"temperature": 0.0,}

image-20231023144508-2.png

2.3.4 ThingSpeak Payload(Type=1)

This payload meets ThingSpeak platform requirement. It includes only four fields. Form 1~6 are:

adc1,Battery,Signal,DS18B20_Temp,Temperature&Humidity. This payload type only valid for ThingSpeak Platform.

As below:

field1=adc_mV value&field2=BAT value&field3=Signal value3&field4=DS18B20_Temp value&field5=Temperature value&field6=Humidity value

image-20231023154035-4.png

2.4 Test Uplink and Change Update Interval

By default, Sensor will send uplinks every 2 hours & AT+NOUD=8

User can use below commands to change the uplink interval.

AT+TDC=600        // Set Update Interval to 600s

User can also push the button for more than 1 seconds to activate an uplink.

To save battery life, SN50v3-NB will sample temperature & humidity data every 15 minutes and send one uplink every 2 hours. So each uplink it will include 8 stored data + 1 real-time data. They are defined by:

  • AT+TR=900        // The unit is seconds, and the default is to record data once every 900 seconds (15 minutes, the minimum can be set to 180 seconds)
  • AT+NOUD=8     //  The device uploads 8 sets of recorded data by default. Up to 32 sets of record data can be uploaded.

The diagram below explains the relationship between TR, NOUD, and TDC more clearly:

1692424376354-959.png

2.6 Trggier an uplink by external interrupt

SN50v3-NB has an external trigger interrupt function. Users can use the PB15 pin to trigger the upload of data packets.

AT command:

  • AT+INTMOD         // Set the trigger interrupt mode
  • AT+INTMOD=0    // Disable Interrupt
  • AT+INTMOD=1    // Trigger by rising and falling edge
  • AT+INTMOD=2    // Trigger by falling edge
  • AT+INTMOD=3    // Trigger by rising edge

2.7 +5V Output

Control the output duration 5V . Before each sampling, device will

1. first enable the power output to external sensor,

2. keep it on as per duration, read sensor value and construct uplink payload

3. final, close the power output.

AT command: AT+5VT

Command ExampleFunctionResponse
AT+5VT=?Show 5V open time.

0(default)
OK

AT+5VT=1000

Close after a delay of 1000 milliseconds.

OK

2.8 Analogue Digital Converter (ADC)

The ADC pins in SN50V3-NB can measure range from 0~Vbat, it use reference voltage from STM32. If user need to measure a voltage > VBat, please use resistors to divide this voltage to lower than VBat, otherwise, it may destroy the ADC pin.

Note: minimum VBat is 2.5v, when batrrey lower than this value. Device won't be able to send LoRa Uplink.

The ADC monitors the voltage on the PA0 line, in mV.

Ex: 0x021F = 543mv,

图片-20220628150112-1.png

Note: If the ADC type sensor needs to be powered by SN50_v3, it is recommended to use +5V to control its switch.Only sensors with low power consumption can be powered with VDD.

The position of PA5 on the hardware after SN50 v3.3 is changed to the position shown in the figure below, and the collected voltage becomes one-sixth of the original.

image-20230811113449-1.png

2.9 Clock logging (Since firmware version v1.2.1)

Sometimes when we deploy lots of end nodes in field. We want all sensors sample data at the same time, and upload these data together for analyze. In such case, we can use clock loging feature.

We can use this command to set the start time of data recording and the time interval to meet the requirements of the specific collection time of data.

  • AT command: AT+CLOCKLOG=a,b,c,d

a: 0: Disable Clock logging.   1: Enable Clock Logging

b: Specify First sampling start second: range (0 ~ 3599, 65535)         // Note: If parameter b is set to 65535, the log period starts after the node accesses the network and sends packets.

c: Specify the sampling interval: range (0 ~ 255 minutes)

d: How many entries should be uplink on every TDC (max 32)

image-20240315141254-1.png

Example:

AT+CLOCKLOG=1,65535,1,5

After the node sends the first packet, data is recorded to the memory at intervals of 1 minute. For each TDC uplink, the uplink load will include: battery information + the last 5 memory records (payload + timestamp).

image-20240316170545-1.png

Note: Users need to synchronize the server time before configuring this command. If the server time is not synchronized before this command is configured, the command takes effect only after the node is reset.

2.10 Example Query saved historical records

  • AT command: AT+CDP

This command can be used to search the saved history, recording up to 32 groups of data, each group of historical data contains a maximum of 100 bytes.

image-20240316170626-2.png

3. Configure SN50v3-NB

3.1 Configure Methods

SN50v3-NB supports below configure method:

3.2 AT Commands Set

AT+<CMD>?           : Help on <CMD>

AT+<CMD>                      : Run <CMD>

AT+<CMD>=<value>      : Set the value

AT+<CMD>=?          : Get the value

General Commands       

AT                    : Attention        

AT?                  : Short Help      

ATZ                 : MCU Reset     

AT+TDC          : Application Data Transmission Interval

AT+CFG          : Print all configurations

AT+5VT           : Set extend the time of 5V power   

AT+PRO          : Choose agreement

AT+APN          : Get or set the APN

AT+EXT           : Get or Set Count value

AT+EXT           : Get or Set Count value

AT+RXDL            : Extend the sending and receiving time

AT+SERVADDR            :   Server Address

AT+WEIGRE              : Get weight or set weight to 0

AT+WEIGAP             : Get or Set the GapValue of weight

AT+DNSCFG            : Get or Set DNS Server

AT+CFGMOD           : Working mode selection

AT+INTMOD            : Set the trigger interrupt mode

AT+GETSENSORVALUE              : Returns the current sensor measurement

AT+CSQTIME            : Get or Set the time to join the network

AT+DNSTIMER            : Get or Set the NDS timer

AT+TLSMOD            : Get or Set the TLS mode

AT+NOUD             : Get or Set the number of data to be uploaded

AT+CDP             : Read or Clear cached data

AT+CUM              : Get or Set cache upload mechanism (0: Off 1: On)

AT+SERVADDR            :   Server Address

MQTT Management

AT+CLIENT               : Get or Set MQTT client

AT+UNAME              : Get or Set MQTT Username

AT+PWD                  : Get or Set MQTT password

AT+PUBTOPIC          : Get or Set MQTT publish topic

AT+SUBTOPIC          : Get or Set MQTT subscription topic

Information           

AT+FDR              : Factory Data Reset

AT+PWORD        : Serial Access Password

AT+LDATA           : Get the last upload data

AT+CDP               : Read or Clear cached data

4. Battery & Power Consumption

SN50v3-NB use ER26500 + SPC1520 battery pack. See below link for detail information about the battery info and how to replace.

Battery Info & Power Consumption Analyze .

5. Firmware update

User can change device firmware to::

  • Update with new features.
  • Fix bugs. 

Firmware and changelog can be downloaded from : Firmware download link

Methods to Update Firmware:

  • (Recommended way) OTA firmware update via BLE: Instruction.

6.  Get and compile Software

NBSN95 is an open-source project, developer can compile their firmware for customized applications. User can get the source code from:

See FAQ of this file.

The project file is in:  SN50V3-NB\MDK-ARM\uvprojx

7. FAQ

7.1 How can I access t BC660K-GL AT Commands?

User can access to BC660K-GL directly and send AT Commands.

See BC660K-GL AT Command set

8. Order Info

Part Number: SN50v3-NB-XX

XX

  • GE: General version ( Exclude SIM card)
  • 1D: with 1NCE* 10 years 500MB SIM card and Pre-configure to DataCake server

YY: The grand connector hole size

  • M12: M12 hole
  • M16: M16 hole
  • M20: M20 hole

9. ​Packing Info

Package Includes:

  • SN50v3-NB NB-IoT Sensor Node x 1
  • External antenna x 1

Dimension and weight:

  • Device Size: 13.0 x 5 x 4.5 cm
  • Device Weight: 150g
  • Package Size / pcs : 14.0 x 8x 5 cm
  • Weight / pcs : 180g

10. Support

  • Support is provided Monday to Friday, from 09:00 to 18:00 GMT+8. Due to different timezones we cannot offer live support. However, your questions will be answered as soon as possible in the before-mentioned schedule.
  • Provide as much information as possible regarding your enquiry (product models, accurately describe your problem and steps to replicate it etc) and send a mail to Support@dragino.cc.

11. FCC Warning

Any Changes or modifications not expressly approved by the party responsible for compliance could void the user's authority to operate the equipment.

This device complies with part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation.

Note: This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates, uses and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. However, there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one or more of the following measures:

—Reorient or relocate the receiving antenna.

—Increase the separation between the equipment and receiver.

—Connect the equipment into an outlet on a circuit different from that to which the receiver is connected.

—Consult the dealer or an experienced radio/TV technician for help.

This equipment complies with FCC radiation exposure limits set forth for an uncontrolled environment. This equipment should be installed and operated with minimum distance 20cm between the radiator& your body.

   

Tags:
Created by Xiaoling on 2023/08/22 16:34
    
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0