![Advanced Card Systems ACR350 User Manual Download Page 59](http://html1.mh-extra.com/html/advanced-card-systems/acr350/acr350_user-manual_2855860059.webp)
ACR350 Validator with QR Code Scanner
–
User Manual
Version 1.02
www.acs.com.hk
Page 59 of 61
3.3. Using Application
This section shows how to launch an application and load a different application apart from the default
demo. Please ensure that the application created for the ACR350 is compiled and built using the
required tools. Otherwise, the device will reboot repeatedly.
If the application keeps on rebooting, place an empty
startup.x
file to the USB thumb drive to stop the
application and have root access on the device to remove the initially copied files.
3.3.1.
Launch an Application
To launch an application from drive such as USB thumb drive (udiskp1) or SD card (sdcardp1).
a.
Create a “startup.x”
script file. Below is an example of startup.x file:
Note:
<user_app>
is the application
<disk_folder>
is theUSB thumb drive or SD card mount folder. e.g.
sdcardp1
<app_folder>
is the application folder, e.g.
app
where the application files are stored
b.
Put the startup.x in the USB thumb drive/SD card root folder. e.g.
/media/sdcardp1
c.
Plug in the drive to ACR350 and power up ACR350. The application should be launched.
3.3.2.
Copy an Application to ACR350
3.3.2.1.
Copy Application in Console Mode
To copy the application to ACR350 from drive such as USB thumb drive or SD card.
a. Enter console mode (Refer to
b. Login to ACR350 console mode.
c. Perform following commands
Note:
<user_app>
is the application
<disk_folder>
is theUSB thumb drive or SD card mount folder. e.g.
sdcardp1
<app_folder>
is the application folder, e.g.
app
where the application files are stored
d. Power OFF the device and remove the media. Power ON ACR350 again. The application
should be launched automatically after reboot.
#!/bin/bash
WORK_DIR= /media
/
<disk_folder>/<app_folder>
cd ${WORK_DIR}
/usr/bin/qtLauncher ./
<user_app>
cp -rf /media/
<disk_folder>/<app_folder>
/data
cp /media/
<disk_folder>
/startup.x /data
chmod 755 startup.x