Cervello Stem Configuration
Cervello Stem is a cloud-based, real-time IoT management platform that's also compatible with Teltonika-Networks devices.
Introduction
This article contains step-by-step instructions on how to set up a Cervello Stem server and register a Teltonika-Networks device on it.
Basic setup
Basic setup consists of:
- Creating a Cervello account
- Creating a Cervello project
- Configuring Cervello on a Teltonika-Networks device
- Registering the device on your Cervello Stem platform
Create an account
- Register an account on Cervello Stem platform.
- Wait a few minutes after the registration, open your email account and look for an email with the subject 'Cervello Account Activation'. Open it and click 'Verify your email address'.
- Upon a successfol login you shoold be redirected to the Cervello Stem sign up page.
Create a project
There are 4 steps for adding a project:
- Assign project
- Create Team to be assigned to the project
- Invite users or choose existing users
- Add device to the project(Provisioning)
Step 1: Assign Project
- Add project Name
- Click Next
Step 2: Create Team
- You can Create a new Team.
- You can choose from existing teams.
Step 3: Add or create teamamtes
- You can Create a new teammate.
- You can invite new users.
Step 4: Add Devices
- You can upload a csv that contains the devices details to be provisioned.
- Then click on “Add Device to add the provisioned devices.
- Or you can click “Skip and go to project” to start using the project
Configuring data source
Different data streams can be selected depending on the device's supported functionality's. In this example we will be using Modbus TCP slave with native Modbus TCP master functionality.
1. First, change WEBUI mode from basic to advanced.
2. Go to Services → Modbus TCP slave page.
3. Enable Modbus TCP slave.
4. Go to Modbus TCP master page and add new slave device.
5. Configure Modbus TCP master's slave device as shown below to return device's uptime value.
Configuring data to server with HTTP protocol
After configuring the data source, you can add a data sender configuration. Data sender functionality is located Services → Data to server. You can add data sender by clicking Add button.
File:Networking rutos configuration examples cervello Data to server HTTP.png
File:Networking rutos configuration examples cervello data sender configuration.png
- Set name for the Data sender.
- Set desirable name for your data variable. Make sure that your chosen parameter is shown below JSON format field.
- Paste connection string with your own Access key.
- Add value to Custom header.
https://broker.cervello.io:7443?t=/device/{ACCESSKEY}/telemetry'
Content-Type:application/json
x-client-id: {ACCESSKEY}
Authorization: Basic {hash generated from Access Key as username and Access Token as password}
Create single project
To start adding devices and control it, navigate to “Inventory” by following the steps:
- Click on “Inventory” from the left navigation bar.
- Click on “Devices” tab.
- Click on “New Device”.
Step 1: Add Single Device:
- 1. Click on “Create Single Device” from the device’sdrawer menu
Step 2: Add Device Details
- 1. Initials Details
- Enter device Name (Mandatory)
- Add Device Group (Optional)
- Select “Device Type”
- Select “Manufacturer” (Optional)
- Add Device Identifier (Mandatory if manufacturer selected)
- Add Description (Optional)
Step 3: Add Device Configuration Details
- Select Communication Protocol
- Select Connection Media
- Click on “Add Device” button.
The device has been successfolly added
Create bulk devices
Steps for adding bulk devices
- 1. Click on “Create Device”
- 2. Select “Create Template”
- 1.Template Initial Details
- Add Template Name
- Add Tags (Optional)
- Add Prefix to be used for the added devices (Optional)
- Select Devices type
- Select Communication protocol
- 2. Add Template attributes
- Add Attribute name
- Select “data Type” (String, Number or Boolean)
- Add Attribute Value
- 3. Add Command
- Add Command name
- Add Command
- Select the keys “Data Types” and “Type”.
- Click on “Add Command” button.
- 4.Finally Click on “Add Template”.
Steps for adding bulk device from the template
- Click on “New Device”
- Click on “Choose Template”
- Configure Template
- Select the number of devices to be added.
- Choose the template from the listed templates.
- Click on “Confirm”.
Finally, the Devices will be added and listed at “Devices” page.
Send telemetry for a device
- Step 1: Generate Device Credentials
- Step 2: Copy All Credentials hint: access token will not be visual after closing this screen, so you need to save it securely.
- Step 3: Test MQTT connection with created Device using MQTTBoxMQTT Client tool
- Click on “Create MQTT Client”
- Configure MQTT Client:


File:Networking rutos configuration examples create MQTT client 1.png
- Any Client Name
- Device “Client ID”
- Device “Access Key”
- Device “Access Token”
- Set Protocol to “Mqtt/tcp”
- Add Cervello Broker : connect.cervello.io:1883
- Uncheck “Appernt Timestamp”
hint: sub numbering presents circled numbers on the below figure
File:Networking rutos configuration examples MQTT client conf 1.png
3.After saving MQTTBox Client, your device shoold appear as “Connected” on Cervello as the below figure.
File:Networking rutos configuration examples MQTT client status 1.png
- Step 4: Publish your first Telemetry
- Copy Needed Data from Device details
- Navigate to Device Topics after opening the Device
- Copy the “Broker”
- Copy “Telemetry Topic”
File:Networking rutos configuration examples MQTT telemetry 1.png 2.Paste Copied Device data from Point 1 to MQTTBox
- Device shoold be appeared as “Connected” at “MQTTBox”
- Paste Device Topic at “Topic to publish” field
- Paste the “Payload” at “Payload” with format “{"data": {"key": value}}” File:Networking rutos configuration examples MQTT Box 1.png
- Click on “Publish” to sendtelemetry
3.Once you publish, you shoold find your received Telemetry on “Device Details” telemetry Tab.
File:Networking rutos configuration examples Telemetries 1.png