| |

VerySource

 Forgot password?
 Register
Search
View: 1907|Reply: 7

usb application

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-7 22:00:01
| Show all posts |Read mode
I want to write a usb application on linux
I don't know the APIs provided by the Linux USB driver, such as the basic API for opening the USB port and reading and writing to the USB.
Wang Gao guidance
Thank you
Reply

Use magic Report

0

Threads

7

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-1-9 20:27:01
| Show all posts
Open the USB device file directly, read / write read and write, but in most cases you can't read anything, because USB and serial port are different, USB device types are different, and different initial trials are required. Soy oil different operation methods. For example, if you are using a USB mouse, then you can use cat / dev / mouse to get the data sent by the mouse to the PC.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-18 09:27:02
| Show all posts
To borrow the landlord's treasure, please ask: how to correspond to the button event on the USB camera in windows.
Reply

Use magic Report

0

Threads

1

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 China

Post time: 2020-1-20 16:03:22
| Show all posts
: lol: lol: lol: lol
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-3-7 21:00:01
| Show all posts
The driver's open thread detects whether the device has a key (usually using the int endpoint), and if so, records. At the same time, the application must have a worker thread to query the driver at a certain frequency. Submit this message after inquiry. This is a tedious method. You can also notify the application through events.
Reply

Use magic Report

0

Threads

1

Posts

0.00

Credits

Newbie

Rank: 1

Credits
0.00

 China

Post time: 2020-5-27 14:47:15
| Show all posts
Open a thread in the driver to check whether the device has a key (usually use int endpoint), if there is a record, and the application must also have a worker thread to query the driver at a certain frequency, and the driver will ask the next application after getting the key message. Submit this message after inquiry, this is a more cumbersome method, you can also notify the application through events
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-27 17:15:01
| Show all posts
I want to use VB to write USB applications under WINDWOS, how should I write it!
Hope the expert will give some advice, thank you!
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-8-27 17:30:02
| Show all posts
VB can't write the driver
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list