usb

How to find out what instruments is behind a FTDI adapter on Windows?

泪湿孤枕 提交于 2021-01-28 23:55:31
问题 I am currently developing a Python tool for Windows that is able to lookup all devices connected to a windows pc. It already supports ethernet devices and by now I'm trying to add support for USB and serial devices. For those devices I want to read out their vendor id, product id, serial number and of course the address/port which is needed to connect to the device. Simple USB devices can be easily detected with PyUSB or PyWin32. Unfortunately, many devices say that its vendor is FTDI, which

How to write into the USB (External storage)

佐手、 提交于 2021-01-28 11:53:47
问题 I am trying to copy a file from my computer to USB in java. The problem is, the code creates a file on the Usb but the content of the file is not copied from source to destination(computer to usb). How can i do that? I want the filename R.java to be copied into the usb as system.txt. import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.nio.channels.FileChannel; public class R {

Sending DATA to FPGA

谁说胖子不能爱 提交于 2021-01-28 10:31:47
问题 I am working on a project which requires data to be sent FROM PC TO FPGA,which processes the data and sends it BACK TO PC. The board I am using is Atlys™ Spartan-6 FPGA Development Board. The data is to be sent as 1 byte , because 1 byte is processed at each rising edge of the clock. Could you please suggest me ways of sending data to FPGA ? Thanks 回答1: Pick some method of communication that you have access to IP (intellectual property) cores for. For example, if you can readily access a UDP

Sending DATA to FPGA

守給你的承諾、 提交于 2021-01-28 10:28:32
问题 I am working on a project which requires data to be sent FROM PC TO FPGA,which processes the data and sends it BACK TO PC. The board I am using is Atlys™ Spartan-6 FPGA Development Board. The data is to be sent as 1 byte , because 1 byte is processed at each rising edge of the clock. Could you please suggest me ways of sending data to FPGA ? Thanks 回答1: Pick some method of communication that you have access to IP (intellectual property) cores for. For example, if you can readily access a UDP

How to get a Linux panic output to a USB serial console when system has also a display adapter

房东的猫 提交于 2021-01-28 08:29:39
问题 I am having troubles with a Linux kernel panic which I need to investigate further. When it happens, the kernel panic output always goes to the display adapter only and is shown on the monitor. I need to have the kernel panic output to a serial USB console, not only on the display adapter. In the situation where the panic happens there is no monitor available. I have a serial USB console working, can log in from there and I also see some kernel messages there sometimes. However when I provoke

Setting up a computer to act as an HID device connected to another computer via ps/2,usb or another wired connection

馋奶兔 提交于 2021-01-28 04:21:16
问题 I’m interested in setting up a machine (host A) and connect it to another one (host B) via usb or ps/2 such that host B will recognise host A as a keyboard. On host A an artificial neuronal network is running which generates dynamically input sequences. It’s important to me that host A can only communicate to host B in a “human” way, e.g. generating keystrokes and passing them to host B. As far as I know this is not possible with an usb connection since a host to host connection is not

python :Read from a USB HID device

徘徊边缘 提交于 2021-01-27 18:15:09
问题 I have a USB RFID device that appears on /dev/hidraw for my serial devices they appear on /dev/ttyUSB* i used pyserial and it works like charm but for this one i couldn't read from it using cat /dev/hidraw0 need root privileges plus i need to read one line and not keep on listening I used evdev library but my device doesn't appear at all : import evdev devices = [evdev.InputDevice(fn) for fn in evdev.list_devices()] for device in devices: print(device.fn, device.name, device.phys) So is there

Detecting insertion/removal of USB input devices on Windows 10 running in VirtualBox

坚强是说给别人听的谎言 提交于 2021-01-27 13:37:23
问题 I once again already have some working Python code to detect the insertion/removal of specific USB device types in Windows 10 (from here). import wmi device_connected_wql = "SELECT * FROM __InstanceCreationEvent WITHIN 2 WHERE TargetInstance ISA \'Win32_Keyboard\'" device_disconnected_wql = "SELECT * FROM __InstanceDeletionEvent WITHIN 2 WHERE TargetInstance ISA \'Win32_Keyboard\'" c = wmi.WMI() connected_watcher = c.watch_for(raw_wql=device_connected_wql) disconnected_watcher = c.watch_for

Raspberry Pyusb gets Resource busy

不打扰是莪最后的温柔 提交于 2020-12-31 04:47:31
问题 I'm trying to connect my Raspberry PI to Pic4550 via USB. (Pic function is ok with windows c# program!). So I have installed rpi 2, pyusb, and tried to communicate with the help of [https://github.com/walac/pyusb/blob/master/docs/tutorial.rst][1] I get connected to the USB device, lsusb shows: Bus 001 Device 006: ID 04d8:0080 Microchip Technology, Inc. The python prog finds the device! Gets the right config but cannot write message: usb.core.USBError: [Errno 16] Resource busy I tried to run

Detecting USB Device Insertion on Windows 10

若如初见. 提交于 2020-12-29 07:32:42
问题 I can't get the following code for Detecting USB Device Insertion to work on my Windows 10 (64 bit) computer with Python 3.7. import win32serviceutil import win32service import win32event import servicemanager import win32gui import win32gui_struct struct = win32gui_struct.struct pywintypes = win32gui_struct.pywintypes import win32con GUID_DEVINTERFACE_USB_DEVICE = "{A5DCBF10-6530-11D2-901F-00C04FB951ED}" DBT_DEVICEARRIVAL = 0x8000 DBT_DEVICEREMOVECOMPLETE = 0x8004 import ctypes # # Cut-down