protocol encoding
[[protocol_encoding]] last edit on Nov 2, 2008 4:47 PM by ap0c0lyps3

This page is under development and subject to change!

Messages are composed of multiple fields, which are null (\000) seperated. For sub-fields the ordinal of the seperator is increased for each level, eg \001, \002

Sending


Fields are prefixed with a short code - mostly two letters.

Wire encoding: ln=LEN\000DATA
  • LEN - Length of DATA
  • DATA - Depends on the message

Data encoding: id=NUMBER\000cm=COMMAND\000ms=PARAMS
  • NUMBER - The phone number you have connected as
  • COMMAND - The number of the command to invoke
  • PARAMS - The parameters for the command.

Receiving


Fields are not prefixed, so we can only guess the order matters.

Wire encoding: ln=LEN\000DATA
  • LEN - Length of DATA
  • DATA - Depends on the message

Data encoding: COMMAND\000PARAMS
  • COMMAND - The number of the command to invoke
  • PARAMS - The parameters for the command.

Known commands: