|
今天是2011年第1天.
新年放假了, 又有时间DIY了 ...
先运行"gpio 127 -d i", 再装入dwc_otg.ko驱动后, AR.Drone可以识别USB SD读卡器和华为的"天翼"USB 3G模块了.
并且AR.Drone USB口的VBUS针脚能输出+5V电源了! ---- 大进步!
插入USB SD读卡器后的demsg:
-
- [ 718.828751] dwc_otg: version 2.70a-parrot 22/03/2009
- [ 718.829005] DWC_otg: info->ctrl_mode = 2, info->vbus_detection = 0
- [ 718.829042] DWC_otg: MAPGPS: Force Host Mode: ctrl_mode = 1
- [ 718.829442] DWC_otg: before dwc_otg_core_init(): ctrl_mode = 1
- [ 718.829471] DWC_otg: IN dwc_otg_core_init(): ctrl_mode = 1
- [ 718.829493] DWC_otg: DWC_OTG_HOST_ONLY
- [ 719.046786] DWC_otg: OUT dwc_otg_core_init(): ctrl_mode = 1
- [ 719.046816] DWC_otg: Host Mode
- [ 719.046836] DWC_otg: after dwc_otg_core_init(): ctrl_mode = 1
- [ 719.046858] DWC_otg: dwc_otg_hcd_init()
- [ 719.046875] DWC_otg: Using DMA mode
- [ 719.046892] DWC_otg: Device using Buffer DMA mode
- [ 719.046945] dwc_otg dwc_otg.0: DWC OTG Controller
- [ 719.068710] /home/aferran/.ardrone/linux/ARDrone_Version_20100921_1_3/Linux/k
- ernel/linux/drivers/usb/core/inode.c: creating file 'devices'
- [ 719.068790] /home/aferran/.ardrone/linux/ARDrone_Version_20100921_1_3/Linux/k
- ernel/linux/drivers/usb/core/inode.c: creating file '001'
- [ 719.102811] dwc_otg dwc_otg.0: new USB bus registered, assigned bus number 1
- [ 719.102910] dwc_otg dwc_otg.0: irq 29, io mem 0x00000000
- [ 719.102990] DWC_otg: Init: Power Port (0)
- [ 719.103120] usb usb1: default language 0x0409
- [ 719.103993] usb usb1: uevent
- [ 719.138860] usb usb1: usb_probe_device
- [ 719.138903] usb usb1: configuration #1 chosen from 1 choice
- [ 719.138982] usb usb1: adding 1-0:1.0 (config #1, interface 0)
- [ 719.139204] usb 1-0:1.0: uevent
- [ 719.153812] hub 1-0:1.0: usb_probe_interface
- [ 719.153850] hub 1-0:1.0: usb_probe_interface - got id
- [ 719.153874] hub 1-0:1.0: USB hub found
- [ 719.153990] hub 1-0:1.0: 1 port detected
- [ 719.154011] hub 1-0:1.0: standalone hub
- [ 719.154030] hub 1-0:1.0: ganged power switching
- [ 719.154051] hub 1-0:1.0: individual port over-current protection
- [ 719.154078] hub 1-0:1.0: power on to power good time: 2ms
- [ 719.154128] hub 1-0:1.0: local power source is good
- [ 719.154154] hub 1-0:1.0: enabling power on all ports
- [ 719.259418] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000
- [ 719.309155] /home/aferran/.ardrone/linux/ARDrone_Version_20100921_1_3/Linux/k
- ernel/linux/drivers/usb/core/inode.c: creating file '001'
- [ 719.320102] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
- [ 719.320142] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
- [ 719.320170] usb usb1: Product: DWC OTG Controller
- [ 719.320192] usb usb1: Manufacturer: Linux 2.6.27.47-parrot dwc_otg_hcd
- [ 719.320217] usb usb1: SerialNumber: dwc_otg.0
- [ 719.320307] DWC_otg: MAPGPS: overcurrent_pin = 89
- [ 719.320331] DWC_otg: MAPGPS: force overcurrent_pin = 0 to avoid Oops
- [ 848.745355] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
- [ 848.745447] hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
- [ 848.906794] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
- [ 848.963968] hub 1-0:1.0: port 1 not reset yet, waiting 50ms
- [ 849.096294] usb 1-1: new high speed USB device using dwc_otg and address 2
- [ 849.154015] hub 1-0:1.0: port 1 not reset yet, waiting 50ms
- [ 849.317378] usb 1-1: default language 0x0409
- [ 849.321207] usb 1-1: uevent
- [ 849.338086] usb 1-1: usb_probe_device
- [ 849.338129] usb 1-1: configuration #1 chosen from 1 choice
- [ 849.338730] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
- [ 849.338996] usb 1-1:1.0: uevent
- [ 849.362278] usb-storage 1-1:1.0: usb_probe_interface
- [ 849.362376] usb-storage 1-1:1.0: usb_probe_interface - got id
- [ 849.362403] usb-storage: USB Mass Storage device detected
- [ 849.362697] usb-storage: -- associate_dev
- [ 849.362731] usb-storage: Vendor: 0x090c, Product: 0x6200, Revision: 0x0100
- [ 849.362758] usb-storage: Interface Subclass: 0x06, Protocol: 0x50
- [ 849.362832] usb-storage: Transport: Bulk
- [ 849.362853] usb-storage: Protocol: Transparent SCSI
- [ 849.374232] scsi0 : SCSI emulation for USB Mass Storage devices
- [ 849.375110] usb-storage: *** thread sleeping.
- [ 849.391717] usb-storage: device found at 2
- [ 849.391747] usb-storage: waiting for device to settle before scanning
- [ 849.445526] /home/aferran/.ardrone/linux/ARDrone_Version_20100921_1_3/Linux/k
- ernel/linux/drivers/usb/core/inode.c: creating file '002'
- [ 849.474452] usb 1-1: New USB device found, idVendor=090c, idProduct=6200
- [ 849.474504] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
- [ 849.474532] usb 1-1: Product: Generic USB2.0 card
- [ 849.474554] usb 1-1: Manufacturer: Silicon Motion, Inc.
- [ 849.474576] usb 1-1: SerialNumber: 12345678901234567890
- [ 849.474608] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
- [ 849.474691] hub 1-0:1.0: port 1 enable change, status 00000503
- [ 854.387320] usb-storage: usb_stor_control_msg: rq=fe rqtype=a1 value=0000 index=00 len=1
- [ 854.387730] usb-storage: GetMaxLUN command result is 1, data is 0
- [ 854.390882] usb-storage: queuecommand called
- [ 854.390951] usb-storage: *** thread awakened.
- [ 854.390980] usb-storage: Command INQUIRY (6 bytes)
- [ 854.390999] usb-storage: 12 00 00 00 24 00
- [ 854.391058] usb-storage: Bulk Command S 0x43425355 T 0x1 L 36 F 128 Trg 0 LUN 0 CL 6
- [ 854.391088] usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
- [ 854.391670] usb-storage: Status code 0; transferred 31/31
- [ 854.391695] usb-storage: -- transfer complete
- [ 854.391716] usb-storage: Bulk command transfer result=0
- [ 854.391742] usb-storage: usb_stor_bulk_transfer_sglist: xfer 36 bytes, 1 entries
- [ 854.393170] usb-storage: Status code -121; transferred 36/36
- [ 854.393195] usb-storage: -- short read transfer
- [ 854.393217] usb-storage: Bulk data transfer result 0x1
- [ 854.393237] usb-storage: Attempting to get CSW...
- [ 854.393260] usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
- [ 854.393639] usb-storage: Status code 0; transferred 13/13
- [ 854.393662] usb-storage: -- transfer complete
- [ 854.393682] usb-storage: Bulk status result = 0
- [ 854.393707] usb-storage: Bulk Status S 0x53425355 T 0x1 R 0 Stat 0x0
- [ 854.393737] usb-storage: scsi cmd done, result=0x0
- [ 854.394000] scsi 0:0:0:0: Direct-Access Generic USB SD Reader 1.00 PQ: 0 ANSI: 0 CCS
复制代码
插入华为"天翼"USB 3G模块后的dmesg:
-
- [ 2773.284070] usb 1-1: New USB device found, idVendor=12d1, idProduct=1001
- [ 2773.284112] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=4
- [ 2773.284140] usb 1-1: Product: HUAWEI Mobile
- [ 2773.284160] usb 1-1: Manufacturer: HUA?WEI TECHNOLOGIES
复制代码
USB设备是识别出来, 但还需进一步挂上相应的驱动程序.
AR.Drone USB口的VBUS针脚能输出+5V电源了, 所以接GPS模块时不再需要那个 12V/5V 电压转换模块了, 接线看上去也清爽了许多:
|
|