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

Problem with SRK25ZJX-S #21

Closed
makonrus opened this issue Jun 22, 2020 · 6 comments
Closed

Problem with SRK25ZJX-S #21

makonrus opened this issue Jun 22, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@makonrus
Copy link

Please create a log with time stamp and some more entries before and after the effect. In addition, how does row 30 of MHI-AC-Ctrl-core.h
//#define POWERON_WHEN_CHANGING_MODE true
looks like?, Unchanged or have you commented it in?

I just commented this line and the problems with switching modes disappeared. But if this line is not commented, then the problem remains.

There should be 4 different fan speeds, no auto mode for the fan.

My remote control has 3 speeds and Auto mode:
http://splitoff.ru/wp-content/uploads/pults/ESC-RC-195.jpg

We've seen this instability alrady e.g. in the issue10. I couldn't find out the root cause, but since this seems to be not critical, I postponed it. btw: If you have an oscilloscope, a measurement would be helpful.

Yes, I have an oscilloscope, but I can connect it to the AC no earlier than next week.

Here is the test program log:

Frequency measurement v1.0
CPU frequency [Hz] : 80000000

acquisition-please wait, ready: acq. time=982ms f=2560 time to 1st falling edge=6004µs
more than 3 ranges detected, skip measurement, sum acq_fails=1

acquisition-please wait, ready: acq. time=921ms f=2400 time to 1st falling edge=37013µs
more than 3 ranges detected, skip measurement, sum acq_fails=2

acquisition-please wait, ready: acq. time=983ms f=2560 time to 1st falling edge=7357µs
more than 3 ranges detected, skip measurement, sum acq_fails=3

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=39466µs
more than 3 ranges detected, skip measurement, sum acq_fails=4

acquisition-please wait, ready: acq. time=982ms f=2559 time to 1st falling edge=7883µs
more than 3 ranges detected, skip measurement, sum acq_fails=5

acquisition-please wait, ready: acq. time=921ms f=2400 time to 1st falling edge=39438µs
more than 3 ranges detected, skip measurement, sum acq_fails=6

acquisition-please wait, ready: acq. time=983ms f=2560 time to 1st falling edge=8291µs
more than 3 ranges detected, skip measurement, sum acq_fails=7

acquisition-please wait, ready: acq. time=918ms f=2400 time to 1st falling edge=39714µs
more than 3 ranges detected, skip measurement, sum acq_fails=8

acquisition-please wait, ready: acq. time=982ms f=2560 time to 1st falling edge=8167µs
more than 3 ranges detected, skip measurement, sum acq_fails=9

acquisition-please wait, ready: acq. time=920ms f=2400 time to 1st falling edge=39546µs
more than 3 ranges detected, skip measurement, sum acq_fails=10

acquisition-please wait, ready: acq. time=983ms f=2560 time to 1st falling edge=8691µs
more than 3 ranges detected, skip measurement, sum acq_fails=11

acquisition-please wait, ready: acq. time=920ms f=2400 time to 1st falling edge=40235µs
more than 3 ranges detected, skip measurement, sum acq_fails=12

acquisition-please wait, ready: acq. time=982ms f=2560 time to 1st falling edge=9158µs
more than 3 ranges detected, skip measurement, sum acq_fails=13

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=40066µs
more than 3 ranges detected, skip measurement, sum acq_fails=14

acquisition-please wait, ready: acq. time=982ms f=2560 time to 1st falling edge=9013µs
more than 3 ranges detected, skip measurement, sum acq_fails=15

acquisition-please wait, ready: acq. time=918ms f=2400 time to 1st falling edge=40543µs
more than 3 ranges detected, skip measurement, sum acq_fails=16

acquisition-please wait, ready: acq. time=983ms f=2560 time to 1st falling edge=8463µs
more than 3 ranges detected, skip measurement, sum acq_fails=17

acquisition-please wait, ready: acq. time=921ms f=2400 time to 1st falling edge=40407µs
more than 3 ranges detected, skip measurement, sum acq_fails=18

acquisition-please wait, ready: acq. time=982ms f=2560 time to 1st falling edge=10517µs
more than 3 ranges detected, skip measurement, sum acq_fails=19

acquisition-please wait, ready: acq. time=918ms f=2400 time to 1st falling edge=41703µs
more than 3 ranges detected, skip measurement, sum acq_fails=20

acquisition-please wait, ready: acq. time=982ms f=2560 time to 1st falling edge=8549µs
more than 3 ranges detected, skip measurement, sum acq_fails=21

acquisition-please wait, ready: acq. time=921ms f=2400 time to 1st falling edge=39375µs
more than 3 ranges detected, skip measurement, sum acq_fails=22

