Getting Started
20G233-00 E1
2017-10-20
Page 16
2.1.4 Starting up the G233
» Press one of the user buttons. The G233 sends an initial HTTP request to the web
server and the display is turned on.
» To end the application manually (i.e.to turn off the display and stop communication
with the server) go to the start window and press and hold the backward button B2.
2.2 Setting the LEDs
The LEDs can be set using a server script, e.g. using Ruby as described in the following
example:
» Set up the TCP server:
» Wait for the connection and accept it:
» Send the command for starting the LED application (command: 0x01):
» Send the LED configuration in a 16-bit command:
This command can be sent cyclically to adapt the configuration.
2.3 Exchanging the Fonts
The fonts can be exchanged using a server script, e.g. using Ruby as described in the
following example:
» Set up the TCP server:
» Wait for the connection and accept it:
» Send the command for starting the font application (command: 0x02):
» Wait for the start command (0x10)
» Send the total font image size in byte (as 16-bit integers)
» Send image cyclically in 1024 byte packages:
- For each package, wait for the data request command 0x20
- Send one 1024 byte package
server = TCPServer.new('192.168.3.60', 8090)
socket = server.accept()
socket.print 0x01
socket.print "\r\n"
socket.print {LED-Config}
socket.print "\r\n"
server = TCPServer.new('192.168.3.60', 8090)
socket = server.accept()
socket.print 0x02
socket.print "\r\n"