Marat wrote: ↑Sat Nov 02, 2024 8:56 pmCheck CRC? ID47
The CRC is calculated as the Avanched LIN 2.0 CRC and it checks out as correct according to my Lin capture device. But can mess around a bit with this.
I work with LIN, and have the same problem. I think your problem was wrong ID, because in LIN can be protected ID, and check CRC. I try any Arduino Lin library and some have problem with it.
Okay so you would not believe the issue. Message timing.
I reviewed logs and my code and noticed even though it is supposed to run even 100ms the loop was not being ran that fast. So adding it to a mytimer call back it now send the the LIN frames at 10Hz as per log. I believe you could theoretically run it at a slower speed, seems to try and go at 3Hz but need more testing.
HELLO ALLS! Cath protocol to ZE1 nissan leaf compressor DENSO ESB27C WITH HEAT PUMP!
All it needs - read his status at MSG 0x49 with long 0 every 10ms - he answers like 00 00 B3 00 00 00 07 5E when stopped where B3 Vdc
When adding send every 100 ms message id 47 8 length with content like this - DC 05 FD FF FF FF FF FF - it starts where 05 ВС is speed(reversed byte iorde ! 02 ANY is stop and maximum i see is 0D AC! And it works!
When it turning - it sends to 49 like this AC 0D B3 2C 20 00 07 63 where B3 is dc voltage, 0D AC like current and 63 corresponding to temperature
Starting from 140 Vdc! Eats on start up to 0/9 amps and он minimal speed around 0.1 amp!
in our trace at time 33,3017192 i turn AC on and at time 40,8859636 i turn it off. at time 42,7048596 - i turn on with 31.5 С climate and it turns very slow and after i lover setted temperature and at 47,5001220 i turn off climate.