M30 RS485 and Serial port development guide - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20) +--- Forum: KC868-M16 / M1 / MB / M30 (https://www.kincony.com/forum/forumdisplay.php?fid=50) +--- Thread: M30 RS485 and Serial port development guide (/showthread.php?tid=4089) Pages:
1
2
|
M30 RS485 and Serial port development guide - admin - 01-05-2024 M30 have one ARM cpu on board. the ARM CPU have one RS485 modbus interface for user. another ARM CPU's serial port connect to ESP32's GPIO. RS485 communication settings: 38400bps,8,N,1 ESP32 serial port communication settings: 115200bps,8,N,1 they have some modbus protocol, just use by different baud rate. first BL0910 chip read CT 1-10 channel current. modbus address is 100. second BL0910 chip read CT 11-20 channel current. modbus address is 200. third BL0910 chip read CT 21-30 channel current. modbus address is 300. every BL0910 have 35 bytes data, here are data structure: this use by modbus pull tool: RE: M30 RS485 and Serial port development guide - fpcenter@yahoo.com - 01-10-2024 Can you please open source code for ARM CPU for M30 board? RE: M30 RS485 and Serial port development guide - admin - 01-10-2024 what function you want to modify? RE: M30 RS485 and Serial port development guide - fpcenter@yahoo.com - 01-10-2024 First of all congratulations on a great design. M30 is a very good board and I believe it has a great potential in professional and DIY community especially now when more and more people interested in looking at their power consumption. Regarding you question: I was reading BL0910 datasheet and looks like you do not expose all features/registers over Modbus. I personally prefer to have source code for all components of my system. And it was possible with your other boards since we can use esphome on ESP32 but for M30 you introduced another CPU and another firmware for which source code is not available. If you can open source code we (community) can improve it and everyone will benefit: you will sell more hardware and people will get new features. RE: M30 RS485 and Serial port development guide - admin - 01-10-2024 we already expose all registers over Modbus for BL0910 chip. you can also write your own code to AT32F ARM chip, there is Jlink download pins beside of ARM cpu. M30 schematic downoad from here : https://www.kincony.com/download/M30-schematic.pdf RE: M30 RS485 and Serial port development guide - fpcenter@yahoo.com - 01-11-2024 (01-10-2024, 03:37 AM)admin Wrote: we already expose all registers over Modbus for BL0910 chip. Incorrect: for example you don't provide any way to calibrate or use different CT. My main point is that people who do DYI coming to you because you provide hardware that works with open source software. Once you introduced proprietary middle tier in a form of ARM CPU this is no longer true. I am not going to waste my time writing software for ARM. Instead I will find more open source friendly vendor. RE: M30 RS485 and Serial port development guide - admin - 01-12-2024 BL0910 is a free verification energy chip, and the coefficient setting has been completed in the ARM CPU code. RE: M30 RS485 and Serial port development guide - fpcenter@yahoo.com - 01-12-2024 (01-12-2024, 12:27 AM)admin Wrote: BL0910 is a free verification energy chip, and the coefficient setting has been completed in the ARM CPU code. Exactly my point. It is hidden. RE: M30 RS485 and Serial port development guide - Mosfet3 - 01-23-2024 Which type CT clamps need to use? Voltage? Current? how much? RE: M30 RS485 and Serial port development guide - admin - 01-24-2024 two types supportted. Voltage: 0-1v output Current: 0-50mA output |