4 releases
Uses new Rust 2024
| 0.2.0 | Jun 23, 2025 |
|---|---|
| 0.1.2 | Jun 18, 2025 |
| 0.1.1 | Jun 17, 2025 |
| 0.1.0 | Jun 16, 2025 |
#937 in Embedded development
173 downloads per month
41KB
742 lines
libgtr
This crate provides communication with the PhotonFirst GTR-1001 fiber optic sensing system interrogator ("Gator") over a serial port. It handles packet parsing, synchronization, and exposes a thread-safe API for receiving parsed data.
*nix Notes
The FTDI driver is statically compiled into the library, so you do not need to install any additional drivers on Linux.
To access the FTDI USB device as a regular user on Linux you need to update the udev rules.
Create a file called /etc/udev/rules.d/99-ftdi.rules with:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6011", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6014", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015", MODE="0666"
Then, reload the rules:
sudo udevadm control --reload-rules
sudo udevadm trigger
If you get an error DEVICE_NOT_OPENED, you may need to blacklist the ftdi_sio kernel module:
sudo rmmod ftdi_sio # temporary
echo "blacklist ftdi_sio" | sudo tee /etc/modprobe.d/ftdi_sio.conf # permanent
Dependencies
~16MB
~213K SLoC