irayple-collector
Emits the frames of the selected cameras, one message per frame, with the image in msg.payload. Its dialog also starts and stops the discovery service and the publisher container of each camera.
The node has no input and one output.
Properties
| Property | Description |
|---|---|
| Name | Label of the node in the flow. irayple-collector when empty |
| Irayple Services | State of the services on the host, with the Start Irayple and Stop Irayple buttons |
| Available Cameras | The cameras that the discovery service finds: their state, the buttons that act on them and the checkbox that selects them for this node |
The buttons of both panels act on the host at once; they do not wait for a deploy. The selection of cameras is saved with the node and applies from the next deploy.
The services and the publisher containers are shared by all the nodes of the package: a camera started from one dialog can be selected in any irayple-collector, irayple-trigger or irayple-config node, and several irayple-collector nodes can select the same camera.
Irayple Services
The panel shows Running when a container whose name starts with irayple- is running on the host, and Stopped otherwise. Start Irayple is disabled while it shows Running, and Stop Irayple while it shows Stopped.
- Start Irayple starts the discovery container,
irayple-discovery. The Docker images of the package version that are not on the host are pulled first, which can take a while. A stoppedirayple-discoverycontainer that already exists is started again as it is; otherwise the container is created. - Stop Irayple removes every container whose name starts with
irayple-, running or not: the discovery container and the publisher of every camera. The cameras have to be started again afterwards.
Available Cameras
The table lists the Irayple and Huaray devices that the discovery service finds, and is refreshed every 5 seconds while the dialog is open. It reads Waiting for camera information... until the first list arrives.
| Column | Content |
|---|---|
| Select | Checkbox that adds the camera to the selection of this node. It appears once the publisher container of the camera is running, and for the cameras that are already selected |
| MAC | MAC address of the camera |
| Interface | Network interface of the host that the camera is connected to |
| Status | State of the camera, see the next table |
| Actions | Buttons available for the camera |
| Status | Meaning |
|---|---|
Free | The camera is available: no application controls it |
Controlled (ours) | The camera is controlled and its publisher container is running on this host |
Controlled (other) | The camera is controlled and no publisher container for it is running on this host |
No access | The camera has no IP address, or the SDK reports its IP configuration as invalid |
Running (ours) | The publisher container of the camera is running and the SDK reports another access state |
Not found | A selected camera that the discovery service does not list |
Any other text is the access state as the camera SDK reports it, for example EXCLUSIVE, MONITOR or UNKNOWN.
| Action | Offered for | Effect |
|---|---|---|
| Stop | A camera whose publisher container is running | The discovery service stops and removes the publisher container of the camera |
| Fix IP | A camera in No access | The discovery service forces on the camera an IP address of the subnet of the host interface it is connected to. The address is derived from the MAC address, and skips the addresses of the other GigE devices it detects and those it forced in the last 30 seconds |
| Start | A camera in Free | The discovery service starts the publisher container of the camera |
| Remove | A Not found row | The camera leaves the selection of this node. Unticking its checkbox does the same |
The other rows show a note instead of a button.
When Node-RED cannot run an action (a Docker or NATS error), the editor shows a notification with the error text. Stop, Fix IP and Start are requests to the discovery service: what it cannot do is written to the log of its container (docker logs irayple-discovery).
Output
One message per frame of each selected camera:
{
topic: "irayple/AA-BB-CC-DD-EE-FF/notification",
mac: "aa:bb:cc:dd:ee:ff",
payload: {
data: <Buffer ...>,
width: 2448,
height: 2048,
channels: 3,
colorSpace: "BGR",
dtype: "uint8"
},
timestamp: "2026-03-15 12:34:56.123",
segment: "S_EEFF_7"
}| Property | Type | Content |
|---|---|---|
payload.data | Buffer | Pixels of the frame, 8 bits per channel in B, G, R order (width × height × 3 bytes). It is a copy of the shared memory segment: later frames do not change it |
payload.width, payload.height | number | Size of the frame in pixels |
payload.channels | number | 3 |
payload.colorSpace | string | BGR |
payload.dtype | string | uint8 |
topic | string | NATS subject on which the publisher announced the frame, with the MAC address in upper case and hyphens |
mac | string | MAC address of the camera, in lower case with colons |
timestamp | string | Time at which the publisher processed the frame, as YYYY-MM-DD HH:MM:SS.mmm in the local time of the publisher container, without a time zone |
segment | string | Name of the shared memory segment the frame was read from |
The publisher converts every frame to BGR8, whatever the pixel format of the camera: channels is always 3 and colorSpace always BGR, also for a monochrome camera. msg.payload is the raw image object that the nodes of @rosepetal/node-red-contrib-image-tools take.
Each publisher writes the frames in turn to 30 shared memory segments, named S_ followed by the last four hexadecimal digits of the MAC address and the number of the segment. A frame that needs more than 48,000,000 bytes in BGR8 (4000 × 4000 pixels) does not fit a segment: the publisher discards it.
Status
| Status | Meaning |
|---|---|
Grey dot, idle | No camera is selected |
Green dot, subscribed N | The node listens to its N selected cameras. It does not tell whether their publisher containers are running |
Yellow ring, reconnecting X/N | The publishers of X of the N selected cameras have lost the link with their camera and are trying to reopen it. The status goes back to subscribed N when they report the camera connected or a frame arrives |
Red ring, nats error | The node could not connect to the NATS server when it started |
Errors
| Message | Level | Cause |
|---|---|---|
Failed to connect to NATS: <reason> | Error | The NATS server could not be reached when the node started |
Shared memory segment <name> missing for <mac>; awaiting new frames. | Warning | The publisher announced a frame, but its segment is not in the /dev/shm that Node-RED sees. The frame is skipped. Written at most once every 10 seconds per camera |
Missing segment or size for <subject> | Warning | The announcement of a frame carries no segment name or no size. The frame is skipped |
Invalid segment size <size> for <subject> | Warning | The announced size is not a positive number. The frame is skipped |
Failed to read shared memory <name>: <reason> | Error | The segment exists but could not be read. The frame is skipped |
Failed to process frame: <reason> | Error | The announcement of a frame could not be processed |
The errors are logged without a message object, so they appear in the debug sidebar and in the Node-RED log but do not trigger a Catch node.
The irayple-collector nodes and their dialog share one connection to NATS, opened the first time one of them needs it. If that first attempt fails it is not repeated: start the NATS server and restart Node-RED. If the connection is lost later and the nats client gives up reconnecting, the node stops receiving frames and keeps its status: deploy the flow again once the NATS server is back.