Scannex ip.buffer User Manual
© UK 2007-2021 Scannex Electronics Ltd. All rights reserved worldwide.
14.2. Script
The ip.buffer uses the Lua scripting engine. The Lua compiler and byte-code interpreter is
about one-tenth the size of a Java virtual machine (JVM) – about 100k. Since it is very
small it runs well in embedded devices with limited processing power.
Scannex have extended the core of Lua to include various extensions. Most extensions are
small, but they enhance the overall usability of Lua. Documentation, tutorials and other
information for Lua is available from www.lua.org
In addition, the printed book “Programming in Lua” by Roberto Ierusalimschy is a valuable
guide.
The ip.buffer is designed to use Lua for storing and processing all configuration
parameters, as well as for the ability to filter and modify the incoming data streams
14.2.1. Edit
http://192.168.0.235/setup/script/edit.shtm
This link allows complete editing of the Lua script. Typically this script is used for filtering
and processing the incoming record data.
Any changes to the script will require a reboot of the Lua core.
Rebooting the Lua core is not the same as rebooting the ip.buffer. All channels
continue to be connected, and all delivery processes continue while Lua
reboots.
Rebooting Lua will temporarily disconnect all sources
14.2.2. Download
http://192.168.0.235/lua/script.shtm
This link allows the download of the Lua script – either to the browser or to file.
14.2.3. Upload
http://192.168.0.235/setup/script/load.shtm
This link allows a pre-written Lua script to be sent to the ip.buffer. Again, changes to the
script will require a reboot of the Lua core. (See section 14.2.1)
1
Most of the ip.buffer is actually coded in C++. Lua is an extension to the system. C++ tasks
continue to run to perform the main collection, delivery, and housekeeping of the system.
2
Also all “emulation” destinations are disconnected.
Page 117
Scannex ip.buffer User Manual
© UK 2007-2021 Scannex Electronics Ltd. All rights reserved worldwide.
14.2. Script
The ip.buffer uses the Lua scripting engine. The Lua compiler and byte-code interpreter is
about one-tenth the size of a Java virtual machine (JVM) – about 100k. Since it is very
small it runs well in embedded devices with limited processing power.
Scannex have extended the core of Lua to include various extensions. Most extensions are
small, but they enhance the overall usability of Lua. Documentation, tutorials and other
information for Lua is available from www.lua.org
In addition, the printed book “Programming in Lua” by Roberto Ierusalimschy is a valuable
guide.
The ip.buffer is designed to use Lua for storing and processing all configuration
parameters, as well as for the ability to filter and modify the incoming data streams
14.2.1. Edit
http://192.168.0.235/setup/script/edit.shtm
This link allows complete editing of the Lua script. Typically this script is used for filtering
and processing the incoming record data.
Any changes to the script will require a reboot of the Lua core.
Rebooting the Lua core is not the same as rebooting the ip.buffer. All channels
continue to be connected, and all delivery processes continue while Lua
reboots.
Rebooting Lua will temporarily disconnect all sources
14.2.2. Download
http://192.168.0.235/lua/script.shtm
This link allows the download of the Lua script – either to the browser or to file.
14.2.3. Upload
http://192.168.0.235/setup/script/load.shtm
This link allows a pre-written Lua script to be sent to the ip.buffer. Again, changes to the
script will require a reboot of the Lua core. (See section 14.2.1)
1
Most of the ip.buffer is actually coded in C++. Lua is an extension to the system. C++ tasks
continue to run to perform the main collection, delivery, and housekeeping of the system.
2
Also all “emulation” destinations are disconnected.
Page 117