THE LARGEST BMW 2-SERIES FORUM ON THE PLANET
2Addicts
2Addicts
BMW Garage BMW Meets Register Search Today's Posts Mark Forums Read
2Addicts | BMW 2-Series forum Technical Topics DIY and Coding Discussions Coding: Delay after folding mirrors

Post Reply
 
Thread Tools Search this Thread
      09-03-2015, 08:23 PM   #1
BoomWasabi
Private
24
Rep
87
Posts

Drives: M4
Join Date: Jan 2015
Location: NC

iTrader: (0)

Coding: Delay after folding mirrors

I have coded my car to open and close windows, mirrors and sunroof using CA and key fob. In general it works, but not quite like I want it.

Here is what I would like to achieve:

1. Whenever I lock the car using single press of the lock button on key fob, I'd like to fold the mirrors immediately.
2. If I keep holding the lock button, it should close windows and sunroof.
3. Optionally: similar behavior with CA. Touching the door handle for 1 second should lock the car and fold mirrors, holding it for longer than 1 second should close windows and sunroof.

Code:
KOMFORTSCHLIESSUNG_FB       aktiv
KOMFORTSCHLIESSUNG_PA       aktiv
ASP_BEIKLAPPEN_BEI_KOMFORTSCHLIESSEN    aktiv

KOMFORT_SCHLIESSEN          0

// delays between closing windows and roof
KOMFORT_SCHL_VORNE werte    15 (1500ms)
KOMFORT_SCHL_SHD werte      15 (1500ms)
Usually I want to keep my sunroof tilted. And 66% of the time my current settings work. I.e. car locks, mirrors fold, and sunroof remains tilted. But often it will also close the sunroof. Is there a separate value to set a delay between folding the mirrors and do the rest of the "convenient closing" stuff?
Appreciate 0
      09-03-2015, 08:38 PM   #2
pikcachu
Major General
pikcachu's Avatar
1398
Rep
5,262
Posts

Drives: M235i (F22 Red angel)
Join Date: Jul 2011
Location: undisclosed

iTrader: (1)

Quote:
Originally Posted by BoomWasabi View Post
I have coded my car to open and close windows, mirrors and sunroof using CA and key fob. In general it works, but not quite like I want it.

Here is what I would like to achieve:

1. Whenever I lock the car using single press of the lock button on key fob, I'd like to fold the mirrors immediately.
2. If I keep holding the lock button, it should close windows and sunroof.
3. Optionally: similar behavior with CA. Touching the door handle for 1 second should lock the car and fold mirrors, holding it for longer than 1 second should close windows and sunroof.

Code:
KOMFORTSCHLIESSUNG_FB       aktiv
KOMFORTSCHLIESSUNG_PA       aktiv
ASP_BEIKLAPPEN_BEI_KOMFORTSCHLIESSEN    aktiv

KOMFORT_SCHLIESSEN          0

// delays between closing windows and roof
KOMFORT_SCHL_VORNE werte    15 (1500ms)
KOMFORT_SCHL_SHD werte      15 (1500ms)
Usually I want to keep my sunroof tilted. And 66% of the time my current settings work. I.e. car locks, mirrors fold, and sunroof remains tilted. But often it will also close the sunroof. Is there a separate value to set a delay between folding the mirrors and do the rest of the "convenient closing" stuff?
maybe increase KOMFORT_SCHL_SHD to like 10 secs 10000ms that's why it's set to 3500 by default i guess...

also hex 15 is not 1500ms... it's 2100ms
Appreciate 0
      09-04-2015, 08:47 AM   #3
BoomWasabi
Private
24
Rep
87
Posts

Drives: M4
Join Date: Jan 2015
Location: NC

iTrader: (0)

Quote:
Originally Posted by pikcachu View Post
maybe increase KOMFORT_SCHL_SHD to like 10 secs 10000ms that's why it's set to 3500 by default i guess...
Thanks, will try.

Quote:
also hex 15 is not 1500ms... it's 2100ms
Duh!
Appreciate 0
      09-06-2015, 12:50 PM   #4
BoomWasabi
Private
24
Rep
87
Posts

Drives: M4
Join Date: Jan 2015
Location: NC

iTrader: (0)

Quote:
Originally Posted by pikcachu View Post
maybe increase KOMFORT_SCHL_SHD to like 10 secs 10000ms that's why it's set to 3500 by default i guess...
Ok, this did not help. ;-(

Played a little with the key fob and noticed this: if windows are not closed, then briefly hitting 'Lock' button will lock the car, fold the mirrors and move the windows up for about a half inch. Tried it a dozen of times, and it is pretty consistent. When the windows are closed, and the roof is fully open, then locking the car will cause the roof to move a little. If the roof is tilted, then it is a crapshot - could move it a little or close it all the way down.

I guess the 'Lock' button logic is defined something like this:
1. Lock the car and wait for KOMFORT_SCHLIESSEN time
2. Fold Mirrors and Check Windows
2.1. If windows down, start closing them. When closed wait for KOMFORT_SCHL_SHD time
3. If roof is not closed, start closing the roof.

So, if window are already closed than the KOMFORT_SCHL_SHD delay is ignored.
Appreciate 0
Post Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



All times are GMT -5. The time now is 04:13 PM.




2addicts
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
1Addicts.com, BIMMERPOST.com, E90Post.com, F30Post.com, M3Post.com, ZPost.com, 5Post.com, 6Post.com, 7Post.com, XBimmers.com logo and trademark are properties of BIMMERPOST