Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
M30 Extension MODBUS RTU Controller
#1
I'm trying to connect another 6 channels to the M30 using an external modbus rtu energy meter.

I've configured the external meter as ID 16 (0x10), 38400 baud, and can query it directly.

But when I configure in yaml, I don't get any result.

The relevant part of my config is as follows:

Code:
uart:
  id: modbus_uart
  rx_pin: 32
  tx_pin: 33
  baud_rate: 115200
  stop_bits: 1
  data_bits: 8
  parity: NONE
 
debug:
  update_interval: 5s

modbus:
  id: modbus_hub
  uart_id: modbus_uart

modbus_controller:
  - id: modbus_hub_m30
    address: 1
    modbus_id: modbus_hub
    update_interval: 5s
  - id: modbus_ext_m6
    address: 16
    modbus_id: modbus_hub
    update_interval: 5s

sensor:
  - platform: modbus_controller
    modbus_controller_id: modbus_ext_m6
    address: 0
    register_type: holding
    name: "Modbus Extension Model Number"
    id: mext6_model_number
    value_type: U_WORD
 
  - platform: modbus_controller
    modbus_controller_id: modbus_hub_m30
    address: 100
    register_type: holding
    name: "Lights Current"
    id: m30_1_current_1
    unit_of_measurement: A
    accuracy_decimals: 3
    value_type: U_WORD
    filters:
      - multiply: 0.00098

Is this possible, and if so any ideas what I am doing wrong? I am just seeing 'NA' for the sensor and seemingly no polling.
Reply
#2
Some further info:

Tapping rs485 at 38400 baud on the screw terminals shows no traffic.

Esphome is showing no response to the modbus rtu query to the extension device 16, while internal CTs continue to work just fine.

It seems the modbus is not connected to those screw terminal RS485 connectors.

P.S. I’m getting the 38400 baud from this post. The schematic doesn’t help much as it is hard to see where the RS485 pins are connected to, but they seem to be coming from the co-processor.

https://www.kincony.com/forum/showthread.php?tid=4089
Reply
#3
I’ve found another thread here:

https://www.kincony.com/forum/showthread.php?tid=5959

That has the answer “M30 RS485 port not connected with ESP32's gpio. it's just a MODBUS SLAVE device. if you MUST want use by ESPHome, connect this RS485 wire with other KinCony ESP32 board's RS485 port.”

Which is not clear. The other thread I captioned says modbus is connected to ESP32 (via the co-processor). The schematic also seems to indicate the same.

Can I get a clear reply? How is the RS485 port on M30 connected, and what are it’s capabilities?
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)