omron-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. omron-collector when empty |
| Omron Services | State of the services on the host, with the Start Omron and Stop Omron 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 omron-collector, omron-trigger or omron-config node, and several omron-collector nodes can select the same camera.
Omron Services
The panel shows Running when a container whose name starts with omron- is running on the host, and Stopped otherwise. Start Omron is disabled while it shows Running, and Stop Omron while it shows Stopped.
- Start Omron starts the discovery container,
omron-discovery. The Docker images of the package version that are not on the host are pulled first, which can take a while. A stoppedomron-discoverycontainer that already exists is started again as it is; otherwise the container is created. - Stop Omron removes every container whose name starts with
omron-, 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 Omron 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 camera is Controlled (ours), and for the cameras that are already selected |
| MAC | MAC address of the camera, as the Sentech SDK reports its device ID |
| 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 SDK reports the camera as available for reading and writing |
Controlled (ours) | The SDK reports the camera as read-only, as it does while a client controls it, and its publisher container is running on this host |
Controlled (other) | The SDK reports the camera as read-only and no publisher container for it is running on this host: another client controls it |
No access | The SDK reports that the camera cannot be accessed |
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 |
A camera in any other access state shows UNKNOWN.
A publisher waits 10 seconds after its container starts before it opens the camera, so after Start the status stays Free for at least that long.
| 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 network, broadcast and interface addresses |
| 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 omron-discovery).
Output
One message per frame of each selected camera:
{
topic: "omron/AA-BB-CC-DD-EE-FF/notification",
mac: "aa:bb:cc:dd:ee:ff",
payload: {
data: <Buffer ...>,
width: 1920,
height: 1080,
channels: 3,
colorSpace: "BGR",
dtype: "uint8"
},
timestamp: "2026-03-15T12:34:56.123456Z",
segment: "/omron_AA-BB-CC-DD-EE-FF_0"
}| Property | Type | Content |
|---|---|---|
payload.data | Buffer | Pixels of the frame, 8 bits per channel in B, G, R order. 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 | UTC time at which the publisher announced the frame, in ISO 8601 with microseconds |
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 8 shared memory segments, named /omron_ followed by the MAC address and the number of the segment. The segments grow when a frame does not fit them.
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 |
Missing segment or size for <subject> | Warning | The announcement of a frame carries no segment name or no size. The frame is skipped |
Failed to read shared memory <name>: <reason> | Error | The segment could not be read, for example because it is not in the /dev/shm that Node-RED sees, or because the user that runs Node-RED may not read it (see Requirements). 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 omron-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.