Skip to content

Commit

Permalink
update sdk document
Browse files Browse the repository at this point in the history
  • Loading branch information
yangfuyuan committed Nov 13, 2018
1 parent 655ef54 commit 9a320dc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,18 @@ How to build YDLIDAR SDK samples
$ cd ydlidar_sdk

$ git checkout master

$ cd ..


Linux:

$ cd startup

$ chmod +x initenv.sh

$ sudo ./initenv.sh ##change the serial port to be readable and writable

$ cd ../..

$ mkdir build

$ cd build
Expand Down
9 changes: 9 additions & 0 deletions startup/initenv.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
echo 'KERNEL=="ttyUSB[1-9]*", MODE:="0666", GROUP:="dialout"' >/etc/udev/rules.d/50-usb-serial.rules.rules
echo 'KERNEL=="ttyUSB*", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", MODE:="0666", GROUP:="dialout", SYMLINK+="ydlidar"' >/etc/udev/rules.d/ydlidar.rules
echo 'KERNEL=="ttyACM*", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", MODE:="0666", GROUP:="dialout", SYMLINK+="ydlidar"' >/etc/udev/rules.d/ydlidar-V2.rules
echo 'KERNEL=="ttyUSB*", ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", MODE:="0666", GROUP:="dialout", SYMLINK+="ydlidar"' >/etc/udev/rules.d/ydlidar-2303.rules

service udev reload
sleep 2
service udev restart
Binary file modified ydlidar_sdk.pdf
Binary file not shown.

0 comments on commit 9a320dc

Please sign in to comment.