usb

Creating a usb time lapse for Cannon EOS Rebel XS using a c# program

允我心安 提交于 2019-12-11 03:29:16
问题 I am wondering if this is even possible. I want to make my own software to control the release of the shutter via the remote shutter release. From the diagrams I have seen it has a 3.3 v (no load) and a threshold voltage of 1.8v. I am wondering if I can use limit a usb cables voltage which is around 5.25v, if I am understanding correctly. Is this even possible, or do I need to look in a new direction. I am hoping to write the software in c# which I am fairly confident in. Thank you in advance

USB Communication from Arduino to Unity: Timeout Error

一笑奈何 提交于 2019-12-11 03:03:28
问题 I'm trying to set up the simplest possible USB communication between an Arduino and Unity 3D: sending a few bytes from the Arduino and then reading them from Unity. I'm using an older MBP, Unity 4.6.6, and an Arduino Uno with Arduino 1.0.6. Arduino: void setup() { Serial.begin(9600); } void loop() { int val=45; Serial.write(val); delay(10); } Unity: using UnityEngine; using System.Collections; using System.IO.Ports; public class ardCom : MonoBehaviour { SerialPort stream = new SerialPort("

WriteFile returning error code 87

允我心安 提交于 2019-12-11 02:23:05
问题 I am working on a program that is writing to an HID device and am getting the error 87, Invalid parameter on the WriteFile function. I got the functions from Jan Axelson's USB Complete so I'm not sure why I am getting the error. I am using this to find my device: private void USBInit() { IntPtr deviceInfoSet; Int32 memberIndex = 0; SP_DEVICE_INTERFACE_DATA MyDeviceInterfaceData = new SP_DEVICE_INTERFACE_DATA(); Int32 bufferSize = 0; IntPtr detailDataBuffer; Boolean success = false;

Interfacing a libUSB device powered by V-USB library for AVR

醉酒当歌 提交于 2019-12-11 02:13:12
问题 I've wrote a simple program (based on the following tutorial) that send data from an AVR chip (Attiny 2313) to the computer via a USB port, since this device doesn't have a built-in USB port, I've used the V-USB library to emulate such a port via software. The device works as expected, and I had no problem to interface the it with C using the libusb library, However I want to access it with Java, so I looked up for a java implementation of libusb.The only library that I've managed to set up,

Copy a file from PDA to PC via USB in java

*爱你&永不变心* 提交于 2019-12-11 01:53:29
问题 In my application I want to copy a file from PDA to PC via USB, using Java. But I don't have any idea about how to do this and what API to use for that? 回答1: You need to use RAPI in order to do this. In order to access the RAPI dll from Java you can either use JNI or a library like this NativeCall. 回答2: I have post describing how to do this in .NET, although it doesn't directly solve your problem it does demonstrate which methods to use in RAPI and how to use them. http://christian-helle

Android Device USB debugging

别说谁变了你拦得住时间么 提交于 2019-12-11 01:35:11
问题 I plugged my phone(Samsung Galaxy S I9000) into my Ubuntu computer today, and noticed that my USB debugging didn't come up on my phone(I checked device settings are proper). I'm not sure what happened, I can't figure it out. My computer doesn't recognize my phone and my phone doesn't start running USB debugging. Its checked on my phone but maybe my drivers are screwed up somehow. I have also restarted it, issue adb commands but none helps. Same problem had come on my HTC device too but not

How to enumerate USB devices *and* read/write to them?

强颜欢笑 提交于 2019-12-11 00:43:04
问题 There is a custom USB device I need to communicate with. There is no particular driver for it. The device doesn't show as /dev/tty* . I found out how I can use libudev to enumerate the USB devices and let's say I manage to get the corresponding struct udev_device . What I can't figure out is how I can open(2) the device so I can write(2) to and read(2) from it. Is it possible to communicate with a generic USB device, setting baudrate and just read/write? If so, what "file" should I open after

bypass android usb host permission confirmation dialog for android 5.1

*爱你&永不变心* 提交于 2019-12-11 00:34:43
问题 I want to use android in industry, I can connect to Profilic and Ftdi USB to Serial chips with slickdevlabs.com library without any problem. The application has a service and it starts on boot,connect to the usb serial port and do the other things. my problem is that the host device does not have any interaction with user, so when the android asks Allow the app "MyAPP" to access the USB device ? [checkmark]Use by default for this USB device Cancel OK there is no person to click on ok. even

Make Android Emulator use physical usb camera

南楼画角 提交于 2019-12-11 00:25:48
问题 Android Studio, latest Google SDK emulator. I have set back camera emulation mode to Webcam0 to get my usb camera connected to emulator. Unfortunately, it's not working. My camera works without any problems on host computer, for example this: ffplay /dev/video0 gives me camera video playback. When I run emulator with above settings, camera on emulator just says "Unable connect to camera", then closes itself. Have anybody ever succeded with connecting physical camera to Android emulator? I

python 3, try to read from multiple HID inputs, Raspberry Pi

[亡魂溺海] 提交于 2019-12-10 23:37:21
问题 I have a barcode scanner connected to my RasPi without any tty, which means headless without a monitor. In other words, a keylogger for number inputs. This scanner reads numerical barcodes like GTIN or EAN. It works, the script is started by sh on boot. The script I use looks like that: import sys tStr = '' while 1: fp = open('/dev/hidraw3', 'rb') buffer = fp.read(8) for c in buffer: if c: if c == 40 or c == 88: # [ENTER-key] function_to_handle_result (tStr) tStr = '' elif c == 98 or c == 39: