This codebase was designed to incorporate the vkl-m12 system along with a radxa zero 3w. UART4 is assumed to be used as well GPIO pin 113 (gpiochip 3 pin 17).
-
Install vk-system.
-
Edit vkl-m12-color_arm.json file. Edit path to blob file
"blob_path": "<path_to_yolov8s_openvino_2022.1_7shave.blob>",
-
Install dependencies
sudo apt install libgpiod-dev
-
Set up UART4 on Radxa zero 3w
sudo armbian-add-overlay rk356x-uart4-m1.dts sudo reboot now
ttyS4 should now be listed under /dev/
mkdir build && cd build
cmake ..
make
- Start camera driver using the config file "vkl-m12-color_arm.json"
- Run
sudo ./main <modbus_id>
e.g.sudo ./main 10
MODBUS RTU PROTOCOL
Field | Value |
---|---|
Baudrate | 115200 |
Databits | 8 |
Parity | even |
Input register data type | 16-bits |
Modbus ID | user defined |
Input register | 1 - Detection, "1" for target detected "0" for no target detected 2 - Heartbeat of camera driver, "1" for camera driver heart beat received, "0" for no heartbeat received |
**When there is no heartbeat received from camera driver, Detection value should be thrown away.
Linux radxa-zero3 6.1.43-vendor-rk35xx #1 SMP Thu Jun 20 10:33:36 UTC 2024 aarch64 GNU/Linux
Distributor ID: Debian Description: Armbian 24.5.3 bookworm Release: 12 Codename: bookworm