The Dragino NLMS01 is a NB-IOT Leaf Moisture Sensor for IoT of Agriculture.
It is designed to measure the leaf moisture and temperature, so to send to the platform to analyze the leaf status such as: watering, moisturizing, dew, frozen. The probe is IP67 waterproof.
NLMS01 detects leaf's moisture and temperature use FDR method, it senses the dielectric constant cause by liquid over the leaf surface, and cover the value to leaf moisture. The probe is design in a leaf shape to best simulate the real leaf characterizes.
The probe has as density as 15 leaf vein lines per centimeter which make it can senses small drop and more accuracy.
It supports sending data through UDP, MQTT and COAP over nb-iot.
Find here the useful resources:
The imei can be found on the top cover of the device, please register the device in your iotcreators project before attempting to connect the device to the network.
Register the device
Connect the antenna to the device, then unscrew the four screws that hold the waterproof cover in place. This is the top view of the board:
To mount the sim card into the sim card tray, unscrew the "modem removal screw" as showed above and insert the sim card.
Please be sure to insert the sim card as shown in this photo:
To connect the device to a computer, you will need a usb to serial converter, which supports 3V3 or 5V logic. The logic voltage level can be selected with the "logic voltage switch" switch.
Set the correct voltage level
Please carefully setup the correct voltage level (3.3 or 5 volts) according to your usb-to-serial converter. Failing to do so may unrecoverably damage your device!
You need 3 cables to connect the device to a serial monitor: GND (ground), TX (transmit) and RX (receive).
Just connect the RX of the dragino sensor to the TX of the usb-to-serial converter, the TX of the dragino sensor to the RX of the usb-to-serialconverter and the GND of the dragino sensor to the GND of the usb-to-serial converter.
Baudrate must be set to 9600 bps
To boot up the device, please set up the power on jumper as shown in section "Opening the device" to power on the device. Please make sure that the device is correctly attached to a computer.
Open your favourite serial monitor (for example: miniterm on linux or arduino serial monitor on windows) and the device will start to output info about its startup like so:
16:24:32.861 -> NBIOT has responded. 16:24:37.191 -> Echo mode turned off successfully. 16:24:39.123 -> Model information:BC95-GV. 16:24:40.458 -> The IMEI number is:<your_imei_here>. 16:24:41.824 -> The IMSI number is:<your_imsi_here>. 16:24:43.157 -> Currently set frequency band:1,3,5,8,20,28
If the imsi is correctly read, it means that the sim card has been correctly inserted.
To enter configuration mode, just input the correct password, which for this device is 12345678.
And if the password is correct, the device will respond
16:53:09.872 -> Password Correct
You can set a custom device ID (the default will be the device imei) with command
AT+DEUI=<device_id> (15 bytes)
This means you are not able to enter at commands to configure the device.
You will need to configure the usual iotcreators parameters in order to attach the device to the iotcreators, APN, server address and port, protocol. In this guide i will use UDP since it is the simplest one.
To configure the protocol, in this case we will use plain UDP, just input:
To configure the APN (please take a look here to check the correct APN for your sim card, the one below is just an example) just input
To configure the device to send data to the iotcreators UDP server, just input
You can then restart the device with the reset button.The device will then try to attach to the network.
If the device fails to register to the network, thus you always receive signal strength indication = 99, it is likely that the device is not having enough time to register to it. In this case, you can issue command
Troubleshooting CSQ=99,99 error
Dragino hosts this page here to help you troubleshoot this issue.
To set the network registration timeout to 10 minutes, which should be sufficient to conenct to the network.
Register the device
Remember to register the device before sending data to iotcreators, see chapter above.
The device will automatically send data at the specified interval of time. Such interval can be configured with command
You can immediately send collected data with command
Payload structure is as such, 87 bytes in total by default:
|Size (bytes)||8||2||2||1||1||1||2||2||4||2||2||4||1-32 group (8 bytes each)|
|Value||IMEI||BAT||Version||Signal||MOD||Interrupt flag||Leaf moisture||Leaf temperature||UNIX timestamp||Leaf temperature||Leaf moisture||UNIX timestamp||...|
The payload can be decoded as such, a payload example of:
- Device ID: 0xf868411056754138 = f868411056754138
- Version: 0x0064=100=1.0.0
- BAT: 0x0c78 = 3192 mV = 3.192V
- Singal: 0x17 = 23
- Mod: 0x01 = 1
- Interrupt: 0x00= 0
- Leaf moisture: 0x0225= 549 = 54.9%
- Leaf Temperature: 0x010B =267=26.7 °C
- Time stamp : 0x6315537b =1662342011 (Unix Epoch Time)
- Leaf Temperature, Leaf moisture,Time stamp : 010b0226631550fb
- 8 sets of recorded data: Leaf Temperature, Leaf moisture,Time stamp : 010e022663154d77,.......
Convert UNIX timestamps to human readable timestamps
You can convert UNIX timestamps to human readable timestamps with this online tool here for example.
Here you can find a code example on how to decode data from this device:
To forward data to your application endpoint, you can follow the user guide here:
Updated 7 months ago