nice. thanks!
'97 M3
I haven't flashed my openOBC in a while and I'm having a problem with Flashmagic telling me that it failed to auto baud. Any ideas?
'97 M3, Estoril blue, 2 dr, euro 6-spd, EFR 9180 divided T4 .92 IWG, RK tuning, CP 8.5:1 pistons, Eagle rods, Schrick cams, L19 11 mm ARP studs, O-ringed block, Supertech stainless/inconel valves, Supertech springs & Ti retainers, ported head, S54 oil pump/pan, 80 lb. injectors, OBD1 intake manifold, Steedspeed twin scroll T4, 3.5" SS exhaust, eBoost2 EBC, HFS-4 W/M injection, AEM Failsafe, Zeitronix data logger, Racelogic TC, OpenOBC w. ethanol %, Ireland Eng. engine mounts, UUC black tranny mounts w. enforcers, UUC twin disc feramic, ARC-8's, MCS 2-ways, Z3 rack, Rallyroad strut bar, X brace, Eibach sway bars, Ground Control LCAB bushings, Bimmerworld RTAB's, Powerflex subframe bushings, 210 4-clutch LSD, Stoptech BBK, titainium shims, steel braided lines, brake cooling ducts.
Step 1:
The processor should be "LPC1769" (it will be under the ARM Cortex section)
COM Port is whatever shows up in device manager when you plug it in.
Baudrate 115200
Interface None (ISP)
Oscillator should be 12
Step 2:
Check "Erase all Flash+Code Rd Prot"
Step 3:
select the new hex file
Step 4:
I just leave blank
Step 5:
Click start
If that works now goto File->Save Settings. This will save all the settings you just setup to an .fms file. Next time you go to program you should be able to File->Open Settings.
I think these are the correct settings. I am using lpc21isp on a linux box so my settings are a little different.
I got that issue sorted out. My computer some how lost the FTD USB driver.
I went in and changed a bunch of stuff but when I flashed my openOBC none of the changes where there. When I go back into the files in Codelite I can see all the changes are there so I threw the .elf and .hex files in the trash and now when I type in 'make' I get "make: *** [makefile:115: .elf ] Error 1".
I like your changes, I really just want 'oil press' to say 'Fuel press'.
'97 M3, Estoril blue, 2 dr, euro 6-spd, EFR 9180 divided T4 .92 IWG, RK tuning, CP 8.5:1 pistons, Eagle rods, Schrick cams, L19 11 mm ARP studs, O-ringed block, Supertech stainless/inconel valves, Supertech springs & Ti retainers, ported head, S54 oil pump/pan, 80 lb. injectors, OBD1 intake manifold, Steedspeed twin scroll T4, 3.5" SS exhaust, eBoost2 EBC, HFS-4 W/M injection, AEM Failsafe, Zeitronix data logger, Racelogic TC, OpenOBC w. ethanol %, Ireland Eng. engine mounts, UUC black tranny mounts w. enforcers, UUC twin disc feramic, ARC-8's, MCS 2-ways, Z3 rack, Rallyroad strut bar, X brace, Eibach sway bars, Ground Control LCAB bushings, Bimmerworld RTAB's, Powerflex subframe bushings, 210 4-clutch LSD, Stoptech BBK, titainium shims, steel braided lines, brake cooling ducts.
Hey so I'm finally in the mood to tackle updating my OBC which I have never done before, wish me luck. Just wanted to know since I downloaded both of your updated code releases, I'm assuming this one contains everything found in your first release correct?
And thank you so much for keeping this alive, for a long time I had the sinking feeling that this project was going to die, which would be a shame because as has already been stated there is so much potential for this. Cheers!
- - - Updated - - -
So everything went pretty smoothly, and I even edited the code for the blinking colon in the time. I haven't plugged it in my car yet, but I noticed this added Oil Pressure function in the memo, and now I am curious, does it actually read oil pressure? And why would someone want to change this to say fuel pressure? So far the only problem is the startup message which now says "openOBC 'git describ" on the long screen and "dev" on the smaller screen. Changing the startup message with the cfg file on the memory card is not having any effect.
The oil pressure function allows you to connect a VDO oil pressure sender to the OpenOBC. I already have an oil pressure gauge so I'm going to use it for fuel pressure instead.
You can change what the opening screen says in the CFG file on the micro SD card. The Dev is new, I don't care for it much either. You just have to find it in the openobc.cpp file and change it.
Last edited by chikinhed; 01-25-2017 at 02:23 AM.
'97 M3, Estoril blue, 2 dr, euro 6-spd, EFR 9180 divided T4 .92 IWG, RK tuning, CP 8.5:1 pistons, Eagle rods, Schrick cams, L19 11 mm ARP studs, O-ringed block, Supertech stainless/inconel valves, Supertech springs & Ti retainers, ported head, S54 oil pump/pan, 80 lb. injectors, OBD1 intake manifold, Steedspeed twin scroll T4, 3.5" SS exhaust, eBoost2 EBC, HFS-4 W/M injection, AEM Failsafe, Zeitronix data logger, Racelogic TC, OpenOBC w. ethanol %, Ireland Eng. engine mounts, UUC black tranny mounts w. enforcers, UUC twin disc feramic, ARC-8's, MCS 2-ways, Z3 rack, Rallyroad strut bar, X brace, Eibach sway bars, Ground Control LCAB bushings, Bimmerworld RTAB's, Powerflex subframe bushings, 210 4-clutch LSD, Stoptech BBK, titainium shims, steel braided lines, brake cooling ducts.
Thanks for the reply!
So ya I actually did figure out how to get rid of the "dev" and in the process I realized that I also have to change the message type to "Custom" on the mem card. I couldn't think of anything clever to replace "dev" with so I just made it blank.
Since I don't have an oil pressure sender or I'm assuming anything that would communicate fuel pressure, do you know how I could just remove this screen?
- - - Updated - - -
So one more thing, just plugged it back in my car and noticed the RANGE button now just fills the screen with numbers.
Try running a 'make clean' or rebuild all. Then try to compile again.
Just as a troubleshooting step does test that it can compile before making any changes first, just to test the compiler and toolchain.
If all else fails you could send me your changes and I can send you back a hex file, as a short term solution.
I am exited to see the FlexFuel code in action!
- - - Updated - - -
Yup, the newer version has all of the features of the first one.
I will probably delete the 'dev' string from the next version. I had just added it to remind me which branch I was working with when trying to get the icons working.
I hear the blinking colon may be a bit uneven for now. I haven't actually tried it on my OpenOBC. I have just been enjoying finally having it installed in my car for now and thinking about what things I want to change next. I need to get my second OpenOBC built so I have a dev unit for the bench.
I was thinking about moving the "Oil Pressure" string to the SDcard so that it could be a generic Analog Input that could be reconfigured without recompiling.
Sorry this is my first post and I don't know if I should have introduced myself first.
This thread was a very interesting read for me, I think I've read about 50 pages last week.
I'm a software programmer (specialised in Web development) which also likes to play with rpi/arduino/PLC's (industrial 'arduino') and I own a 328i Coupe from '96.
My background is exactly why I'm so interested in this project.
Personally my goal is to create something for my car which is capable of GPS tracking, logging and accessing various functions from outside my car (using a web-interface or an ios/android app).
For logging I would like to create datalogs + (live) graphs which can be viewed from the browser. This is usefull for example when I let a friend or colleague borrow my car, now I'll be finally able to see if they don't drive like a *** (stomping on it when it's cold for example).
These are just ideas, but I found this project so I think the (for me) most difficult part is already done (cracking the BMW packets).
What I just need to do is
- Start using openobc at all... Currently I have the stock 18 button OBC in my e36. Is there a link for all the parts I need? I saw a csv but it seems hard to order all the parts seperately? Please help!
- create a webinterface
- connect my arduino to this OBC and exchange data
- use 3g/4g to transmit data to my servers
I hope this is the right place to post this, if not let me know please.
And perhaps there could be also on the SD card a variable to specify a custom message for the 2nd screen as well!
Did you see my message about RANGE no longer working?
Did you start your car?
'97 M3, Estoril blue, 2 dr, euro 6-spd, EFR 9180 divided T4 .92 IWG, RK tuning, CP 8.5:1 pistons, Eagle rods, Schrick cams, L19 11 mm ARP studs, O-ringed block, Supertech stainless/inconel valves, Supertech springs & Ti retainers, ported head, S54 oil pump/pan, 80 lb. injectors, OBD1 intake manifold, Steedspeed twin scroll T4, 3.5" SS exhaust, eBoost2 EBC, HFS-4 W/M injection, AEM Failsafe, Zeitronix data logger, Racelogic TC, OpenOBC w. ethanol %, Ireland Eng. engine mounts, UUC black tranny mounts w. enforcers, UUC twin disc feramic, ARC-8's, MCS 2-ways, Z3 rack, Rallyroad strut bar, X brace, Eibach sway bars, Ground Control LCAB bushings, Bimmerworld RTAB's, Powerflex subframe bushings, 210 4-clutch LSD, Stoptech BBK, titainium shims, steel braided lines, brake cooling ducts.
Sure, that could be on the SD too.
About the RANGE, was the car running? I think there will be a really high number on the display when there is no fuel injector signal to measure. I don't think I have made any changes that would effect it, but I will check when I get home.
Edited to add:
Oh, wait RANGE. I was thinking of consum when remembering the really high number.
But I think it is because the OpenOBC needs to calculate the average fuel consumption with car moving before it can calculate a range value. Just try driving it a bit. Once it calculates a value for averageLitresPer100km the range calculation should look normal.
Last edited by xobloof; 01-25-2017 at 10:34 AM.
Confirmed, after I started moving it got reasonable. Perhaps something can be put in place like if value exceeds X display inf or n/a or something, or maybe just limit the floating values you know?
I also got to try out using my stalk, I am super happy about that because I had to do a lot of work to wire my car for the 18 button OBC. Currently it only goes back and forth between 2 options, and it unfortunately it can't go back and forth between for example different CONSUM screens. Personally I think it would be better if it was like the stock one whichcycles through all of the options and let's you even choose the order. I realize that is getting kind of fancy though. These are just ideas, not formal requests, we really appreciate everything you've done thus far.
Nice! Glad it is working.
Yeah, the way you describe the stalk button is correct for now. The way it currently works in code is there is a 'stack' of 'task' objects. When you go to a new task by pressing an associated button it does 1 of two things. If that task is already in the stack it just floats up to the top. If that task is not already on the stack it gets pushed onto the stack.
For now the stalk button just checks to see if there are at least 2 tasks on the stack. If so it just swaps the last 2. So it is kind of like a previous task button. Unfortunately this will not toggle between screens of a task (also as you mentioned).
I think the best way to tackle this would be to divide the tasks up so that each screen has its own task. This refactoring is totally possible, I just haven't tried to do it yet. It is a bit more work and when I wrote the current stalk code I was still just getting a feel for the code structure.
I would like to restore the factory stalk functionality where you can program in which screens it will scroll through. It will happen, just not sure when.
I think my next big project is going to be attempting to talk to the DME. I need to find a laptop with a serial port so I can get INPA going. Then I can start snooping on the bus myself. I took a trip to PickNPull yesterday to search for DMEs, but they had all been grabbed.
I would also like to attempt a CAN bus project. If anyone has any CAN devices they would like a driver for just holler. I thought I heard that someone was using an 8 thermocouple EGT box that has CAN.
Ya snooping around the DME and all of the other modules is super fun, I've used INPA a little bit but I found it confusing to get everything setup correctly. I've mostly used the other one for BMW, the name escapes me right now because it's been several months. But hey just to encourage your development I happen to have an old laptop with a serial I can ship to you with a fresh copy of XP, and I don't mind doing that for free. I just want to support any development I can and unfortunately I don't have much programming experience outside of a 1 year intro to Java course I took years ago. Just let me know!
Wow, that is very generous. Lets hold off for just a bit though, I may have one already lined up. And I did find a new in box copy of XP at work. I am really looking forward to getting on the bus, so to speak.
I bought my m3 in 2010 when this project was just starting out, but had to put it in storage because of space reasons. Then last September we bought a house so we finally had more than one parking spot. When I saw how far this project had come I was stoked. Especially when I saw that it was using an LPC1769. I have experience writing CAN applications (mostly j1939) for LPC2129 controllers at work, so this was an easy transition to make. It took me about a month to get all the parts and solder them all together. It was all done with an iron, except for the accelerometer which was done with a hot air gun.
I just wish the e36 had CAN bus, that would make it so much easier. My wife just got an '02 v70 XC and have been snooping the low speed CAN bus with a Teensy 3.5 logging to an SD card. Right now I am just writing a bunch of python scripts to help me parse through the messages and decode the data packets, but I haven't spent much time looking at the actual data yet.
This project would fit in very well with your goals. However right now I am not aware of anyone talking directly to the DME. So there is still work to do there.
However that being said, the OpenOBC would make an excellent gateway from an E36 to an internet connected platform. It is very expandable with headers broken out for SPI, I2C, CAN, UART, and USB host. All you have to do is write the code (a lot of code).
Here are links to the design files
http://openlabs.co/OSHW/openOBC-devboard-r2
Here is the PCB
http://openlabs.co/store/openOBC-devboard-r2.1-PCB
I don't know if there are plans for another run of the populated PCBs. But there are 4 raw PCBs in stock.
Mouser had almost all of the parts I needed. I had to go to ebay/amazon/NXP for the MC33660 ICs.
ETA:
Here are links to a mouser project that should get you most of the parts.
https://www.mouser.com/ProjectManager/ProjectDetail.aspx?AccessID=1762754b65
https://de.mouser.com/ProjectManager/ProjectDetail.aspx?AccessID=1762754b65
Last edited by xobloof; 01-28-2017 at 09:07 AM. Reason: added project manager links
Thank you plenty for the assistance, I'm glad i created an account here!
Today and tomorrow I have an off day from work so I have plenty of time to put into this project.
The shipping is $15 and the board is $17, but that's not much of an issue for me. I just thought it was funny :-)
I will order the parts and see if I can get a second hand OBC off ebay or something (don't wanna screw my original OBC up, + I can test my code outside of the car).
Have you got any further recommendations to get started? I have read the 'OpenOBC noobs pdf'. So I hope i've got it all covered.
I think I'm going to connect an Arduino or Rpi to this openobc board and let them do all the heavy lifting. Also I think it's easier to connect GPS, 3G, WiFi to Arduino than to this OpenOBC board am I correct? It's also a nice to have the 'smart' part seperated of the OpenOBC. OpenObc will just be an interface for the arduino-project then
I will be reading into low-levelcommunications as I'm mainly a high level programmer. But I like this stuff.SPI, I2C, CAN, UART, USB
Again thank you plenty and I hope we can keep this project alive because I think it has lots of potential!
I finally got to work on the openOBC and add the expansion board and hook up the flex fuel sensor. I was optimistic for it read the correct values for ethanol content and temperature but no such luck. I had the flex fuel sensor hooked up to an Arduino and it wasn't reading correctly on that so its most likely a faulty sensor. New one is ordered. Here are the pictures from the install. Thanks again to xobloof for making this happen!
Readings on the Arduino.....
Last edited by chikinhed; 02-12-2017 at 12:17 AM.
'97 M3, Estoril blue, 2 dr, euro 6-spd, EFR 9180 divided T4 .92 IWG, RK tuning, CP 8.5:1 pistons, Eagle rods, Schrick cams, L19 11 mm ARP studs, O-ringed block, Supertech stainless/inconel valves, Supertech springs & Ti retainers, ported head, S54 oil pump/pan, 80 lb. injectors, OBD1 intake manifold, Steedspeed twin scroll T4, 3.5" SS exhaust, eBoost2 EBC, HFS-4 W/M injection, AEM Failsafe, Zeitronix data logger, Racelogic TC, OpenOBC w. ethanol %, Ireland Eng. engine mounts, UUC black tranny mounts w. enforcers, UUC twin disc feramic, ARC-8's, MCS 2-ways, Z3 rack, Rallyroad strut bar, X brace, Eibach sway bars, Ground Control LCAB bushings, Bimmerworld RTAB's, Powerflex subframe bushings, 210 4-clutch LSD, Stoptech BBK, titainium shims, steel braided lines, brake cooling ducts.
What was the real percentage?
Verstuurd vanaf mijn SM-G935F met Tapatalk
'97 M3, Estoril blue, 2 dr, euro 6-spd, EFR 9180 divided T4 .92 IWG, RK tuning, CP 8.5:1 pistons, Eagle rods, Schrick cams, L19 11 mm ARP studs, O-ringed block, Supertech stainless/inconel valves, Supertech springs & Ti retainers, ported head, S54 oil pump/pan, 80 lb. injectors, OBD1 intake manifold, Steedspeed twin scroll T4, 3.5" SS exhaust, eBoost2 EBC, HFS-4 W/M injection, AEM Failsafe, Zeitronix data logger, Racelogic TC, OpenOBC w. ethanol %, Ireland Eng. engine mounts, UUC black tranny mounts w. enforcers, UUC twin disc feramic, ARC-8's, MCS 2-ways, Z3 rack, Rallyroad strut bar, X brace, Eibach sway bars, Ground Control LCAB bushings, Bimmerworld RTAB's, Powerflex subframe bushings, 210 4-clutch LSD, Stoptech BBK, titainium shims, steel braided lines, brake cooling ducts.
Yeah that's quite a difference. I thought maybe you are reading water content as additional % but with that content and also temperature offset something must be wrong indeed
Verstuurd vanaf mijn SM-G935F met Tapatalk
Sorry for being slightly off topic, but this seems the best place to get an answer I've been searching for since 2013
What kind of signal is the fuel consumption signal? I need to modify it to show the correct fuel consumption for my car (4cyl engine, 6cyl OBC). I probed it with my crappy scope, and struggled to get it to show much at all.
I've tried to get the OBC "flashed" into being a 4cyl OBC, but since 4cyl OBCs were so damn rare (only know of two, my original, and the one my friend recently acquired... bastard), I haven't been able to find anyone that even knows what I'm talking about. What interface would be used to re-configure it?
P.S. I know about the KVBR, but you can't set it below 750.
Thanks
Buy an OpenOBC and then you can adjust the constant to give you the correct reading. Mine was way off because of the big injectors I use, after adjusting its bang on.
'97 M3, Estoril blue, 2 dr, euro 6-spd, EFR 9180 divided T4 .92 IWG, RK tuning, CP 8.5:1 pistons, Eagle rods, Schrick cams, L19 11 mm ARP studs, O-ringed block, Supertech stainless/inconel valves, Supertech springs & Ti retainers, ported head, S54 oil pump/pan, 80 lb. injectors, OBD1 intake manifold, Steedspeed twin scroll T4, 3.5" SS exhaust, eBoost2 EBC, HFS-4 W/M injection, AEM Failsafe, Zeitronix data logger, Racelogic TC, OpenOBC w. ethanol %, Ireland Eng. engine mounts, UUC black tranny mounts w. enforcers, UUC twin disc feramic, ARC-8's, MCS 2-ways, Z3 rack, Rallyroad strut bar, X brace, Eibach sway bars, Ground Control LCAB bushings, Bimmerworld RTAB's, Powerflex subframe bushings, 210 4-clutch LSD, Stoptech BBK, titainium shims, steel braided lines, brake cooling ducts.
Bookmarks