<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><div><font face="Calibri,sans-serif">Here's the latest update on my CAN bus tinkering...</font></div><div><font face="Calibri,sans-serif"><br></font></div><div><font face="Calibri,sans-serif">I picked up the Sparkfun board which is an STN1110 chip on a board with the support parts, a DB9 for connecting to an OBDII port and UART pinouts. I am using their FTDI UART-to-USB breakout board to talk to the STN1110 over USB.</font></div><div><font face="Calibri,sans-serif"><br></font></div><div><font face="Calibri,sans-serif">OBDII UART board: https://www.sparkfun.com/products/9555</font></div><div><font face="Calibri,sans-serif">FTDI Basic Breakout: https://www.sparkfun.com/products/9716</font></div><div><font face="Calibri,sans-serif">OBDII to DB9 cable: https://www.sparkfun.com/products/10087</font></div><div><font face="Calibri,sans-serif"><br></font></div><div><font face="Calibri,sans-serif">Before using the OBD board, I updated the firmware to version 3.2.0, which requires running a program on a Windows machine.</font></div><div><font face="Calibri,sans-serif"><br></font></div><div><span style="font-family: Calibri, sans-serif;">Except for doing the firmware update, I'm using a MacBook Air running 10.8.5. I did have to track down and install the FTDI drivers.</span></div><div><font face="Calibri,sans-serif"><br></font></div><div><font face="Calibri,sans-serif">The </font><span style="font-family: Calibri, sans-serif;">STN1110</span><font face="Calibri,sans-serif"> claims to have a superior auto detect function to detect what protocol a vehicle is using on the OBD port, but it fails on the Leaf and the Roadster. I know the Leaf isn't a standard OBD protocol, and I'll bet the same is true of the Roadster. The Leaf won't respond to a 01 00 message, which I believe the </font><span style="font-family: Calibri, sans-serif;">STN1110</span><font face="Calibri,sans-serif"> uses to detect the protocol. The $12 Bluetooth ELM327 clone works just fine at detecting the Leaf's CAN bus settings, but fails on the Roadster because it doesn't support CAN bus speeds above 500 kbps.</font></div><div><font face="Calibri,sans-serif"><br></font></div><div><font face="Calibri,sans-serif">For the Leaf, I can manually set the </font><span style="font-family: Calibri, sans-serif;">STN1110</span><font face="Calibri,sans-serif"> to talk to the 11-bit 500 kbps CAR-CAN bus (AT SP 6) and set the UART speed to 921600 baud (ST BR 921600). With that setup, I can send a monitor all command (AT MA) and read/record 20,000 CAN messages in 11.813 seconds. My usual terminal program won't let me set the baud rate that high, but I'm using a custom program to talk to the device and add timestamps, and I can set the baud rate that high programmatically. I'm happy to share the source code if anyone wants it.</font></div><div><font face="Calibri,sans-serif"><br></font></div><div><font face="Calibri,sans-serif">As near as I can tell, there's no way to manually set the CAN bus parameters on the </font><span style="font-family: Calibri, sans-serif;">STN1110</span><font face="Calibri,sans-serif">  nor does the data sheet give any hint at what maximum CAN speed the STN1110 supports. It says the UART supports up to 20 megabits per second. What's the point of that it only supports CAN up to 500 kbps? I've sent an email the the manufacturer, but haven't heard anything back.</font></div><div><font face="Calibri,sans-serif"><br></font></div><div><font face="Calibri,sans-serif">So the Sparkfun board is great for the Leaf, but the jury is still out for using it on the Roadster.</font></div><div><br></div><div><font face="Calibri,sans-serif">   Tom</font></div></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"><br></div><br></body></html>