rkistner / arcore

MIDI-USB Support for Arduino
Other
192 stars 33 forks source link

difficult to use 2 arcore devices on a system as they aren't easily identifiable #7

Open Reggi3 opened 10 years ago

Reggi3 commented 10 years ago

Hi, i have 2 units running arcore, if I try and use them in something like midiox, it's not always apparent which one is which, is there a method to separately identify each unit? add a serial number or something?

rkistner commented 10 years ago

How does midiox identify the devices?

One possible solution would be to define a separate boards for each unit in the boards.txt file, with different product names on USB. This would however mean you'd have to have change the board whenever you upload to a different unit.

Reggi3 commented 10 years ago

midiox sees the 2 boards as 'Arduino Leonardo' in the input picker. Serato is even worse, you can learn the same control on both boxes and they'll work independently for that session, close serato, open it again, those controls are now messed up with the assignments being mixed up or missing. It gets totally confused.

I have a seperate issue as well where serato refuses to shut down, unless I unplug the arcore unit first. No idea why.

rkistner commented 10 years ago

Btw have you used midiox or Serato with any other MIDI devices? Do they have a way of uniquely identifying themselves? I'm just wondering whether someone else already found a clever way of solving this.

Reggi3 commented 10 years ago

I use a numark mixtrack pro II with serato but it doesn't show up as a seperate midi controller as the controller is built to be used with serato out of the box.

I tried changing STRING_IPRODUCT in USBCore.cpp but that just resulted in both devices showing up with the new string :(

rkistner commented 10 years ago

Changing STRING_IPRODUCT should work - did you only install it with the changed name on one of the devices?

On Thu, Feb 20, 2014 at 3:43 PM, Reggie notifications@github.com wrote:

I use a numark mixtrack pro II with serato but it doesn't show up as a seperate midi controller as the controller is built to be used with serato out of the box.

I tried changing STRING_IPRODUCT in USBCore.cpp but that just resulted in both devices showing up with the new string :(

— Reply to this email directly or view it on GitHubhttps://github.com/rkistner/arcore/issues/7#issuecomment-35622205 .

Reggi3 commented 10 years ago

yes.

Reggi3 commented 10 years ago

I wonder if messing with the pid might help?

rkistner commented 10 years ago

That could help, let me know if it does On 20 Feb 2014 18:53, "Reggie" notifications@github.com wrote:

I wonder if messing with the pid might help?

— Reply to this email directly or view it on GitHubhttps://github.com/rkistner/arcore/issues/7#issuecomment-35642738 .

Reggi3 commented 10 years ago

it seems changing the PID is the way forwards, what I did was a bit clunky, I copied the whole arcore directory, renamed it arcore2 and then went through the boards.txt and changed the pid and named it's prefixes as leonardo2, then I edited the original arduino.inf file and added leonardo2 VID/PID 0241/8040 info beneath anywhere that had references to leonardo.

Flashed my firmware and I now get a 'USB-IO' board instead of the arduino leonardo showing up in device manager, which is exactly what I need, midi-ox, serato and traktor no longer get confused.

rkistner commented 10 years ago

Glad to know it's working.

I'm looking into possibilities to make those kind of settings more configurable in a sketch, without having to edit the arcore code.