usb,latency,hid,low-latency,teensy
For USB, it's all polling. Every 1 ms you have a "frame" consisting of none or more transfer descriptors, where each transfer descriptor tells the USB controller which USB device to poll. In general, the USB controller begins the frame with transfer descriptors for interrupt transfers. What this means is...
python,python-2.7,serial-port,usb,pyserial
I figure it out, ----------tricky python--------- please pull me up, and check my other questions (with answers of course) ok first assigning the serial port in a single line will not work as good as #Method 1 set_ser = serial.Serial(port="COM1", baudrate=9600, parity = serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, bytesize = serial.EIGHTBITS, timeout=1) writing...
cocoa,usb,nsurl,security-scoped-bookmarks
This bug seems to be resolved in Mac OS X El Capitan.
c++,windows,usb,console-application,detect
Have a look at this thread https://social.msdn.microsoft.com/Forums/vstudio/en-US/ef5a76cd-966b-4cf3-a05e-7b809918cedc/message-handling-in-a-console-app?forum=vcgeneral Problem is you have a messagequeue but it doesn't operate as within a windows app....
Using the javax.usb library, we can get information about the UsbHostManager. import java.util.*; import javax.usb.*; public class USBLister { public static void main(String[] args) throws UsbException { //Get UsbHub UsbServices services = UsbHostManager.getUsbServices(); UsbHub root = services.getRootUsbHub(); listPeripherique(root); } public static void listPeripherique(UsbHub hub) { //List all the USBs attached...
I after few research and testing of existing solutions, I found mine, my issue was released while I have installed Android file Transfert for Mac
It's not entirely clear what output you're expecting, but given your example code, I suspect you just want: byte[] bytes = new byte[list.size()]; for (int i = 0; i < list.size(); i++) { bytes[i] = (byte) list.get(i).intValue(); } ...
Solved it by my own. There's an excellent source code made by FTDI Chip, so if you ever need to perform USB/ftdi connections with Android try this application: FTDI UART TERMINAL Source code: http://www.ftdichip.com/Android.htm ...
What you're looking for is the USB Video Class and you can download the specification for this and other standard USB device classes here: http://www.usb.org/developers/docs/devclass_docs/ The Linux USB gadget framework has code to emulate such a device: https://github.com/torvalds/linux/blob/master/drivers/usb/gadget/function/f_uvc.c...
The issue is this code: if(serialFD = open(serialdevice, O_RDWR | O_NDELAY) < 0) The < operator has higher precedence than the = operator and so serialFD is set to 0, the value of the comparison, instead of the return value of open. Some compilers will warn you about this because...
Yes of course the phone should deep sleep in this case, it is up to the app to hold a wake lock if there was a special case to have the usb hub running.. think of the usb hub as an extension of your usb port. if your usb wants...
android,matlab,usb,signal-processing,sensor
As I teach (to my students) in such cases: "Google is your friend.", but I don't remember ever this lesson for me. In the Matlab File Exchange (http://www.mathworks.com/matlabcentral/fileexchange/40876) there is a free toolbox for analyzing output data. Of course, in the smartphone must be installed an application: SensorUdp (https://play.google.com/store/apps/details?id=jp.ac.ehime_u.cite.sasaki.SensorUdp). Matlab...
Try this: First register Broadcast for USB connection. manifest permission: Get the List of USB Device with details by using this public void getDetail(){ UsbManager manager = (UsbManager)getSystemService(Context.USB_SERVICE); HashMap<String, UsbDevice> deviceList = manager.getDeviceList(); Iterator<UsbDevice> deviceIterator = deviceList.values().iterator(); while(deviceIterator.hasNext()){ UsbDevice device = deviceIterator.next(); manager.requestPermission(device, mPermissionIntent); String Model = device.getDeviceName(); String...
It is hard to say without knowing precisely your application, but your interrupt handler looks quite reasonable. Generally for multi-tasks systems it is advised to do the least possible in interrupt handlers, because while an interrupt is being handled the different tasks on the systems are not being scheduled any...
android,for-loop,usb,countdowntimer,batterymanager
There is no way for this do/while loop to end, it's an infinite loop at the moment. The boolean "startcountdown" needs some way to eventually go to the value of FALSE. For example if (_iIsCharging == 0) { startcountdown = false; } ...
c++,serial-port,arduino,usb,raspberry-pi
The issue you are experiencing lies in the actual timeline of events. When the RPi sends the data to the Arduino, remember that it is sending it serially, i.e. one character at a time. As soon as the first byte of data arrives at the Arduino, then Serial.available() will return...
Go to /sys/block/<name>, that will be a symbolic link to something like: /sys/block/sdf -> ../devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.4/3-1.4:1.0/host9/target9:0:0/9:0:0:0/block/sdf Then go to the that directory, and in the sucessive parents, you will find a lot of files with interesting information. The data you are asking for, in my particular example, would be at the...
FAT doesn't support permissions. The permissions of the mounted device depends on how it is mounted. You have to edit your fstab like something like that /dev/yourdevice /pathtothemountpoint fat rw,noatime,uid=500,gid=500,user 0 0 Replace the UID and the GID and user with your UID and GID and username ...
ubuntu,windows-7,usb,boot,macbookpro
I had this problem the other day with my uncle's Macbook pro, and was able to get it to boot from a linux USB by using unetbootin - it can be used to create a bootable USB which will run on both Mac and Windows. Simply download & run it...
winforms,c#-4.0,usb,serial-communication,cdc
You should use the SerialPort class, which is documented here: https://msdn.microsoft.com/en-us/library/system.io.ports.serialport...
c#,visual-studio-2012,usb,detect
I've got a working solution I found here. How it works? Well, it enumerates the USB Host Controllers. gets the Root Hub and enumerates the ports that owns it. If there is a device connected and it's not a hub then it displays the required information as followings: Example code:...
android,android-ndk,usb,stm32,dfu
We ended up creating our own solution to program a STM32 microcontroller directly from Android over USB using DFU without using the NDK. We open sourced the project here: https://github.com/UmbrelaSmart/android-stm32-dfu-programmer...
Since the cause of the problem appears to be related to the amount of time the USB reading thread is blocked by Synchronise, i.e. the data processing carried out by the main thread, I made changes in the thread code, (TJvHidDeviceReadThread class, JvHidControllerClass.pas unit). Any code that used this unit...
Add this code in your main activity and restart your activity. Make sure this code has been called onc and set proper sd card path. Install the sqlite manager tool on windows and see your data. try { String inFileName = "//data/data/com.needzapp.debug/databases/your_db_name"; File dbFile = new File(inFileName); FileInputStream fis =...
I don't have any specific knowledge of that controller, but I have read about DFU and have experience with USB firmware. If you are developing new firmware and have the source code, you can remove the DFU USB descriptors and remove the code that handles getting into bootloader mode, and...
// Output some messages to the window. switch (wParam) { case DBT_DEVICEARRIVAL: msgCount++; StringCchPrintf( strBuff, 256, TEXT("Message %d: DBT_DEVICEARRIVAL\n"), msgCount); break; it is handled in the case of DBT_DEVICEARRIVAL....
batch-file,command-line,windows-7,usb,boot
You can do this using the program diskpart which is included in windows. You need the following steps: SELECT DISK <DRIVE NUMBER> CLEAN CREATE PARTITION PRIMARY SELECT PARTITION 1 ACTIVE FORMAT FS=NTFS QUICK ASSIGN EXIT save them in a txt file. Find out the drive number using "LIST DISK" You...
linux,printing,serial-port,usb
I have the impression the printer is actually installed correctly. usblp2 is the device ID. You should be able to print to the printer, but, as usblp2 is not probably not the standard device, you might have to program the print service (probably cups) to use that device to print....
android,serial-port,usb,ioctl,ftdi
I found a solution. It seems this error, EOVERFLOW, can be fixed just by specifying a buffer size that is equal to the max packet size of the endpoint. This solved my issue.
Make sure that USB Debugging is enable Connect your device as camera (PTP) This link could help you: http://www.techotopia.com/index.php/Testing_Android_Studio_Apps_on_a_Physical_Android_Device...
After lots of search I found the solution. ComPort.Port := HidDev.PnPInfo.DevicePath; ...
I guess that with the second ser = serial.Serial(), you are overwriting the serial port object that you created in the first few lines. You are replacing it with a new serial port object, which was created without giving it any parameters. Try commenting out that line.
objective-c,osx,cocoa,usb,apple
Sharing my research and working solution so that other can use if needed. After my further research it seems like that OS X ImageCapture keeps mapping of devices to the auto open app path in com.apple.ImageCapture2 plist file. If you run defaults -currentHost read com.apple.ImageCapture2 on terminal you will get...
By using Environment.getExternalStorageDirectory(), you are actually pointing your sd card or internal storage (depending on which is set as current) and under that you are looking for the device mount point. But mount points in Unix are seen at the root level. Therefore, try directly /mnt/usb_storage/Garmin/system.xml, instead....
I found that I had an error of path in my script/udev rule.
So by looking at the output of udevadm monitor I was able to see that on the newer kernel on the ARM board the remove events aren't tagged with hidraw as they are with the add event as shown below: box:/home/eng$ udevadm monitor monitor will print the received events for:...
python,usb,raspberry-pi,raspbian
Are you using a powered hub or directly plugging the Thunder into the pi? I had the same issue and found out the pi wasn't putting out enough power on its own to shoot the darts. I got a powered usb hub and it worked like a charm.
Try This Method: public void show() { System.out.println("File system roots returned by FileSystemView.getFileSystemView():"); FileSystemView fsv = FileSystemView.getFileSystemView(); File[] roots = fsv.getRoots(); for (int i = 0; i < roots.length; i++) { System.out.println("Root: " + roots[i]); } System.out.println("Home directory: " + fsv.getHomeDirectory()); System.out.println("File system roots returned by File.listRoots():"); File[] f =...
Not directly, no. At the very least you would need an app on the phone to act as a bridge to send and receive data to the bluetooth device. You might also need a driver or application to make use of the data on the pc. In any case, this...
One improvement in python: x='5' while True: ser.write(x) Now, you get '5' in out, not 'x'. And arduino code: void setup() { Serial.begin(9600); for(char i=0;i<10;i++) pinMode(i, OUTPUT); } void loop() { ; } void serialEvent() { if (Serial.available()) { char inChar = (char)Serial.read(); inChar-='0'; for(char i=0;i<10;i++) digitalWrite(i, LOW); digitalWrite(inChar,HIGH); }...
As is documented in several other questions here, Android APIs support only raw transfers, so you would have to implement an entire filesystem in your app. Since your device is custom, you would be better off creating a Linux-level daemon or (bulletproof!) setuid tool to mount the USB drive at...
According to the wiki: Red power LED is blinking A blinking red power LED indicates problems with the power supply. On model A and B, it is hard-wired to the 3.3V power supply rail. If it is blinking, as one user has reported1 it means the 5V power supply is...
adb list connected devices from your computer's point of view, whereas UsbManager.getDeviceList() literally lists usb connected devices to your Android device... UsbManager.getDeviceList() returns a list of UsbDevice which is defined like so by the documentation: This class represents a USB device attached to the android device with the android device...
windows,serial-port,usb,hardware
Serial port is a type of device that uses an UART chip, a Universal Asynchronous Receiver Transmitter. One of the two basic ways to interface a computer in the olden days, parallel ports were the other way. Serial is simple to hook up, it doesn't need a lot of wires....
linux-kernel,usb,linux-device-driver
I searched and i found that it's the function usb_stor_bulk_transfer_sglist in transport.c that perform a data transfer for a USB flash drive In fact, it uses URB with sglist of address...
linux-kernel,usb,linux-device-driver,alsa
These USB audio drivers behave exactly like a PCI sound card, i.e., when the device needs some samples, those samples are just read from the ring buffer. A PCI chip has no way of knowing what part of the buffer actually contains valid samples. A buffer underrun is detected later...
You miss the commons-lang3.jar in your classpath. Download and add it.
"and only right after it's completed, the BroadcastReceiver gets the message" The onReceived callback, by default, is called on the main thread. It sounds like you are calling waitConnection() on the main thread as well. Since waitConnection() blocks, the main thread cannot process any additional messages until waitConnection() returns. This...
And to answer my own question: No, it's not possible. WMIC query results for Win32_USBController (or some related path) might seem right but you can't draw any conclusions from them. Information about connectors aren't stored on the baseboard or any other location either. For example an old Dell Latitude D830...
Forget the Portable Device of the USB option. On phone Download a server app such as WebDAV Server. This mounts your phone roots directory over your local WiFi connection Open app and start WebDAV server (mine: http://192.168.1.113:8080) On pc Assign a map network drive from the command prompt. Open cmd.exe...
First let me clear what I understand from your question. You are creating a software that can analyse any data that can come over USB. You are trying to use Teensy to send data to USB and then process it. Now the answer for feasibility lies in the compatibility of...
networking,usb,debian,wireless,umts
After many tries I found a solution (at least for me): It seems, there is a problem with PIN-locked SIM-Cards. After setting up the GSM-Connection via the GUI nothing happended (seemed so). But a file for the connection in /etc/NetworkManager/system-connections/ has been created. By disabling the PIN of the SIM-Card...
There are 2 frameworks to access USB devices in Java. Both wrap native libraries. One is specifically for HID devices (not sure of this applies to ZWave). I dont know if they have all the features required to speak to your zWave devices, but they would be the first thing...
Yes. As far as I know, there is nothing in the USB specification that prevents the product ID from being 0, so you should be fine. This listing of USB IDs contains several instances of USB devices with a product ID of 0. Keep in mind that your product still...
write a startup batch start.bat like so @echo off rem change to this batch's folder pushd "%~dp0" set Path="%~dp0\Java\bin";%%Path%% set JAVA_HOME=%~dp0\Java java -jar App.jar popd and execute it as \data\commands\start.bat Setting the current path of a process from java is done using ProcessBuilder and setting the directory-property. See a sample...
android,debugging,android-emulator,usb,wifi
If you are using Cyanogenmod, developer options provides a way to operate adb over network. 1) Enable 'ADB over network' in Developer option of Android Settings 2) When you enable 'ADB over network' and if you are connected to internet, you will find your wlan device ip address below the...
The USB specification defines six USB device states: Attached: the device is attached to the USB but is not powered by the USB. Powered: the device is attached to the USB and has been powered but has not yet received any reset request. Default: the device is attached to the...
Use usb-serial-for-android library to establish a permanent connection between Android application and USBhost device. Refer this link
usb,monitor,usb-drive,electronics
You can't solder a USB drive onto a monitor and have it work. You need something to read the data off of the USB drive and generate a video signal for the display. There are commercial products with USB/SD/MMC input and HDMI and/or component video output like this one: http://www.amazon.com/gp/product/B006FNCWSY/...
If you read MSDN's documentation, it says: Detecting Media Insertion or Removal Windows sends all top-level windows a set of default WM_DEVICECHANGE messages when new devices or media (such as a CD or DVD) are added and become available, and when existing devices or media are removed. You do not...
vb.net,camera,dialog,usb,image-capture
The solution ultimately was to use EMGU to access the camera; this also allows for connecting to multiple cameras at the same time.
python,python-2.7,automation,usb
Apologies for the extremely late update. There is no bug in the code. I determined it was a hardware issue. The USB keys I was using were cheap and poor quality. I've advised the production team to use different USBs and since have not encountered this failure.
Your translation is incorrect. It should be: function I2C_GetNumChannels(out numChannels: Longword): FT_Result; stdcall; external 'libmpsse.dll'; The function you are calling accepts the address of a 32 bit unsigned integer. Your translation passed a 32 bit unsigned integer by value. You could translate the import using pointers but it's easier for...
android,audio,usb,samsung-mobile,android-usb
Isochronous USB Audio actually work in the above mentioned manner, start the device, switch to AOA2, connect to the Isochronous Endpoint and start reading. Actual payload exist only when audio is played on the device, and thus, mute packets are not streamed through ( rather empty packets are sent when...
You want the "Universal Serial Bus Device Class Definition for Audio Devices" which is, ironically, the document you linked to, not the specification for basic devices.
controller,usb,driver,kinect,fresco
Not all the USB 3 controllers support Kinect v2. As described in this page from Xbox.com: Only USB3 controllers from Intel and Renesas are supported If you use a different brand of USB3 controller, the Kinect sensor may not function correctly. In this other page (from the official documentation on...
Due to backward compatibility, SuperSpeed/USB3 devices are reported back as HighSpeed/USB2, if you really need to know if the device is Super speed, you need to use: IOCTL_USB_GET_NODE_CONNECTION_INFORMATION_EX_V2 https://msdn.microsoft.com/en-us/library/windows/hardware/hh450861(v=vs.85).aspx I hope this helps...
c#,controller,usb,port-scanning
I've found the solution myself. The key is to use the registry via c++ dll. The Code below is a example i used from another site. I hope it will help the community too. source: http://www.news2news.com/vfp/?example=545&ver=vcs&PHPSESSID=70ba6845606a96b355ab7f772fb14386 Code: using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Linq; namespace DeviceEnumerator { public class...
ios,objective-c,iphone,usb,external-accessory
I am quite sure, to develop this I need to use ExternalAccessory.Framework. You are incorrect. The ExternalAccessory framework can only be used to communicate with MFi-compliant accessory devices and Bluetooth devices developed with Apple's support. The iPhone USB cable (and the computer) is not such a device; you cannot...
Build your .apk Download the .apk to the phone Run the .apk You can use an app like ES File Explorer, which allow you to access shared files on your network....
audio,usb,linux-device-driver,embedded-linux
For my first question, I got an answer from the linux-usb mailing list. It turns out that 'epautoconf.c' does not change 'bEndpointAdress'. So I changed the value in the definition of 'bEndpointAdress' and it is correctly conveyed to the host now. Windows installs the UAC1 driver correctly when I use...
18 is not an error here. Note it is a positive number, while all the error codes are converted to negative numbers in Linux kernel. Here, 18 is the return value of usb_control_msg(), which returns the length of the device descriptor if success. So it's the bLength field in your...
Rather than toggling the USB mode back and forth, consider if it might be effective and more convenient to transfer your development test data to and from the device using the adb push and adb pull commands. If you strongly prefer GUI interfaces, there is a file browser built atop...
You should call putUSBUSART() and CDCTxService() before overwriting output_message Also, CDCTxService() needs to be called frequently, so you have to call it during the delay loop. for int bbb = 0; bbb < 5; bbb++) { sprintf(output_message, "\r\nLooping...\r\n"); putsUSBUSART(output_message); for (delayIndex = 0; delayIndex < 1000; delayIndex++) { __delay_ms(1); if(USBUSARTIsTxTrfReady())...
linux,usb,linux-device-driver,lsusb
Sure there is, you can use the udev device manager for kernel. Moreover you can define rules to detect plugged/unplugged devices you are interested e.g. in your case usb devices. Here is a tutorial on how to write a udev rule ...
You need to do the following: Use CreateFile to get a handle on to the device. Use DeviceIoControl to send an IOCTL_STORAGE_QUERY_PROPERTY ioctl to the device to ask it to tell you its properties. The resulting STORAGE_DEVICE_DESCRIPTOR structure contains a BusType enumeration that tells you the bus to which it...
Looks like it is a device driver issue. I've found a similar discussion: It's up to the driver to manage shared/non-shared, not the IO manager. So you have two choices: Mark your device exclusive in the INF (see the Exclusive registry value under http://msdn.microsoft.com/en-us/library/windows/hardware/ff546320(v=3Dvs.85).aspx ) Add file create/close handlers in...
c#,.net,usb,dllimport,readfile
Because you have a wrong declaration of the ReadFile function. Remove out from the lpbuffer argument. Import of the ReadFile: [DllImport("kernel32.dll", BestFitMapping = true, CharSet = CharSet.Ansi, SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] public static extern bool ReadFile(IntPtr hFile, byte[] lpbuffer, UInt32 nNumberofBytesToRead, out UInt32 lpNumberofBytesRead, IntPtr lpOverlapped); Reading a file:...
Dear all probably it can be done via (root privileges): /sys/devices/battery.XX/power_supply/battery/hv_charger_set 0 - Disable USB Charging 1 - Enable USB Charging
ruby,osx,usb,osx-yosemite,libusb
Have you seen the document titled "Water Rower S4 S5 USB Protocol Iss 1.04.doc"? Here is the link. The github project seems to be similar to what you want to do. It should help out in understanding the usb data....
android,camera,usb,android-camera,webcam
I think you can try use Emulator(AVD or Genymotion)on the computer which is connecting to your webcam via USB. And then set your Emulator camera as your webcam, it can just like normal device, but you use the webcam EDIT Software https://play.google.com/store/apps/details?id=com.pas.webcam Library https://github.com/saki4510t/UVCCamera...
You can test if a device is connected by trying to open it: DeviceHandle handle = new DeviceHandle(); result = LibUsb.open(device, handle); if (result < 0) { System.out.println(String.format("Unable to open device: %s. " + "Continuing without device handle.", LibUsb.strError(result))); handle = null; } ...
usb,google-chrome-app,hid,google-chrome-os
This isn't a Chrome OS specific problem. This device is in the Linux kernel's hid_ignore_list because it doesn't implement the HID protocol correctly. Given that the device is blacklisted and so not claimed by the HID driver you should be able to open it using the chrome.usb API.
android,usb,android-open-accessory
The solution turned out to be to increase the timeout for USB transfers. I'm using USB4Java, and it has a default timeout of 5 seconds. When the timeout was increased, it turned out that it took 15 seconds for the first transfer to complete. So I set it to 30...
This worked for me in ubuntu. Settings->Developer Options-->turn on Android Debugging. Settings-->Storage-->menu on the upper right corner-->USB computer connection-->check box MTP/PTP http://forum.xda-developers.com/oneplus-one/help/phone-recognized-storage-connected-to-t2825728...
embedded,usb,stm32,uart,usbserial
A USB connection is not a peer-to-peer connection like a UART. It requires a host and a device in a master/slave relationship. The device cannot initiate data transfer; it must be continuously polled by the by the host. A CDC/ACM class device presents a virtual COM port on a PC...
javascript,usb,google-chrome-app,hid,google-chrome-os
It is possible the device is blacklisted by the Linux HID driver. If you can put your Chrome OS device in developer mode or connect the device to a Linux computer you can check the kernel log to see how the device is recognized. If all is well then there...
For .Net 4 you can use a BlockingCollection to provide a threadsafe queue that can be used by a producer and a consumer. The BlockingCollection.GetConsumingEnumerable() method provides an enumerator which automatically terminates when the queue has been marked as completed using CompleteAdding() and is empty. Here's some sample code. The...
I will take the 2 minutes to answer you instead of lecturing you. Receive is done through interrupts. Very, very simply, the hardware sees the voltage change on the D+/D- and flags an interrupt based on the intialization functions. The interrupt calls HAL_PCD_IRQHandler, which calls USBD_LL_DataInStage in the usbd_conf.c file....
ios,xcode,usb,external-accessory
Looking at the comments above, the comments by cmyr are indeed correct and as correctly pointed out by Larme, the only solution is to use MFi which can configure the USB device as a custom setting which will always prompt the iOS as a connection.
android,osx,debugging,android-studio,usb
It was an issue related to Mac's USB port. With another Mac everything works and rebooting issued Mac and changing USB port it worked again. Thanks ...
Well, I got it working myself. The SetupDi functions returns disk devices in a different order than their disk numbers (as given by the DiskNumber field in the DISK_EXTENT structure). The code I linked to makes a bad assumption: that the order that SetupDiEnumDevices returns things in is compatible with...
Apparently an I/O error occurred and the kernel decided to unmount the device and detect it again. Its likely the other way around: The device is removed (by the USB subsystem) and causes errors because it was still mounted. This looks like a hardware problem to me - AFAIK...