usbserial

Which thread should I process the RxTx SerialEvent.DATA_AVAILABLE event?

I'm using the RxTx library over usbserial on a Linux distro. The RxTx lib seems to behave quite differently (in a bad way) than how it works over serial. My application has several threads and one of my biggest problems is that out of nowhere, I seem to be getting one to two extra bytes on my stream. I can't figure out where they co...

Writing data over RxTx using usbserial?

I'm using the RxTx library over usbserial on a Linux distro. The RxTx lib seems to behave quite differently (in a bad way) than how it works over serial. One of my biggest problems is that the RxTx SerialPortEvent.OUTPUT_BUFFER_EMPTY does not work on linux over usbserial. How do I know when I should write to the stream? Any indicators...

How to sniff usb port under Windows?

From time to time I need to dump usb traffic under windows, mostly to support hardware under Linux, so my primary goal is to produce dump files for protocol analysis. For USB traffic, it seems that SniffUsb is the clear winner... It works under XP and has much nicer GUI than earlier versions. It produce huge dump files, but everything i...

How to programatically unplug & replug an arbitrary USB device?

I'm trying to fix a non-responsive USB device that's masquerading as a virtual com port. Manual replugging works, but there may be up to 12 of these units. Is there an API command to do the programatic equivalent of the unplug/replug cycle? ...

C# serial communication with u-blox gps

Hi all I have a GPS from u-blox.com with a USB-connection and driver. The driver installs a virual COM port that pops up when you plug the USB in. Using a hyperterminal I can then watch the flow of data from the GPS. Then I want the data in my program, not so easy... I have implemented some methods using the serialPort class to read f...

USB Virtual COM

Looking for skeleton/source for embedded (non PC) USB Virtual COM implementation? ...

Why SerialEvent.RI doesn't work?

Hi, I have two computers running this code: import java.io.; import java.util.; import gnu.io.*; public class Deb implements SerialPortEventListener, Runnable{ public static final int TIMEOUTSECONDS = 30; public static final int BAUD = 9600; static String telefono; static Boolean llamar = false; CommPortIdentifier cpiModem = null; ...

USB Clear Endpoint Feature

Hi, I am developing CDC driver for USB device and I stumble on some problem. The driver I am using on windows side uses Clear endpoint Feature as some kind of flish mechanism or to get data right. That causes me a lot of trobule because I cant get it working. I think data toggle don't agree and I am missing some important data transfer...

Is libusb the preferred method on Mac OS X to access USB device?

Is libusb the preferred method to talk to a device over USB (using AT commands) on OS X these days? Is there any high level equivalent in cocoa? ...

Control USB ports

can i send specific signals to USB ports using Ruby or C++, also the operating system is Windows, so this is like totally new 4 me (to program for windows), so i'm trying to do it as a DLL file, can this DLL contain Ruby code ?? by the way this is just a training project, so it dosn't matter that much, i'm just practicing on those stuff...

Identifying a device by retrieving its USB ID

I'd like my application to be able to detect a where a particular USB device has been mounted, and adapt accordingly. Ideally, I'd associate paths with a USB serial number, rather than with a given path. However, I cannot figure out a simple way to access these unique IDs from VB.Net code. Has anybody succeeded in doing this? ...

USB Serial cable with CDC support

Hi All, I bought a USB to Serial cable which claims to be CDC compliant. But the bInterfaceClass value in interface descriptor is 0xFF(which is vendor specific). I was expecting it to be 0x02 (Communications and CDC control). In the device manager, i found that the drivers being loaded are ser2pl.sys and serenum.sys. I had learnt usb...

USB Endpoint Stalled Error

Hi All, I am getting "endpoint stalled error" in my CDC device. The usb stack is detecting the cable. The state is set as running but the errorcode is set as 0x11 which indicates 'USB_ENDPOINT_STALLED'. I verified and found that the endpoints has been assigned properly. What would be scenarios when "endpoint stalled error" would be r...

SetupAPI.DLL to HID.DLL

With the SetupAPI.DLL I execute Function SetupDiGetClassDevs and get a pointer or handle Then Begin a loop Then I run Return = Function SetupDiEnumDeviceInterfaces with SP_DEVICE_INTERFACE_DATA.cbSize = 0 to get my size of what SP_DEVICE_INTERFACE_DATA needs to be Then I set size and execute again SP_DEVICE_INTERFACE_DATA.cbSize = r...

Can Android OS be programmed to interface with a external device via the mini-USB port?

Basic example, if I bought a chipset with a light socket and bulb soldered to the chipset; then put a USB cable with the mini-USB plug on the end to get plugged into the android phone. Can I write a Java application to turn on/off the light, get the status of the light(on/off) and maybe power a super-small led/bulb with power from the ph...

How to simulate a USB drive

Hi all, Is it possible to simulate a USB drive with software only? I mean, for example, to expose a local memory space to the OS so the device manager will recognize it as a USB device. I'm not familiar with hardware implementation, but I'm sure that it is possible somehow to emulate the USB protocol. I began with this book - USB Desig...

How to use FT232R (usb to serial chip) on ubuntu 10.04?

I want to control my robot using wireless module(zigbee). I have a device FT232R for converting USB to Serial i/f. It is working on windows 7 but I am not getting how to use this device on Linux(ubuntu). Please help me. Note: Actually my robot is working in slave mode( running on micro-controller). I will control it by sending command o...

About serial port software for CP2102 from silicon labs

Dear All, I bought transparent RF modules DRF1212D10 and UART-USB convertor board from Dorji applied technologies. However the USB convertor board uses CP2102 chips and the RF module needs the RTS pin of CP2102 to be controlled in order to work in normal mode. I have tried several serial port monitor software but there is no RTS control...

How to watch/change windows buffer size for rs232(com)?

I'm using usb for communication, our device send 100k/s data(arm7, very small memory size), and PC need receive and process them all. my previous design is make device as a mess storage device, and extend a command for communication protocol, the PC software run a thread looping get data. issue is: sometime it loses data. so we use an...