7,961 questions
1
vote
1
answer
154
views
Detect connection usb device(storage) to IOS in MAUI
I have usb flash drive which connect to Iphone XR via adapter.
I want to detect when device was connected to Iphone.
I read this links and try to write something similar
xamarin link
swift link
...
4
votes
1
answer
652
views
Where do the `values` for `MSC_SCAN` in `evdev` come from?
If you run something like
sudo evtest /dev/input/event7
where event7 corresponds to (say) a keyboard and you press a key, you get a report like:
Event: time 1725511187.487035, type 4 (EV_MSC), code 4 ...
1
vote
1
answer
368
views
How to send Unicode in a USB HID report?
There's a question with almost an exact name name. The answer states that for (general) Unicode characters his solution was OS-dependent.
However, the HID Usage Tables 1.5 doc has a dedicated Usage ...
0
votes
0
answers
494
views
STM32: read data in device sent by host over USB HID
In an STM32CubeIDE USB HID project for an STM32F103C8 board I can send data from the device to the host using the USBD_HID_SendReport() function, like so:
USBD_HID_SendReport(&hUsbDeviceFS, (...
0
votes
0
answers
80
views
cannot access USB webcam within Raspian OS in a VM
I have been trying to get some code that I got from github to run but I keep getting the error cannot open camera by Index.I am using opencv.I am running raspbian os on a vm. my webcam shows up on ...
0
votes
1
answer
207
views
USB CDC freezes (Host to Device transfers)
My setup
I try to use USB FS Host on GD32F405 (=STM32) microcontroller. I use CMSIS and operate directly on registers.
I have Android device, that is working as VCP (Virtual COM port) by default and ...
1
vote
0
answers
214
views
USB not working in u-boot on Raspberry Pi 4B with custom Yocto image
On my Raspberry Pi 4B board, I'm trying to load file from USB during my boot.scr script, but when I call USB start or USB reset command, I get following error:
starting USB...
Bus xhci_pci: ...
0
votes
0
answers
93
views
How to Retrieve USB String Descriptors from a CDC device in UWP
This is a different angle on the same question posed here. I've been trying to amalgamate advice from here and here, as well as various other places whose links I don't have handy.
I have an embedded ...
0
votes
0
answers
71
views
Pairing Linux hiddev file with specific device in .NET C#
On my Linux system I have 2 hiddev files (there could be more in the future):
> ls /dev/usb
hiddev0 hiddev1 lp2
And I have a bunch of USB devices:
> lsusb
Bus 001 Device 001: ID 1d6b:0002 ...
0
votes
0
answers
86
views
USB Communication between android App and PC Using C#
I am trying to interface an android app with a windows PC. The android tablet will act as the slave and the PC has the host. The PC will run a c# windows service, does any know what type of C# is ...
0
votes
0
answers
27
views
How to distinguish between USB, Smartphone, Tablet and PDF reader when they are connected to PC
I want to detect and be able to differentiate the type of devices that are connected to Windows.
Is there any difference in the logs generated by Windows Event Monitor when an external devices is ...
1
vote
0
answers
107
views
pywinusb mouse raw input capturing
I am trying to get the mouse raw data with pywinusb.
import pywinusb.hid as hid
def sample_handler(data):
print("Received raw data")
print(f"Data Type: {type(data)}, Data ...
2
votes
0
answers
41
views
How can I identify the way data is being iterated through in a Wireshark capture?
I'm trying to reverse engineer the screen on the Epomaker RT100 keyboard, specifically the image uploading component. I used Wireshark to track the packets sent over USB. I found that RGB 565 is being ...
1
vote
0
answers
441
views
Android not prompting for Serial USB comms permission or not registering the answer
I am creating a simple android app that connects to an arduino that has a weight sensor. On android 11 this works but I am testing on android 14 and it is either:
Not prompting for the USB permission ...
0
votes
1
answer
72
views
Nothing prints when i type input into the serial monitor
I am new to Arduino. I am trying to learn how to use receive data over USB, but it is not working.
This is my code:
struct arrayData{
char* array;
int size;
};
void setup() {
// put your ...
0
votes
0
answers
21
views
Prevent Data Theft: Can I ensure that design files can only be copied from a PC after proper authorization has been granted?
Our design team works on company-provided Windows PCs to create new designs. We have reason to believe that one of our designers is leaking our original designs to competitors. To prevent this, we ...
1
vote
0
answers
170
views
CreateFile on a USB device doesn't wake up suspended device
Our C++ application periodically checks for the presence of a USB device as a licensing mechanism. However, on Win11, USB devices now default to "Allow the computer to turn off this device to ...
0
votes
0
answers
132
views
udev rule for mounting usb drives read-only on a certain usb port
for some reasons I need USB drives to get mounted read-only from time to time. As I do have more than one USB port on my computer, I thought it would be a great idea to define one of them as a "...
1
vote
0
answers
505
views
USB passthrough in Android emulator on MacOS M1 failing to acquire exclusive access
I am trying to get my Android emulator to see the Wi-Fi dongle or my Ethernet dongle connected over USB to the Macbook Pro M1. I tried the following methods:
Command:
./emulator -avd MyTestEmulator -...
1
vote
0
answers
42
views
How forward sound from OUTPUT LINE to USB?
I'm working on a project to forward audio from AUX to USB.
Requirements:
1 device (ie: phone) with OUTPUT LINE (AUX Jack 3.5 mm Female)
1 custom cable (Stereo AUX Jack 3.5 mm Male to 3 wires (ground, ...
0
votes
0
answers
73
views
Put Processor USB into Test Mode in Linux
How do you put a processor's USB peripheral into test mode on an embedded Linux system?
I have tried writing the setup sequence defined in the reference manual to registers directly using devmem.
...
1
vote
1
answer
554
views
How can I do bidirectional communication over USB with checksum for a Raspberry Pi 5 and Raspberry Pi Pico (serial, UART, other?)
I’m working on a project that involves a Raspberry Pi 5 running a Python-based GUI and an RP2040 (running MicroPython) connected to a set of I2C sensors and 32 servos controlled by two PCA9685 PWM ...
0
votes
0
answers
70
views
How much latency does the operating system add transferring video over USB to the host application?
I am transferring raw uncompressed video from an image sensor to a C++ OpenCV application running on Linux. The signal chain is this:
MIPI output Image sensor -> MIPI to USB 3.0 chip -> USB 3.0 ...
0
votes
1
answer
41
views
Connect to HidDevice with UsbDevice class in UWP app
I'm using the stm32f746g-discovery board with the Keil USB HID example. I can connect to the USB HID device with a UWP app using the HidDevice class.
Is it also possible to use the UsbDevice class to ...
1
vote
1
answer
1k
views
LIBUSB_ERROR_PIPE when trying to control volume using libusb
I am trying to write a small C program to read and adjust the volume of a USB DAC (Apple USB-C to 3.5mm Dongle). I have been using this document as a reference, but have encountered an issue that I ...