It is currently Tue Apr 15, 2014 9:31 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 86 posts ]  Go to page 1, 2, 3, 4, 5 ... 9  Next
Author Message
PostPosted: Sun Aug 21, 2011 9:38 am 
Offline
Gold Member

Joined: Wed Apr 21, 2010 8:10 am
Posts: 11886
Location: Laguna Hills, Orange Co, CA
Delivery Date: 29 Mar 2011
Leaf Number: 000855
The original SOC-Meter was released with firmware version F1.07 installed.
The version number is displayed as the SOC-Meter powers On.

CAUTION: Do NOT press on the display since it is only lightly glued in place.

----------
Operation:
Tap Red to change Modes (different value groups).
Tap Black to change the value displayed.

If installed according to instructions, the two switches are:

1. The Upper is the Power Switch, Up = always On, middle position = off,
and the down (normal) position is "Use the car's Switched Power", or
On when the car is ON. This is the single-pole switch.

2. The Lower is the CAn-bus Selection Switch, with Up = CAN-CAN,
middle = None, and Down (normal) = EV-CAN bus.
This is the double-pole switch.

----------
NOTE: The Hex File for flashing each Firmware version is on-line at
http://www.wwwsite.com/puzzles/socmeter/

----------
F1.10: (posted 25 Aug 2013, see the link in my Signature, below)

Adds Mode 4 for setting the LED Brightness (now saved in EEprom).
This allows the code to support the origial and the "replacement"
4-digit, 7-segment LED display from SparkFun.

Adds Mode 5 for display of the four Tire Pressures whenever
the CAR-CAN bus is selected (with the Selector switch UP).

The GIDs are now available from either CAN bus.

----------
F1.09: (Released 12 Oct 2012)
Adds display of "Real SOC" to Mode 1.
Adds Mode 3 to F1.08
Speeds up Power-On boot-up.
Displays Charging amps above 99.9 (as when Quick Charging).

Mode 3: LEAF Logging System (LLS) Mode:
V1: Displays only LLS to give the uP more time to Log.

Mode 2: Battery Pack-Output Mode:
V1: Modified Pack Amps, when Regen or Charging, which normally shows
a negative sign (like -99.9 amps to indicate amps in rather than amps out),
to show 100.0 and up with high charging currents, like those from a QC station.

----------
F1.08: (Released 23 Aug 2011)
Adds Mode 2 to F1.07

Mode 2: Battery Pack-Output Mode:
V1: Displays Pack output Amps (Regen or Charging shows a negative sign),
displaying about 200.0 (output) to -99.9 (input) amps.
V2: Displays Volts (about 350.0 to 400.0 volts).
V3: Power Output as kW, about "C99.9" (Charging-in) to P99.9 (Power-out).

----------
F1.07:

Mode 1: GID Mode:
V1: Displays "GID" value (presumed Fuel Amount) as percent of 281 raw.
V2: Displays the "raw" GID CAN-bus data.

Note: Only has one Mode, the Red button does nothing.

----------

_________________
See SOC/GID-Meter Info
2011 LEAF: White SL+QC (Old-Bars) and 2010 Prius
EVSE: Mod-L1 Nissan EVSE; PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
To Sell: X-treme 5000Li EV motorcycle


Last edited by garygid on Sun Aug 25, 2013 4:42 pm, edited 15 times in total.

Top
 Profile  
 
PostPosted: Sun Aug 21, 2011 9:39 am 
Offline
Gold Member

Joined: Wed Apr 21, 2010 8:10 am
Posts: 11886
Location: Laguna Hills, Orange Co, CA
Delivery Date: 29 Mar 2011
Leaf Number: 000855
How to Update the Firmware:
(This assumes that the programming software (AVRdude) has
been installed in the PC, and that the USB programmer has been
"installed" and tested. The new firmware file should be in the folder with the ".bat" file. See the next post.)

1. Disconnect the SOC-Meter from everything.

2. Open the SOC-Meter project box to expose the AVR-CAN board.
Do not pull the AVR-CAN board out of the project box.
Try to NOT DISTURB any of the internal wiring.

