Changes to support the last link in the serial conection chain
Merge pull request #1237 from unwin/d88d9bdd0778812e7335780d3f419c254aa6b117

Serial port_agent_process mode last mile of code.