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...
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...
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...
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?
...
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...
Looking for skeleton/source for embedded (non PC) USB Virtual COM implementation?
...
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;
...
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 to talk to a device over USB (using AT commands) on OS X these days?
Is there any high level equivalent in cocoa?
...
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...
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?
...
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...
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...
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...
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...
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...
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...
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...
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...