We showcased the Barracuda Embedded Web Server running on ThreadX and NetX together with Express Logic at the Embedded Systems Conference in Silicon Valley.
We demonstrated a PacMan game running in a browser and controlled via a telnet client. The purpose with the PacMan game is to show how a modern user interface can be updated in real time, over Ethernet, from an embedded device.
Download
The PacMan game is bundled with the Barracuda Demo and Tutorial.
|
|
How the Telnet to Pacman Server Works
The Barracuda Embedded Web Server's Lua Server Pages (LSP) plugin provides a framework for applications designed in the Lua scripting language. The game controller, which is designed entirely in the Lua language, is responsible for proxying the traffic between the telnet client and the PacMan game running in the browser. The game controller Lua script uses ready to use components such as the high level socket API.
- A browser navigates to the PacMan "game controller" running in the server.
- The PacMan game, which is completely implemented in JavaScript, is loaded into the browser.
- The browser loads all resources such as the sound files.
- The game's JavaScript code starts to execute and the code opens a persistent bi-directional communication channel to the server.
- The game is now ready to accept a telnet connection.
- A telnet client connects to the server.
- The game controller connects the two clients together and initiates the game.
- Keyboard events are sent from the telnet client to the PacMan game running in the browser via the game controller proxy.
- When the game ends, JavaScript code sends an event to the game controller, which then terminates the telnet connection.
Posted in News
Looking for Guidance?
Don't let networking, security, and device management hold you back! Let Real Time Logic help your business, development team, or customers save time and money by handling these complex tasks for you.
With a wealth of experience creating IoT solutions and embedded device interfaces, we're well-equipped to dramatically improve your products and how you build them. And if you prefer to tackle things on your own, check out our extensive list of embedded web server and IoT tutorials.
Whether you choose to work with us or take the DIY route, we're here to help you succeed. Let's team up and make your vision a reality!
IoT Toolkit
Barracuda App Server
Expedite your IoT and edge computing development with the "Barracuda App Server Network Library", a compact client/server multi-protocol stack and IoT toolkit with an efficient integrated scripting engine. Includes Industrial Protocols, MQTT client, SMQ broker, WebSocket client & server, REST, AJAX, XML, and more. The Barracuda App Server is a programmable, secure, and intelligent IoT toolkit that fits a wide range of hardware options.
TLS Client & Server
TLS Stack & IoT Protocols
SharkSSL is the smallest, fastest, and best performing embedded TLS stack with optimized ciphers made by Real Time Logic. SharkSSL includes many secure IoT protocols.
SMQ IoT Protocol
IoT Device Control
SMQ lets developers quickly and inexpensively deliver world-class management functionality for their products. SMQ is an enterprise ready IoT protocol that enables easier control and management of products on a massive scale.
Secure MQTT
Secure MQTT Client
SharkMQTT is a super small secure MQTT client with integrated TLS stack. SharkMQTT easily fits in tiny microcontrollers.