Bli medlem i Norsk elbilforening og støtt driften av Elbilforum. Som medlem får du i tillegg startpakke, medlemsfordeler og gode tips om elbil og lading. Du blir med i et fellesskap som jobber for mindre utslipp fra veitrafikken. Medlemskap koster 485 kroner per år. elbil.no/medlemskap

Sv: LEAF Manager - Android app til LEAF med klima-timerkontroll

Startet av BauDemo, onsdag 09. januar 2013, klokken 12:37

« forrige - neste »

hma

#60
Latest Ovms build is available here, it features:
- Control of external auxiliary (e.g. a Webasto) from "Valet Mode" button (pin 8 at 9X2).
  Pin is set auto off after 20 min.
- Door lock control (lock at pin 4 /RC1, unlock at pin 6/RC2)
- Control of airbag lamp status

To hook up the thing, one have to build a cable with a d9sub (female) in one end, and a molex-connector in the other end (if your car originally was equipped with RAC).
- Toyota Rav4 EV 2000 NiMH (06/2010), Tesla Model S75D (12/2018)
   (tidligere: Think Classic 2000 NiCd (06/2009-05/2012) - Think City 2010 Zebra (03/2012-10/2012) - Think City 2009 Zebra (05/2012-05/2014)  - Tesla Model S 2014 (06/2014-09/2017) - Nissan Leaf 2018 LE 40kWh (04/2018-12/2018) )
- Trondheim (Trøndelag Elbilforening 02/2012-04/2014)
- Ariens AMP 24 to-trinns snøfreser 48V litium 52,5Ahr (10/2012) - Bosch Rotaks 43 Li-Ion gressklipp

habazot

Nice :) I'm interested in the HW mod, was thinking of upgrading FW anyway so I can add a few wires.
Actually I think I'm going to make a connector to be able to reprogram the think without having to pull everything apart... I wish the next generation could allow for reprogramming via GPRS.

Anyway: I have one other issue: I get a lot of battery warnings, my battery seems to go below 13.0V when not plugged in or driving. My battery is just fine, works nicely and will not change behavior even if charged. So should we make the battry voltage limit adjustable? By using one of the parameters.?..

Bergen
- Think City 2008 - 43000km

hma

#62
Sitat fra: habazot på tirsdag 24. september 2013, klokken 12:28
Anyway: I have one other issue: I get a lot of battery warnings, my battery seems to go below 13.0V when not plugged in or driving. My battery is just fine, works nicely and will not change behavior even if charged. So should we make the battry voltage limit adjustable? By using one of the parameters.?..
There are built in alerts for 12V and minSOC, but they currently don't work. I'm troubleshooting with Mark, I think there is a bug in the server-script.

I will also post a picture of how to do the HW-modification for central lock, airbag lamp control and heater control.
- Toyota Rav4 EV 2000 NiMH (06/2010), Tesla Model S75D (12/2018)
   (tidligere: Think Classic 2000 NiCd (06/2009-05/2012) - Think City 2010 Zebra (03/2012-10/2012) - Think City 2009 Zebra (05/2012-05/2014)  - Tesla Model S 2014 (06/2014-09/2017) - Nissan Leaf 2018 LE 40kWh (04/2018-12/2018) )
- Trondheim (Trøndelag Elbilforening 02/2012-04/2014)
- Ariens AMP 24 to-trinns snøfreser 48V litium 52,5Ahr (10/2012) - Bosch Rotaks 43 Li-Ion gressklipp

hma

#63
Latest version is attached, it features:
- Car park time visualization in the app (very useful!)
- Toyota Rav4 EV 2000 NiMH (06/2010), Tesla Model S75D (12/2018)
   (tidligere: Think Classic 2000 NiCd (06/2009-05/2012) - Think City 2010 Zebra (03/2012-10/2012) - Think City 2009 Zebra (05/2012-05/2014)  - Tesla Model S 2014 (06/2014-09/2017) - Nissan Leaf 2018 LE 40kWh (04/2018-12/2018) )
