I was rather dismayed when I saw my Mega attach with an Arduino service and I got a endless
I could tell between the errors - there were valid PUBLISH_BOARD_INFO messages - so why the endles resets?
As far as I can tell, my mega (which probably has some battle scars) has gotten into a state where setup is NOT run when a new serial connection is made.
There is a new message call PUBLISH_MRL_COMM_BEGIN which is the only msg that can unlock the java message parser. My simple solution is to allow either PUBLISH_MRL_COMM_BEGIN or PUBLISH_BOARD_INFO to unlock the parser.
I think this is more desirable since there are quite a few possiblities of setup not being run on a new serial connection as this link can verify.
The Fix :