URG laser: Difference between revisions
From ArmadeusWiki
No edit summary |
(→Usage) |
||
Line 20: | Line 20: | ||
To use Hokoyu laser, you need Prolific pl2303 USB to serial adapter ( [[USB_to_serial_adapter | see here to install pl2303]]). | To use Hokoyu laser, you need Prolific pl2303 USB to serial adapter ( [[USB_to_serial_adapter | see here to install pl2303]]). | ||
<pre class="apf"> | |||
# modprobe pl2303 | |||
usbcore: registered new interface driver usbserial | |||
usbserial: USB Serial Driver core | |||
USB Serial support registered for pl2303 | |||
usbcore: registered new interface driver pl2303 | |||
pl2303: Prolific PL2303 USB to serial adaptor driver | |||
# usb 2-1: new full speed USB device using mxc-ehci and address 3 | |||
usb 2-1: device descriptor read/64, error -71 | |||
usb 2-1: New USB device found, idVendor=15d1, idProduct=0000 | |||
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 | |||
usb 2-1: Product: URG-Series USB Driver | |||
usb 2-1: Manufacturer: Hokuyo Data Flex for USB | |||
usb 2-1: configuration #1 chosen from 1 choice | |||
cdc_acm 2-1:1.0: ttyACM0: USB ACM device | |||
# | |||
</pre> | |||
==Code example== | ==Code example== |
Revision as of 21:14, 15 July 2010
How to drive Hoyuko's URG series laser sensors.
Installation
$ make menuconfig
Package Selection for the target ---> Hardware handling / blockdevices and filesystem maintenance ---> [*] urg library
$ make
- reflash rootfs
Usage
To use Hokoyu laser, you need Prolific pl2303 USB to serial adapter ( see here to install pl2303).
# modprobe pl2303 usbcore: registered new interface driver usbserial usbserial: USB Serial Driver core USB Serial support registered for pl2303 usbcore: registered new interface driver pl2303 pl2303: Prolific PL2303 USB to serial adaptor driver # usb 2-1: new full speed USB device using mxc-ehci and address 3 usb 2-1: device descriptor read/64, error -71 usb 2-1: New USB device found, idVendor=15d1, idProduct=0000 usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 usb 2-1: Product: URG-Series USB Driver usb 2-1: Manufacturer: Hokuyo Data Flex for USB usb 2-1: configuration #1 chosen from 1 choice cdc_acm 2-1:1.0: ttyACM0: USB ACM device #