usb

iOS <-> PC USB Communication [closed]

百般思念 提交于 2021-02-19 02:27:48
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . Improve this question Is it possible to establish a communication between an OSX (or Windows) Application, and an iOS App, via USB ? I just want my 2 App to be able to communicate with each other, read and write packets... I don't want to use WiFi Is there an "easy way" to do that

launchd.plist runs every 10 seconds instead of just once

℡╲_俬逩灬. 提交于 2021-02-18 11:30:10
问题 I have been setting up a launchd.plist XML that is run every time a specific USB device is mounted. I followed the instructions on the xpc_events(3) man page and it is running the application whenever the device is mounted. The problem I'm having is that the application is run again and again every 10 seconds as long as the device is still mounted. How can I set it up so it only runs once when the device is inserted in the USB port? <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist

USB interface in android

早过忘川 提交于 2021-02-17 20:47:40
问题 I rooted my device and working in host mode. I can able to detect the usb device connected to my tab but Am having two questions. 1) i try to display my device name using device.getDeviceName(); but its showing something like/dev/usb/002/002 I need to get the manufacturer name of the usb device name. I thing its available in accessory mode but i need to get the manufacturer name in host mode. 2)I need to transfer some data from my app to the usb port in android. i can able to detect the

USB interface in android

假如想象 提交于 2021-02-17 20:47:34
问题 I rooted my device and working in host mode. I can able to detect the usb device connected to my tab but Am having two questions. 1) i try to display my device name using device.getDeviceName(); but its showing something like/dev/usb/002/002 I need to get the manufacturer name of the usb device name. I thing its available in accessory mode but i need to get the manufacturer name in host mode. 2)I need to transfer some data from my app to the usb port in android. i can able to detect the

How to install libusb?

强颜欢笑 提交于 2021-02-11 12:41:01
问题 I am having hard time installing libusb. I went across some YouTube videos, and they were talking about "INSTALLING" libusb. I went across another tutorial and they are saying we need to build it "manually". However, I downloaded libusb from http://sourceforge.net/projects/libusb-win32/files/. In my download, there is no software to install (according to video, it is libusb_win32.exe). My OS is Windows 7 Ultimate 32 bit. The PC is a Dell Inspiron 4030 (I need to install this in my desktop PC

Bash - How to run code whenever USB device is connected

China☆狼群 提交于 2021-02-10 15:43:40
问题 I am writing a bash script to automatically detect when my USB keyboard is plugged into my laptop (running Ubuntu 14), so I can change the keyboard layout automatically. Here is my code so far (I got it from another post on Stack Overflow so I'm not 100% sure how it works) #!/bin/bash setxkbmap es for dev in /sys/bus/usb/devices/ *-*:* do if [ -f $dev/bInterfaceClass ] then if [[ "$(cat $dev/bInterfaceClass)" == "03" && "$(cat $dev/bInterfaceProtocol)" == "01" ]] then setxkbmap gb fi fi done

how can I know the relationship between usb device node and volume on mac

白昼怎懂夜的黑 提交于 2021-02-10 08:58:20
问题 for example, i have a flash disk(KingStone Mass Storage), and only one partition , so when I plug it on mac. I'll see a Volume(it might be /Volumes/KingStone) was mounted automatically. we could see volume(/Volumes/Kingstone) is belong to the KingSton disk. but now I pluged another disk, such as AData disk. and another volume was mounted. and how could I know which volume is belong to kingstone disk.(we could know which disk is kongston by VenderID). now in code, we could know mounted volumes

Associate physical usb port to device

偶尔善良 提交于 2021-02-10 07:33:28
问题 I'm curently working on a testbench for some pcbs. They can be controlled though USB. I wrote some python code to send (using pySerial) orders to one card via the serial device "/dev/ttyACM0" The problem is that I need to test 5 cards at a time which means I need to differentiate which card is controlled with “/dev/ttyACM*” and * depends on the pluging order (which I don’t control). I used “usb-devices” command to have the name of each physical usb port but I need to send orders to these via

HID report not working while changed length

二次信任 提交于 2021-02-08 05:45:56
问题 I'm building a custom keyboard with stm32f103. My first trial with standard 8 byte works pretty well: 0x05, 0x01, // Usage Page (Generic Desktop) 0x09, 0x06, // Usage (Keyboard) 0xA1, 0x01, // Collection (Application) //Modifiers 0x05, 0x07, // Usage Page (Key Codes) 0x19, 0xe0, // Usage Minimum (224) 0x29, 0xe7, // Usage Maximum (231) 0x15, 0x00, // Logical Minimum (0) 0x25, 0x01, // Logical Maximum (1) 0x75, 0x01, // Report Size (1) 0x95, 0x08, // Report Count (8) 0x81, 0x02, // Input (Data

int 13h doesn't appear to read sectors containing my kernel

眉间皱痕 提交于 2021-02-08 05:07:19
问题 I am trying to load up a little data using my bootloader on a USB, but apparently int 13h won't work! Bootloader: [bits 16] [ORG 0x7c00] jmp 0x0000:start start: cli xor ax, ax mov ss, ax mov sp, 0x7c00 mov ax, cs mov ds, ax mov es, ax mov fs, ax mov gs, ax sti mov [driveno], dl reset: ;reset drive xor ax, ax mov dl, [driveno] int 0x13 or ah, ah jnz reset mov ah, 0x02 mov al, 0x01 mov bx, 0x0000 mov es, bx mov bx, 0x7e00 mov dl, [driveno] xor dh, dh mov cx, 0x0002 int 0x13 or ah, ah jnz reset