Serial API - bidirectional communication