rbaron / b-parasite

🌱💧 An open source DIY soil moisture sensor
1.85k stars 143 forks source link

How to read raw data with soil_read_loop sample? #170

Open vaidastal opened 7 months ago

vaidastal commented 7 months ago

Hey, sorry for this kind of question, but I was wondering, how to output raw data from soil_read_loop sample? I see log component there, but I am not really sure, how to view that value after flashing it to the sensor? I assume it is not BLE...

Sorry, I am new to these chips. I would like to recalibrate them after coating and that would help me.

Thanks.

rbaron commented 7 months ago

Hey @vaidastal,

Our samples (including the soil_read_loop) are configured to use the RTT (Segger's Real Time Transfer) logging protocol.

Depending on your setup, you can either use openocd or J-Links command line tools to get the logs in real time. The simplest option for me is using Nordic's official VSCode extension, and just tap the "RTT" button in the "Connected Devices" panel:

Image from Nordic's docs

The "How to connect using RTT docs" for the extension helped me in the beginning.

vaidastal commented 7 months ago

Hey, @rbaron

Thanks for such a quick response. I will give it a try!