usb

How to Fix TypeError: an integer is required in python 3.4, pyserial 2.7 virtual serial port

爷,独闯天下 提交于 2019-12-06 05:43:25
EDITED Hello programmers Community, I have some problems dealing with pyserial in Python 3.4 first I do not have serial ports so I have used "Virtual Serial Port Driver 7.2 by Eltima Software" to create virtual serial ports in pairs, which means that I can try to send and receive data from these ports, in my case I just create COM1 connected to COM2, then I installed Hercules SETUP utility by HW group to monitor these serial ports, so IN THEORY IF I SEND(write) DATA IN PYTHON I CAN SEE IT IN HERCULES AS THIS LINK SHOWS https://www.youtube.com/watch?v=DItyttmpRtY I was trying to create my own

ASP.NET/Silverlight Control USB Device

佐手、 提交于 2019-12-06 04:36:52
I want to alert a user of a new message using some kind of USB device (e.g. a flashing light). Is it possible to control a USB device from ASP.NET or Silverlight? You could possibly do this using a custom ActiveX component and som javascript in your webpage. Alternatively you could use a Silverlight 4 application running in out-of-browser mode, but that is probably not what you want. SL4 can access locally installed Com components it is is running in out-of-browser mode, so in that case this should be realtively easy to do. ASP.NET will need the assistance of a client side technology so the

Android: Communicating with a USB device which acts as host

血红的双手。 提交于 2019-12-06 04:07:58
问题 We have made a device which can act as an USB host or slave and processes the data it receives. I want to use the Android phones to send the data to it via USB. My research leads me to conclude that we cannot use Android devices in USB Host mode without modifying the hardware or OS. Doing so is not an option as this is going to be a commercially deployed device. However, I couldn't find any information on using the Android phone as a slave. This is already technically possible because it can

Getting the port name of a connected USB device

隐身守侯 提交于 2019-12-06 03:37:32
问题 When a USB device is connected to the computer, how can I get the PORT name which it is connected using C# code. I found many ways to find when a USB is connected, disconnected, drive letter, path, device id etc. but didn't find any clear example on how to know to which port it got connected. I saw one possible explanation but that involves lot of pinvokes which I totally don't understand. I like to believe there are more direct and easy ways to get such info in c# alone, without using any

Android USB Functions?

会有一股神秘感。 提交于 2019-12-06 03:34:14
问题 Are there any USB functions for Android devices (all user devices, not rooted)? I'm curious because I might want to make an app that puts things through USB 回答1: Short answers are no and people are gagging for it, but depending on what you intend to do, the Android bluetooth implementation is much simpler. (and you can treat Bluetooth as a basic serial connection if so inclined) 回答2: I know that this is rather an old question but I thought I'd add an answer representing current state given

Preinstalling WinXP USB drivers to be able to connect device without interaction

瘦欲@ 提交于 2019-12-06 03:17:46
问题 We are a small hardware manufacturer. Most of our products use USB for programming the controllers used. The current situation is that programming the hardware (part of the assembly processor) is rather labour intensive. Each time a new USB device gets plugged in Windows prompts for a driver install. This means that for each new product we have to go through a process of "no, don't go to internet" --> "yes, search automatically" --> "done". We even have to do this twice for each product. I

Autorunning program from CD or USB on Win7/8

社会主义新天地 提交于 2019-12-06 02:49:11
问题 I work for an IT shop that sees some computers come in with rather nasty viruses. We are working an autorun script that will run a malware killing tool (RKill) when we insert a USB or CD (preferably USB.) We want to run the tool as soon as the USB or CD is inserted without having UAC popup, ideally anyway. Our second choice is to have it open the Autorun options, even on PCs that have been locked down a la FBI virus. We have autorun.inf, a .bat that calls a .exe, and the .exe for the tool we

“ The crash happened outside the Java Virtual Machine in native code.”how to solve this error (Java)?

时光总嘲笑我的痴心妄想 提交于 2019-12-06 02:29:26
Using the library in this link http://www.blog.kslemb.com/doku.php/en/projects/globx/java_hid I have been modfied this code to write on a HID terminal if (HIDHandle.equals(WinBase.INVALID_HANDLE_VALUE)) { return HID_DEVICE_NOT_OPENED; } /* Write Feature report */ boolean Status=Kernel32.INSTANCE.WriteFile(HIDHandle, buffer, (int)buffersize, null, null); if (Status == false) { debug("Write File: " + getSystemError(Kernel32.INSTANCE.GetLastError())); return HID_DEVICE_TRANSFER_FAILED; } else { return HID_DEVICE_SUCCESS; } This code would successfully writes on the HID device but then it would

what happens when you plug in a new USB device?

流过昼夜 提交于 2019-12-06 02:25:04
I have an embedded device with a USB connection. When the user plugs the device into their PC (Windows, OSX), how does the operating system discover what drivers to install? How do I get my drivers to be selected? Can they reside on some central server (run by the OS vendor)? This is for Windows : When a USB device is plugged into the system, the USB bus driver is notified. The bus driver sends a standard USB request (USB_DEVICE_DESCRIPTOR) to the device. With this the device reports its name and type. (bDeviceClass/bDeviceSubClass/bDeviceProtocol). With this information, Windows creates an

How to get OS version and Device Name of an Android device connected via USB with C#.net (VS2010/4.0+)?

一笑奈何 提交于 2019-12-06 02:24:59
I want to build a windows application in C#.net which should identify the installed Adroid OS version (e.g. 4.0) and user friendly Device Name (e.g. Samsung Galaxy S3, Samsung Galaxy Tab 8.9 etc.) when you connect an Android device to your computer via USB. I tried with the System.Management class to identify the connected USB devices on my machine, however, the problems I had were: I just have 3 USB ports and connected the Samsung Galaxy Tab 8.9 on one of the USB ports and tried to get the list of USB devices using USBhub WMI class and I got around 6-7 results in the list including the