usb

Android powered device in USB host mode

僤鯓⒐⒋嵵緔 提交于 2019-12-10 11:37:15
问题 Android has implemented the USB host mode in Android 3.1 and newer. I've gone through documents in the following link: http://developer.android.com/guide/topics/connectivity/usb/index.html http://developer.android.com/guide/topics/connectivity/usb/host.html However, the information provided by Android official website is relatively too high level for me to understand the whole story. I know that OTG is necessary to implement USB host mode. I have some questions listed in the following: How

USB Driver Compilation Error

拈花ヽ惹草 提交于 2019-12-10 11:18:05
问题 I'm currently trying to compile a Linux USB UART driver, which is provided here: http://www.exar.com/connectivity/uart-and-bridging-solutions/usb-uarts/xr21v1410 The driver consists of 2 header files and one large C file. These are the contents of the Makefile: obj-m := vizzini.o KERNELDIR ?= /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) EXTRA_CFLAGS := -DDEBUG=0 all: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install clean: rm -rf *

How to get the VID and PID of all USB devices connected to my system in .net?

亡梦爱人 提交于 2019-12-10 11:05:02
问题 In a C#.net console application, what code can i write to print on the screen the VID and PID of each USB device connected to the system? 回答1: Here's some code I've written based on what I've found so far. There may be a better way to do this. public static void MyMethod() { System.Management.ManagementClass USBClass = new ManagementClass("Win32_USBDevice"); System.Management.ManagementObjectCollection USBCollection = USBClass.GetInstances(); foreach (System.Management.ManagementObject usb in

Native way to get the feature report descriptor of HID device?

醉酒当歌 提交于 2019-12-10 10:38:51
问题 We have some HID devices (touch digitizers) that communicate with an internal R&D tool. This tool parses the raw feature reports from the devices to draw the touch reports along with some additional data that are present in the raw feature report but filtered out by the HID driver of Windows 7 (eg, pressure data is not present in WM_TOUCH messages). However, we have started working with some devices that may have different firmware variants, and thus that do not share the same ordering or

what happens when you plug in a new USB device?

若如初见. 提交于 2019-12-10 10:27:28
问题 I have an embedded device with a USB connection. When the user plugs the device into their PC (Windows, OSX), how does the operating system discover what drivers to install? How do I get my drivers to be selected? Can they reside on some central server (run by the OS vendor)? 回答1: This is for Windows : When a USB device is plugged into the system, the USB bus driver is notified. The bus driver sends a standard USB request (USB_DEVICE_DESCRIPTOR) to the device. With this the device reports its

Enum USB devices in Linux/C++

耗尽温柔 提交于 2019-12-10 10:17:47
问题 Im writing IO routines for a linux device that will have various and changing USB devices connected to it. To this end I need to be able to figure out which device is connected to which port so I can open it with the correct software. Something akin to 'udevinfo' would be ideal but I have no idea how to start in writing such. Suggestions on c++ apis to read? 回答1: Take a look at libudev++. It seems to be what you're looking for. 回答2: See libusb's libusb_get_device_list , libusb_get_bus_number

USB Driver Installation Issue for Microcontroller using Custom INF

断了今生、忘了曾经 提交于 2019-12-10 10:17:06
问题 I'm working with the NXP LPC1788 microcontroller and I'm trying to create a driver on the host computer to communicate with it via USB. I believe that I've managed to get the device handling standard USB requests properly (the PC is able to read the string descriptors properly). I'm having trouble writing a sample USB driver and installing it for the device, though. I'm working with Microsoft Visual Studio 2013. My steps were: Creating a WinUSB Application, which produces a "Driver" and

Sending AT Command to a USB-Connected GPRS Modem in C#

徘徊边缘 提交于 2019-12-10 10:10:45
问题 Can anyone give me a good direction or guide on how I can access a GPRS modem that is connected to a Usb Port. Should I make a USB driver for my program to send AT command to the modem? or Is like a router where in i can access it using an IP address? thanks 回答1: If its recognised by windows as a modem then the required drivers should automatically present it as a serial port, just like any other modem & you can communicate with it using its port name & System.IO.Ports.SerialPort . If you

ASP.NET/Silverlight Control USB Device

二次信任 提交于 2019-12-10 10:06:19
问题 I want to alert a user of a new message using some kind of USB device (e.g. a flashing light). Is it possible to control a USB device from ASP.NET or Silverlight? 回答1: You could possibly do this using a custom ActiveX component and som javascript in your webpage. Alternatively you could use a Silverlight 4 application running in out-of-browser mode, but that is probably not what you want. SL4 can access locally installed Com components it is is running in out-of-browser mode, so in that case

Serial ports - how do I set characters?

笑着哭i 提交于 2019-12-10 09:33:24
问题 Consider: Baud rate 19200 RTS on DTR on Data bits=8, Stop bits=1, Parity=None Set chars: Eof=0x00, Error=0x2A, Break=0x2A, Event=0x00, Xon=0x11, Xoff=0x13 Handflow: ControlHandShake=(DTR_CONTROL), FlowReplace=(TRANSMIT_TOGGLE, RTS_CONTROL), XonLimit=0, XoffLimit=4096 OK, so using a port scanner I've found that a USB device needs these settings to facilitate an import. I can recreate most of these as follows: port = new SerialPort("COM4"); port.DtrEnable = true; port.RtsEnable = true; port