ftdi

read 22 byte from FTDI serial port in c# is too slow

99封情书 提交于 2019-12-12 04:06:57
问题 I have a FTDI serial port and I have to write something in serial port to start reading 22 byte I have a very strange problem. I read this data too slow I don't know what is my problem this is my code:` public partial class Form1 : Form { public Form1() { InitializeComponent(); } int count; private void button1_Click(object sender, EventArgs e) { // serialPort1.Open(); // serialPort1.Write(Convert.ToString(0x02)); //here we converted the same method to convert hex to string to be send using

Reliably detecting presence of external hardware

一笑奈何 提交于 2019-12-11 21:24:19
问题 I have to support an increasing range of hardware that's considered, at least by today's standards, legacy. What nearly all of these devices have in common is an FTDI FT232 UART chip, which acts as a Serial-to-USB converter. Windows sees it as a standard COM port, though it is virtualized. Consequently, programmatically identifying these devices is troublesome. Since they all use the same chip (or similar), querying by typical Hardware IDs is no help since it's always the same. Are there any

Reinstate Virtual Com Port after using libftdi on FT232RL

ε祈祈猫儿з 提交于 2019-12-11 13:58:55
问题 I'm trying to use libftdi to toggle some pins on an ft232rl, then use the regular Virtual Com Port (/dev/ttyUSB0). I've got a microcontroller (LPC1114) connected to an FT232RL for programming. To get it into ISP mode, it has to be reset with one line held low, and to execute code after programming, it has to be reset. I'm trying to automate this with the ft232. I've got libftdi working, and toggling pins correctly, but once the program finishes, the VCP has disappeared from /dev. Even using

Patched FTDIUSBSerialDriver kext has to be unloaded/reloaded after reboot (OSX 10.10). Any ideas?

懵懂的女人 提交于 2019-12-11 09:32:34
问题 I'm exchanging data between a bare-bone Arduino and openFrameworks via a serial UART FTDI connection. I'm using a patched FTDI driver to achieve higher BAUD rates on OSX. FTDIChip calls it "Aliasing VCP Baud Rates". See: http://spin.atomicobject.com/2013/06/23/baud-rates-ftdi-driver-mac/ https://github.com/arminbw/wiretouch/blob/v0.21/perl/modify-ftdi-driver-settings.pl This worked until recently. Since upgrading to OSX 10.10 I have to manually unload and reload the kext to make it work: sudo

“NULL expression encountered” on FTDI's libMPSSE

落爺英雄遲暮 提交于 2019-12-10 21:11:45
问题 My question is specific to the library libMPSSE from FTDI to work with USB to serial port (SPI, I2C, etc) adapters on Linux. When I execute any program linked with the library, the method Init_libMPSSE() is called (without explicit invocation) and throws the following message. ../../Infra/src/ftdi_infra.c:243:Init_libMPSSE(): NULL expression encountered Has anybody experienced this issue and found a workaround?. Thanks. 回答1: You get this error when libMPSSE can't open the libftd2xx.so shared

Why does FT_Read() fail in the child process but work in the parent process?

旧时模样 提交于 2019-12-10 10:08:14
问题 I have the following program, which uses the ftd2xx library to write a byte to an USB device and then reads the reply. #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stdarg.h> #include "../ftd2xx.h" void fatal (const char *format,...) { va_list argp; fprintf(stderr, "FATAL: "); va_start(argp, format); vfprintf(stderr, format, argp); va_end(argp); fprintf(stderr, "\n"); exit(3); } int main(int argc, char* argv[]) { int pid = fork(); if (pid > 0) { //replace with: if (pid

What's going on after DTR/RTS is sent to an FTDI-based Arduino board?

末鹿安然 提交于 2019-12-10 09:11:11
问题 I'm working over a sketch to enable uploading from an Android device to an Arduino board, and it works for Duemilanove (FTDI-based) and Arduino Uno (ATmega-based) when testing for PC/Arduino using rxtx (pure Java). But it does not work when using the USB-Android library as the setDTR/setRTS methods are not yet implemented. FTDI Android drivers allow the sending of setDTR/setRTS signals, but it fails to send/read data after it. So the problem is in the Android USB API and I can't figure out

Cannot communicate with FTDI device via pylibftdi with specified device_id

我与影子孤独终老i 提交于 2019-12-08 06:45:23
问题 I have an USB devices that use FTDI chip that I can identify in Linux: user@user:~/src/libftdi/build$ lsusb Bus 009 Device 008: ID 0403:faf0 Future Technology Devices International, Ltd or: user@user:~$ lsusb -v -d 0403:faf0 Bus 009 Device 008: ID 0403:faf0 Future Technology Devices International, Ltd Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x0403 Future Technology

Why can't I access my FTDI device using D2XX on a Raspberry Pi?

岁酱吖の 提交于 2019-12-08 03:59:52
问题 I'm trying to make use of FTDI's D2XX drivers to access a USB-Serial device on a Raspberry Pi 3. Here's what I've done so far: I downloaded the 1.3.6 ARMv6 hard-float version of the driver (which states that it is suitable for a Raspberry Pi), and then followed the Readme instructions to install it into the /usr/local/lib folder I ran the sudo rmmod ftdi_sio and sudo rmmod usbserial commands as advised to unload the default kernel driver In my program, the first thing I do is invoke the FT

Cannot communicate with FTDI device via pylibftdi with specified device_id

☆樱花仙子☆ 提交于 2019-12-07 18:04:25
I have an USB devices that use FTDI chip that I can identify in Linux: user@user:~/src/libftdi/build$ lsusb Bus 009 Device 008: ID 0403:faf0 Future Technology Devices International, Ltd or: user@user:~$ lsusb -v -d 0403:faf0 Bus 009 Device 008: ID 0403:faf0 Future Technology Devices International, Ltd Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x0403 Future Technology Devices International, Ltd idProduct 0xfaf0 bcdDevice 6.00 iManufacturer 1 Thorlabs iProduct 2 APT DC