Skip to content
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

[HMS-1000] data the inverter failed to parse and the data didn't come out. #1271

Closed
1 task done
aditiyagio opened this issue Dec 14, 2023 · 35 comments
Closed
1 task done
Assignees
Labels
bug Something isn't working fixed dev fixed

Comments

@aditiyagio
Copy link

aditiyagio commented Dec 14, 2023

Platform

ESP32 WROOM 32D

Assembly

I did the assebly by myself

nRF24L01+ Module

No response

Antenna

external antenna

Power Stabilization

nothing

Connection picture

  • I will attach/upload an Image of my wiring

Version

Development 03. Version 0.8.18

Github Hash

Build & Flash Method

VSCode - Platform IO (build & flash)

Setup

Config:
SCLK = GPIO12 (HSPI MISO)
SDIO = GPIO14 (HSPI CLK)
CSB = GPIO17
FCSB = GPIO26
GPIO3 = GPIO34

Debug Serial Log output

I: (#0) request timeout : 500ms from freq : 868000Hz
W: Desired frequency is out of EU legal range! (863 - 870MHz)
I: (#0) TX 915.00Mhz | 56  *  *  *  * 81 00 17 65 02 15 21 20 14 ED 4D BA 
I: (#0) Radio infos: -6 -6 -6 -6 -6 | t: 7, s: 0, f: 0, n: 7 | p: 30
I: (#0) TX 868.00Mhz | 15  *  *  *  * 81 00 17 65 80 01 00 65 7A B8 9B 00 00 00 00 00 00 00 00 9E F5 8D 
I: (#0) RX  59ms | 14 -86dBm | D6  *  *  *  *  *  *  *  * 02 01 17 3C B0 
 Tes Data SuccesI: (#0) Radio infos: -6 -6 -6 -6 -6 | t: 8, s: 0, f: 0, n: 7 | p: 30
I: (#0) TX 868.00Mhz | 15  *  *  *  * 81 00 17 65 80 01 00 65 7A B8 9B 00 00 00 00 00 00 00 00 9E F5 8D 
I: (#0) request timeout : 500ms from freq : 868000Hz
W: Desired frequency is out of EU legal range! (863 - 870MHz)
I: (#0) TX 915.00Mhz | 56  *  *  *  * 81 00 17 65 02 15 21 20 14 ED 4D BA 
I: (#0) Radio infos: -6 -6 -6 -6 -6 | t: 9, s: 0, f: 0, n: 8 | p: 30
I: (#0) TX 868.00Mhz | 15  *  *  *  * 81 00 17 65 80 01 00 65 7A B8 B9 00 00 00 00 00 00 00 00 3F 75 8E 
I: (#0) RX  59ms | 14 -84dBm | D6  *  *  *  *  *  *  *  * 02 01 17 3C B0 
 Tes Data SuccesI: (#0) Radio infos: -6 -6 -6 -6 -6 | t: 10, s: 0, f: 0, n: 8 | p: 30
I: (#0) TX 868.00Mhz | 15  *  *  *  * 81 00 17 65 80 01 00 65 7A B8 B9 00 00 00 00 00 00 00 00 3F 75 8E 
I: (#0) request timeout : 500ms from freq : 868000Hz
W: Desired frequency is out of EU legal range! (863 - 870MHz)
I: (#0) TX 915.00Mhz | 56  *  *  *  * 81 00 17 65 02 15 21 20 14 ED 4D BA
I: (#0) Radio infos: -6 -6 -6 -6 -6 | t: 11, s: 0, f: 0, n: 9 | p: 30
I: (#0) TX 868.00Mhz | 15  *  *  *  * 81 00 17 65 80 01 00 65 7A B8 D7 00 00 00 00 00 00 00 00 5D 91 66 
I: (#0) RX  58ms | 14 -84dBm | D6  *  *  *  *  *  *  *  * 02 01 17 3C B0 
 Tes Data SuccesI: (#0) Radio infos: -6 -6 -6 -6 -6 | t: 12, s: 0, f: 0, n: 9 | p: 30
I: (#0) TX 868.00Mhz | 15  *  *  *  * 81 00 17 65 80 01 00 65 7A B8 D7 00 00 00 00 00 00 00 00 5D 91 66 
I: (#0) request timeout : 500ms from freq : 868000Hz
W: Desired frequency is out of EU legal range! (863 - 870MHz)
I: (#0) TX 915.00Mhz | 56  *  *  *  * 81 00 17 65 02 15 21 20 14 ED 4D BA 
I: (#0) Radio infos: -6 -6 -6 -6 -6 | t: 13, s: 0, f: 0, n: 10 | p: 30
I: (#0) TX 868.00Mhz | 15  *  *  *  * 81 00 17 65 80 01 00 65 7A B8 F5 00 00 00 00 00 00 00 00 FC 11 65 
I: (#0) request timeout : 500ms from freq : 868000Hz
W: Desired frequency is out of EU legal range! (863 - 870MHz)
I: (#0) TX 915.00Mhz | 56  *  *  *  * 81 00 17 65 02 15 21 20 14 ED 4D BA 
I: (#0) Radio infos: -6 -6 -6 -6 -6 | t: 14, s: 0, f: 0, n: 11 | p: 30
I: (#0) TX 868.00Mhz | 15  *  *  *  * 81 00 17 65 80 01 00 65 7A B9 13 00 00 00 00 00 00 00 00 5D A2 90 
I: (#0) request timeout : 500ms from freq : 868000Hz
W: Desired frequency is out of EU legal range! (863 - 870MHz)
I: (#0) TX 915.00Mhz | 56  *  *  *  * 81 00 17 65 02 15 21 20 14 ED 4D BA 
I: (#0) Radio infos: -6 -6 -6 -6 -6 | t: 15, s: 0, f: 0, n: 12 | p: 30
I: (#0) TX 868.00Mhz | 15  *  *  *  * 81 00 17 65 80 01 00 65 7A B9 31 00 00 00 00 00 00 00 00 FC 22 93 
I: (#0) RX  58ms | 14 -85dBm | D6  *  *  *  *  *  *  *  * 02 01 17 3C B0 
 Tes Data SuccesI: (#0) Radio infos: -6 -6 -6 -6 -6 | t: 16, s: 0, f: 0, n: 12 | p: 30
I: (#0) TX 868.00Mhz | 15  *  *  *  * 81 00 17 65 80 01 00 65 7A B9 31 00 00 00 00 00 00 00 00 FC 22 93 
I: (#0) request timeout : 500ms from freq : 868000Hz
W: Desired frequency is out of EU legal range! (863 - 870MHz)
I: (#0) TX 915.00Mhz | 56  *  *  *  * 81 00 17 65 02 15 21 20 14 ED 4D BA 
I: (#0) Radio infos: -6 -6 -6 -6 -6 | t: 17, s: 0, f: 0, n: 13 | p: 30
I: (#0) TX 868.00Mhz | 15  *  *  *  * 81 00 17 65 80 01 00 65 7A B9 4F 00 00 00 00 00 00 00 00 5E 0B 66 
I: (#0) request timeout : 500ms from freq : 868000Hz
W: Desired frequency is out of EU legal range! (863 - 870MHz)
I: (#0) TX 915.00Mhz | 56  *  *  *  * 81 00 17 65 02 15 21 20 14 ED 4D BA 
I: (#0) Radio infos: -6 -6 -6 -6 -6 | t: 18, s: 0, f: 0, n: 14 | p: 30
I: (#0) TX 868.00Mhz | 15  *  *  *  * 81 00 17 65 80 01 00 65 7A B9 6D 00 00 00 00 00 00 00 00 FF 8B 65 
I: (#0) RX  59ms | 14 -83dBm | D6  *  *  *  *  *  *  *  * 02 01 17 3C B0 
 Tes Data SuccesI: (#0) Radio infos: -6 -6 -6 -6 -6 | t: 19, s: 0, f: 0, n: 14 | p: 30
I: (#0) TX 868.00Mhz | 15  *  *  *  * 81 00 17 65 80 01 00 65 7A B9 6D 00 00 00 00 00 00 00 00 FF 8B 65 
I: (#0) request timeout : 500ms from freq : 868000Hz
W: Desired frequency is out of EU legal range! (863 - 870MHz)
I: (#0) TX 915.00Mhz | 56  *  *  *  * 81 00 17 65 02 15 21 20 14 ED 4D BA 
I: (#0) Radio infos: -6 -6 -6 -6 -6 | t: 20, s: 0, f: 0, n: 15 | p: 30
I: (#0) TX 868.00Mhz | 15  *  *  *  * 81 00 17 65 80 01 00 65 7A B9 8B 00 00 00 00 00 00 00 00 9B 69 05 
I: (#0) RX  58ms | 14 -82dBm | D6  *  *  *  *  *  *  *  * 02 01 17 3C B0 
 Tes Data SuccesI: (#0) Radio infos: -6 -6 -6 -6 -6 | t: 21, s: 0, f: 0, n: 15 | p: 30
I: (#0) TX 868.00Mhz | 15  *  *  *  * 81 00 17 65 80 01 00 65 7A B9 8B 00 00 00 00 00 00 00 00 9B 69 05 
I: (#0) request timeout : 500ms from freq : 868000Hz
W: Desired frequency is out of EU legal range! (863 - 870MHz)
I: (#0) TX 915.00Mhz | 56  *  *  *  * 81 00 17 65 02 15 21 20 14 ED 4D BA 
I: (#0) Radio infos: -6 -6 -6 -6 -6 | t: 22, s: 0, f: 0, n: 16 | p: 30
I: (#0) TX 868.00Mhz | 15  *  *  *  * 81 00 17 65 80 01 00 65 7A B9 A9 00 00 00 00 00 00 00 00 3A E9 06 
I: (#0) RX  59ms | 14 -83dBm | D6  *  *  *  *  *  *  *  * 02 01 17 3C B0 
 Tes Data SuccesI: (#0) Radio infos: -6 -6 -6 -6 -6 | t: 23, s: 0, f: 0, n: 16 | p: 30

### Error description
Here I use a HMS microinverter, and for DTU I use the E49 900M20S. I'm trying to read the data from the HMS inverter, but the problem is that the RX is right, but for the data of the inverter failed to parse and the data didn't come out. Maybe if anyone can help me ask for help. 

@aditiyagio aditiyagio added the bug Something isn't working label Dec 14, 2023
@aditiyagio
Copy link
Author

Error description

Here I use a HMS microinverter, and for DTU I use the E49 900M20S. I'm trying to read the data from the HMS inverter, but the problem is that the RX is right, but for the data of the inverter failed to parse and the data didn't come out. Maybe if anyone can help me ask for help. @lumapu

@lumapu
Copy link
Owner

lumapu commented Dec 14, 2023

you only get packet number 2, but never number 1 and the last one.
Which inverter do you have?

@aditiyagio
Copy link
Author

i have inverter HMS-1000 Series. @lumapu

@aditiyagio
Copy link
Author

is there anything that can we check or test to find the root cause of my problem? @lumapu

@lumapu
Copy link
Owner

lumapu commented Dec 18, 2023

have you tried a newer version since then?
You are the first one who has such a problem. How far is the distance to your inverter?
Do you think there is much other traffic in the 868MHz band?

@aditiyagio
Copy link
Author

Yeah, I'm using the latest firmware development, and I've tried it in a radius of 4 meters, but it's not working. And actually, the RX on my serial logs does not appear if the HOY_BOT_FREQ_KHZ settings are not changed to 915 MHz. and after I change the HOY_BOT_FREQ_KHZ, the Rx on the log serial appears. @lumapu

@aditiyagio
Copy link
Author

image

@lumapu

@lumapu
Copy link
Owner

lumapu commented Dec 21, 2023

are you located in the US? Sorry didn't know that. Can you try to be more clear?
What do you mean by "on my serial logs does not appear"? What appears once you change the BOOT_FREQ?

@lumapu
Copy link
Owner

lumapu commented Jan 1, 2024

are there any news?

@aditiyagio
Copy link
Author

My location is in Southeast Asia, specifically in Indonesia. My problem remains the same, my device still cannot read data from the HMS-1000 inverter @lumapu

@aditiyagio
Copy link
Author

Do you have any suggestions regarding my problem? What steps should I take to be able to access data from the inverter? @lumapu

@lumapu
Copy link
Owner

lumapu commented Jan 2, 2024

you don't have to change the HOY_BOT_FREQ_KHZ because you already got data from your inverter on 868MHz (as I can see in your log above).
Can you have another try with the latest release (0.8.36) and post another log with this version?

@aditiyagio
Copy link
Author

okay, i will try first @lumapu

@aditiyagio
Copy link
Author

image

@aditiyagio
Copy link
Author

here's the log using firmware version 0.8.36 @lumapu

@aditiyagio
Copy link
Author

20240102

@aditiyagio
Copy link
Author

@lumapu please insight

@lumapu
Copy link
Owner

lumapu commented Jan 11, 2024

can't see any RX in your Log. Do you know if your inverter sends in 868MHz oder 915MHz band?
Do you have a SDR (software defined radio) with you?

@nazmibojan
Copy link

Hi @lumapu , I'm Nazmi and currently helping @aditiyagio in this project. In Indonesia I think we use the different frequency for sub-1GHz. We are using this DTU from Hoymiles: https://www.hoymiles.com/product/dtu/lite-s/ and it's worked. I think in Indonesia we use 915 or 923 MHz frequency. So if we use different frequency with Europe, in which part of the code that we need to change?

@lumapu
Copy link
Owner

lumapu commented Jan 20, 2024

it's not that easy because of several points where you need to adjust.
Maybe I can try to add an option to select different frequency for the range you mentioned.
Do you know on which frequency the inverter starts? Do you have a SDR with you?

@nazmibojan
Copy link

I see. Currently we dont have SDR but we consider to purchase it. Is RTL-SDR enough to detect it? Or we need Hack-RF in this case @lumapu ?

@lumapu
Copy link
Owner

lumapu commented Jan 20, 2024

Yes RTL SDR should be enough. You only need to measure 915MHz for HMS / HMT series.

@nazmibojan
Copy link

Oke @lumapu . We will get back to you soon. Thanks a lot

@nazmibojan
Copy link

Hi @lumapu, we already check the RF signal using RTL-SDR. We think this inverter is using 915MHz frequency. You can check the picture belom.

WhatsApp Image 2024-01-24 at 12 42 01 PM

We also record the video when running DTU device to communicate with HMS-1000: https://drive.google.com/file/d/11lKiyDBvDaRQ-CVo3md8meCGIAihnjdl/view?usp=sharing

Wdyt @lumapu ?

@lumapu
Copy link
Owner

lumapu commented Jan 24, 2024

wow really good, I'll check it.

@aditiyagio
Copy link
Author

hello @lumapu , have you done to check for this? I will wait for the good news ✌️

@lumapu
Copy link
Owner

lumapu commented Jan 28, 2024

sorry had no time so far. I think I can build a special version for you, which ESP are you using?

lumapu added a commit that referenced this issue Jan 28, 2024
* added support for other regions - untested #1271
* fix generation of DTU-ID; was computed twice without reset if two radios are enabled
@lumapu
Copy link
Owner

lumapu commented Jan 28, 2024

please check 0.8.66 (https;//fw.ahoydtu.de). I've added a region selector to /system as well as the compared frequencies for this region.
Please reboot your DTU once you changend the region to have the ability to set the correct frequency.

As you have a original Hoymiles DTU with you be sure to turn it off once you try to communicate using AhoyDTU. It isn't possible to have two DTUs talking to the same inverter.

@nazmibojan
Copy link

Thanks @lumapu !
We will try it tomorrow and get back to you about the results

@lumapu
Copy link
Owner

lumapu commented Jan 29, 2024

please try the latest development Version 0.8.68 https://fw.ahoydtu.de

@aditiyagio
Copy link
Author

@lumapu wow this works, I'm using development3 firmware 0.8.67
Screenshot 2024-01-30 115621

@aditiyagio
Copy link
Author

Screenshot 2024-01-30 115841

@lumapu

@lumapu
Copy link
Owner

lumapu commented Jan 30, 2024

thank you for the response. That is good news.

@lumapu
Copy link
Owner

lumapu commented Jan 31, 2024

@nazmibojan how is your DTU performing with the new version?

@nazmibojan
Copy link

Sorry @lumapu , maybe we can check this next week. Because our DTU device is currently using by another team until next week. We will get back to you soon Lukas

@lumapu lumapu added the fixed dev fixed label Feb 17, 2024
@lumapu lumapu closed this as completed Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed dev fixed
Projects
None yet
Development

No branches or pull requests

3 participants