Thingsboard open source platform IOT (a) - the basics

Because of work reasons, we need to build a set of IOT platform. For data protection and pre-validation of the reason, there is no choice of Huawei, Ali, IOT mature platform, but based on open-source Thingsboard to build IOT platform.

Thingsboard Profile

ThingsBoard is an open source platform, used for data collection and visualization thereof networked devices. Data can be sent from any number of devices to the cloud server, you can view shared in the cloud server or by customized dashboard.

Thingsboard standard protocol support provides device connection is MQTT, CoAP and HTTP, and supports local and cloud deployments. It offers more than 30 customizable widget, most things allows you to build custom dashboards final use cases. Things thingsboard.io open source platform main features: the widget 30 can be customized real-time data visualization and remote control devices custom dashboard of customizable rules, plug, widgets and transport implementation allows monitoring client and server apparatus providing Attributes. It supports multi-tenant installation of the box. MQTT and support the HTTP protocol to transfer encrypted. Failed nodes can be replaced without downtime

version

Thingsboard divided into Professional and Community Edition, is open source Community Edition, Professional Edition for a fee, the difference between the two versions as shown in the following Figure 2:

 

Architecture

Thingsboard offers two architecture, micro-architecture and service Monolithic price

Micro Services Architecture

Monolithic architecture

IOT gateway

In all of the IOT, IOT gateway is a very important part, the majority (60% -80%) fall dumb terminal devices (the IP does not support), these devices need to be able to access the internet through the gateway cloud . Therefore Thingsboard supported by IOT gateway into the platform, here is the overall architecture diagram IOT gateway,

ThingsBoard IoT Gateway architecture

Gateway currently supports:

  • MQTT extension, for controlling, configuring and collecting data using an existing protocol to connect to an external device IoT MQTT agent.
  • OPC-UA extension, for collecting data from a server connected to the OPC-UA IoT device.
  • Sigfox扩展,用于从连接到Sigfox Backend的IoT设备收集数据。
  • Modbus扩展,用于从通过Modbus协议连接的物联网设备收集数据。

Thingsboard概念

对于物联网非常熟悉的读者可以跳过该部分。

组织和用户

组织

平台/系统

这个组织容易被人忽略,尽管大家都指导它的存在。

租户Tenant

租户可以被视为独立的业务实体:拥有或生产设备和资产的个人或组织; 租户可能拥有多个租户管理员用户和数百万客户;

客户

客户也可以被视为独立的业务实体,他购买或使用租户设备和/或资产的个人或组织; 客户可能拥有多个用户和数百万设备和/或资产

三者的关系是:平台-->租户-->客户

以智慧小区为例(集群),每个小区都可以看做是一个租户

用户

用户的定义是平台的使用者,他的身份可以是平台/系统管理员、租户管理员和客户用户,分别对应相应的组织

平台-->平台管理员

租户-->租户管理员

客户-->客户用户

平台管理员可以创建租户,并为该租户创建租户管理员;租户管理员创建客户,并为客户创建用户账号。客户用户能查看设备、资产和控制设备,但是无法对它们进行编辑、增加。

 

设备和资产

设备

可能产生遥测数据和处理RPC命令的基本物联网实体。例如传感器,开关

资产

可能与其他设备和资产相关的抽象物联网实体。例如工厂,油田,车辆

资产这个概念比较模糊和笼统,可以那么理解(不一定正确):设备是直接产生数据、接受指令的实体;资产可以是一个空间或者容器,包含了多个同类设备或者非同类设备。比如A生产车间有10个机械手,1个搬运机器人,A车间的B生产团队有4个机械手,那么A生产车间和B生产团队都可以当做一类资产。因此从这个角度来说,资产可以看做是组织、地点等等。

å¾ç

Guess you like

Origin blog.csdn.net/wweiru/article/details/92397681