USB device control method, device, computer device and storage medium

A technology of equipment control and computer programs, applied in the field of communication, can solve problems such as poor reliability, and achieve the effect of strong reliability

Active Publication Date: 2021-10-08
FIBOCOM WIRELESS
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Based on this, it is necessary to provide a USB device control method, device, computer device and storage medium for the problem of poor reliability of traditional USB OTG devices

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • USB device control method, device, computer device and storage medium
  • USB device control method, device, computer device and storage medium
  • USB device control method, device, computer device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In order to facilitate the understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. Preferred embodiments of the application are shown in the accompanying drawings. However, the present application can be embodied in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the application more thorough and comprehensive.

[0027] see figure 1 , a method for controlling a USB device, comprising step S200, step S300 and step S400.

[0028] In step S200, when it is detected that the power line pin of the USB device is at a high level for a preset period of time, the ID interrupt of the USB device is triggered and the flag bit of the ID pin of the state machine function in the USB device is detected.

[0029] Specifically, the master device mode is an operatio...

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

This application relates to a USB device control method, device, computer device and storage medium. When the power line pin of the USB device is at a high level for a long time and cannot trigger power line interruption, a state machine function is added to the normal ID interruption operation. The modification operation of the power line pin flag bit, when the ID pin is low level, the power line pin flag bit in the state machine function can be forcibly modified to low level, so that the USB device can enter the master mode normally . Further, when it is detected that the ID pin is at a high level, the USB device can be controlled to enter the slave device mode according to the high level power line pin flag. Through the above scheme, the modification operation of the power line pin flag bit is introduced in the ID interrupt, so that the USB device can realize the normal master device mode and the slave device mode when the power line pin is at a high level for a long time. The switch has the advantage of high reliability.

Description

technical field [0001] The present application relates to the technical field of communication, and in particular to a USB device control method, device, computer device and storage medium. Background technique [0002] With the rapid development of science and technology and communication technology, the USB (Universal Serial Bus, Universal Serial Bus) interface is used more and more widely in electronic equipment, and the information exchange and power supply of electronic equipment through the USB interface provide a great convenience. USB devices generally include HOST (master device) and SLAVE (slave device). Only when a HOST is connected to a SLAVE can data transmission be realized, and OTG (On The Go) technology enables the device to act as both a HOST and a SLAVE. It can act as a SLAVE, and then realize data interaction between devices without HOST. [0003] A USB device using OTG technology includes five pins, namely a power line pin (VBUS), two data pins (ie D+ a...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F13/38G06F13/40G06F13/42
CPCG06F13/385G06F13/4068G06F13/4282G06F2213/0042
Inventor 张杭州
Owner FIBOCOM WIRELESS
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products