usb

Port Alsa to Android

纵饮孤独 提交于 2020-01-06 04:20:27
问题 I'm trying to add the usb audio function for my android phone. Is it possible that as long as I can add all the alsa driver to my android system and then i can get what i want? Can anyone give me some hints on how android is using alsa and how I can add alsa kernel modules to existing system? Thank you. 回答1: @James, the android platform already includes alsa for its audio sub system as a standard and you do not need to add it yourself. If you have a rooted phone or a branded phone you can

How does windows map the virtual com port to a device

…衆ロ難τιáo~ 提交于 2020-01-05 05:26:49
问题 I have run a test to verify, that windows (7 and 8) is capable of remembering the configured com port number for each usb port when i insert an usb->serial converter. My test was simple: I have 2 similar USB to Serial converters from the same manufacturer and 1 converter from a different manufacturer. I insert converter no 1 into USB port no 1 and configure it as COM9 in device manager. I pull it out and insert the converter no 1 into USB port no 2 and configure it as COM10 in device manager.

How to find the parent USB device of a serial port under macOS?

心不动则不痛 提交于 2020-01-05 02:13:44
问题 Here is how I was trying to enumerate all serial ports found on a Mac, and traverse up the device node tree to find the parent USB device for USB-serial adapters: #import <Foundation/Foundation.h> #import <IOKit/IOKitLib.h> #import <IOKit/serial/IOSerialKeys.h> #import <IOKit/usb/IOUSBLib.h> int main(int argc, const char * argv[]) { @autoreleasepool { CFMutableDictionaryRef keywordDict = IOServiceMatching(kIOSerialBSDServiceValue); io_object_t port = 0; io_iterator_t iterator = 0; kern_return

How to find the parent USB device of a serial port under macOS?

假装没事ソ 提交于 2020-01-05 02:12:09
问题 Here is how I was trying to enumerate all serial ports found on a Mac, and traverse up the device node tree to find the parent USB device for USB-serial adapters: #import <Foundation/Foundation.h> #import <IOKit/IOKitLib.h> #import <IOKit/serial/IOSerialKeys.h> #import <IOKit/usb/IOUSBLib.h> int main(int argc, const char * argv[]) { @autoreleasepool { CFMutableDictionaryRef keywordDict = IOServiceMatching(kIOSerialBSDServiceValue); io_object_t port = 0; io_iterator_t iterator = 0; kern_return

Communicate to PC over USB

前提是你 提交于 2020-01-04 19:44:36
问题 How can I exchange data between my WP8 app and my desktop Windows app running on the PC that has the phone connected with a USB cable? On WP7, there was TCP/IP networking over USB connection. On WP8, it seems it no longer works. On the device side, NetworkInterfaceList class lists the Ethernet adapter, however NetworkInformation.GetHostNames method says there is no IP address assigned to that NIC. Is there a way to assign an IP address to that NIC, and use it for phone-to-pc communication

Communicate to PC over USB

半腔热情 提交于 2020-01-04 19:42:19
问题 How can I exchange data between my WP8 app and my desktop Windows app running on the PC that has the phone connected with a USB cable? On WP7, there was TCP/IP networking over USB connection. On WP8, it seems it no longer works. On the device side, NetworkInterfaceList class lists the Ethernet adapter, however NetworkInformation.GetHostNames method says there is no IP address assigned to that NIC. Is there a way to assign an IP address to that NIC, and use it for phone-to-pc communication

Can I write a program that swiches USB on/off

感情迁移 提交于 2020-01-04 15:53:36
问题 I have a USB modem and it often drops the signal. When this happens I pull unplug and re-plug it from the USB port and it gets the signal right back; Can I write a program that does that without having to physically disconnect the modem from the port? 回答1: As hinted in a comment, programmatically resetting USB ports is an OS-specific feature . In Windows the easiest approach is probably by leveraging WMI aka Windows Management Instrumentation. You can get several snippets that "mess" with USB

Can I write a program that swiches USB on/off

十年热恋 提交于 2020-01-04 15:52:12
问题 I have a USB modem and it often drops the signal. When this happens I pull unplug and re-plug it from the USB port and it gets the signal right back; Can I write a program that does that without having to physically disconnect the modem from the port? 回答1: As hinted in a comment, programmatically resetting USB ports is an OS-specific feature . In Windows the easiest approach is probably by leveraging WMI aka Windows Management Instrumentation. You can get several snippets that "mess" with USB

How to intercept and translate USB events

老子叫甜甜 提交于 2020-01-04 13:09:21
问题 I would like to use the Philips LFH-2330 to view images (with Windows Image Viewer or another viewer such as IrfanView, etc.) The LFH-2330 is a foot controller with four pedals (see here for example) used to control audio playback software for transcription. It comes with its own driver and software. The simplest setup for me would be a piece of software that would catch pedal events from the controller and trigger keyboard events instead (right pedal => right arrow, left pedal => left arrow)

How to intercept and translate USB events

拟墨画扇 提交于 2020-01-04 13:07:40
问题 I would like to use the Philips LFH-2330 to view images (with Windows Image Viewer or another viewer such as IrfanView, etc.) The LFH-2330 is a foot controller with four pedals (see here for example) used to control audio playback software for transcription. It comes with its own driver and software. The simplest setup for me would be a piece of software that would catch pedal events from the controller and trigger keyboard events instead (right pedal => right arrow, left pedal => left arrow)