acquisition-please wait, ready: acq. time=982ms f=2560 time to 1st falling edge=10030µs
more than 3 ranges detected, skip measurement, sum acq_fails=23

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=41427µs
more than 3 ranges detected, skip measurement, sum acq_fails=24

acquisition-please wait, ready: acq. time=982ms f=2560 time to 1st falling edge=9957µs
more than 3 ranges detected, skip measurement, sum acq_fails=25

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=41953µs
more than 3 ranges detected, skip measurement, sum acq_fails=26

acquisition-please wait, ready: acq. time=984ms f=2560 time to 1st falling edge=10483µs
more than 3 ranges detected, skip measurement, sum acq_fails=27

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=42370µs
more than 3 ranges detected, skip measurement, sum acq_fails=28

acquisition-please wait, ready: acq. time=982ms f=2560 time to 1st falling edge=9633µs
more than 3 ranges detected, skip measurement, sum acq_fails=29

acquisition-please wait, ready: acq. time=920ms f=2400 time to 1st falling edge=39840µs
more than 3 ranges detected, skip measurement, sum acq_fails=30

acquisition-please wait, ready: acq. time=983ms f=2560 time to 1st falling edge=9185µs
more than 3 ranges detected, skip measurement, sum acq_fails=31

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=39878µs
more than 3 ranges detected, skip measurement, sum acq_fails=32

acquisition-please wait, ready: acq. time=983ms f=2560 time to 1st falling edge=8280µs
more than 3 ranges detected, skip measurement, sum acq_fails=33

acquisition-please wait, ready: acq. time=920ms f=2400 time to 1st falling edge=39201µs
more than 3 ranges detected, skip measurement, sum acq_fails=34

acquisition-please wait, ready: acq. time=983ms f=2560 time to 1st falling edge=8577µs
more than 3 ranges detected, skip measurement, sum acq_fails=35

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=39832µs
more than 3 ranges detected, skip measurement, sum acq_fails=36

acquisition-please wait, ready: acq. time=982ms f=2560 time to 1st falling edge=8241µs
more than 3 ranges detected, skip measurement, sum acq_fails=37

acquisition-please wait, ready: acq. time=920ms f=2400 time to 1st falling edge=39154µs
more than 3 ranges detected, skip measurement, sum acq_fails=38

acquisition-please wait, ready: acq. time=983ms f=2560 time to 1st falling edge=7994µs
more than 3 ranges detected, skip measurement, sum acq_fails=39

acquisition-please wait, ready: acq. time=918ms f=2400 time to 1st falling edge=40106µs
more than 3 ranges detected, skip measurement, sum acq_fails=40

acquisition-please wait, ready: acq. time=983ms f=2560 time to 1st falling edge=8182µs
more than 3 ranges detected, skip measurement, sum acq_fails=41

acquisition-please wait, ready: acq. time=921ms f=2400 time to 1st falling edge=39600µs
more than 3 ranges detected, skip measurement, sum acq_fails=42

acquisition-please wait, ready: acq. time=983ms f=2560 time to 1st falling edge=10098µs
more than 3 ranges detected, skip measurement, sum acq_fails=43

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=41162µs
more than 3 ranges detected, skip measurement, sum acq_fails=44

acquisition-please wait, ready: acq. time=983ms f=2560 time to 1st falling edge=8735µs
more than 3 ranges detected, skip measurement, sum acq_fails=45

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=40551µs
more than 3 ranges detected, skip measurement, sum acq_fails=46

acquisition-please wait, ready: acq. time=982ms f=2560 time to 1st falling edge=9178µs
more than 3 ranges detected, skip measurement, sum acq_fails=47

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=39806µs
more than 3 ranges detected, skip measurement, sum acq_fails=48

acquisition-please wait, ready: acq. time=982ms f=2560 time to 1st falling edge=8632µs
more than 3 ranges detected, skip measurement, sum acq_fails=49

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=38922µs
more than 3 ranges detected, skip measurement, sum acq_fails=50

acquisition-please wait, ready: acq. time=984ms f=2560 time to 1st falling edge=7316µs
more than 3 ranges detected, skip measurement, sum acq_fails=51

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=39202µs
more than 3 ranges detected, skip measurement, sum acq_fails=52

acquisition-please wait, ready: acq. time=982ms f=2560 time to 1st falling edge=7824µs
more than 3 ranges detected, skip measurement, sum acq_fails=53

acquisition-please wait, ready: acq. time=920ms f=2400 time to 1st falling edge=38953µs
more than 3 ranges detected, skip measurement, sum acq_fails=54

