USB (universal serial bus) device communication method and device and electronic device
A technology for device communication and electronic devices, which is applied in the direction of electrical digital data processing, instruments, etc., and can solve problems such as poor compatibility of USB devices.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0058] figure 1 It is a schematic flowchart of a USB device communication method provided in Embodiment 1 of the present application.
[0059] Such as figure 1 As shown, the method includes the following steps:
[0060] S101: Obtain a USB device identifier of a USB device connected to a USB bus interface, and generate a USB device node corresponding to the USB device.
[0061]When the USB device is connected to the USB bus interface, the USB host controller communicates with the USB device, inquires about the USB device, and obtains the device identification of the USB device. In the embodiment of the present application, the USB device identifier is universal, and the device identifier of each USB device will be fixed after the USB device is produced, that is, a USB device corresponds to a unique device identifier.
[0062] In addition, after the USB device identifier is obtained, a corresponding USB device node is generated on the system bus.
[0063] S102: Map the USB d...
Embodiment 2
[0078] In other embodiments of the present application, in addition to reading the collected data of the USB device, the system may also need to send some instructions to the USB device in order to control the USB device, for example: when the USB device is a camera, when the system According to the image collected by the camera, when the shooting angle needs to be adjusted, an angle adjustment command can be sent to the camera.
[0079] For this, as image 3 As shown, in the embodiment of the present application, the method may also include the following steps:
[0080] S106: Receive a write operation instruction generated according to the found data format.
[0081] The format of the write operation command here must be the data format found, otherwise the USB device will not be able to recognize the write operation command. In the specific implementation, the system can first generate the initial command according to the user input or automatically, and when it needs to b...
Embodiment 3
[0085] Figure 4 It is a schematic structural diagram of a USB device communication device provided in Embodiment 3 of the present application.
[0086] The communication device is connected to a USB bus, and the USB bus is provided with a plurality of interfaces for connecting USB devices, and at least one USB device is connected to the USB bus.
[0087] Such as Figure 4 As shown, the USB device communication device includes: an acquiring unit 1 , a device node generating unit 2 , a mapping unit 3 , a searching unit 4 and a reading unit 5 .
[0088] The obtaining unit 1 is used to obtain the USB device identification of the USB device connected to the USB bus interface.
[0089] In the embodiment of the application, the acquisition unit 1 may be a USB host controller, and when the USB device is connected to the USB bus interface, the USB host controller communicates with the USB device, inquires about the USB device, and acquires the USB device device ID. In the embodime...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com
