Aliyun IoT + YF3300 [6]. Things device alarm configuration

       Even 5G era has demonstrated in the tide of the times in its shadow, but for now things of the environment, the network is a more prominent issue is still flawed. As we all know, the current plan of things, not so much to achieve the interconnection of all things, it is more industry index data monitoring. Index data for some specific sectors, made in a relatively short period of time requires a corresponding change in its rules of reaction, and timely alerts and notifications. Why am I here put warning first, because the relationship between index data for some industries to lives and property of the people. How to quickly build rules to act as a warning system of things planned an integral part of, YF3300, things device alarm configuration experience configuration environment.

I. cloud configuration

(1) Things landing Ali cloud platform

(2) In the Device Manager options to create a product

Example:

(3) view the product, created the model properties of matter. View product details, select the function definition , self-defined attributes and add add custom events

A. add custom properties, add two custom function, create templates, see Figure 1-1

B. custom event added. There are three events, information alarm malfunction, create an event, including the name of the function defined identifier and output parameters. (The YFIOs event engine define rules: 1. Information event is an identifier must Event_Info_Device , alarm event the identifier must Event_Alert_Device , fault event is an identifier for the Event_Error_Device . 2. Each event has two output parameters: status code and event information . status code to create a template see Int32 (integer) in the range from -100 to 100 in steps of 1, no units, the event information is text (character string), a data length of 256 bytes.) Figure 1-2

Figure 1-1

Figure 1-2

(4)  In the new product, the device name must be a Test, and save the associated device certificate (ie equipment triples Productkey, DeviceName, DeviceSecret)

II. Equipment connection

    Operating environment set up: Win7 system, please download the device driver, download address is: Please install the VS2010 / VS2015 and expand the package

Prepare materials: YF3300 equipment package, the configuration key (when purchasing goods manufacturers will be bundled month trial version) official download YFIOsManager configuration management software. Download Link:

http://www.yfiot.com/content/downsort?current=1&title=1   

Device connection: . A The configuration key into the computer, connect the antenna comes with GPRS, insert the card comes with Things (IOT card can also be used to buy their own)

                 b. Place YF3300 connected to the computer via the Type-C

Device Configuration:

(1) Open the downloaded YFIOsManager software, select USB connection, connection YF3300

(2) the user equipment new equipment

Click New in driver support, select the other series YFSoft (leaf fan Technology) in YF3300 official driver. The device name for the cloud DeviceName ( the Test )

(3)

(4) Click Save Project and save custom configuration project

(5) in the list of policies created in the policy, select the policy file SYS > Ali cloud MQTT client (Lite) . Service Configuration fill in the appropriate place equipment triplets, fill the product key, the service will automatically change the address, scan interval can be changed, you can check the upload changes

(6) In the list of policies created in the policy, select the policy file SYS > Ye Fan IO variable alarm processing policy

(7) We Test: T variables, for example, to achieve the alarm and an alarm event is triggered under the cloud line

A. Click Alarm Configuration

B. Alarm input selection IO Test: T, output select IO Test: Q1, detailed in FIG. 1

C. configure alarm rules. For details, see FIG. 2

D. Check the event output, clouds filled the device name. Click Add and OK to complete the policy creation. For details, see Figure 3

Figure 1

Figure 2

Figure 3

(8) in the debug deployment options YFIOs system, choose Starter Edition (cloud) , after the deployment is complete, click on the deployment of a button, the deployment of drivers and policy creation and choose a system reboot , according to the local network, the wait for 5 ~ 10s, communication lights Always , the device communicates with the cloud success. Can also cloud the process, appears on the monitor YFIOsManager the MQTT Connect the OK !!! , proved successful device to communicate with the cloud

 III. Alarm Configuration Debugging

         Click data monitoring, modify the simulated temperature according to police rulemaking, check whether the trigger status lights. At the same time monitor configuration to see if there is information related to the event trigger.

                    Alarm triggered Pictures

Want to experience Ali cloud IoT platform, users can click on the following link :

https://dev.iot.aliyun.com/sale?source=deveco_partner_yefan

Guess you like

Origin www.cnblogs.com/jwcz/p/11738906.html