The communication between Raspberry Pi and Carberry, is made of dialogues, like AT commands in standard telephone modems.

  • Every command line must be terminated by the two characters <CR> and <LF>, respectively in HEX 0x0D and 0x0A.
  • Every line returned from Carberry, is terminated by the two characters <CR> and <LF>.
  • No binary chars are transmitted or received (except for the control chars from 0x00 to 0x1F).
  • After successfully execution of the command, Carberry returns possible line of replies, and than finish the sentence with “OK”.
  • In case of errors, Carberry issues the keyword “ERROR”, followed by the reason of that.