Dangerous Prototypes

Other projects => Open Bench Logic Sniffer => Topic started by: deantomlinson on May 09, 2010, 07:54:48 pm

Title: Sniffing CAN signals?
Post by: deantomlinson on May 09, 2010, 07:54:48 pm
I have a desire to analyze a CAN bus.   I was looking at the demo software for the Intronix LogicPort.   They have a CAN interpreter that they use connected to the CANL line.  From what I have found that will give you about 2.5v on the idle bus and about 1.1v for a dominate bit.  It looks like they use a logic threshold of 1.6v (which is adjustable on the LogicPort) in order to analyze the bus.  I have looked at the datasheets for the buffer and FPGA and am having a hard time getting a feeling for how this work work. 


Any idea if this would work with the OLS?  Is there a threshold that I could get with just a voltage divider?  Any input or ideas would be appreciated.

Dean
Title: Re: Sniffing CAN signals?
Post by: robots on May 09, 2010, 07:57:51 pm
You could use mcp2551 or similar to convert the differential CANH and CANL to TTL signal, and then sniff it.
Title: Re: Sniffing CAN signals?
Post by: deantomlinson on May 09, 2010, 08:05:15 pm
That is true, I guess that I did not think about that.  Thanks
Title: Re: Sniffing CAN signals?
Post by: robots on May 09, 2010, 08:09:08 pm
But if you really want it simple, I think that voltage divider might work as well. You need to know the exact voltages of high/low thresholds, and try to fit the 2.5/1.1 volts to those values. (and of course some zener diode for protection)

I'm sure the mcp2551 would make nice wing for OLS :). And be careful - the mcp2551 has 5v output, not compatible with the FPGA IO.
Title: Re: Sniffing CAN signals?
Post by: deantomlinson on May 09, 2010, 08:16:50 pm
Yes, so I just need to be sure to use the buffered inputs, right?  You have got me nervous! 

That would be a great wing.  And then if we could get CAN plug-in for SUMP that would be awesome!
Title: Re: Sniffing CAN signals?
Post by: robots on May 09, 2010, 08:23:13 pm
Yes use the buffered pins.

The CAN analyzer should be easy, It is just a giant state machine.

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.00922049648session_write_close ( )...(null):0
20.00952181224ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.00952182000Database_MySQL->query( ).../DatabaseHandler.php:119
40.05472320712Database_MySQL->error( ).../Db-mysql.class.php:273