Timeline for What's the hardware and software detect mechanism of the cellphone Micro USB devices attached and detached?
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 30, 2018 at 6:06 | comment | added | lukeluck | I have measured the VBUS output when I insert my device, VBUS=5V, I also have an indicating LED on the board. Now the problem is I can not realize the function of insert detection on APP, can you give some instructions about the code? | |
May 30, 2018 at 4:37 | comment | added | Ale..chenski | @lukeluck, first you need to check if your phone is working as host. Does it output VBUS when you plug your device in? Does it work with a regular mouse if you use so-called "OTG adapter"?, something like this, gearbest.com/chargers-cables/pp_366686.html | |
May 30, 2018 at 2:17 | comment | added | lukeluck | In your case2 The phone senses ID=LOW, and VBUS=don't care, normally low as well. This makes the phone to load the USB host software stack, which will turn the VBUS on, and act as a normal USB host. does process produces a notification, if so my app can use the state change? | |
May 30, 2018 at 1:37 | comment | added | lukeluck | my device has no cable the micro USB plug is welded on the PCB as I update the pic. | |
May 30, 2018 at 1:31 | comment | added | Ale..chenski | @lukeluck, what is "your device"? What kind of cable of connector does it have? | |
S May 30, 2018 at 1:28 | history | suggested | lukeluck | CC BY-SA 4.0 |
correct spelling
|
May 30, 2018 at 0:48 | review | Suggested edits | |||
S May 30, 2018 at 1:28 | |||||
May 30, 2018 at 0:43 | comment | added | lukeluck | Thanks a lot! My connect is as your case 2. But my problem is the phone doesn't detect my device(as long as I insert my device my APP has got no notification). I have read this variable 'android.hardware.usb.action.USB_STATE or UsbManager.ACTION_USB_DEVICE_ATTACHED ' | |
May 29, 2018 at 20:29 | history | edited | Ale..chenski | CC BY-SA 4.0 |
added 10 characters in body
|
May 29, 2018 at 20:15 | history | answered | Ale..chenski | CC BY-SA 4.0 |