Faults¶
The Faults page is in the Tools group of the web UI. It makes RimuEmulator do something incorrect on purpose. Use it to test how a client behaves. The faults are not features of a radio.
RimuEmulator makes a fault only when you ask for it on this page or through the control API. RimuEmulator records each fault in the log.
Warning
A fault has an effect on the clients that are connected to RimuEmulator. Tell the other users before you make a fault.
What the page shows¶
| Panel | Controls |
|---|---|
| Stall a stream | Stream, Seconds, Stall, Resume, and a table of the streams |
| Drop a slice | Slice, Drop |
| Send a malformed line | Session, Line, Send |
The table in Stall a stream has these columns:
| Column | Content |
|---|---|
| Stream | The ID of the stream. |
| Type | The type of the stream. |
| Clients | The number of clients that receive the stream. |
| State | Running, or Stalled with the time that remains. |
| Packets withheld | The number of packets that RimuEmulator did not send. |
Stall a stream¶
A stall stops the packets of one stream for a time, then starts them again. RimuEmulator keeps the stream and its counters, and the packet count continues. Thus a client sees the display or the audio stop, and then a gap. The stream stalls for each client that receives it.
- Select the stream in Stream.
- Enter the time in Seconds. The time must be more than 0. The maximum is 3600 seconds.
- Click Stall.
To start the stream again before the time ends, select the stream and click Resume.
Drop a slice¶
A drop removes a slice as if the radio removed it. Each subscribed client gets the status that a slice removal sends.
It is not verified that a real radio sends only this status when it removes a slice by itself.
- Select the slice in Slice. The list shows the slices that are in use, each with its frequency and mode.
- Click Drop.
Send a malformed line¶
This fault sends a line that the protocol does not permit to one session. Use it to test the parser of a client. Each line is incorrect on purpose. No line is one that a radio is known to send.
| Line | What is incorrect |
|---|---|
no_separator |
A status line with no bar between its handle and its body. |
unknown_prefix |
A line with a first letter that the protocol does not use. |
unsolicited_reply |
A reply to a sequence number that the client did not send. |
missing_newline |
Two status lines with no newline between them. |
truncated |
A status line that stops in the middle of a key. |
- Select the session in Session.
- Select the line in Line. The panel shows what is incorrect and the text of the line.
- Click Send.
The Sessions page lists the sessions. The Streams page lists the streams.
