From 8217d2077e7a24304e85dcf872710327f3705fc4 Mon Sep 17 00:00:00 2001 From: travisutk Date: Fri, 17 Aug 2012 05:43:18 +0000 Subject: [PATCH] CAN promiscous mode is now enabled by default. Dear gods does Q owe me some pizza and beer for patching so late. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1236 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- client/GoodFETMCPCAN.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.20.1