Skip to content
This repository has been archived by the owner on Sep 17, 2023. It is now read-only.

ScriptingAndAPDUExchange

Maxie D. Schmidt edited this page Oct 14, 2020 · 4 revisions

Scripting and APDU command exchange in the application

Direct (raw) APDU command exchange

There are a couple of SEND and SEND_RAW commands to transfer APDU-style sequences of bytes to the device documented in the chameleon commands. The usage available in the app is summarized as follows:

This subtab enables users to grok, or otherwise lookup in realtime, particular APDU command combinations from a detailed, multi-device-spec dictionary compiled from within the app source.

Scripting

This feature is a work in progress (under construction). In principle, the idea is to run a short shell-like script with a list of in-order commands recognized by the Chameleon device terminal, or otherwise encode notation for directly transferring a sequence of bitwise APDU commands to the device. A complete spec of what should eventually work to script operations on/with a live Chameleon device is given in the points in this overview. The script parser / lever will be done with ANTLR4 (in Java) as an imported Android library. This is a very powerful and robust way to provide support for otherwise complicated grammars.

A sketch to the application intended functionality is seen below: