AC1-5.0-E-G2 Illegal Data Address exception response #715
-
I have just had my inverter (AC1-5.0-E-G2) firmware updated and I am still getting an Illegal Data Address exception response If I do a Home Assistant Developer action of Read registers with a count of 45 I get the following values: So it looks like the Elfin is passing data, but if I increase the count to 46 I get error: >- Home Assistant debug logs are returning 2024-12-27 16:24:45.452 DEBUG (MainThread) [custom_components.foxess_modbus.modbus_controller] Reading addresses on tcp://192.168.0.227:502 247: (10016, 3) I've kind of reached my knowledge limit and would love to receive some help or guidance as to what to look at next. Many Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 12 comments 32 replies
-
The integration is failing to read the Master, Slave, Manager firmware versions at 10016/17/18 - so it looks like the AC1-G2 may have changed the register map from the old AC1 (G1) input register maps. In HA if you look in Devices & Services, find the Foxess_Modbus integration and click '1 Device' - what (if any) sensors do you see populated. To start off can you use Developer action to firstly prove the H1/AC1 input range is invalid Start Address: 10016, Count: 3, Input - and see what the response is (will likely fail) Then try Start Address: 30016, Count: 3, Holding - and see what the response is, paste it here if you get a valid response If you could also try Start Address: 10000, Count: 8, Input - and see what the response is Start Address: 30000, Count: 16, Holding - and see what the response is Again if you could list the responses here please. |
Beta Was this translation helpful? Give feedback.
-
I have 1 device, 89 entities, 13 disabled, 75 unavailable, and 1 that is showing something, which is the Connection Status which reads:- Error reading registers. Type: RegisterType.INPUT; start: 10016; count: 3; slave: 247 from tcp://192.168.0.227:502: Exception Response(132, 4, IllegalAddress) |
Beta Was this translation helpful? Give feedback.
-
ok thanks, clearly not responding to some of the input registers but ok on the holding registers. Inverter Model is in hex 41,43,31,2D,35,2E,30,2D,45,2D,47,32 = 'AC1-5.0-E-G2' Could do with a quick test to see whether the register map is more akin to the H1_G1 using holding regs or the H1_G2 Can you try these and record the responses please BMS Connect State Inverter State |
Beta Was this translation helpful? Give feedback.
-
Start Address: 31029, Count: 1, Holding |
Beta Was this translation helpful? Give feedback.
-
home-assistant_foxess_modbus_2024-12-28T10-48-58.661Z.log There is now a lot of Not Provided entries, Connection Status has changed to Connected, Max Charge Current, Max Discharge current, Min SOC and Work Mode are showing values, all the rest are either Not Provided or Unknown |
Beta Was this translation helpful? Give feedback.
-
Ok, right a lot of restrictions because of the old AC1's input registers - Again can you open file editor, open the file go to line 222 and edit it change special_registers to H1_G2_REGISTERS i.e.
becomes
Restart home assistant and when it restarts have a look at the devices & services page, and attach any modbus logs |
Beta Was this translation helpful? Give feedback.
-
Now we're looking a bit healthier. |
Beta Was this translation helpful? Give feedback.
-
Excellent, let me know if you want any testing or confirmation. I did your last update and reapplied our manual changes and it stayed working.
…________________________________
From: Dave Foster ***@***.***>
Sent: Sunday, January 12, 2025 2:46:14 PM
To: nathanmarlor/foxess_modbus ***@***.***>
Cc: markheppell ***@***.***>; Author ***@***.***>
Subject: Re: [nathanmarlor/foxess_modbus] AC1-5.0-E-G2 Illegal Data Address exception response (Discussion #715)
adding AC1 G2 profile type in this PR #728<#728>
—
Reply to this email directly, view it on GitHub<#715 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AR2D4CAQOIY6Y6NO3HS76AD2KJ53NAVCNFSM6AAAAABUI3UN5OVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOBRGIZTANA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response.
Here is the output you requested:
values:
"30000": 16707
"30001": 12589
"30002": 13614
"30003": 12333
"30004": 17709
"30005": 18226
"30006": 8224
"30007": 8224
"30008": 0
"30009": 0
"30010": 0
"30011": 0
"30012": 0
"30013": 0
"30014": 0
"30015": 0
…On Thu, 30 Jan 2025, 09:01 Dave Foster, ***@***.***> wrote:
Thanks, looks like another 'subversion' of H1 G2 to test for -
If you could go to Developer Tools, Actions and select the action foxess
modbus: read registers then see what the response is -
Start Address: 30000, Count: 16, Holding
And if you could post the response here.
—
Reply to this email directly, view it on GitHub
<#715 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIWM4426GYKXSLSVIIYMFU32NHTANAVCNFSM6AAAAABUI3UN5OVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMBQGQZTOMY>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Yup that fixed it for me.
Thanks both!
…On Fri, Jan 31, 2025 at 11:35 AM Antony Male ***@***.***> wrote:
#750 <#750>
—
Reply to this email directly, view it on GitHub
<#715 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIWM443TNPSMDWLI2NBY3FT2NNNYBAVCNFSM6AAAAABUI3UN5OVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMBRGY4TGNA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
#750