- Trondheim (Trøndelag Elbilforening 02/2012-04/2014)
- Ariens AMP 24 to-trinns snøfreser 48V litium 52,5Ahr (10/2012) - Bosch Rotaks 43 Li-Ion gressklipp

habazot

Sitat fra: hma på onsdag 25. september 2013, klokken 20:09
Sitat fra: habazot på tirsdag 24. september 2013, klokken 12:28
Anyway: I have one other issue: I get a lot of battery warnings, my battery seems to go below 13.0V when not plugged in or driving. My battery is just fine, works nicely and will not change behavior even if charged. So should we make the battry voltage limit adjustable? By using one of the parameters.?..
There are built in alerts for 12V and minSOC, but they currently don't work. I'm troubleshooting with Mark, I think there is a bug in the server-script.

I will also post a picture of how to do the HW-modification for central lock, airbag lamp control and heater control.

Actually battery alerts work too well, I get plenty of notifications, it seems to compare at 13.0V, which is a bit high for my battery, reducing it to ~12.5V would make it useful again, now it's just noise.

Eagerly awaiting the "OVMS on steroids howto" :)
Bergen
- Think City 2008 - 43000km

hma

Sitat fra: habazot på onsdag 25. september 2013, klokken 21:12
Actually battery alerts work too well, I get plenty of notifications, it seems to compare at 13.0V, which is a bit high for my battery, reducing it to ~12.5V would make it useful again, now it's just noise.
Interesting! 12V-warning does not work to me (and I have had a few incidents with low voltage).
Do you run the android-app or the iOS-app? Do you receive warning on both SMS and to the app?

Have you done any changes to the code from the version pushed at Github? If yes, can you e-mail me your vehicle_thinkcity.c-file (you find my email in the developer list).

The 12V alert is done in the function net_msg_12v_alert in net_msg.c and in net_send_sms_start in net_sms.c.
- Toyota Rav4 EV 2000 NiMH (06/2010), Tesla Model S75D (12/2018)
   (tidligere: Think Classic 2000 NiCd (06/2009-05/2012) - Think City 2010 Zebra (03/2012-10/2012) - Think City 2009 Zebra (05/2012-05/2014)  - Tesla Model S 2014 (06/2014-09/2017) - Nissan Leaf 2018 LE 40kWh (04/2018-12/2018) )
- Trondheim (Trøndelag Elbilforening 02/2012-04/2014)
- Ariens AMP 24 to-trinns snøfreser 48V litium 52,5Ahr (10/2012) - Bosch Rotaks 43 Li-Ion gressklipp

hma

Attached you can see how to modify the board to connect to the 4 external pins (RC0-3) used for airbag, central lock/unlock and heater.


Note that this is +5V TTL logic, and the pins cannot be connected directly to the car. One can use a mosfet (e.g. 2n7000) in combination with a resistor as a digital switch.

One have to make a cable with a female d9sub to be attached to OVMS. Clas Ohlson have one for sale for NoK 70,-. Cut off one of the connectors and attach the wires to can_h / can_l +12V GND, Airbag signal (via mosfet) GEM central lock and unlock-switch (via mosfet) and to a heater if you have one.
- Toyota Rav4 EV 2000 NiMH (06/2010), Tesla Model S75D (12/2018)
   (tidligere: Think Classic 2000 NiCd (06/2009-05/2012) - Think City 2010 Zebra (03/2012-10/2012) - Think City 2009 Zebra (05/2012-05/2014)  - Tesla Model S 2014 (06/2014-09/2017) - Nissan Leaf 2018 LE 40kWh (04/2018-12/2018) )
- Trondheim (Trøndelag Elbilforening 02/2012-04/2014)
- Ariens AMP 24 to-trinns snøfreser 48V litium 52,5Ahr (10/2012) - Bosch Rotaks 43 Li-Ion gressklipp

habazot

