Tazzi wrote: ↑Sat Oct 12, 2024 1:40 am
You can set more then 1 filter (technically, there’s 32 for j2534), but if wanting to use just 1 filter.
To cover both 7EA and 5EA, you will need to set a mask of 5FF
Fastest way to work it out is 7EA XOR 5EA = 200
Then 7FF-200=5FF
That’ll pass both those values through and nothing else.
That worked, thank you. Mode22 and ModeAA are both working!
@ironduke, I have not tested adding a 2nd / 3rd... filter yet. Having separate filters would dumb it down to my level nicely
For the pattern parameter, is there anything to set that to now that the mask is nice and tight? We left it at 0x7ea and just changed the mask to 0x5ff. Its working for this test however, I have doubts if I move to a different module (with the appropriate mask changed) that it won't work.
E.g. RcvIds
ECM: 0x7e8, 0x5e8
TCM: 0x7ea, 0x5ea
BCM, FPCM and so on.
These are the message filter class properties:
Code: Select all
public Filter FilterType; // Filter.PASS_FILTER
public byte[] Mask; // new byte[] { 0x0, 0x0, 0x5, 0xFF}
public byte[] Pattern; // ??? <- help please
public byte[] FlowControl; // n/a
public TxFlag TxFlags; // n/a
public int FilterId; // 0