Arduino Forum

Using Arduino => Audio => Topic started by: normen on Mar 13, 2016, 02:30 pm

Title: Change MIDIUSB Device Name?
Post by: normen on Mar 13, 2016, 02:30 pm
Hey,

I am using an Arduino Micro in combination with the MIDIUSB library and everything is working fine so far, I am reading a few encoders connected via a 8574 and output the values over USB as MIDI control data.

Now my question is how can I change the name of the MIDI device that appears in the computer? The USB MIDI device appears as "Arduino Micro" when connected to a MacOSX computer and I'd like to change that name. Since I'll be creating multiple devices it would help greatly to be able to discern the devices.

What I tried already is creating my own entry in the "boards.txt" file by copying over the existing entry for the micro and changing the "micro.build.usb_product" name but that didn't seem to be picked up. The MIDI device is still recognized as "Arduino Micro".

Anyone got a hint on how I can change that name?

Cheers,
Normen
Title: Re: Change MIDIUSB Device Name?
Post by: Grumpy_Mike on Mar 15, 2016, 05:31 pm
If you are using a Uno then you can't change the name. That is fixed deep inside the boot loader/ driver code.
Title: Re: Change MIDIUSB Device Name?
Post by: normen on Mar 15, 2016, 05:35 pm
If you are using a Uno then you can't change the name. That is fixed deep inside the boot loader/ driver code.
Thanks for the reply.

As said I am using a Micro, afaik it uses its main chip for the USB part doesn't it? I started using the Micro because it (like the Leonardo) was the first to support MIDI/HID before Arduino 1.6
Title: Re: Change MIDIUSB Device Name?
Post by: Grumpy_Mike on Mar 15, 2016, 05:38 pm
Sorry the Micro is just a poor name for a model of Arduino because any Arduino is a microcomputer which shortens to a micro.

Same problem though, unless you want to fish about in the depth of the HID library's code.
Title: Re: Change MIDIUSB Device Name?
Post by: normen on Mar 15, 2016, 05:41 pm
Sorry the Micro is just a poor name for a model of Arduino because any Arduino is a microcomputer which shortens to a micro.

Same problem though, unless you want to fish about in the depth of the HID library's code.
Okay so I guess my best bet is to make a copy of the hardware folder in the local libraries and change the name in the core code.. Hmph, I hoped the whole "Pluggable USB" stuff would make that easier.

Thanks for the help!
Title: Re: Change MIDIUSB Device Name?
Post by: CptCredible on Aug 22, 2016, 10:29 am
Did you get this to work ?
Title: Re: Change MIDIUSB Device Name?
Post by: normen on Aug 22, 2016, 02:40 pm
Did you get this to work ?
I didn't investigate much further yet but I guess its down to just doing a String search across all files in the hardware folder for "Arduino Micro" and replacing the string..
Title: Re: Change MIDIUSB Device Name?
Post by: silveirago on Jul 16, 2017, 10:11 pm
I'm also looking for this answer. Any update?
Title: Re: Change MIDIUSB Device Name?
Post by: CptCredible on Sep 07, 2017, 05:07 pm
I did a little more digging, you need to recompile the arduino bootloader hex file. The file that needs modifying before compiling is apparently:
/bootloaders/caterina/Descriptors.c
or whatever the equivelent file is in you version of the IDE. Not tried this yet but i plan to give it a go next week.
Title: Re: Change MIDIUSB Device Name?
Post by: jaimekhc on Nov 03, 2017, 06:18 am
Did you get it work? I've tried with /bootloaders/caterina/Descriptors.c but no luck.
Title: Re: Change MIDIUSB Device Name?
Post by: CptCredible on Nov 04, 2017, 06:44 pm
Yeah I tried too, no luck.
Title: Re: Change MIDIUSB Device Name?
Post by: musinou on Jan 20, 2018, 12:44 am
Does anyone here found out how to change the MIDI device's name?

I found at a couple of places to create a new board, so I did, and I see it and I can compile my Arduino code, but still have no luck to have another MIDI device name.

What about the Descriptors.c?

Any idea?

Thank you!

Code: [Select]

leonardo2.name=Arduino Leonardo name

leonardo2.vid.0=0x999
leonardo2.pid.0=0x998
leonardo2.vid.1=0x997
leonardo2.pid.1=0x996
leonardo2.vid.2=0x995
leonardo2.pid.2=0x994
leonardo2.vid.3=0x993
leonardo2.pid.3=0x992
       
leonardo2.upload.tool=arduino:avrdude
leonardo2.upload.protocol=avr109
leonardo2.upload.maximum_size=28672
leonardo2.upload.maximum_data_size=2560
leonardo2.upload.speed=57600
leonardo2.upload.disable_flushing=true
leonardo2.upload.use_1200bps_touch=true
leonardo2.upload.wait_for_upload_port=true
       
leonardo2.bootloader.tool=arduino:avrdude
leonardo2.bootloader.low_fuses=0xff
leonardo2.bootloader.high_fuses=0xd8
leonardo2.bootloader.extended_fuses=0xcb
leonardo2.bootloader.file=caterina/Caterina-Leonardo.hex
leonardo2.bootloader.unlock_bits=0x3F
leonardo2.bootloader.lock_bits=0x2F
       
leonardo2.build.mcu=atmega32u4
leonardo2.build.f_cpu=16000000L
leonardo2.build.vid=0x2341
leonardo2.build.pid=0x8036
leonardo2.build.usb_product="Arduino Leonardo product"
leonardo2.build.usb_manufacturer="Arduino Leonardo manufacturer"
leonardo2.build.board=AVR_LEONARDO
leonardo2.build.core=arduino:arduino
leonardo2.build.variant=arduino:leonardo
leonardo2.build.extra_flags={build.usb_flags}
Title: Re: Change MIDIUSB Device Name?
Post by: musinou on Jan 20, 2018, 04:03 am
So, after reading a few threads I decided to make a how-to, hoping it can help someone. Here you go:

http://liveelectronics.musinou.net/MIDIdeviceName.php (http://liveelectronics.musinou.net/MIDIdeviceName.php)
Title: Re: Change MIDIUSB Device Name?
Post by: bikewrench on Mar 29, 2019, 10:24 pm
thanks musinou, I tried following your instructions with only partial success.  The name is changed in system report, however it shows up as "usb midi device" in audio midi setup and midi monitor. I'm on a mac with yosemite. Did I miss a step?