<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Paulo Mota on Medium]]></title>
        <description><![CDATA[Stories by Paulo Mota on Medium]]></description>
        <link>https://medium.com/@paulo.mota?source=rss-f9e921f3018c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3W5xj5t2gtVha7RLMGD-GQ.jpeg</url>
            <title>Stories by Paulo Mota on Medium</title>
            <link>https://medium.com/@paulo.mota?source=rss-f9e921f3018c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 17:15:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@paulo.mota/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[MQTT Firebase, a Coreflux Flux Asset]]></title>
            <link>https://medium.com/coreflux-blog/mqtt-firebase-a-coreflux-flux-asset-3d7746a7d5ac?source=rss-f9e921f3018c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d7746a7d5ac</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[coreflux]]></category>
            <category><![CDATA[mqtt]]></category>
            <dc:creator><![CDATA[Paulo Mota]]></dc:creator>
            <pubDate>Mon, 08 Aug 2022 11:57:04 GMT</pubDate>
            <atom:updated>2022-08-10T08:58:43.662Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KxrTgB8RwH_OGJQo1PWpZg.png" /></figure><h3>1. The Purpose of this Flux Asset</h3><p>Coreflux’s <strong>MQTT Firebase</strong> is an asset centered around creating a bridge between your local (or not local) MQTT data with a cloud-based Firebase database. This effectively enables the start of a cloud pipeline, that you can afterwards supplement with a series of automated functionality.</p><h3>2. Firebase</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QTyQ7gfd9Ceo-0gbC7KYRQ.png" /></figure><p>As their banner above well explains, Firebase is Google’s app development platform, that provides a series of services to store, manage and process your data.</p><h3>3. Preparation</h3><p>The first step to use Firebase is to create your account there.</p><p><strong>3.1. Create a new Firebase project</strong></p><p>After creating an account and logging-in, you will be greeted by a list of your current open projects (which of course will be empty if you’re new to Firebase). The first step to kick-off the process is pressing the “Add project” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/1*pvK-qWeAzWYrhV1fvdjXNA.png" /></figure><p>You will be prompted to input a name for the new project. After doing so, Firebase will ask you to choose if you wish to enable <strong>Google Analytics</strong>… please read the respective features and configuration options if you wish to do so (for a quick-start, you can choose not to enable it, it won’t be necessary at this point).</p><p><strong>3.2. Enable Authentication Methods</strong></p><p>Now that your new project is initiated, you will now have a new screen with a series of functionalities to explore.</p><p>To move our ongoing process forward, press the first element on the list, named “Authentication”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*MeU4OpHMABG5FkntOgFUjg.png" /></figure><p>This functionality allows you to define how new users may sign-up and sign-in to this project. This is important, because this is the element that defines who can access your database, and what specific data they can access. Once you press the “Get Started” button, a series of options will be provided:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*_mV40GtPq-gbx_lS9UN_8Q.png" /></figure><p>For now, we are going with the most obvious (but not least powerful) option, which is the Email/Password option. Choose the respective option, to open the following screen where you can enable the toggle for this method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*XP5uUWLxsCv2HsOv3vs7_w.png" /></figure><p>Save your changes. You now have a proper method for account creation enabled.</p><p><strong>NOTE:</strong> While you still don’t have your code prepared to allow your users to add themselves, you can go to the “Users” tab to manage/add/delete users manually.</p><p>This process has now unlocked behind the scenes the ability to consult your Web API Key, which is what we’re going to do next.</p><p><strong>3.3. Get Web API Key</strong></p><p>With Authentication properly provided, you can now navigate to the details page. To the right of the Project Overview button, on the top left, you’ll find a gearbox icon that expands into a set of options. Select “Project Settings”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*ng4ydCGwzQBKSrDJSDthqA.png" /></figure><p>This will give you access to a screen with a series of details on your project. From these, you’ll now want to copy the “Web API Key” value, and paste it somewhere safe for future reference when we’re installing the Coreflux asset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0LBR_I8a5M7LHpfFrC1_Og.png" /></figure><p><strong>3.4. Get Realtime-Database address</strong></p><p>Almost done. Now that we have a valid API Key, it is time to setup our Realtime-Database.</p><p>On the left panel of the Firebase page, you’ll noticed a set of tabs. Expanding the BUILD one will reveal many new options. You’ll now want to click the one called, you guessed it, “Realtime Database”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/305/1*bAvzQSoKki9Y8MOKzWGDng.png" /></figure><p>Press “Create Database”. You will be prompted to select from a dropdown menu where you want your data to be stored. The only relevant impact of this choice is that the closest you and/or your clients are to the server, the faster requested/sent data will travel back and forth. In most cases, the difference is negligible, especially considering cloud processing times, but keep this in mind. After you choose, press “Next”.</p><p>Finally, but not least importantly, you’ll be asked to choose the starting Security Rules. These rules define what can be done right off the bat. For now, choose “Start in test mode”, which will temporarily allow any user to read and/or write from the RTDB (these settings will be written with a rule to be active only for 30 days, after which they will default to closed… you can change them at any time, though). Press “Enable”, wait a few seconds, and voilá, you now have a fully functional and (for the moment) quite empty database.</p><p>Direct your attention to the header, pictured below at the bottom, which contains the full address of your database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NLySDepRjYjFaS9tLtf1uQ.png" /></figure><p>Copy it, like you did with the API Key, paste it on your notes, and let’s move on to Coreflux.</p><h3>4. Installation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*iyBpzFGqEHzSLzGi41Ds9g.png" /></figure><ul><li>Once you press “Install”, you will be presented with the asset configuration window:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*LkC03K6OUu0vHfN-Y7EykQ.png" /></figure><ul><li>Configure your MQTT Broker address and port to match the settings you are using (the corresponding broker should be running when your start the Telegram asset).</li><li><strong>On the Firebase-specific boxes shown below, write or paste the information gathered on the account/project creation process. </strong>On the first field, paste the Web API Key you retrieved from the Project Settings page. On the second field, paste the full address retrieved from the Realtime-Database page. And on the third and fourth fields, the username and password of the project’s admin account (which may either be yours or of a specific account you created for that purpose, the only requirement is that it has enough privileges to complete required actions).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/346/1*tNHbtRtb03xEyOjdD-oZDw.png" /></figure><ul><li>After installation, the instance window for this asset installation will display the “Standby” status</li><li>For proper functioning the asset must be configured (see chapter 5).</li><li>To begin execution of the <strong>MQTT Firebase </strong>Flux Asset, press the Play button, and if successful, the instance status will change to “Running”.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/123/1*bY0PUwE5oPtUU7s3RvLtLg.png" /></figure><ul><li>If for some reason the inputted configuration fails to execute (or permission to run is not confirmed by the system), the asset will try to enter a run state but return to a halted state when failing to do so, displaying an error popup (on the GUI Hub) or message (on the command-line Hub). If the asset is running, but you’re not seeing responses on Telegram, see chapter 7 for possible Troubleshooting.</li></ul><h3>5. Configuring the Tags</h3><ul><li>Before the asset is actually usable, you will need to configure the topics you wish to work with. On Coreflux versions below 1.2.0, this will be done through the asset’s XML file. Navigate to Coreflux’s installation folder, and locate the appropriate asset folder within the “instances” folder.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*bkNl4DDMM7Ccky7AfOps7w.png" /></figure><ul><li>Open it. The XML section to alter is the following (on chapter 5, below, you will find an extensive explanation of how to carry out this configuration properly).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xDQHERDw5Xbo6EfMSsHmqg.png" /></figure><ul><li>Once the asset is properly configured, save the file and return to the Coreflux Hub window.</li></ul><h4>5.1. Tags: Write Direction (writable)</h4><ul><li><strong>ToAll:</strong> Write in both directions, from/to MQTT and Firebase</li><li><strong>ToMqtt:</strong> Write only from from Firebase to MQTT</li><li><strong>ToFirebase:</strong> Write only from MQTT to Firebase</li></ul><h4>5.2. Tags: Value Type (ValType)</h4><ul><li><strong>isPutValue:</strong> This will perform a PUT operation with a raw value (for example an INT or a BOOL), thus writing from the MQTT to Firebase and replacing the content already in the target object with the new input received</li><li><strong>isPutJSon:</strong> This will perform a PUT operation with a JSON structure, thus writing from the MQTT to Firebase and replacing the content already in the target object with the new input received</li><li><strong>isPostJSONWithAutoKey:</strong> This will perform a POST operation with a JSON structure, thus incrementing to what already exists in the target destination, attributing an automatically generated unique key to the new value as an identifier</li><li><strong>isPostValueWithAutoKey:</strong> This will perform a POST operation with a raw value (for example an INT or a BOOL), thus incrementing to what already exists in the target destination, attributing an automatically generated unique key to the new value as an identifier</li><li><strong>isGetJson:</strong> This will perform a GET operation, thus retrieving a JSON structure</li><li><strong>isGetValue:</strong> This will perform a GET operation, thus retrieving a raw value (for example an INT or a BOOL)</li></ul><h4>5.3. Source/Destination MQTT Topic (mqttTopic)</h4><p>This is the topic that will be used by the asset either as a source or a destination of MQTT data, depending on if you’re writing or reading from it.</p><h4>5.4. Source/Destination Firebase Path (FirebaseChildNode)</h4><p>This is the topic that will be used by the asset either as a source or a destination of Firebase data, depending on if you’re writing or reading from it.</p><h3>6. Troubleshooting</h3><h4>6.1. Unable to read/write on Firebase’s RTDB</h4><ul><li>Check your Realtime-Database rules. These should allow the specific user to either read or write (according to what is intended), either in general or on specific folders.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d7746a7d5ac" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coreflux-blog/mqtt-firebase-a-coreflux-flux-asset-3d7746a7d5ac">MQTT Firebase, a Coreflux Flux Asset</a> was originally published in <a href="https://medium.com/coreflux-blog">Coreflux Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MQTT Telegram , a Coreflux Flux Asset]]></title>
            <link>https://medium.com/coreflux-blog/mqtt-telegram-a-coreflux-flux-asset-b82e21ef952b?source=rss-f9e921f3018c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b82e21ef952b</guid>
            <category><![CDATA[telegram]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[coreflux]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[bots]]></category>
            <dc:creator><![CDATA[Paulo Mota]]></dc:creator>
            <pubDate>Thu, 07 Jul 2022 14:23:42 GMT</pubDate>
            <atom:updated>2022-08-18T15:22:24.228Z</atom:updated>
            <content:encoded><![CDATA[<h3>MQTT Telegram , a Coreflux Flux Asset</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*O3sU2OHpWXRoIGo-4c99_w.png" /></figure><h3>1. The Purpose of this Flux Asset</h3><p>Coreflux’s <strong>MQTT Telegram</strong>, as the name implies, is an asset focused on creating a Telegram bot for your MQTT pipeline, provided by our <a href="https://medium.com/coreflux-blog/mqtt-broker-asset-coreflux-511acecac3f7">MQTT Broker</a>. This asset places great power in your hands (which, as you may remember from Philosophy classes or more recently from Spider-Man, brings great responsibility).</p><p>This bot’s prime directive is to Inform and Control. Specifically, to have a set of topics with configured commands, having other functions such as sharing content provided by other assets like the ONVIF camera Flux Asset.</p><h3>2. Telegram</h3><p>Telegram is a multi-purpose instant messaging platform, which also allows file-sharing. In the present context of the impact of a Coreflux Telegram Asset, these characteristics combine to provide great versatility, as they can be combined with other assets seamlessly.</p><h3>3. Preparation: Telegram’s BotFather</h3><p>Before you install the Telegram Flux Asset, you need to have a bot base prepared on Telegram. For this, you have to create that base on Telegram’s own main bot, called BotFather.</p><p>To do so, open your Telegram application. This can be done either on your mobile or on your computer. Note however, that you will receive a long hash key that you will need to either copy + paste or transcribe manually.</p><p>Once you have the Telegram application open, search for BotFather (beware of fakes, the real one has a blue checkmark icon in front of the name, confirming its authenticity), and initiate a conversation. If you are shy, don’t worry, it’s a bot, not a real person.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/176/1*zEGaVCRdqHpUs69EvBVgpw.png" /></figure><p>You will be greeted with an initial message. Press the START button, and the following menu will appear:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*JqUncJdKvO3LrYpPi9pZmw.png" /></figure><p>Type the /newbot command. In response, you will be prompted to:</p><ul><li>Write the bot’s name, <strong>which must end in “bot”</strong> (this can be any name you’d like) [Ex.: MargeBot]</li><li>Write the bot’s username, <strong>which must end in “bot”, and must be unique</strong> (it may be troublesome to find common identifiers not yet used, but keep trying) [Ex.: Marge13579bot]</li></ul><p>Next, give the newly created bot some permissions.Type the /mybots command. Choose the ‘Bot Settings’ option, followed by ‘Channel Admin Rights’, and turn on “Publish in the Channel” privileges.</p><h3>4. Installation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/0*lHaDWw1Hvchf8VXZ.png" /></figure><ul><li>Once you press “Install”, you will be presented with the asset configuration window:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*p4FcZoxs-AecVmnb8nCtRA.png" /></figure><ul><li>Configure your MQTT Broker address and port to match the settings you are using (the corresponding broker should be running when your start the Telegram asset).</li><li><strong>On the ‘Telegram API Key’ textbox, write or paste the key that you received from Telegram’s BotFather.</strong></li><li>After installation, the instance window for this asset installation will display the “Standby” status</li><li>For proper functioning the asset must be configured (see chapter 5).</li><li>To begin execution of the <strong>MQTT Telegram </strong>Flux Asset, press the Play button, and if successful, the instance status will change to “Running”.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/126/0*UNrhvOgO0e2MTG7A.png" /></figure><ul><li>If for some reason the inputted configuration fails to execute (or permission to run is not confirmed by the system), the asset will try to enter a run state but return to a halted state when failing to do so, displaying an error popup (on the GUI Hub) or message (on the command-line Hub). If the asset is running, but you’re not seeing responses on Telegram, see chapter 7 for possible Troubleshooting.</li></ul><h3>5. Configuring the Tags</h3><ul><li>Before the asset is actually usable, you will need to configure the topics you wish to work with. On Coreflux versions below 1.2.0, this will be done through the asset’s XML file. Navigate to Coreflux’s installation folder, and locate the appropriate asset folder within the “instances” folder.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*DngBYoInlpcVXcev.png" /></figure><ul><li>Open it. The XML section to alter is the following (on chapter 5, below, you will find an extensive explanation of how to carry out this configuration properly).</li><li>Once the asset is properly configured, save the file and return to the Coreflux Hub window.</li></ul><h4>5.1. Types of Tags</h4><ul><li><strong>isSimpleMessageToTelegram:</strong> Posts a message on Telegram, from a source published on a MQTT topic. This message can be either static or dynamic. When filling in the CommandData field of the tag’s configuration, take the following format as example: <em>At {time} the Value is {value}</em> . The elements within brackets write output the timestamp {time} and what is actually published on the topic {value}.</li><li><strong>isSimpleMessageFromTelegram:</strong> Publishes a message on MQTT, from Telegram.</li><li><strong>isCommandWriteFromTelegram:</strong> Publishes a command-type message on MQTT, from Telegram. Can be used to send TRUE or FALSE to specific I/O’s through the pipeline.</li><li><strong>isSendImageFromFolder:</strong> Adopts the folder defined in the tag as a ‘hotfolder’, any PNG file dropped in there will be sent by the bot to the defined channel or group</li><li><strong>isSendVideoFromFolder:</strong> Adopts the folder defined in the tag as a ‘hotfolder’, any MP4 file dropped in there will be sent by the bot to the defined channel or group</li><li><strong>isSendDocumentFromFolder:</strong> Adopts the folder defined in the tag as a ‘hotfolder’, any TXT / DOCX file dropped in there will be sent by the bot to the defined channel or group</li></ul><h3>6. Running the Bot</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fe6RG9LALWh0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3De6RG9LALWh0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fe6RG9LALWh0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/99b2074a8210224d16004233979f4807/href">https://medium.com/media/99b2074a8210224d16004233979f4807/href</a></iframe><h3>7. Troubleshooting</h3><h4>7.1. Telegram not responding</h4><p>If the asset is properly configured, and the asset is running, but Telegram is not reacting at all to publications, Telegram’s API may have locked a message and is returning an Error 409 (indicating that there is already a different instance running).</p><p>To solve this, head to BotFather, type /mybots, choose the appropriate entry, and revoke the current API key. A new one will be generated, which you should update on the asset’s configuration. Restart the asset, and it should now be working properly once you send the /start command to the bot.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b82e21ef952b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coreflux-blog/mqtt-telegram-a-coreflux-flux-asset-b82e21ef952b">MQTT Telegram , a Coreflux Flux Asset</a> was originally published in <a href="https://medium.com/coreflux-blog">Coreflux Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NoSQL2MQTT, a Coreflux Flux Asset]]></title>
            <link>https://medium.com/coreflux-blog/nosql2mqtt-a-coreflux-flux-asset-38b5efa57c91?source=rss-f9e921f3018c------2</link>
            <guid isPermaLink="false">https://medium.com/p/38b5efa57c91</guid>
            <category><![CDATA[coreflux]]></category>
            <category><![CDATA[mqtt]]></category>
            <category><![CDATA[nosql]]></category>
            <dc:creator><![CDATA[Paulo Mota]]></dc:creator>
            <pubDate>Fri, 28 Jan 2022 00:17:24 GMT</pubDate>
            <atom:updated>2022-07-22T13:32:15.428Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. The Purpose of this Flux Asset</h3><p>Coreflux’s <strong>NoSQL2MQTT</strong>, as the name may imply, is an asset focused on linking a NoSQL (non-relational) database to your MQTT pipeline.</p><p>Its primary purpose is to register a set of intended topics from a given MQTT Broker into the asset’s NoSQL MongoDB-like database. These values can then be consulted at any time, by conducting queries on the database according to the intended parameters. The resulting data is delivered in the same JSON format, being then available for processing using tools or a language of your own choosing, like C#, Python, among many others.</p><p>This asset can also be used as a backup of specific topics or the entirety of an MQTT Broker, as it can be configured to re-write all last saved values on start-up.</p><h3>2. The Target Protocol</h3><p>In this case we are dealing with a storage/retrieval mechanism, instead of a specific communication protocol.</p><p>By definition, a NoSQL (“non-SQL” or “non-relational”) database provides a mechanism for storage and retrieval of data that differs from the tabular relations used in relational databases. This is perfect for the tree-like structure of MQTT, and the string / JSON format in which its messages are transported.</p><h3>3. Installation</h3><ul><li>There must be an MQTT Broker available (whether Coreflux’s <strong>MQTT Broker</strong> / Coreflux <strong>MQTT WebSockets Broker</strong> Flux Asset), to which the values will be written.</li><li>To install this Flux Asset, open the Coreflux interface, and locate the <strong>NoSQL2MQTT </strong>asset (check if you have available slots for the installation, this information is displayed on the asset box, in the “used slots / total available slots” format)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*or8bTYALSDb88TN8MiixnA.png" /></figure><ul><li>Click the “Install” button, which will prompt the opening of the configuration overlay</li><li>Configure the <strong>NoSQL2MQTT </strong>Flux Asset to be installed (retrieve the settings for the target <strong>MQTT Broker</strong>)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*2PvK-I979TmB-roqM-Hmyw.png" /></figure><ul><li>Start the newly installed <strong>NoSQL2MQTT</strong> Flux Asset</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/121/1*g8ArJTQ8zThQE_Oqkydyjg.png" /></figure><ul><li>After installation, the instance window for this asset installation will display the “Standby” status</li><li>Before the asset is actually usable, you will need to configure the topics you wish to backup. On Coreflux versions below 1.2.0, this will be done through the asset’s XML file. Navigate to Coreflux’s installation folder, and locate the appropriate asset folder within the “instances” folder.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*0Jy-d7bhbnD-KR16-r9u-g.png" /></figure><ul><li>Open it. The XML section to alter is the following (on section 5 of this article, below, you will find an extensive explanation of how to carry out this configuration properly).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*G5M9kXSKEmXg3SmQRDPXsw.png" /></figure><ul><li>Once configured, save the file and return to the Coreflux Hub window. To begin execution of the <strong>NoSQL2MQTT</strong> Flux Asset, press the Play button, and if successful, the instance status will change to “Running”.</li><li>If for some reason the inputted configuration fails to execute (or permission to run is not confirmed by the system), the asset will try to enter a run state but return to a halted state when failing to do so, displaying an error popup (on the GUI Hub) or message (on the command-line Hub)</li></ul><h3>4. Glossary of Parameters</h3><ul><li><strong><em>Instance ID (String)</em></strong></li></ul><p>Name identifier attributed to this specific instance of the <strong>NoSQL2MQTT </strong>Flux Asset application (which can either be defined by the user or randomly assigned if null, at the time of creation of that specific instance)</p><ul><li><strong><em>MQTT Broker Server IP / Address (IP Address)</em></strong></li></ul><p>IP element of the address where the gathered and generated values should be written (if you have a local <strong>MQTT Broker</strong> Flux Asset installed and bound to any address, you can either use your specific network IP or localhost address)</p><ul><li><strong><em>MQTT Broker Server TCP Port (Int)</em></strong></li></ul><p>Port element of the address where the gathered and generated values should be written (if you have a local <strong>MQTT Broker</strong> Flux Asset installed, you can either use it, inputting the specific port in which it is running)</p><ul><li><strong><em>MQTT Topic for Queries (String)</em></strong></li></ul><p>The MQTT topic on which your query requests should be publish. The <strong>NoSQL2MQTT</strong> Flux Asset will monitor this topic, and attempt to conduct a search using the given parameters.</p><ul><li><strong><em>MQTT Topic for Results (String)</em></strong></li></ul><p>If the query conducted on the above query topic returns valid results, this is the topic on which the resulting response should be published, for you to further consume the data.</p><h3>5. Configuring the Link Arrays</h3><p>To store topics on the database, at least one of these elements must be created on the configuration file, under the <em>“links”</em> configuration. This element can change the behavior of how a certain topic is saved to the database, as a 1-to-1 or as an event registry of changes. The properties of the link object are described on the following paragraphs:</p><p><strong>5.1. PARAMETERS:</strong></p><ul><li><strong>mqttTopic</strong></li></ul><p>The MQTT topic to serve as the data source. This address has 2 wildcards that let this service identify what should be used as the target collection name and how to identify the documents to be written (optional):<br> <strong>— collection:</strong> topic path wildcard to be matched with DB collection.<br> <strong>— docId:</strong> topic path wildcard to be matched with BD document ID inside the provided collection.</p><ul><li><strong>restoreOnBootup</strong></li></ul><p>Can have value: <em>“true”</em> or <em>“false”</em>. If true and <em>“docId”</em> wildcard is used the service will try to restore data from DB to the MQTT server target topic on startup (after it restarts).</p><ul><li><strong>collection</strong></li></ul><p>An array of collections used on <em>“collection”</em> wildcard and creates a collection on DB with the same name for each provided name.</p><ul><li><strong>docId</strong></li></ul><p>An array of <em>“docId”</em> to replace the wildcard and match with the document ID on the database. This is an optional configuration as it is not needed if the desired behavior is to save all events from the topic.</p><p>All records on the database will have these two properties available:</p><p><strong>createdAt:</strong> the timestamp when the record was created</p><p><strong>updatedAt:</strong> the timestamp when the record was last updated</p><p><strong>5.2. EXAMPLES:</strong></p><p><strong>If you want to register all objects published under a topic…</strong></p><p>The following will create two collections, namely <em>object1</em> and <em>object2</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/1*6CFj5pXm94SvtVEycOxODw.png" /></figure><p><strong>If you want to write over the same document with the given ID…</strong></p><p>The following will create one collection <em>object3</em> with two documents, namely <em>doc1</em> and <em>doc2.</em></p><p>Also, on startup of the service this documents will be read from the database and published under same topics because the setting <em>restoreOnBootup </em>is set to true.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*0nbWNOAnx1uSP0NMx4jv_A.png" /></figure><h3>6. Conducting a Query</h3><p>The service supports data queries, to retrieve data stored on the database using the same structure as we would on a LiteDB project.</p><p>In this chapters you can find some queries for desired scenarios (JSON objects are formatted, but they can be sent as one compressed line).</p><p><strong>6.1. SUPPORTED OPERATORS:</strong></p><p>In order to allow for a more complex filtering of information, the service allows the use of multiple operators. Currently, the following ones are supported:</p><ul><li><strong>and</strong></li></ul><p>Joins two conditions that both must resolve to true, its value is an array of BSON object.</p><ul><li><strong>or</strong></li></ul><p>Joins two conditions that one of them must resolve to true, its value is an array of a BSON object.</p><ul><li><strong>lte</strong></li></ul><p>Field to compare must be lower or equal than value. Its an object with two properties: <em>field</em> and <em>value</em>.</p><ul><li><strong>gte</strong></li></ul><p>Field to compare must be greater or equal than value. Its an object with two properties: <em>field</em> and <em>value</em>.</p><ul><li><strong>lt</strong></li></ul><p>Field to compare must be lower than value. Its an object with two properties: <em>field</em> and <em>value</em>.</p><ul><li><strong>gt</strong></li></ul><p>Field to compare must be greater than value. Its an object with two properties: <em>field</em> and <em>value</em>.</p><p><strong>6.2. EXAMPLES:</strong></p><p><strong>Getting all records from collection “JSONEvents” from date and time “2019–07–26 15:20:30”:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*-tzybUhWrYbWupEJ-gUlvQ.png" /></figure><p><strong>Getting all records from collection “JSONEvents” for day “2019–07–26” of “typeID” equal to 2:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*8vbhshbd2-gQwbu8OiCBrw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38b5efa57c91" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coreflux-blog/nosql2mqtt-a-coreflux-flux-asset-38b5efa57c91">NoSQL2MQTT, a Coreflux Flux Asset</a> was originally published in <a href="https://medium.com/coreflux-blog">Coreflux Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ADS2MQTT . Flux Asset]]></title>
            <link>https://medium.com/coreflux-blog/ads2mqtt-flux-asset-7776e314e582?source=rss-f9e921f3018c------2</link>
            <guid isPermaLink="false">https://medium.com/p/7776e314e582</guid>
            <category><![CDATA[coreflux]]></category>
            <category><![CDATA[plc]]></category>
            <category><![CDATA[mqtt]]></category>
            <dc:creator><![CDATA[Paulo Mota]]></dc:creator>
            <pubDate>Mon, 20 Dec 2021 17:06:11 GMT</pubDate>
            <atom:updated>2022-03-25T00:45:05.086Z</atom:updated>
            <content:encoded><![CDATA[<h3>ADS2MQTT, a Coreflux Flux Asset</h3><h3>1. The Purpose of this Flux Asset</h3><p>Coreflux’s <strong>ADS2MQTT</strong> is an asset focused on making all ADS variables running on a device readily available, by generally or selectively identifying and porting them to an <strong>MQTT Broker</strong> in JSON format, where they can be further consumed by other systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*547Y828B0hTCbfI9BLyTlA.jpeg" /><figcaption>Plc in a cloud ?!</figcaption></figure><p>By having the data available in this format, you can work with any ADS-enabled equipment using a language of your own choosing, like C#, Python, among many others.</p><h3><strong>2. The Target Protocol</strong></h3><p>What is ADS, exactly?</p><p>In the words of its Beckhoff Automation pioneers, the <em>Automation Device Specification</em> (ADS) describes a device-independent and fieldbus-independent interface governing the type of access to ADS devices. This protocol is a transport layer within the TwinCAT system, developed for data exchange between different software modules, enabling communication with other tools from any point within the TwinCAT.</p><p>The ADS protocol is used on top of TCP/IP, if communication with a PC or device is necessary, making it so that within a networked system it is possible to reach all data from any point.</p><p>Devices that use ADS include (but are not limited to) Beckhoff hardware. It works with either Twincat 2 and Twincat 3.</p><h3><strong>3. Installation</strong></h3><ul><li>There must be an MQTT Broker available (whether Coreflux’s <strong>MQTT Broker</strong> / Coreflux <strong>MQTT WebSockets Broker</strong> Flux Asset), to which the values will be written (the respective settings being used in the upcoming configuration of the ADS asset)</li><li>Open TwinCAT, and verify the settings of the server</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*rrs5s8qvn46MKC5dJGkMpQ.jpeg" /><figcaption>An example of retrieving the AMS Net ID address from TwinCAT</figcaption></figure><ul><li>To install this Flux Asset, open the Coreflux interface, locate the <strong>ADS2MQTT</strong> Flux asset (check if you have available slots for the installation of this Flux Asset, this information is displayed on the asset box, in the “used slots / total available slots” format)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*Jzneg3Mhb3wNEkf-_Jpjpw.png" /><figcaption>The Flux Asset box within the Coreflux Hub app (this user has used 1 of a total of 12 owned assets)</figcaption></figure><ul><li>Click the “Install” button, which will prompt the opening of the configuration overlay</li><li>Configure the <strong>ADS2MQTT</strong> Flux Asset to be installed (retrieve the settings for the target TwinCAT Server, and the settings for the target <strong>MQTT Broker</strong>)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*J-u8obaOsHMhu2Tc-LH4Kw.png" /><figcaption>The configuration window on the pre-install phase</figcaption></figure><ul><li>Start the newly installed <strong>ADS2MQTT</strong> Flux Asset</li><li>After installation, the instance window for this asset installation will display the “Standby” status (to begin execution, press the Play button, and if successful, the instance status will change to “Running”)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/118/1*sc2QcgUw9VT-xxftoHKkWg.png" /><figcaption>Asset installed! Time to run it.</figcaption></figure><ul><li>If for some reason the inputted configuration fails to execute (or permission to run is not confirmed by the system), the asset will try to enter a run state but return to a halted state when failing to do so, displaying an error popup (on the GUI Hub) or message (on the command-line Hub)</li></ul><h3><strong>4. Glossary of Parameters</strong></h3><ul><li><strong><em>Instance ID (String)</em></strong></li></ul><p>Name identifier attributed to this specific instance of the <strong>ADS2MQTT</strong> Flux Asset application (which can either be defined by the user or randomly assigned if null, at the time of creation of that specific instance)</p><ul><li><strong><em>MQTT Broker Server IP / Address (IP Address)</em></strong></li></ul><p>IP element of the address where the gathered and generated values should be written (if you have a local <strong>MQTT Broker</strong> Flux Asset installed and bound to any address, you can either use your specific network IP or localhost address)</p><ul><li><strong><em>MQTT Broker Server TCP Port (Int)</em></strong></li></ul><p>Port element of the address where the gathered and generated values should be written (if you have a local <strong>MQTT Broker</strong> Flux Asset installed, you can either use it, inputting the specific port in which it is running)</p><ul><li><strong><em>ADS Server / Address (ADS Address)</em></strong></li></ul><p>Address of the ADS Server, which in Twincat 3 it can be found by right-clicking on the TwinCAT icon, selecting “Router”, and “Change AMS NetId” (the address indicated on the resulting popup shall be the value used for this parameter). The same technique applies for Twincat 2.</p><ul><li><strong><em>ADS Server Runtime Port (Int)</em></strong></li></ul><p>Port element of the ADS Server address. Be aware in Twincat 2 is 801 normally and Twincat 3 is 851.</p><ul><li><strong><em>Where to Publish (String)</em></strong></li></ul><p>MQTT path on the specific broker where the ADS data (gathered from the configured device) will be published</p><ul><li><strong><em>QOS Level Publishing (Int)</em></strong></li></ul><p>The MQTT message Quality-of-Service (QOS) level with which publications will be made</p><ul><li><strong><em>Retain MQTT Messages (Bool)</em></strong></li></ul><p>Boolean setting to determine if MQTT messages will be published with the Retain property or not. The Retain property of an MQTT message indicates if it becomes unavailable right after being published and distributed to subscribers, or if that values is retained on the topic for future subscribers to receive</p><ul><li><strong><em>MQTT Data Path (String)</em></strong></li></ul><p>The base MQTT path to which the data will be written, on the target broker</p><ul><li><strong><em>MQTT Var List Path (String)</em></strong></li></ul><p>The base MQTT path to which the variable list will be written, on the target broker</p><ul><li><strong><em>MQTT Error Path (String)</em></strong></li></ul><p>The base MQTT path to which any potential errors will be written, on the target broker</p><ul><li><strong><em>Cycle Write Time (Int)</em></strong></li></ul><p>Cycle time for refresh variables in ms.</p><ul><li><strong><em>Force Cycle Write (Bool)</em></strong></li></ul><p>If True it always changes the variable values even if the variable wasn’t published.</p><ul><li><strong><em>PLC Variable Validator (Array)</em></strong></li></ul><p>An array of the variables to read, with elements like: variable name, memory position, variable type, length, function to use, direction. If you wish to read all, you can simply use the following: .*</p><p>If you require to change the structure of the variables</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*8i5ISmAdBroD2I9qJUFw6Q.png" /></figure><ul><li><strong><em>Discovery Mode (Bool)</em></strong></li></ul><p>If configured to TRUE, this asset will scan the entire server in search for variables (instead of targeting only specifically configured addresses), and publish every single one that it finds to the configured MQTT Broker</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7776e314e582" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coreflux-blog/ads2mqtt-flux-asset-7776e314e582">ADS2MQTT . Flux Asset</a> was originally published in <a href="https://medium.com/coreflux-blog">Coreflux Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Practical IoT fun(ctionality) at the office, with Coreflux / MQTT / Unity]]></title>
            <link>https://medium.com/coreflux-blog/practical-iot-fun-ctionality-at-the-office-with-coreflux-mqtt-unity-59982d90f6fa?source=rss-f9e921f3018c------2</link>
            <guid isPermaLink="false">https://medium.com/p/59982d90f6fa</guid>
            <category><![CDATA[coreflux]]></category>
            <category><![CDATA[unity]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[mqtt]]></category>
            <category><![CDATA[makers]]></category>
            <dc:creator><![CDATA[Paulo Mota]]></dc:creator>
            <pubDate>Fri, 14 Jun 2019 15:57:08 GMT</pubDate>
            <atom:updated>2019-06-16T09:13:28.117Z</atom:updated>
            <content:encoded><![CDATA[<p>As an enthusiast of the Maker movement with multiple interests, one of the qualities I value in digital tools (both software and hardware) is versatility. And so, me and my team often revel in devising pet projects that simultaneously have a practical utility and allow for an exploration and expansion of our digital toolsets!</p><p>In the didactic spirit of Makers, and realizing this may eventually have some interest for other people, here’s an account of the latest hobby project undertaken at Setlevel: to create the groundwork for a future “<em>Internet of Things</em>”-enabled office. Such a system, now increasingly common in the age of IoT, allows for remote supervision and control of equipment and facilities. This capability is often coupled with multiple benefits, such as power-saving, reduction of maintenance requirements, and more.</p><p>But building a complete system from scratch takes time! So first things first… a journey of a thousand miles begins with a single step. <strong>The goal for today was simple: to enable MQTT control over a specific set of the office lights.</strong> The necessary tools were already at hand, just waiting to be put to good use: a beta-tester license of Coreflux (more on that below for those who haven’t contacted with it yet), an MQTT relay node, and Unity (for desktop and mobile software development, in this case to be compiled for Android).</p><h4><strong>Choice of node hardware (and relay module configuration)</strong></h4><p>For this part, some market research was necessary. There are multiple equipments available out there, each with different capabilities versus prices ranges. <strong>What you should get depends very much on what you wish to accomplish, and what specific requirements you have.</strong></p><p>The choice in this case went to an Aptinex Relay Node (RP4CE8) board. This module allows the control of four relays through Wi-Fi, acting as a MQTT client. Coming straight from the manufacturer in Sri Lanka, it took a week or so to reach the office.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9-M2uhxsTpwZTfdTURJFog.jpeg" /><figcaption>Using an Aptinex Relay Node (RP4CE8) as hardware for Setlevel’s office automation</figcaption></figure><p>The Aptinex relay module has a configuration panel that allows you to customize different aspects of its use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*kDYrC0s0QR83cS6oM5LTSQ.png" /><figcaption>Configuring all the necessary elements</figcaption></figure><p>Overall, the RP4CE8 was pretty straightforward to configure and install. Recommended, likely to be used in future projects.</p><h4><strong>Coreflux</strong></h4><p>An industrial-grade communications tool! Versatility coupled with ease of use.</p><p>In its essence, this software uses native protocols to allow communication between different devices, across a diverse range of operating systems and hardware suppliers. Focus is placed on gathering and passing data, instead of development, providing various options in terms of connectivity.</p><p><strong>To get Coreflux, if you’re a member of the community you’ll soon be able to download the latest version of the installer file from its website.</strong></p><p>An overview of the installation process follows. First, the usual: download, double-click on the installer, read the texts, and proceed with all steps. Then, run the shortcut that will be created on your desktop. Once that is done, you will be prompted for a login.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*LfnqwJqUFoWC2K9zoJa8Jg.png" /><figcaption>At the front door</figcaption></figure><p>Once you sign in, you’re presented with a screen listing the available apps and those you have already installed (first-time users will have none on this field yet). The one you’ll want to install for this project is the MQTT Broker… click on it to open the pre-install configuration, and then press “Install”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*FDAE7aMrwuelLy3HgQtALQ.png" /><figcaption>Looking good</figcaption></figure><p>The broker should now appear on your list. Click on its blue icon to initialize the service, and wait for the status to change to “Running”.</p><p>And voilá, you now have an MQTT Broker running straight from your computer. Using any kind of client, you can now publish and subscribe to it (in this case we conducted initial tests using a software called MQTT FX).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RCCOjKcuZNGZ7sCiBHvl8Q.png" /><figcaption>Ready to go</figcaption></figure><h4><strong>Electrical installation</strong></h4><p>Getting hands-on… remember, safety first! Before even considering touching electrical wires, check if the local power is disconnected from the electrical board. Wear appropriate gear, and use proper tools when interacting with your electrical installation. Use stable ladders to reach high places. <strong>If you are unsure on how to do any of this, find someone who is qualified to help you.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*aAjAi2UAfkWVP9U61DAMWg.jpeg" /><figcaption>Above and beyond</figcaption></figure><p>Here’s the corresponding schematic, straight from the Aptinex website:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*baFXbEYS6GnffmP_nDdIaA.png" /></figure><h4><strong>Unity: User Interface and Scripting</strong></h4><p>Time to devise a user interface / frontend for our endeavour! Moving over to Unity, a quick prototype project was created.</p><p>Remember the emphasis at this point was on functionality, not aesthetics. A full-fledged control application will allow for dynamic feedback, animations, and much more. And Unity is the perfect tool to achieve balance between look and function (will probably be publishing future evolutions of this, as it is gradually implemented around the office).</p><p>So, as a first UI element, a button prefab was built to use as a template for all instances. This prefab was comprised of a button (of course), with a text label and an icon for ease of readability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wpG-p03wzasD4QYa6har7A.png" /><figcaption>Quite spartan… functional, not (necessarily) pretty</figcaption></figure><p>Next, the Coreflux Unity API package was imported. On the “Assets” tab, select “Import Package”, and “Custom Package”. A file dialog box will open, and the correct package should be selected. Two new files shall be added to the project, namely the Coreflux DLL and a MQTT control script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CVnBhpqoATvhAIibGW0Ilg.png" /><figcaption>Importing comms magic into the project</figcaption></figure><p>All set to begin with code. The actual functionality was then implemented on a script, with the Coreflux dependency added (“using CorefluxUnityAPI.Networking.Mqtt;”).</p><p>First, some additional detail on the MQTT control script, that handles the connection to the broker. This script includes three variables that will be filled in on Unity, specifically where you’ll input your broker’s IP and port, as well as ClientID. The DebugLocation is used to output info on the state of your connection, adding useful feedback to your app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*wRnURGdl7cTH1PlMG9u4Hg.png" /><figcaption>Controlling the connection</figcaption></figure><p>Done! Now add this script to your Unity canvas (or any other element where it’s easy to find), filling the input fields with your connection data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*Y-zAVPi5C7y76J8C2MmWtg.png" /></figure><p>And now, for the lamp control. To begin, we require a topic string, and a boolean for interpretation of the state. Afterwards, when the button is clicked, a 1 or a 0 is published to MQTT and thus sent to the relay node (depending on its current state).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*eyeqIKI-RwMtdeCEVEWqNA.png" /><figcaption>Quick and to the point</figcaption></figure><p>And that’s right about it! Proceed to the Build Settings option, and choose the platform you wish to run the app in. In this case, we compiled for Android.</p><h4><strong>Conclusion</strong></h4><p>Objective complete! Control at your fingertips.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3UIY4g7QjtNGNkTXSezumg.jpeg" /><figcaption>A sighting of a Coreflux / MQTT / Unity / Android software on the wild</figcaption></figure><p>We now have remote control of the office lights, and a framework to keep on implementing domotics control over different aspects of the entire office.</p><p>This also accomplishes a small demonstration of the potential and ease of use of a cross-hardware communications software like Coreflux. It had already proven its capabilities in industrial context, but here also makes an appearance in a more personal context (especially when coupled with technologies we already use in our daily lives).</p><p>What’s next? Endless possibilities, many new topics on the hobby To-Do list.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59982d90f6fa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coreflux-blog/practical-iot-fun-ctionality-at-the-office-with-coreflux-mqtt-unity-59982d90f6fa">Practical IoT fun(ctionality) at the office, with Coreflux / MQTT / Unity</a> was originally published in <a href="https://medium.com/coreflux-blog">Coreflux Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Advancing from Industry 4.0 to 4.1]]></title>
            <link>https://medium.com/coreflux-blog/industry-4-1-accessible-and-affordable-iot-872df5cb0878?source=rss-f9e921f3018c------2</link>
            <guid isPermaLink="false">https://medium.com/p/872df5cb0878</guid>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[industry]]></category>
            <category><![CDATA[internet-of-things]]></category>
            <category><![CDATA[industry-4-0]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Paulo Mota]]></dc:creator>
            <pubDate>Sat, 20 Jan 2018 19:15:03 GMT</pubDate>
            <atom:updated>2019-09-11T11:32:40.479Z</atom:updated>
            <content:encoded><![CDATA[<h3>Advancing from Industry 4.0 to 4.1: traits for successful IoT platforms</h3><p>Industry, in the last decades, has gone through a series of critical milestones. Historically, these have marked society as a whole, defining entire ways of life and the way people interact with their immediate and global contexts.</p><ul><li>The first great game-changer was mechanization, accompanied by the harnessing of steam and water as power sources. Locomotion and production were forever transformed, effectively multiplying human capacity.</li><li>Then came the age of mass production, with the advent of assembly lines. The vast amount of materials now being transported from one location to the next could now be processed far more easily and quickly, making them readily available for markets at large.</li><li>With the challenges of scale that mass production presented, automation of those lines was the next logical step, in what would be known as the third major revolution. No longer was production “limited” by human output… machines would work tirelessly (at the cost of energy and maintenance), promising more free time to workers for other endeavors. The work market was, and still is being, transformed. In many industries, this meant less manual labor, more executive decision-making.</li><li>And nowadays, we are beginning to <strong>make the most of automated lines through their increasing autonomy and interconnection</strong>. “Internet of Things” (IoT) and “Cloud Computing” are now quickly becoming household expressions, fueled by a movement aptly dubbed <strong>Industry 4.0</strong>, the fourth major revolution in how things are produced...</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*-TsLHuUTkQmw-x_McY87IQ.jpeg" /><figcaption>Multiple elements of automation in Industry 4.0</figcaption></figure><p>Machines are now able to create a virtual model of their environment and exchange data between them and to a processing server, thus being able to make decisions on their own in accordance with the parameters of managers and/or operators. One thing consequently needs to be at the heart of any investment in this area:</p><blockquote>Action is less dependent on human intervention, and far more reliant on accurate data. Decisions are context-based, providing quick response to fast-changing productive environments.</blockquote><p>This is quickly becoming the standard. But that is not to say this revolution is without its challenges, as previous revolutions also faced their own specific barriers, before they were widely implemented. And that is the main focus of this article.</p><h4><strong>Accessibility &amp; Ease of Prototyping</strong></h4><p>Even though the Industry 4.0 “trend” has been gaining traction for the past 5 years, the truth is that <strong>to many this is still an inaccessible reality</strong>, due to a knowledge barrier. And many are the questions raised by all levels of hierarchy:</p><blockquote>What is it? What results can it help our company achieve? How much will it cost? What will the ROI be? How quickly can we achieve break-even? Will our workforce be able to adapt to this change? Will it play well with our existing structure? What steps should we take in order to keep up?</blockquote><p>There is still a lot of uncertainty floating around. Additionally, the cost of hiring developers has skyrocketed. Speaking with directors of both Human Resources and Development/Innovation departments of several companies, it is clear that true capability in internal development is at a premium. And rightfully so: nowadays data has become ubiquitous, and the competitive edge lies in making vast amounts of contextual data work for the specific advantages you seek. Autonomously, preferably.</p><p>But alas, according to available global reports, code illiteracy among the general workforce is still high (and technological availability has been far from even across countries due to differences in educational and economic opportunities, but that is a topic for an entire discussion). This leads to an usual absence of internal specialized manpower to develop and implement these systems, aggravated by a reluctance from stakeholders to invest due to the absence of a fast and easy way to create a proof-of-concept.</p><blockquote><strong>In industry, if a technology is not adaptable enough to be swiftly implemented with predictable results it is as if it doesn’t exist at all</strong> (unless all the competition is already using it, then you either adapt or perish).</blockquote><p>Consequently, the most adaptive of IoT solutions are already being built with this problem in mind, as a result of working closely with industries in diverse stages of ability.</p><p>Designed to be accessible to anyone by providing a low-code environment, they allow for custom applications to be easily outlined and configured through its intuitive graphical user interface. This means managers are able to collect data already available from the machines, and process it through secondary services, all within the same environment. The final result is not only able to serve as a prototype, but can subsequently be fully fleshed-out into an end-product.</p><p>Focus shifts from development (slow) to implementation (quick). And this is the difference between taking lead in a specific market or alternatively struggling to catch up: it becomes faster to experiment, adapt and thus find the right mix of solutions.</p><p>This ease of prototyping and its consequent value for production management is a key-point in the current state-of-the-art, being a fundamental plus when it comes to decision-making.</p><h4><strong>Communication &amp; Collaborative Communities</strong></h4><p>Development and prototyping made easier, integration becomes the next vital feature.</p><p>In our current global market, great diversity of third-party software and hardware is the staple of any industry, and these services are expected to produce data that is paramount to management. And more often than not, multiple solutions need to co-exist in the same ecosystem, to provide the required results. Unfortunately, they seldom work well together, due to the nature of the competitive markets they navigate.</p><p>This makes it important to be able to <strong>communicate directly with multiple existing sources</strong> (like SAP, Odoo, among others), for an out-of-the-box IoT capability. Once again, this has been one of the concerns for current solutions, both to ensure specific drivers are constantly added and to create conditions for external developers to be able to create and share their own specific solutions with the community.</p><p>Only in this way can flexibility and continuity truly be guaranteed, by transferring capability to the people who know best what their specific expertise, limitations and requirements are. By keeping the tools updated in an dynamic environment where a lot can change in a single productive cycle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p_Mtxo4zeqEYOmL4tJeBXA.jpeg" /><figcaption>In Industry 4.0, each element is an optimizable part of an wider ecosystem</figcaption></figure><h4>Conclusion</h4><p>All things taken into account, if the Internet of Things is at the heart of Industry 4.0 and contemporary alternatives are striving to make it available to a wider audience, then solutions that take these issues into account effectively make them an accessible 4.1, the next step in implementation.</p><p>As with its predecessor technologies, affordability and accessibility are two of the main necessary traits for IoT platforms going forward, paramount to help crystallize the value of I4.0 for future production value across industries. Flexible solutions that allow prototyping and experimentation through quicker design cycles are the key to individual success, as automated action is increasingly context-sensitive.</p><p><strong>So, these elements become critical, toward the goal of adaptability:</strong></p><ul><li>Accessible solutions that make the data readily available for use</li><li>Inter-connectivity across multiple software &amp; hardwares</li><li>Openness to development by a wider audience, ensuring extended support</li><li>Ease of prototyping, not only for proof-of-concept but also implementation</li><li>Enabling of contextualized autonomy of analysis, decision and action</li></ul><p>One size no longer fits all (in contrast with the previous principles of mass production), and that is a good thing… effective technology, like everything else designed by and for human benefit, is at its peak performance when adapted to the specific contexts to which it is meant to be applied.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=872df5cb0878" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coreflux-blog/industry-4-1-accessible-and-affordable-iot-872df5cb0878">Advancing from Industry 4.0 to 4.1</a> was originally published in <a href="https://medium.com/coreflux-blog">Coreflux Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>