Comments (5)
I have an FT232H as well and your code runs fine for me, with or without the
Write (Ubuntu 10.04, 32-bit). Since you say Read doesn't work without a Write,
please define "not working", and describe how do you know it's not working.
I've attached a modified version of your code that completely comments out the
Write and adds a printf to display the first byte of data read for each
iteration of your loop. Running this on my machine results in the following
output (I didn't have anything connected to the FT232H):
Read OK [ 0xFF ]
Read OK [ 0xFF ]
Read OK [ 0xFF ]
Read OK [ 0xFF ]
Read OK [ 0xFF ]
Read OK [ 0xFF ]
Read OK [ 0xFF ]
Read OK [ 0xFF ]
Read OK [ 0xFF ]
Read OK [ 0xFF ]
Read OK [ 0xFF ]
Read OK [ 0xFF ]
Read OK [ 0xFF ]
...
I further confirmed that the clock line was active during these reads by
attaching a 'scope to it.
As for the detaching of the device, I expect this is normal behavior for your
machine. The Linux 3.0 kernel (IIRC, 11.04 uses one of the 3.x kernels), added
support for the FT232H in the ftdi_sio driver. In order for libftdi (which
libmpsse uses) to take control of the device, it must detach the ftdi_sio
driver (the device can't be a serial port and an SPI interface at the same
time). So as soon as you call MPSSE, you should see it detach; it should have
nothing to do with Read/Write/Transfer.
Original comment by [email protected]
on 19 Jul 2012 at 3:23
Attachments:
from libmpsse.
Any word on this?
Original comment by [email protected]
on 25 Jul 2012 at 12:13
from libmpsse.
thanks for the reply and apologies for the delay. I just started to work on the
issue again.
In short, The issue is not reproducible. Before reporting it, I tried to reboot
the machine and restarting the slave, also verified the wiring multiple times.
The effect that I was seeing, is that the code would hang and output nothing,
the last that I'd see would be the unregister message in the kernellog. To get
it back to run again I would have to replug the usb cable.
I'm seeing another issue but I'll open a different ticket for that. thanks
again.
Original comment by [email protected]
on 25 Jul 2012 at 3:51
from libmpsse.
Was your b.c code hanging with no output, or was my modified version hanging
with no output? You wouldn't get any output from your code, as it wasn't
printing anything to screen. Your code reads quite a lot of data (734MB), so if
you weren't printing anything to screen it would appear to 'hang' for some time
even if it was functioning properly.
Original comment by [email protected]
on 25 Jul 2012 at 8:44
from libmpsse.
Original comment by [email protected]
on 20 Aug 2012 at 11:53
- Changed state: Invalid
from libmpsse.
Related Issues (20)
- fast.o target is missing LIBFTDI1 define HOT 2
- SDA line held low even after a Stop issued. HOT 2
- I2C Read is not working for me HOT 2
- Unable to build out-of-source HOT 4
- PATCH: multiple deive support
- WritePins always fails HOT 2
- Patch for /trunk/src/mpsse.i HOT 1
- make install command does not work at MinGW
- Failed to initialize MPSSE: device not found
- Erronous start condition if using GPIO on low bits in i2c mode
- pyswig versions of functions leaked into C library (libmpsse.a/.so)
- FastTransfer always fails
- Problems with the Setup
- How to address i2c slaves HOT 1
- I2C Read gives one bad bit, but only rarely
- SetDirection in MPSSE mode
- FIXED Apple OS X library compilation and installation with libftdi1 from MacPorts
- where is pylibmpsse ? HOT 1
- I2C eeprom python script available
- Patch for /trunk/src/mpsse.c
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libmpsse.