mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-25 01:07:22 +00:00
Updated fe-enable to automatically enable Benetel FE
This commit is contained in:
BIN
octal/rffe.tgz
BIN
octal/rffe.tgz
Binary file not shown.
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user