If your frame data is:
[blah, blah, blah]
send
[blah, blah, blah, end]
If your frame data is:
[blah, esc, blah]
send
[blah, esc, esc-esc, blah, end]
If your frame data is:
[blah, end, blah]
send
[blah, esc, esc-end, blah, end]
If your frame data is:
[blah, end, esc-end, blah]
send
[blah, esc, esc-end, esc-end, blah, end]
If your frame data is:
[blah, esc, esc-esc, blah]
send
[blah, esc, esc-esc, esc-end, blah, end]