refactored comms and connection providers between serial, stubbed bluetooth and tcp socket connection providers