usb

Two webcams on one usb 2.0 hub - works in windows but not linux

让人想犯罪 __ 提交于 2019-12-08 04:30:45
问题 The openCV code below grabs simultaneous images from two cameras. It works fine in windows, with the cameras both attached to one usb 2.0 hub. When I try the same code in linux, it only has enough bandwidth for one camera at a time. I've also tried viewing the two streams at once with guvcview, same issue. What I need is some way to force the webcams to work together, possibly by setting the amount of bandwidth the driver requests. capture = cv.CaptureFromCAM(0) capture2 = cv.CaptureFromCAM(1

HOW TO: Read out GPS attached via USB (VB.NET) [closed]

亡梦爱人 提交于 2019-12-08 04:26:45
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 years ago . How can i read out GPS-Data from a GPS-USB-Device via VB.NET? 回答1: it took me a while to gather all information and code-snippets to read latitude/longitude coordinates from a GPS attached via USB. so here is the resulting class clsGpsLocation. it includes a function that checks com ports to

How usb OTG works(master/slave)

*爱你&永不变心* 提交于 2019-12-08 04:24:04
问题 A device has usb OTG Following is scenarios when a device connected to PC ,then device act as slave (how device knows it has to act as slave) when a device connected to printer ,then device act as master. (how device knows it has to act as master) what are the steps executed when device connected to OTG. how to implement this mechanism (in brief)? 回答1: The exact behavior of USB OTG devices is described in the specification you can find at usb.org. There is a PDF inside the zip called USB_OTG.

Mixed types are not supported

♀尐吖头ヾ 提交于 2019-12-08 03:43:57
问题 Please have a look at the following header file #pragma once using namespace UsbLibrary; ref class MissileLauncher { public: MissileLauncher(void); private: //Bytes used in command unsigned char UP[10]; unsigned char RIGHT[10]; unsigned char LEFT[10]; unsigned char DOWN[10]; unsigned char FIRE[10]; unsigned char STOP[10]; unsigned char LED_OFF[9]; unsigned char LED_ON[9]; UsbHidPort USB; }; I am using a Visual C++ project (C++/CLI ?) in visual studio professional 2010. When I run this code, I

Programmatically find the IP address of the desktop over USB tethering

左心房为你撑大大i 提交于 2019-12-08 03:43:27
问题 Is there a way to find the IP address of the desktop machine connected the android phone after USB tethering is turned on? Does android assign a fixed IP address to the desktop? Or does it assign a dynamic address (dhcp)? Is there a PPP connection created between the phone and machine? 回答1: With USB tethering it seems that all android devices use the same static addresses, the android device using tcpdump is 192.168.42.129 The attached device will get a DHCP provided address in the same

Looking for Example Embedded Linux HID Device Code

蓝咒 提交于 2019-12-08 03:41:51
问题 I want to set up my embedded application as a HID device, with a separate process controlling the HID interface to allow dynamic connections to a PC. There seems to be many people out there that have done it, but I would like to do is: a) Understand how to configure my build (Freescale i.MX Linux using ltib) to include the USB APIs and includes in my build (ie g_hid.h). b) Where can I find an example application which does something like move the mouse about the screen to demonstrate the

ACR122U NFC Peer to Peer demo not working

感情迁移 提交于 2019-12-08 03:24:16
问题 I've got an ACR122U NFC card reader and ACR122T token from ACS. I'm trying to run their NFC Peer to Peer demo. I've installed the ACR122U SDK, mysql and connector, set up the database, and added the escape command to the registry. When I try to run the peer to peer demo I carry out the following steps (with resultant log results shown) Insert NFC ACR122T into USB port. Open the Smart Poster application and click initalise with reader 0. Log: D1: 2:04:57 PM Program ready D1: 2:05:02 PM

Detect Arduino port in C#

懵懂的女人 提交于 2019-12-08 01:59:18
问题 I'm trying to open each port and send <mccon> serially, for which my microcontroller will respond <connected>\n after which the C# code must exit the for each loop. I'm having a problem at the serialPort.PortName = str; line. After two iterations, it does not continue further. I tried doing this manually too. I made a drop down and selected ports one by one. After the second port, it does not allow to change the serial Port. But in case I select within two tries, it works fine. I know OOP in

How to interact with USB device using PyUSB

假装没事ソ 提交于 2019-12-08 01:26:00
问题 I have so far gotten to the stage of finding the device, now I am ready to talk to the USB using the devices protocol laid out in the specification on page 22. libusb is installed on my machine and so is PyUSB. import usb.core import usb.util # find our device dev = usb.core.find(idVendor=0x067b, idProduct=0x2303) # was it found? if dev is None: raise ValueError('Device not found') # b are bytes, w are words reqType = '' bReq = '' wVal = '' wIndex = '' dev.ctrl_transfer(reqType, bReq, wVal,

Java: util_USBUIRT.dll: Can't find dependent libraries

大兔子大兔子 提交于 2019-12-08 00:51:25
问题 I want to use this JAR file (http://sourceforge.net/projects/uirt-j/) in my project. In Eclipse I used th option Project > Java Build Path > Add External JARs to import it. I can see all classes of JAR file in Ecplise. This JAR contains two dll files. In order to load dlls, I put into System32 dir, but when a execute my code, a I get the follow error: Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Windows\System32\util_USBUIRT.dll: Can't find dependent libraries at java.lang