1 of 1 people found this helpful
The FX7500's "Applications" page allows you to install Debian style (deb) install packages.
Those packages need to contain an executable file plus shell scripts to start and stop the application.
The deb files can either contain ARM executables from a C/C++ compiler or java jar files.
Thus, from the "Applications" page, you can install, run and autorun both C/C++ or JAVA Applications.
However, there are some things to bear in mind, when making an application package:
- It is mandated to have same name for the package as well as the binary executable; however user may chose different names if he wish to be. The start and stop status on the web console MAY NOT work if the names are different.
- There can be multiple binaries executables in the same package, however at least one binary name must match the package name to get the correct status of start/stop.
- The applications run with “rfidadm” user privileges.
- The application install root is set to “/apps”. Apps can create any subfolders in this partition or apps can be deployed in sub folders inside “/apps”
- The binary executable can have extension such as “.elf”, “.bin”, “.jar” etc. Only the name before the extension needs to match the package name.
- Packaging tools generally suffix the package name with “_versionNumber”. RM software in FX7500 parses this package name to determine the version number. Hence, it is advised to avoid any other “_” in the package name (other than the one suffixed by the packaging tool with version number).
The SDK provides samples for start and stop scripts, you can use to make your own:
- Copy start_sampleapp.sh and stop_sampleapp.sh from ‘[Embedded SDK Install folder]\tools\userAppPackageBuilder\sampleScripts\java’ into the JAR file build folder ‘[workspace]\build’
- Rename script files to start_appname.sh and stop_appname.sh with the JAR file name being appname.jar
- Replace line ‘java –jar /apps/%sampleapp%.jar &’ in start_appname.sh with ‘java –jar /apps/appname.jar &’
- Replace line ‘EXECUTABLE_NAME=%sampleapp%.jar’ in stop_appname.sh with ‘EXECUTABLE_NAME=appname.jar’