3. Carefully plug the 10-pin (5x2) JTAG connector onto the mating socket
that is easily-seen on the exposed surface of the AVR-CAN board.
Note: Observe proper fitting of the key on the cable's connector and
the key-way on the mating on-board (male-pin) connector.

4. Plug the USB Programmer into the PC.
It will power the programmer and the SOC-Meter with 5v.

Note: A jumper on the "mini USB-AVR-JTAG" programmer board MIGHT need to be in the UN-JUMPERED position. However, I just bought another one from another source and it worked with the Jumper ON.

5. Run the "SocMeterUp.bat" file to start AVRdude, which will automatically clear the flash memory, write the new program, read and verify the results, and re-boot the SOC-Meter.

6. Check that the read-back "verification" by AVRdude is OK.

7. Press space to end the ".bat" file.

8. If possible, carefully press the very small "RST" button in a corner of the AVR-CAN board and watch the SOC display to verify that the new Firmware Version number is displayed.

9. Un-plug the USB programmer from the PC. This removes power from the SOC-Meter and the programmer board.

10. Un-plug the JTAG cable from the AVR-CAN board.

11. Check the SOC-Meter's wiring for anything unintended, making sure the AVR-CAN board is properly in place inside the project box.

12. Re-install the lid on the Project Box. Hint: Turn each screw backwards to hear a slight ckick and feel the screw drop a tiny bit before turning the screw forward.

14. Carefully Test the SOC-Meter in the car.

_________________
See SOC/GID-Meter Info
2011 LEAF: White SL+QC (Old-Bars) and 2010 Prius
EVSE: Mod-L1 Nissan EVSE; PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
To Sell: X-treme 5000Li EV motorcycle


Last edited by garygid on Wed Sep 14, 2011 9:29 am, edited 2 times in total.

Top
 Profile  
 
PostPosted: Sun Aug 21, 2011 9:39 am 
Offline
Gold Member

Joined: Wed Apr 21, 2010 8:10 am
Posts: 11886
Location: Laguna Hills, Orange Co, CA
Delivery Date: 29 Mar 2011
Leaf Number: 000855
Equipment for Updating Firmware:

A: Hardware:

1. Get a "mini USB-AVR-JTAG programmer" board from eBay,
with 10-wire JTAG cable. I got mine from seller "usbflying",
a bit more expensive (about $26), but it was faster shipping from USA stock.
The "same thing" (maybe) appears to be available on eBay from several sources.
For example, for $10 from
http://www.ebay.com/itm/Mini-USB-AVR-JT ... 0557303278

2. Obtain a Windows PC with a USB port to run the software.

B. Software:

1. I use the AVRdude free "flashing" software, which is included in
(search for) "Portable WinAVR AVR-GCC" at SourceForge.
I downloaded and use the "Portable" version of WinAVR,
which does not need installing, only download and unzip to the root
of some "hard" drive, even a USB flash-drive.

2. A ".bat" file to supply the needed parameters to AVRdude and run it.
I will post this short file.

3. A SOC-Meter firmware ".hex" file, which I will also post.

Probably available as a "kit", but you can order these items yourself.
More details shortly.

_________________
See SOC/GID-Meter Info
2011 LEAF: White SL+QC (Old-Bars) and 2010 Prius
EVSE: Mod-L1 Nissan EVSE; PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
To Sell: X-treme 5000Li EV motorcycle


Last edited by garygid on Tue Aug 06, 2013 9:34 pm, edited 10 times in total.

Top
 Profile  
 
PostPosted: Sun Aug 21, 2011 9:40 am 
Offline
Gold Member

Joined: Wed Apr 21, 2010 8:10 am
Posts: 11886
Location: Laguna Hills, Orange Co, CA
Delivery Date: 29 Mar 2011
Leaf Number: 000855
Misc Notes:

_________________
See SOC/GID-Meter Info
2011 LEAF: White SL+QC (Old-Bars) and 2010 Prius
EVSE: Mod-L1 Nissan EVSE; PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
To Sell: X-treme 5000Li EV motorcycle


Top
 Profile  
 
