WPalaControl icon indicating copy to clipboard operation
WPalaControl copied to clipboard

No stove connection during initialization byte 0x201c in iGetStatusAtech function

Open dxmen7 opened this issue 1 year ago • 37 comments

Hello, I have following issue, I have debugged every single line until Palazzetti.cpp line 1013: Palazzetti::CommandResult Palazzetti::iGetStatusAtech() { CommandResult cmdRes; // die zeile gibt nicht erwarteten wert zurück cmdRes = fumisComReadByte(0x201C, &_STATUS); if (cmdRes != CommandResult::OK) { Serial1.println("fumisComReadByte(0x201C, &_STATUS) != CommandResult::OK"); return cmdRes; }

Here the controller tries to read byte =x201c and expects specifc byte value, but this failed. Without knowledge about Fumis byte structure it's difficult for me to go ahead. DO you have an idea or more background knowledge about Fumis byte structure?

I have a Fumis Alpha UI from JOTUL stove connected to Fumis controller, where I connected my RJ11 cable to my controller. If you need further information, please let me know.

Debugged serial Rx/Tx on stove and µC side looks fine.

dxmen7 avatar Aug 10 '24 13:08 dxmen7

Hello,

What is your motherboard model?

Domochip avatar Aug 30 '24 14:08 Domochip

I can only imagine 2 scenario :

  • there is a problem with the adapter and/or cable
  • your motherboard is not compatible

Could you give me more details about your motherboard and explain how you cabled it?

Domochip avatar Sep 04 '24 18:09 Domochip

Hello,Thanks for your reply. Yes I will give you my motherboard model number this weekend, I have to partially dismount my stove. I checked the adapter several times with a friend together and measured every single element. In my opinion, there can be a risk with a newer hardware version from Fumis and potentially an incompatibility. On 4. Sep 2024, at 20:52, Domochip @.***> wrote: I can only imagine 2 scenario :

there is a problem with the adapter and/or cable your motherboard is not compatible

Could you give me more details about your motherboard and explain how you cabled it?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

dxmen7 avatar Sep 04 '24 20:09 dxmen7

Sorry,Forgot the second part. Cabled it by RJ11 cable and modified as you described in your repo with crossing the lines.This cable goes to adapter, adapter is on top of D1 Mini and d1 mini Ports also correct.With serial monitor I have checked Rx and Tx on both sides and can see an Tx by D1 Mini after receiving an Rx and vice versa from stove side. On 4. Sep 2024, at 20:52, Domochip @.***> wrote: I can only imagine 2 scenario :

there is a problem with the adapter and/or cable your motherboard is not compatible

Could you give me more details about your motherboard and explain how you cabled it?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

dxmen7 avatar Sep 04 '24 21:09 dxmen7

ok, in that case I advise to take some pictures too at the same time you open it ;-)

Domochip avatar Sep 05 '24 07:09 Domochip

Hello from Germany,

I was not able to open side panel for direct access to motherboard. I only have model type, vendor serial number under device model of UI panel at the side of the stove. Maybe this help you too. Attached pictures how is the controller cabled to stove. I will try gonget more information and manual, how to open side panel.

Please find here iCloud Link to pictures, attaching to mail is too big: https://share.icloud.com/photos/012Ni27n0eGaETrfiNwn6vIIw

Best, Dennis

Am 05.09.2024 um 09:29 schrieb Domochip @.***>:

ok, in that case I advise to take some pictures too at the same time you open it ;-)

— Reply to this email directly, view it on GitHub https://github.com/Domochip/WirelessPalaControl/issues/39#issuecomment-2330805762, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACGEPVQUONZ7E5M2RRVDEMDZVAB5TAVCNFSM6AAAAABMJ257ICVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZQHAYDKNZWGI. You are receiving this because you authored the thread.

dxmen7 avatar Sep 08 '24 10:09 dxmen7

Hello,

When you plug the stove to the module without powering the d1mini, do you see the D1 diode blinking (activity of the stove bus)? does an error appears on the stove screen after 10sec? Same questions but with the d1mini powered?

Domochip avatar Sep 08 '24 11:09 Domochip

Hello, Yes, LED on stove side is blinking and confirmed with bus analyzer, that Tx and Rx are transmitted and received frames. D1 mini powered also. NO error on stove side after 10 sec.

Am 08.09.2024 um 13:16 schrieb Domochip @.***>:

Hello,

When you plug the stove to the module without powering the d1mini, do you see the D1 diode blinking (activity of the stove bus)? does an error appears on the stove screen after 10sec? Same questions but with the d1mini powered?

— Reply to this email directly, view it on GitHub https://github.com/Domochip/WirelessPalaControl/issues/39#issuecomment-2336645840, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACGEPVUATU3JRJSIRVGIM43ZVQWXXAVCNFSM6AAAAABMJ257ICVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZWGY2DKOBUGA. You are receiving this because you authored the thread.

dxmen7 avatar Sep 08 '24 11:09 dxmen7

What's your Jotul stove model? Do you know if Jotul offers a "ConnectionBox" or a module to control it via mobile phone?

Domochip avatar Sep 08 '24 11:09 Domochip

It’s Model PF733 from Jotul. Yes they offer a WiFi connection box with mobile app for one 200€, that was my trigger to try it by myself with your repo.

