Click here to Skip to main content
15,892,005 members
Everything / USB

USB

USB

Great Reads

by Praveen Kullu
Preventing viruses in a USB drive in Windows
by Mike Meinz
PartnerTech provides a 32-bit DLL and a 64-bit DLL for communicating with the CD-7220 Series Customer Display in true USB mode. This tip demonstrates a .NET class that can be used to provide an easy way to access the PartnerTech-provided 32-bit DLL.
by thatraja
Found these linksTroubleshooting: USB Device Not Recognized[^]From Link1[^]:Cause #1: Outdated Device DriverCause #2: USB Device shares the same drive letter as another device already plugged inCause #3: All USB devices suddenly stop workingCause #4: Damaged USB PortCause #5:...

Latest Articles

by ToughDev
Custom USB device that processes input from peripherals and displays on computer
by ToughDev
How to interface NEO-6M GPS module to PIC
by ToughDev
How to integrate FatFs FAT filesystem module with CH375/CH376 USB controller
by Marco Bertschi
Serial communication with an Arduino Board via C# and the SerialPort class from the System.IO.Ports namespace

All Articles

Sort by Updated

USB 

22 Dec 2023 by Member 16168754
There are a few different ways to get the IMEI of a smartphone connected via USB on a desktop. One way is to use the ADB command line tool. To do this, you will need to install the Android Debug Bridge (ADB) on your computer. Once you have ADB...
13 May 2023 by ToughDev
Custom USB device that processes input from peripherals and displays on computer
7 May 2023 by ToughDev
How to interface NEO-6M GPS module to PIC
3 May 2023 by ToughDev
How to integrate FatFs FAT filesystem module with CH375/CH376 USB controller
20 Apr 2023 by DoingWork
Dear All I am new in Xamarin.Android A device is connected to My Android smart phone using OTG function. I want to access it via Serial port by Xamarin c# (Visual Studio 2017). Please guide me. Thanks in Advance for your help What I have tried: I have read topics on UsbManager, UsbDevice and...
13 Apr 2023 by OriginalGriff
This is not a Windows (or Sewoo) tech support site: we are here for software development problems and support. You need to contact the printer manufacturers via their tech support - they will be familiar with their product and brand (which I for...
12 Apr 2023 by huynhminh97
I have a Sewoo LK-B425A Printer, I have connected it to my PC via USB cable. At the first time plug in, there is no anything in Devices and Printers. Then I unplug the USB and install the divers by CD disk (which included with the printer), after...
7 Apr 2023 by agus tison
How make autorun from usb in c# What I have tried: How make autorun from usb in c#
7 Apr 2023 by OriginalGriff
If you are trying to make an app autorun when a USB containing it is inserted, that is no longer possible for security reasons - it was disabled in Windows 7 and is very unlikely to be re-enabled. It was deliberately disabled to curtail the...
6 Apr 2023 by Graeme_Grant
What you are trying to do is not unique. The best place to start is here: How make autorun from usb in c# - Google Search[^] ChatGPT[^] also has an interesting response when you ask it: How make autorun from usb in c#. The response given...
6 Mar 2023 by Jayson Suggs
The best way to troubleshoot this issue is by enabling logging within VMWare and then examining log entries for any error messages that may shed light on the root cause of your problem. If you are unable to pinpoint what’s causing the issue from...
10 Feb 2023 by Yogesh Sahu 2023
I have weighment machine(Weighing Bridge) which is connected to the system using USB port. How can i read the data using PHP ? What I have tried: I tried php_dio.dll extension of PHP but this is not working on USB port its only working on...
20 Sep 2022 by Member 15721152
I have used CM_CONNECT_MACHINEA function to connect with remote machine computer management, click here to view the code.I cannot reslove CR_CALL_NOT_IMPLEMENTED error. what is the format of UNCServerName as a params in CM_CONNECT_MACHINE ? ...
20 Sep 2022 by Richard MacCutchan
See the comment at the top of the page: CM_Connect_MachineA - Win32 apps | Microsoft Learn[^]: Quote: [Beginning in Windows 8 and Windows Server 2012 functionality to access remote machines has been removed. You cannot access remote machines when...
14 May 2022 by Member 4582654
I have been using LibUsbDotNet for a few years now and all of my development has been done on a W7 machine running (currently) VS2022. LibUsbDotNet provides the 'WinForms' end of my projects - the other ends are all AtTiny or AtMega...
14 May 2022 by Dave Kreskowiak
You're going to have to get a hold of the authors of the library.
9 May 2022 by Preetinder
Hello,I want to develop an application in VB.Net that captures data (temperature and pressure) using USB port and displays the values on Screen. The values may then be used to generate Graphs or for controlling other devices, again using USB Port.However, I have not found any method in...
17 Mar 2022 by PBSG
I have product ID and vendor ID using these i need to access the comport and also display the port name and number in c++ can anyone help in this topic there are many examples in c# but i need them in c++ for the project What I have tried: i...
7 Oct 2021 by User 9916080
This maybe what you are looking for. From Google: Epson TM-T88III Drivers[^]
11 Jun 2021 by mohammed abdu
Hello, I have a multi touch frame that I want to communicate with and maybe write some code to do something when multi touch is active (this is for a work project). I have no idea what to do or how to do it (or if it is even possible). I...
11 Jun 2021 by Richard MacCutchan
Google has many links that will help you: Nexio HID Multi-Touch ATI0320-10 - Google Search[^]
17 May 2021 by merano99
I don't own the part, but I think it should be possible to rewrite the function known to Windows for Linux. The USB command should be the same. typedef struct { UCHAR ReportID; UCHAR ReportBuffer[96]; } REPORT_BUF, *PREPORT_BUF; PACDRIVE_API...
17 May 2021 by user0110
I use a USB Device, a Press-Button with RGB-LED from ultimarc: Its connected to a linux device and I want to set the color of it and query the pressed state. Link: USB Button :: USBButton[^] For this device there is a existing windows API for...
20 Feb 2021 by Stan Huang
My platform is ubuntu 11.04 / iMx6. I would like to verify a printer. When I tried to install a USB Printer driver, usblp.ko with command: "insmod usblp.ko", I got response of"insmod: error inserting 'usblp.ko': -1 Invalid parameters"I found some discussions about similar phenomenon;...
4 Feb 2021 by Mauro Fantina
Hello. I'm developing a UWP application that opens a "SerialDevice" that is a CYPRESS ARM micrcontroller with "Azure RTOS" and "USBX" library. The "USBX" library instantiates CDC ACM connection. The micrcontroller send every second a USB packet...
11 Oct 2020 by Anh Chu
Hi guys,I have a system connect to PC through USB. I am writing the software that has "Connect" button which allows user to connect to that specific USB port. My solution is 1. Scan all available COM ports 2. Send a specific message to each COM port and if the system echo back another...
18 May 2020 by Richard MacCutchan
See Eject/dismount a USB with code on a Pi - Raspberry Pi Forums[^]
18 May 2020 by Moonwalker031
I am writing a Python prog on Raspberry Pi that has a function to write some data to a USB drive. I need to Unmount/Eject it when ready so that the user can take it out. Is there a way to do it through the python prog please? What I have...
18 Apr 2020 by Richard MacCutchan
Use Google to find specific samples of linux commands and libraries related to the subject.
18 Apr 2020 by Member 14631177
I need to make an assignment program in C that identifies usb devices in Linux distro (my choice is Ubuntu 18.04 LTS). Additively, this code is intended to select device-related drivers and interrupt handlers as well. What I have tried: To...
21 Oct 2019 by TabZhang
Hi All Library Class: A USB Library to Detect USB Devices[^] How can I get only one Event Notification when USB Arrived or Removed when using the class above! Any help will be greatly appreciated! Thanks! What I have tried: USBClass usb = new USBClass(); USBDevicePropertiesList = new...
21 Oct 2019 by Andy Lanng
Pretty sure that because you get two alerts, and I get 4, the code scans all usb ports when an item is connected or disconnected.
21 Oct 2019 by Richard MacCutchan
Please post your question in the forum at the end of the article so the author may help you.
17 Oct 2019 by RickZeeland
See help here: What To Do When A USB Device Is Not Recognized In Windows 10[^]
17 Oct 2019 by asitha32
I connected an external USB device to my computer yesterday and after a while, I was told that I could not detect a USB device. This is a big problem for me. I need to fix this quickly. If anyone knows how to fix this please let me know and I would appreciate it Thank you What I have tried: ...
1 Jul 2019 by OriginalGriff
There is no "fast copy" method that will guarantee to make a significant improvement in transfer speed, you are almost certainly limited by three factors: 1) USB transfer speed - this will depend on the version of USB for both the port on the computer and the version of USB in the pendrive - the...
1 Jul 2019 by HARDIK Joshi
I am Transfer one directory from system to pendrive (Regular 2.0 USB Device) with the help of Microsoft.VisualBasic.FileIO.FileSystem.CopyDirectory class but it is taking too much time for transfer directory. Size of directory is 12GB or some time more then 12GB. 12GB directory taking time...
16 Apr 2019 by Member 14282296
How can I see what is sent as a command to the USB port that a device is on when you press a button from a software to send information to the device. For example: If I want to print a text document, I press on a certain "print" software and the program sends information to the USB- port of the...
16 Apr 2019 by OriginalGriff
Google is full of 'em: snoop on USB comms - Google Search[^] - I've never tried them though.
3 Mar 2019 by Peter____
So far I only use the rewritten JNA lib for performing the iso transfer now and Usb4Java lib for finding the devices and read out the descriptors. Link for the project is: GitHub - Peter-St/Linux_Jna_Kamera: Camera stream over Jna.[^] Peter
3 Mar 2019 by Peter____
Solution: The code I posted was mainly for 32 bit platform: An int has different sizes on c#, java and other languages. To rewrite all the original IOCTL functions of the kernel in Java (JNA interface class used) and setted the structure sizes of the urb class new (with JNA Structure class...
3 Mar 2019 by Peter____
Hello, I have a problem with an Usb Ioctl over Jna on Linux Mint 19. On Android Platform the Ioctl can be submitted, but on Linux I get a bad address error. The programcode is shown below. There are more ioctls called on the usb device. The first 2 works without an error msg: rc =...
17 Oct 2018 by KarstenK
You have created a PointerByReference without any pointer. Use the other constructor with a pointer to a valid memory area.
20 Sep 2018 by dmitryponv
Here is how I got mine to work. 0. cd to the build folder C:\Temp\VirtualSerial\ComPort\x64\Release\virtualserial> 1. First install the driver using the devcon command, it will fail. Devcon command is devcon install virtualserial.inf UMDF\VirtualSerial 2. Check device manager, you will...
28 Aug 2018 by Member 13947289
Hallo All I use Create file ,Writefile,Readfile to communicate with a usb device,After using Createfile successfully Writefile needs a pipe to the device .I tried Createpipe() to create anynoumous pipe and I binded his handle with Createfile handle with refrence.but it did not work.So How to...
28 Aug 2018 by Jochen Arndt
I know of three options to communicate with USB devices on Windows: Using a device specific driver with an SDK provided by the device manufacturer Using a device specific driver with IOCTLs Using a device independant API or library like WinUSB or libusb As a starting point you might read...
27 Aug 2018 by Peter____
Hello, I'll have a problem with a program which I code on my linux Pc, where a camera stream should be transmitted. On Linux I use the Usb4java Library to access the Usb Device and prepair the camera for the streaming. Therefore I have to claim the 2 CameraInterfaces and have to send some byte...
13 Aug 2018 by Member 13947289
Hallo my friends I have a project to communicate with a usb device using usb bus. The device has its own driver and a communication protokol Guid . In its guid there is this senetence :"After USB driver is installed any program can communicate with the device by using ‘CreateFile’, ‘ReadFile’...
13 Aug 2018 by Rick York
One odd thing with Windows API error codes is they are most often documented in hexadecimal form. This error code is E0001009 in hex and according to google there are a few different meanings for it. One is USBIO_ERR_NOT_BOUND. Reason: The handle is not bound to a pipe. This error is reported...
16 May 2018 by Member 13679413
Info: running debian 8.10 LINUX And it was working (but only read-only) before I deleted it It is write protected (I would like to read and write) A while ago, I installed Linux cinnamon-64 on my PC using this USB. I tried to use it for files (you know, move files onto USB and out onto...
15 May 2018 by phil.o
Most probably because ISO9660 is a file-system format for CDROMs, which does not fit for USB drives. You should maybe look at How to mount an USB drive in Linux[^].
20 Mar 2018 by Member 13688117
Hi, I am new to drivers.I configured my PIC device and got it listed in windows device manager while I plugged in.Then wrote an .inf file that made my custom USB device install and got it listed by my custom name.Since winusb.sys is listed in properties of the device in driver details, I...
20 Mar 2018 by Jochen Arndt
Have a look at CodePlex Archive: WinUsbNet[^]: Quote: WinUsbNet: A managed interface to WinUSB.sys The WinUsbNet class library gives .NET managed code direct access to USB devices through WinUSB, the generic USB device driver included with Windows. The project also includes tools to create &...
11 Nov 2017 by Richard MacCutchan
OTG Android Xamarin C - Google Search[^].
19 Oct 2017 by dnibbo
Hi all We have a cheap and nasty RFID reader to scan some old key fobs (125KHz) which works OK but... the problem with it is that it is a HID device which just splatters any data it reads into any writable field on any screen so if the user has a Word document open and active it can scribble...
19 Oct 2017 by Dave Kreskowiak
You're not going to such an adapter. Your "adapter" would have to be smart enough to know that it's connected to a keyboard HID device and how to translate "keystrokes" to serial data. Your problem is that you're using a "keyboard wedge" scanner. The scanner exposes itself as a keyboard to the...
18 Oct 2017 by CPallini
The USB to serial converters (at least the one I know of) work in the opposite direction (they are USB devices, you need a USB host for your RFID device). Quote: Searched high and low for a desktop serial RFID reader; they are either 1.3GHz or USB only However they could possibly behave...
28 Aug 2017 by orgilhp
Now I'm using code below. But this code notifies me only when I plug in or out USB printer. But I need to get notified when printing occurs on USB printer. I am using c# and .netfx4.5. Please help me, any suggestion would be highly appreciated! Regards, Orgil.D What I have tried: using...
28 Aug 2017 by Jochen Arndt
You have to monitor the Windows print jobs and check if your USB printer is the output device. Some links which might be helpful: Monitor jobs in a printer queue (.NET)[^] A simple approach for controlling print jobs using WMI[^]
15 Jun 2017 by Patrice T
This is specific to your thumb scanner Why don't you contact the manufacturer or a forum of users ? I have already seen this question a few times, but there is no way we can answer it, reposting the same question again and again will not help, it just upset helpers here.
6 Apr 2017 by Patrice T
Quote: Show notification in server when client use usb port Assuming the can do it, the whole idea is non sense, unless you plan to have someone attending in front of server. And your server will be real fun when you will have 2000 clients playing with usb. Note that most keyboards and mouses...
5 Apr 2017 by Jochen Arndt
That is not possible. The software running on your web server has no access to the client system. You would have to execute code on the client site. But even that is not possible because client site software running in a web browser has no access to the USB ports for security reasons.
19 Feb 2017 by Member 13010961
I usually have to copy a group of files to one or more USB drive. It quite difficult to send the files to the USB drives in the most effective and efficient way so that from a group of files, the ones that fit with the least amount of free space remaining get copied to the USB drive.**I'm...
19 Feb 2017 by KarstenK
My short research for "get free disk space windows c++" with Google gave me the GetDiskFreeSpace function with returns the amount of free space.That should be the starting point of calculating the optimal file set for your copy job.And guess: to copy a file you can use...
15 Dec 2016 by Member 12907063
I saved my css and html files from one computer and opened it on another computer after downloading the same coding program. It would only show what my work looked like on the web but not the actual code itself? How can I get these files to show up in code on my program, Sublime?What I have...
15 Dec 2016 by Dave Kreskowiak
Really, its' just File/Open ... in ANY program you want that can edit text files. You could use Notepad if you felt like it. There is nothing special about these files. They're just text files.
4 Dec 2016 by prof_ahmed
how to unplug/plug usb using c#What I have tried:i tried devcone ,restart,remove,rescan,disable,enableall this not working
4 Dec 2016 by OriginalGriff
This looks very like this question: How to restart usb ports useing C#?[^] which you already know, as you commented on it five minutes before you posted this.Don't duplicate questions: it wastes time, effort and work.Why do I get the feeling that at least one of these accounts is a sock...
28 Nov 2016 by Member 12876436
Hi! I'd like to call UsbLibDotNet from VB (actually VBA, but a non-dot-net VB example will do :-))How do I do that?Thanks ;-) MartinWhat I have tried:I tried setting a reference to UsbLibDotNet but it doesn't show up in the reference list.
9 Nov 2016 by Member 12841129
I am working on a project with my partner, and I have the part of the desktop application. I am creating a WPF Application, which will send data(values of the outputs of the board) to a board through a USB cable. We are using the STM32F407VG. I have already designed the UI of the app. So, now, I...
9 Nov 2016 by debasish mishra
Some pointers.Youtube video.net Micro Framework implementationWPF you can always know how to do or what to do but communication should work out by implementating progamming languages like c#
25 Oct 2016 by abbabbabba
The cause of the problem lies in the code:There is an array containing thousands of files that should be copied.Depending on earlier settings, possibly made months ago, some files should not be copied.When the code skips copying a file that should not be copied, it should also skip...
24 Oct 2016 by abbabbabba
Hi all! I've got one client machine that fails when using my application attempting to copy thousands of files from an USB stick. An error message is thrown after a few files are copied, and a lot of folders are created on the hard drive. The error message says that the USB stick is write...
25 Aug 2016 by Garth J Lancaster
I'm not sure if you've seen this, but, you can communicate with your phone 'modem style' by using AT commands, and is just happens that one of those commands returns the IMEI .. have a look at this Using SerialPort and AT Commands for Querying Cell Phones[^]
25 Aug 2016 by Member 12703931
Hello, I`m doing my final course assignment as a High School Student and I need a way to get the IMEI smartphone connected via USB on my desktop. The code I`m doing is in c# desktop, when you check the device proprieties on "my computer" you can see the Serial Number, I just need the number to...
17 Aug 2016 by Vasily Tserekh
The standard code works for me in windows 7/10 but it doesnt in XP.Is there a workaround?ThanksWhat I have tried:I tried using the code that is on this site. But it doesnt work for XP