X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFETMCPCAN.py;h=0441ecb7b2b78e283213b090606b685f064bd1cc;hp=1b8a5fdc24d9ed4f1d67d83146c03fd16d77fc8f;hb=c6ec45386aabdd681547728397ee163a6267559b;hpb=906e2500df02bdb4b0471a5011e713177e959b49 diff --git a/client/GoodFETMCPCAN.py b/client/GoodFETMCPCAN.py index 1b8a5fd..0441ecb 100644 --- a/client/GoodFETMCPCAN.py +++ b/client/GoodFETMCPCAN.py @@ -28,6 +28,10 @@ class GoodFETMCPCAN(GoodFETSPI): # mode. self.MCPreqstatConfiguration(); + # If we don't enable promiscous mode, we'll miss a lot of + # packets. It can be manually disabled later. + self.poke8(0x60,0xFF); #TODO Does this have any unpleasant side effects? + # Now we need to set the timing registers. See chapter 5 of # the MCP2515 datasheet to get some clue as to how this # arithmetic of this works, as my comments here will likely be