[Semi-Solved] Due and uno in multi master I2c
i have spent weekend , @ point of tearing hair out.
i using minor varient of http://michael.bouvy.net/blog/en/2013/05/25/arduino-multi-master-to-master-i2c/
between due , uno.
i have put logic level converter between sda & scl between 2 boards.
the real change have done (during debugging) on uno delay 1 second between sending , on due wait 5 seconds between sends.
what observe on due, 5 receives come in (perfectly). delay on due expires , sends uno it's packet.
the uno appears 'stall' in receivei2c event (i did little change tun on inbuilt led @ start of routine , turn off @ end.
i awaiting nano's can run without due (which suspect causing issue - when send).
unfortuantly don't have logic analyser debug going on!
q1. (i had take serial sends out of uno because life of me cannot work out how have 2 serial monitors running @ same time (1 each board) - on osx , have latest arduino environment (1.5.7 believe (i @ work cannot verify).
has else managed multi-master working due , uno - or wasting time?
the level converters appear working because due can receive uno.
i suspect due should set master no address - believe mean due master clock reference - if this, address use on uno send due (zero?).
apolegies long post - newbie arduino!
stan
i using minor varient of http://michael.bouvy.net/blog/en/2013/05/25/arduino-multi-master-to-master-i2c/
between due , uno.
i have put logic level converter between sda & scl between 2 boards.
the real change have done (during debugging) on uno delay 1 second between sending , on due wait 5 seconds between sends.
what observe on due, 5 receives come in (perfectly). delay on due expires , sends uno it's packet.
the uno appears 'stall' in receivei2c event (i did little change tun on inbuilt led @ start of routine , turn off @ end.
i awaiting nano's can run without due (which suspect causing issue - when send).
unfortuantly don't have logic analyser debug going on!
q1. (i had take serial sends out of uno because life of me cannot work out how have 2 serial monitors running @ same time (1 each board) - on osx , have latest arduino environment (1.5.7 believe (i @ work cannot verify).
has else managed multi-master working due , uno - or wasting time?
the level converters appear working because due can receive uno.
i suspect due should set master no address - believe mean due master clock reference - if this, address use on uno send due (zero?).
apolegies long post - newbie arduino!
stan
little bit more info - may clue.
i downloaded , looked @ wire.cpp in latest overnight build. end_transmission takes parameter send stop - life of me cannot see if paremeter gets used.
i have seen mention of changes wire.cpp , can see code on github appears use parameter - unsure on relationship between libraries shipped arduino ide vs on github.
i download github version - don't want break anything.......
btw - fwiw osx @ least, found resolution displaying serial 2 arduino's simultaniously - see http://apple.stackexchange.com/questions/32834/is-there-an-os-x-terminal-program-that-can-access-serial-ports
i used script/screen option , works great (don't forget ctrl/d , exit prior downloading new sketches arduino!
stan
i downloaded , looked @ wire.cpp in latest overnight build. end_transmission takes parameter send stop - life of me cannot see if paremeter gets used.
i have seen mention of changes wire.cpp , can see code on github appears use parameter - unsure on relationship between libraries shipped arduino ide vs on github.
i download github version - don't want break anything.......
btw - fwiw osx @ least, found resolution displaying serial 2 arduino's simultaniously - see http://apple.stackexchange.com/questions/32834/is-there-an-os-x-terminal-program-that-can-access-serial-ports
i used script/screen option , works great (don't forget ctrl/d , exit prior downloading new sketches arduino!
stan
Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > [Semi-Solved] Due and uno in multi master I2c
arduino
Comments
Post a Comment