usb

Writing a small utility tool that listens on USB ports, need advice

会有一股神秘感。 提交于 2019-12-12 20:16:39
问题 I have a piece of hardware that works in cycles. It comes with a proprietary software tool that lets user control it from PC via USB. User defines how long each cycle is. At the beginning of each cycle the software tool rapidly issues a series of commands to the hardware via USB and then goes into the idle mode, awaiting next cycle. There's a second piece of hardware that needs to be synched with the first one. Basically, when the aforementioned series of commands is issued to hardware #1,

USB Debugging with Samsung Galaxy SII

自古美人都是妖i 提交于 2019-12-12 20:03:41
问题 I used to use the Android emulator for debugging. Everything was fine. But when I tried emulator for Android 4 it was lagging so much. It was almost impossible to use it. So I tried to use USB debugging with Samsung Galaxy SII with Android 4.0.4. I've enabled USB Debugging on device, installed drivers, tried to use Kies, but it just doesn't work. When I started debugging and selected this device in Android device chooser, it was looking like this: samsung-gt_i9100-0019caae19649e | N/A | 4.0.4

C# read USB Descriptor

不问归期 提交于 2019-12-12 18:29:06
问题 How can I read the USB Descriptor by C#? I found LibUSB.NET but I can't get USB devices like in examples: UsbRegDeviceList allDevices = UsbDevice.AllDevices; it returns count = 0 回答1: It appears this question was asked and answered quite a while ago now. Here's the link: get-list-of-connected-usb-devices 来源: https://stackoverflow.com/questions/14518778/c-sharp-read-usb-descriptor

Putting an android device in USB Host Mode?

回眸只為那壹抹淺笑 提交于 2019-12-12 18:14:25
问题 For my application I need to make the android device act as the USB Host. It needs to send and receive data from USB connected devices. I have gone through USB Host in Android Developers Site, and developed sample code as follows: Main.java public class UsbDemoProjActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button btn = (Button)findViewById(R.id.button1); btn.setOnClickListener( new

DIDEVICEINSTANCE guidInstance and guidProduct change on same device

走远了吗. 提交于 2019-12-12 18:09:40
问题 I am using DirectInput8 in a project at work that monitors various components of the pc. To monitor joysticks we use DirectInput8. The data is retrieved by enumerating all joysticks with DI8DEVCLASS_GAMECTRL as the type and DIEDFL_ATTACHEDONLY as a flag. Recently it was brought to my attention that we were having multiple joysticks showing up. First I looked at the xml file we store the components in between reboots. There were two entries for the joysticks, Logitech Extreme 3d pro, and each

Obtaining GUID for Existing USB Device on Windows XP

假装没事ソ 提交于 2019-12-12 17:15:52
问题 I need to find the GUID for an existing USB device attached to my Windows XP system. How can this be done using WMI or the registry? Or, is there another avenue that I should explore? Thanks. Additional Information: I need to find the GUID for a specific known device; it is not expected to change. If I need to write a little program, use some tool, or look somewhere in the Windows system to find this information, it's all the same to me. 回答1: For a specific known device, the easiest way I've

Baud rate limits in software and serial communication with an external device

☆樱花仙子☆ 提交于 2019-12-12 16:42:58
问题 I am using a USB port port operating as a virtual COM port to achieve serial communication with an external device using MATLAB or Visual Basic 6. I am facing baud rate limitations depending on the software I use to communicate with the device. MATLAB (2018a) has no problems because it can set high baud rates. Visual Basic 6 on the other hand faces limitations on the baud rates that can be set in the software. In terms of solutions, I have looked into this to set a higher baud rate in Visual

libusb and poll / select

南笙酒味 提交于 2019-12-12 15:44:28
问题 I'm using a linux OS and was wondering if there were any file descriptors I could poll/select which would trigger when data was waiting to be read from a usb device. I am also using the libusb library and have yet to find file descriptors which I can use. 回答1: Use libusb's polling functions to hook its file descriptors into your event loop. select will wake up whenever there's activity that libusb will need to handle, which includes but probably is not limited to data being available for

How to enumerate all installed usb modem using Windows API

不问归期 提交于 2019-12-12 15:27:18
问题 I have bought a ZTE MF190 usb modem and began to harness it. So far, I have managed to programmatically have an sms sent to another mobile equipement using free AsyncPro components of TurboPowers . I wonder wether there is a way to retrieve the list of all installed modems along with their attached serial COM ports (hopefully with other valuable capabilities). Thanks in advance. 回答1: To list the installed modems you can use the Win32_POTSModem WMI class Check this sample code. {$APPTYPE

Send data from android to connected Usb storage device in Usb Host Mode

a 夏天 提交于 2019-12-12 13:04:00
问题 In my application am using USB host mode which gives the information about connected USB mass storage device say Usb Flash Drive in my use case.Now I need to create a file on the connected flash drive and save some data in the file. So far I have found is connecting to the device as below, MainActivity.java public class MainActivity extends AppCompatActivity { private static final String TAG = MainActivity.class.getSimpleName(); private Button mCheckForDevice; private TextView mDeviceInfo;