emulate a laser device that can receive some command from its serial port and output some reply.