IBM Cloud & Node-RED

Objective Setting up the Node-RED editor within IBM Cloud Sending messages via MQTT to a Node-RED MQTT node You can request access to IBM Cloud at the following URL: IBM Cloud Afterwards you can create a new ‘Resource’ here. Within the catalog, various cloud resources (applications) are made available to us. We select Node-RED. This application provides us with the Node-RED editor within IBM Cloud. After entering the initial data, we have to wait a brief moment until the application is installed with the desired settings in the cloud and made available to us. ...

January 27, 2019 · Aaron

MQTT + Cumulocity IoT Platform

MQTT Summary [Source: Wikipedia] MQTT (Message Queuing Telemetry Transport) is an open messaging protocol for machine-to-machine communication (M2M) that enables the transmission of telemetry data in the form of messages between devices, e.g. sensors. The Internet Assigned Numbers Authority (IANA) reserves ports 1883 and 8883 for MQTT. MQTT messages can be encrypted using the TLS protocol. The MQTT specification distinguishes between TCP/IP-based and non-TCP/IP networks. MQTT is a client-server protocol. Clients send messages with a topic to the server (“broker”) after establishing a connection; the topic hierarchically classifies the message, for example Kitchen/Fridge/Temperature or Car/Wheel/3/AirPressure. Clients can subscribe to these topics, and the server forwards received messages to the respective subscribers. ...

January 26, 2019 · Aaron

TestCafe Example

Download Link Environment Configuration Example 1: Example 2: Use of a page object The login has been extracted into a page object: npm run test:firefox -c 8 runs the test in parallel across 8 Firefox instances.

December 13, 2018 · Aaron

IO-Link Device Description (high level)

Under the brand name IO-Link there is a communication system for the connection of intelligent sensors and actuators to an automation system standardized in IEC 61131-9 under the designation Single-drop digital communication interface for small sensors and actuators (SDCI). The standardization covers both the electrical connection data and a digital communication protocol through which the sensors and actuators exchange data with the automation system. An IO-Link system consists of an IO-Link master and one or more IO-Link devices, i.e. sensors or actuators. The IO-Link master provides the interface to the higher-level controller (PLC) and controls communication with the connected IO-Link devices. ...

September 4, 2018 · Aaron

Modbus: Summary of the Specification (high level)

The Modbus protocol is a communication protocol based on a master/slave or client/server architecture. It was introduced in 1979 by Gould-Modicon for communication with its programmable logic controllers. In industry, Modbus has become a de facto standard as it is an open protocol. Since 2007, the Modbus TCP version has been part of the IEC 61158 standard. [Wikipedia] As the following diagram shows, Modbus allows communication over different networks: ...

August 12, 2018 · Aaron

E.D.D.I - Open Source Chatbot Platform Installation

Installation E.D.D.I can be installed both from source and as a Docker container. I will perform the installation from source. First we need to install the following applications: Java SDK version 8 git Maven mongoDB Community Server Set environment variables for Java and Maven: Set paths for Java, Maven, and MongoDB: Test paths: Download sources via git: cd git clone https://github.com/labsai/EDDI.git Build application via Maven: mvn clean install ...

August 8, 2018 · Aaron

CoAP: Specification Summary (high level)

Constrained Application Protocol (CoAP) CoAP is an Internet application protocol specified in RFC 7252. The protocol is used for communication of devices ’nodes’, e.g. embedded devices, that consume very little energy (low-power) and operate in networks with increased data loss (lossy networks), for instance IPv6 over Low-Power Wireless Personal Area Networks (6LoWPANs). CoAP can also be used within Internet-based networks for mobile communication via SMS. CoAP is primarily used in the context of the Internet of Things (IoT) and Machine-to-Machine (M2M), as device data/sensor data of small size is usually transmitted. Since this type of data is transmitted at regular intervals (cycles), individual (lost) data packets have no significant impact on the processing systems or applications, such as an IoT platform that processes and/or graphically displays the corresponding sensor data (temperature, rotation speed, etc.). ...

July 12, 2018 · Aaron

Wireshark Tutorial

Wireshark is a free program for analyzing and graphically presenting data protocols (sniffer). Such data protocols are used by computers on various communication media such as the local network or USB. Capturing the communication can be useful for troubleshooting or evaluating the content of the communication. Wireshark displays both the protocol headers and the transported content during a capture. The program relies on the output of small helper programs like pcap or usbpcap for the graphical presentation, in order to capture the communication content on the respective transmission medium. [wikipedia] ...

July 12, 2018 · Aaron

MQTT: Summary of the Specification (high level)

MQTT (Message Queue Telemetry Transport) is an open messaging protocol for machine-to-machine communication (M2M) that enables the transmission of telemetry data in the form of messages between devices, despite high latency or constrained networks. Corresponding devices range from sensors and actuators, mobile phones, embedded systems in vehicles or laptops to fully developed computers. [Wikipedia] The information about the specification listed below comes, among other sources, from the current MQTT specification of IBM. ...

July 9, 2018 · Aaron

API Definition with Swagger and YAML

Swagger Installation: npm install -g swagger Project Creation: swagger project create <project_name> Start Project: swagger project start Edit Project: swagger project edit The notation is defined within the OpenAPI Specification. Visual representation of the specification by Arnaud Lauret: Link API Definition (excerpt): Download swagger.yaml Verify YAML code: swagger project verify Include mock file In the project folder under the ‘mocks’ directory create a new mock file e.g. getAllEntries.js . The mock file must then be included within the project: ...

December 3, 2017 · Aaron