Succ-U-Bus

Discussions of any related software

Moderator: Related software moderators

Re: Succ-U-Bus

Postby dmitri » Wed Jul 01, 2009 2:15 pm

I didn't have a look at the code but it seems strange to me that sending the whole firmware sysex on its own works fine in MCT but sending it after sending 'erase_sysex' doesn't. Surely the size of the firmware sysex is the same in both case so why you don't need to break it up in the first case and then suddenly you have to break it up in the second case.
dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: Succ-U-Bus

Postby elrules » Wed Jul 01, 2009 2:41 pm

Well, the key then is in the erase sysex message. Something happens after the sending/reception of this message. Is the MIDI connection reset or broken momentarily? Is the power of the unit interrupted or something? I don't know. Something must happen. That message is the only difference between bootloaders.
elrules
 
Posts: 629
Joined: Thu Nov 29, 2007 4:51 pm
Location: Murcia, Spain, Europe, The World

Re: Succ-U-Bus

Postby dmitri » Wed Jul 01, 2009 2:45 pm

elrules wrote:Well, the key then is in the erase sysex message. Something happens after the sending/reception of this message. Is the MIDI connection reset or broken momentarily? Is the power of the unit interrupted or something? I don't know. Something must happen. That message is the only difference between bootloaders.

It doesn't have anything to do with the bootloader! It happens even if you use virtual MIDI ports.
dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: Succ-U-Bus

Postby Ken Forgettable » Wed Jul 01, 2009 2:50 pm

dmitri wrote:Surely the size of the firmware sysex is the same in both case so why you don't need to break it up in the first case and then suddenly you have to break it up in the second case.
MidiPort has no hook on the OS callback handler so it can't know when the data has been read by the OS. This means it doesn't know when it can refill its own buffer safely. I also think the OS callback scheduler timing is a little conservative so individual messages (buffered by MidiPort) can get lost (overwritten) before the callback handler knows anything about them.

We'll see :?
Ken Forgettable
 
Posts: 402
Joined: Tue Jan 06, 2009 5:04 pm

Re: Succ-U-Bus

Postby elrules » Wed Jul 01, 2009 3:37 pm

So, in the end, do you want me to modify the MCT to send the firmware in parts?

Well, you have now the source code... have you tested it yourself?

About the errors while updating... are always talking only about Windows version (using MidiPort)? or doesn't it work even with the Linux version?
elrules
 
Posts: 629
Joined: Thu Nov 29, 2007 4:51 pm
Location: Murcia, Spain, Europe, The World

Re: Succ-U-Bus

Postby dmitri » Wed Jul 01, 2009 4:01 pm

elrules wrote:So, in the end, do you want me to modify the MCT to send the firmware in parts?

Well, you have now the source code... have you tested it yourself?

About the errors while updating... are always talking only about Windows version (using MidiPort)? or doesn't it work even with the Linux version?

I didn't try it on Linux. Why won't you try it yourself? You don't even need to have a MegaDrum module connected. Select any MIDI port for output and you'll get the error. If you select a virtual MIDI port as output and then with MIDI-OX (or anything similar on Linux) monitor what is sent to this port you will see that 'erase_sysex' comes through but not a single byte of the firmware sysex does.
dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: Succ-U-Bus

Postby Ken Forgettable » Wed Jul 01, 2009 8:40 pm

dmitri wrote:
elrules wrote:So, in the end, do you want me to modify the MCT to send the firmware in parts?

Well, you have now the source code... have you tested it yourself?

About the errors while updating... are always talking only about Windows version (using MidiPort)? or doesn't it work even with the Linux version?

I didn't try it on Linux. Why won't you try it yourself? You don't even need to have a MegaDrum module connected. Select any MIDI port for output and you'll get the error. If you select a virtual MIDI port as output and then with MIDI-OX (or anything similar on Linux) monitor what is sent to this port you will see that 'erase_sysex' comes through but not a single byte of the firmware sysex does.
I think the code I posted fixes these problems for windows using MidiPort!
Ken Forgettable
 
Posts: 402
Joined: Tue Jan 06, 2009 5:04 pm

Re: Succ-U-Bus

Postby elrules » Wed Jul 01, 2009 10:30 pm

That would be great news!!

I would test it myself but I don´t have a secure bootloader. In fact, as I moved again to amsterdam, I don't even have a finished megadrum hehehe
elrules
 
Posts: 629
Joined: Thu Nov 29, 2007 4:51 pm
Location: Murcia, Spain, Europe, The World

Re: Succ-U-Bus

Postby dmitri » Wed Jul 01, 2009 10:43 pm

elrules wrote:That would be great news!!

I would test it myself but I don´t have a secure bootloader. In fact, as I moved again to amsterdam, I don't even have a finished megadrum hehehe

You don't need MegaDrum to test it: http://www.megadrum.info/forums/viewtop ... 9577#p9577
dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: Succ-U-Bus

Postby elrules » Wed Jul 01, 2009 11:13 pm

I wanted to see if it works on a real device because for me, all this time, with virtual ports I have been able to send the firmware correctly.
elrules
 
Posts: 629
Joined: Thu Nov 29, 2007 4:51 pm
Location: Murcia, Spain, Europe, The World

PreviousNext

Return to Related Software

Who is online

Users browsing this forum: No registered users and 36 guests