usb

USB Scanner with Flex / Java applet?

痴心易碎 提交于 2019-12-18 03:43:56
问题 Is there a way to get an image from a usb scanner (on Windows primarily, cross-platform solution would be best) and post the image together to a form in browser with Flex or Java applet? thx! 回答1: The standardized TWAIN scanning interface is definitely the place for you to look at, rather than low-level USB, except if you are targeting only one specific device and know how to talk to it. Java based There is another Stack Overflow question pointing out a link to a open Applet talking to a

Where can I get to download Java comm api?

夙愿已清 提交于 2019-12-18 03:43:12
问题 I want to write some programs using Java comm api. I am not able to find site/page from which I can download this API. Can anyone please tell me where can I get this API? Basically I want to send SMS to mobile from PC. Mobile will connect to PC through USB cable. I would also like to know what are the possible ways to send SMS to mobile? (I am looking for option which wont incur me money) Thanks in advance ! EDIT 1 I am not allowed to use third party APIs. It seems that Java comm API is dead

Where can I get to download Java comm api?

白昼怎懂夜的黑 提交于 2019-12-18 03:43:04
问题 I want to write some programs using Java comm api. I am not able to find site/page from which I can download this API. Can anyone please tell me where can I get this API? Basically I want to send SMS to mobile from PC. Mobile will connect to PC through USB cable. I would also like to know what are the possible ways to send SMS to mobile? (I am looking for option which wont incur me money) Thanks in advance ! EDIT 1 I am not allowed to use third party APIs. It seems that Java comm API is dead

Use RegisterDeviceNotification() for ALL USB devices

末鹿安然 提交于 2019-12-18 03:39:10
问题 I currently have some code that sets up notifications of connected USB HID devices within a Windows Service (written in C++). The code is as follows: GUID hidGuid; HidD_GetHidGuid(&hidGuid); DEV_BROADCAST_DEVICEINTERFACE NotificationFilter; ZeroMemory(&NotificationFilter, sizeof(NotificationFilter)); NotificationFilter.dbcc_size = sizeof(DEV_BROADCAST_DEVICEINTERFACE); NotificationFilter.dbcc_devicetype = DBT_DEVTYP_DEVICEINTERFACE; NotificationFilter.dbcc_classguid = hidGuid; HDEVNOTIFY

Is there a Qt solution for detecting USB events (insertion and removal)?

∥☆過路亽.° 提交于 2019-12-17 22:43:45
问题 As some other people already asked here some years ago, I want to be able to detect in a Qt application when a pendrive/datatraveler is plugged and when it is unplugged in my system (both in Linux Ubuntu and Embedded Linux). I searched in SO and I noticed that most answers not only were very outdated (from 2010 for example), but all solutions somehow involved "non-Qt solutions" to these problem: either platform specific or usage of external libraries such as udev and DBus. What I want to know

.NET API for HID (USB)? [closed]

爱⌒轻易说出口 提交于 2019-12-17 22:32:44
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Is there an API in .NET (C#) for using USB HID (Human Interface) devices? 回答1: HidLibrary wraps up all the P/Invoke calls for you. But no it doesn't look there is any nice framework APIs for dealing with USB devices. 回答2: Here's mine little lib for dealing with HIDs. Might be useful especially when you are trying

Which drivers are used by usb mouse in linux kernel?

三世轮回 提交于 2019-12-17 22:24:53
问题 I read from LDD3 chapter 14 about hotplug drivers.I need to write a usb mouse driver which load when I plug the hardware. Now, doing some experiment I come to know that there is a driver named "hid-generic" which is called when plug-unplug. [ 6654.232046] usb 3-1: new low-speed USB device number 3 using uhci_hcd [ 6654.462061] usb 3-1: New USB device found, idVendor=093a, idProduct=2510 [ 6654.462067] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 6654.462071] usb 3-1:

How to display weight from weighing scale into a textbox via serial port RS-232 or usb converter?

别说谁变了你拦得住时间么 提交于 2019-12-17 20:27:45
问题 I've been assigned to display weight from weighing scale (CAS CI-201A) into a textbox using C#. The weight will be sent via serial port RS-232 or USB converter. The scale is with me but I don't know where to start. How can I achieve my goal? 回答1: Have you tried anything yet? If you want to use the serial port it makes sense to first give the user a way to select which port to use. This can be done easily, by filling a combobox with all available ports. private void Form1_Load(object sender,

Bash script to detect when my USB is plugged in and to then sync it with a Directory

我只是一个虾纸丫 提交于 2019-12-17 17:45:22
问题 Is there a Bash script and/or daemon that I can write that will detect a specific USB drive and then sync that drive with a directory? 回答1: For future reference, here's how to run a bash script upon detection of a USB drive. Connect your device and run lsusb to retrieve the device's info. You should see something similar to this: $ lsusb Bus 002 Device 039: ID 0bc2:2100 Seagate RSS LLC In this case, the vendor ID of the device is 0bc2 and the product ID is 2100. Now you can create your UDEV

Obtain device path from pyudev with python

℡╲_俬逩灬. 提交于 2019-12-17 17:12:04
问题 Using pydev with python-2.7 , I wish obtain the device path of connected devices. Now I use this code: from pyudev.glib import GUDevMonitorObserver as MonitorObserver def device_event(observer, action, device): print 'event {0} on device {1}'.format(action, device) but device return a string like this: (u'/sys/devices/pci0000:00/pci0000:00:01.0/0000.000/usb1/1-2') How can I obtain a path like /dev/ttyUSB1 ? 回答1: Device(u'/sys/devices/pci0000:00/pci0000:00:01.0/0000.000/usb1/1-2') is a USB