fischertechnik / txt_training_factory

Training Factory Industry 4.0 (9V)
36 stars 25 forks source link

Exchange Cloud #2

Closed stefan-balke closed 4 years ago

stefan-balke commented 4 years ago

Hi there,

thanks for making this all open source. For research purposes, I'd like to send the MQTT messages to another gateway and then, eventually, to another storage infrastructure.

Some questions related to this:

Thanks in advance! Stefan

stefan-balke commented 4 years ago

Alright, related to the MQTT payload, this is described here: https://fischertechnik.github.io/txt_training_factory_doc/html/md_MqttInterface.html

AlexanderSteiger commented 4 years ago

The default sample rate is 60 seconds for BME680 and the brightness sensor. The camera is per default deactivated. There exist a MQTT config message to change the rate and to start the camera. If the connection to the fischertechnik cloud is made, the sample rate is then 3 seconds for the sensors and 2 fps for the camera.

  • Is there any aggregation of the senor data already on the device or is the raw sensor data the payload of the MQTT message?

There is no aggregation of the sensor data on the device, but in the database of fischertechnik cloud 1 sensor value per minute is stored in the user account database.

  • Where is the data which goes on the MQTT message assembled? In each module?

Each station / MQTT client publish messages to the local MQTT broker, the MQTT bridge on the main TXT controller forward all the messages to the remote MQTT broker

Kind Regards Alexander Steiger

stefan-balke commented 4 years ago

Hey Alexander,

thanks for the response.

Where do I find the exchange between local broker and remote broker in the code?

stefan-balke commented 4 years ago

Okay, these docs help me: https://github.com/fischertechnik/txt_training_factory/blob/master/TxtSmartFactoryLib/doc/MqttInterface.md#other-clouds