Skip to content

chipkin/BACnetClientExampleRUST

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BACnetClientExampleRUST

This is a CAS BACnet Stack Client example written in Rust using the CAS BACnet Stack.

Usage

Client expects a device with the following objects:

  • Device: 389001 (Red King Device)
    • analog_input: 0 (Dungeness AnalogInput)
    • characterstring_value: 40 (Coconut CharacterStringValue)

The following keyboard commands can be entered:

  • w or W: Send Who-Is messages
  • r or R: Send Read Property Multiple
  • q or Q: Quit application

Build

  1. Install Rust and Cargo through the official Rust website: Rust Getting Started. Follow the instructions under “Rustup: the Rust installer and version management tool” and download the executable.
  2. Follow the instructions for the executable on installation. Upon completion, you may use cargo --version to check if Rust and Cargo was installed properly. You will need at least Cargo Version 1.75.0 for this application.
  3. Place CASBACnetStack_x64_Debug.dll into the bin folder. If there is no bin folder, create one.
  4. Replace the IP Address of the static socket variable in main.rs to your IP Address.
  5. Replace the IP Address of SETTING_DEFAULT_DOWNSTREAM_DEVICE_IP_ADDRESS and DOWNSTREAM_CONNECTION_STRING in main.rs with the IP Address of the server device you are sending requests to.
  6. Run cargo run in the Command Line to start the application. Make sure you are in the correct directory!

Example Output

CAS BACnet Stack Version: 4.1.19.2330
Application Version: "0.0.1"
Device added
I Am service enabled
Who Is service enabled
Read Property Multiple service enabled
Entering main loop...
UDP Socket Setup Success
::CASBACnetStack::BACnetDataLinkSC::Loop() in file: C:\dev\gitlab-runner\builds\b1afdc2b\2\chipkin\cas-bacnet-stack\source\BACnetDataLinkSC.cpp(250) - Error: UUID has not been set.  A UUID must be set for the BACnetSC device to start

About

CAS BACnet Stack client example in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages