Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

emu_device

Device-gate emulator — replays recorded device frames to an ingest endpoint at a controlled rate, so device-facing GClasses and ingest pipelines can be tested without real hardware.

A standalone utility yuno (built under utils/c/emu_device, installed to /yuneta/bin). Run it from the CLI, not deployed as a managed service.

How it works

C_EMU_DEVICE
    __output_side__ : C_IOGATE > C_CHANNEL > C_PROT_RAW > C_TCP   (connects to `url`)
    C_TIMER

Configuration

AttributeDefaultPurpose
url—__output_side__ target (device gate to feed)
window1Frames to send per interval
interval1000Interval between bursts (ms)
leading—Base64 frame sent once on connect
path / database / topic—TimeRanger2 replay source (records with a frame64 field)
from_t / to_t / from_rowid / to_rowid—Time / rowid range of the replay. A time is read as tranger2_time_of_text() reads a time bound, and passed to the tranger as text, which takes a date to the unit of the topic’s axis: "from_t": "2026-10-01T00:00:00+0000", "from_t": "-10" (the last 10 units of the topic’s t axis of each key: 10 seconds, or 10 milliseconds on an sf_t_ms topic). A number of another shape ("007", "1,5") or a text that is no date stops the replay with the ERROR “time bound refused” (why, bound, value). Up to 7.29.3 "007" was 7, "1,5" or "garbage" selected nothing in silence, and a date stayed in seconds on a topic in milliseconds
key / notkey—Key filters (default: all keys)
user_flag_mask_set / user_flag_mask_notset—User-flag filters
system_flag_mask_set / system_flag_mask_notset—System-flag filters
timeout2000Timer tick (ms)

Commands

CommandParametersDescription
read-parameters—Window, interval, frames sent / loaded
write-windowwindowSet frames-per-interval
write-intervalintervalSet interval (ms)
help—Command help

Debugging

GClassLevelShows
C_EMU_DEVICEinfoConnect / send / finish activity