ZBNF / JZcmd





Inspector & Reflection

Java and Embedded Systems

Download Page

last change: 2015-08-19

The access to data of a running system is a proper way to find out bugs, study the behaviour in special cases or influence the behaviour of any application. The Inspector is a tool running on PC with its communication protocoll to do such an access. The access to all data is done in Java using the reflection. The principle of reflection is adapted to C/C++. In this way embedded systems programmed in C are able to access.

Often an access to data of a running system is done via knowledge of the data address which is reported in an map file of compilation and linking. Such an access can be done only to global static data. The reflection access supports especially dynamic allocated data (on startup time usual) without knowledge about the mapping to memory. The data should be structured via references which starts on the only one top level data object. The reflection access is proper to use for an embedded system of 16- or 32-bit which has enough memory. The reflection needs 48 byte per member of a structure. But this information can be stored on ROM. The access is done typically via ethernet socket connection. The access with serial interface is possible too.