19 lines
737 B
Markdown
19 lines
737 B
Markdown
1.Config USB
|
|
$sudo chmod 666 /dev/ttyUSB0
|
|
$sudo nano /etc/udev/rules.d/99-usb-serial.rules
|
|
``SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", MODE="0666", GROUP="dialout"``
|
|
2. Kill process robotnet10
|
|
$ps aux | grep -i robotnet | grep -v grep
|
|
$lsof /dev/ttyUSB0 2>&1 || echo "Port is free"
|
|
$kill 2381 4242 8011
|
|
$kill -9 2381 4242 8011
|
|
$lsof /dev/ttyUSB0
|
|
$./run.sh
|
|
3. HTML test
|
|
# Option A: Dùng default browser
|
|
xdg-open /home/robotics/sonvh/odometry_comparison_test.html
|
|
|
|
# Option B: Dùng specific browser
|
|
firefox /home/robotics/sonvh/odometry_comparison_test.html
|
|
# hoặc
|
|
google-chrome /home/robotics/sonvh/odometry_comparison_test.html |