
S1S60000 Technical Manual
Rev.1.5
EPSON
29
5.
HARDWARE CONTROL
Using GPIO and I2C bus master contained in S1S60000 makes hardware control easier.
Following lists
controllable hardware.
Built-in register [to be described in Chapter 5.2]
GPIO (General-Purpose Input/Output) [to be described in Chapter 5.3]
I2C slave device [to be described in Chapter 5.4.2]
EEPROM [to be described in Chapter 5.5]
Flash ROM: 1Kbyte area available for user
5.1
Control Approach
User can control the built-in hardware of S1S60000 according to the following approaches.
Control from network
Control from host interface
Control form external I2C master
Control from serial interface
Table 5.1 shows relation between the control approaches and target hardware of control.
Table 5.1
Relation between Control Approaches and Target Hardware
Control approaches
Built-in
register
GPIO
I2C Slave
EEPROM
Flash ROM
From network
From host interface
From external I2C master
-
From serial interface
: Accessible
: Partially accessible
: Not accessible
5.1.1
Control from Network
Since S1S60000 contains the protocol processing function, it becomes possible to read or control output of GPIO
and I2C from network by designating URI.
Following shows the URI designation format.
All characters are
ASCII characters and case insensitive.
Designation format:
http://Address:8080/Target[/Destination][?Data]
Address
IP address assigned to S1S60000. Target port number of access is constantly
8080.
Target
Specify one of the followings (target of access)
GPIO, I2C, EEPROM
In order to prevent inappropriate rewrite, you can prohibit rewrite from
network. For the detail, refer to Chapters 5.2.10, 5.2.11 and 5.2.12.
Destination
It depends on the target hardware of read/write such as memory and registers.
Data
It is the data indicating the operation to be conducted on the destination. It
depends on the destination. You can specify two or more data by separating
them with “&”.
To the control request, S1S60000 sends the return value in the following three responses.
All return values in
the three responses are coded in the same ASCII character string.
In HTTP response header
X-DEVICE-VALUE: Return value
In HEAD element of HTML
<META NAME=“DEVICE-VALUE” CONTENT=“Return value”>
In BODY element of HTML
<DIV CLASS=“DEVICE-VALUE”>Return value</DIV>
When the hardware control ended unsuccessfully, S1S60000 returns the error using the status line of HTTP
response header.