Bild_im_Format_1544_548.png

Bosch Cameras via MQTT on ctrlX CORE

Sozu
Community Moderator
Community Moderator
Task / Problem
  • Camera has only 1 relay output to trigger an alarm/message.
  • It is therefore not possible to distinguish between entering field and leaving field.
  • Local MQTT broker that transfers the alarms/messages to the physical world.
  • Connection of IP cameras from Bosch via MQTT to a ctrlX CORE.
  • Transmission of camera events to the application (line crossing, fire, smoke, entering field, leaving field, counter).
  • No use of an external MQTT broker.

The following Apps are active on the example ctrlX CORE:

  • MQTT Broker
  • Node-RED
  • PLC
  • EtherCAT

The MQTT Broker is available as a time license. Duration 12 months (costs: approx. 150€ p.a. for 110 connections).

Use Case Truck Parking Chemical Factory

2022-02-08_11h47_20.png

  • Trigger Leaving Field is detected by the camera.
  • ctrlX CORE controls barrier.
  • As soon as the truck reaches its new area (Trigger Entering Field).
  • The barrier is closed by ctrlX CORE.
  • Further necessary releases can be linked within ctrlX CORE.

Use Case Counting people

2022-02-08_11h57_58.png

  • Recording the counts of the individual cameras.
  • ctrlX CORE calculates the number of people in the building.
  • Access doors are opened or closed depending on the number of persons.
  • Information is transferred as a visualisation to the control room.

Solution

The following variants are therefore possible:

1st variant
  • MQTT + Node-RED + EtherCAT
  • Node-RED switches I/Os directly
  • no PLC necessary
  • Use of general IoT tools
2nd variant
  • MQTT + Node-RED + PLC + EtherCAT

Here, all advantages are now combined. Simple Node-RED application and extensive PLC programming where necessary.

AVIOTEC also reports fire and smoke via MQTT

2022-02-09_08h25_30.png

 

Broker Configuration

2022-02-09_08h33_27.png

 

Broker Information

2022-02-09_08h34_53.png

 

Tree Topic of the Broker

2022-02-09_08h38_51.png

 

Configuration Camera

2022-02-09_08h43_10.png

  • Configuration of the MQTT connection in the camera
  • Since a secure connection to the broker is required, MQTTS must be used here instead of MQTT.
  • The IP address of the ctrlX core must be set as the address.
  • The port can be selected, standard ports for MQTT are 1883, 8883, ...
  • The broker on the controller also uses the password and user, so these must be entered here.

 

Node-RED application for a counter value

2022-02-09_08h46_46.png

 

Settings MQTT Broker and PLC Variable

2022-02-09_08h48_57.png

 

Value adjustments

2022-02-09_08h50_10.png

 

Examples for Node-RED

2022-02-09_08h52_27.png

 

Must Read
Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist