From f1ce7377cdf3ac29534b2054e5acdf64532cb69f Mon Sep 17 00:00:00 2001 From: Marianpol Date: Sat, 7 Mar 2020 10:28:32 +0100 Subject: [PATCH] STN CAN2 fix --- pyren/mod_elm.py | 4 +- pyren/savedEcus2.p | 148 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 150 insertions(+), 2 deletions(-) create mode 100644 pyren/savedEcus2.p diff --git a/pyren/mod_elm.py b/pyren/mod_elm.py index 711b758..17c649f 100644 --- a/pyren/mod_elm.py +++ b/pyren/mod_elm.py @@ -1834,7 +1834,7 @@ class ELM: def set_can_500(self, addr='XXX'): if mod_globals.opt_can2 and mod_globals.opt_stn: - tmp = self.cmd("STPBR 500000") + tmp = self.cmd("STP 33") if '?' not in tmp: return if len(addr)==3: self.cmd("at sp 6") @@ -1843,7 +1843,7 @@ class ELM: def set_can_250(self, addr='XXX'): if mod_globals.opt_can2 and mod_globals.opt_stn: - tmp = self.cmd("STPBR 250000") + tmp = self.cmd("STP 35") if '?' not in tmp: return if len(addr)==3: self.cmd("at sp 8") diff --git a/pyren/savedEcus2.p b/pyren/savedEcus2.p new file mode 100644 index 0000000..1f6dc78 --- /dev/null +++ b/pyren/savedEcus2.p @@ -0,0 +1,148 @@ +(lp0 +(dp1 +S'vehTypeCode' +p2 +VX74 +p3 +sS'protocol' +p4 +S'' +p5 +sS'pin' +p6 +S'can' +p7 +sS'stopDiagReq' +p8 +V1081 +p9 +sS'CANConfig' +p10 +Vfalse +p11 +sS'KeepAlivePeriod' +p12 +V3000 +p13 +sS'brp' +p14 +V0 +p15 +sS'startDiagRsp' +p16 +V50C0 +p17 +sS'baudRate' +p18 +g5 +sS'dst' +p19 +V57 +p20 +sS'stopDiagRsp' +p21 +V5081 +p22 +sS'programmable' +p23 +Vfalse +p24 +sS'startDiagReq' +p25 +V10C0 +p26 +sS'commRetry' +p27 +V3 +p28 +sS'OptimizerId' +p29 +VSG1010380.XML +p30 +sS'slowInit' +p31 +g5 +sS'rerr' +p32 +S'2' +p33 +sS'ecuname' +p34 +V10380 +p35 +sS'KW1' +p36 +g5 +sS'idRx' +p37 +V767 +p38 +sS'KW2' +p39 +g5 +sS'replyToRequestDelay' +p40 +V0 +p41 +sS'ModelId' +p42 +VFG1010380.XML +p43 +sS'src' +p44 +VF1 +p45 +sS'keepAliveReq' +p46 +V3E01 +p47 +sS'fastInit' +p48 +g5 +sS'idTx' +p49 +V747 +p50 +sS'errorDelay' +p51 +V1000 +p52 +sS'stdType' +p53 +VSTD_A +p54 +sS'ids' +p55 +(lp56 +V2180 +p57 +aV6180 +p58 +aV0 +p59 +aV6 +p60 +aVFF +p61 +aV24 +p62 +asS'timings' +p63 +g5 +sS'doc' +p64 +VNAV_4R_0000_24_A +p65 +sS'idf' +p66 +V10 +p67 +sS'pin2' +p68 +V12 +p69 +sS'pin1' +p70 +V13 +p71 +sa. \ No newline at end of file