Engineering Notes
How to Port a DejaOS App to a Different Access Control Terminal
Port a DejaOS app to a new access control terminal by matching its SDK and device modules, then prove the credential path on the actual hardware.

When you port a DejaOS app to a different access control terminal, keep the parts of the JavaScript that express the workflow, install the components for the new target, and retest the first real credential event. Start there even if the home screen already loads. A working screen confirms that the display path started. A test credential lets you tell whether the input module, application logic, and screen agree on what happened.
Follow the call from JavaScript to the reader
DejaOS runs JavaScript on embedded devices using QuickJS. Its graphics stack uses LVGL, with the dxUi module exposing UI controls to JavaScript. Device components give an app access to functions such as reading a card or decoding a QR code when the target hardware and component support them. An app can reach its home screen before a reader has even been initialized. DejaOS overview · DejaOS architecture
The DejaOS documentation describes three kinds of modules. Some contain only JavaScript, such as the logging module. Some include a native library shared across devices with the same system-on-chip. Others include a native library built for a specific device model. The QR and NFC modules are examples of model-specific modules. Their JavaScript imports can look familiar while the shared library shipped beside the wrapper changes. DejaOS module system
Picture an app that accepts a credential, looks up its status, and displays the result. The lookup rules and the screen states are good candidates for reuse. Keep the reader call in a small adapter that converts the target component’s output into a consistent application event. For example, an adapter can pass the credential type and an opaque test ID to the lookup code. When the input component changes, the adapter is the first place to check.

Match the project to the device you have
- Record the exact model and hardware configuration of the replacement unit, its installed firmware and SDK major version, and the inputs your app needs. Check the manufacturer’s model information and the actual sample unit together. Two units advertised under one product family can differ in fitted options.
- Open app.dxproj and select the target device model. Reselect the component versions for that target and install them through the DejaOS tools. The resulting dxmodules directory contains the wrappers and native libraries selected for the new build. Treat the copy from the previous terminal as a record of what it ran.
- Open the generated wrappers for each device-facing import. Check what starts the component, which functions or events the wrapper exposes, and what the result contains. A change in a return value can affect your adapter even when the import name stays the same.
- Do the first full sync and start the app on the target unit. Capture startup logs from the same run. Log successful initialization separately for the screen, reader, and application services so a field issue can be traced to the step that failed.
DejaOS’s quick start covers matching the device, reselecting component versions, and using a full sync on the first deployment. If the move also changes the SDK major version, budget time to review the application lifecycle. For example, the UI runs in a dedicated Worker in SDK 2.0 and in the unified runtime in SDK 4.0. DejaOS quick start · DejaOS UI editor and runtime notes
Use the simulator to check the screen states
In the Windows x64 UI simulator, you can run the project’s JavaScript and check how the app renders through LVGL. Use test data to exercise long messages, an unavailable service, and the return to the ready screen. The simulator documentation identifies many hardware and device-service components as mocks or best-effort implementations. Put the simulator result in the UI column of your acceptance record. Save the hardware column for observations on the actual terminal. DejaOS Windows UI simulator
Verify a real read on the replacement terminal
Use a bench unit and a designated test credential. Assign the test run an ID and record the reader event, the application outcome, and the visible screen result against that ID. Record enough to trace the path while keeping raw credential identifiers and personal information out of the handover log.
| Test on the target unit | Evidence to keep |
|---|---|
| Start the app from a cold boot | Confirm from startup logs that the reader initialized. Note the point at which the ready screen accepts input. |
| Present a known test credential once | Record the reader event and the application outcome. Check that the result appears once on screen. |
| Exercise a missing record and a service timeout separately | Record the outcome for each case. Check that the terminal displays the right message and returns to ready. |
| Restart the app and repeat the read | Confirm one result from the new run and verify that the app clears the prior result before accepting the next read. |
If a known test card produces no event, check the target component’s initialization and whether the unit has the expected reader hardware. If the logs show a valid event and the screen never changes, follow the adapter output into the application’s state update. If one presentation causes two workflow outcomes, compare the input event count against the number of registered handlers. Each observation gives you a smaller place to look.
Record the exact combination you can approve
Before signing off on another batch, keep one short record for each tested combination. Include the device model and fitted reader, firmware and SDK version, app revision, component versions, and the test results. If the installation depends on a controller, output, or backend service, add an observable result for that integration using the project’s approved test setup.
Put this record beside the purchase order or deployment manifest. When a supplier proposes a replacement model, the team can point to the input, software build, and expected behavior it must reproduce. For a Feocey project, pair the record with the supported-device guidance and the pre-order integration questions. DejaOS on Feocey devices · Access terminal integration questions before ordering
References
Put the guide to work
Find the reference for your model.
Compare each device with your requirements. Confirm configuration and compatibility for the complete installation.
Discuss your project ↗