mux wrote:Big news!
Alright, holy shit, after a full weekend AND monday of messing up probably everything there is to mess up about this endeavour, I *FINALLY* got my CAN bus bridge to work the way I intended. It now:
- Transparently passes through all CAN messages
- Can selectively edit CAN messages ('man in the middle' attack-type stuff)
- Outputs every single CAN message as well as possible errors out to a serial port
I have mounted this on my EV-CAN right off the VCM and am currently using it to add the extender pack capacity to the main pack capacity by modifying CAN message 0x5bc (available charge signal). This has the desired effect of increasing the amount of kilometers on the dashboard accordingly.
I'm now going to spend the rest of today making some more logging tools and properly writing firmware for the extender pack. I'll post a video maybe tomorrow (depends, I have a busy week ahead).
I don't think I can convey how big this news is. I'm not the first person to spoof CAN this way, but as far as I know, I'm the first person to do realtime CAN bus manipulation in a working Nissan Leaf, certainly for this purpose. This will allow for unprecedented hacking of these vehicles.
I'm revising the board design and layout, hardening it and selling it soon for $40-50, depending on how expensive the potting is going to be.
Is there a possibility that this programmable "spoofing" of the CAN can be used to hack a pragmatic solution that allows the bi-directional CHAdeMO protocols to be used to design a charge/discharge controller so that my Leaf can be used as the energy storage for my solar system? Both Pika Energy and SolarEdge use a DC bus design philosophy with their proprietary (expensive) home storage batteries that are essentially functionally the same as my Leaf's battery. Seems it should be a matter (likely NOT simple) of proper battery management based on external operating requirements (charging when excess energy is available (solar or grid) and discharging when externally energy is required - operator demands).
2012 Leaf SL; 36,000 miles. Battery replaced November 1st, 2016.
Rural cabin with 6750 watts Grid tied PV. Off-grid solar Leaf charging capable (level II).