Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the development of Arduino on the SuperVessel Internet of things service platform

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly analyzes the relevant knowledge of the development of Arduino on the SuperVessel Internet of things service platform, the content is detailed and easy to understand, the operation details are reasonable, and has a certain reference value. If you are interested, you might as well follow the editor to take a look, and follow the editor to learn more about the development of Arduino on the SuperVessel Internet of things service platform.

Comet, an Internet of things service platform based on SuperVessel cloud, is online!

SuperVessel super cloud is a public cloud based on POWER processor, which provides virtual resources, big data services, FPGA virtual acceleration services and Internet of things application services, so that users only need to pay attention to the design and development of the application itself, device registration, management, data storage, maintenance and other functions, which are completed by the Internet of things application platform Comet, thus simplifying the development process. Enables users to quickly complete the development and deployment of Internet of things applications.

The main functions of SuperVessel Super Cloud Internet of things service platform Comet include:

Data flow management

Equipment management

Device MetaData management

Equipment control and management

IoT application Builder

IoT application Run Time

IoT service platform Comet, which supports http and MQTT protocols, and a graphical interface, enables users to realize the development of Internet of things applications through simple input and drag. IoT Application Gallery, created a publishing platform for user applications, and realized one-click publishing. At the same time, Comet also provides sample code for mainstream IoT devices to facilitate user development and integration.

I. hardware and environment construction

The BH1750FVI module is used in the light intensity sensor, and the single-chip microcomputer program and python program can be downloaded from the sample program.

Second, create IoT application

This application is an application of light intensity sensor, which can report the value of light intensity sensor to the Internet of things platform Comet and display it. At the same time, it supports the binding between the application and the environment, which makes the Internet of things applications present a good user experience.

Log in to SuperVessel Internet of things service platform Comet https://ptopenlab.com/iotdm/#/

Create data flow

The yellow box shows the basic steps for creating an application for the IoT platform.

Application Editor- refers to the definition and editing of applications, including environment binding, hotspot setting device binding, layer overlay, application release, and so on.

Devices- devices refer to adding, editing, modifying, and deleting defined device types.

Streams-Stream flow refers to the addition, editing, modification and deletion of data flow, and the definition of this data stream needs to be consistent with that in Arduino programs.

Operations- refers to the control operation for the IoT device.

Device Type- defines the device type, edits and deletes.

In this example, we define a data stream named "Light", which is consistent with the definition of the data flow in the Arduino single-chip microcomputer program. The defined data flow is displayed in Datastreams. Click "+ Create" to add a new data stream.

3. Define the device typ

Define the device type and note that the device name needs to be the same as the device name in mqttClientControl.py. In this example, the device name is "EnvCollector".

The defined equipment is as follows. You can add new devices by clicking "+".

4. Bind the data flow to the device.

The main purpose of this step is to bind the device to the data and define the device from which the data flow is reported. Click "+ Stream" and select the defined data stream to bind the device and data.

The result after adding the data stream is displayed as

5. Register devices in the application

The devices in the application need to be registered with the IoT platform. In the "Devices" menu, define the devices related to registration.

SN is defined as the MAC address of the wired port, and whether wired or wireless, the internet,SN is the MAC of the wired port. The devices that have been registered are as follows:

6. Edit and run the Arduino program.

In the Arduino terminal, open mqttClientControl.py, and you can see the definition of the device type and the IP address of the MQTT server

Open the single-chip microcomputer program SensorSampleArduinoYun.ino, you can see the data reporting format, and the name of Stream, which is consistent with the name defined by IoT platform.

If the program has not changed, you can close the program. Run on the Arduino terminal

. / mqttClientControl.py

Arduino YUN will report the data to the IoT platform.

7. Click on the Arduino picture in the Device interface and you can see the light intensity data reported in real time.

8. The device is associated with the environment.

The above steps have completed the connection, registration and message path between the device and the IoT platform. Next, we will bind the IoT device to the actual environment, because any device has a location and scene, which is a complete application.

Create a new Map in ApplicationEditor called "Light Demo".

Select the middle option in "Layer Panel" in the upper right corner of the interface to add layers. Upload photos of the environment where the sensor device is located.

The results are as follows:

9. Create hotspots and bind hotspots to sensor devices.

Draw the hotspot in the desired location.

After saving, you can see the following page.

10. Associate hot spots with sensor devices.

Clicking Light Demo in Application List will bring up the interface of the display device:

Clicking on the hotspot in the image above will bring up a "Devices" box and drag the selected device into the Devices box.

If the association is successful, you can see that the data is displayed in the hot spot. At this point, an IoT application has been completed.

11. Generate a QR code for easy publishing / sharing.

IoT service platform Comet has developed an one-click publishing function to generate a QR code for the links of the application, which is convenient for sharing and publishing in moments. Click "Application View" to generate a QR code. You can scan the QR code on the mobile phone, enter the application page, and monitor the data in real time.

This is the end of the introduction to "what is the development of Arduino on the SuperVessel Internet of things service platform". More related content can be searched for previous articles, hoping to help you answer questions and questions, please support the website!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report