Bracket the myPort.writes with println commands. Then give it shot.
For example:
println("SA " + millis());
myPort.write(arr.);
println("EA " + millis());
println("SB " + millis());
myPort.write((byte)1);
println("EB " + millis());