USB Audio MIDI Class ( USB Serial, USB HID, USB Slave)

Please add any feature requests for Flowcode version 6 here

Moderator: Benj

Forum rules
Only feature requests will be considered here. General questions should not be posted in this forum.
Post Reply
Rudi
Posts: 666
Joined: Mon Feb 10, 2014 4:59 am
Has thanked: 493 times
Been thanked: 187 times

USB Audio MIDI Class ( USB Serial, USB HID, USB Slave)

Post by Rudi »

Hi

In FC are USB SLAVE, USB HID, USB Serial..
i wish in Future a
USB MIDI
USB AUDIO
Need Help in USB Descriptor so i request to a USB Compo Simply "USB Audio MIDI Class Device".
Txs
Best wishes
Rudi
;-)

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: USB Audio MIDI Class ( USB Serial, USB HID, USB Slave)

Post by Benj »

Hi Rudi,

Thanks for the suggestion, I'll add it to the list.

Rudi
Posts: 666
Joined: Mon Feb 10, 2014 4:59 am
Has thanked: 493 times
Been thanked: 187 times

Re: USB Audio MIDI Class ( USB Serial, USB HID, USB Slave)

Post by Rudi »

Hi Guys
1/2 year ago and few days before chrismas .. :)
is there any new's in this? would be fine for a christmas gift.
rudi
thank you!


*Edit
jan 5 2015 :-)

would be fine for a easter 2015 gift.
;-)

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: USB Audio MIDI Class ( USB Serial, USB HID, USB Slave)

Post by Benj »

Hello Rudi,

Right I have MIDI working now on a 16-bit PIC. 8-bit PICs currently not supported but hopefully shouldn't be a big job to add these.

I've tested the USB functionality but not the simulation end so far. I took this from the existing MIDI component so hopefully everything should simulate correctly.

First these files need to be extracted here: "C:\Program Files (x86)\Flowcode 6\CAL\PIC16BIT\USB"
USB.zip
(197.04 KiB) Downloaded 341 times
Then here is the new component file which needs to live here: "C:\Program Files (x86)\Flowcode 6\components"
USB_MIDI.fcpx
(47.95 KiB) Downloaded 349 times
For testing the component I used free software named MIDI-OX which is working very nicely and allows me to link the incoming USB MIDI data to a Synth so I can hear what's going on and also link it so the data is fed back out on the USB so I can see the data returning on the LCD.

Here is my current test file.
USBMidiTest.fcfx
(8.22 KiB) Downloaded 342 times
Let me know how you get on.

Rudi
Posts: 666
Joined: Mon Feb 10, 2014 4:59 am
Has thanked: 493 times
Been thanked: 187 times

Re: USB Audio MIDI Class ( USB Serial, USB HID, USB Slave)

Post by Rudi »

Benj!
Cheers Cheers
will try today ( night ) and i am sure- will rock the party at night
hey - txs!!!

best wishes
rudi ;-)

Rudi
Posts: 666
Joined: Mon Feb 10, 2014 4:59 am
Has thanked: 493 times
Been thanked: 187 times

Re: USB Audio MIDI Class ( USB Serial, USB HID, USB Slave)

Post by Rudi »

Hi Benj ;-)

I could not wait that long and have my work interrupted
PIC24
...
- USB AUDIO MIDI fired
- USB send Midi
..

BENJ PERFECT !!!
^^^^^^^^^^^^^^^^^^^^
- Incredible!
- Fantastic!
..

Much obliged !!
^^^^^^^^^^^^
^
Will play now the rest of day with this -
fantastic! -

please go on in USB-OTG now too - you are 'warm' in this usb theme now ;-) ;-) ;-)
hey cheers!!!!
best wishes
rudi ;-)

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: USB Audio MIDI Class ( USB Serial, USB HID, USB Slave)

Post by Benj »

Hi Rudi,

Great glad it's working for you, let me know if you spot any bugs.

What OTG classes would you like to see? These are the classes I currently have examples for...

MIDI, Serial, HID Mouse, HID Keyboard, Mass Storage, Slave, Printer

Rudi
Posts: 666
Joined: Mon Feb 10, 2014 4:59 am
Has thanked: 493 times
Been thanked: 187 times

Re: USB Audio MIDI Class ( USB Serial, USB HID, USB Slave)

Post by Rudi »

Benj wrote:Hi Rudi,

Great glad it's working for you, let me know if you spot any bugs.

What OTG classes would you like to see? These are the classes I currently have examples for...

MIDI, CDC, HID Mouse, HID Keyboard, Mass Storage, Slave, Printer

