LifeTech

From VentureResearchWiki
Jump to navigation Jump to search

Life Tech SC Express[edit | edit source]

for SC Express project, see LifeTechSCExpress.

Life Tech Premier Fridge / Freezer loading[edit | edit source]

Board Setup[edit | edit source]

1. u-boot install

press space to enter u-boot prompt on board. then enter:

## make sure mac address is set correctly, use address from top of module
setenv ethaddr f8:dc:7a:04:xx:xx
save
bootp
mw.b 0x80000000 0xff 0x1c0000
setenv serverip 192.168.19.35
tftp 0x80000000 osinstaller/recovery-u-boot-om37.bin
nand erase 0x80000 1c0000
nand write 0x80000000 0x80000 1c0000
reset

2. initial provisioning

  • load 4-0 production script:
press space to get into u-boot prompt
bootp
setenv serverip 192.168.19.35 
tftp 0x80000000 osinstaller/uImage
setenv bootargs console=ttyO2,115200n8 root=/dev/nfs rw ip=dhcp nfsroot=192.168.19.35:/srv/update/current/nfs,nolock,mountproto=tcp,proto=tcp eth=$ethaddr
bootm 0x80000000

login as : root, run bootstrap.sh

vr-om37-ltrecovery login: root
root@vr-om37-ltrecovery:~# ./bootstrap.sh

watch for prompts:

=== ENCLOSURE ID ===
Please enter an Enclosure ID, or blank if there isn't one: []
=== WIFI MAC ===
Please enter a WIFI MAC address, or blank if there isn't one: []

then wait for ...

-------------------------------
--- PLEASE REBOOT THE UNIT! ---
-------------------------------
// hard (power off) reboot
//once the board reboots
busybox ash /mnt/sdcard/BIST_LT.sh VRLAB
  • updating BIST/Test Files
busybox wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/lifetech/getGobiInfo_LT.sh -O /mnt/sdcard/getGobiInfo_LT.sh
busybox wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/lifetech/getSIMInfo_LT.sh -O /mnt/sdcard/getSIMInfo_LT.sh
busybox wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/lifetech/checkGobiCnx_LT.sh -O /mnt/sdcard/checkGobiCnx_LT.sh
busybox wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/lifetech/checkINETCnx_LT.sh -O /mnt/sdcard/checkINETCnx_LT.sh
busybox wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/lifetech/checkReaderCnx_LT.sh -O /mnt/sdcard/checkReaderCnx_LT.sh
busybox wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/lifetech/BIST_LT.sh -O /mnt/sdcard/BIST_LT.sh
  • update RFID Service
busybox wget http://lifetech.rfid.ventureresearch.com/vrfilesystem/LifeTech/Packages/forkliftreader_linux-5.0r696M.vrpkg.tar.gz
vrpackager install forkliftreader_linux-5.0r696M.vrpkg.tar.gz
  • verify version numbers
// get software info
busybox uname -a
//response: Linux lt-010484 2.6.37+ #1 Wed Oct 31 21:41:12 CDT 2012 armv7l GNU/Linux
// get wifi mac address
echo $(calibrator get nvs_mac /system/etc/firmware/ti-connectivity/wl1271-nvs.bin) | busybox egrep -o \([0-9a-f]{2}:?\){6}
//response : value should match sticker on variscite module will be of the form (00:50:c2:7c:XX:XX)
//get Android System revision number
ls -l /system/framework/framework.jar
//response: -rwxrwxrwx root     root      2953166 2012-11-15 21:00 framework.jar

RFID (M6e) Reader Setup[edit | edit source]

Note: this has to done for the M6E reader that is part of the enclosure

  • Verify M6e Firmware version
//get rfid version number
busybox echo rfid info | busybox nc localhost 2020 | busybox egrep rfid
//response: 01.13.01.6D-20.12.07.30-BL10.11.16.00
//if version numbers do not match please upgrade as directed below
  • upgrade m6e firmware if needed
scp venture@10.19.6.1:~/lifetech/M6eApp-1.13.1.6D.sim /home/user/m6efirmware.sim
nc localhost 2020
rfidtest fwupgrade m6e
// wait and verify the fw version (RFID INFO) once the upgrade is complete
echo rfid info | busybox nc localhost 2020 | busybox egrep rfid

