# boltloc **Repository Path**: jerry-ironman/boltloc ## Basic Information - **Project Name**: boltloc - **Description**: ToF Boltloc - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: jr_tof - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-12-29 - **Last Updated**: 2023-03-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ToF VL53L4CD Linux driver VL53L4CD Linux driver and test applications for linux platforms ### boost ``` $ apt-cache search boost $ sudo apt install libboost1.67-dev ``` ### matplotlib-cpp ``` $ sudo apt-get install python3.8-dev $ sudo apt-get install python3-numpy $ sudo apt-get install python3-matplotlib ``` ### i2c ``` $ sudo chmod a+rw /dev/i2c-3 $ cd /etc/udev/rules.d $ sudo touch 50-i2c.rules KERNEL=="i2c-[3-4]", SUBSYSTEM=="i2c-dev", MODE:="0666" $ sudo udevadm control --reload $ sudo reboot ``` ### 查看全部端口占用情况 ``` $ netstat -anp # 或者 $ netstat -tln ``` ### compile the test examples, the platform adaptation layer and the uld driver ``` $ sh build.sh ``` ### start the test application ``` $ sh start_tof.sh ``` ### stop the test application ``` $ sh stop_tof.sh ``` ### Hardware connection XSHUT --- 3.3V GPIO1 --- SDA --- SDA SCL --- SCL VDD --- 3.3V GND --- GND ### ChangeLog - [x] ToF VL53L4CD Linux操作系统下的驱动移植,并实现基础测距功能 - [x] 螺栓有无的判断 - [x] socket通信 - [x] Log日志添加