HTTP Server Port
The ACS CFSound-IV has the ability to serve HTML pages from the SD card. If the configured HTTP
Server Port is non-zero then HTTP GET requests for SD card resident files will retrieve the file contents.
The server only responds to HTTP GET requests. The file path should immediately follow the IP
Address:
GET /pathToFile
If the GET is followed by a slash/space “/ “ with no filename, an attempt is made to return the file
“index.html” off of the card.
If the requested file is found and opens OK on the SD card a 200 response is returned:
HTTP/1.0 200 OK
Server: uIP/1.0
http://www.sics.se/~adam/uip/
Connection: close
This is immediately followed by a content type header determined by the requested file’s extension:
File extension
Returned Header
no extension Content-type: application/octet-stream
.html Content-type: text/html
.css Content-type: text/css
.png Content-type: image/png
.gif Content-type: image/gif
.jpg Content-type: image/jpeg
.bmp Content-type: image/x-ms-bmp
any other extension Content-type: text/plain
The content type header is followed by an empty line, then the requested file’s contents.
If the requested file doesn’t exist or can’t be opened on the micro SD card a 404 response is returned:
HTTP/1.0 404 Not found
Server: uIP/1.0
http://www.sics.se/~adam/uip/
Connection: close
This is immediately followed by the contents of file 404.html if it exists on the card.
TCP/IP Raw Port
The ACS CFSound-IV has the ability to send and receive its serial data stream using TCP/IP raw sockets.
Normally network traffic between two ports is encapsulated using an agreed upon protocol which may include
message headers and other information required by the application. With raw sockets the data is sent /
received un-encapsulated with no accompanying headers or other information.
If the configured TCP/IP Raw Port is non-zero a remote connection to that port allows the remote end to
send data and received data to and from the CFSound as if over the conventional serial port.