Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

packet length:     The length, in bytes, of the packet that follows the Header packet.
Transaction ID:    A number that can be used to validate the transaction.
Unit ID:           A number that can be used to select some action at the application level.

Code Block
titleCommand packet

...

code
Bytes              Name
-----              ----
4                  command
n                  arguments

...

Command

Name

Associated function and parameters

0x00000000

DO_NOT_USE

0x00000000 must NOT be used

0x00000001

FETCH

fetch the STA or DYN fork: <elementName>,STA|DYN

0x00000002

SEND CMD 1 TO 3

send a command from the console to the DEVIL: <command_string>

0x00000003

FETCH_BUFFER

fetch n bytes from a buffer global variable: <#OfBytes>

0x00000004

ECHO

send n bytes ang get the same n byte back: <byte_string>

0x00000005

FETCH_BLOCK

fetch STA or DYN fork (full array): <elementName>,STA|DYN

(the elementName is used by the servlet just to recognize the proper class and can be any elementName belonging to that class in that DEVIL)

0x00000006

GET_ALIVE_COUNT

read the DEVIL alive counter: no arguments

0x000000xx

to be defined

to be defined

0x000000ff

DO_NOT_USE

0x000000ff must NOT be used


Code Block
titleOk packet

...

code
Bytes              Name
-----              ----
4                  packet code, always = 0x00000000


Code Block
titleError packet

...

code
Bytes              Name
-----              ----
4                  packet code, always = 0x000000ff


Code Block
titleResult packet

...

code
Bytes              Name
-----              ----
4                  packet code
n                  raw data

...