xrun -l device ID problems Topic is solved

Technical discussions around xCORE processors (e.g. xcore-200 & xcore.ai).
Post Reply
dsdanielko
Active Member
Posts: 33
Joined: Sat Mar 12, 2016 3:12 pm

xrun -l device ID problems

Post by dsdanielko »

Hi

I have several startKITs connected to the computer via USB. Is there a way to reliably tell which device/USB port will have the ID of 0? I ask this because I have set the startKIT with the ID of 0 to be the master startKIT and so it has a unique binary compared to the other startKITs. The master startKIT is connected to an external circuit and so I would very much like this startKIT to stay the master regardless of if the startKITs are removed, reconnected, the computer restarted and more. So is there a way to set device ID to a specific USB port or something similar?

I have also noticed running xrun -l for the first time after a startKIT is plugged in reconnects all the startKITs.

Please help

Thanks


View Solution
henk
Respected Member
Posts: 347
Joined: Wed Jan 27, 2016 5:21 pm

Post by henk »

Hi,

I think you can use

Code: Select all

xrun --adapter-id 12365123
that way you can address each one uniquely?

Cheers,
Henk
dsdanielko
Active Member
Posts: 33
Joined: Sat Mar 12, 2016 3:12 pm

Post by dsdanielko »

If I use that do I need to find the adapter numbers for every startKIT? I am currently running all the startKITs using a for loop in a batch file.
henk
Respected Member
Posts: 347
Joined: Wed Jan 27, 2016 5:21 pm

Post by henk »

Yes, you do. But they never change.

If you are using Linux or macosx:

Code: Select all

for a in asdfhh ertyui ccvbnm
do
   ...
done
And I assume windows will have an equivalent structure.

Cheers
Henk
Post Reply