follow ft86club on our blog, twitter or facebook.
FT86CLUB
Ft86Club
Speed By Design
Register Garage Community Calendar Today's Posts Search

Go Back   Toyota GR86, 86, FR-S and Subaru BRZ Forum & Owners Community - FT86CLUB > FT86CLUB Shared Forum > Member's Car Journals

Member's Car Journals Car journals by our members.


User Tag List

Reply
 
Thread Tools Search this Thread
Old 02-22-2018, 10:01 AM   #1
ermax
Senior Member
 
ermax's Avatar
 
Join Date: Sep 2017
Drives: 2022 BRZ Limited Silver
Location: Jacksonville, FL
Posts: 2,532
Thanks: 882
Thanked 2,045 Times in 1,188 Posts
Mentioned: 68 Post(s)
Tagged: 0 Thread(s)
Ermax's CAN bus hacking log

This project started with me simply wanting a physical toggle switch for turning TC/ASC off. When the car starts and the switch is in the off position then I wanted TC/ASC to automatically turn off. To do this I am going to use CAN bus via the OBD2 port. I have a proof of concept built and working with a Raspberry Pi 3 and a cheep $10 CAN to SPI adapter. The Raspberry Pi is setup to be a WiFi AP so I can connect to it via my phone or laptop. It's also running Samba so I can easily access the filesystem from Windows. I made simple Node.js app which provides some simple URLs for triggering actions. Here are some examples:
http://carputer/nannies/off
http://carputer/nannies/on
http://carputer/headlights/on
http://carputer/headlights/off
http://carputer/flashheadlights/30/1000

Those URLs should be self explanatory. Something like this looks really cool with LED headlights:
http://carputer/flashheadlights/30/1000

It will strobe the lights at 30hz for 1sec.

My plan is to get a composite video cable to run from the RPi to the composite video in on the back of my factory headunit. Then I need to find a good place for a Dpad for going through the menus. It would be really cool if you could trap the touch inputs from the factory touch screen. Hmmm

I will update this thread as the project evolves. I'm only one day into it so it's a bit rough right now.

ermax is offline   Reply With Quote
The Following 7 Users Say Thank You to ermax For This Useful Post:
Beachin86 (02-23-2018), BirdTRD (02-24-2018), iLuveKetchup (02-25-2018), sqd (02-26-2018), TheBRZsKnees (02-25-2018), Ultramaroon (02-24-2018), whataboutbob (01-10-2021)
Old 02-23-2018, 06:24 PM   #2
ermax
Senior Member
 
ermax's Avatar
 
Join Date: Sep 2017
Drives: 2022 BRZ Limited Silver
Location: Jacksonville, FL
Posts: 2,532
Thanks: 882
Thanked 2,045 Times in 1,188 Posts
Mentioned: 68 Post(s)
Tagged: 0 Thread(s)
I got the raspberry pi setup to auto join the WiFi at the house and at work and simultaneously acts as a WiFi AP for times when I am not at home or work. I can always join the local network with my phone to control it. Here is a video of me flashing the lights from my iPhone:
[ame="https://www.youtube.com/watch?v=oqXfUO8j9wU"]Raspberry Pi controlling headlights - YouTube[/ame]

Last edited by ermax; 02-23-2018 at 10:41 PM.
ermax is offline   Reply With Quote
The Following 2 Users Say Thank You to ermax For This Useful Post:
Beachin86 (02-23-2018), iLuveKetchup (02-25-2018)
Old 02-23-2018, 06:45 PM   #3
Beachin86
Senior Member
 
Beachin86's Avatar
 
Join Date: Jul 2017
Drives: FR-S 10 Series
Location: Los Angeles, CA
Posts: 137
Thanks: 193
Thanked 82 Times in 58 Posts
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Ooh I like this idea. I wanted to hook an RPI up to the OBD Port for real-time updates for oil temps, rpm, speed, etc. and have them projected onto a small glass like a fighter HUD. With your method are you able to toggle these things if you don't have access to internet (on the road)? I know what I have planned has already been done, I just need to modify someone else's code for my custom display.
Beachin86 is offline   Reply With Quote
Old 02-23-2018, 06:51 PM   #4
ermax
Senior Member
 
ermax's Avatar
 
Join Date: Sep 2017
Drives: 2022 BRZ Limited Silver
Location: Jacksonville, FL
Posts: 2,532
Thanks: 882
Thanked 2,045 Times in 1,188 Posts
Mentioned: 68 Post(s)
Tagged: 0 Thread(s)
The Pi is acting as a client and AP so when it’s in range of my office or home it will join that along with my phone. When I’m on the road my iPhone joins the Pi’s own WiFi network. So yes I can access it without internet access.

This isn’t how I intend to use it though. I plan on using the composite out to connect to my OEM touch screen via composite input. Then I plan to use the cruise controls for up/down/select to navigate menus. I can trap the can packets from these buttons.
ermax is offline   Reply With Quote
The Following User Says Thank You to ermax For This Useful Post:
Beachin86 (02-24-2018)
Old 02-24-2018, 05:39 AM   #5
syience
Member
 
Join Date: Dec 2016
Drives: 2017 Toyota 86
Location: Honolulu
Posts: 23
Thanks: 3
Thanked 6 Times in 6 Posts
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Interested in your project. What are the limitations to what you can control? Ive been trying to find a way to add "comfort windows" (door lock = window roll up, unlock = down).
syience is offline   Reply With Quote
Old 02-24-2018, 06:28 AM   #6
ermax
Senior Member
 
ermax's Avatar
 
