ControlBy CBW Cloud Account Devices программасы

Техникалык шарттар
- MAC дареги: ${mac}
- ClientID: ${clientID}
- Модел: ${model}
- IP дареги: ${ip}
- HTTP порту: ${port}
- HTTPS порту: ${httpsPort}
- RSSI (уюлдук): ${rssi}
- Кеңдик: ${latitude}
- Узундук: ${longitude}
Продукт колдонуу нускамалары
CBW түзмөктөрүн ThingsBoard менен туташтыруу:
Configure MQTT Publications:
ControlBy конфигурациялооWeb device’s MQTT interface to talk to ThingsBoard:
- MQTT өтмөктү, андан кийин Брокерлерди басыңыз.
- MQTT түзмөгүнүн конфигурация маалыматын киргизиңиз.
Configure MQTT Publish / Subscribe Sections:
Configure the Publish / Subscribe sections of the MQTT sensor device configuration:
- Messages are sent as JSON packets to the v1/devices/me/telemetry MQTT topic, formatted in JSON.
- Messages should be formatted as: {keyword1:${token1},{keyword2:${token2},{keyword3:${token3}}
Configure MQTT Subscriptions:
Define the MQTT subscription for each I/O device you want to control:
- Click Add Subscription on the CBW device under MQTT and then Publish / Subscribe.
- Сиз аныктаган MQTT брокерин тандаңыз.
- Тема QOS 1ге коюлган v1/түзмөктөр/мен/атрибуттар.
CBW ТҮЗГӨЛӨРҮН THINGSBOARDГА ТУТУШУУ
- ThingsBoard (https://thingsboard.io/) is a widely used IoT portal that connects various remote devices to a centralized dashboard for monitoring, reporting, and notifications It is available with an open-source community edition and a closed-source Professional edition (PE). The Professional edition is available for installation on the customer’s servers or as a cloud-hosted option with a monthly or perpetual license. ThingsBoard also offers a hosted version, ThingsBoard Cloud, which alleviates the need to set up and manage an instance.
- This document describes the steps to connect ControlByWeb (CBW) devices to the ThingsBoard PE cloud-hosted version using the data transport for MQTT. It will not provide detailed installation or setup of ThingsBoard – they provide many tutorials and videos that assist users in configuring and using their product. ThingsBoard has its own MQTT broker, so you do not need to provide one. The ThingsBoard documentation section, MQTT Device API Reference, is a good starting point for understanding how MQTT works with ThingsBoard.
- Note: Features in this document require CBW device firmware version 3.13 or later.
CONNECTING TO THINGSBOARD CLOUD
- If you don’t already have a ThingsBoard account or instance that you can connect to, you can sign up for the free 30-day trial period of their base-level cloud subscription. The base subscription covers 30 devices for $ 10.00 USD per month, and you sign up at https://thingsboard.cloud/signup. Once you have a validated account, you can view булут инстанцияларыңыздын жалпы башкаруу тактасы.

CBW ТҮЗГӨЛӨРҮН THINGSBOARDГА ТУТУШУУ
ADDING A DEVICE TO THINGSBOARD
- Devices in ThingsBoard require a unique identifier that is unique overall to the ThingsBoard cloud, not just your instance. Using the CBW serial number (such as 000CC8072C45), which is the Ethernet MAC address, will provide such a unique identifier.
- From ThingsBoard, click Entities, Devices, the + button to add a new device, then click Add new device. Fill Enter a unique name, label, and description for this device. and you can use the default Device profile. Device Profiles түзмөктөрдүн топтору үчүн калыптар жана стандарттуу түзмөк сигналдарын, эреже чынжырларын, микропрограммаларды көрсөтүүнүн жолун камсыз кылат fileс, байланыш параметрлери жана башка көптөгөн түзмөк орнотуулары. Кийинкиге чыкылдатыңыз: Каттоо маалыматтары. Транспорт түрү үчүн MQTT Basic тандаңыз жана Кардар ID катары сызыкчасыз толук MAC дарегин киргизиңиз. Андан кийин, сиз MQTT туташуусу үчүн колдонуучунун атын жана сырсөзүн киргизсеңиз болот. Андан кийин түзмөктү тутумуңузга кошууну аяктоо үчүн Кошууну басыңыз.

Эгер сиз туташуу мүмкүнчүлүгүн текшерүү баскычын чыкылдатсаңыз, ThingsBoard сиздин эсептик дайындарыңызды колдонуп ThingsBoard менен байланышты текшерүү үчүн Mosquito кантип колдонууну көрсөткөн терезени көрсөтөт. CBW түзмөгүбүздү конфигурациялагандан кийин, аны ThingsBoard менен байланышты текшерүү үчүн колдонобуз.
CBW ТҮЗГӨЛӨРҮН THINGSBOARDГА ТУТУШУУ
ТҮЗГӨЛҮКТҮН MQTT ЖАРЫЯЛАРЫН КОНФИГУРАЛОО
Андан кийин, биз ControlBy конфигурациялашыбыз керекWeb ThingsBoard менен сүйлөшүү үчүн түзмөктүн MQTT интерфейси. MQTT өтмөгүнө чыкылдатып, Брокерлерди басыңыз. Андан кийин, MQTT түзмөк конфигурация маалыматын киргизиңиз.

- The hostname and port are mqtt.thingsboard.cloud, port 1883. To use an encrypted connection, you must generate a certificate in ThingsBoard and install it on the device (see ThingsBoard documentation on MQTT security). Secure connections use port 8883. Leaving the hostname/IP blank or setting the port to 0 disables the broker.
- Enter the ClientID, Username, and Password you entered in the Device Credentials screen.
- The unit will send an MQTT PING message every Keep Alive Interval unless there is other MQTT activity. The PING message will be sent if there is no activity during the minimum time. Note that this exchange takes 120 bytes, so you would want to increase this time to 5 minutes (300 seconds) or 10 minutes (600 seconds) for a cellular connection.
- Set the Topic Root to v1/devices/me/telemetry, the default topic for publishing readings (timeseries data). All MQTT data sent into ThingsBoard is published to the topic using JSON payloads.
- The Birth MQTT topic is sent when the device starts to register with the MQTT gateway. It is looking for a message published to v1/gateway/connect in the format {“device”:”DeviceA”}, so we set the Birth Message to {“device”:”${clientID}”}.
- The Last Will topic is sent when the device disconnects. In practice, the device sends this before sending the Birth topic to ensure the gateway knows the device is connecting again. The Last Will topic is v1/gateway/disconnect with the message set to {“device”:”${clientID}”}.
- Publish heartbeat will send the packet at the specified interval. Depending on the heartbeat payload you specify, this will take about 180 bytes or more and shouldn’t normally be used for cellular connections. The topic must be v1/devices/me/telemetry if enabled. Also, the default payload specified in 3.12 releases is not correctly formatted JSON and could cause the MQTT broker to disconnect. The default payload specified is {“id”:”${clientID}”,”upTime”:”${upTime}”,”address”:”${ip}:${port}}” and should be {“id”:”${clientID}”,”upTime”:”${upTime}”,”address”:”${ip}:${port}”}
CBW ТҮЗГӨЛӨРҮН THINGSBOARDГА ТУТУШУУ
- Өзгөрүүлөрдү сактоо.
- Андан кийин, MQTT сенсор түзмөгүнүн конфигурациясынын Жарыялоо / Жазылуу бөлүмдөрүн конфигурациялашыбыз керек.
- Кабарлар JSON пакеттери катары JSON форматында форматталган v1/devices/me/telemetry MQTT темасына жөнөтүлөт. Билдирүү төмөнкүдөй форматталат:
- {“keyword1”:”${token1}”,{“keyword2”:”${token2}”,{“keyword3”:”${token3}”}
- Ачкыч сөздөр ThingsBoard'да убакыт сериясынын өзгөрмө аттары катары пайда боло турган маалыматтардын аттары. ThingsBoard'та аттардын стандарты жок, андыктан сиз өзүңүздүн тиркемеңизге мааниси бар каалаган ысымдарды тандай аласыз. MQTT жүктөө ар бир жарыяланган билдирүү үчүн эң көп дегенде 500 байт болушу мүмкүн болгондуктан, аларды кыска сактоо сунушталат. Сунушталган ачкыч сөздөр: rly1, din1, ain3, reg10, vin жана id. Токендер CBW түзмөгүндөгү сенсордук маанилерге шилтеме берүү үчүн колдонулат жана чыныгы маани ThingsBoard'га жарыяланган маалыматтарда алмаштырылат. Учурда колдоого алынган MQTT токендери:
- MAC дареги: ${mac}
- Кардардын ID: ${clientlD}
- Модел: ${model}
- IP дареги: ${ipAddress}
- HTTP порту: ${httpPort}
- HTTPS порту: ${httpsPort}
- RSSI (Cellular): ${rssi}
- Кеңдик: ${latitude}
- Узундук: ${longitude}
- Name (Control Page Header): ${name}
- Микропрограмманы кайра карап чыгуу: ${ver}
- Сериялык номери: ${ser}
- Epoch Time Stamp (сек): ${dateTime}
- Epoch Time Stamp (msec): ${dateTimems}
- Sequence Number (autoincrementing): ${seq}
- Up Time (sec): ${upTime}
- Vin: ${vin}
- Каттоо 1: ${registerl}
- Санариптик киргизүү 1: ${digitallnputl}
- Analog Input 1: ${analoglnputl}
- Эстафета 1: ${relayl}
- Оң тилкедеги токендер ар бир түзмөккө мүнөздүү. Алар аппараттын конфигурациясына жана ага туташтырылган ар кандай кеңейтүү модулдарына же кошумча сенсорлорго жараша айырмаланат. The View MQTT Payload Tokens баскычы ар бир түзмөккө ылайыкташтырылган тизмени көрсөтөт.
CBW ТҮЗГӨЛӨРҮН THINGSBOARDГА ТУТУШУУ

- Демейки боюнча, ThingsBoard убакытты белгилейтamp сервер аны кабыл алган учурда. Эгерде MQTT байланышы үзүлүп калса же үзгүлтүккө учураса, MQTT билдирүүлөрү туташуу жарактуу болгондо кезекке коюлат жана жөнөтүлөт жана көрсөтүлгөн убакыт кезекте турган убакыт эмес, кабыл алынган убакыт болот. ThingsBoard колдоого алынган формат убакытты көрсөтөтamp убакыт үчүн ts ачкыч сөзү менен JSON пайдалуу жүктө көрсөтүлгөнamp. ThingsBoard'дагы тайм серияларынын маалыматтары эң көп убакыт болотampEpoch миллисекунд убактысын колдонуу мененamp аппараттан. Бул учурда, JSON жүктөө форматы:
- {“ts”:${dateTimems},”values”:
- {“keyword1”:”${token1}”,
- {“keyword2”:”${token2}”,
- {“keyword3”:”${token3}”} }
- Кабарлар Жарыялоо аныктамасындагы сенсор түзмөгүнүн маанисинин өзгөрүшүнө негизделген Пландаштырылган, Шарттуу же Автоматтык кайра жүктөө тапшырмасы катары Башкаруу/Логикалык тапшырмалардан же маалыматтар түзмөктүн Журналына жөнөтүлгөндө Журнал жазуулары катары жарыяланышы мүмкүн. Мисалы үчүнample, suppose you want to publish every time the Digital Input 1 changes state. In that case, you can select Publish on Change and then select that sensor device to trigger a publication. Only a single sensor device can be used as a trigger. Alternatively, you can specify the sensor device(s) in an MQTT Publication, and then in the Control/Logic Tasks, it will appear as an action that can be triggered. You can have changes for one of two different devices trigger a message publication, along with performing two other Tasks.
- ControlByWeb түзмөктөр көбүнчө иш-аракетти жаздыруу үчүн Flash Log колдонушат. Бул Logging & Cloud менюсунда орнотулган. Журнал 512K Flash эс тутуму болуп саналат, ал иш-аракеттерди тегерек буферде сактайт. Каттоо Тапшырмалардын, Түзмөктөрдөгү өзгөрүүлөрдүн, BASIC скриптинин, SNMP, Modbus же Open API аракетинин негизинде көрсөтүлүшү мүмкүн. Журнал окуясы болгондо, Каттоо бетиндеги маанилер жазылып, электрондук почта, FTP, Cloud же MQTT аркылуу жөнөтүлөт. ЖӨНӨТҮҮ ЖӨНҮНДӨ MQTT бөлүмүн иштетүү FILE MQTT аркылуу журнал жазууларын жөнөтүү. Бул жерде көңүл буруңуз, жүктүн көлөмү 1000 белгиге чейин болушу мүмкүн. Жарыялооңузда колдоно турган үч кошумча өзгөрмө бар: Log Epoch Time Stamp (сек же мс) / ${logDateTime}, ${logDateTimems}, Журнал окуясынын түрү же булагы ${logEventType} Log Entry ID ${logEventID} .

CBW ТҮЗГӨЛӨРҮН THINGSBOARDГА ТУТУШУУ
- With MQTT, short messages are expected to be published with just the changed data. MQTT Publications can be setup to publish when any sensor or register changes value. ThingsBoard has a screen widget called the Timeseries table that will show a continuous log of timeseries data as it is received alongside a timestamp. Эгерде сиз ар бир аппаратты өзүнүн MQTT Publish билдирүүсүндө жөнөтсөңүз, Timeseries таблицасы алынган маанини гана көрсөтөт; учурдагы маанилердин бири да көрсөтүлбөйт. Эгер сиз ар бир окуу үчүн аппараттын бардык маалыматтарын көргүңүз келсе, анда бардык түзмөк регистрлери бир эле учурда жөнөтүлүшү керек. Акыркысы мурунку үчүн колдонулганample of the X-412 (4 Analog inputs, 4 Relays) I used for this demonstration. The MQTT payload was set up as:
- {“ts”: ${dateTimems},”values”: {“id”: “${clientID}”, “name”:”${name}”, “model”:”${model}”, “ain1″:”${analogInput1}”, “din2″:”${digitalInput2}”,”ain3″:”${analogInput3}”, “ain4″:”${analogInput4}”, “rly1”: “${relay1}” , “rly2”: “${relay2}”, “rly3”: “${relay3}”, “rly4”: “${relay4}”,”vin”:”${vin}”,”seq”:”${seq}”,”rssi”:”${rssi}”} }
- You can also send data periodically when the device starts. This will be a different MQTT publication that you can send based on a scheduled event once a day. Scheduled events are sent to each device on startup, so this can also be an initial message that the device is working. The Initial Settings message we defined was:
- {“ts”: ${dateTimems},”values”: {“id”: “${clientID}”, “name”:”${name}”, “model”:”${model}”,”latitude”: “${latitude}”, “longitude”: “${longitude}”} }
- We set the Quality of Service (QOS) to 1 to ensure at least one transmission is sent for the publication. Since each publication has a timestamp, ThingsBoard автоматтык түрдө кайталанган убакытты алып салатamp messages. So, if the device sends the message multiple times before it receives an acknowledgment from the MQTT broker, it will not result in duplication in ThingsBoard.
- The device’s Control/Logic setup page is set to publish a message when any inputs or outputs change.

CBW ТҮЗГӨЛӨРҮН THINGSBOARDГА ТУТУШУУ
DEVICE MQTT SUBSCRIPTIONS
ThingsBoard communicates setting and control messages to devices using two methods: Shared Attributes and Remote Process Calls (RPC). Currently, ThingsBoard only supports Shared Attributes using MQTT for device control.
- What is an Attribute? In ThingsBoard, a device (like our CBW controller) has timeseries data and attributes associated with it. Attributes are values related to the device. There are three types of attributes: Client, Server, and Shared. As their names suggest, Client attributes are only visible to the client (device), and the server (ThingsBoard) cannot access the values. Server attributes are visible only in ThingsBoard – the device cannot see them. Shared attributes can be read and written by the device and the server to communicate between ThingsBoard and the device.
The device subscribes to Shared attribute changes using the v1/devices/me/attributes topic. ThingsBoard will publish a message to the device as a JSON packet, formatted as {“keyword”:”value”}. You must first define the Shared Attributes for the device in ThingsBoard before they can be changed and sent to the device. The Shared Attributes name must match the device name in the MQTT Payload Token. For example, to control a relay, first create attributes named relay1, relay2, etc. These names must match those used to control devices in state.json or state.xml. Running /state.json will display the names. Since these will be used to control the device, only relays and digital/analog outputs make sense to define as shared attributes used for control.
- In ThingsBoard, go to the device and click the Attributes tab. Select Shared Attributes from the Entity attributes selector. Click the + button to add a new attribute. Enter the attribute name exactly as shown in the MQTT Payload tokens, then define the attribute type. Relays and digital outputs will be defined as Integer, and analog outputs will be Double.

CBW ТҮЗГӨЛӨРҮН THINGSBOARDГА ТУТУШУУ
- Repeat this for all the I/O devices you will want to control.

Кийинки кадам MQTT жазылуусун аныктоо болуп саналат. MQTT астындагы CBW түзмөгүндөгү Жазылууну кошуу жана андан кийин Жарыялоо / Жазылуу баскычын чыкылдатыңыз. Сиз аныктаган MQTT брокерин тандаңыз. Тема v1/түзмөктөр/мен/атрибуттар жана сиз жок дегенде бир билдирүүнү алуу үчүн QOS 1ге коюлган.

Реле1 сыяктуу атрибут өзгөргөндө, түзмөк JSON билдирүүсүн алат {“relay1”:1}. JSON талданат жана релей1=1 билдирүүсүнө форматталат, ал state.json же state.xml менен өткөн параметрлер үчүн колдонулган ошол эле талдоочуга жөнөтүлөт. Бул эски ыкмаларды колдонуу менен аппаратты башкаруу үчүн колдонгон бардык маалыматтарды, сиз MQTT аркылуу кыла аласыз.
CBW ТҮЗГӨЛӨРҮН THINGSBOARDГА ТУТУШУУ
TESTING DEVICE TO DASHBOARD CONNECTION
- Now, we want to verify connectivity between our device and ThingsBoard. From a ThingsBoard device, click on the Latest Telemetry tab, and it will show the latest readings from the device. Trigger a change that will generate an MQTT Publish message. You should see the time series values change; the Last update time will reflect when the message was generated using the ts variable. It may help to set up a register or relay on the CBW device’s Control Page, which you can control and have set to trigger a message. You can look in the device’s debug log at /debug.html and see the MQTT messages and any errors. If the messages are not received, verify the MQTT clientID, username and password, and the ThingsBoard MQTT address and port. You can use Mosquitto, as shown in the ThingsBoard documentation, to verify the cloud server connection.

CBW ТҮЗГӨЛӨРҮН THINGSBOARDГА ТУТУШУУ
SETTING UP THE DASHBOARD
- Under the Dashboard section of ThingsBoard, click the + button to add a new dashboard. Specify a name and description for the Dashboard. ThingsBoard allows different layouts and displays depending on whether the user connects using a desktop browser, tablet, or phone. Again, ThingsBoard documentation describes how to configure mobile-optimized dashboards—this tutorial will cover a typical desktop browser configuration. ThingsBoard also has a mobile application that can be used to connect to the Dashboard.

- Owners manage dashboards, so if you have different user groups, you should first set up Customers and Users and assign them to the Dashboard.
- Once you have created a Dashboard, click on it to see a blank pallet. One of the key concepts in ThingsBoard is Entity Aliases. An Entity refers to a Device or a group of Devices. Defining two Entity Aliases for your Dashboard is useful: Device and Devices. The Devices alias refers to a group of devices you want to appear on a single Dashboard. One common approach is to filter all the devices based on the Profile жана Түзмөктүн аты. Ойготкучтар Pro орнотулгандыктанfile, кардар же жалпы түзмөктөр бир эле Device Pro колдонушу кадимки көрүнүшfile.
- Setting the Entity Aliases to the Profile, сиз бир эле Pro менен бөлүшүлгөн бардык түзмөктөрдү көрөсүзfile. Эгер сиз аспаптар тактасы үчүн түзмөктөрдү дагы чыпкалоо керек болсо, анда "%" деген жапайы картаны колдонуп, Түзмөктүн аталышынын негизинде чыпкалай аласыз.file%”.
- Customer, Asset, or other parameters can also filter a group of Devices. It’s crucial to click Resolve as multiple entities to show multiple devices on the list.

CBW ТҮЗГӨЛӨРҮН THINGSBOARDГА ТУТУШУУ
Next, define an alias called Device. This is used to refer to a single device. Edit the alias so the Entity is taken from dashboard state parameters. This allows clicking on a Device and then transitioning to a new Dashboard state, which only shows the details for that particular device. A Dashboard can have multiple states, and you can define Actions that will change the State. Each Dashboard state is a new, blank Dashboard that you can configure using ThingsBoard built-in widgets. To implement clicking on a device from a list of devices and then display the data for the single device, you need to:
- Куралдар тактаңызга Объекттердин таблицасы виджетін жайгаштырыңыз.
- Edit the Entities table. Set the data source to an Entity and enter the Entity alias Devices.
- Add any data you want to display for all the devices on your table from the Timeseries data or Attributes (System, Shared, or Device).
- On the Actions tab, add a new Action. It will perform on a Row Click, called Details for Controller; the Action will be to Navigate to a new dashboard state, and specify the state name “DeviceView.” Click “Set entity from widget”
- Add a new Dashboard state called “DeviceView”. Түзөтүү режиминде Аппараттын абалын тандаңызView. Бул андан кийин Башкаруу тактасынын абалын көрсөтөтView, виджеттерди кошо турган жаңы Башкаруу тактасы. ThingsBoard башкаруу тактасына көптөгөн ар кандай панелдин абалына мүмкүнчүлүк берет жана ар бир штат уникалдуу view аппараттын.

CBW ТҮЗГӨЛӨРҮН THINGSBOARDГА ТУТУШУУ
- Бул үчүн эксample, биз штаттын Башкы бетиндеги негизги Башкаруу тактасын жана штаттын Түзмөктөгү чоо-жайын көрсөтөбүзView.

CBW ТҮЗГӨЛӨРҮН THINGSBOARDГА ТУТУШУУ
- Clicking on any of these Devices will then perform the Action to change the Dashboard state to DeviceView, жана Түзмөк объектиси катарда биз тандаган түзмөккө коюлат. Биз бир түзмөктө төмөнкүдөй көрүнүшү үчүн Башкаруу тактасын ыңгайлаштыра алабыз:
Жаңы колдонуучулардын убактысын үнөмдөө үчүн биз бул панелдин экспортун камсыз кылдык; эрежелер өзгөртүлгөн Control Widget чынжырчасы (бул жөнүндө кошумча макалаларды караңыз). Булар ичинде file CBW_ThingsBoard_Files.zip. Сиз буларды импорттой аласыз fileушул макалада сүрөттөлгөн ошол эле конфигурацияны колдонуу.
CBW ТҮЗГӨЛӨРҮН THINGSBOARDГА ТУТУШУУ
ADDING WIDGETS TO THE DASHBOARD
ThingsBoard provides a variety of visual widgets to display data. Widgets can display a single or multiple data items. ThingsBoard groups widgets in bundles containing multiple standard widgets, such as Charts or Tables. From the Dashboard, click on Edit and Add Widget to select a bundle and then select a widget in the bundle.

Steps to adding a widget:
- Under Datasource, you can select Entity alias and then Device to choose a single device, unless you want to display data from multiple devices on the widget.
- If you have received data from the device, the timeseries data keys will be shown as a dropdown under Data key. Select at least one data item unless your control can display multiple data items, allowing for the specification of multiple data items.
- The widget’s form is usually self-explanatory; you select or fill in the needed items. The Basic and Advanced tabs are in the widgets to specify additional parameters or customizations. You can enter CSS and HTML code to control the display, and some widgets allow entering JavaScript to manipulate the data values.
- Save the widget. It will appear at the bottom of the dashboard. Move and resize the widget as needed to position it on the dashboard.
- Save the dashboard.
CBW ТҮЗГӨЛӨРҮН THINGSBOARDГА ТУТУШУУ
CONTROL WIDGETS
- Most of the widgets are used to display data. Some widgets allow control of the output devices, such as the relays. These are in the Control Widget bundle. We can only use control widgets that enable the setting of an attribute value. Some of the older ThingsBoard widgets send an RPC message to the device, which requires additional customization of the Rule Chain. On the top right corner of each widget is a tooltip that lists if the widget can set an Attribute value or send an RPC message.
- Select a Control Widget capable of setting attributes, like the Power Button. Set the Target device as an Entity alias and select Device so that it will send the command to a single device. Then choose the timeseries data variable representing the output device’s data to set the Initial state. This is also used to display the output device’s current state. For the output control, select the Action to set attribute and choose the name of the shared attribute you defined earlier for each output device. Set the data type of the output device, which is usually Integer or Double.

Башкаруу сизге ыңгайлаштырылган аталышты киргизүүгө жана анын көрүнүшүн башкаруу панелинен ыңгайлаштырууга мүмкүндүк берет. Өркүндөтүлгөн өтмөк кошумча ыңгайлаштырууларды камсыз кылат. Сиз ошондой эле виджетти түзөтүп, атайын CSS, HTML жана JavaScript башкаруу элементтери менен өзүңүздүн жеке таңгагыңызды түзө аласыз.
CBW ТҮЗГӨЛӨРҮН THINGSBOARDГА ТУТУШУУ
ТИРКЕМЕ: СЕРТИФИКАТ X.509 АНЫКТАЛУУ
- ThingsBoard allows you to specify an X.509 authentication certificate to secure your MQTT device connection. This is set up so that the device’s certificate matches what is stored on the ThingsBoard MQTT broker to establish a secure, encrypted connection. The details for how to do this are listed on the ThingsBoard site at https://thingsboard.io/docs/pe/user-guide/certificates/ жана https://thingsboard.io/docs/pe/user-guide/mqtt-over-ssl/. The particulars differ if you use your own ThingsBoard instance or ThingsBoard cloud. The pages provide detailed instructions that we won’t repeat here.
Көрсөтмөлөрдү аткаргандан кийин, сизде:

- A server Certificate Authority or CA root certificate. This is prepared on the server and needs to be saved as a .pem file. Ал сервер сертификатын текшерүү үчүн колдонулат. Бул MQTT Broker's Upload/ аркылуу киргизилет.View Кардардын CA бөлүмү.
- You can create a unique certificate for each device or a certificate chain that trusts a single root anchor certificate. This allows the single root anchor certificate to be updated or renewed without changing the certificates on every device. The ThingsBoard documentation provides instructions for both methods. After each approach, you will have a private key file key.pem жана коомдук сертификат file cert.pem. cert.pem file Жүктөөгө жүктөлөт/View Жүктөп берүү үчүн Кардардын сертификаты жана key.pem тандалды.View MQTT брокеринин жөндөөсүндө Кардар ачкычы.
- In the ThingsBoard device setup, select X. 509 for Device Credentials and upload the generated cert.pem file.

- Set the MQTT Broker port to 8883.
Көп берилүүчү суроолор
С: ThingsBoard орнотууларды жана билдирүүлөрдү түзмөктөргө жеткирүү үчүн кандай ыкмаларды колдонот?
A: ThingsBoard communicates setting and control messages to devices using Shared Attributes and Remote Process Calls (RPC). Currently, only Shared Attributes using MQTT for device control are supported.
Документтер / Ресурстар
![]() |
ControlBy CBW Cloud Account Devices программасы [pdf] Колдонуучунун колдонмосу CBW Cloud Account Devices Software, CBW Cloud, Account Devices Software, Devices Software, Software |
