1538 views|2 replies

86

Posts

0

Resources
The OP
 

Development Practice: Intelligent High-precision Industrial Instruments [Copy link]

This tutorial is developed based on the Gizwits Industrial Internet platform, industrial-grade Cat.1 DTU GC511, and Gizwits Demo APP. It uses RS-485 single-phase electricity meter to realize industrial instrument measurement in industrial scenarios. It can be widely used in smart park energy consumption monitoring, apartment remote meter reading, smart factory energy consumption management and other fields.

Gizwits DTU enables industrial meters to be quickly and easily uploaded to the cloud, enabling remote opening and closing of switches, easy power outage/power supply management, real-time data monitoring, and meter data visualization. At the same time, you can customize alarm configurations, send alarms and push notifications to mobile APPs in a timely manner, and view historical data analysis through your phone.

Industrial Instrumentation Practical Steps

1. Industrial instrument wiring

1.1. Introduction to main software and hardware
ZZ-DDSD5801 single-phase rail-type energy meter is mainly used to measure the single-phase active energy of low-voltage network. It can also measure voltage, current, power and other electrical quantities. It uses a large LCD screen display, has RS485 communication function, 485 remote opening and closing function, which is convenient for users to monitor electricity consumption, collect data and remote power-off control. It can be flexibly installed in the distribution box to achieve sub-item energy measurement for different areas and different loads. The product meets the design requirements of national standards GB/T17215.321-2008 and international IEC62053-21. From dedicated metering chips, international brand key components, to flame-retardant shells, from inside to outside, it fully guarantees the high-precision measurement and high-reliability application of the product.
Gizwits Cat.1 DTU GC511 is a high-performance, low-power, multi-band IoT wireless data transmission unit. Adhering to Gizwits' industrial-grade DTU R&D experience, the hardware design adopts the ML302 wireless communication module that supports Cat.1. It has necessary functions such as 5-24V wide-voltage power supply, plug-in SIM, 485 serial port, TTL serial port, hardware watchdog, etc. The mainboard can quickly realize communication connection with the cloud through serial port communication. At the same time, GC511 integrates STM32 MCU, and users can easily realize protocol conversion, expansion and other functions.
Gizwits Demo App is the world's first universal debugging tool for IoT devices. It can automatically generate responsive control pages based on the product functions customized by developers. When developers develop smart hardware on the Gizwits platform, they can easily use this App to debug and verify hardware devices. This App has a complete user registration, login and logout process, and can complete basic device operations such as configuration and network access, device search, device binding, device login, device control, remote control, status update, local remote switching, etc. of Gizwits smart hardware. Search "Gizwits" in the mobile app store to download it.
As a zero-threshold, ultra-low-code IoT development platform , Gizwits self-service development platform minimizes the technical threshold for IoT hardware development through fool-proof self-service tools, online visual development environment, graphical development interface, and complete SDK and API service capabilities, so that developers no longer have to worry about the underlying architecture design. In a short period of time, they can develop products that are compatible with multiple terminals such as PCs, Pads, and mobile phones, as well as business management systems that adapt to the business characteristics of the enterprise.
1.2.Meter communication method
ZZ-DDSD5801 single-phase rail-type energy meter mainly uses RS485 interface as communication interface, adopts ModbusRTU protocol commonly used in industry, and is compatible with DL/T645-2007 standard protocol.
1.3. Electric meter wiring
The wiring with Gizwits DTU mainly adopts RS485 wiring, and only A and B need to be connected. The wiring of the circuit breaker is shown in the figure below. The input and output wires and the phase and neutral wires of the circuit breaker cannot be connected in reverse, otherwise it will not work.
2. MCU communication protocol conversion
2.1.ZZ-DDSD5801 unidirectional track meter functions and corresponding protocols
2.2. Gizwits Cloud Platform Generates Protocol Code Process
a. Enter the Gizwits Developer Center at dev.gizwits.com
b. Create an industrial electricity meter product
c. Add corresponding data points to the product
d. MCU development generates the STM32F103C8X protocol code package, and then downloads the MCU code package
About Gizwits MCU automatic code generation service: Gizwits launched the automatic code generation service to lower the development threshold for developers, shorten the development cycle, and reduce development resource investment. The cloud will generate the device-side code for the corresponding product based on the data points defined by the product. You can use this service for free by logging in to the Gizwits development platform dev.gizwits.com.
The corresponding MCU code generation interface:


2.3. Implementation of some MCU protocol codes (after downloading the MCU code package)
2.3.a. Use CUBEMX to initialize the ModbusRTU pin and serial port parameters. PB2 is the 485 chip enable pin, initialized to the default send mode. Set serial port 3 to RS485 communication serial port, baud rate 9600. Open the serial port receive interrupt.
2.3.b. Open the code built by CUBEMX with Keil, and perform relevant receive buffer processing on the RS485 serial port in the HAL_UART_RxCpltCal Iback and uartInit functions in the gizwits product.c file of the project.
2.3.c. According to the previous agreement, we process the closing and opening commands sent by the cloud. In the automatically generated code, the gizwitsEventProcessi function in the gizwits._product.c file is the command processing function sent by the cloud.
2.3.d. Meter data collection and reporting to the cloud. In the automatically generated code, the userHandle function in the gizwits_product.c file is the processing function for data collection and uploading. Note that this function needs to be processed on a scheduled basis, otherwise the entire program will be unavailable.
3. Gizwits Cloud Demo App effect display
The above is the effect picture after binding the hardware device using Gizwits Demo App.
If you need to develop a customized App, you can use the Cybertron tool of the Gizwits self-development platform for online configuration. You can customize the product logo, name, theme color, initialization configuration, built-in templates, users/permissions and other functions online with zero code, so that every developer can develop a personalized App application.
4. Video development tutorial
https://club.gizwits.com/forum.p ... =%E8%A7%86%E9%A2%91
This post is from RF/Wirelessly

Latest reply

Is there any detailed introduction?   Details Published on 2021-12-13 20:18
 

1024

Posts

0

Resources
2
 

It’s rare to have something as unimaginable as this nowadays, so keep up the hard work!

Even science and popular science books, newspapers and magazines are no longer available on the Internet. Times have changed.

This post is from RF/Wirelessly
Personal signatureچوآن شـين
 
 

2618

Posts

0

Resources
3
 

Is there any detailed introduction?

This post is from RF/Wirelessly
 
 
 

Guess Your Favourite
Find a datasheet?

EEWorld Datasheet Technical Support

快速回复 返回顶部 Return list