04-09-2018, 02:48 PM | #1 |
Lieutenant Colonel
1106
Rep 1,499
Posts |
***DIY: bootmod3 OBD Agent build with RPi 3 B
So I decided, with the latest release of the bm3 app for iOS, that I want the convenience of having an onboard, single board computer to run the bm3 OBD Agent software so I can flash and run the dashboard wirelessly from my iPhone. Like most of us here, I'm a tinkerer and thought it would be a fun project to build my own OBD Agent device. However, for those of you who would rather have something that works out of the box you can purchase one here (https://www.protuningfreaks.com/coll...a-all-f-series)
First off let's talk required hardware... RPi 3 B (DO NOT GET THE 3 B+ as the bm3 firmware does not support the latest RPi hardware) - $35.20 (https://www.amazon.com/gp/product/B0...?ie=UTF8&psc=1) Heat sink (optional) case - $6.59 (https://www.amazon.com/gp/product/B0...?ie=UTF8&psc=1) USB to Micro-USB connector patch cable - $7.95 for two (https://www.amazon.com/gp/product/B0...?ie=UTF8&psc=1) 16Gb micro-SD card - $6.95 (https://www.amazon.com/gp/product/B0...?ie=UTF8&psc=1) Software Requirements... Follow instructions here and for the latest OBD Agent Firmware (https://bootmod3.atlassian.net/wiki/...irmware+Update) Useful Links https://bootmod3.atlassian.net/wiki/...ardware+Device https://bootmod3.atlassian.net/wiki/...roubleshooting https://www.raspberrypi.org/ Once you have received the Micro SD card you need to copy the OBD Agent Image file to the card. Follow these steps. Step-by-step guide 1. Download firmware from here: https://www.dropbox.com/s/8uc616x8vo...81.img.gz?dl=0 2. Unzip the provided .gz file. On Windows you can use WinRAR or 7-zip software to extract the downloaded .gz file from the above link. On macOS in most cases it’ll just unzip automatically after downloading. Unzipped file will have a .img extension and the file will be just below 8 GB in size. 3. Write the .img file to the card. You can use Win32DiskImager (on Windows) or Etcher (on macOS), both free utilities: Win32DiskImager: https://sourceforge.net/projects/win32diskimager/ Etcher: https://etcher.io/ RPI Assembly and Installation Steps 1. Assemble the RPi PCBA into the case. 2. Insert Imaged SD card into SD card slot 3. Connect OBD/ENET cable to ENEt port on RPi, Connect Micro USB cord into the Micro USB port on RPi, and standard USB plug into the vehicles USB port 4. Set up phone hotspot with SSID bootmod3, password bootmod3 5. Turn on the ignition and wait for the phone to show hotspot connection 6. Launch the bm3 app to make sure app can read the vehicles VIN and shows a connection. (for connection troubleshooting click here https://bootmod3.atlassian.net/wiki/...roubleshooting) Once the OBD Agent is working it's time to mount it somewhere inconspicuous. Some people like to leave it in the center console or mount it under the steering column, but I choose to mount mine under the driver's seat for two reasons. I wanted to easily be able to remove it for dealer visits, and I didn't want it taking up space in the center console. These are the installation steps. 1. Run OBD/ENET cable from OBD port, under the door sill trim, and under the driver's seat. 2. Remove USB port trim panel in center console using a trim tool. 3. Run Micro USB/USB cord between the carpet and base of center console from the rear and up into the console cavity. 4. Pull USB cord up with enough length to plug into the port 5. Clip USB port trim panel back into place 5. Using Velcro tabs, attach RPi in case to the floor vent duct under the driver's seat 6. Make ENET and micro USB connections to the RPi unit and arrange cables to be out of the way. 7. Turn on ignition to ensure unit power on. 8. Check hotspot and bm3 OBD agent connection success. DONE! Pics of the install below. PRO TIP!! For iPhone and if you are doing this at your home garage, make sure your phone is disconnected from your home WiFi. Go to Settings - WiFI - Click the "i" beside the network you are connected to - click "Forget this network. Keep WiFi on as it needs to be on for hotspot to work. PRO PRO Tip: Ok so I haven't verified this but it seems that it would work. I have an extra WiFi router so I'm going to use it to set up a new home network with SSID bootmod3 and password bootmod3. I should be able to connect my phone and OBD agent to this network and be able to flash without setting up the hotspot through my phone. I'll report back on if this works or not.
__________________
2014 F30 335i, M-Sport, 6MT, V804s, custom exhaust, CTS Turbo Intake & IC, FTP CP, VRSF DP, TMS Strut Brace, BM3 Stg 2, AEM WMI, H&R Sport Springs (381 whp, 429 wtq on Cali 91oct before WMI). SPI Films Blog/DIY Vids Last edited by JaredG_F30; 10-14-2019 at 07:01 AM.. |
Appreciate
35
deepghosh32.50 akgambino271.50 terryd5150507.00 the dope steez404.00 kevinjt151.50 BMW DIY Guy3075.00 FSociety3812.50 Rondavouz110.00 Tchao333.50 Chicken_Joe606.00 ChillVibeF3016.50 Sniper10153.00 gbux20.50 dr.roro195.50 skier_du147.50 ratedrkstevo28.00 Rokoz294.50 M2Rush82.50 wjjkoevoets1164.00 n55silverado12.00 doodlebro121.00 Dheeth-G80225.50 upsidedownfunnel1999.00 ronanz1819.50 hybris204.50 Benjt27.50 danieliskander45.50 mlev370.00 KjPerry17.50 6SpeedCrewCab44.00 pw0n43.00 aps335.50 lemonchicken250.50 DMM26.00 pynacl64.50 |
04-09-2018, 03:58 PM | #2 |
First Lieutenant
115
Rep 340
Posts |
Good luck it man.. Hope it work out for you
|
Appreciate
1
JaredG_F301106.00 |
04-09-2018, 08:42 PM | #3 |
Captain
404
Rep 808
Posts |
Awesome, looking forward to seeing how you route the power cable, also how you plug the OBD cable into the port without it being too obtrusive. I'm wondering if a 90 degree OBD-ENET cable exists?
|
Appreciate
0
|
04-09-2018, 08:55 PM | #4 |
Captain
629
Rep 965
Posts
Drives: 2016 F36 435x MSport
Join Date: Oct 2017
Location: Hartford, CT
|
Been using a DIY since i bought BM3 earlier this year Works like a charm.
FYI you wont really need the heatsink. RPi runs plenty cool, and you wouldn't need to overclock it anyway
__________________
2010 Mazda RX8 - Sold (11/17)
2016 BMW 435xi GC - Current |
Appreciate
4
|
04-09-2018, 09:06 PM | #5 | |
Captain
629
Rep 965
Posts
Drives: 2016 F36 435x MSport
Join Date: Oct 2017
Location: Hartford, CT
|
Quote:
__________________
2010 Mazda RX8 - Sold (11/17)
2016 BMW 435xi GC - Current |
|
Appreciate
3
|
04-09-2018, 09:16 PM | #6 | |
Captain
404
Rep 808
Posts |
Quote:
|
|
Appreciate
0
|
04-10-2018, 11:49 AM | #8 |
First Lieutenant
152
Rep 352
Posts |
Nice, subbed
__________________
__________________ 335i EB RWD | ///M Sport Pkg | BMS Intake | M Performance Exhaust | ER Catless Downpipe | ER FMIC | ER Charge pipe | CF Aero | 19" Black M4 Wheels | Candy Orange ///M Brake Calipers | ///M Steering wheel | ///M Metal Pedals | Euro Spec - LCI Taillights |
Appreciate
0
|
04-12-2018, 09:40 AM | #9 |
Brigadier General
3075
Rep 3,022
Posts
Drives: 2019 M2 Competition
Join Date: Jan 2017
Location: Maple Valley WA
|
This is really cool my friend! Well done and absolutely interested for my AA tune as well, though running an android phone. 8)
__________________
Check out my BMW DIY Channel on YouTube! E, F and G series projects from Active Autowerke, Bimmertech, Kies Motorsports, AvinUSA, Karbonius Composites and more!
** YouTube BMW DIY Guy ** 'Nimona' G87 M2 Build Thread 'Lillith' F87 M2 Competition Build Thread |
Appreciate
0
|
04-12-2018, 10:56 AM | #10 |
IG @bmwF9xG80
3813
Rep 7,593
Posts
Drives: G80 M3, X4M, G07 X7m50
Join Date: Apr 2012
Location: NYC to NJ to Orlando FL
|
Awesome BM3 the Platform of the Fxx series and Future BMW's
Amazing how ProTuning Freaks allows you to openly and freely run their agent with DIY too. Heck you need to pay for bluetooth kit $140+ $30 app for the piggyback and other flash only works on Android with a $50+ cable.
__________________
60-130mph 6.5s X4M #HCP
60-130mph 5.0s G80 M3 #OrlandoAutowerks Sauce IG: @bmwF9XG80 |
Appreciate
0
|
04-12-2018, 11:47 AM | #11 | |
Lieutenant Colonel
1106
Rep 1,499
Posts |
Yep...very cool of them.
So I received my RPi3 B+ today. Over my lunch break, I imaged the firmware file onto the micro SD card. Stuck it in my RPi and powered it up. It didn't connect to my phones hot spot (SSID: bootmod3, password: bootmod3). I'm trying to troubleshoot the issue, but I'm thinking it may be due to the newer B+ version of RPi 3. I"m not sure if the current OBD agent firmware supports the newer B+ version. https://www.raspberrypi.org/forums/v...ic.php?t=58151 I'm "prepping" the SD card now with a reformat, then going to write the image file back to the card. I'll bootup the RPi with a monitor plugged in to see if it's booting. If it doesn't boot then I'll probably see if I can return the B+ for a standard RPi 3. Quote:
__________________
2014 F30 335i, M-Sport, 6MT, V804s, custom exhaust, CTS Turbo Intake & IC, FTP CP, VRSF DP, TMS Strut Brace, BM3 Stg 2, AEM WMI, H&R Sport Springs (381 whp, 429 wtq on Cali 91oct before WMI). SPI Films Blog/DIY Vids |
|
Appreciate
1
FSociety3812.50 |
04-12-2018, 11:57 AM | #12 | |
Colonel
1032
Rep 2,382
Posts |
Quote:
__________________
2013 F30 328i: MHI Big Turbo, GFB DV+, Mishimoto CAI, ER TIC/CP/Catless DP, AWE Touring Quad Exhaust w/ Resonated Midpipe, NGK LI Plugs, BM3 with PTF Stage 2 91 AGG Tune, Fuel-it Stage 2 LPFP, Solowerks S1 Coilovers, and DEPO/M-Sport Retrofit |
|
04-12-2018, 12:08 PM | #13 |
IG @bmwF9xG80
3813
Rep 7,593
Posts
Drives: G80 M3, X4M, G07 X7m50
Join Date: Apr 2012
Location: NYC to NJ to Orlando FL
|
hardparker is running an RPI too
__________________
60-130mph 6.5s X4M #HCP
60-130mph 5.0s G80 M3 #OrlandoAutowerks Sauce IG: @bmwF9XG80 |
Appreciate
1
JaredG_F301106.00 |
04-12-2018, 12:22 PM | #14 | |
Lieutenant Colonel
1106
Rep 1,499
Posts |
Cool man thanks!! I'm actually using a PC running Windows 10. I used the SD card formatter from the sdcard.org page (https://www.sdcard.org/downloads/formatter_4/) which is recommended, but evidently, after reading more, it doesn't matter if you image the SD card b/c it just overwrites it anyway. I'm using win32diskimager to image the SD card. If this doesn't work I'm going to load NOOBS and see if it boots. If it boots with NOOBS then I'll know its an issue with the bm3 firmware and compatibility with RPi 3 B+. Then I'll have to source a standard RPi 3 B (not B+).
Quote:
__________________
2014 F30 335i, M-Sport, 6MT, V804s, custom exhaust, CTS Turbo Intake & IC, FTP CP, VRSF DP, TMS Strut Brace, BM3 Stg 2, AEM WMI, H&R Sport Springs (381 whp, 429 wtq on Cali 91oct before WMI). SPI Films Blog/DIY Vids |
|
Appreciate
0
|
04-12-2018, 12:31 PM | #15 |
Lieutenant Colonel
1106
Rep 1,499
Posts |
BunkerJ So I powered it up after imaging the firmware again, with my monitor connected to the HDMI port, and it gets stuck on the rainbow screen with lightning bolt icon in the top right corner. Evidently, this indicates that the boot code is too old.
"If you have one of the latest PI 3B+ which won't boot and it keeps stuck on the rainbow screen, while also displaying the under voltage (lightning bolt) icon, and/or the red LED flashing then you are simply are using boot code that is too old. Please download the very latest version of Raspbian, or do an upgrade to it." https://www.raspberrypi.org/forums/v...ic.php?t=58151 I just pulled the trigger on a standard RPi 3 which I should get Saturday. I'll report back when I get it in.
__________________
2014 F30 335i, M-Sport, 6MT, V804s, custom exhaust, CTS Turbo Intake & IC, FTP CP, VRSF DP, TMS Strut Brace, BM3 Stg 2, AEM WMI, H&R Sport Springs (381 whp, 429 wtq on Cali 91oct before WMI). SPI Films Blog/DIY Vids |
Appreciate
0
|
04-12-2018, 01:08 PM | #16 | |
Colonel
1032
Rep 2,382
Posts |
Quote:
__________________
2013 F30 328i: MHI Big Turbo, GFB DV+, Mishimoto CAI, ER TIC/CP/Catless DP, AWE Touring Quad Exhaust w/ Resonated Midpipe, NGK LI Plugs, BM3 with PTF Stage 2 91 AGG Tune, Fuel-it Stage 2 LPFP, Solowerks S1 Coilovers, and DEPO/M-Sport Retrofit |
|
Appreciate
0
|
04-12-2018, 01:14 PM | #18 |
Colonel
1032
Rep 2,382
Posts |
Also, I've put together an Amazon list located here: http://a.co/ahypNm2
I've listed a 16GB SDCard. The minimum is 8GB, but I recommend 16GB to give wiggle room for future updates and capabilities (i.e. PTF adding a coding platform to this as well, for coding other things like lights, chime, etc.) I've listed in all the RP3 Model B, enclosure (You could really buy any, but this is likely tucked away, so who cares about looks), SD Card (mentioned above), ENet Cable (If you need one), and a Micro B cable to power (You very likely have a spare lying around. For those wondering, there is two ways of tucking this thing away. You can either use the panel under the steering wheel or glovebox OR you can hid it in the center console. I did mine in the panel below the steering wheel, as this was easiest. I ran a USB cable from a car adapter that I plugged into the plug under the glovebox (If you didn't know you had one there, now you do) and ran it through the trim, under the radio, and into the device. I ran the OBDII cable straight up into the area as well. If you want to move the plug completely out of the way, you can unclip the OBDII plug and just push it back up into the panel for a cleaner look. I would like to look into a 90 degree cable as well, for those not wanting to push the OBDII port up into the panel.
__________________
2013 F30 328i: MHI Big Turbo, GFB DV+, Mishimoto CAI, ER TIC/CP/Catless DP, AWE Touring Quad Exhaust w/ Resonated Midpipe, NGK LI Plugs, BM3 with PTF Stage 2 91 AGG Tune, Fuel-it Stage 2 LPFP, Solowerks S1 Coilovers, and DEPO/M-Sport Retrofit |
Appreciate
0
|
04-12-2018, 01:16 PM | #19 | |
Colonel
1032
Rep 2,382
Posts |
Quote:
You can run the hotspot and use USB tethering from the phone to the device as well. All my iOS guys I have, I make them run USB tethering first now to ensure the device works and then we move to hotspot troubleshooting. If USB tethering doesn't work after configuring the hotspot, then you have an issue.
__________________
2013 F30 328i: MHI Big Turbo, GFB DV+, Mishimoto CAI, ER TIC/CP/Catless DP, AWE Touring Quad Exhaust w/ Resonated Midpipe, NGK LI Plugs, BM3 with PTF Stage 2 91 AGG Tune, Fuel-it Stage 2 LPFP, Solowerks S1 Coilovers, and DEPO/M-Sport Retrofit |
|
Appreciate
0
|
04-12-2018, 01:20 PM | #20 | |
Lieutenant Colonel
1106
Rep 1,499
Posts |
OK cool. I went ahead and changed the name of my iphone to "bootmod3" and password to "bootmod3". Evidently, people have had issues connecting the RPi to wifi tether if the SSID had an apostrophe, like "Jared's iPhone".
Quote:
__________________
2014 F30 335i, M-Sport, 6MT, V804s, custom exhaust, CTS Turbo Intake & IC, FTP CP, VRSF DP, TMS Strut Brace, BM3 Stg 2, AEM WMI, H&R Sport Springs (381 whp, 429 wtq on Cali 91oct before WMI). SPI Films Blog/DIY Vids |
|
Appreciate
0
|
04-12-2018, 03:56 PM | #21 | |
Colonel
1032
Rep 2,382
Posts |
Quote:
All lowercase of course. iPhone is just not fun when it comes to this lol. I setup a Galaxy Tab E and mounted it in my car. Host the hotspot there so I have constant dashboard available.
__________________
2013 F30 328i: MHI Big Turbo, GFB DV+, Mishimoto CAI, ER TIC/CP/Catless DP, AWE Touring Quad Exhaust w/ Resonated Midpipe, NGK LI Plugs, BM3 with PTF Stage 2 91 AGG Tune, Fuel-it Stage 2 LPFP, Solowerks S1 Coilovers, and DEPO/M-Sport Retrofit |
|
Appreciate
0
|
04-12-2018, 08:11 PM | #22 | |
Major
362
Rep 1,206
Posts |
Quote:
|
|
Appreciate
0
|
Post Reply |
Bookmarks |
|
|