12-06-2018, 09:19 PM | #287 |
///M SubDriver
1820
Rep 2,779
Posts
Drives: 2017 M3, 2020 X7 40i
Join Date: Jul 2016
Location: DMV
|
Ok, guys I actually got BT working with the Pi and my iPhone. Although, it still does not exactly work the way I want it to work. Specifically, I still can't get the iPhone to use BT and WiFi at the same time. But, I will post what I did so that those with a bit more programming experience with the Pi can possibly chime in as well.
Apparently, in order for the iPhone to recognize the BT from the Pi, you need to use BLE which is Bluetooth Low Energy, which is a slightly different BT protocol from standard BT. So here is what I did (this assumes you have done all of the stuff that meltbox posted above to update your Pi with the latest BT software). 1. First, turn on BLE with the following command: sudo hciconfig hci0 leads 0 If you want to later turn off BLE use the command: sudo hciconfig hci0 leads 3 (the 0 indicates connectable, the 3 indicates non connectable) 2. Second, pair the Pi to the iPhone (type the following, hitting enter after each line): a) sudo bluetoothctl (turns on BT control utility on the Pi) b) power on c) agent on d) scan on This scans for any BLE devices, make sure your iPhone is in discovery mode. You should see the mac address and name of any BT device that is close, including your phone. If you don't see the name of your phone next to a mac address, then you can go to your phones settings to find your BT mac address (my phone name showed up next to the mac address) e) scan off (to stop scanning for new BT devices f) pair AA:BB:CC:EE:FF:GG (you will use the BT mac address from your phone that you obtained in step d above) From here you should see a notice on your phone if you want to pair with your Pi. After you accept the request, you should see your Pi (mine is named bootmod3) show up in your list of BT devices. g) exit (to exit the BT control utility on the Pi) Other useful commands while you are still in the BT utility are: paired-devices (will list all devices that are paired to your Pi) remove AA:BB:CC:EE:FF:GG (will remove a paired device from your Pi) To get the Pi to connect to your phone via BT, you must turn on your personal hotspot. Make sure you don't have your personal hotspot configured to connect to your Pi via WiFi. If you do, the Pi will connect via WiFi instead of BT (you can also turn off WiFi on your phone just to be sure). It will take a few seconds, but eventually you should see a notice at the top of your phone that says "Personal Hotspot: 1 Connection" Then when you go to your BT settings, you will see your Pi in your list of BT devices will be connected. Your Pi should remember the BT settings from the above steps so each time you turn on your Pi and have your Personal Hotspot turned on, your iPhone will automatically connect to the Pi via BT. I tested this on my car and my Phone was able to connect to the agent via BT, verified on the BM3 App login screen. After I logged in (my phone was using cellular data, not my home Wifi - I will get to that in a minute), I had access to all BM3 functions. You can also test your connectivity to the agent without your ENET cable being attached to your car and agent - you will just see "OBD AGENT DETECTED - VIN UNAVAILABLE" on the BM3 app login screen. I did not flash anything, but I did read the diagnostic codes to verify the communication worked and it did as expected. I don't have any reason to believe that datalogging, flashing or any other BM3 app functionality would not work, but I did not test anything else at the time of this post. So here is the rub... The BT pairing only works using the Personal Hotspot functionality on the iPhone. The Personal Hotspot can only connect via one method at a time: WiFi, BT or USB. This is why my phone could not be connected to my home wifi network at the same time it is connected to the agent via BT. This also sucks for me since I want my phone to connect to my car via WiFi (for CarPlay) AND to the agent via BT - which won't work. However, multiple bluetooth devices can still be connected to the iPhone. In my case, my Apple Watch remained connected to my iPhone via BT at the same time with the agent. Hope this helps. One advantage of using BT is that it uses less power than WiFi. If someone else with more Pi programming experience can figure a way to connect via BT without using the iPhone Personal Hotspot functionality (like how BT headphones or the Apple Watch connects via BT) that would be great. My search on the net did reveal that using the correct BT protocol (specifically one that is approved by Apple) should allow the Pi to connect via BT using different protocols. But I am at the limit of my Pi BT programming ability - at least for now ....
__________________
///M3 COMPETITION 6MT - 2017 F80 Smoked Topaz Metallic
BM3 / MP-HAS / GC Camber Plates / Carbonstructure Interior X7 XDrive 40i ///M-SPORT - 2020 G07 Arctic Grey Metallic X3 XDrive 30i - 2019 G01 Mineral White (wife's) / 128i 6MT - 2009 E82 Jet Black (son's) Last edited by jmciver; 12-26-2018 at 10:47 PM.. |
Appreciate
0
|
12-06-2018, 09:24 PM | #288 |
Private First Class
41
Rep 170
Posts |
Thanks! This may actually fix my BT problem as well. I always had the phone losing BT after a few mins and only being able to get the pi on wifi after that. It may be the phone was going to low power on the connection or something. I will try and report back. I hadn't had time to look at it myself.
EDIT: Misread, never mind I have no solution at this time. I've also been trying to get a travel router to work with my phone but no dice so far. I need more time to figure that one out. That's a really annoying restriction with iPhones though. Last edited by meltbox; 12-06-2018 at 09:31 PM.. |
Appreciate
0
|
12-06-2018, 10:49 PM | #289 |
///M SubDriver
1820
Rep 2,779
Posts
Drives: 2017 M3, 2020 X7 40i
Join Date: Jul 2016
Location: DMV
|
JaredG_F30, are you able to use your laptop with your agent when both your agent and laptop are on your home Wifi network? When I was playing around with the BT stuff, I decided to turn on the WiFi on my agent so that it could connect to my home WiFi network. When the agent is connected to my home Wifi and my phone is connected to my home wifi, I can use the BM3 app on my phone and it detects the agent without issue (I even loaded the BM3 app on my iPad with the same good results). However, when I use my laptop, going to the Bootmod3.net website, my laptop will not see the agent, even though my laptop and the agent are on the same wifi network.
I thought this should work. I did notice the app version for bootmod3.net is 42, while the BM3 app version for the phone/ipad is 41 (and the agent software is also 41). Could that be the reason it is not working on my laptop?
__________________
///M3 COMPETITION 6MT - 2017 F80 Smoked Topaz Metallic
BM3 / MP-HAS / GC Camber Plates / Carbonstructure Interior X7 XDrive 40i ///M-SPORT - 2020 G07 Arctic Grey Metallic X3 XDrive 30i - 2019 G01 Mineral White (wife's) / 128i 6MT - 2009 E82 Jet Black (son's) |
Appreciate
0
|
12-07-2018, 07:43 AM | #290 | |
Lieutenant Colonel
1104
Rep 1,499
Posts |
I've never tried that so I'm not sure. Once I got the agent up and running I haven't used my laptop at all.
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
|
12-07-2018, 09:41 AM | #291 |
Colonel
962
Rep 2,651
Posts |
I get "No default controller available" when attempting to scan for nearby BT devices.
__________________
2016 340i xDrive - BM3 Stage 2 93 OTS - xHP Transmission Tune Stage 2 - B58TU HPFP - Bilstein B14 - VRSF Catless DP - Kyostar CAI
|
Appreciate
0
|
12-07-2018, 12:08 PM | #292 | |
Colonel
962
Rep 2,651
Posts |
Quote:
Now to figure out WiFi + BT simultaneously. Make sure BT trusted device is in there as well so you won't run into any issues.
__________________
2016 340i xDrive - BM3 Stage 2 93 OTS - xHP Transmission Tune Stage 2 - B58TU HPFP - Bilstein B14 - VRSF Catless DP - Kyostar CAI
|
|
Appreciate
0
|
12-07-2018, 01:56 PM | #293 |
Colonel
962
Rep 2,651
Posts |
I had a quick thought. Instead of wiring up a power source for the WiFi agent, I was thinking of purchasing a USB power pack like this one and hide the agent and pack somewhere near the OBDII port in the car. The agent uses such low power that I think it would work reliably:
https://www.amazon.com/gp/product/B0...d_i=7073960011
__________________
2016 340i xDrive - BM3 Stage 2 93 OTS - xHP Transmission Tune Stage 2 - B58TU HPFP - Bilstein B14 - VRSF Catless DP - Kyostar CAI
|
Appreciate
0
|
12-07-2018, 02:37 PM | #294 | |
Lieutenant
121
Rep 470
Posts |
Quote:
__________________
Current mods
Rockford Fosgate P3 // JBL MS-A5001 // MiniDSP Ultra Racing Strut Brace // AFe Pro Dry S // PS2 // Custom Inlet // DV+ // FTP Boost Pipes // VRSF Race IC // VRSF Downpipe // ECUTek Protune @ 5280' |
|
Appreciate
0
|
12-07-2018, 03:20 PM | #295 | |
First Lieutenant
227
Rep 325
Posts
Drives: 2016 F36
Join Date: Mar 2017
Location: CT
|
Quote:
BM3 OBD WiFi Agent and power switch https://f30.bimmerpost.com/forums/sh....php?t=1562365
__________________
◊ 2016 F36 xDrive N26 ◊ Black Sapphire Metallic ⁞ Dakota Black ◊
║ VRSF HD FMIC ║ ER DP custom paint ║ AWE cat back Exhaust Suite ║ NGK Plugs ║Bootmod3 Stage 1 93 ║ GFB DV+ ║ BMS 10mm Front ⁞ 12mm Rear Spacers ║ P Style BSM Rear Spoiler ║ Smoked Front Reflectors ║ Madico Onyx 20 Tint ║ LCI Lighted Trim Bezel ║ Opti-Coat Pro+ ║ |
|
Appreciate
0
|
12-20-2018, 05:45 PM | #296 |
Private
12
Rep 55
Posts |
So I finally finished building my pi and etched the software on it. Loaded up and its at a login screen. Its not accepting my bm3 username and pass because thats an email address. Its also not taking bootmod3 as a username and pass. Am I missing something? Im sorry there is a ton of comments and sifting through all of the to see if anyone had this problem is gonna take forever.
This is a completely new fresh system. With the newest firmware from bm3s help section. Edit: Disregard im an idiot. I had the pi at my desk attached to a monitor. Once I had the Enet cable plugged into the car and into the pi with my bootmod3 hotspot everything was fine. Last edited by wurstrocket; 12-20-2018 at 06:10 PM.. |
Appreciate
0
|
12-26-2018, 09:28 PM | #297 | |
Enlisted Member
16
Rep 32
Posts |
Quote:
Thanks! |
|
Appreciate
0
|
12-27-2018, 11:52 AM | #298 | |
///M SubDriver
1820
Rep 2,779
Posts
Drives: 2017 M3, 2020 X7 40i
Join Date: Jul 2016
Location: DMV
|
Quote:
I am also using a Pi B so I am not sure if the B+ variant is potentially causing your update issues...
__________________
///M3 COMPETITION 6MT - 2017 F80 Smoked Topaz Metallic
BM3 / MP-HAS / GC Camber Plates / Carbonstructure Interior X7 XDrive 40i ///M-SPORT - 2020 G07 Arctic Grey Metallic X3 XDrive 30i - 2019 G01 Mineral White (wife's) / 128i 6MT - 2009 E82 Jet Black (son's) |
|
Appreciate
0
|
01-09-2019, 12:25 AM | #299 |
First Lieutenant
97
Rep 373
Posts |
hi All
i have manually downloaded the latest obd agent software, when i am using win32 to write the image file to the D drive(memory card for the agent) do i just select d drive or do i have to specially copy it over the old firmware? secondly do i need to do this process or will the app automatically update the agent with out having to do this manual process thanks
__________________
'14 F20 M135i EWG FBO:// INJEN INTAKE // PURE INLET// TURBOSMART BOV DUAL PORT // //CSF INTERCOOLER // ER CP // SNOW S2.5 METH KIT // B58TU HPFP // NGK 97506 // ER DP // TMSS MID PIPE //MPE // MPBBK // UR STRUT BRACE // BM3 CUSTOM JORDAN E85 TUNE // XHP STAGE 3 // |
Appreciate
0
|
01-09-2019, 09:55 PM | #300 | |
///M SubDriver
1820
Rep 2,779
Posts
Drives: 2017 M3, 2020 X7 40i
Join Date: Jul 2016
Location: DMV
|
Quote:
__________________
///M3 COMPETITION 6MT - 2017 F80 Smoked Topaz Metallic
BM3 / MP-HAS / GC Camber Plates / Carbonstructure Interior X7 XDrive 40i ///M-SPORT - 2020 G07 Arctic Grey Metallic X3 XDrive 30i - 2019 G01 Mineral White (wife's) / 128i 6MT - 2009 E82 Jet Black (son's) |
|
Appreciate
0
|
01-14-2019, 06:29 PM | #302 |
///M SubDriver
1820
Rep 2,779
Posts
Drives: 2017 M3, 2020 X7 40i
Join Date: Jul 2016
Location: DMV
|
No. All of my subsequent updates happened automatically via the app.
__________________
///M3 COMPETITION 6MT - 2017 F80 Smoked Topaz Metallic
BM3 / MP-HAS / GC Camber Plates / Carbonstructure Interior X7 XDrive 40i ///M-SPORT - 2020 G07 Arctic Grey Metallic X3 XDrive 30i - 2019 G01 Mineral White (wife's) / 128i 6MT - 2009 E82 Jet Black (son's) |
Appreciate
1
stroker1562.50 |
01-16-2019, 10:17 PM | #303 |
Private First Class
2
Rep 120
Posts |
Thanks for doing all the leg work on this guys!
I have everything in my Amazon cart and just wanted to clarify one thing. For those running on the Pi 3 B+, are the automatic updates taking?
__________________
RB Turbos//JB4 G5 ISO Flashed//Alpina B3 Flash//AR Downpipes//ER FMIC//ER Chargepipe//AWE Blow Valves//AFE Sealed Intake//BMS X Meth//AST 4100's//Forgestar F14s
|
Appreciate
0
|
01-28-2019, 09:02 AM | #304 |
Captain
372
Rep 936
Posts |
I've noticed a trend with connecting bm3 to my car.
In order to get the device to read the OBD connection I need to: 1. Plug the device with power. 2. Navigate to my "Hotspot" setting on my iphone 3. Wait until I see the device connected to my iphone (blue dot on top left of screen) 4. WAIT Again for blue dot to disappear, THEN reappear. 5. NOW open up the app and it will connect with the OBD. Is this consistent with anyone else? I've tried opening up the app after I see it connected to my hotspot the first time, but it doesnt read the OBD. Besides this it's been running smooth! I've even updated my firmware via cellular. It got stuck on "Restarting" so I just closed the app and reopened it lol. Appreciate the OPs DIY very much.
__________________
Hi
|
Appreciate
0
|
01-28-2019, 11:09 AM | #305 | |
Lieutenant Colonel
1104
Rep 1,499
Posts |
What device are you using?
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
|
01-28-2019, 11:59 AM | #306 |
Colonel
962
Rep 2,651
Posts |
Yeah happens to me as well. Sometimes I have to restart my agent to get it to work.
__________________
2016 340i xDrive - BM3 Stage 2 93 OTS - xHP Transmission Tune Stage 2 - B58TU HPFP - Bilstein B14 - VRSF Catless DP - Kyostar CAI
|
Appreciate
0
|
01-28-2019, 03:36 PM | #307 | |
Captain
372
Rep 936
Posts |
Quote:
Hello Sir, the Raspberry 3B from your original post (thank you again btw). Also what transmission do you have?
__________________
Hi
|
|
Appreciate
0
|
01-29-2019, 09:11 AM | #308 |
Lieutenant Colonel
1104
Rep 1,499
Posts |
I mean what handheld device? iphone, galaxy s, etc.?
__________________
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
|
Post Reply |
Bookmarks |
Thread Tools | Search this Thread |
|
|