User Guide for V3 SDCard

Requirements
  • the SD log requires firmware version 1.1.35 or newer
  • knock_chan=F1 (hack: paste this to terminal: Manmmttg95mmttcf1mcs ) Note that this disables knock sensing.
    • at firmware 1.0.x knock_conf=F0 (hack: paste this to terminal: Manmmttg95mmttcf0mcs )
  • WARNING: the small switch on SD card (lock switch) is neglected, will not provide any protection (write and clear is enabled)
  • use SD card (MMC might not work)
  • SD card size must be 4GB or lower (8 .. 1024 MByte recommended)
  • tested card types:
    • Toshiba 256MB SD (all command works)
    • Kingston 1GB MicroSD (with adapter for normal SD size) (all command works)
    • Silicon Power ultima 512Mb (all command works)
    • TakeMS 128MB SD (the erase command does not work)

Install hardware
  • insert card in SD slot

  • mount SD-holder on the 6x2 "ISPI" genboard v3.x connector to correct position. Note that 2 pins of the genboard 6x2 ISPI connector are unused (check the picture, or your SD-holder PCB, 2 pins are not connected to anywhere)

  • connecting v3 to your computer via serial port (RS232)

  • If you want to verify the the circuit, measure the voltage between the regulator output and the GND, it should be 3.3 (+/- 5%)

    Software


    Using Vems-Tune(V3-gui)
    • power on the v3
    • check the communication betwen v3 and Vems-Tune
    • if the ECU icon is green the communication is ok
    • if the ECU icon is red there is something wrong, check the cables, and the port configuration in the preferences menu /serial port config
    • commands at: tools menu SD card log submenu
      • erase option clears the card in v3
        • please wait at least 5 seconds to finish the erase procedure
      • start option starts the logging
      • stop option stops the logging
      • save option saves raw log (*.vemslog) from SD card in your computer ....../VemsTune/logs/
      • SD Card Extended Overview option shows how many and how long logs the SD card containes. If you click this option, on the MMC Card Overview window, click V3
        • You can verify easily if the card works, log a couple of second and see the SD Card Extended Overview
        • If you use an SD card in the first time, always needs to erase.

    • On the MMC Card Overview window, click V3.

    • There are 3 logs on this card, the 1st log is 16 second, the 2nd is 49 second and the 3rd is 2 minutes and 4 second long.
      • commands at: tools menu
      • you can open high log (*.csv) with megaLogWiewer

    Automatic logger operation
    • after V3 powerup, datalogging is disabled
    • when the engine starts the log enables automatically
    • note that the logging, once started, continues even if the engine stalls.
    • if use stop option (or msd command in the terminal) before engine start, the automatic mode disables
    • when you use erase or save options in Vems-Tune(or send msc or msg commands in the terminal) the log will stop
      • after it you can restart logging with start option (or with mse command in the terminal), but it's not automatic


    For advanced users only: SD card related terminal commands :

    • mse: enable SD log
    • msd: disable SD log
    • mss: SD log status, answer: '0' (0x30): log not running, '1' (0x31): log running
    • msc: clear all data from SD card ( all sectors will be full of 0xff or 0x00 )
      • please wait at least 5 seconds to finish the erase procedure
    • msgXXXXXX: get data from SD card from the sector at XXXXXX<<9 address (XXXXXX: 0-7fffff)


The original document is available at http://localhost/tiki-index.php?page=UserGuidforV3SDCard