-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Temp/Load Power/Load Current wrong #4
Comments
has this issue been fixed, or what do i need to do in order to fix it myself..... Remove??? result = node.readInputRegisters(0x3100, 7); |
Yes, 0x12 will do the trick, |
OK. Thanks i did this already and it works... :-) BUT - maybe you can help me out - I naively believed that it could be simple to read registers based on the official tech doc, but i failed and i have no clue why....some ascii signs but useless... Any help is highly appreciated as i sit for weeks now and all it tried failed the same way.... Generated energy today L --- 330C
|
Those are on my todo list for my hacking, just haven't tested them yet. |
Is anyone else getting some clipping of the MQTT strings after implementing this? I am seeing two characters at the beginning of the ctemp and lpower MQTT strings. I have been able to adapt but I am not sure why its happening. Before I implemented this fix I was not experiencing this clipping. I need to set up some more debugging to get a better handle on this. |
I replaced the result-line with |
Can you share your entire code?
…On Mon, Dec 21, 2020 at 4:09 PM bearli97 ***@***.***> wrote:
I replaced the result-line with result = node.readInputRegisters(0x3100,
0x12); and my lpower/lcurrent are correct, but btemp is showing 0, even
though the display of the EPever is showing the correct temperature.
Any idea?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGCPVX37MSDEWQJA4OQWYMTSV62R5ANCNFSM4F76EJYQ>
.
|
(0x311A, 2) returns 0 But I was wondering, according to this PDF, battery temperature should be on address 3110. I tried just writing a new function |
I created a component for esphome some time ago and define the address ranges in python Try 0x3110, 1 0x311A is the remote battery temp. (don't ask me what is the difference is 🤔). |
0x3110, 1 and 0x3100, 0x10 (as in your Python file) returns 0. And yes, I have a temp sensor and the display shows BATT. 20°C :) Device is a Tracer 1206AN. |
I was replying from the smartphone yesterday so it was probably a bit brief
The format means 'read_input_registers': use function modbus function code 0x4 . 0x3100 is the base address and 0x10 is the offset from the base address so effectively the address for this register is 0x3110. S_SINGLE means it is a signed 16 bit value so it translates to If you use
When I developed my esphome component I had debug code to dump out the raw bytes over serial to find problems in my processing code . Something like
If you have an esp32 you can also try my esphome version. I started with the code from this repo but then found that writing an esphome component saves me from creating the code to handle wifi, mqtt, OTA etc. esphome in general (not my fork that just adds epever support) is a pretty impressive piece of work. I'm using it for a couple of other sensor nodes here and they work flawless for over a year now. |
Hi,
thank you for the great work.
but you have small issue with Temp/Load Power/Load Current. Please take a look on jaminNZx/Tracer-RS485-Modbus-Blynk#2 to fix it.
The text was updated successfully, but these errors were encountered: