Skip to content
Mikayla edited this page May 4, 2024 · 12 revisions

Pocket Computer

Warning

The pocket application is currently in an alpha state, so its documentation is sparse. No setup information for it is currently available on the setup page, but the config file is relatively simple and self-documenting.

Main Applications

Unit Tabs

Debug/Testing Applications

Important

In order to use any debug/testing application controls (generally, indicators will still update without authentication), HMAC message authentication must be enabled on your system. This is intended to protect your system from the meddling of outsiders with pocket computers.

Alarm Testing Tool

This tool provides the ability to simulate audio alarms. Indicators on the coordinator displays will not show these simulated alarms, and no actions will be taken as a result of them. Specific tones can be played, or specific alarms can be played. Layering alarms will still be subject to the preemption rules of alarm tones, but layering tones manually will not (careful what you wish for, be ready to press the stop button).

Important

In order to set tones or alarms using this interface, the system must be in a safe idle state. This means all units must have their reactor PLCs connected, their reactors have to be stopped, the RPS cannot be tripped, and all of the unit alarms must be inactive.

-- check if the reactor is connected, is stopped, the RPS is not tripped, and no alarms are active
---@nodiscard
function public.is_safe_idle()
    -- can't be disconnected
    if self.plc_i == nil then return false end

    -- reactor must be stopped and RPS can't be tripped
    if self.plc_i.get_status().status or self.plc_i.get_db().rps_tripped then return false end

    -- alarms must be inactive and not tripping
    for _, alarm in pairs(self.alarms) do
        if not (alarm.state == AISTATE.INACTIVE or alarm.state == AISTATE.RING_BACK) then return false end
    end

    return true
end

Alarm Testing Interface

image

Each of the 8 tones can manually be enabled in the "Tones" list via the TEST 1 through TEST 8 buttons, then stopped with the STOP button (or the test button can be un-pressed). "States" indicates the state of each of the 8 tones.

"Alarms" allows enabling particular alarms, which is described more in the above section. They can be stopped with the STOP !! button.

Clone this wiki locally