Sitat fra: hma på torsdag 26. september 2013, klokken 18:37
Sitat fra: habazot på onsdag 25. september 2013, klokken 21:12
Actually battery alerts work too well, I get plenty of notifications, it seems to compare at 13.0V, which is a bit high for my battery, reducing it to ~12.5V would make it useful again, now it's just noise.
Interesting! 12V-warning does not work to me (and I have had a few incidents with low voltage).
Do you run the android-app or the iOS-app? Do you receive warning on both SMS and to the app?

Have you done any changes to the code from the version pushed at Github? If yes, can you e-mail me your vehicle_thinkcity.c-file (you find my email in the developer list).

The 12V alert is done in the function net_msg_12v_alert in net_msg.c and in net_send_sms_start in net_sms.c.

I use the Android app.
I currently have the latest official release installed (not compiled by me).
It works both with notifications and sms, but I had to turn off sms to avoid  excessive noise and costs.
My battery has a voltage of 12.8V when not charged so changing the limit to 12.5V might be reasonable?

Sent from my GT-I9505 using Tapatalk 4

Bergen
- Think City 2008 - 43000km

habazot

Sitat fra: hma på torsdag 26. september 2013, klokken 18:45
Attached you can see how to modify the board to connect to the 4 external pins (RC0-3) used for airbag, central lock/unlock and heater.


Note that this is +5V TTL logic, and the pins cannot be connected directly to the car. One can use a mosfet (e.g. 2n7000) in combination with a resistor as a digital switch.

One have to make a cable with a female d9sub to be attached to OVMS. Clas Ohlson have one for sale for NoK 70,-. Cut off one of the connectors and attach the wires to can_h / can_l +12V GND, Airbag signal (via mosfet) GEM central lock and unlock-switch (via mosfet) and to a heater if you have one.

The OVMS side looks straight forward, but the other end of that RS232 is a bit unclear to me. You mention a molex connector? I have not pulled out the RAC unit yet (seems to be a bit of a hassle...), and I think I'd like to keep it connected since it is actually working sort of. Hm. So maybe you just removed it and now have a way of controlling the one thing you needed it to do; the airbag lamp?
Maybe a picture tells it all :)

Also would it not make sense to put the mosfets in the OVMS box and just run the cables directly to their destinations.? Because you are clamping them right, active "low"/short to GND?

Sorry for being a nag, just want to make sure I understand you correctly.. :)
Bergen
- Think City 2008 - 43000km

hma

#69
The pin-mapping (can_l, can_h, +12V and gnd) for the d9sub-to-obd2 cable is described in the picture bellow.

One can use the free pins on the d9sub at personal choice to route lock/unlock/airbag/heat. The picture with 9x2-to-d9sub mapping is just a suggestion only.

There is also no need to remove the RAC, however I find the 24pin RAC connector very convenient to use.

The 24-pin RAC-connector can be detached without unmounting the unit itself.
If you do so, the airbag lamp control have to be connected to Ovms/mosfet-switch (according to this description).
The 24-pin RAC-connector in the car is Molex 43025-2400 (female).
For the Ovms-cable one need a 43020-2401 (male)

RAC-pins:
- Pin 1: Always hot
- Ping 6: CAN_L
- (Pin 7: Key run, not needed, but nice to know)
- Pin 10: Airbag ECU status
- Pin 13: Gnd
- Pin 18: CAN_H

At the GEM you find:
  - Pin 19 Grey connector (most left): Lock switch (yellow/red wire)
  - Pin 16 Green connector (second left): Unlock switch (pink/green wire)

I have made a small labtest with a 2n7000 mosfet + 4k5 resistor.
Connected like this:
- RCx to Gate
- Source to GND
- Drain to lock/unlock/airbag/heat
- 4k5 between Gate/RCx and Source/GND

NB! If one plan to use the mosfet as relay controller, I think one need a fly-back protection diode over the relay coil.