Join Date: Sep 2017
Drives: 2022 BRZ Limited Silver
Location: Jacksonville, FL
Posts: 2,532
Thanks: 882
Thanked 2,045 Times in 1,188 Posts
Mentioned: 68 Post(s)
Tagged: 0 Thread(s)
You can control the windows and locks. The limitation is the ignition must be on. So no proximity WiFi or BT key fob is possible. But if you write up in detail what you are looking for, I will code it.
ermax is offline   Reply With Quote
Old 02-24-2018, 02:11 PM   #7
Ultramaroon
義理チョコ
 
Ultramaroon's Avatar
 
Join Date: Sep 2014
Drives: a 13 e8h frs
Location: vantucky, wa
Posts: 31,868
Thanks: 52,132
Thanked 36,519 Times in 18,920 Posts
Mentioned: 1106 Post(s)
Tagged: 9 Thread(s)
Ho lee crap!
__________________
Ultramaroon is offline   Reply With Quote
Old 02-25-2018, 05:49 PM   #8
syience
Member
 
Join Date: Dec 2016
Drives: 2017 Toyota 86
Location: Honolulu
Posts: 23
Thanks: 3
Thanked 6 Times in 6 Posts
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Quote:
Originally Posted by ermax View Post
You can control the windows and locks. The limitation is the ignition must be on. So no proximity WiFi or BT key fob is possible. But if you write up in detail what you are looking for, I will code it.
Basically using the key fob, something like a hold down of the unlock button would also make the windows roll down.

This would be outside your car, with no ignition on so it might not be possible.
syience is offline   Reply With Quote
Old 02-26-2018, 08:59 AM   #9
ermax
Senior Member
 
ermax's Avatar
 
Join Date: Sep 2017
Drives: 2022 BRZ Limited Silver
Location: Jacksonville, FL
Posts: 2,532
Thanks: 882
Thanked 2,045 Times in 1,188 Posts
Mentioned: 68 Post(s)
Tagged: 0 Thread(s)
I was really busy this weekend so I didn't have much time to work on this project. I did manage to identify the packets that are sent when moving the cruise stalk up, down and back. So now if I want to flash I just pull back on the cruise stalk. If I push down on the stalk it turns off TC/ASC and if I push up it turns it back on. The state is saved between restarts of the car so I don't have to press it each time I start the car.

I got a composite video cable for the Raspberry Pi. Hopefully I will get a chance to wire this into the Scion touch head unit. I have the BeSpoke version which has a backup camera input which is only active when your in reverse but it has a second dedicated video input that can be picked from the input menu. Once that is going I will work on some sort of basic menuing system that will be controlled by the cruise stalk.
ermax is offline   Reply With Quote
The Following 2 Users Say Thank You to ermax For This Useful Post:
Tcoat (02-26-2018), whataboutbob (01-10-2021)
Old 02-26-2018, 10:22 AM   #10
celek
Resident Gear Head
 
celek's Avatar
 
Join Date: Nov 2012
Drives: 2013 BRZ
Location: Ohio
Posts: 734
Thanks: 264
Thanked 914 Times in 339 Posts
Mentioned: 41 Post(s)
Tagged: 0 Thread(s)
Garage
Very cool,
Electronic steering and ABS are most important, especially for engine swaps.
I know the can to the electronic steering is RPM based feedback for the steering assist.

I would say spend your time there for decoding CAN it would be more viable information to be translated into other applications.
__________________
celek is offline   Reply With Quote
Old 02-26-2018, 12:40 PM   #11
Ultramaroon
義理チョコ
 
Ultramaroon's Avatar
 
Join Date: Sep 2014
Drives: a 13 e8h frs
Location: vantucky, wa
Posts: 31,868
Thanks: 52,132
Thanked 36,519 Times in 18,920 Posts
Mentioned: 1106 Post(s)
Tagged: 9 Thread(s)
Quote:
Originally Posted by ermax View Post
The state is saved between restarts of the car so I don't have to press it each time I start the car.
Wait, whaaat? Stop. Just stop. You had me at "saved."

__________________
Ultramaroon is offline   Reply With Quote
Old 01-10-2021, 04:49 PM   #12
KriyenKP
Junior Member
 
Join Date: Jan 2021
Drives: Toyota GT86 - 2013
Location: Durban, South Africa
Posts: 1
Thanks: 0
Thanked 2 Times in 1 Post
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
I know this thread is a bit old...but if you're still around would you mind sharing your code and whatever CAN commands you're familiar with? I'm trying to do research to learn and make my own mods too. Familiar with Rpi's and other electronics but new to CAN. Any help would be appreciated
KriyenKP is offline   Reply With Quote
The Following 2 Users Say Thank You to KriyenKP For This Useful Post:
Bach415 (01-14-2021), whataboutbob (01-10-2021)
Old 03-08-2022, 09:22 AM   #13
angelopellef1
Junior Member
 
Join Date: Mar 2022
Drives: Subvaru BRZ
Location: italy
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Aids disable via CANBUS

Hi, i am playing with CAN BUS too in order to change electronics aids in the same way as Ermax did. I found that can id 0x0d3 has some interesting information related to central tunnel button, but can message is continously send. Ermax how did you manage to keep a fixed aid setup? do you continously send a message on that can id ?
If someone has experience about that I wold be grateful for some help. Thank you !
angelopellef1 is offline   Reply With Quote
 
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Car hacking Doanation14 Other Vehicles & General Automotive Discussions 0 07-23-2015 08:53 AM
How to: Torque on an android powered stereo with no hacking v. Ca-Fi Dashlinq4 SHIFTER Electronics | Audio | NAV | Infotainment 29 04-07-2014 04:58 AM


All times are GMT -4. The time now is 07:55 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
User Alert System provided by Advanced User Tagging v3.3.0 (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.

Garage vBulletin Plugins by Drive Thru Online, Inc.