Git Product home page Git Product logo

Comments (4)

lorf avatar lorf commented on August 22, 2024

Currently no, sorry. Stream handling have to be implemented in csr-spi-ftdi for this to work and it also may require some USB device handling tweaks. BlueSuite supports multiple programmers since 2.4 afaik. For other tools - I don't know.

from csr-spi-ftdi.

T-2 avatar T-2 commented on August 22, 2024

Thanks for getting back to me on this.

I went ahead and built a second one just to see what happens. Tested with pscli, blueflashcmd, and PSTools all running under wine. Both interfaces work by themselves if only one is plugged into the computer at a time as you would suspect. Things get a tad weird if you have both plugged in at the same time. With all 3 CSR (version 2.6.2) tools I can talk to one of the interfaces but it errors out if I try to talk to the second one. PSTools shows both interfaces by their serial number so you can pick the one you want at startup but only one actually works.

With pscli you can differentiate the two interfaces by pscli.exe -TRANS "SPITRANS=USB SPIPORT=1" or SPIPORT=2. However only one will work.

Similarly for BlueFlashCmd use BlueFlashCmd.exe -usb 1 or -usb 2. Only one works there also.

It appears that all cases the first interface you plug in is the the one that will work.

It looks like it my be possible to switch between the interfaces one at a time if I can find a way from a script to disconnect the individual USB port at a one at a time basis.

Anyway if you decide you want to pursue getting this possible feature to work I will help in anyway I can. Just let me know.

from csr-spi-ftdi.

T-2 avatar T-2 commented on August 22, 2024

I was reviewing your answer to to my query a few weeks ago. I don't know what you mean by "Stream handling". If you mean being able to talk to more than one of these interfaces at the same time that is not required by my application. I just need 2 interfaces plugged into the same computer at the same time however I only need to use one at a time. So I just need a way in a script to switch to the interface I need at the time, do stuff with that one then disable the first one and enable the second one and then do other stuff with the second one. Could that be done more easily in your driver then "stream handling?

from csr-spi-ftdi.

lorf avatar lorf commented on August 22, 2024

Hi! By "stream handling" I meant a functionality that BlueSuite expects from the driver. Thought It needed some work to implement.

In your situation as a workaround You may have luck with disabling/enabling USB devices as needed in your scripts, since csr-spi-ftdi selects the first FTDI device it sees. I didn't tried that, however.

from csr-spi-ftdi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.