LifeTechAndroid
LT Premier V2 Back wall Reader[edit | edit source]
Premier V2 Back Wall[edit | edit source]
Run the following command(s) to update the Premier V2 Back wall configuration.
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/lifetech-v2/lt-16ant-secondrun.sh -O - | sh
Premier V2 Back Wall ETSI[edit | edit source]
Run the following command(s) to update the Premier V2 (ETSI) Back wall configuration.
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/lifetech-v2/lt-16ant-secondrun-eu.sh -O - | sh
Update M6E Firmware[edit | edit source]
If the firmware version of the M6E in the back wall is not the latest, please update the firmware before you start the unit system test:
cd /tmp wget http://readonly:secret@svn.ventureresearch.com/svn/linux/testing/thingmagic/m6e/update-m6e-reader.sh bash update-m6e-reader.sh rm /tmp/update-m6e-reader.sh rm /home/user/m6efirmware.sim
Update Micro M6E Firmware[edit | edit source]
If the firmware version of the Micro M6E is not the latest, please update the firmware before you start the unit system test:
cd /tmp wget http://readonly:secret@svn.ventureresearch.com/svn/linux/testing/thingmagic/m6emicro/update-m6e-reader.sh bash update-m6e-reader.sh rm /tmp/update-m6e-reader.sh rm /home/user/m6efirmware.sim
Premier V2 Lock[edit | edit source]
Tuning[edit | edit source]
See the guide [].
Linux Board 6.0 - Android 14[edit | edit source]
MX8M PLUS, Linux Board 6.0 - Android 14 (See VRLinuxBoard6.0)
Build Android Image[edit | edit source]
See BuildAndroidImage: Build Android Image
Flash Android Image[edit | edit source]
See FlashAndroidImage: Flash Android Image
Flash Firmware on Board[edit | edit source]
See LinuxBoard5.x: Linux Board Rev 5.x (ANDROID)
Setup Android on Board (Linux Board 5.1 or 5.2)[edit | edit source]
The Android system is booted from the SD card.
Please make sure the switch s1 on the back of the controller board is setup as 0.
Insert the SD card, power the board. At the first boot up, it takes a bit longer time. Then follow up the following steps to complete initialization:
Wi-Fi MAC Address[edit | edit source]
Go to the settings menu and turn on wifi. If you prepare a brand new board, please look for a new MAC address label. If you update an old board, go to the terminal and run
busybox ifconfig
Thus, you will find the MAC address of wifi adapter. Please remember it because you need to reflash it later.
First Initialization Setup[edit | edit source]
The script "vr-firstrun" is to process all initialization and settings on the board. You need run it when you prepare a brand new board or update the Android system.
Lollipop (Obsolete):
busybox wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-mx6-linuxboard/lollipop/vr-firstrun.sh -O /sdcard/Download/vr-firstrun.sh sh /sdcard/Download/vr-firstrun.sh
Oreo (Current)
su busybox wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-mx6-linuxboard/oreo/vr-firstrun.sh -O /sdcard/Download/vr-firstrun.sh sh /sdcard/Download/vr-firstrun.sh
To lookup IP address and MAC Address:
su ifconfig
Follow up the instructions on screen to complete this initialization. The script searches the address of lan Ethernet and pick up its latest six letters to create the host name starting from “vr-“. It also re-flash the wifi address as what you remembered above.
The OpenVPN configuration file with keys is generated and saved at “/sdcard/venture.android.openvpn.conf”.
After the initialization script is completed. Reboot the board.
reboot
After reboot, you can check the hostname starting from "vr-"
getprop | grep hostname
Change the Final Enclosure ID with the Unit VR Serial Number[edit | edit source]
It is very important to verify if the board preset VR Enclosure ID matches the device's region, model, temperature rate, etc. by the command
Lollipop:
busybox wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-mx6-linuxboard/lollipop/vr-checkid.sh -O /sdcard/Download/vr-checkid.sh sh /sdcard/Download/vr-checkid.sh
Oreo:
su busybox wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-mx6-linuxboard/oreo/vr-checkid.sh -O /sdcard/Download/vr-checkid.sh sh /sdcard/Download/vr-checkid.sh
Setup for Specific Projects[edit | edit source]
Before you run the [System] or [Prebox] test on the VR Hardware Manger:
Premier V2[edit | edit source]
You need run the commands to change setup for Premier V2.
Lollipop:
busybox wget -O - http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-mx6-linuxboard/lollipop/premierv2-secondrun.sh | /system/bin/sh
Oreo:
su busybox wget -O - http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-mx6-linuxboard/oreo/premierv2-secondrun.sh | /system/bin/sh
SC Express V2[edit | edit source]
You need run the commands to change setup for SC Express2.
Lollipop:
busybox wget -O - http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-mx6-linuxboard/lollipop/scexpress-secondrun.sh | /system/bin/sh
Oreo:
su busybox wget -O - http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-mx6-linuxboard/oreo/scexpress-secondrun.sh | /system/bin/sh
Hazmat Cabinet[edit | edit source]
You need run the commands to change setup for Hazmat Cabinet:
Oreo:
su busybox wget -O - http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-mx6-linuxboard/haztrak-bl-secondrun.sh | /system/bin/sh
Preship[edit | edit source]
After have completed all tests and checking, before you ship the unit:
Premier V2[edit | edit source]
You need run the commands to change setup for Premier V2.
Oreo:
su busybox wget -O - http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-mx6-linuxboard/oreo/premierv2-preship.sh | /system/bin/sh
VR Hardware Manager Test[edit | edit source]
Here are some things to remind:
SC Express V2[edit | edit source]
- The reference barcode id used to test the barcode scanner is "5437F0101800000000000001"
- Enable wifi (not need to log in network, just turn on wifi), connect Ethernet cable and enable openvpn manually before VR Hardware test
- As to the lock test, please make sure the lock component id is set as 104
Continue Setup[edit | edit source]
OpenVPN[edit | edit source]
After the OpenVPN configuration file is generated, start the "OpenVPN for Android" app from the application menu:
- When the app is loaded, click the most top right button to import the configuration file from “/sdcard/venture.android.openvpn.conf”
- After the configuration file is loaded, go to the settings page to set auto boot and assign the vpn to auto connect.
- Go back to the profile page and click the vpn profile “venture.android.openvpn”. The connection log is displayed and will show the initialization is completed.
- Verify the tun0 is created or not by the command
busybox ifconfig
- Check connection to the OpenVPN server by Ping the OpenVPN server 172.19.0.1 or openvpn.ventureresearch.com
ping 172.19.0.1 ping openvpn.ventureresearch.com
More details are shown in the guide of OpenVPN: http://downloads.ventureresearch.com/Thermofisher/VRCheckList/Android/release/production/OpenVPN_Help.pdf
Update RFIDEnclosure[edit | edit source]
See UpdateRFIDEnclosure: Update the Android app - RFIDEnclosure
Troubleshooting[edit | edit source]
RFID Service[edit | edit source]
To stop rfid service
stop rfid
start RFID service:
start rfid
Then you can enter the RFID mode by
nc localhost 2020
Change Mode[edit | edit source]
You can choose what mode you want to use by the command:
vr-mode.sh debug
or
vr-mode.sh user
The debug mode displays the navigation bar and sets USB port for ADB debug. While, the user mode hides the navigation bar and sets tcp port 5555 for ADB debug.
Test Speaker[edit | edit source]
busybox wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-mx6-linuxboard/test.wav -O /sdcard/test.wav tinyplay /sdcard/test.wav
Display Correct Hostname[edit | edit source]
busybox hostname -F /system/etc/hostname
echo >> /system/bin/vr-setup.sh
echo "busybox hostname -F /system/etc/hostname" >> /system/bin/vr-setup.sh
Update Micro M6E Firmware for Bezel with Android System[edit | edit source]
cd /sdcard/Download/ busybox wget http://readonly:secret@svn.ventureresearch.com/svn/linux/testing/thingmagic/m6emicro/update-m6e-reader-android.sh bash update-m6e-reader-android.sh
[edit | edit source]
pm uninstall com.xda.nobar busybox wget http://downloads.ventureresearch.com/Android/xda_navigation_gestures.apk -O /sdcard/Download/xda_navigation_gestures.apk pm install -r -d /sdcard/Download/xda_navigation_gestures.apk
Open the app, grants permissions as requested, then
pm grant com.xda.nobar android.permission.WRITE_SECURE_SETTINGS
Update Dropbear[edit | edit source]
Update the dropbear to version 2019.78. Connect to the board through the console connector, then run:
Lollipop:
busybox wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-mx6-linuxboard/lollipop/update-dropbear.sh -O /sdcard/Download/update-dropbear.sh sh /sdcard/Download/update-dropbear.sh
Oreo:
su busybox wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-mx6-linuxboard/oreo/update-dropbear.sh -O /sdcard/Download/update-dropbear.sh sh /sdcard/Download/update-dropbear.sh
Manually check the version of the Dropbear in the terminal:
dropbear -V
Prepare Launch RFIDEnclosure
After finish all hardware tests, before launch RFIDEnclosure, need to change RFID settings:
stop rfid start rfid echo -e "0 SET TAGPERSIST 3" | busybox nc localhost 2020 | grep "ACK" echo -e "0 COMMIT" | busybox nc localhost 2020 | grep "ACK"
Clear CRC Error on U-Boot[edit | edit source]
Reboot the board, press 'Space' key to enter U-Boot. Then type the commands:
saveenv reset
NTP Time Server[edit | edit source]
Set NTP Time server:
settings put global ntp_server time.ventureresearch.com
Verify NTP Time Server (should respond "time.ventureresearch.com):
settings get global ntp_server
Force to update time:
busybox ntpd -n -q -p time1.ventureresearch.com
Set Hardware Clock from System Time:
busybox hwclock -w -u
Wait for 30 seconds and then reboot.
reboot
Check System Time:
date -u +'%b %d %Y %H:%M:%S'
CAN[edit | edit source]
Setup CAN to restart if there is an error
busybox sed 's/ip link set can0 type can bitrate 1000000$/ip link set can0 type can bitrate 1000000 restart-ms 100/g' /system/bin/vr-setup.sh
Wi-Fi[edit | edit source]
Read Wi-Fi settings:
wlconf -i /vendor/firmware/ti-connectivity/wl18xx-conf.bin -g cat /sys/kernel/debug/ieee80211/phy0/wlcore/sleep_auth
Disable ELP (Enhanced Low Power) mode:
cd /vendor/firmware/ti-connectivity cp wl18xx-conf.bin wl18xx-conf.bak.bin wlconf -i wl18xx-conf.bin -o wl18xx-conf.bin --set core.conn.sta_sleep_auth=0x00
Enable 5G:
su cd /vendor/firmware/ti-connectivity wlconf -i wl18xx-conf.bin -o wl18xx-conf.bin -s wl18xx.phy.number_of_assembled_ant2_4=2 wlconf -i wl18xx-conf.bin -o wl18xx-conf.bin -s wl18xx.phy.number_of_assembled_ant5=1 wlconf -i wl18xx-conf.bin -o wl18xx-conf.bin -s wl18xx.ht.mode=0 wlconf -i wl18xx-conf.bin -o wl18xx-conf.bin -s wl18xx.phy.low_band_component=0x2 wlconf -i wl18xx-conf.bin -o wl18xx-conf.bin -s wl18xx.phy.board_type=4
SD Card[edit | edit source]
To remove the redundant SD card writing, disable the notification from the app – “OpenVPN for Android”.
Update OpenVPN Certificate[edit | edit source]
The original OpenVPN certificate will expire June 6, 2021, leaving older units as unable to connect the VPN.
For old devices, the IP will be in the range 172.19.0.2-172.19.15.255, and the new VPN IP is in the range 172.19.16.0 - 172.19.47.255.
Lollipop[edit | edit source]
Check the Android version is Lollipop, SDK = 21
getprop ro.build.version.sdk
Check if the current VPN IP is old (172.19.0.2-172.19.15.255) or not
ip addr show | grep tun | busybox sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p'
If the IP is old, follow the steps to setup new VPN:
- Go the working folder:
cd /data/data/vr
- Download the generation script
busybox wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-device-ca/generate-csr-android.sh -O generate-csr-android.sh
- Generate VPN certificates
bash generate-csr-android.sh
- Download VPN configure file
busybox wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-device-vpn/vrdevicevpn-android.conf -O /sdcard/vrdevicevpn-android.conf
This file will be imported by the app - "OpenVPN for Android" to setup a VPN connection manually next
- Setup a VPN connection manually using the app - "OpenVPN for Android"See the guide OpenVPN_Guide_Rev_B.pdf.
Oreo[edit | edit source]
Disable Server Port[edit | edit source]
Port scanning may cause RFID service crash, need to disable it:
0 SET VRPROTOTCPSERVERPORT 0 0 commit