Firefly开源社区

打印 上一主题 下一主题

otg 的host功能,使用otg转host的线,连接鼠标。无效。

30

积分

0

威望

0

贡献

技术小白

积分
30

otg 的host功能,使用otg转host的线,连接鼠标。无效。

发表于 2016-8-22 09:28:55      浏览:8831 | 回复:2        打印      只看该作者   [复制链接] 楼主
otg 的host功能,使用otg转host的线,连接鼠标。无效。
看了一下log, 有一个切换动作,但又马上切换成device.


force_usb_mode_store 2->1
[   14.344696] Using Buffer DMA mode
[   14.344722] Periodic Transfer Interrupt Enhancement - disabled
[   14.344733] Multiprocessor Interrupt Enhancement - disabled
[   14.344745] OTG VER PARAM: 0, OTG VER FLAG: 0
[   14.344753] ^^^^^^^^^^^^^^^^^^Host Mode
[   14.389737] Connectting with 00:1d:0f:5d:be:1c channel (6) ssid "TPLink_SQ", len (9)
[   14.389737]
[   14.392174] Init: Power Port (0)
[   14.392189] shenqiao usb20otg_power enable =1rk_battery_charger_detect_cb , battery_charger_detect 5
[   14.392446] ff580000.usb resume, HPRT0:0x1000
[   14.392669] ff580000.usb suspend, HPRT0:0x1000
[   14.418696] dwc_otg_hcd_handle_port_intr: hcd->state = 4, hcd->flags = 1
[   14.427797] ff580000.usb resume, HPRT0:0x41801
[   14.490379] rk_battery_charger_detect_cb , battery_charger_detect 0
[   14.497202] wl_iw_event: Link UP with BSSID=00:1D:00:00:BE:1C
[   14.497234] wl_bss_connect_done succeeded with 00:1d:0f:5d:be:1c
[   14.514242] wl_bss_connect_done succeeded with 00:1d:0f:5d:be:1c
[   14.559237] Indeed it is in host mode hprt0 = 00041901
[   14.621121] dhd_set_suspend: Remove extra suspend setting
[   14.626442] dhd_pno_get_for_batch : wifi location service is not supported
[   14.626467] ANDROID-ERROR) failed to getting batching results
[   14.626763] dhd_pno_stop_for_batch : wifi location service is not supported
[   14.626779] NULL POINTER (_dhd_pno_clear_all_batch_results) : head->next is NULL
[   14.626785] NULL POINTER (_dhd_pno_clear_all_batch_results) : head->next is NULL
[   14.626794] ANDROID-ERROR) failed to stop batching scan
[   14.736319] usb 2-1: new low-speed USB device number 2 using usb20_otg
[   14.737090] Indeed it is in host mode hprt0 = 00041901
[   14.936108] usb 2-1: New USB device found, idVendor=04f3, idProduct=0232
[   14.936132] usb 2-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[   14.936141] usb 2-1: Product: OM
[   14.940366] input: OM as /devices/ff580000.usb/usb2/2-1/2-1:1.0/input/input2
[   14.940912] hid-generic 0003:04F3:0232.0001: input,hidraw0: USB HID v1.11 Mouse [OM] on usb-ff580000.usb-1/input0
[   15.946522] init: untracked pid 1490 exited with status 0
[   16.528754] dhd_tcpdata_info_get 1037: Add data info to tbl[0]: IP addr 218.30.118.222 192.168.10.104 TCP port 80 44748
[   16.548257] dhd_tcpdata_info_get 1037: Add data info to tbl[1]: IP addr 106.39.219.1 192.168.10.104 TCP port 80 41307
[   16.584213] init: untracked pid 1514 killed by signal 9
[   16.700589] dhd_tcpdata_info_get 1037: Add data info to tbl[2]: IP addr 218.30.118.222 192.168.10.104 TCP port 80 45545
[   16.805043] dhd_tcpdata_info_get 1037: Add data info to tbl[3]: IP addr 203.156.253.2 192.168.10.104 TCP port 80 33761
[   17.130908] type=1400 audit(1471828926.059:18): avc: denied { write } for pid=1252 comm="chip.devicetest" name="force_usb_mode" dev="sysfs" ino=12262 scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[   17.131498] force_usb_mode_store 1->2
[   17.131510] Uknown urb status -108
[   17.131521] PortPower off
[   17.131527] shenqiao usb20otg_power enable =0rk_battery_charger_detect_cb , battery_charger_detect 6
[   17.329383] Using Buffer DMA mode
[   17.329400] Periodic Transfer Interrupt Enhancement - disabled
[   17.329406] Multiprocessor Interrupt Enhancement - disabled
[   17.329414] OTG VER PARAM: 0, OTG VER FLAG: 0
[   17.329419] ^^^^^^^^^^^^^^^^^Device Mode
[   17.363621] usb 2-1: USB disconnect, device number 2
[   17.377732] type=1400 audit(1471828926.309:19): avc: denied { getattr } for pid=1728 comm="ci_thread" path="/system/xbin/su" dev="mmcblk0p10" ino=1834 scontext=u:r:untrusted_app:s0 tcontext=u:object_r:su_exec:s0 tclass=file permissive=1
[   17.619422] rk_battery_charger_detect_cb , battery_charger_detect 0
[   17.629334] dwc_otg_hcd_suspend, usb device mode
[   22.739478] dhd_tcpdata_info_get 1003: tcpdata_info(idx 0) is aged out. ttl cnt is now 3
[   22.739650] dhd_tcpdata_info_get 1003: tcpdata_info(idx 0) is aged out. ttl cnt is now 2
[   22.739747] dhd_tcpdata_info_get 1003: tcpdata_info(idx 0) is aged out. ttl cnt is now 1
[   22.739828] dhd_tcpdata_info_get 1003: tcpdata_info(idx 0) is aged out. ttl cnt is now 0
[   22.739932] dhd_tcpdata_info_get 1037: Add data info to tbl[0]: IP addr 101.199.97.144 192.168.10.104 TCP port 80 47740
[   34.497717] dhd_tcpdata_info_get 1003: tcpdata_info(idx 0) is aged out. ttl cnt is now 0
[   34.497911] dhd_tcpdata_info_get 1037: Add data info to tbl[0]: IP addr 106.120.160.177 192.168.10.104 TCP port 80 53291
[   34.588465] dhd_tcpdata_info_get 1037: Add data info to tbl[1]: IP addr 106.39.203.221 192.168.10.104 TCP port 80 39069

[   46.787690] dhd_tcpdata_info_get 1003: tcpdata_info(idx 0) is aged out. ttl cnt is now 1
[   46.787715] dhd_tcpdata_info_get 1003: tcpdata_info(idx 0) is aged out. ttl cnt is now 0
[   46.787728] dhd_tcpdata_info_get 1037: Add data info to tbl[0]: IP addr 106.120.167.73 192.168.10.104 TCP port 80 48702


回复

使用道具 举报

30

积分

0

威望

0

贡献

技术小白

积分
30
发表于 2016-8-22 16:20:03        只看该作者  沙发
问题解决了,功能已经有了,需要做切换usb  host mode , 可以在驱动层 当otg线插入的时候,去改变状态。

回复

使用道具 举报

28

积分

0

威望

0

贡献

游客

积分
28
发表于 2016-8-31 17:56:26        只看该作者  板凳
能详细点么?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表