Version 1.0
·
Last edited on 2025-09-04
Send BVS Inspection results to CMTK MQTT Broker
Contents
Attachments
No attachments
1. Prerequisites
-
- SD Card Inserted and Portainer Setup
- BVS Inspection Program Setup
- Node Red Container Configured and running
- MQTT Broker Container Configured and running
2. BVS Configuration

-
-
- Select the “CONFIGURE” Tab
- Select the Settings Gear (
) in the top right corner
- Go to the “Process Communication” tab
- Enable MQTT
- Select “MQTT” as the Mode
- Input the broker address (CMTK address)
- Input the Broker port, 50008
- If you followed the document for setting up an MQTT broker container on the CMTK, the Broker Port is 50008. If you used a different port when setting up the container, you will use the port number that you input.

- If you followed the document for setting up an MQTT broker container on the CMTK, the Broker Port is 50008. If you used a different port when setting up the container, you will use the port number that you input.
- Set the “Broker Authentication” to anonymous; however, if you set “allow_anonymous false” in the MQTT Broker Container, then you will need to set this to “Username/Password” and input the credentials that you selected.
- Press “Reconnect”
- If configure properly, you should see a
in the connection status.
-
3. Node Red Configuration
-
- Drag and drop an “MQTT IN” node into your Flow
- Configure the “MQTT IN” node
- Input a name into the Server field. This name can be one of your choosing.
- Select “Subscribe to single topic” for the Action
- Input the Topic
- balluff/D800005867700889/vision/inspection/data/fromdevice
- The Serial Number “D80005867700889” will need to be changed to the Serial Number of your BVS camera.
- The Serial Number “D80005867700889” will need to be changed to the Serial Number of your BVS camera.
- balluff/D800005867700889/vision/inspection/data/fromdevice
- Select the “Edit mqtt-broker config node” button.
- Select the “Connection” tab
- Input the server IP address (CMTK IP address)
- If you followed the document for setting up an MQTT broker container on the CMTK, the Broker Port is 50008. If you used a different port when setting up the container, you will use the port number that you input.
- Select “MQTT V5” as the Protocol
- If you set the MQTT Broker Container with “allow_anonymous true”, you do not need to configure the “Security” tab; however, if you used “allow_anonymous false” and created login credentials, those credentials will need to be input under the “Security” tab.
- Press the “Update” button in the top right corner
- Select “Done” in the top right corner
- Add a debug node to the output of the MQTT In Node
- Connect a “debug” node to the “MQTT In” node that we just configured.
- Press “Deploy”
- Make sure the debug node tab is on before pressing Deploy
- ON

- Off

- ON
- Make sure the debug node tab is on before pressing Deploy
- Drag and drop an “MQTT IN” node into your Flow
4. Test the MQTT-In Node
-
- Trigger an inspection program
- Make sure the camera is in “Monitor” mode
- Trigger an inspection
- Confirm data was received in Node Red
- Select the “debug” button in Node Red
- Once you trigger the inspection program, data should be populated based on the data that your inspection program is sending. The inspection program in this example is for detecting that the plastic caps are inserted into an IO hub. The data shown in the debug window is going to be dependent on what data you have selected for the results data in your inspection program.
- Trigger an inspection program