PostPosted: Sun Aug 21, 2011 4:25 pm 
Offline

Joined: Tue Nov 23, 2010 4:09 pm
Posts: 921
Location: San Jose, CA
Delivery Date: 13 May 2011
Leaf Number: 2209
Assuming you will post where/how to purchase the items in Post #3? Or will you offer as a kit?
I'm happy to do the former--just had a PC built and am now comfortable going inside and adding ports, drives, etc., to the motherboard.

_________________
2011 LEAF SL brilliant silver + QC
DRL's, Seat Heaters, Horn, LEDs and EVSE upgrades
Over 24,300 miles gas-free
http://sfbayleafs.org


Top
 Profile  
 
PostPosted: Sun Aug 21, 2011 5:15 pm 
Offline
Gold Member

Joined: Wed Apr 21, 2010 8:10 am
Posts: 11886
Location: Laguna Hills, Orange Co, CA
Delivery Date: 29 Mar 2011
Leaf Number: 000855
For the Firmware Updates, will post what to get and a source.

Likely, I will offer a "Kit" as well.
More info soon.

_________________
See SOC/GID-Meter Info
2011 LEAF: White SL+QC (Old-Bars) and 2010 Prius
EVSE: Mod-L1 Nissan EVSE; PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
To Sell: X-treme 5000Li EV motorcycle


Top
 Profile  
 
PostPosted: Sun Aug 21, 2011 7:57 pm 
Offline

Joined: Tue Nov 23, 2010 4:09 pm
Posts: 921
Location: San Jose, CA
Delivery Date: 13 May 2011
Leaf Number: 2209
garygid wrote:
For the Firmware Updates, will post what to get and a source.

Likely, I will offer a "Kit" as well.
More info soon.

Great!!

_________________
2011 LEAF SL brilliant silver + QC
DRL's, Seat Heaters, Horn, LEDs and EVSE upgrades
Over 24,300 miles gas-free
http://sfbayleafs.org


Top
 Profile  
 
PostPosted: Mon Aug 22, 2011 12:34 am 
Offline
Gold Member

Joined: Wed Apr 21, 2010 8:10 am
Posts: 11886
Location: Laguna Hills, Orange Co, CA
Delivery Date: 29 Mar 2011
Leaf Number: 000855
See the "Flashing the AVR-CAN board" thread in this "Leaf CANBus" sub-forum.

_________________
See SOC/GID-Meter Info
2011 LEAF: White SL+QC (Old-Bars) and 2010 Prius
EVSE: Mod-L1 Nissan EVSE; PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
To Sell: X-treme 5000Li EV motorcycle


Top
 Profile  
 
PostPosted: Mon Aug 22, 2011 1:21 am 
Offline
Gold Member

Joined: Wed Apr 21, 2010 8:10 am
Posts: 11886
Location: Laguna Hills, Orange Co, CA
Delivery Date: 29 Mar 2011
Leaf Number: 000855
I also updated the 3rd post with some sources
for "flashing" hardware and software.
I will add more exact links later.

_________________
See SOC/GID-Meter Info
2011 LEAF: White SL+QC (Old-Bars) and 2010 Prius
EVSE: Mod-L1 Nissan EVSE; PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
To Sell: X-treme 5000Li EV motorcycle


Top
 Profile  
 
PostPosted: Mon Aug 22, 2011 8:36 pm 
Offline
Gold Member

Joined: Wed Apr 21, 2010 8:10 am
Posts: 11886
Location: Laguna Hills, Orange Co, CA
Delivery Date: 29 Mar 2011
Leaf Number: 000855
Good progress, first test of ver 1.08 works,
but there are some small bugs to work out.

_________________
See SOC/GID-Meter Info
2011 LEAF: White SL+QC (Old-Bars) and 2010 Prius
EVSE: Mod-L1 Nissan EVSE; PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
To Sell: X-treme 5000Li EV motorcycle


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 86 posts ]  Go to page 1, 2, 3, 4, 5 ... 9  Next

All times are UTC - 8 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Advertise on the forum | Upgrade your account


© My Nissan Leaf Forum - part of the MyElectricCarForums.com Group