SDK
Esta página aún no está en español, así que se muestra en inglés.
Events
Every signal in the Kode Dot's firmware, grouped by the Active Object that owns it, with the event each one carries.
What it is
Active Objects talk only through events. An event is a signal, a number that says what happened or what is asked, plus a small struct of data copied into it. This page lists every signal the SDK and kodeOS define, one table per owner, so you can find what to subscribe to and what to post.
How it is connected
flowchart LR subgraph pubs["Published: below MAX_PUB_SIG"] pub["An owner"] -- "publish" --> any["Every subscriber"] end subgraph posts["Posted: at or above MAX_PUB_SIG"] req["Your AO"] -- "post" --> own["One owner"] own -. "reply to who" .-> req end class pub ao class any ao class req app class own ao
Each table is one owner. How to read its columns:
- Range is
publishfor a signal belowMAX_PUB_SIGandpostfor one at or above it. - Event names the struct the signal carries. A bare
QEvtis made once as astatic constand takes no pool block, so it cannot fail to allocate.
Three more rules help when you read a table:
- Replies go to the
QActive *whothe request carried. - The private timers are
QTimeEvtmembers of the owner and nobody else sends them. - A
*_TEST_REQ_SIGruns a row of the console'stest. The verdict returns as a publishedTEST_RESULT_SIGorTEST_SKIP_SIG, after the row's own step signals when it has them.
The signals are numbered in kqp_signals.h, and the structs they carry are declared in the same file. kqp.c checks with _Static_assert that each struct fits the pool block it is allocated from, so an event that grows too big fails the build instead of the board.
sdk/kqp explains the pools that hold the events and the priorities that decide who runs first.
Specifications
AO_LedMgr
Every signal AO_LedMgr owns.
| Signal | Range | Event | What it does |
|---|---|---|---|
LED_SET_SIG | publish | LedEvt | Light the LED (last colour, or white) or darken it, by on. |
LED_TOGGLE_SIG | publish | LedEvt | Invert the LED. on is unused. |
LED_BLINK_PERIOD_SIG | publish | LedBlinkEvt | Set the heartbeat period. |
LED_HEARTBEAT_ENABLE_SIG | publish | LedEvt | Start or stop the heartbeat, by on. |
LED_RGB_SIG | publish | LedRgbEvt | Set the colour; (0, 0, 0) is off. |
LED_TEST_SIG | publish | LedTestEvt | One step of the LED row: a colour to judge or its outcome. |
LED_TEST_REQ_SIG | post | bare QEvt | Run test component=led; the verdict returns as TEST_RESULT_SIG. |
LED_HEARTBEAT_SIG, LED_TEST_WAIT_SIG | post | QTimeEvt | Private timers, in order: the heartbeat blink; nobody answered the colour in time. |
AO_AppMgr
Published signals: every Active Object that subscribed hears them.
| Signal | Range | Event | What it does |
|---|---|---|---|
APP_FLASH_DONE_SIG | publish | AppFlashDoneEvt | A write ended well; name is the app installed, empty for the C5 image. AO_Radio publishes it too. |
APP_FLASH_FAIL_SIG | publish | AppFlashFailEvt | A write failed. AO_Radio publishes it too. |
APP_FLASH_PROGRESS_SIG | publish | AppProgressEvt | 0 % when a write starts, then each whole percent, with the file and what is written. The Opening sheet and the LED follow a write by this family. |
APP_ENTRY_SIG | publish | AppEntryEvt | One installed app, in answer to APP_LIST_REQ_SIG. |
APP_LIST_END_SIG | publish | ListEndEvt | The last entry of the page; more says another page follows. |
APP_EVICTED_SIG | publish | AppEvictedEvt | An install took this app's place in the region, one event per app, before the write starts; kept says a copy is on the card. The app being replaced is not one. |
APP_CAT_RSP_SIG | publish | AppCatRspEvt | The outcome of APP_CAT_REQ_SIG. |
APP_ERASE_DONE_SIG | publish | AppEraseDoneEvt | An erase ended: what went, what stayed and where. The console and the launcher both close on it, and a request refused while AO_AppMgr is busy ends the same way. |
APP_CARD_FULL_SIG | publish | bare QEvt | The copy of an app does not fit the card, and that app has none there. Published once for each card mounted. The interface says the card is full when it is in sight. |
AO_AppMgr: posted signals
Posted signals go to one Active Object: requests, replies to the asker, and the private signals and timers.
| Signal | Range | Event | What it does |
|---|---|---|---|
APP_FLASH_CHUNK_SIG | post | bare QEvt | Private: pace the next chunk of a write. |
APP_ADOPT_SIG | post | bare QEvt | Private: the app_pending mailbox holds a verified image at boot; adopt it. |
APP_ERASE_REQ_SIG | post | AppFlashEvt | Remove the named app from the region. |
APP_CAT_REQ_SIG | post | AppCatReqEvt | Assign or drop an app's categories. |
APP_RUN_REQ_SIG | post | AppFlashEvt | Boot the named installed app; the board resets. |
APP_LIST_REQ_SIG | post | AppListReqEvt | Post APP_ENTRY_SIG for a page of installed apps to the asker, then APP_LIST_END_SIG. |
APP_EVICT_REQ_SIG | post | AppEvictReqEvt | Ask which installed apps an install of this size and name would evict. |
APP_EVICT_ENTRY_SIG | post | AppEvictEntryEvt | To the asker: one app the install would evict, in eviction order. |
APP_EVICT_END_SIG | post | AppEvictEndEvt | To the asker: the last entry. |
APP_RECV_REQ_SIG | post | AppRecvReqEvt | An image is about to arrive on the console, for the region, the inactive OS slot or the mailbox. |
FLASH_REQ_SIG | post | FlashReqEvt | One source-to-sink transfer. The only way to ask for an image to be written. |
APP_RECV_IDLE_SIG, APP_RECV_LAUNCH_SIG | post | QTimeEvt | Private timers, in order: no chunk for KODE_RECV_IDLE_MS, the host is gone; the drain delay after a good install is over, boot it. |
APP_CANCEL_REQ_SIG | post | bare QEvt | Leave the install in hand, as a failure: the person went back. |
APP_FIND_REQ_SIG | post | AppFindReqEvt | Where is the app named project: its extent in the apps region, or whether the card has it. Answered to the asker alone. |
APP_FIND_RSP_SIG | post | AppFindRspEvt | To the asker: the answer to APP_FIND_REQ_SIG. |
APP_KEEP_ONLY_REQ_SIG | post | AppKeepOnlyReqEvt | Remove every installed app but the one named, their data folders with them. Answered to the asker alone, once the last folder is dealt with. |
APP_KEEP_ONLY_RSP_SIG | post | AppKeepOnlyRspEvt | To the asker: the answer to APP_KEEP_ONLY_REQ_SIG. |
APP_KEEP_ONLY_STEP_SIG | post | bare QEvt | Private, posted to itself once per header: erase the next removed app's image header. |
APP_TIDY_TIMEOUT_SIG | post | QTimeEvt | Private timer: AO_Storage did not answer a folder request in APPMGR_TIDY_MS. |
APPDATA_GET_REQ_SIG | post | AppDataGetReqEvt | Fetch one app's data folder from a URL and have AO_Storage write it. Posted directly. |
APPDATA_GET_RSP_SIG | post | AppDataGetRspEvt | To the asker: how that fetch ended. |
INSTALL_INFO_REQ_SIG | post | InstallInfoReqEvt | Write the records of the last app install and the last kodeOS update to the asker's port (src), then post APP_REQ_RSP_SIG to who. The console's install_info. |
APP_BACKUP_TMO_SIG | post | QTimeEvt | Private timer: the wait, the pace or the deadline of the copy of an app to the card in hand. |
Console receive protocol
The signals of a payload that arrives on the console.
| Signal | Range | Event | What it does |
|---|---|---|---|
RECV_READY_SIG | publish | bare QEvt | The destination is open and the console is in raw mode: the host may stream. Becomes >|ready. |
RECV_ACK_SIG | publish | bare QEvt | One full chunk was consumed: the host may send the next (>|ack). The whole flow control of a transfer. AO_Console alone hears it. |
RECV_DONE_SIG | publish | bare QEvt | The payload arrived and verified. A terminal install is installed; a file_put is a file on FAT. |
RECV_FAIL_SIG | publish | bare QEvt | Refused, or the bytes did not survive the trip. |
RECV_STALL_SIG | publish | bare QEvt | The host stopped sending and never came back. |
RECV_AGAIN_SIG | publish | bare QEvt | AO_AppMgr refused the stream for now: the card stayed busy while an app the image would evict was copied to it, or a compressed image evicts an app with no copy that its length on the wire did not. The console answers >err code=4 msg=busy; ask again. |
RECV_WAIT_SIG | publish | bare QEvt | AO_AppMgr holds the stream back while an app the image would evict is copied to the card, before the console is armed. Published when the wait begins and every second of it. Becomes >|wait, and the console gives the command its time again. |
RECV_DATA_SIG | post | RecvDataEvt | One chunk of the payload, from AO_Console to the receiving AO. |
AO_Storage
Published signals: every Active Object that subscribed hears them.
| Signal | Range | Event | What it does |
|---|---|---|---|
STORAGE_ENTRY_SIG | publish | StorageEntryEvt | One file found by sd_ls or fs_ls. A page that an Active Object asks for, such as a page of ls or of kode_sys_file_list(), posts its entries to the asker alone. |
STORAGE_LIST_END_SIG | publish | ListEndEvt | The last entry of the page. |
STORAGE_INFO_SIG | publish | StorageInfoEvt | One medium's mount state and usage, and for a card that is not mounted, why: no card, no FAT volume, or a card that would not come up. |
STORAGE_TEST_SIG | publish | StorageTestEvt | One phase of the card test, with what it measured. |
STORAGE_CARD_SIG | publish | StorageCardEvt | The card was mounted, or is mounted no more: mounted. |
AO_Storage: posted signals
Posted signals go to one Active Object: requests, replies to the asker, and the private signals and timers.
| Signal | Range | Event | What it does |
|---|---|---|---|
STORAGE_CMD_SIG | post | StorageCmdEvt | Run one command (op) on a medium. |
STORAGE_LIST_PAGE_SIG | post | StorageListPageEvt | Post a page of the bootable images on every medium to the asker. |
STORAGE_CMD_RSP_SIG | post | bare QEvt | To who: the command has run. |
STORAGE_OPEN_REQ_SIG | post | StorageOpenEvt | Open a named file for reading. |
STORAGE_READ_REQ_SIG | post | bare QEvt | Fill a free buffer and send it. |
STORAGE_NEXT_SIG | post | StorageBufEvt | A borrowed buffer handed back: refill it and send it again. |
STORAGE_CLOSE_REQ_SIG | post | bare QEvt | Close the open file. |
STORAGE_OPEN_RSP_SIG | post | StorageOpenRspEvt | To the opener: whether the file is open. |
STORAGE_DATA_SIG | post | StorageDataEvt | To the reader: one buffer of the file. |
STORAGE_WRITE_REQ_SIG | post | StorageWriteEvt | Put a caller's data in a file, in one event. |
STORAGE_WRITE_RSP_SIG | post | StorageWriteRspEvt | To the writer: how the write ended. |
STORAGE_DESC_REQ_SIG | post | StorageDescReqEvt | Read the manifest out of the front of one file. |
STORAGE_DESC_RSP_SIG | post | StorageDescRspEvt | That file's identity, back to who. |
APPDATA_REQ_SIG | post | AppDataReqEvt | Resolve an app's data folder. |
APPDATA_FIELDS_SIG | post | AppDataFieldsEvt | To the asker: the folder's fields. |
APPDATA_ICON_SIG | post | AppDataIconEvt | To the asker: one third of the icon. |
APPDATA_END_SIG | post | bare QEvt | To the asker: the conversation is over. |
APPDATA_RM_REQ_SIG | post | AppDataReqEvt | Delete one app's data folder on the internal partition. |
APPDATA_RM_RSP_SIG | post | AppDataRmRspEvt | To the asker: how the delete ended. |
STORAGE_FIELD_REQ_SIG | post | StorageFieldReqEvt | Read, write or dump one field of the card's table. |
STORAGE_FIELD_RSP_SIG | post | StorageFieldEvt | To the requester: the field. |
STORAGE_PATH_REQ_SIG | post | StoragePathEvt | Stat, list, cat, mkdir, unlink or rmdir one path. |
STORAGE_PATH_RSP_SIG | post | StoragePathRspEvt | To the requester: the answer of stat, mkdir, unlink, rmdir and move. |
STORAGE_LINE_SIG | post | StorageLineEvt | To the requester of cat: one line of the file, or the terminator. |
STORAGE_PAIR_REQ_SIG | post | StoragePairEvt | Move or copy a source to a destination. |
STORAGE_TEXT_REQ_SIG | post | StorageTextEvt | Put text in a file. |
STORAGE_RECV_REQ_SIG | post | StorageRecvEvt | A file is about to arrive on the console (file_put). |
STORAGE_SDJOB_DONE_SIG | post | KqpWorkerDoneEvt | storage_sd to AO_Storage: a call to the card returned. |
STORAGE_WRITE_NEXT_SIG, STORAGE_TEST_NEXT_SIG, STORAGE_CAT_NEXT_SIG, STORAGE_COPY_NEXT_SIG, STORAGE_RECV_IDLE_SIG, STORAGE_SDJOB_TO_SIG | post | QTimeEvt | Private timers, in order: the next chunk of a write; the next step of the card test; the next batch of lines of a cat; the next chunk of a cp; no chunk of an arriving file for KODE_RECV_IDLE_MS; a call to the card did not return in time. |
APPDATA_PUT_REQ_SIG | post | AppDataPutEvt | Write one app's data folder on the internal partition: app.json, then the icon when there is one. Posted directly, never published. |
APPDATA_PUT_RSP_SIG | post | AppDataPutRspEvt | To the asker: how that put ended. |
APPDATA_PUT_NEXT_SIG | post | bare QEvt | Private self-post: the icon's step of a put in progress. |
STORAGE_APP_WIPE_REQ_SIG | post | AppDataReqEvt | Take every file of one app off both media: the images at a medium's root whose descriptor names the project, and its data folder. Posted directly, never published. |
STORAGE_APP_WIPE_RSP_SIG | post | StorageAppWipeRspEvt | To the asker: what went and what stayed on each medium. |
STORAGE_APP_WIPE_NEXT_SIG | post | QTimeEvt | Private timer: the next file of the wipe in progress. |
STORAGE_WRITE_ABANDON_REQ_SIG | post | StorageWriteAbandonEvt | The writer who ends its write in flight. |
STORAGE_SWEEP_NEXT_SIG | post | QTimeEvt | Private timer: the next pass over the card's root for what a cut copy of an app left there. |
HTTP_FILE_REQ_SIG | post | HttpFileReqEvt | Download a URL into a file, from kode_sys_http_get_file(). Answered to the asker with one HTTP_FILE_PROGRESS_SIG per chunk and one HTTP_FILE_RSP_SIG. |
HTTP_FILE_PROGRESS_SIG | post | HttpFileEvt | To the asker: a chunk of its download is in the file. written bytes so far, of total when the server said it. |
HTTP_FILE_RSP_SIG | post | HttpFileEvt | To the asker: its download ended. rc, stopped when the asker ended it, the HTTP status, written, size and total. |
HTTP_FILE_STOP_SIG | post | HttpFileStopEvt | End the download its asker who started, from kode_sys_http_file_stop(). |
HTTP_FILE_RETRY_SIG, HTTP_FILE_STALL_SIG | post | QTimeEvt | Private timers, in order: try again the chunk that found another transfer holding the file; AO_Net has said nothing of the download for KODE_HTTP_FILE_STALL_MS. |
FILE_STATUS_RSP_SIG | post | FileRspEvt | Answers kode_sys_file_status(), to the asking AO. |
FILE_SPACE_RSP_SIG | post | FileRspEvt | Answers kode_sys_file_space(): the volume's total and free kilobytes. |
FILE_READ_RSP_SIG | post | FileRspEvt | Answers kode_sys_file_read(): got bytes of the window are in the asker's buffer. |
FILE_WRITE_RSP_SIG | post | FileRspEvt | Answers kode_sys_file_write(). |
FILE_LIST_END_SIG | post | FileRspEvt | Ends a page of STORAGE_ENTRY_SIG asked by kode_sys_file_list() or by the console's ls: count entries and more. |
FILE_FOLDER_RSP_SIG | post | FileRspEvt | Answers kode_sys_file_create_folder(). |
FILE_DELETE_RSP_SIG | post | FileRspEvt | Answers kode_sys_file_delete(). |
FILE_RENAME_RSP_SIG | post | FileRspEvt | Answers kode_sys_file_rename(). |
AO_Autotest
Every signal AO_Autotest owns.
| Signal | Range | Event | What it does |
|---|---|---|---|
TEST_RESULT_SIG | publish | TestResultEvt | Any AO: the outcome of a self-test that could not be answered on the spot. It carries the origin of the run, and AO_Autotest ignores a verdict that is not its own. |
TEST_SKIP_SIG | publish | TestResultEvt | Any AO: a self-test that could not be judged because what it needs is absent (no card, no cable, no tag). ok is unused. |
AUTOTEST_BEGIN_SIG | publish | AutotestBeginEvt | A run was taken or refused. |
AUTOTEST_ROW_SIG | publish | AutotestRowEvt | One row started or ended. |
AUTOTEST_END_SIG | publish | AutotestEndEvt | The run is over. |
AUTOTEST_HOLD_SIG | publish | AutotestHoldEvt | The run waits for whoever asked, before the rows that need hands. |
AUTOTEST_REPORT_SIG | publish | AutotestReportEvt | One row of the report kept from the last user run, then an end marker. |
PSRAM_TEST_SIG | publish | PsramTestEvt | What the PSRAM row tested and found, once per run, before its verdict. |
AUTOTEST_RUN_REQ_SIG | post | AutotestRunReqEvt | Run a group of rows, or one by name. |
AUTOTEST_CANCEL_REQ_SIG | post | AutotestClientEvt | End the run in flight after the row in flight. |
AUTOTEST_CONTINUE_SIG | post | AutotestClientEvt | The answer to a hold. |
AUTOTEST_REPORT_REQ_SIG | post | AutotestClientEvt | Publish the kept report. |
AUTOTEST_PSRAM_STEP_SIG, AUTOTEST_BUDGET_SIG | post | QTimeEvt | Private timers, in order: the PSRAM row's next step is due; the row in flight ran out of budget, or nobody answered a hold. |
AO_Power
Every signal AO_Power owns.
| Signal | Range | Event | What it does |
|---|---|---|---|
POWER_EVT_SIG | publish | PowerEvt | A battery reading. |
POWER_SHIP_SIG | publish | bare QEvt | The BATFET is about to open (ship mode). Published in the step before the write, so every owner can prepare. |
POWER_FIELD_SIG | publish | PowerFieldEvt | One chip field's value, or the outcome of writing it. |
POWER_CTRL_SIG | publish | PowerCtrlEvt | The answer to one POWER_CTRL_REQ_SIG, a refusal included. |
POWER_TEST_SIG | publish | PowerTestEvt | One step of the power_plug row. |
POWER_CRITICAL_SIG | publish | PowerCriticalEvt | The cell is critical on battery (critical true), or that it is over (false). Said once per fall, at KODE_POWER_CRITICAL_PCT (10 %) or under, or at the first reading under the cut, so it always comes before the readings that end in ship mode. Over when a cable comes or the level climbs KODE_POWER_CRITICAL_REARM_PCT (3 %) above the mark. One of two static events, and the reading that decided it is the POWER_EVT_SIG just before it. kscreen shows its notice for it with kscreen_critical(). |
POWER_DUMP_REQ_SIG | post | bare QEvt | Log everything both chips say. |
POWER_PEEK_REQ_SIG | post | bare QEvt | One quiet reading, published as POWER_EVT_SIG, with the wall clock kept. AO_LowPower asks once a minute while the board is ASLEEP or the CPU part of an app's rest runs. |
POWER_CABLE_REQ_SIG | post | bare QEvt | Read whether a cable is in, one bit of the charger, and publish a whole reading as POWER_EVT_SIG only when that differs from the last one published. AO_LowPower asks every KODE_LOWPOWER_CABLE_LOOK_MS (2000 ms) while the board sleeps, with power_cable_request(). A static event. |
POWER_SHIP_REQ_SIG | post | bare QEvt | Ship mode: open the BATFET and cut the battery from VSYS. power_ship_request() posts it for the console verb ship_mode, for AO_Power's own cut at a low cell, for AO_Display when the panel never answers on battery, and for the factory reset's ship end. |
POWER_SHIP_ARM_SIG | post | PowerShipArmEvt | Count KODE_SHIP_UNPLUG_MS from the cable leaving, then tell the asker. |
POWER_SHIP_DUE_SIG | post | bare QEvt | To the asker of the arming: the cable has been out for KODE_SHIP_UNPLUG_MS. |
POWER_FIELD_REQ_SIG | post | PowerFieldReqEvt | Read, write or dump one field of the PMIC or the gauge. |
POWER_TEST_REQ_SIG | post | PowerTestReqEvt | Run test component=pmic or gauge. |
POWER_CTRL_REQ_SIG | post | PowerCtrlReqEvt | One owner-level operation on the PMIC: boost, charge, charge limit, reset. |
POWER_POLL_SIG, POWER_PULSE_SIG, POWER_CTRL_TICK_SIG, POWER_TEST_STEP_SIG, POWER_SHIP_TMO_SIG | post | QTimeEvt | Private timers, in order: the poll; the next half of the write pulse of the LED; the one-shot wait of Power_waiting is over; the power_plug row looks at the cable again; the countdown after the cable left is over. |
POWER_BOOST_TEST_REQ_SIG | post | PowerBoostTestReqEvt | The pads delivery test's boost on or off, from power_boost_test_request(). Answered once with POWER_BOOST_TEST_SIG. |
POWER_BOOST_TEST_SIG | post | PowerBoostTestEvt | To the asker: the boost as the delivery test left it. |
AO_LowPower
Present only with CONFIG_KODE_LOWPOWER. The first three published signals are the protocol of the board's rest (sdk/kaos/lowpower), and LOWPOWER_PART_SIG is the news of an app's rest of single parts (sdk/kaos/part-rest).
| Signal | Range | Event | What it does |
|---|---|---|---|
LOWPOWER_ROUND_SIG | publish | LowPowerRoundEvt | A round of readiness is open for a target state, ASLEEP or OFF. Each owner that joined rests its device and answers once with lowpower_ready(). parts is 0 for a round of the board. A round for an app's rest is posted to one owner alone, with parts the part it is asked for. |
LOWPOWER_STATE_SIG | publish | LowPowerStateEvt | The board changed state: state is AWAKE, ASLEEP, OFF or DARK, with the cause and the prev state. State AWAKE also arrives with prev AWAKE when a round was abandoned, or when a request for AWAKE ended an app's rest, so the restore must be idempotent. Arm no QTimeEvt on state ASLEEP. State DARK, the dark wake, is for the owners of lowpower_join_dark() alone: every other owner stays at rest. |
LOWPOWER_REFUSED_SIG | publish | LowPowerRefusedEvt | A request or a round did not go through. src says whose request it answers, and why is who: why, a copy. |
LOWPOWER_PART_SIG | publish | LowPowerPartEvt | News of an app's rest: what is ANSWER (the one answer to a request, with rc, src and why), WOKE (a wake of the P4, with cause) or TAKEN (the board's rest, or a request for AWAKE, took over). parts holds the parts at rest. The board stays AWAKE throughout. |
LOWPOWER_REQ_SIG | post | LowPowerReqEvt | Go to a state. From the console verbs sleep and power_off, from kode_sys_power_sleep() and kode_sys_power_off(), and from AO_Radio when its sentinel could not go back down. |
LOWPOWER_READY_SIG | post | LowPowerReadyEvt | One participant's answer to a round: who, round, busy and a reason copy. |
LOWPOWER_INPUT_SIG | post | LowPowerInputEvt | A console line came in. One static event for each port, so a wake from BLE or the channel is never lost to an empty pool. |
LOWPOWER_REST_SIG | post | LowPowerReqEvt | An owner whose time woke the board (AO_Scheduler) asks to sleep again, unless somebody used the board. |
LOWPOWER_WAKE_AT_SIG | post | LowPowerWakeAtEvt | An owner's work falls due at a real time (khal_time_us()). Asleep, the board wakes for it. |
LOWPOWER_DARK_DONE_SIG | post | LowPowerDarkDoneEvt | A dark-wake owner's work in a dark wake is finished: who, the id lowpower_join_dark() gave. |
LOWPOWER_PART_REQ_SIG | post | LowPowerPartReqEvt | Put parts away (parts, and for the CPU part wake_touch, wake_pin with wake_level, wake_after_ms), or with end bring them all back. From kode_sys_rest(), kode_sys_rest_end(), kode_rest() and the console's rest. |
LOWPOWER_PART_WAKE_SIG | post | LowPowerPartWakeEvt | A source the app chose woke the P4 from the CPU part: cause is KODE_LP_WAKE_PIN or KODE_LP_WAKE_TIMER. One static event per source, posted from the wake line's interrupt and the wake timer. |
LOWPOWER_MINUTE_SIG | post | bare QEvt | The minute timer of ASLEEP ran out. A static event, posted from the callback of khal_timer_once(). |
LOWPOWER_ROUND_TMO_SIG, LOWPOWER_IDLE_TMO_SIG, LOWPOWER_DARK_TMO_SIG, LOWPOWER_RETRY_TMO_SIG, LOWPOWER_STATE_RETRY_SIG | post | QTimeEvt | Private timers, in order: a round's budget, or the grace before OFF; the idle time; the bound of a dark wake, KODE_LOWPOWER_DARK_MAX_MS; the wait before a requested round begins again; a state change that found no event is published again. |
LOWPOWER_TOP_SIG | post | bare QEvt | From AO_Buttons: GPIO35 moved. While ASLEEP the tick is stopped and no settle runs, so this is what wakes the board on the top button. |
It subscribes to IOEXP_INPUT_SIG, BUTTON_EVT_SIG, TOUCH_EVT_SIG, POWER_EVT_SIG, MQTT_MSG_SIG and CONFIG_REQ_SIG.
AO_Scheduler
Present only with CONFIG_KODE_SCHEDULER (sdk/kaos/scheduler).
| Signal | Range | Event | What it does |
|---|---|---|---|
SCHED_SET_REQ_SIG | post | SchedSetReqEvt | Make or change a console entry. when of off removes it, or switches mqtt off. |
SCHED_SET_AO_REQ_SIG | post | SchedSetAoReqEvt | Make or change an entry that posts an event to an Active Object. |
SCHED_REMOVE_REQ_SIG | post | SchedNameReqEvt | Remove an entry of code. |
SCHED_LIST_REQ_SIG | post | SchedNameReqEvt | One entry, or every entry when the name is empty. |
SCHED_ENTRY_SIG | post | SchedEntryEvt | To the asker: one entry (owner, stored, next_s, name, when, cmd). The widest tenant of the large pool. |
SCHED_END_SIG | post | SchedEndEvt | To the asker: the request is answered (st, why, count). |
SCHED_LINE_DONE_SIG | post | bare QEvt | The console answered the line it was given, so the next may go. |
SCHED_CHECK_DONE_SIG | post | SchedCheckDoneEvt | AO_Net made the check of the mqtt entry. |
SCHED_UP_SIG | post | bare QEvt | From kode_init(): every Active Object has its queue, so the scheduler may post. |
SCHED_DUE_SIG, SCHED_WORK_TMO_SIG | post | QTimeEvt | Private timers, in order: the earliest minute is near, or the clock is asked again; the work of a minute ran KODE_SCHED_WORK_BOUND_MS. |
SCHED_WALL_SET_SIG | post | bare QEvt | From the hook registered with kdrv_clocks: the wall clock was written by a person or a time server, so the minute timer is armed again. A static event. |
SCHED_LINE_BUSY_SIG | post | bare QEvt | From sched_line_busy(): the console was busy with another command when the line it was given arrived, and answered nothing. A static event. |
SCHED_RETRY_SIG | post | QTimeEvt | Private one-shot timer: a line the console was busy for is given again KODE_SCHED_RETRY_MS after the refusal. |
An entry of code fires as a SchedFireEvt (name) with the signal that the entry named. AO_Scheduler subscribes to LOWPOWER_ROUND_SIG, LOWPOWER_STATE_SIG and LOWPOWER_REFUSED_SIG when CONFIG_KODE_LOWPOWER is on.
AO_Display
Published signals: every Active Object that subscribed hears them.
| Signal | Range | Event | What it does |
|---|---|---|---|
DISPLAY_STATE_SIG | publish | DisplayStateEvt | Whether the panel is up and how bright it is driven. Published once at startup and again for each DISPLAY_STATE_REQ_SIG. |
DISPLAY_MIRROR_INFO_SIG | publish | MirrorInfoEvt | The mirror's live state. |
DISPLAY_TEST_SIG | publish | DisplayTestEvt | One step of the display row. |
DISPLAY_REPAINT_SIG | publish | bare QEvt | The display row is over, or the glass came back from a rest with new framebuffers (CONFIG_KODE_LOWPOWER). Whoever draws the glass fetches its buffers again and invalidates all of it. |
DISPLAY_SLEEP_SIG | publish | DisplaySleepEvt | How one request to sleep or wake the glass ended: asleep, rc, why and who. Once per DISPLAY_SLEEP_REQ_SIG, done or refused. |
DISPLAY_PARK_SIG | publish | DisplayParkEvt | The glass is about to sleep for kode_sys_screen_sleep(). Whoever draws stops, says so with kode_sys_screen_parked(seq) within KODE_LOWPOWER_GLYPHS_WAIT_MS, and draws nothing until DISPLAY_REPAINT_SIG. |
AO_Display: posted signals
Posted signals go to one Active Object: requests, replies to the asker, and the private signals and timers.
| Signal | Range | Event | What it does |
|---|---|---|---|
DISPLAY_FLUSH_SIG | post | FlushEvt | Push one rendered rectangle to the panel. |
DISPLAY_BRIGHTNESS_SIG | post | BrightnessEvt | Set the brightness, in percent. |
DISPLAY_STATE_REQ_SIG | post | bare QEvt | Publish DISPLAY_STATE_SIG again, for whoever started late. |
DISPLAY_CAPTURE_REQ_SIG | post | DisplayCaptureReqEvt | Copy the frame on the glass and say how big it is. |
DISPLAY_CAPTURE_RSP_SIG | post | DisplayCaptureRspEvt | To the requester: the copy. |
DISPLAY_CAPTURE_END_SIG | post | bare QEvt | The capture is done with the buffer; the flush path may write it again. |
DISPLAY_MIRROR_START_SIG | post | MirrorStartEvt | Begin streaming the panel; the next frame is the whole panel. |
DISPLAY_MIRROR_STOP_SIG | post | bare QEvt | Stop streaming. |
DISPLAY_MIRROR_ACK_SIG | post | MirrorAckEvt | The host has received up to seq; releases credit. |
DISPLAY_MIRROR_INFO_REQ_SIG | post | bare QEvt | Publish DISPLAY_MIRROR_INFO_SIG. |
DISPLAY_SHOT_REQ_SIG | post | DisplayShotReqEvt | Encode the front framebuffer whole as one JPEG and lend it. |
DISPLAY_SHOT_RSP_SIG | post | DisplayShotRspEvt | To the requester: the JPEG. |
DISPLAY_SHOT_END_SIG | post | bare QEvt | The requester is done with the shot; take the buffer back. |
DISPLAY_TEST_REQ_SIG | post | bare QEvt | Run test component=display. |
DISPLAY_TEST_STEP_SIG | post | bare QEvt | Private, self-posted: paint the next band of the field. |
DISPLAY_MINUTE_REQ_SIG | post | bare QEvt | With CONFIG_KODE_LOWPOWER, from AO_LowPower each minute while ASLEEP: write the time into the panel's memory. |
DISPLAY_GLYPHS_SIG | post | DisplayGlyphsEvt | With CONFIG_KODE_LOWPOWER, from display_glyphs_hand(): the renderer has stopped, and here is the strip of digits (a pointer into the renderer's PSRAM, an exception to the rule that events carry copies). |
DISPLAY_MIRROR_TICK_SIG, DISPLAY_TEST_WAIT_SIG, DISPLAY_GLYPHS_TMO_SIG, DISPLAY_RESTORE_SIG | post | QTimeEvt | Private timers, in order: the mirror's pacer, re-armed after each pass; nobody answered the field in time; the renderer handed no glyphs in KODE_LOWPOWER_GLYPHS_WAIT_MS; the glass could not be put back and is tried again. |
DISPLAY_JPEG_REQ_SIG | post | DisplayJpegReqEvt | Encode the requester's RGB565 frame and copy the JPEG into its buffer, from display_jpeg_request(). |
DISPLAY_HEALTH_SIG | post | QTimeEvt | Private timer: the glass is looked at. |
DISPLAY_SLEEP_REQ_SIG | post | DisplaySleepReqEvt | Put the glass to sleep or wake it (sleep, who), from kode_sys_screen_sleep() and from AO_LowPower for an app's rest. Answered with one DISPLAY_SLEEP_SIG. |
DISPLAY_SUPPLY_REQ_SIG | post | DisplaySupplyReqEvt | From AO_LowPower, display_supply_off_request(): take the supply of a panel already asleep for an app's rest. Answered with lowpower_ready() for round. |
DISPLAY_COMPOSE_REQ_SIG | post | DisplayComposeReqEvt | Run one pass of the pixel accelerator on the requester's pictures, from display_compose_run() (sdk/kdrv/compose). |
AO_Touch
Every signal AO_Touch owns.
| Signal | Range | Event | What it does |
|---|---|---|---|
TOUCH_EVT_SIG | publish | TouchEvt | A touch sample, pinned to the glass. |
TOUCH_TEST_SIG | publish | TouchTestEvt | One step of the guided touch test: a target to tap, or its outcome. |
TOUCH_FIELD_REQ_SIG | post | TouchFieldReqEvt | Read, write or dump one field of the CST820. |
TOUCH_FIELD_RSP_SIG | post | TouchFieldEvt | To the requester: the field. |
TOUCH_TEST_REQ_SIG, TOUCH_TEST_REQ_FROM_SIG | post | bare QEvt, TestReqEvt | Run test component=tp. The second names who asked (origin), and every step and the verdict carry it back. |
TOUCH_POLL_SIG, TOUCH_TEST_TMO_SIG, TOUCH_RESTORE_SIG | post | QTimeEvt | Private timers, in order: the poll while a finger is down; the operator did not tap the target in time; with CONFIG_KODE_LOWPOWER, the controller is written back to its awake settings again. |
TOUCH_LOOK_SIG | post | QTimeEvt | Private one-shot timer: look again for a controller that did not answer the bring-up. |
TOUCH_TEST_CANCEL_SIG | post | TestReqEvt | The same for the guided touch test: it ends here, with no verdict. |
TOUCH_INJECT_SIG | post | TouchEvt | Private: the console's touch or tap moved the finger, for the judge of the touch test. |
AO_Buttons
Every signal AO_Buttons owns.
| Signal | Range | Event | What it does |
|---|---|---|---|
BUTTON_EVT_SIG | publish | ButtonEvt | One button changed. |
BUTTON_HOLD_SIG | publish | ButtonHoldEvt | TOP or BOT has been down for KODE_BUTTON_HOLD_MS. |
BUTTON_HOME_HOLD_SIG | publish | ButtonHoldEvt | BOT has been down for KODE_HOME_HOLD_MS (3 s); id is always KDRV_BTN_BOT. Once per press, after that press's BUTTON_HOLD_SIG. A static event, so it goes out with the pool dry. AO_Boot turns it into HOME_SIG in an app built with KODEOS_HOME_HOLD. |
BUTTON_DOUBLE_SIG | publish | ButtonDoubleEvt | TOP was pressed twice in quick succession. |
BTN_STATE_SIG | publish | ButtonsStateEvt | All six buttons now, in answer to BUTTONS_DUMP_REQ_SIG. |
BTN_TEST_SIG | publish | ButtonsTestEvt | One step of the guided button test. |
BUTTONS_DUMP_REQ_SIG | post | bare QEvt | Log every button's state. |
BUTTONS_TOP_INT_SIG | post | bare QEvt | Private: GPIO35 moved. Posted from the pin's interrupt through kqp_post_from_isr(). |
BUTTONS_TEST_REQ_SIG, BUTTONS_TEST_REQ_FROM_SIG | post | bare QEvt, TestReqEvt | Run test component=buttons. The second names who asked (origin), and every step and the verdict carry it back. |
BUTTONS_ROTATE_SIG | post | ButtonsRotateEvt | Turn the pad by quarter turns, from buttons_rotation_request(). |
BUTTONS_PAD_IDLE_SIG | post | bare QEvt | Private: an injected release left the pad idle, so a turn that waited may apply. |
BUTTONS_SETTLE_SIG, BUTTONS_TEST_TMO_SIG, BUTTONS_HOLD_TMO_SIG | post | QTimeEvt | Private timers, in order: A change was seen, take the confirming sample; the operator did not press the button in time; a button has been down for KODE_BUTTON_HOLD_MS. |
BUTTONS_TEST_CANCEL_SIG | post | TestReqEvt | The guided button test that client origin asked for ends here, with no verdict. |
BUTTONS_INJECT_SIG | post | ButtonEvt | Private: the console's btn moved a button, for the judge of the button test. |
AO_Boot
Every signal AO_Boot owns.
| Signal | Range | Event | What it does |
|---|---|---|---|
HOME_SIG | publish | bare QEvt | The bottom button was held: the interface goes home. Published in both roles. |
BOOT_STATE_SIG | publish | BootStateEvt | The boot state, in answer to BOOT_INFO_REQ_SIG. |
BOOT_OS_SWITCH_SIG | post | bare QEvt | Point otadata at the inactive kodeOS slot and reset. |
BOOT_APP_RUN_SIG | post | BootRunEvt | Write a boot request (NEW or ALWAYS, by mode) and reset so the bootloader jumps. |
BOOT_INFO_REQ_SIG | post | bare QEvt | Log the boot state. |
BOOT_EXIT_REQ_SIG | post | bare QEvt | Reset. In an app this is the way home. |
BOOT_HOME_DEFER_SIG | post | bare QEvt | The app asks for a moment before the hold resets it, from kode_sys_home_defer(). |
BOOT_HOME_NOW_SIG | post | bare QEvt | The app is ready, go home now, from kode_sys_home_now(). |
BOOT_RADIO_PARKED_SIG | post | bare QEvt | Private, from boot_radio_parked(): AO_Radio has done with the C5 for the jump. |
BOOT_NET_LEFT_SIG | post | bare QEvt | Private, from boot_net_left(): AO_Net has left the Kode channel for the jump. |
BOOT_HOME_GRACE_SIG, BOOT_LEAVE_TMO_SIG | post | QTimeEvt | Private timers, in order: the grace is over (or, once extended, the cap); the step of the leave that is running ran out of time. |
BOOT_FIRST_FRAME_SIG | post | bare QEvt | The interface's first frame has reached the glass. |
BOOT_KEEP_SIG | publish | bare QEvt | A restart into kodeOS is a moment away: the panel's owner leaves the frame on the glass and says so to the next boot. Nobody answers. |
FACTORY_RESET_REQ_SIG | post | FactoryResetReqEvt | Forget everything the board remembers but its identity and the station lock. One FACTORY_RESET_RSP_SIG to the asker, always. |
FACTORY_RESET_RSP_SIG | post | FactoryResetRspEvt | To the asker: the step that stopped the reset, or that it is done. |
BOOT_HEALTHY_TMO_SIG | post | QTimeEvt | Private timer: the board has been up long enough to confirm itself, and then long enough to forget its crashes. |
BOOT_RESET_AGAIN_SIG | post | QTimeEvt | Private timer: ask AO_Radio again for the wipe it refused as busy. |
BOOT_RESET_STEP_SIG | post | bare QEvt | Private self-post: erase the next NVS namespace of the reset. |
BOOT_RESET_TMO_SIG | post | QTimeEvt | Private timer: the step of the reset that is running ran out of time. |
BOOT_STABLE_SIG | publish | BootStableEvt | The kodeOS running has stayed up KODE_BOOT_STABLE_MS: running, where its partition starts, and other, what became of the other slot. Once per boot, kodeOS role only. |
BOOT_OS_SWITCH_FAIL_SIG | publish | bare QEvt | A BOOT_OS_SWITCH_SIG could not point otadata at the other slot, and the board stays on this one. |
BOOT_NVS_SET_SIG | post | BootNvsSetEvt | Write value under key in the app's store, kapp, from kode_sys_nvs_set(). Nobody is answered, and a pair the store refuses is a warning in the log, as is one that would take the apps' keys past KODE_NVS_SHARE_MAX (16384 bytes). |
BOOT_LOG_FLUSHED_SIG | post | bare QEvt | Private, from boot_log_flushed(): AO_Log has written every line posted before the leave began. One per LOG_FLUSH_REQ_SIG. |
AO_IoExp
Every signal AO_IoExp owns.
| Signal | Range | Event | What it does |
|---|---|---|---|
IOEXP_INPUT_SIG | publish | IoexpInputEvt | What the expander's eight pins read. Published on every read of the input register. |
IOEXP_INT_SIG | post | bare QEvt | Private: the TCA6408A's INT line went low. |
IOEXP_READ_REQ_SIG | post | bare QEvt | Read the input register now and publish IOEXP_INPUT_SIG, changed or not. |
IOEXP_FIELD_REQ_SIG | post | IoexpFieldReqEvt | Read, write or dump one field of the expander. |
IOEXP_FIELD_RSP_SIG | post | IoexpFieldEvt | To the requester: the field. |
IOEXP_TEST_REQ_SIG | post | bare QEvt | Run test component=ioexp. |
IOEXP_RETRY_SIG | post | QTimeEvt | Private timers, in order: INT fired and the input register did not read: ask again. |
AO_Ir
Every signal AO_Ir owns.
| Signal | Range | Event | What it does |
|---|---|---|---|
IR_RX_SIG | publish | IrRxEvt | One frame the receiver heard. Not published for a frame this board sent itself. |
IR_SEND_REQ_SIG | post | IrSendEvt | Transmit one NEC frame. |
IR_SEND_RAW_REQ_SIG | post | IrSendRawEvt | Transmit the frame the requester lends, on its carrier. |
IR_CAPTURE_REQ_SIG | post | IrCaptureEvt | Fill the requester's buffer with the next frame heard. |
IR_INFO_REQ_SIG | post | IrInfoReqEvt | The console's ir: the block's own status. |
IR_INFO_RSP_SIG | post | IrInfoEvt | To the requester: the status. |
IR_LAST_REQ_SIG | post | IrLastEvt | The last frame heard, written into the requester's memory and signalled on a semaphore. |
IR_TEST_REQ_SIG | post | bare QEvt | Run test component=ir. |
IR_RX_RDY_SIG | post | bare QEvt | Private: a capture is waiting in the driver. Posted from the receive interrupt. |
IR_JOB_DONE_SIG | post | KqpWorkerDoneEvt | ir_worker to AO_Ir: a call to the C5 returned. |
IR_ECHO_SIG, IR_CAPTURE_TO_SIG, IR_TEST_TO_SIG, IR_JOB_TO_SIG | post | QTimeEvt | Private timers, in order: the echo-suppression window closed; the pending capture reached its deadline; an attempt of the production row heard nothing; a call to the C5 did not return in time. |
IR_SEND_RAW_RSP_SIG | post | StatusRspEvt | Answers kode_sys_ir_send_raw(), to the asking AO. |
IR_CAPTURE_RSP_SIG | post | IrCaptureRspEvt | Answers kode_sys_ir_capture(), to the asking AO. |
IR_LAST_RSP_SIG | post | IrLastRspEvt | Answers kode_sys_ir_last(), to the asking AO. |
IR_LINK_TO_SIG | post | QTimeEvt | Private one-shot timer, armed again by each request taken while requests wait for the C5 link: each request past its own budget is answered KODE_TIMEOUT. |
AO_Nfc
Published signals: every Active Object that subscribed hears them.
| Signal | Range | Event | What it does |
|---|---|---|---|
NFC_TAG_SIG | publish | NfcTagEvt | One tag the poller activated. Published only while a request is in flight. |
NFC_EMU_SIG | publish | NfcEmuEvt | One turn of an emulation window: a field arriving, a select, a read. |
AO_Nfc: posted signals
Posted signals go to one Active Object: requests, replies to the asker, and the private signals and timers.
| Signal | Range | Event | What it does |
|---|---|---|---|
NFC_READ_REQ_SIG | post | NfcReadEvt | Energise and answer with the first tag activated inside the window. |
NFC_NDEF_REQ_SIG | post | NfcNdefEvt | Read or write an NDEF message on the first tag activated. |
NFC_NDEF_RSP_SIG | post | NfcNdefRspEvt | To the requester: the NDEF answer. |
NFC_INFO_REQ_SIG | post | NfcInfoReqEvt | The console's nfc: the reader's status. |
NFC_INFO_RSP_SIG | post | NfcInfoEvt | To the requester: the status. |
NFC_KEYS_REQ_SIG | post | NfcKeysReqEvt | Sweep the public Mifare key dictionary against one block. |
NFC_KEYS_RSP_SIG | post | NfcKeysRspEvt | To the requester: which key opened it. |
NFC_DUMP_REQ_SIG | post | NfcDumpReqEvt | Read every sector a Mifare Classic opens and stream it, one sector per tick. |
NFC_DUMP_RSP_SIG | post | NfcDumpRspEvt | To the requester: the dump is finished. |
NFC_FIELD_REQ_SIG | post | NfcFieldEvt | Listen for a window with the reader's own field off and describe the field somebody else put on the antenna. |
NFC_FIELD_RSP_SIG | post | NfcFieldRspEvt | To the requester: the window's statistics. |
NFC_EMU_REQ_SIG | post | NfcEmuReqEvt | Present the Kode Dot as a passive NFC-A card, or stop. |
NFC_EMU_RSP_SIG | post | NfcEmuRspEvt | To the console: a start or stop finished. |
NFC_CERT_REQ_SIG | post | NfcCertEvt | Raise, switch or drop the held maximum-drive field. Posted only in a build with KODEOS_NFC_CERT. |
NFC_TEST_REQ_SIG | post | bare QEvt | Run test component=nfc. |
NFC_TICK_SIG, NFC_DEADLINE_SIG | post | QTimeEvt | Private timers, in order: pump rfalNfcWorker() once and arm again; the request in flight reached its window. |
NFC_READ_RSP_SIG | post | NfcReadRspEvt | Answers kode_sys_nfc_read_tag(), to the asking AO. |
NFC_CERT_RSP_SIG | post | StatusRspEvt | Answers kode_cert_nfc_carrier(), to the asking AO. |
AO_Rfid
Every signal AO_Rfid owns.
| Signal | Range | Event | What it does |
|---|---|---|---|
RFID_TAG_SIG | publish | RfidTagEvt | One EM4100 ID decoded inside a window. Published only while a request is in flight. |
RFID_READ_REQ_SIG | post | RfidReqEvt | Energise and report the first EM4100 ID decoded inside the window. |
RFID_WRITE_REQ_SIG | post | RfidWriteReqEvt | Clone a 5-byte ID onto a T5577. |
RFID_INFO_REQ_SIG | post | RfidInfoReqEvt | The console's rfid. |
RFID_INFO_RSP_SIG | post | RfidInfoEvt | To the requester: the status. |
RFID_OP_RSP_SIG | post | RfidOpRspEvt | To the console: a rfid_read or rfid_write finished. |
RFID_FIELD_REQ_SIG | post | RfidFieldEvt | Read the demod line for a window with the carrier off and describe it. |
RFID_FIELD_RSP_SIG | post | RfidFieldRspEvt | To the requester: the window's statistics, by value. |
RFID_CERT_REQ_SIG | post | RfidCertEvt | Raise, switch or drop the held maximum-drive 125 kHz carrier. Posted only with KODEOS_NFC_CERT. |
RFID_TEST_REQ_SIG | post | bare QEvt | Run test component=rfid. |
RFID_WORKER_DONE_SIG | post | KqpWorkerDoneEvt | rfid_worker to AO_Rfid: the job finished. |
RFID_DEADLINE_SIG | post | QTimeEvt | Private timers, in order: the request's window is over. |
RFID_EMU_REQ_SIG | post | RfidEmuEvt | Play an EM4100 ID as a tag. |
RFID_EMU_STOP_REQ_SIG | post | RfidEmuEvt | End the emulation. |
RFID_EMU_RSP_SIG | post | RfidEmuRspEvt | Answers kode_sys_rfid_emulate_start() and _stop(), to the asking AO. |
RFID_CERT_RSP_SIG | post | StatusRspEvt | Answers kode_cert_rfid_carrier(), to the asking AO. |
AO_Audio
Every signal AO_Audio owns.
| Signal | Range | Event | What it does |
|---|---|---|---|
AUDIO_TEST_SIG | publish | AudioTestEvt | One step of the audio row. |
AUDIO_FILE_RSP_SIG | publish | AudioFileRspEvt | A recording reached a file, or did not. |
AUDIO_FIELD_SIG | publish | AudioFieldEvt | One codec field's value, or the outcome of writing it. |
AUDIO_DONE_SIG | post | AudioDoneEvt | Answers kode_sys_audio_play(), to the asking AO, once the sound was heard or refused: the only end of a play an Active Object can wait for. |
AUDIO_TONE_REQ_SIG | post | AudioToneEvt | Emit one tone, snapped to a detector bin. |
AUDIO_FIELD_REQ_SIG | post | AudioFieldReqEvt | Read, write or dump one field of the codec. |
AUDIO_INFO_REQ_SIG | post | AudioInfoReqEvt | What the audio path is and what it is set to. |
AUDIO_REC_FILE_REQ_SIG | post | AudioFileReqEvt | Record for a while into a file. |
AUDIO_PLAY_REQ_SIG | post | AudioBufEvt | Play the frames in the event, then wake the blocked waiter or answer the asking AO. |
AUDIO_REC_REQ_SIG | post | AudioBufEvt | Fill the event's buffer and wake the waiter. |
AUDIO_STREAM_OPEN_REQ_SIG | post | AudioBufEvt | Open the stream; wake the waiter once it plays. |
AUDIO_STREAM_CLOSE_REQ_SIG | post | AudioBufEvt | End the stream; wake the waiter once what it held has been heard. |
AUDIO_TEST_REQ_SIG | post | bare QEvt | Run test component=audio. |
AUDIO_JOB_SIG | post | KqpWorkerDoneEvt | The codec worker finished a job. |
AUDIO_GUARD_SIG | post | QTimeEvt | Private timers, in order: A job handed to the worker never answered. |
AUDIO_INFO_RSP_SIG | post | AudioInfoRspEvt | Answers kode_sys_audio_info_read(), to the asking AO. |
AUDIO_REC_RSP_SIG | post | AudioDoneEvt | Answers kode_sys_audio_record(), to the asking AO; frames says how many were recorded. |
AUDIO_STREAM_OPEN_RSP_SIG | post | AudioDoneEvt | Answers kode_sys_audio_stream_open(), to the asking AO. |
AUDIO_STREAM_CLOSE_RSP_SIG | post | AudioDoneEvt | Answers kode_sys_audio_stream_close(), to the asking AO. |
AUDIO_STREAM_IDLE_SIG | post | QTimeEvt | Private timer: read how long the open stream has gone without a write. At KODE_SYS_AUDIO_STREAM_IDLE_MS (10 s) the stream is closed; short of it the timer counts what is left. |
AUDIO_REC_STOP_REQ_SIG | post | bare QEvt | End the recording into memory in flight at its next block. Ignored when none runs and for a recording into a file. A static event, one queued at a time. |
AUDIO_SETTING_REQ_SIG | post | AudioSettingReqEvt | Write the latest volume, microphone gain or mute value. One request is queued per setting, and AUDIO_FIELD_SIG answers. |
AO_Imu
Every signal AO_Imu owns.
| Signal | Range | Event | What it does |
|---|---|---|---|
IMU_TEST_SIG | publish | ImuTestEvt | One step of the IMU row. |
MAG_TEST_SIG | publish | MagTestEvt | One step of the magnetometer row. |
IMU_READ_REQ_SIG | post | ImuReadEvt | One sample into the caller's own struct, answered inside the step that receives it. |
IMU_CAPTURE_REQ_SIG | post | ImuCaptureReqEvt | Arm the FIFO for the witness window of the haptic row. |
IMU_ARMED_SIG | post | ImuArmedEvt | To whoever asked: the FIFO is armed. |
IMU_DRAIN_REQ_SIG | post | ImuDrainReqEvt | Drain what the FIFO holds and measure it at a rate. |
IMU_ENERGY_SIG | post | ImuEnergyEvt | To whoever asked: the energy measured. |
MAG_READ_REQ_SIG | post | MagReadEvt | One magnetometer sample into the caller's own int32_t[3]. |
IMU_TEST_REQ_SIG | post | bare QEvt | Run test component=imu. |
MAG_TEST_REQ_SIG | post | bare QEvt | Run test component=mag. |
IMU_WAIT_SIG, IMU_REST_SIG, MAG_REST_SIG | post | QTimeEvt | Private timers, in order: A self-test's poll, a chunk of a witness window or the gyroscope's turn-on; the IMU rests after KODE_IMU_REST_AFTER_MS; the same for the QMC5883P. |
IMU_SAMPLE_RSP_SIG | post | ImuSampleRspEvt | Answers kode_sys_imu_read(), to the asking AO. |
MAG_SAMPLE_RSP_SIG | post | MagSampleRspEvt | Answers kode_sys_mag_read(), to the asking AO. |
MAG_CAL_REQ_SIG | post | MagCalEvt | Read, store or clear the magnetometer's calibration, answered inside the step that receives it. The blocking calls of kode.h use it. |
MAG_CAL_RSP_SIG | post | MagCalRspEvt | Answers kode_sys_mag_cal_get(), _set() and _clear(), to the asking AO. |
AO_Haptic
Every signal AO_Haptic owns.
| Signal | Range | Event | What it does |
|---|---|---|---|
HAPTIC_TEST_SIG | publish | HapticTestEvt | One step of the haptic row. |
HAPTIC_FIELD_SIG | publish | HapticFieldEvt | One field's value, or the outcome of writing it. |
HAPTIC_DONE_SIG | publish | HapticDoneEvt | A buzz ended. |
HAPTIC_PLAY_REQ_SIG | post | HapticPlayEvt | One buzz: ms and gain_pct. |
HAPTIC_FIELD_REQ_SIG | post | HapticFieldReqEvt | Read, write or dump one field of the driver. |
HAPTIC_TEST_REQ_SIG | post | bare QEvt | Run test component=haptic. |
HAPTIC_TICK_SIG, HAPTIC_TAIL_SIG, HAPTIC_WAIT_SIG | post | QTimeEvt | Private timers, in order: feed the RTP FIFO; the chip has played what it was left with; the row's stillness window or the deadline on a reply from AO_Imu. |
HAPTIC_STOP_REQ_SIG | post | bare QEvt | End the pattern or the hold early. A static event. |
HAPTIC_RETRY_SIG | post | QTimeEvt | Private one-shot timer: look again for a chip that did not answer at boot. |
AO_Radio
Published signals: every Active Object that subscribed hears them.
| Signal | Range | Event | What it does |
|---|---|---|---|
RADIO_STATE_SIG | publish | RadioStateEvt | The C5 link's state. Published on every change and for each RADIO_STATE_REQ_SIG. |
WIFI_STATE_SIG | publish | WifiStateEvt | Where the Wi-Fi connection stands. |
WIFI_SCAN_ENTRY_SIG | publish | WifiScanEntryEvt | One network found. |
WIFI_SCAN_END_SIG | publish | WifiScanEndEvt | The last one: how many, and whether the ceiling cut the scan short. cut says a stop or a newer Wi-Fi request ended it early, and gen is the generation of the newest request the listing answers. |
WIFI_SCAN_AGAIN_SIG | publish | WifiScanEndEvt | The Wi-Fi listing in flight ended early for a newer wifi_scan and starts again: cut, how many entries the cut sweep published, and the newer request's gen. One WIFI_SCAN_END_SIG, the newest sweep's, closes the listing. |
WIFI_SAVED_ENTRY_SIG | publish | WifiSavedEvt | One remembered network, name only. |
WIFI_SAVED_END_SIG | publish | WifiScanEndEvt | The last remembered one, in the same shape. |
BLE_STATE_SIG | publish | BleStateEvt | What the BLE half is doing. Published on every change. |
BLE_PAIR_SIG | publish | BlePairEvt | A pairing wants a code shown, has ended, or was refused with no code (phase REFUSED, with the cause in outcome). A refusal is told at most once in KODE_BLE_PAIR_REFUSED_QUIET_MS (10 s) and changes nothing on the board. |
BLE_SCAN_ENTRY_SIG | publish | BleScanEvt | One device seen. |
BLE_SCAN_END_SIG | publish | WifiScanEndEvt | The last one: a count and whether the scan worked. |
C5_RUN_REQ_SIG | publish | bare QEvt | Published by whoever needs the C5 running without its link, AO_Audio for the amplifier. |
C5_RUNNING_SIG | publish | bare QEvt | The C5 has been out of reset for KODE_C5_BOOT_MS: its own boot is over. |
BLE_APP_WRITE_SIG | publish | BleAppWriteEvt | A central wrote to the app's own service: a copy of the bytes. Heard by an Active Object that called kode_sys_ble_subscribe(). |
BLE_APP_LINK_SIG | publish | BleAppLinkEvt | A central connected or left, one edge each. |
BLE_APP_TAKEN_SIG | publish | BleAppTakenEvt | A read took the oldest value of a queued characteristic; the event says how many are left. |
EXP_POWER_SIG | publish | ExpPowerDoneEvt | A switch of J3's +3.3V_EXT is over. rc is KODE_OK when the rail is as asked, KODE_IO_ERROR when the C5 would not drive the pin (the wish is dropped), KODE_DENIED when the link would not come up or went with the switch (the wish stays for the next link-up). |
C5_AMP_OFF_SIG | publish | bare QEvt | From radio_amp_request(false): the amplifier is not wanted. AO_Radio drives the C5's IO4 low over the link, now or at the next link-up. |
AO_Radio: posted signals
Posted signals go to one Active Object: requests, replies to the asker, and the private signals and timers.
| Signal | Range | Event | What it does |
|---|---|---|---|
RADIO_UP_REQ_SIG | post | bare QEvt | Bring the C5 link up. The outcome is the next RADIO_STATE_SIG. |
RADIO_DOWN_REQ_SIG | post | bare QEvt | Tear the link down; the C5 keeps running. |
RADIO_STATE_REQ_SIG | post | bare QEvt | Publish RADIO_STATE_SIG again. |
RADIO_JOB_SIG | post | KqpWorkerDoneEvt | Private: a job came back from the radio worker. |
RADIO_LINK_LOST_SIG | post | RadioLostEvt | Private: the link to the C5 is gone, from the driver's notification. |
RADIO_SVC_JOB_SIG | post | KqpWorkerDoneEvt | Private: a KODE request came back from the service worker. |
KODE_SVC_RSP_SIG | post | KodeSvcEvt | Private: a KODE service on the C5 answered. |
ID_SIGN_REQ_SIG | post | IdSignReqEvt | Sign the cloud's challenge with the unit's key on the C5. |
ID_SIGN_RSP_SIG | post | IdSignRspEvt | To the asker: the signature, or why not. |
ID_REQ_SIG | post | IdReqEvt | One identity operation that is not a signature. |
ID_PART_SIG | post | IdPartEvt | To the asker: one piece of DER, in order. |
ID_END_SIG | post | IdEndEvt | To the asker: the operation is over. |
C5_WIPE_REQ_SIG | post | C5WipeReqEvt | Forget the user's secrets: the C5's vault and BLE keys, then the bond store. |
C5_WIPE_RSP_SIG | post | C5WipeRspEvt | To the asker: how far the wipe got. |
RADIO_SCAN_MORE_SIG | post | bare QEvt | Private: a scan finished a channel and the driver's table grew. |
RADIO_TEST_REQ_SIG | post | bare QEvt | Run test component=c5; brings the link up if it is down. |
RADIO_TEST_STEP_SIG | post | bare QEvt | Private: the link is up, take the row's next step. |
RADIO_FIELD_REQ_SIG | post | RadioFieldReqEvt | Read, write or dump one field of the coprocessor. |
RADIO_FIELD_RSP_SIG | post | RadioFieldEvt | To the requester: the field. |
RADIO_RECV_REQ_SIG | post | AppRecvReqEvt | A C5 image is about to arrive on the console. |
RADIO_UNUSED_SIG | post | bare QEvt | To itself: its settle found nothing left that uses the link. |
RADIO_INSTALL_GO_SIG | post | bare QEvt | Private: the staged image is verified and the link is up, start the push. |
RADIO_PARK_REQ_SIG | post | RadioParkEvt | Private, from radio_park_request(): a jump is about to restart the board, park the C5. |
RADIO_SLEEP_NOTE_SIG | post | RadioSleepNoteEvt | With CONFIG_KODE_LOWPOWER, private: the sleep sentinel reports a wake of the P4 that involved the C5 (kind, knocks, tx_sta, tx_serial, tx_hci). |
RADIO_NET_LEFT_SIG | post | RadioNetLeftEvt | With CONFIG_KODE_LOWPOWER, from radio_net_left(): AO_Net closed its sessions for an OFF round, so the link may go down. |
WIFI_SCAN_REQ_SIG | post | WifiScanReqEvt | Scan, with the request's gen. Entries follow on the bus, then WIFI_SCAN_END_SIG. It ends a Wi-Fi scan somebody asked for that is in flight (sdk/kaos/radio). |
WIFI_JOIN_REQ_SIG | post | WifiJoinEvt | Join a network and remember it if it works. |
WIFI_LEAVE_REQ_SIG | post | bare QEvt | Leave the network. The credentials stay remembered, and nothing rejoins until someone asks. |
WIFI_STATE_REQ_SIG | post | bare QEvt | Publish WIFI_STATE_SIG now. |
WIFI_RSSI_REQ_SIG | post | bare QEvt | Refresh the association's signal strength; the answer is the next WIFI_STATE_SIG. |
WIFI_FAST_REQ_SIG | post | WifiFastEvt | No power save on the station (on), or the default back. |
EXP_POWER_REQ_SIG | post | ExpPowerEvt | Switch J3's +3.3V_EXT on or off, from kode_sys_exp_power(). |
WIFI_AUTO_REQ_SIG | post | bare QEvt | Scan and join the best remembered network in range. |
WIFI_LIST_REQ_SIG | post | bare QEvt | Publish the remembered networks, names only. |
WIFI_FORGET_REQ_SIG | post | WifiJoinEvt | Remove a network from the store; the password field stays empty. |
WIFI_START_REQ_SIG | post | bare QEvt | Enable the Wi-Fi service: set the stored flag, bring the link up, autojoin. |
WIFI_STOP_REQ_SIG | post | bare QEvt | Disable it: stop the station and clear the flag. The link stays up. |
BLE_START_REQ_SIG | post | bare QEvt | Bring the BLE stack up. Being up is being on the air. |
BLE_SCAN_REQ_SIG | post | BleScanReqEvt | Listen for advertisers for the time given. |
BLE_STOP_REQ_SIG | post | bare QEvt | Take the BLE stack down. |
BLE_STATE_REQ_SIG | post | bare QEvt | Publish BLE_STATE_SIG now. |
BLE_LINK_SIG | post | bare QEvt | From the driver's callback: a central arrived or left. |
BLE_PAIR_TAKE_SIG | post | bare QEvt | To itself, from the driver's callback: collect the pairing record and publish it. |
BLE_PAIR_REJECT_REQ_SIG | post | bare QEvt | Refuse the pairing in flight. The refusal is said at once in every state, and the hang-up on the peer is a job of the radio worker. |
BLE_UNPAIR_REQ_SIG | post | bare QEvt | Forget every bonded peer. |
RADIO_JOB_GUARD_SIG, KODE_SVC_TMO_SIG, C5_BOOT_SIG, EXP_PULSE_SIG, RADIO_RECV_IDLE_SIG, RADIO_UNMOUNT_RETRY_SIG | post | QTimeEvt | Private timers, in order: the radio worker's job never came back; a KODE request's answer did not come (one timer per service); the C5 it let go has had its boot time; the C5 reset that switches the header's supply on has lasted; no chunk for KODE_RECV_IDLE_MS; the card still answered an unmount as mounted, ask again. |
BLE_APP_VALUE_REQ_SIG | post | BleAppValueReqEvt | Set or notify a value of the app's own service, or push or clear a queued characteristic's values. |
BLE_RSP_REQ_SIG | post | BleRspReqEvt | The name and the maker data the scan response carries from now on. Never stored. |
BLE_PAIR_OPEN_REQ_SIG | post | bare QEvt | Show the board for five minutes, so a new device can pair. Answered by BLE_STATE_SIG. |
BLE_SCAN_RSP_SIG | post | ScanRspEvt | Answers kode_sys_ble_scan(), to the asking AO. rc is KODE_CANCELLED when a newer Bluetooth request took its place. rest is true when rc is KODE_DENIED because an app rests the radio. |
WIFI_SCAN_RSP_SIG | post | ScanRspEvt | Answers kode_sys_wifi_scan(), to the asking AO. rc is KODE_CANCELLED when a newer Wi-Fi request took its place. rest is true when rc is KODE_DENIED because an app rests the radio. |
RADIO_SCAN_ASK_SIG | post | ScanAskEvt | A scan asked by an Active Object or a blocked task: the sweep that WIFI_SCAN_REQ_SIG runs or the listen that BLE_SCAN_REQ_SIG runs, as kind says. An Active Object's entries are posted to it, never published, then its end; a task's rows are written into its waiter. |
WIFI_SCAN_STOP_REQ_SIG | post | bare QEvt | End the listing in flight after its step on the air, from wifi_scan_stop_request(). The listing's WIFI_SCAN_END_SIG says it was cut. |
WIFI_FRAMES_REQ_SIG | post | WifiFramesReqEvt | Start or stop telling an Active Object about the Wi-Fi frames the C5 hears, from wifi_frames_request(). Answered to the asker in every state with WIFI_FRAMES_STATE_SIG. |
WIFI_FRAMES_STATE_SIG | post | WifiFramesStateEvt | To the asker: listening or not, and why. Posted, never published. |
WIFI_FRAMES_TICK_SIG | post | WifiFramesTickEvt | To the asker: one period's counts, before the frames of its batch. Posted, never published. |
WIFI_FRAME_SIG | post | WifiFrameEvt | To the asker: one frame heard. Posted, never published. |
BLE_HEARD_REQ_SIG | post | BleHeardReqEvt | Start or stop telling who about the BLE advertisements the stack hears, from ble_heard_request(). Answered to the asker in every state, always, with BLE_HEARD_STATE_SIG. |
BLE_HEARD_STATE_SIG | post | BleHeardStateEvt | To the asker: listening or not (on), why, and the totals heard and dropped. Posted, never published. |
BLE_HEARD_SIG | post | BleHeardEvt | To the asker: one advertisement heard, with its address, type, level, kind of packet and payload. Posted, never published. |
BLE_HID_REPORT_REQ_SIG | post | BleHidReportEvt | Queue one input report of the HID service for its host, from ble_hid_report_post(). With no report it is a knock, a static event, that wakes the drain for a report of zeroes owed (sdk/kaos/ble-hid). |
RADIO_HEARD_KNOCK_SIG | post | bare QEvt | Private, a static event from NimBLE's host task, owed when the queue has no room: the ring of heard advertisements holds records, or the stack ended the stream's scan. |
RADIO_PROBE_REQ_SIG | post | RadioProbeReqEvt | The radio check, from radio_probe_request(): the C5's card, a Wi-Fi network on a channel or a sweep for it, a BLE name. Answered exactly once with RADIO_PROBE_SIG. |
RADIO_PROBE_SIG | post | RadioProbeEvt | The radio check's answer, posted to the asking Active Object. |
WIFI_LOST_SIG | post | bare QEvt | Private: the network in use went away by itself. The driver's state is the news. |
WIFI_RETRY_SIG | post | QTimeEvt | Private timer: the wait before the next try at getting back on a network is over. |
RADIO_RELINK_SIG | post | QTimeEvt | Private timer: the wait before the next bring-up of a link that was lost is over, or the board woke and one is owed. |
RADIO_EXP_OWED_SIG | post | bare QEvt | Private: J3's supply waits on a rail the link-up did not switch. Only Radio_up applies it. |
RADIO_SCAN_OWED_SIG | post | bare QEvt | Private: an asked scan waits for the link to be ready. Posted at the end of the reconcile chain. |
RADIO_FRAMES_KNOCK_SIG | post | bare QEvt | Private, a static event posted with a margin from esp-hosted's thread: a batch of frames waits in the driver's ring. |
AO_Net
Published signals: every Active Object that subscribed hears them.
| Signal | Range | Event | What it does |
|---|---|---|---|
NET_PING_ENTRY_SIG | publish | NetPingEntryEvt | One ICMP echo's outcome, a timeout included. |
NET_PING_END_SIG | publish | NetPingEndEvt | The session's summary, or the refusal when there was no session. |
NET_HTTP_DATA_SIG | publish | NetHttpDataEvt | A slice of a response body. |
NET_HTTP_DONE_SIG | publish | NetHttpDoneEvt | Status, lengths, and whether the body was cut. |
NET_UDP_DONE_SIG | publish | NetUdpDoneEvt | The datagram is away, or is not. |
NET_INFO_SIG | publish | NetInfoEvt | This board's addresses and the MQTT client's state. |
MQTT_STATE_SIG | publish | MqttStateEvt | Where the MQTT client is. Published on every change and on request. |
MQTT_MSG_SIG | publish | MqttMsgEvt | A message the broker sent. The only published event whose rate a stranger sets. |
CHANNEL_STATE_SIG | publish | ChannelStateEvt | Where the Kode channel stands. Published on every change and on request. |
AO_Net: posted signals
Posted signals go to one Active Object: requests, replies to the asker, and the private signals and timers.
| Signal | Range | Event | What it does |
|---|---|---|---|
NET_PING_REQ_SIG | post | NetPingReqEvt | Ping a host. Entries follow on the bus, then NET_PING_END_SIG. |
NET_HTTP_REQ_SIG | post | NetHttpReqEvt | GET a URL. Body slices follow, then NET_HTTP_DONE_SIG. |
NET_UDP_REQ_SIG | post | NetUdpReqEvt | Send a datagram. |
NET_INFO_REQ_SIG | post | bare QEvt | Publish NET_INFO_SIG. |
NET_STREAM_OPEN_REQ_SIG | post | NetStreamOpenEvt | Open a download. |
NET_STREAM_OPEN_FROM_SIG | post | NetStreamFromEvt | Open url from offset on, for a download that goes on where it stopped. Answered with NET_STREAM_FROM_RSP_SIG, then read and closed as the transfer of NET_STREAM_OPEN_REQ_SIG. |
NET_STREAM_FROM_RSP_SIG | post | NetStreamFromRspEvt | To the opener: the size left, the HTTP code and the status. |
NET_STREAM_READ_REQ_SIG | post | bare QEvt | Fill a free buffer and send it. |
NET_STREAM_NEXT_SIG | post | StorageBufEvt | A borrowed buffer handed back. |
NET_STREAM_CLOSE_REQ_SIG | post | bare QEvt | Close the open transfer. |
NET_STREAM_OPEN_RSP_SIG | post | StorageOpenRspEvt | To the opener: the download is open or refused. |
NET_STREAM_DATA_SIG | post | StorageDataEvt | To the reader: one buffer of the download. The same conversation AO_Storage has, over a URL. |
NET_TEST_REQ_SIG | post | bare QEvt | Run test component=net. |
NET_JOB_SIG | post | KqpWorkerDoneEvt | Private: a job came back from the worker. |
NET_STREAM_JOB_SIG | post | KqpWorkerDoneEvt | Private: a job came back from the download's worker. |
MQTT_UP_REQ_SIG | post | MqttUpEvt | Connect to a broker by URI. |
MQTT_DOWN_REQ_SIG | post | bare QEvt | Stop the client. |
MQTT_PUB_REQ_SIG | post | MqttPubEvt | Publish a message. |
MQTT_SUB_REQ_SIG | post | MqttTopicEvt | Subscribe to a topic. |
MQTT_UNSUB_REQ_SIG | post | MqttTopicEvt | Unsubscribe from a topic. |
MQTT_STATE_REQ_SIG | post | bare QEvt | Publish MQTT_STATE_SIG now. |
NET_MQTT_LINK_SIG | post | NetMqttLinkEvt | Private: the client connected, dropped or errored, moved off esp-mqtt's task. |
NET_MQTT_RX_SIG | post | static QEvt | Private, from esp-mqtt's task: the driver's receive ring holds messages. AO_Net takes them from the ring and republishes each as MQTT_MSG_SIG from its own thread. |
NET_LINE_DONE_SIG | post | NetLineDoneEvt | From net_line_done(): the console answered the line AO_Net gave it from cmd/in, so the next may go. Carries the sequence of the line it ends. |
NET_LINE_BUSY_SIG | post | static QEvt | From net_line_busy(): the console was busy and did not take the line; AO_Net offers it again shortly. |
CHANNEL_STATE_REQ_SIG | post | bare QEvt | Publish CHANNEL_STATE_SIG now. |
NET_CHAN_OUT_SIG | post | bare QEvt | Private: reply lines wait in the channel's ring. Posted by AO_Log. |
NET_LEAVE_REQ_SIG | post | bare QEvt | Private, from net_leave_request(): leave the Kode channel cleanly and start no new one. |
NET_CHECK_AT_SIG | post | NetCheckAtEvt | From net_check_at(): the next time the scheduler's mqtt entry falls due, in Unix seconds, or -1 for none. |
NET_SHOT_REQ_SIG | post | NetShotReqEvt | From net_shot_request(): upload the glass to the channel's shots link. |
NET_SHOT_RSP_SIG | post | NetShotRspEvt | To the requester: how the upload ended. |
NET_SHOT_STOP_SIG | post | NetShotStopEvt | From net_shot_stop_request(): end the running stream of uploads. |
NET_DUMP_REQ_SIG | post | NetDumpReqEvt | From net_dump_request(): send the core dump of a KodeOS fault to the channel's dumps link. With KODEOS_DUMP_HTTP. |
NET_DUMP_RSP_SIG | post | NetDumpRspEvt | To the requester: how the fault report ended. With KODEOS_DUMP_HTTP. |
NET_TMO_SIG, NET_JOB_GUARD_SIG, NET_STREAM_GUARD_SIG, NET_CHAN_TMO_SIG, NET_CHAN_FAST_SIG, NET_JOB_FAST_SIG, NET_FAST_RETRY_SIG, NET_CHAN_WATCH_SIG, NET_SHOT_TICK_SIG, NET_SHOT_WAIT_SIG, NET_CHECK_TMO_SIG, NET_CHAN_LINE_SIG | post | QTimeEvt | Private timers, in order: the broker never answered the connect; the worker's job never came back; the download's job never came back; the channel's one timer (back-off, renewal); no cmd/in line for CHAN_FAST_HOLD_MS, the channel's hold of the fast mode ends; no job with either worker for NET_FAST_JOB_HOLD_MS, the jobs' hold ends; a fast-mode wish AO_Radio had no room for is asked again; the channel's client check; the pace of a stream of uploads; the display did not answer a shot; the dwell of a dark wake for the mqtt check ran out; the console has had KODE_CHAN_LINE_BOUND_MS for the line it holds, or the post of the next line was refused and is tried again. |
NET_HOST_ASK_SIG | post | NetHostAskEvt | An asking Active Object's lookup or ping of a host. |
NET_HTTP_ASK_SIG | post | NetHttpAskEvt | An asking Active Object's GET or POST, its buffers lent. |
NET_UDP_ASK_SIG | post | NetUdpAskEvt | An asking Active Object's datagram, lent. |
NET_LOOKUP_RSP_SIG | post | NetHostRspEvt | Answers kode_sys_net_lookup(), to the asking AO. |
NET_PING_RSP_SIG | post | NetHostRspEvt | Answers kode_sys_net_ping(), to the asking AO. |
NET_HTTP_RSP_SIG | post | NetHttpRspEvt | Answers kode_sys_http_get() and kode_sys_http_post(), to the asking AO. |
NET_UDP_RSP_SIG | post | NetUdpDoneEvt | Answers kode_sys_udp_send(), to the asking AO. |
AO_Log
Every signal AO_Log owns.
| Signal | Range | Event | What it does |
|---|---|---|---|
LOG_LINE_SIG | post | LogEvt | Put one log line on the console. |
CONSOLE_BYTE_SIG | post | ConsoleByteEvt | A byte arrived. |
CONSOLE_RAW_REQ_SIG | post | ConsoleRawReqEvt | Switch the input stream to raw and deliver it to who. |
CONSOLE_RAW_RSP_SIG | post | ConsoleRawRspEvt | To the requester: whether raw mode is armed. |
CONSOLE_RAW_END_SIG | post | bare QEvt | Abandon raw mode: the transfer died before its last byte. |
LOG_LEVEL_SET_SIG | post | LogLevelEvt | Apply a log level, and store it when it is the global default. |
LOG_DOCK_REQ_SIG | post | LogDockReqEvt | Lend the dock console's pins, or take them back, from log_dock_lend_request(). Answered once with LOG_DOCK_SIG. |
LOG_DOCK_SIG | post | LogDockEvt | To the asker: the dock's pins are lent or back. |
LOG_FLUSH_REQ_SIG | post | bare QEvt | Answer AO_Boot with boot_log_flushed(), from log_flush_request(). Its place in the queue is the point: every line posted before it is on its ports first. |
LOG_BOUNCE_REQ_SIG | post | bare QEvt | A cable came while the USB-C port was off the bus. Show the port to the computer again unless frames come, from log_bounce_request(). A static event. |
LOG_BOUNCE_TMO_SIG | post | QTimeEvt | Private one-shot: the wait for a frame, or the pad's time off the bus, ran out. |
CONSOLE_SENT_SIG | publish | ConsoleSentEvt | AO_Log for the BLE console, or AO_Net for the Kode channel: a line written with kode_log_reply_confirm() left the board on that port (ok), or could not. It answers the last such line sent on port src and every line before it, so two confirmed lines close together may get one. |
AO_Console
Every signal AO_Console owns.
| Signal | Range | Event | What it does |
|---|---|---|---|
CONSOLE_LINE_SIG | publish | ConsoleLineEvt | A finished command line (src, line[240]). AO_Log publishes it; AO_Net posts the Kode channel's with a margin. |
CONFIG_REQ_SIG | publish | KodeConfigReqEvt | Read or set one setting. The owner answers with kode_config_answer(). |
CONFIG_ANS_SIG | publish | KodeConfigAnsEvt | A setting's owner: its value, or why it refused. |
FUNCTION_ANS_SIG | post | FunctionAnsEvt | Posted by the owner of a function that answers: one record of the answer. |
CONSOLE_TIMEOUT_SIG, CONSOLE_SLICE_SIG, CONSOLE_WATCH_SIG, KCLI_INJ_TMO_SIG | post | QTimeEvt | Private timers, in order: the command in flight never got its closing answer; emit the next slice of a listing; a followed variable's period ran out; an injected gesture has a sample due. |
The standard layer
Private signals of the standard layer's own Active Object, which runs the event listeners, the pins' interrupts and the screen's render pass. Nothing outside kode_standard_ao.c sends them.
| Signal | Range | Event | What it does |
|---|---|---|---|
KODE_PIN_LISTEN_SIG | post | private struct | A pin is listened to from now on, at this level. A direct post. |
KODE_PIN_EDGE_SIG | post | private static event | A listened J3 pin moved. Posted from the pin's interrupt through kqp_post_from_isr(), one static event per pin. |
KODE_PIN_SETTLE_SIG | post | QTimeEvt | Private one-shot timer, one per pin: the pin's edge has had KODE_PIN_SETTLE_MS, so read its level. |
KODE_TOUCH_LISTEN_SIG | post | bare QEvt | Subscribe to the finger and turn it into events. A direct post. |
KODE_SCREEN_ATTACH_SIG | post | bare QEvt | Take the screen's table of functions. A direct post. |
KODE_SCREEN_REQ_SIG | post | KodeScreenReqEvt | Change the screen. A direct post. |
KODE_SCREEN_TICK_SIG | post | QTimeEvt | Private one-shot timer: the screen's render pass. |
AO_TestDot
Every signal AO_TestDot owns. It is the factory's final test, built only with CONFIG_KODE_TEST_DOT (sdk/kode).
| Signal | Range | Event | What it does |
|---|---|---|---|
TEST_DOT_REQ_SIG | post | TestDotReqEvt | A station verb from the console. Answered with TEST_DOT_REC_SIG records and one TEST_DOT_ANS_SIG, posted to the asker. |
TEST_DOT_REC_SIG | post | TestDotRecEvt | To the asker: one record of a station verb. |
TEST_DOT_ANS_SIG | post | TestDotAnsEvt | To the asker: a station verb's end. |
TEST_DOT_LEND_SIG | post | TestDotLendEvt | To the asker: a blob lent for the wire. The asker sends it and gives it back with test_dot_blob_back(). |
TEST_DOT_BACK_SIG | post | bare QEvt | The lent blob is sent and no longer read. A static event. |
TEST_DOT_JOB_SIG | post | KqpWorkerDoneEvt | Its worker's job returned. |
TEST_DOT_SCREEN_REQ_SIG | publish | TestDotScreenEvt | A screen or a pattern for the glass. The firmware's LVGL owner builds it and answers test_dot_screen_done() once it is on the panel. |
TEST_DOT_SCREEN_DONE_SIG | post | TestDotScreenDoneEvt | The screen host has the screen or the pattern on the panel, from test_dot_screen_done(). |
TEST_DOT_DRAIN_SIG, TEST_DOT_REST_SIG, TEST_DOT_TMO_SIG, TEST_DOT_WATCH_SIG | post | QTimeEvt | Private one-shot timers, in order: post the records the console's queue refused; the rest before the photos, or the operator's screen settling; the wait in hand ran out; the run's watchdog. |
AO_Gui
Every signal AO_Gui owns.
| Signal | Range | Event | What it does |
|---|---|---|---|
GUI_STATE_SIG | publish | GuiStateEvt | What state the interface is in. AO_Gui lives in kgui, above the SDK. |
GUI_DUMP_REQ_SIG | publish | bare QEvt | Say what state the interface is in. The one request in the published range, so kaos need not name a symbol of kgui. |
In the SDK
kqp_signals.h: every signal and every event struct.components/kqp: the pools, the priorities and the checks.