usb

serial port for MindWave in Windows8.1

依然范特西╮ 提交于 2019-12-12 05:47:46
问题 How can I find what is the serial port assigned to the MindWave USB in Windows8.1? The code I am using has this for Mac OSX: import platform import sys, time from mindwave import bluetooth_headset import httplib, urllib, urllib2 import json #serial_port = '/dev/tty.MindWaveMobile-DevA-10' Here's what my device manager shows: I'd like to know how to change line 10 of http://pastebin.com/jR21F4Xf in order to make it work in Windows. Currently MindWave USB Dongle is connected to COM4. Here's the

How to use usb speaker and built in audio speakers simultaneously on MAC OS X 10.6 using cocoa or anything else?

▼魔方 西西 提交于 2019-12-12 05:24:52
问题 I asked this previously but Jeff Atwood moved my question to superuser.com. I need a answer programmatically... I want to use built in speakers and usb speakers simultaneously on MAC OS X 10.6. I want to play different files on these (I do not want to play same file on both speakers). Is it possible using cocoa (QTMovie or something else?) or anything else? I have checked the portaudio thing but didn't get how this works! :( I have also tried to send some data to the USB speakers but the

BroadcastReceiver fires after the activity is already created

一曲冷凌霜 提交于 2019-12-12 04:59:44
问题 I want to use a BroadcastReceiver to get permission to communicate with a USB device. I am trying to implement it the same way it is done on android website http://developer.android.com/guide/topics/usb/host.html It all works, kind of. But the broadcastReceiver is fireing only after the main activity is created. Which means I am able to communicate with the device only after close the app and open it again (when I don't unregister the broadcastReceiver, when I do I can't communicate at all).

Bi-directional data transfer through USB between an Android device and a PC (Mac or Windows)

筅森魡賤 提交于 2019-12-12 04:48:16
问题 I am new to Android programming. I need to transfer data bi-directionally over USB between an Android tablet and a PC (Mac or Windows). The Android tablet will have Android 4.0 or newer. Mac will have OS X Lion or newer and Windows will have Windows XP or newer. After reading about Android's support for USB connectivity here: http://developer.android.com/guide/topics/connectivity/usb/index.html I'm thinking if I get the Android tablet run in USB accessory mode and make the PC the host, bi

How to read a file from USB Device using Mac OS X?

夙愿已清 提交于 2019-12-12 04:46:00
问题 I am very new to Mac OS X development. I am implementing a USB based application. In my application When my USB device is connected to the system I need to read a file from USB and upload it to a web server. I go through Google and some documents but I didn't get any information on this. Can you guys please suggest a best document or sample code to do this? 回答1: Probably the best places where to start are USB Device Interface Guide Networking & Internet Starting Point There you can also find

Install usb device without manager prompt

笑着哭i 提交于 2019-12-12 04:37:16
问题 We have a usb device and the drivers (.inf, libusb.dll, libusb.sys) and can install it using Windows' Device Installation Wizard (by pointing to the .inf file). However, we need to install the drivers without using the wizard (passively, so the user doesn't need to do anything). Does anyone know how this can be achieved? 回答1: You added the "installer" tag, so I'm assuming you're talking about some kind of installation package, like Windows Installer, InstallShield InstallScript, etc. If that

android USB connection charging signals

丶灬走出姿态 提交于 2019-12-12 04:35:38
问题 How can I check the USB socket is plugged or not (Charging with AC / USB)? (android version 2.1 / 2.2) I am writing a wireless charging application that I want to get different types of charging signals ( wireless , AC charging / USB ). I used broadcastReceiver to get the charging signal and found that using wireless charging and AC charging return the same signal (AC charging). To distinguish wireless charging and AC charging, I want to detect the USB socket is plugged or not. I try to use

How to find if parent of USB device is a hub

て烟熏妆下的殇ゞ 提交于 2019-12-12 04:26:13
问题 I need to find out if parent of USB device is a hub or host. Current plan is to use CM_Get_Parent() to get the DEVINST and use SetupDiGetDeviceInfoListDetail() to get the SP_DEVINFO_LIST_DETAIL_DATA structure, but from there I am looking for information to parse against to will tell me if the parent is a hub. Any pointers/hints/advice would be greatly appreciated. Thanks in advance, EB 回答1: Parent is always a hub. Might be a root hub or a peripheral hub, I guess that's what you want to know.

How can PyUSB be understood? [closed]

主宰稳场 提交于 2019-12-12 03:48:59
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 8 years ago . I am unable to proceed on how PyUSB works. I am stuck for a week now. How do I proceed? 回答1: At first glance, documentation for PyUSB seems to be entirely absent. But not so. From a Python prompt you can: >>>

How to autorun a .exe file from a usb without using autorun.inf?

浪尽此生 提交于 2019-12-12 03:47:49
问题 I am designing a security utility for USB sticks that when a memory stick has been plugged in,an email is sent to the user with the computer's name and IP address. I have got the email part working, but do not know how to execute the .exe file I have made when the USB is plugged in. I know autorun.inf hasn't worked for a while now, and I would like it to run automatically regardless of the PC it is plugged into. Any suggestions? Thanks. 回答1: I am pretty sure there is no way to store an