USB Midi / USB Serial

Use this section to discuss your embedded Flowcode projects.
Post Reply
simon-sandtcontrols
Posts: 34
http://meble-kuchenne.info.pl
Joined: Sun Mar 21, 2021 3:56 pm
Has thanked: 4 times
Been thanked: 6 times

Flowcode v10 USB Midi / USB Serial

Post by simon-sandtcontrols »

Hi All,
I wonder if anyone knows, I have used the USB Midi component with a PIC 24FJ128GB202 (although I expect the uController is irrelevant for this question) for a controller for my wife's radio station presenters, all good with Windows, works a treat, of course someone wants to use it on a Mac :x . I know very little about Mac, I have never had any Apple device. They have tried it and it seems to enumerate, but then is doing odd things. Mac doesn't seem to even have a device manager. Has anyone tried this with any success??

I guess it would be handy to know what the USB serial component would do as well?

Many Thanks.

Simon

Steve-Matrix
Matrix Staff
Posts: 1420
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 193 times
Been thanked: 331 times

Re: USB Midi / USB Serial

Post by Steve-Matrix »

I know nothing about Macs so can't really help. But a quick internet search pulled up the following that might be useful - either to you or to another forum user who might be able to help.

https://apple.stackexchange.com/questio ... ke-windows

https://stackoverflow.com/questions/563 ... usb-prober

simon-sandtcontrols
Posts: 34
Joined: Sun Mar 21, 2021 3:56 pm
Has thanked: 4 times
Been thanked: 6 times

Re: USB Midi / USB Serial

Post by simon-sandtcontrols »

Thanks Steve,

I had 5 minutes with a Mac belonging to a friend of mine, before he had to go, and found another page that suggested the same as your second link "Sudo Dmesg", but it didn't return anything. Maybe different versions of IOS or I just got it wrong splashing around in the dark with it.

The PIC is clearly doing something but it's not right, so I don't know if it's the playout software they are using sending different Midi data, or the USB interface.

I am trying to find someone within the radio group with a Mac that I can try playing around for longer. But in the meantime if anyone on the forum knows anything about this any pointers would be greatly appreciated.

Simon

simon-sandtcontrols
Posts: 34
Joined: Sun Mar 21, 2021 3:56 pm
Has thanked: 4 times
Been thanked: 6 times

Re: USB Midi / USB Serial

Post by simon-sandtcontrols »

Hi All,

Just an update on this in case anyone else ends up trying to interface to a Mac, due to the lack of information around this I ended up buying an old mac book from Ebay to try and move forward.

I can confirm that the Midi and Serial USB interfaces in Flowcode do indeed work on a Mac at least with the old "High Sierra" operating system I have. They didn't need any extra drivers or anything to be installed.

The serial connection seems to work fine, I could talk to a Serial Terminal Emulator in both directions no problem.

The Midi part is slightly less straight forward, and I am surmising here, but I think Windows buffers the Midi packets and insists you read each packet before it will move on (if I put a delay in the read loop I could actually slow the software down to a crawl), Mac doesn't appear to do this it just sends packets out as fast as it wants and if you can keep up and read them, then cooking, if not, hard luck you will miss some!!!! :x

In answer to the device manager, well Mac does sort of have something, if you press the Apple symbol in the top left and then go to "about this mac" it opens a window, click "system report" and it opens another window, select USB from the menu at the side and then scroll up and down the list that appears at the top of the page, mine appeared under the USB3 section but I think it depends on the port you use.

Anyway, hope this might help someone else.

Simon.

Steve-Matrix
Matrix Staff
Posts: 1420
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 193 times
Been thanked: 331 times

Re: USB Midi / USB Serial

Post by Steve-Matrix »

Thanks for the info, Simon. Hopefully that will be useful for others using (or intending to use) a MAC.

simon-sandtcontrols
Posts: 34
Joined: Sun Mar 21, 2021 3:56 pm
Has thanked: 4 times
Been thanked: 6 times

Re: USB Midi / USB Serial

Post by simon-sandtcontrols »

No worries.

I am not going to say using the Mac is a choice I would make personally, I have not had much fun with it!!!

Post Reply