Instruction manual
13
10 GB Communication
Version
1.0
3
& Control Card Instruction Manual
4.2.4 Device Management via HTTP
The 10 GB C&C Card can be programmed via TCP/IP using the HTTP
GET and POST messages.
Using HTTP GET method the user can read data from the controller.
The read instruction is coded in the URI string of the request line. Requests
using GET only retrieve data and have no other effect.
UR
I
Instruction
SENDACKx
x
Send ACK type x
x
(x
x
must be between 0 and
99)
READSDRAMppppp
Read a 1024
-
byte page from the SDRAM of
the
microcontroller (ppppp must be between 0 and
32767)
FLREADpppp
Read a 1024
-
byte page from the Storage Flash
(pppp must be between 0 and 8191)
SCBREADCAaaaannnn
Read data from the communication area via the
SCB. aaaa is the SCB Address in hexadecimal
format (e.g. 01B0). nnnn is the number of bytes
to read in decimal format.
STARTFUP
Calculate checksum, send FUP CHECKSUM
answer and start firmware upgrade. (future
release)
Request line examples:
GET /SENDACK8 HTTP/1.1
GET /READSDRAM0 HTTP/1.1
GET /READSDRAM32456 HTTP/1.1
GET /FLREAD29 HTTP/1.1
To program the card the user must send a HTTP POST message to the
controller with the “POST /DDToIP HTTP…” request line. The body of the
message contains the DDToIPv3 instruction chain (DDToIP header with the
user text and the instructions). If the instruction chain contains read
instructions (e.g. SENDACK, READSDRAM, FLREAD) the answer can read out
sending a HTTP GET message with the “DDToIP” URI.
Request lines:
POST /DDToIP HTTP/1.1
GET /DDToIP HTTP/1.1