ftdi

How can I get Linux device with FTDI D2XX driver API

扶醉桌前 提交于 2019-11-30 14:25:19
问题 I am using FTDI D2XX driver API to communicate with a FTDI device. It gives me some information about the device like locid, serialnumber, description but it is not enough. How can I get the device number ( /dev/ttyUSBXX ) or bus or port with this API. thanks 回答1: As the D2XX Programmer's Guide tells in the Introduction: For Linux, Mac OS X (10.4 and later) and Windows CE (4.2 and later) the D2XX driver and VCP driver are mutually exclusive options as only one driver type may be installed at

How can I get Linux device with FTDI D2XX driver API

人盡茶涼 提交于 2019-11-30 10:37:19
I am using FTDI D2XX driver API to communicate with a FTDI device. It gives me some information about the device like locid, serialnumber, description but it is not enough. How can I get the device number ( /dev/ttyUSBXX ) or bus or port with this API. thanks As the D2XX Programmer's Guide tells in the Introduction: For Linux, Mac OS X (10.4 and later) and Windows CE (4.2 and later) the D2XX driver and VCP driver are mutually exclusive options as only one driver type may be installed at a given time for a given device ID. The problem is that your Linux may automatically loads the VCP driver (

FTDI Communication with USB device - Objective C

谁都会走 提交于 2019-11-29 00:03:01
I'm trying to communicate with the Enttec USB DMX Pro. Mainly receiving DMX. They released a Visual C++ version here , but I'm a little stumped on what to do to convert to Obj-c. Enttec writes, "Talk to the PRO using FTDI library for Mac, and refer to D2XX programming guide to open and talk to the device." Any example apps for Objective-C out there? Is there an easy way to communicate with the Enttec DMX USB Pro? Brad Larson I've done a significant amount of work with the FTDI chips on the Mac, so I can provide a little insight here. I've used the single-channel and dual-channel variants of

Using FTDI D2XX drivers with Python from Raspberry Pi on raspbian soft-float

假如想象 提交于 2019-11-28 19:01:29
We have a USB device controlled by FTDI's D2XX drivers. It's currently controlled from a Windows machine via a Python interface and as a fun project I tried moving the control to a Raspberry Pi (about 1/10th the cost of a PC, not including the OS cost). There were many hurdles to clear, but after a few weeks I finally found all the answers and got it working. The answers were spread across several forums so as a thank you to the Stack Overflow community I thought I'd consolidate them here. First, the project required: An operating system: I picked up the latest "Wheezy" Raspbian (hard-float

FTDI Communication with USB device - Objective C

我与影子孤独终老i 提交于 2019-11-27 15:24:59
问题 I'm trying to communicate with the Enttec USB DMX Pro. Mainly receiving DMX. They released a Visual C++ version here, but I'm a little stumped on what to do to convert to Obj-c. Enttec writes, "Talk to the PRO using FTDI library for Mac, and refer to D2XX programming guide to open and talk to the device." Any example apps for Objective-C out there? Is there an easy way to communicate with the Enttec DMX USB Pro? 回答1: I've done a significant amount of work with the FTDI chips on the Mac, so I

Using FTDI D2XX drivers with Python from Raspberry Pi on raspbian soft-float

痴心易碎 提交于 2019-11-27 12:07:38
问题 We have a USB device controlled by FTDI's D2XX drivers. It's currently controlled from a Windows machine via a Python interface and as a fun project I tried moving the control to a Raspberry Pi (about 1/10th the cost of a PC, not including the OS cost). There were many hurdles to clear, but after a few weeks I finally found all the answers and got it working. The answers were spread across several forums so as a thank you to the Stack Overflow community I thought I'd consolidate them here.

Communicating with serial USB device over Android

和自甴很熟 提交于 2019-11-27 06:59:22
I have one custom made device for measuring current. This device can be connected to PC and communication is done over USB. It is based on FTDI chip. I have application written in Java and that application is using rxtxSerial.dll library and gnu.io.rxtx_2.1.7.4.jar. Now I want to port this application on my android device and I'm litte bit confused what to do that? All I have is android tablet (os version 4.1.1), OTG cable and this measuring device. Should my device be rooted? Is there any kind of library that I can simply add to my Java Android application and read data over USB? Where to

RS485: Inappropriate ioctl for device

送分小仙女□ 提交于 2019-11-27 04:53:34
问题 I am using the following code to access the RS485 slave but I get the error: Error reading ioctl port (25): Inappropriate ioctl for device My code is as follows: #include <linux/serial.h> #include <sys/ioctl.h> int fd = open ("/dev/ttyUSB0", O_RDWR); if (fd < 0) { printf("Error Opening\n"); exit(0); } struct serial_rs485 rs485conf; /* Enable RS485 mode: */ rs485conf.flags |= SER_RS485_ENABLED; /* Set logical level for RTS pin equal to 1 when sending: */ rs485conf.flags |= SER_RS485_RTS_ON

Transferring data USB

陌路散爱 提交于 2019-11-27 01:04:38
I am trying to send and receive data over USB, my device, the Acer Iconia A500 has everything needed to connect to the device and everything, that is fine and works properly, but when I try sending and receiving data it doesn't behave as expected. This is my code for( ; ; ) { //this is the main loop for transferring String get = "$getPos"; byte[] getBytes = get.getBytes(); conn.bulkTransfer( epOUT, getBytes, getBytes.length, 500 ); try { Thread.sleep( 500 ); byte[] buffer = new byte[4096]; conn.bulkTransfer( epIN, buffer, 4096, 500 ); StringBuilder byStr = new StringBuilder(); for( int i = 0;

Communicating with serial USB device over Android

隐身守侯 提交于 2019-11-26 10:35:41
问题 I have one custom made device for measuring current. This device can be connected to PC and communication is done over USB. It is based on FTDI chip. I have application written in Java and that application is using rxtxSerial.dll library and gnu.io.rxtx_2.1.7.4.jar. Now I want to port this application on my android device and I\'m litte bit confused what to do that? All I have is android tablet (os version 4.1.1), OTG cable and this measuring device. Should my device be rooted? Is there any