🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
<!-- toc --> All power meter which supports Modbus RTU protocol can be connected to *Iammeter*. ## 1. Previous preparation Confirm you have prepared: 1. A Power Meter which supports Modbus RTU protocol 2. DTU device (Serial to TCP) 3. If you have no DTU device, you can download the Virtual DTU Software [Serial to TCP converter for Iammeter][0] for trial 4. Verify that the power meter supports the Modbus protocol, otherwise the meter can not access *Iammeter*. You can skip this step if you confirmed that it supports. Taking a Modbus meter as an example, the MODBUS related parameters of this meter are shown as follows referring to its manual. | Register | Description | | :--- | :--- | | 0048H (Read-only) | Voltage,Unsigned number,Value=DATA/100, Unit V | | 0049H (Read-only) | Current,Unsigned number,Value=DATA/100,Unit A | | 004AH (Read-only) | Active power,Unsigned number,Value=DATA,Unit W | | 004BH-004CH(Read-only) | Forward active energy,Unsigned number,Value=DATA/3200,Unit kWh | Connect your power meter to the serial port of your computer by using 485 to serial converter (Ensure the wiring is connect). Send data directly with the serial port to verify the Modbus RTU protocol by using serial software. ![Modbus protocol][D] Send::01 03 00 48 00 05 05 DF Receive:01 03 0A 5A 3F 00 4B 00 7C 00 04 22 00 E1 89 Description: Voltage:0x5A3F/100 Current:0x004B /100 Power:0x007C Energy:0x042200/3200 The correct reply proves that the meter supports the Modbus protocol > The register address are different between diffrent power meters. Refer to the manual of your power meter for Modbus description in detail. ## 2 Registration on Iammeter **Step1**, Visit homepage https://www.iammeter.com , click "System" on the top menu, ![Login page][1] **Step2**, Click "Sign up", fill up the information, tick "Sign up by demo sn" so that you can get a free SN for the power meter. ![Sign up page][2] **Step3**, Configure the parameters of your power meter on Iammeter. Login to Iammeter, Click "Meters"->"Edit", fill up the Modbus parameters (Slave ID, Registers configuration) correctly. ![Modbus config][3] **Step4**, Go to "My places" to configure the location & time zone. > > Wrong time zone selection will affect the data statistics on daily basis. ![My place][4] ## 3 DTU configuration ### 3.1 If you have a DTU device Configure the below information on DTU settings, TCP Server: pm.modbus.lewei50.com TCP Port: 9970 Register SN: The SN you get when signing up on Iammeter. Other DTU Information: Serial parameters, Network parameters (GPRS or WiFi)... The below picture is only for your referrence, please configure your DTU referring to your DTU manual. ![DTU Config][5] ### 3.2 If you have no DTU device You can use the software [Serial to TCP converter for Iammeter][0] to simulate DTU device **Step1,** connect your power meter to PC serial port by using 485 to serial or tcp converter; **Step2,** run software *Serial to TCP converter for Iammeter* on your PC, fill up the register SN ![Software][6] ## 4 Check online data on Iammeter Login to Iammeter again to check you data, ![Overview][7] [0]:http://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/software/Serial%20To%20TCP%20Converter%20for%20Iammeter.zip [1]:http://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/iammeter-lewei50-20170818-1.jpg [2]:http://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/iammeter-lewei50-20170818-2.jpg [3]:http://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/iammeter-lewei50-20170818-5.jpg [4]:http://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/iammeter-lewei50-20170818-6.jpg [5]: http://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/iammeter-lewei50-20180105-3.jpg [6]: http://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/iammeter-lewei50-20180105-2.jpg [7]: http://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/iammeter-lewei50-20180105-4.png [D]:http://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/DTU-laoliu-20170509-1.jpg