Board Testing[edit | edit source]

  • Print QA Checklist
M:\LifeTechnologies\Design\Hardware\QA
  • login to rfid service
nc localhost 2020
  • test temperature
get temp1
get temp2
get temp3
  • test inputs
get inputs
  • test outputs
set extled aux1 on
set extled aux2 on
set extled buzzer1 on
  • log out of rfid service
exit
  • test USB (with HP USB Drive):
dmesg | busybox grep HP
  • test GSM (with antenna and SIM installed):
picocom /dev/ttyUSB1 -b 115200

test gsm module communication:

ATI

expected response:

Manufacturer: Option nv
Model: Option GTM689W
Revision: D3200-STSUGN-1575  1  [Nov 22 2010 09:00:00]
SVN: 02
IMEI: 356144040160216
+GCAP: +CGSM,+DS
OK

test sim card:

AT+COPS?

expected response:

+COPS: 0,0,"T-Mobile",0

end gsm serial session: ctrl+a+q

  • WiFi?
tbd
  • Clock

Check the clock on the home screen, it should be correct!!!

board installation into computer box[edit | edit source]

computer panel testing[edit | edit source]

  • use extension cables for testing
  • lock, door switch, annunciator out, defrost, compressor sense,
  • temp, rfid, lcd, touch screen, buzzer
  • com-panel test script
scp venture@192.168.19.14:/home/venture/lifetech/test-scripts/lifetech/lt-comp-panel.sh /var/run/vrgpio/
busybox ash /var/run/vrgpio/lt-comp-panel.sh
  • get the computer panel sticker from the printer once the scripts is complete

fridge door testing[edit | edit source]

  • use extension cables for testing
  • lock, door switch, annunciator out, defrost, compressor sense,
  • temp, rfid, lcd, touch screen, buzzer
  • door test script
scp venture@192.168.19.14:/home/venture/lifetech/test-scripts/lifetech/lt-door.sh /var/run/vrgpio/
busybox ash /var/run/vrgpio/lt-door.sh
  • get the door sticker from the printer once the scripts is complete

fridge testing[edit | edit source]

  • verify that all the electronics are connected starting from the door & computer panel to the power supply enclosure at the bottom.
  • full fridge test script
scp venture@192.168.19.14:/home/venture/lifetech/test-scripts/lifetech/lt-fridge.sh /var/run/vrgpio/
busybox ash /var/run/vrgpio/lt-fridge.sh
  • get the final sticker from the printer once the scripts is complete

final fridge testing[edit | edit source]

  • verify that all the electronics are connected starting from the door & computer panel to the power supply enclosure at the bottom.
  • final test script
scp venture@192.168.19.14:/home/venture/lifetech/test-scripts/lifetech/lt-final.sh /var/run/vrgpio/
busybox ash /var/run/vrgpio/lt-final.sh
  • get the final sticker from the printer once the scripts is complete
  • done! ship it!

Reprovision VPN keys[edit | edit source]

busybox wget --post-data hostname=cat /etc/hostname http://openvpn.crm.ventureresearch.com/genclientkey -O - | busybox tar xzvC /system/etc/openvpn/

Remote updates[edit | edit source]

on vm-linux-prod[edit | edit source]

copy the latest update

XXX fix the date first!!! XXX scp venture@lab-ubuntu:/mnt/m/LifeTechnologies/Deployment/RFIDEnclosure/20120913/RFIDEnclosure.apk ~

login to remote device[edit | edit source]

ssh lt-xxxxxx.openvpn (root, password rfid4ever_lt)

pm uninstall com.ventureresearch.lifetech.rfidenclosure
scp venture@10.19.6.1:~/RFIDEnclosure.apk /data/app/RFIDEnclosure.apk

forkliftreader_linux v265 and higher require the following libevent library:

scp venture@192.168.19.33:/home/android/rowboat-android/out/target/product/omap3evm/system/lib/libevent.so /system/lib/libevent.so
ln -s /system/lib/libevent.so /system/lib/libevent-2.0.so.5

LifeTechGingerbreadLoad LifeTechInPlaceUpdate LifeTechRecoveryStick LifeTechVRBootLaptop