Skip to content

acpiccolo/R4DCB08-Temperature-Collector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI dependency status CI CI CI

R4DCB08 temperature collector

This RUST project can read and write a R4DCB08 temperature collector/monitor from the command line.

Hardware

The following hardware is required for this project:

  • One or more R4DCB08 temperature collectors.
  • One or more DS18B20 temperature sensors.
  • One USB-RS485 converter.

R4DCB08 temperature collector

Data sheet R4DCB08 temperature collector

  • Operating Voltage: DC 6-24 Volt
  • Operating Current: 8-13 Milli-Ampere (depending on the connected DS18B20)
  • Up to 8 DS18B20 temperature sensors can be connected
  • Measurable temperature range -55°C to +125°C
  • 0.5° accuracy from -10°C to +85°C

Compilation

  1. Install Rust e.g. using these instructions.
  2. Ensure that you have a C compiler and linker.
  3. Clone git clone https://github.com/acpiccolo/R4DCB08-Temperature-Collector.git
  4. Run cargo install --path . to install the binary. Alternatively, check out the repository and run cargo build --release. This will compile the binary to target/release/tempcol.

Getting started

To see all available commands:

tempcol --help

For RTU Modbus connected temperature collectors:

tempcol rtu-scan
tempcol rtu --address 1 --baudrate 9600 read

For TCP Modbus connected temperature collectors:

tempcol tcp 192.168.0.222:502 read

You can even use this tool as a daemon for a MQTT broker:

tempcol rtu --address 1 --baudrate 9600 daemon mqtt --username my_name --password my_secret mqtt://localhost:1883

Cargo Features

Feature Purpose Default
tokio-rtu-sync Enable the implementation for the tokio modbus synchronous RTU client
tokio-rtu Enable the implementation for the tokio modbus asynchronous RTU client
tokio-tcp-sync Enable the implementation for the tokio modbus synchronous TCP client -
tokio-tcp Enable the implementation for the tokio modbus asynchronous TCP client -
bin-dependencies Enable all features required by the binary

License

Licensed under either of

at your option.

About

R4DCB08 protocol and commandline tool

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages