usb

Running Tomcat from USB Flash Drive

我只是一个虾纸丫 提交于 2019-12-11 16:02:49
问题 I am trying to setup Tomcat to work straight from a USB flash drive. I know that is possible to run apache + mysql + php from USB flash, but what about tomcat? I found this link which contains some explanations but the links to download the sourcecode or the bin are not working. http://www.javalobby.org/articles/tomcat2go/ By searching a bit the Internet I managed to find in obscure site the binary which is not working and probably the src needs to be modified to be make it work. Does anyone

Unknown USB device on Windows CE [closed]

自古美人都是妖i 提交于 2019-12-11 15:56:18
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . We have a project, where we use really old project specific Windows CE 5.0 devices in a kiosk application. We are trying to replace the USB connected Lexmark T640 printer with a new USB printer (Kyocera P3055dn). The printer works, but Windows CE complains about an unknown USB device (in the moddle of the screen).

Check if certain USB Flash memory is connected to my system

人盡茶涼 提交于 2019-12-11 15:03:25
问题 I want to have a code which it checks if certain USB flash memory is connected to my system. I mean I want to fetch something like product ID and serial Number from the usb flash memory which is connected to my linux based system and check if these numbers match my valid numbers. I also want to know is there a way that someone can fake this numbers? I mean someone uses a invalid flash memory device and generates these numbers to pass my validation process? 回答1: USB devices are described in

What is a correct usbHidReportDescriptor for Android?

心已入冬 提交于 2019-12-11 14:59:11
问题 I am implementing a USB touchscreen interface, which needs to work on Android. From https://github.com/denilsonsa/atmega8-magnetometer-usb-mouse/blob/master/firmware/main.c#L159 I first tried: // Mouse 0x05, 0x01, // USAGE_PAGE (Generic Desktop) 0x09, 0x02, // USAGE (Mouse) 0xa1, 0x01, // COLLECTION (Application) 0x85, 0x02, // REPORT_ID (2) 0x09, 0x01, // USAGE (Pointer) 0xa1, 0x00, // COLLECTION (Physical) // X, Y movement 0x09, 0x30, // USAGE (X) 0x09, 0x31, // USAGE (Y) 0x26, 0xff, 0x7f,

How to run USB2.0 devices on a USB3.0 hub and get USB3.0 bandwdith

心不动则不痛 提交于 2019-12-11 14:55:28
问题 I'm working on an application that uses multiple cameras. Until recently, its been with network cameras; now I'm trying to move this over to USB cameras. I'm aware of the limitations of USB2.0 bandwidth for this, so I just assumed that I could plug several USB2.0 cameras into a USB3.0 hub (which is then plugged into a USB3.0 port of course) and the streams from those USB2.0 cameras would then ride on the higher bandwidth USB3.0 interface... This is not the case. Apparently, the USB3.0

Access to UsbManagers setCurrentFunction() in Android?

China☆狼群 提交于 2019-12-11 14:28:51
问题 I can't seem to gain access to this function, it should allow me to set the usb mode on my device programatically (which is what I'm trying to do). I can import the package where it is supposed to be, but it isn't available. I know it exists as there are apps that use the function all over the place! its just my eclipse/ build environment can't find the damned thing. 来源: https://stackoverflow.com/questions/13432694/access-to-usbmanagers-setcurrentfunction-in-android

Issues porting libusb USB firmware over to Windows 10

為{幸葍}努か 提交于 2019-12-11 13:43:49
问题 I'm working with a custom USB firmware written in C utilizing the libusb API. The goal is to have this firmware compatible with Linux, Mac, and Windows. Thus far, testing w/a Beaglebone Black with debug probe on Ubuntu & Mac has yielded proper USB enumeration and operations with the respective OS's host application. However, trying to connect the board to Windows 10 results in 'This device cannot start. (Code 10) An invalid parameter was passed to a service or function.' I have primarily been

Check if USB device is idling, LINUX

别说谁变了你拦得住时间么 提交于 2019-12-11 13:23:44
问题 I've got a quick question, but I can't find an answer. Is it possible in linux (or in python) to see if an external usb pen drive is idling? I need to know this for a python script I'm writing. I need to rename a folder on an external usb pen drive as soon as nothing is writing to it. edit: I know there is lsof command to list open files. 'lsof /theDir' only works half. It works OK when the process copying to the USB is still running. But when the process stops, lsof shows nothing. But the OS

how to send data to usb hid via chome app/javascript

泄露秘密 提交于 2019-12-11 12:31:31
问题 I succefully connected to mydevice (ps 3 pad) via usb and easily can intercept data depending on which button i press. But pad also can vibrate and has leds and i'd like to operate them as well so here as the questions: though google manuals are really poor i tried to establish connection to device on my own: var message = new Uint8Array(58); message[0] = 1; console.log(message.buffer); chrome.hid.send(connectionId, reportId, message.buffer, function() { console.log('accomplished') }

Upgrading osx driver for 10.11 (Changes in USB stack)

对着背影说爱祢 提交于 2019-12-11 12:19:17
问题 I am upgrading existing custom mouse driver devices to OSX 10.11. It is seen that apple has updated its usb stack. Please refer - https://developer.apple.com/library/mac/releasenotes/General/APIDiffsMacOSX10_11/Objective-C/Kernel.html My existing code uses many of the removed classes ( IOUSBHIDDriver , IOUSBInterface , IOUSBPipe etc). Can someone help me in finding replacements or any useful information for upgrading to 10.11? Many classes and header files are renamed, and I can figure out