A Veroboard with 4 switches (airbag, lock, unlock, and heat) measure 32x9x13mm (WxDxH).
I would prefer to keep it inside the Ovms-box, but I think that's might be impossible. There is no space on the bottom side of the Ovms-board and on the top side the d9sub junctions are inaccessible.
I will therefor keep the Veroboard next to the Molex-connector - see not problem with that.
- Toyota Rav4 EV 2000 NiMH (06/2010), Tesla Model S75D (12/2018)
   (tidligere: Think Classic 2000 NiCd (06/2009-05/2012) - Think City 2010 Zebra (03/2012-10/2012) - Think City 2009 Zebra (05/2012-05/2014)  - Tesla Model S 2014 (06/2014-09/2017) - Nissan Leaf 2018 LE 40kWh (04/2018-12/2018) )
- Trondheim (Trøndelag Elbilforening 02/2012-04/2014)
- Ariens AMP 24 to-trinns snøfreser 48V litium 52,5Ahr (10/2012) - Bosch Rotaks 43 Li-Ion gressklipp

hma

#70
Managed to run a successful test on the 2n7000-circuit today, locking, unlocking and switching on/off the airbaglamp.

Next up is building a 4 x switch array (4 x 2n7000) for controlling the whole thing.

Meanwhile, BauDemo gave me a nice suggestion of using ULN2003a circuit, which will save some space and make a smother installation. I might order a few of those (or a pre-build board).

In the attached link some different methods of controlling relays / cmos from a 5V TTL-source.
http://www.electroschematics.com/7123/relay-driver-2/
- Toyota Rav4 EV 2000 NiMH (06/2010), Tesla Model S75D (12/2018)
   (tidligere: Think Classic 2000 NiCd (06/2009-05/2012) - Think City 2010 Zebra (03/2012-10/2012) - Think City 2009 Zebra (05/2012-05/2014)  - Tesla Model S 2014 (06/2014-09/2017) - Nissan Leaf 2018 LE 40kWh (04/2018-12/2018) )
- Trondheim (Trøndelag Elbilforening 02/2012-04/2014)
- Ariens AMP 24 to-trinns snøfreser 48V litium 52,5Ahr (10/2012) - Bosch Rotaks 43 Li-Ion gressklipp

jahnarne

#71
Selger et komplett OVMS-sett om noen er interessert: http://elbilforum.no/forum/index.php/topic,9706.0.html

Eblogg

Denne tråden er blitt så lang at mitt spørsmål er om noen kan gi en rask innføring i hva dette produktet er for noe. Virker spennende. Kan den brukes i en tvilling? Ligner dette på app funksjonen til Liefen?
i-MiEV 2012 Red/Frost White
http://eblogg.org
http://elbilplassen.no

testO

Sitat fra: espfri på søndag 06. oktober 2013, klokken 12:18
Denne tråden er blitt så lang at mitt spørsmål er om noen kan gi en rask innføring i hva dette produktet er for noe. Virker spennende. Kan den brukes i en tvilling? Ligner dette på app funksjonen til Liefen?

Se her for trillingene: http://elbilforum.no/forum/index.php/topic,9539.0.html
Mitsubishi i-MiEV 2012 Ocean Blue - Solgt
Tesla model S
TOCN Signaturmedlem

hma

#74
Latest hex file for Think is available here.
It contains a fix for stale temperature in the app.
If the ambient temperature are not reported lately (e.g. car is off), the temperature is displayed grey in the app.
If the temperature is updated, it's white.
- Toyota Rav4 EV 2000 NiMH (06/2010), Tesla Model S75D (12/2018)
   (tidligere: Think Classic 2000 NiCd (06/2009-05/2012) - Think City 2010 Zebra (03/2012-10/2012) - Think City 2009 Zebra (05/2012-05/2014)  - Tesla Model S 2014 (06/2014-09/2017) - Nissan Leaf 2018 LE 40kWh (04/2018-12/2018) )
- Trondheim (Trøndelag Elbilforening 02/2012-04/2014)
- Ariens AMP 24 to-trinns snøfreser 48V litium 52,5Ahr (10/2012) - Bosch Rotaks 43 Li-Ion gressklipp

© 2024, Norsk elbilforening   |   Personvern, vilkår og informasjonskapsler (cookies)   |   Organisasjonsnummer: 982 352 428 MVA