This document discusses using PHP as middleware in embedded systems. It begins by describing challenges in embedded systems like hardware limitations and difficulties with deployment and updates. It then proposes using PHP and various PHP extensions to address these challenges by acting as software glue between applications and hardware. The document outlines various tasks like porting libraries to the embedded platform, developing and debugging PHP applications for embedded systems, and performance tuning. It provides examples of using PHP for tasks like interfacing with REST APIs, handling different data formats, encryption, and data storage. Overall it argues that PHP can serve as an effective middleware solution in embedded systems development.
10. ●
Request the developer account to 3rd party
● Get the technical document
● Build the test environment
● Download sample code
● Test all APIs with JAVA
● … OK
14. Embedded System
An embedded system is a computer system
designed for specific control functions within a
larger system, often with real-time computing
constraints.
15. ● No APT, no YUM
● Hardware limitation
● ! Scale
● Deploy/update not easy
48. Design
● Concurrent server (No multi-thread in PHP)
● IPC mechanism (broadcast/multicast/unicast)
● Client/Server command protocol
● No framework, all things handmade
60. ● Prepare toolchain
● Configure with minimized features
● Resolve dependency & version conflict
● Resolve compilation error
● Test all functions in the target machine
● Reduce library size