Close

nrf mesh to mqtt with tracing main steps

A project log for nRF5 Custom Mesh Network

A simpler, more efficient alternative to Z-x, BL-x, Thread, standard RF protocols

wassimWassim 10/04/2019 at 20:040 Comments

Serial output from the usb dongle

Dongle Firmware

https://github.com/nRFMesh/nRF52_Mesh/tree/master/applications/08_usb_dongle

cu can be used to check the output. Hint, stop serial with "~." 

cu -l /dev/ttyACM0 -s 460800 

Then start a python service to translate the serial to mqtt

Python scripthttps://github.com/HomeSmartMesh/raspi/blob/master/py/nrf_mesh/nrf_mesh.py
python3 py/nrf_mesh/nrf_mesh.py
mosquitto_sub -t 'nrf/#' -v | ts

The "| ts"  is a pipe that adds timestamp

subscribing to the mqtt topic would then show an output format inspired from zigbee2mqtt that allows to mix the custom nrf devices into the rest of the automation chain

used sensors

nRF52 DIY Sensor Taghttps://github.com/nRFMesh/nRF52_Mesh/tree/master/applications/01_sensortag
nRF51 sesnor taghttps://github.com/HomeSmartMesh/IoT_Frameworks/tree/master/nRF51_Sensors/sensors_project


more details about the RF and serial protocol in https://www.homesmartmesh.com/mesh/

Discussions