How To Import/Export Cards Data

In order to support backup and restore card rules, MTools support exporting all card information to the internal storage or external storage. Also, it can be imported.

How to export a single card data

  1. There should be at least one card added.
  2. Drag the card item and swipe to the left.
  3. A file named card_name.mto will be stored at /MTools/backups.

How to export all cards data

  1. There should be at least one card added.
  2. Click the ADD button in List Fragment then choose EXPORT.
  3. A file named backup_date.mto will be stored at /MTools/backups.

What’s in *.mto File

  • Card Name
  • Card UID
  • Sector id
  • keyA and keyB
  • Block id
  • Rule List
    • Byte Index
    • Expression

Example *.mto File

[
    {
      "name": "Card 7",
      "uid": "11223344",
      "sectors": [
        {
          "blocks": [
            {
              "block_id": 0,
              "rlb": {
                "checkExpr": [
                  "not b0", "not b1", "b0", "b1"
                ],
                "checkIndex": [
                  4, 5, 7, 8
                ],
                "dec": false,
                "moneyIndex": [
                  0, 1
                ],
                "rate": 100,
                "rev": true
              }
            },
            {
              "block_id": 2,
              "rlb": {
                "checkExpr": [
                  "not b0", "not b1", "b0", "b1"
                ],
                "checkIndex": [
                  4, 5, 7, 8
                ],
                "dec": false,
                "moneyIndex": [
                  0, 1
                ],
                "rate": 100,
                "rev": true
              }
            }
          ],
          "keyA": "ffffffffffff",
          "keyB": "ffffffffffff",
          "sector_id": 3
        }
      ],
      "time": "2019-12-12 19:31:08"
    }
  ]

5 thoughts on “How To Import/Export Cards Data

  1. Shaft says:

    Can mtools make tap to pay c.c. I know I need the track numbers but is that what this program can do. If so please help or please help point to the right program.

Leave a Reply

Your email address will not be published. Required fields are marked *