Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to make multiple simultaneous connections to separate interfaces #29

Open
GoogleCodeExporter opened this issue Mar 25, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Plug in an FTDI device with multiple interfaces (e.g. FT2232H w/IFACE_A, 
IFACE_B)
2. Connect to the first one (successfully), using e.g. SPI:
mpsseA = OpenIndex(0x0403, 0x6014, SPI0, ONE_MHZ, MSB, IFACE_A, NULL, NULL, 0);
3. Connect to the second one (won't work), using e.g. SPI:
mpsseB = OpenIndex(0x0403, 0x6014, SPI0, ONE_MHZ, MSB, IFACE_B, NULL, NULL, 0);
4. Notice 2nd connection did not work:
(mpsseB == NULL)

What is the expected output? What do you see instead?
Ideally both connections would be valid, up-and-running and I could talk to 2 
separate SPI circuits independently (and/or simultaneously). Instead the second 
connection failed

What version of the product are you using? On what operating system?
Latest SVN as of today (r201), same as libftdi. Using OS X 10.8.4.

Please provide any additional information below.
Asking for IFACE_B first, and then IFACE_A, confirms that the interface 
parameter works, but once I have made the first USB connection (e.g. to 
IFACE_B), I cannot make a 2nd connection to the other interface (IFACE_A in 
this case)

Original issue reported on code.google.com by [email protected] on 9 Jul 2013 at 9:20

@GoogleCodeExporter
Copy link
Author

Interesting...OpenIndex should never return a NULL pointer unless it failed to 
allocate memory for the mpsse structure via malloc. I'll see if I can reproduce.

Original comment by [email protected] on 16 Sep 2013 at 6:15

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Just a note:  I use separate interfaces all the time and it seems to work okay, 
even on the latest stuff.  Actually, I open up 3 usually.  After my board is 
configured, using the 3 interfaces, I usually only use one from then on, but 
suspect I could use others.

Original comment by [email protected] on 29 Nov 2013 at 4:14

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Second note: I don't use OpenIndex though.

Original comment by [email protected] on 29 Nov 2013 at 4:15

  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant