usb

Off the shelf programmable USB

可紊 提交于 2019-12-25 12:42:28
问题 Is there a way to create a programmable USB just using off the shelf USB dongles? This question: Programmable USB dongles has answers relating getting "programmable" USBs. But I just want to use an off the shelf USB. It's like this: http://www.pololu.com/product/1336 but just using off the shelf USB device. Preferably, once the USB is plugged in, an "app" can be ran off it which can be cross platform. This app can be a GUI app, but I'm fine with it being a CLI app. Would this question be

excel bva code to send command to usb printer

微笑、不失礼 提交于 2019-12-25 09:58:54
问题 I am trying to use my Epson TM U220 as I did before installing a new PC with WIN 7 64bit and Excel2010, no parallel port. In the past I used this simple code to open cash drawer: Sub drawer_opener() Open "LPT1" For Output As #1 Print #1, Chr(27) + Chr(112) + Chr(0) + Chr(25) + Chr(250) Close #1 End Sub Now I am using an adapter parallel-USB but with no response to opening cash drawer commnad after changing "LPT1" to "USB001" in code. After some web research I found following code that is

Arduino: Change defines without edit library [solved, bug in compiler, workaround available]

牧云@^-^@ 提交于 2019-12-25 07:25:42
问题 edit: See my answer below I'm fairly new to the Arduino platform and creating now an USB HID project with the attiny85 (Trinket) library of AdaFruit. See also my previous answered question about the options of this library: Change/Override Trinket (attiny85) USB identification name, device name I'm stumped on a rare C-related limitation (see also latest comment at answer in link above to previous question), the separated late binding of binaries by separated compiling. If you want to change

Ruby libusb: Stall error

核能气质少年 提交于 2019-12-25 07:16:36
问题 So I've been playing with the controllers for the PS2 game, Buzz. I've successfully used libusb to poll and read the buttons, and all is merry and bright. The trouble is, I'd love to use the in-built lights to signal the folks who're using them (specifically to show them who has buzzed first). I know there's lights, I know that the PS2 was able to turn them on and off at will, and I know that someone has managed it with python. So I set out to implement their code with libusb in Ruby. I've

Is it possible to detect usb devices using php?

吃可爱长大的小学妹 提交于 2019-12-25 06:36:44
问题 Is it possible to detect usb mouse,keyboard or flash drives when they are connected using php? 回答1: Which side - server side or client side? Server side: possible, although probably not a good idea. You would call OS specific functions or shell commands to access USB (e.g. shell_exec("lsusb -v"); ), and process the results. Client side: No. PHP just works on server side. Commandline PHP: same as Server side. You are using the wrong tool for the job. Go back and use one more suited to the task

Android ADB Cannot Find Samsung Captivate

半城伤御伤魂 提交于 2019-12-25 06:19:14
问题 I have tried downloading the Samsung specific drivers. It installs the modem, not sure if the adb bridge got installed. I don't see it in the device manager. I have installed kies 2.0, I have tried connecting USB via MASS storage, via Kies, and under no circumstances so far will ADB detect the device when running adb devices command. I got lots of suggestions to use Kies, I tried this. Don't see any real relationship between Kies and ADB which is a debug bridge. I simply have no clue what ADB

How to access USB port using pySerial (Windows)?

£可爱£侵袭症+ 提交于 2019-12-25 03:18:04
问题 I am trying to open USB port in Python (using pySerial). I ran port listing tool, but it only shows COM ports. I'd like to open USB port instead (trying to communicate with tablet, but that's not relevant, I suppose). I know it is possible (and quite easy) on Linux, but I am on Windows 8, so there's nothing like "/dev/tty...". I'd like to show you some of my code, but I can't, because I have none yet (I need to know how to open USB port to be able to start coding, I am just testing yet).

How are USB peripherals' bIntervals enforced?

只谈情不闲聊 提交于 2019-12-25 02:44:33
问题 I have a FullSpeed USB Device that sends a Report Descriptor, whose relevant Endpoint Descriptor declares a bInterval of 8, meaning 8ms. The following report extract is obtained from a USB Descriptor Dumper when the device's driver is HidUsb: Interface Descriptor: // +several attributes ------------------------------ 0x04 bDescriptorType 0x03 bInterfaceClass (Human Interface Device Class) 0x00 bInterfaceSubClass 0x00 bInterfaceProtocol 0x00 iInterface HID Descriptor: // +bLength, bCountryCode

Redirect Keyboard input from second keypad

元气小坏坏 提交于 2019-12-25 02:34:37
问题 I'm in the initial stages of developing a companion application to an existing POS program. Basically I'm looking for pin pad like functionality. We have a Targus USB numerical keypad and want this available to the customer to enter a PIN number. (This is NOT for a payment system, just a customer account verification). The main POS program will be running, but I need my application to run in the background and wait for a PIN to be entered which it will then authenticate. Possible Solution #1:

USB connection issues

╄→尐↘猪︶ㄣ 提交于 2019-12-25 02:18:29
问题 I am trying to run my android app in my samsung device GT-S6012. I use Windows 7 Home Basic. The driver is installed properly. As soon as I connect the mobile using USB cable, for some seconds "adb devices" shows my phone. But then I get a message USB connection error, windows is unable to detect the device and USB is malfunctioning. I tried uninstalling/re-installing driver, but no luck. I tried Google on this topic but nothing solved my issue.. Can Anyone let me know how can I fix it 回答1: