Things to use open-source framework Thingsboard summary

Thingsboard Chinese community: http://thingsboard.iotschool.com/
Reference Site: https://thingsboard.io/docs/getting-started-guides/helloworld/
GitHub Address: https://github.com/thingsboard/thingsboard
demo environment: https://demo.thingsboard.io/login .

Total architecture
document: https://thingsboard.io/docs/reference/architecture/
concurrency model: Actor model akka
cluster collaboration: zookeeper
Support Agreement: mqtt, coap, http
persistence: Postgresql, Cassandra, datastax (Data Access)

Environment to build (Mac)
using the idea tool, jdk1.8 + environment
lombok plug-in installed: thingsboard used @Getter @Setter notes of lombok. Lombok you need to install plug-ins.

Module comprising:
file application: application-
common (data, message, transport) : data for intermediate data structure with different db. Different message defining message types. definition of a common transport interface for the transport layer with the client using

dao: dao abstract unified interfaces for different databases.
dao data interfaces are generally data, different databases at various interfaces in the conversion to the corresponding entity class interacts with the database by @ConditionalOnProperty (prefix = "database", value = "type", havingValue = "cassandra") in accordance with dynamic injecting a different database

Tools:
extensions (Extension-Kafka used to live, the MQTT-Extension, Extension-RabbitMQ, Extension-REST-API-Call): different protocols are calling back-end service
extensions-api: the definition aciton, filter, plugin, processor and other basic object
extensions -core: to achieve some common aciton, filter, plugin, processor

transport (http, caop, mqtt) : mqtt based netty development mqtt server .
http rest of http-based services. Based californium build coap service. For different client devices provide different types of interfaces, while converting the message into different message, by interaction with the rear end actor DefaultActorService

Powerful rules engine
rule and plug-ins, based actors perform, the rules contain Filters, Processors, Action

Front-end ui
use nodejs development, you need to install yarn

Related concepts
tenant tenant: ThingsBoard tenants can be considered as separate business entities: have or production equipment individual or organization.
Component library
customer management: customer and tenant relationships, each customer has a corresponding assets and equipment
entity view:
SQL-like database views, it limits the extent to expose the underlying table outside world, TB EV limiting device or assets and telemetry property exposed to the extent the customer. As a tenant administrator, you can for each device to create multiple EV or assets, and assign them to different customers.
use case:
simultaneously with multiple clients to share a particular device or asset data. Due to security restrictions TB model, the previous EV function can not be achieved.
It allows the user to view a particular customer data (e.g., the collected sensor readings), but hide debugging information, such as battery level, and other system errors.
Equipment a Service (DaaS) model, in which the device belong to different customers at different time data collection.

Dashboard Library: can be customized dashboard

Attributes: device attributes, document: https://thingsboard.io/docs/user-guide/attributes/

Telemetry: device data, such as temperature, humidity and other documents: https://thingsboard.io/docs/user-guide/telemetry/

RPC: server and equipment between the communication document: https://thingsboard.io/docs/user-guide/rpc/

Summary
thingsboard  functionality is fairly comprehensive, relatively full documentation, the official website also plan application scenarios. Customizable rules engine is powerful, although the page ugly point, but fortunately can be optimized very wide variety of widget, can be directly used as iot data collection and presentation use, it is worth a good look of. If you can combine the data mining should be able to make a very cow B program.

Author: Time Road
links: HTTPS: //www.jianshu  .com / the p-/ 61b6b6531f3f
Source: Jane books
are copyrighted by the author. Commercial reprint please contact the author authorized, non-commercial reprint please indicate the source.
Thingsboard Chinese community group chat dimensional code .png

Published 11 original articles · won praise 0 · Views 1115

Guess you like

Origin blog.csdn.net/IoTSchool/article/details/104495303