Service man also have a RJ11 cable with him to control stove via proprietary software provided by Jotul. Connection box link with Jotul App you can find here: https://intl.jotul.com/sites/importers/files/products/JOTUL_PELLET_CONTROL_Manual_EN.pdf

Stove manual here: https://www.jotul.de/sites/deutsch/files/products/DE%20%20PF733-%20PNMU00049.pdf

Am 08.09.2024 um 13:20 schrieb Domochip @.***>:

What's your Jotul stove model? Do you know if Jotul offers a "ConnectionBox" or a module to control it via mobile phone?

— Reply to this email directly, view it on GitHub https://github.com/Domochip/WirelessPalaControl/issues/39#issuecomment-2336647268, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACGEPVVJG4ABSVNRMT7EMSTZVQXJTAVCNFSM6AAAAABMJ257ICVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZWGY2DOMRWHA. You are receiving this because you authored the thread.

dxmen7 avatar Sep 08 '24 11:09 dxmen7

OK, it should definitely be compatible with my module.

few seconds after powering the d1mini, you should see D3 led blinking shortly. Is that the case?

What's appears in the web page?

Domochip avatar Sep 08 '24 11:09 Domochip

Yes, D3 LED is blinking shortly after powering up. Web Page looks like this:  Uptime currently less than 1 min. But also after 5 mins same behavior.

Am 08.09.2024 um 13:37 schrieb Domochip @.***>:

OK, it should definitely be compatible with my module.

few seconds after powering the d1mini, you should see D3 led blinking shortly. Is that the case?

What's appears in the web page?

— Reply to this email directly, view it on GitHub https://github.com/Domochip/WirelessPalaControl/issues/39#issuecomment-2336651951, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACGEPVUNBJQATTG4TWXP3NDZVQZHVAVCNFSM6AAAAABMJ257ICVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZWGY2TCOJVGE. You are receiving this because you authored the thread.

dxmen7 avatar Sep 08 '24 11:09 dxmen7

The webpage image does not appears. could you paste it in github page directly pls Which firmware are you using?

Domochip avatar Sep 08 '24 12:09 Domochip

Bildschirmfoto 2024-09-08 um 14 27 52 I am using firmware 2.1.5/3.1.2

dxmen7 avatar Sep 08 '24 12:09 dxmen7

OK, log is going out of D4 pin at 38400bps First you can have look at what's logged.

Do you know how to create a platformio/arduinoIDE project and compile it? if yes, I advidse you to use this very basic example : https://github.com/Domochip/Palazzetti/blob/master/examples/Serial_esp8266/Serial_esp8266.ino if No, I can compile it for you

Domochip avatar Sep 08 '24 12:09 Domochip

Yes I have compiled it with Arduino IDE, but don't get any useful output. tried different Baudrates for serial monitor

dxmen7 avatar Sep 08 '24 13:09 dxmen7

What output do you get?

Domochip avatar Sep 08 '24 13:09 Domochip

load 0x3fff20b8, len 40, room 8 tail 0 chksum 0x2b csum 0x2b v000471b0 ~ld rf cal sector: 1020 freq trace enable 0 rf[112] : 0� With Baudrate 74880.

Output form D1mini only endless ASCII symbols, which cannot be decoded in serial monitor.

dxmen7 avatar Sep 08 '24 13:09 dxmen7

baudrate is 38400bps

Domochip avatar Sep 08 '24 13:09 Domochip

this with Baudrate 38400:

b q!!i% H N%/�ayFC�g!n5)%oX %1-�,:!9Bg!yk)1%oC!1)B:1)J�)J){ B�)s'9 H:�=H+?))�

dxmen7 avatar Sep 08 '24 13:09 dxmen7

the log is coming out of the D4 pin. you need an additionnal serial adapter connected to GND and D4 to receive the log

Domochip avatar Sep 08 '24 13:09 Domochip

yeah was my fault, I will get one and come back to you

dxmen7 avatar Sep 08 '24 13:09 dxmen7

no problem ;-)

Domochip avatar Sep 08 '24 13:09 Domochip

Got it, unfortunately everything failed :(

wSer started initialize Failed myPala.getSetPoint failed myPala.getAllTemps failed myPala.GetStatus failed

dxmen7 avatar Sep 08 '24 13:09 dxmen7

do you have a logic analyzer?

Domochip avatar Sep 08 '24 13:09 Domochip

A friend of mine yes. What do you need for information?

dxmen7 avatar Sep 08 '24 14:09 dxmen7

The goal is to monitor exchanges on tx AND rx of the d1mini with real timing. That's the ultimate solution to debug what's happening.

Another idea would be to use 2 serial adapter one on D6 and one on D7. But it needs to log the precise timing to be able to reconstruct the "discussion"

Domochip avatar Sep 08 '24 14:09 Domochip

Hello, could you also try to remove R8 resistor or D3 led?

Domochip avatar Sep 11 '24 18:09 Domochip

Yes can do it. Since today also have the logic analyzer and check tomorrow

dxmen7 avatar Sep 11 '24 18:09 dxmen7

also what's your si8621 exact model (2 letters after 8621)?

Domochip avatar Sep 11 '24 18:09 Domochip