Error handling

Not much success, added Syslog handler, STS error handler, increased timeout, removed flush call.
Still fails hard
Remove TextIO, separate reader and writer

Remove TextIOWrapper (not Thread safe)
Use separate reader and writer
Use internal read routine to detect EOL
Beef up error recovery

TODO: Stress the error recovery with higher baud rates
Signed-off-by: Bill Waggoner <ctgreybeard@gmail.com>
Limit drain attempts

Limit drain retries to three

Signed-off-by: Bill Waggoner <ctgreybeard@gmail.com>
Raw Serial io

Convert to raw Serial io rather than through BufferedReader/Writer

Signed-off-by: Bill Waggoner <ctgreybeard@gmail.com>
Minor cleanups

Signed-off-by: Bill Waggoner <ctgreybeard@gmail.com>
Running well

Tested at 115200 via main USB port on laptop instead of through USB hub.  Running for quite a while OK.

Signed-off-by: Bill Waggoner <ctgreybeard@gmail.com>
Test rpc

Successful test using queue for RPC

Signed-off-by: Bill Waggoner <ctgreybeard@gmail.com>