Supercharge Your Innovation With Domain-Expert AI Agents!

Method of Android intelligent device to detect USB device

A technology for smart devices and devices, applied in the direction of faulty hardware testing methods, detection of faulty computer hardware, error detection/correction, etc., can solve problems such as failure to detect USB devices, USB devices cannot be used normally, etc., to enhance user experience, User-friendly effects

Active Publication Date: 2017-04-26
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF9 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The Android system of traditional Android smart devices does not have the function of detecting whether the status of the USB device is normal, and due to the status of the USB device or the limitation of the number of USB devices connected to the smart device port, some USB devices cannot be used normally.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0020] The method for the Android smart device detection USB device of the embodiment of the present invention, it may further comprise the steps:

[0021] Step 1. When the USB device is connected to or pulled out from the Android smart device, the UsbHostManager of the Android smart device sends a device plug-in broadcast, and sets the additional information to be connected or pulled out.

[0022] In this step, the Android smart device can be a smart TV with an Android system or a smart mobile terminal with an Android system, and the smart mobile terminal with an Android system can be a smart phone with an Android system or a tablet computer with an Android system.

[0023] Step 2. After the background application program receives the device plug-in broadcast, it delays processing for a certain period of time, takes out the additional information in it, and judges whether it is unplugged. information, otherwise go to step 3.

[0024] In this step, the certain time may be 10 ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to an intelligent device technology. The invention provides a method of an Android intelligent device to detect a USB device for solving the problem that whether the state of the USB device is normal is not detected in the Android system of the existing Android intelligent device. The technical scheme can be summarized as follows: firstly, when the USB device is accessed to the Android intelligent device, an application program traverses / sys / bus / usb / device to find a newly accessed USB device path, judges whether a newly added device path exists, if the newly added device path exists and only one newly added device path exists or an ep_ee file exists in a newly added directory, it indicates that the number of the devices accessed to a current USB port has exceeded the supported number, otherwise, the application program checks whether a driver directory exists, if so, it is deemed that the USB device is normally accessed, and otherwise, it indicates that the current USB device is not driven. The method provided by the invention has the beneficial effects of bringing convenience for users, and is suitable for Android intelligent devices.

Description

technical field [0001] The invention relates to smart device technology, in particular to a technology for Android smart devices to detect USB devices. Background technique [0002] The Android system of traditional Android smart devices does not have the function of detecting whether the status of the USB device is normal, and due to the status of the USB device or the limitation of the number of USB devices connected to the smart device port, some USB devices cannot be used normally. Contents of the invention [0003] The purpose of the present invention is to solve the problem of not detecting whether the status of the USB device is normal in the Android system of the current Android smart device, and to provide a method for the Android smart device to detect the USB device. [0004] The present invention solves its technical problem, and the technical solution that adopts is, the method for Android smart device detection USB device, it is characterized in that, compris...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/22
CPCG06F11/221G06F11/2273
Inventor 李平周建波杨恩泽
Owner SICHUAN CHANGHONG ELECTRIC CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More