acquisition-please wait, ready: acq. time=982ms f=2560 time to 1st falling edge=8670µs
more than 3 ranges detected, skip measurement, sum acq_fails=55

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=39259µs
more than 3 ranges detected, skip measurement, sum acq_fails=56

acquisition-please wait, ready: acq. time=983ms f=2560 time to 1st falling edge=8468µs
more than 3 ranges detected, skip measurement, sum acq_fails=57

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=40321µs
more than 3 ranges detected, skip measurement, sum acq_fails=58

acquisition-please wait, ready: acq. time=984ms f=2560 time to 1st falling edge=8923µs
more than 3 ranges detected, skip measurement, sum acq_fails=59

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=41525µs
more than 3 ranges detected, skip measurement, sum acq_fails=60

acquisition-please wait, ready: acq. time=982ms f=2560 time to 1st falling edge=9411µs
more than 3 ranges detected, skip measurement, sum acq_fails=61

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=40264µs
more than 3 ranges detected, skip measurement, sum acq_fails=62

acquisition-please wait, ready: acq. time=983ms f=2560 time to 1st falling edge=8678µs
more than 3 ranges detected, skip measurement, sum acq_fails=63

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=40382µs
more than 3 ranges detected, skip measurement, sum acq_fails=64

acquisition-please wait, ready: acq. time=983ms f=2560 time to 1st falling edge=8367µs
more than 3 ranges detected, skip measurement, sum acq_fails=65

acquisition-please wait, ready: acq. time=921ms f=2400 time to 1st falling edge=40159µs
more than 3 ranges detected, skip measurement, sum acq_fails=66

acquisition-please wait, ready: acq. time=983ms f=2560 time to 1st falling edge=9641µs
more than 3 ranges detected, skip measurement, sum acq_fails=67

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=41338µs
more than 3 ranges detected, skip measurement, sum acq_fails=68

acquisition-please wait, ready: acq. time=982ms f=2560 time to 1st falling edge=10578µs
more than 3 ranges detected, skip measurement, sum acq_fails=69

acquisition-please wait, ready: acq. time=920ms f=2400 time to 1st falling edge=41842µs
more than 3 ranges detected, skip measurement, sum acq_fails=70

acquisition-please wait, ready: acq. time=982ms f=2560 time to 1st falling edge=10901µs
more than 3 ranges detected, skip measurement, sum acq_fails=71

acquisition-please wait, ready: acq. time=920ms f=2400 time to 1st falling edge=41534µs
more than 3 ranges detected, skip measurement, sum acq_fails=72

acquisition-please wait, ready: acq. time=981ms f=2560 time to 1st falling edge=10500µs
more than 3 ranges detected, skip measurement, sum acq_fails=73

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=40661µs
more than 3 ranges detected, skip measurement, sum acq_fails=74

acquisition-please wait, ready: acq. time=982ms f=2560 time to 1st falling edge=9032µs
more than 3 ranges detected, skip measurement, sum acq_fails=75

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=42767µs
more than 3 ranges detected, skip measurement, sum acq_fails=76

acquisition-please wait, ready: acq. time=983ms f=2560 time to 1st falling edge=10781µs
more than 3 ranges detected, skip measurement, sum acq_fails=77

acquisition-please wait, ready: acq. time=920ms f=2400 time to 1st falling edge=42354µs
more than 3 ranges detected, skip measurement, sum acq_fails=78

acquisition-please wait, ready: acq. time=982ms f=2560 time to 1st falling edge=11266µs
more than 3 ranges detected, skip measurement, sum acq_fails=79

acquisition-please wait, ready: acq. time=918ms f=2400 time to 1st falling edge=41801µs
more than 3 ranges detected, skip measurement, sum acq_fails=80

acquisition-please wait, ready: acq. time=982ms f=2560 time to 1st falling edge=9559µs
more than 3 ranges detected, skip measurement, sum acq_fails=81

acquisition-please wait, ready: acq. time=920ms f=2400 time to 1st falling edge=41083µs
more than 3 ranges detected, skip measurement, sum acq_fails=82

acquisition-please wait, ready: acq. time=984ms f=2560 time to 1st falling edge=9919µs
more than 3 ranges detected, skip measurement, sum acq_fails=83

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=42990µs
more than 3 ranges detected, skip measurement, sum acq_fails=84

acquisition-please wait, ready: acq. time=982ms f=2560 time to 1st falling edge=10528µs
more than 3 ranges detected, skip measurement, sum acq_fails=85

acquisition-please wait, ready: acq. time=920ms f=2400 time to 1st falling edge=41801µs
more than 3 ranges detected, skip measurement, sum acq_fails=86

