libftdi Archives
|
From: | Dorigny Robert <rdorigny@xxxxxxx> |
---|---|
To: | libftdi@xxxxxxxxxxxxxxxxxxxxxxx |
Date: | Wed, 26 Oct 2011 00:35:04 +0200 (CEST) |
Hello,
I take your example serial_read.c and i just want to show data by a printf function. But, i have a problem with libftdi. That is to say, i receive data but when i look all bytes as 00! Obviousely, it is wrong, the packet size is 38, but not 000000000000000000000000000... I use an USB modem 802.15.4 (DIGI xstick).
Have you an idea for my problem?
Please, i search from 2 weeks about this bug..., may you help me?
Best regards. M. DORIGNY Robert Montigny le bretonneux France
> root@D2Plug:/travail# gcc serial_read2.c -lftdi
/* serial_read.c Read data via serial I/O This program is distributed under the GPL, version 2 #include <stdio.h> int main(int argc, char **argv) while ((i = getopt(argc, argv, "i:v:p:b:")) != -1) // Init // Select first interface // Open device // Set baudrate ftdi_usb_close(&ftdic);
libftdi - see http://www.intra2net.com/en/developer/libftdi for details. |
Current Thread |
---|
|