ACR330 Validator with QR Code Scanner
– User Manual
Version 1.02
www.acs.com.hk
Page 57 of 61
www.acs.com
.hk
h.
Access root account typing the following credentials:
i.
su
ii.
root
(this is the password)
i.
Copy “startup.x” and the application file from the USB thumb drive, type the following:
i.
cd /home/machinekit/bin
ii.
cp
–rf /media/udisk/startup.x /home/machinekit/bin
iii.
cp
–rf /media/udisk/acr330.jar /home/machinekit/bin
iv. vi startup.x
(the contents of the startup.x will appear)
v.
i
(in order to edit the information)
vi. Then change the WORK_DIR to
/home/machinekit/bin
vii. Press
Esc
and type
:w!
to save
viii. Type
:q!
after editing
j.
Type
chmod +x startup.x
k.
Turn OFF the device by pressing the button at the back. Remove the USB thumb drive and
turn ON the device to launch the new application by default
3.4.2.
Method 2: Loading the Application to the Device
This method is useful for mass deployment. It allows user to plug in the USB thumb drive and then
reboot the device.
a.
Create a “startup.x” file in a PC
Note:
Create a text file through a text editor and then rename the file extension to “.x”
The startup.x should contain the following:
For C++ - based Application
#!/bin/bash
source /etc/profile.d/qtenv.sh
WORK_DIR=
<user_app_path>
cd ${WORK_DIR}
./
<user_app>
-qws
For Java - based Application
#!/bin/bash
source /etc/profile.d/jdk.sh
source /etc/profile.d/java-api.sh
export DISPLAY=:0.0
WORK_DIR=
<user_app_path>
cd ${WORK_DIR}
/usr/bin/xinit /usr/bin/java -jar
<user_app>.jar
-- -nocursor
wherein:
<user_app_path> should be /home/machinekit/bin
Note: in some cases, the device tags the USB device as udiskp1
<user_app> should be application file name (ex. demo330)
b.
Put the startup.x and the application together in a folder (ex. acr330test)