usb

USB device detection using actionscript 3 from flash

北城以北 提交于 2019-12-12 01:35:13
问题 Is it possible to detect usb device using actionscript 3 from flash cs4? Pls. let me know. Thanks & Regards, Sagar 回答1: Is your Flash movie running in the browser (is it a remote SWF) or an AIR application? Either way, the simple answer is no. In case of an AIR application, you might be able to use the NativeProcess API to start a C/Java demon application that does the monitoring for your AIR application. 来源: https://stackoverflow.com/questions/3387397/usb-device-detection-using-actionscript

How to control USB HID keyboard's caps lock “from” android?

我的梦境 提交于 2019-12-12 01:08:09
问题 I have a usb hid keyboard connected to my android device. Now i have a one way communication, from keyboard to android. But i am looking for the opposite way to control keyboard from android device. Now i find a way to control caps lock, numlock and scroll lock in java. But i couldn't figure out how to do it for android. What i am looking for is not changing the input method. So this or that solution doesn't work for me. Thanks in advance. 回答1: Provided you're developing for a version of

Point Grey firefly MV, dc1394, and USB 3.0

亡梦爱人 提交于 2019-12-12 00:47:27
问题 I am trying to grab frames from a point grey firefly mv, and I have written an interface for my program using dc1394 driver. The driver works fine when I the firefly is connected to a USB 2.0 port, but when I connect to a USB 3.0 port, dc1394 throws the following error on the function call dc1394_capture_setup() libdc1394 error: usb: Failed to submit initial transfer 13 The error code is not listed in dc1394/log.h, and identical settings work in a USB 2.0 port. 回答1: Turns out that the problem

Running Bash Script in Java

旧街凉风 提交于 2019-12-12 00:17:27
问题 So essentially, I am trying to run the command "/dir/command -arg" to change the LED color on a USB device in Java. I am using Ubuntu 10.04. When I run the command from the terminal, it works just fine. However, I tried every iteration of Runtime.exec() that I could find and none of them seem to work. I then created a script with the following contents: #!/bin/bash echo "hello" /dir/command -arg when I run this from a terminal it works just fine. However when I run @Override public void run()

Android USB host DeviceConnection.setInterface prior to API Level 21

大城市里の小女人 提交于 2019-12-12 00:11:50
问题 I have a USB device I need to communicate with, and I have the code working using NDK code using JNI calls to the USB host APIs. However it involves a call to DeviceConnection.setInterface(), which is an API 21+ call. If I leave that call out, control- and bulkTransfers fail. How is the configuration set prior to API 21? Which UsbInterface is selected for a DeviceConnection by default? I do call claimInterface, but it still doesn't work. Is there any way to do this using API 19 calls only, or

Sony, Camera API, stack overflow, QX100, feature requests, responses,

别来无恙 提交于 2019-12-11 22:59:38
问题 I saw some articles here about Sony camera, their APIs and so on. Some people remaked that this is not a Sony Support Site, so yes thats true, but not! At least if you look at the Sony Developer site, Sony is pointing to Stack Overflow for Developer support! https://developer.sony.com/2014/11/25/get-support-from-sonys-engineers-on-stack-overflow/ From the postings I saw here the issue is that they do not seem to be very active. :( Others here in the forum suggested to call the Sony support, I

Communication with Zebra RFID Printer | C# .NET

泄露秘密 提交于 2019-12-11 21:07:11
问题 We are developing an application which prints RFID labels using Zebra RZ400 RFID printer. Until now, we were sending ZPL commands by RawPrinterHelper class which makes call to winspool.drv. However, we soon realized that not all tags are printed successfully so we looked for a way to get feedback about the success of the last print operation. There is a command "^RV" that is said to return a string upon a print operation that reflects operation success result. Now, the problem is we don't

USB Serial Virtual COM Port : Read not working but write works

纵饮孤独 提交于 2019-12-11 19:52:12
问题 I use embedded hardware (by TI : Piccolo Control Stick xxx69) which uses FTDI usb to serial converter hardware. On PC, I have simple VC++ application which tries to communicate to hardware over Virtual COM port (VCOM : typically COM7). I am able to connect to port properly. I am able to send data from application/PC to hardware and it is received correctly. (So, Tx on PC is working fine), Application first opens the connection using createfile(... ... ...) API and then uses writefile(.. ... .

Default file permissions for FAT32 USB stick on Raspberry Pi

余生长醉 提交于 2019-12-11 19:32:44
问题 When I plug a USB stick/thumbdrive that has been formatted as FAT32 into a Raspberry Pi (running Raspbian) the file permissions default to 644 and I cannot change them. I need to leave the stick as FAT32 so it can be used back and forward to a Windows system. I have written a rule using udev but I can't get it to work. My udev rule looks like this: # Set up any USB stick for full write access KERNEL=="sd?1", MODE="0777" I determined that the rule is getting triggered because I had it renaming

Limit USB gadget driver speed

风格不统一 提交于 2019-12-11 18:53:43
问题 tl;dr: How do I compel Linux to reject high-speed USB connections so that it defaults to full speed? Full explanation: I'm writing a USB gadget driver based on Linux gadget zero. The hardware I'm testing on has high speed capable USB which won't be the case of the actual product. For some reason, the gadget (although it has no high speed descriptors on any configuration) is being reported as a high speed gadget ( struct usb_gadget->speed==USB_SPEED_HIGH on set_config function of composite