acquisition-please wait, ready: acq. time=983ms f=2560 time to 1st falling edge=11354µs
more than 3 ranges detected, skip measurement, sum acq_fails=87

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=43094µs
more than 3 ranges detected, skip measurement, sum acq_fails=88

acquisition-please wait, ready: acq. time=983ms f=2560 time to 1st falling edge=11368µs
more than 3 ranges detected, skip measurement, sum acq_fails=89

acquisition-please wait, ready: acq. time=920ms f=2400 time to 1st falling edge=41744µs
more than 3 ranges detected, skip measurement, sum acq_fails=90

acquisition-please wait, ready: acq. time=982ms f=2560 time to 1st falling edge=10363µs
more than 3 ranges detected, skip measurement, sum acq_fails=91

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=40840µs
more than 3 ranges detected, skip measurement, sum acq_fails=92

acquisition-please wait, ready: acq. time=983ms f=2560 time to 1st falling edge=9225µs
more than 3 ranges detected, skip measurement, sum acq_fails=93

acquisition-please wait, ready: acq. time=920ms f=2400 time to 1st falling edge=40545µs
more than 3 ranges detected, skip measurement, sum acq_fails=94

acquisition-please wait, ready: acq. time=983ms f=2560 time to 1st falling edge=9936µs
more than 3 ranges detected, skip measurement, sum acq_fails=95

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=40667µs
more than 3 ranges detected, skip measurement, sum acq_fails=96

acquisition-please wait, ready: acq. time=982ms f=2560 time to 1st falling edge=9556µs
more than 3 ranges detected, skip measurement, sum acq_fails=97

acquisition-please wait, ready: acq. time=920ms f=2400 time to 1st falling edge=40249µs
more than 3 ranges detected, skip measurement, sum acq_fails=98

acquisition-please wait, ready: acq. time=983ms f=2560 time to 1st falling edge=9995µs
more than 3 ranges detected, skip measurement, sum acq_fails=99

acquisition-please wait, ready: acq. time=919ms f=2400 time to 1st falling edge=41784µs
more than 3 ranges detected, skip measurement, sum acq_fails=100

acquisition-please wait, ready: acq. time=983ms f=2560 time to 1st falling edge=9739µs
more than 3 ranges detected, skip measurement, sum acq_fails=101

acquisition-please wait, ready: acq. time=920ms f=2400 time to 1st falling edge=40809µs
more than 3 ranges detected, skip measurement, sum acq_fails=102
@absalom-muc
Copy link
Owner

absalom-muc commented Jun 22, 2020

In addition, how does row 30 of MHI-AC-Ctrl-core.h
//#define POWERON_WHEN_CHANGING_MODE true
looks like?, Unchanged or have you commented it in?

I just commented this line and the problems with switching modes disappeared. But if this line is not commented, then the problem remains.

I believe the bug is in row 137 of MHI-AC-Ctrl-core.cpp. Please replace
MISO_frame[DB0] |= 0x11;
by
MISO_frame[DB0] |= 0b11;
and try it again. Will come back to you for the other topics.

@absalom-muc absalom-muc added the bug Something isn't working label Jun 22, 2020
@absalom-muc
Copy link
Owner

There should be 4 different fan speeds, no auto mode for the fan.

My remote control has 3 speeds and Auto mode:
http://splitoff.ru/wp-content/uploads/pults/ESC-RC-195.jpg

The IR remote control supports Fan level 1 ... 4 and 'auto'. Unfortunately Fan 'auto' is not supported via a SPI remote control.

@makonrus
Copy link
Author

I believe the bug is in row 137 of MHI-AC-Ctrl-core.cpp. Please replace
MISO_frame[DB0] |= 0x11;
by
MISO_frame[DB0] |= 0b11;
and try it again. Will come back to you for the other topics.

Yes! Now everything works fine.

The IR remote control supports Fan level 1 ... 4 and 'auto'. Unfortunately Fan 'auto' is not supported via a SPI remote control.

That is, the Auto fan mode and the vanes position switching mode are not sent by the AC to the SPI bus? It would be necessary to check by oscilloscope.

@absalom-muc
Copy link
Owner

I believe the bug is in row 137 of MHI-AC-Ctrl-core.cpp. Please replace
MISO_frame[DB0] |= 0x11;
by
MISO_frame[DB0] |= 0b11;
and try it again. Will come back to you for the other topics.

Yes! Now everything works fine.

Thanks for confirmation!

@absalom-muc
Copy link
Owner

I just uploaded a SPI logger. Please use it for creating another log.

@absalom-muc
Copy link
Owner

If you are still interested in a follow up, please feel free to re-open this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants