Updated fe-enable to automatically enable Benetel FE

This commit is contained in:
sgmcclellan
2018-11-01 17:39:43 -07:00
parent ef4b9a351d
commit 3f6cbf1563
4 changed files with 16 additions and 5 deletions

Binary file not shown.

View File

@@ -20,6 +20,16 @@ case $HW_REVISION in
echo 127 > ${SNIFF_ATT}
echo 0 > ${SNIFF_LNA_EN}
;;
C)
echo "Benetel"
oncpu 0 /usr/bin/cn_rfdriver << eof > /dev/null
w
27
20
q
eof
exit 0
;;
E )
fe-setsniffercircuit --off 2> /dev/null

View File

@@ -25,8 +25,10 @@ fi
if [ -r /sys/devices/soc.0/0.tip/fe_version_code ]; then
echo $(cat /sys/devices/soc.0/0.tip/fe_version_code);
else
echo "$0 - ERROR hardware revision code is not detected"
exit 1
# echo "$0 - ERROR hardware revision code is not detected"
# exit 1
# To Do - fix the rev read so that it returns HW revision
echo "C"
fi
exit 0

View File

@@ -5,8 +5,7 @@ VERSION=1.3
HW_REVISION_SUPPORTED="A D E"
periodCheckAlert=15 #seconds, period to check alert
#FIXME periodReadjustTx default is 300, changed to 10 for testing
periodReadjustTx=10 #seconds, period to readjust tx attenuation
periodReadjustTx=300 #seconds, period to readjust tx attenuation
PERIOD_CHECK_CELL_STATE=300 #seconds, period to readjust tx attenuation
EEPROM="/sys/devices/soc.0/1180000001000.i2c/i2c-0/0-0051/eeprom"
@@ -336,8 +335,8 @@ loop()
log $LOG_LEVEL_EMERGENCY "could not get Front-End temperature"
exit 1
fi
tempLed=$(fe-gettemperature led)
#FIXME commenting out LED for now
#tempLed=$(fe-gettemperature led)
#if [ $? -ne 0 ] ; then
# log $LOG_LEVEL_EMERGENCY "could not get LED Board temperature, NO EXIT"
# #exit 1