def start(self):
self.serial_h.flushOutput()<EOL>self.serial_h.flushInput()<EOL>self.send(C1218IdentRequest())<EOL>data = self.recv()<EOL>if data[<NUM_LIT:0>] != <NUM_LIT>:<EOL><INDENT>self.logger.error('<STR_LIT>')<EOL>return False<EOL><DEDENT>self._initialized = True<EOL>self.send(C1218NegotiateRequest(self.c1218_pktsize, self.c1218_nbrpkts, baudrate=<NUM_LIT>))<EOL>data = self.recv()<EOL>if data[<NUM_LIT:0>] != <NUM_LIT>:<EOL><INDENT>self.logger.error('<STR_LIT>')<EOL>self.stop()<EOL>raise C1218NegotiateError('<STR_LIT>', data[<NUM_LIT:0>])<EOL><DEDENT>return True<EOL>
Send an identity request and then a negotiation request.