* 1 core pic based 17f452 (burnd with bootloader_v1_2b_pic18f452 and mios_v1_9g_pic18f452)
Router software midi_router_v1_1c
* 4 IIC MIDI module pic burnd with mbhp_iic_midi_v1_0c
* 1 DINX1 but not connected
After very long time to build and program (wrong interface etc.)
The note to sent via mios studio or instrument to the port in of the IIC midi module coming with very great delay back from core out poort (1 a 1,5 sec)
sorry for the late reply, the simple reason is that I’m a bit puzzled about this case (but I don’t want to say that I don’t find this puzzle interesting! ;))
My own MIDIbox Router is running with latest MIOS, and latest released application and MBHP_IIC_MIDI firmware.
Forwarding the MIDI input of an IIC input to a MIDI output of an IIC output is a very common case at my side, e.g. if MBSEQ sends MIDI events to my MBSID and MBFM.
I’m still thinking about a test strategy which could help to find the root cause - I’m very interested in this case to improve robustness.
Btw.: the delay of 1.5 seconds probably means that the MIDI protocol is violated (a “MIDI timeout” should happen in this case)
Could you please describe, which devices you are using to test the router?
Update: how many MBHP_IIC_MIDI modules are connected to your router?
It’s very important that IIC_MIDI_MAX_NUMBER (defined in iic_midi_tick.asm) matches with the number of connected modules.
This is especially important for the experiment I described above (some PIC16F88 pulled out)
If less than 4 modules are connected, and IIC_MIDI_MAX_NUMBER isn’t matching, the firmware will retry MIDI transfers multiple times - this can result into delays.
the IIC_MIDI_MAX_NUMBER checked the max st to four
I have the J4 and the J2 connected with ribbon cable can that and problem? if i have J4 and J2 connected with experiment cable sometimes is the delays shorter but never go way. I have a niuew cable make but ist same delay en hang up.
The loopbacktest is good, but with te same delay :pinch: Yello Led continu after short time red led also continu with delay after last signal that sending.
But if i have the ribbon cable, J4 to J2 in the hand than is the delay much shorter. if i have to leave the ribbon cable the Delay is the same long time. Its not a broken conecting.
Could you please doublecheck that R2 and especially R12 of the core module are properly soldered?
Note that R12 is located under the PIC, and a bridge has to be added between J4 and this resistor (red cable in this snapshot: http://www.ucapps.de/mbhp/mbhp_core_v3.gif)