Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/twinleaf/twinleaf-rust
https://github.com/twinleaf/twinleaf-rust
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/twinleaf/twinleaf-rust
- Owner: twinleaf
- License: mit
- Created: 2022-09-08T16:07:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-24T22:56:25.000Z (29 days ago)
- Last Synced: 2024-11-30T20:39:44.626Z (23 days ago)
- Language: Rust
- Size: 188 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Twinleaf I/O Tools in Rust
This repository contains a set of tools that are useful for working with Twinleaf quantum sensors and accessories.
The primary tool is the proxy, which makes the device available via ethernet:
tio-proxy --auto
When there are more than one serial port available, it is necessary to specify the port
[linux]> tio-proxy -r /dev/ttyACM0
[macOS]> tio-proxy -r /dev/cu.usbserialXXXXXX
[wsl1] > tio-proxy -r COM3With the proxy running, a set of tools can be used on the data stream.
Logging data:
tio-tool logIssuing commands:
tio-tool rpc dev.nameAnd a variety of additional useful functions.
## Installation
With rust language tools, install the tools using:
cargo install twinleaf-tools
## Development
On macOS and linux, there is a dependency on libudev; to install it use:
sudo apt install libudev-dev # debian linux
brew install libudev # macOS homebrew## Cross compilation
The tools can be compiled for other platforms by first adding those platform targets:
rustup target add x86_64-pc-windows-gnu
rustup toolchain install stable-x86_64-pc-windows-gnuAnd then building for the new target:
cargo build --target x86_64-pc-windows-gnu