CAN promiscous mode is now enabled by default.
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Fri, 17 Aug 2012 05:43:18 +0000 (05:43 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Fri, 17 Aug 2012 05:43:18 +0000 (05:43 +0000)
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

index 1b8a5fd..0441ecb 100644 (file)
@@ -28,6 +28,10 @@ class GoodFETMCPCAN(GoodFETSPI):
         # mode.
         self.MCPreqstatConfiguration();
         
         # 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
         # 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