Benj super!!

all ;-)

;-)

..CDC will be fine benj for first test
..perhabs Mass Storage too

MIDI will be fantastic..
and all other too ;-)

you are the chef ;-)
^^^^^^^^^^^^^^^^

hey super will play now a little with this
many many txs

best wishes
rudi ;-)

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: USB Audio MIDI Class ( USB Serial, USB HID, USB Slave)

Post by Benj »

Hi Rudi,

I've looked over the OTG examples and they look quite complicated. Think I need to have a play and gain familiarity. Mass storage is the one that looks promising to me in terms of possibilities but I suppose mouse and keyboard are equally handy.

For Standard USB devices I have examples for a Speaker and a Microphone if these would be handy, these would be quite easy to fit in now for 16-bit PIC with little effort, 8-bit is more tricky as the code needs porting over to boostc.

Rudi
Posts: 666
Joined: Mon Feb 10, 2014 4:59 am
Has thanked: 493 times
Been thanked: 187 times

Re: USB Audio MIDI Class ( USB Serial, USB HID, USB Slave)

Post by Rudi »

Hi Benj
can it be, that the USB ICON,

USB SLAVE
USB SERIAL
USB HID

now not funtionally with PIC 18 F 2550 ?

why i ask:

I make a new empty project with PIC18F2550
add a loop simple delay 3sec

compile ok

i add a usb serial icon
i try to compile
fc is telling - project is up2date - recompile

i say yes "ok"
but this compile stop with errorlevel 1

i add makro for usb init
i add makro for usb send string in the loop ( with the 3 sec delay )

i try to compile
but this compile stop with errorlevel 1

any idea?

strange!..

best wishes
rudi ;-)

no hurry.

Rudi
Posts: 666
Joined: Mon Feb 10, 2014 4:59 am
Has thanked: 493 times
Been thanked: 187 times

Re: USB Audio MIDI Class ( USB Serial, USB HID, USB Slave)

Post by Rudi »

Hi Benj

i test just in time in a second laptop, where the midi for pic24 was not installed.
this fc is version 6.1.1.0

it compiles, but no reaction if pic18f2550 connect to pc ( cdc )
i will test a other same board in next time..too

bw
rudi ;-)

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: USB Audio MIDI Class ( USB Serial, USB HID, USB Slave)

Post by Benj »

Hi Rudi,

I've just tried the USB Serial component with a standard ECIO40P and it is working well. My guess is it's config settings or a hardware issue that is causing the problem.

If you attach your Flowcode program and let me know what value crystal your using then I will investigate for you.

Rudi
Posts: 666
Joined: Mon Feb 10, 2014 4:59 am
Has thanked: 493 times
Been thanked: 187 times

Re: USB Audio MIDI Class ( USB Serial, USB HID, USB Slave)

Post by Rudi »

hi benj
my mistake!
i have install the files in wrong folder ( pic24 / pic18 ) - after re install all fine again.
benj, is there a new same in pic18 usb midi? do you can make the things in pic18 same like pic24 ?

best wishes
rudi :)

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: USB Audio MIDI Class ( USB Serial, USB HID, USB Slave)

Post by Benj »

Hi Rudi,

No USB Midi support for 8-bit PICs at the moment. Adding USB classes for 16-bit PICs is easy but for 8-bit is fairly tricky and time consuming.

I think this is one that we might park until we change the 8-bit compiler as this means we are not doing the work twice.

Rudi
Posts: 666
Joined: Mon Feb 10, 2014 4:59 am
Has thanked: 493 times
Been thanked: 187 times

Re: USB Audio MIDI Class ( USB Serial, USB HID, USB Slave)

Post by Rudi »

hi benj,
txs - ok -
i will work in this then with pic24 as base.
no problem, 8 bit would be fine - too,
but is ok -
txs benj!
best wishes
rudi :)

Rudi
Posts: 666
Joined: Mon Feb 10, 2014 4:59 am
Has thanked: 493 times
Been thanked: 187 times

Re: USB Audio MIDI Class ( USB Serial, USB HID, USB Slave)

Post by Rudi »

hi benj
, btw, is the usb slave functionally with pic24 like pic18(8bit) ?
i have read you have worked at usb serial, but i do not know 100 procent, is this done in usb slave too and functionally?
txs for your support
best wishes
rudi :)

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: USB Audio MIDI Class ( USB Serial, USB HID, USB Slave)

Post by Benj »

Hi Rudi,

Yes the USB Serial, Slave and HID should all work on 8-bit PIC and 16-bit PIC devices.

Let me know if you have any problems.

Post Reply