|
@@ -187,19 +187,16 @@ public class Config extends AppCompatActivity
|
|
|
|
|
|
//View Hopping Setting 定义
|
|
|
private CheckBox cbHoppingEn;
|
|
|
- private CheckBox cbRangeExt;
|
|
|
private EditText edtFreqStart,edtFreqEnd;
|
|
|
private EditText edtDetectStayTimes,edtDetectConfirmTimes;
|
|
|
private CheckBox cbDisForceRef,cbDelayHopping;
|
|
|
- private EditText edtFastHopLimit,edtHopThreshold,edtNoiseMinTh,edtSensorGroup;
|
|
|
+ private EditText edtHopThreshold,edtNoiseMinTh,edtSensorGroup;
|
|
|
private EditText edtSeg1Normalize,edtSeg1Factor;
|
|
|
- private EditText edtMainClockAjdust;
|
|
|
private EditText edtSeg2Normalize,edtSeg2Factor;
|
|
|
private EditText edtSeg3Normalize,edtSeg3Factor;
|
|
|
private EditText edtSeg4Normalize,edtSeg4Factor;
|
|
|
private EditText edtSeg5Normalize,edtSeg5Factor;
|
|
|
private EditText edtSeg6Normalize;
|
|
|
- private EditText edtHopFreqAddr;
|
|
|
private EditText edtHopDetectTimes;
|
|
|
|
|
|
//View Cfg Ram 定义
|
|
@@ -923,27 +920,25 @@ public class Config extends AppCompatActivity
|
|
|
btnAllDriverChannels = viewtxrx.findViewById(R.id.alldriverchannels);
|
|
|
btnAllDriverChannels.setOnClickListener(this);
|
|
|
}
|
|
|
- */
|
|
|
+
|
|
|
private void initPlamRestrainSpin(){
|
|
|
edtLargeTouch = viewselfsetting.findViewById(R.id.largetouch);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
private void initHoppingSettingSpin(){
|
|
|
cbHoppingEn = viewexconfig.findViewById(R.id.hoppingen);
|
|
|
- cbRangeExt = viewexconfig.findViewById(R.id.rangeext);
|
|
|
edtFreqStart = viewexconfig.findViewById(R.id.freqstart);
|
|
|
edtFreqEnd = viewexconfig.findViewById(R.id.freqend);
|
|
|
edtDetectStayTimes = viewexconfig.findViewById(R.id.detectstaytimes);
|
|
|
edtDetectConfirmTimes = viewexconfig.findViewById(R.id.detectconfirmtimes);
|
|
|
cbDisForceRef = viewexconfig.findViewById(R.id.disforceref);
|
|
|
cbDelayHopping = viewexconfig.findViewById(R.id.delayhopping);
|
|
|
- edtFastHopLimit = viewexconfig.findViewById(R.id.fasthoplimit);
|
|
|
edtHopThreshold = viewexconfig.findViewById(R.id.hopthreshold);
|
|
|
edtNoiseMinTh = viewexconfig.findViewById(R.id.noiseminth);
|
|
|
edtSensorGroup = viewexconfig.findViewById(R.id.sensorgroup);
|
|
|
edtSeg1Normalize = viewexconfig.findViewById(R.id.seg1normalize);
|
|
|
edtSeg1Factor = viewexconfig.findViewById(R.id.seg1factor);
|
|
|
- edtMainClockAjdust = viewexconfig.findViewById(R.id.mainclockajdust);
|
|
|
edtSeg2Normalize = viewexconfig.findViewById(R.id.seg2normalize);
|
|
|
edtSeg2Factor = viewexconfig.findViewById(R.id.seg2factor);
|
|
|
edtSeg3Normalize = viewexconfig.findViewById(R.id.seg3normalize);
|
|
@@ -953,10 +948,9 @@ public class Config extends AppCompatActivity
|
|
|
edtSeg5Normalize = viewexconfig.findViewById(R.id.seg5normalize);
|
|
|
edtSeg5Factor = viewexconfig.findViewById(R.id.seg5factor);
|
|
|
edtSeg6Normalize = viewexconfig.findViewById(R.id.seg6normalize);
|
|
|
- edtHopFreqAddr = viewexconfig.findViewById(R.id.hopfreqaddr);
|
|
|
edtHopDetectTimes = viewexconfig.findViewById(R.id.hopdetecttimes);
|
|
|
}
|
|
|
-
|
|
|
+ */
|
|
|
//Cfg Ram 定义
|
|
|
private void initCfgShow() {
|
|
|
mCfg8050 = viewcfgram.findViewById(R.id.cfg8050);
|
|
@@ -2633,10 +2627,6 @@ public class Config extends AppCompatActivity
|
|
|
if ((mBytes[54] & 0x80) == 0x80){
|
|
|
cbHoppingEn.setChecked(true);
|
|
|
}
|
|
|
- cbRangeExt.setChecked(false);
|
|
|
- if ((mBytes[54] & 0x40) == 0x40){
|
|
|
- cbRangeExt.setChecked(true);
|
|
|
- }
|
|
|
cbDisForceRef.setChecked(false);
|
|
|
if ((mBytes[54] & 0x20) == 0x20){
|
|
|
cbDisForceRef.setChecked(true);
|
|
@@ -2645,13 +2635,11 @@ public class Config extends AppCompatActivity
|
|
|
if ((mBytes[54] & 0x10) == 0x10){
|
|
|
cbDelayHopping.setChecked(true);
|
|
|
}
|
|
|
- edtFastHopLimit.setText(Integer.toString((mBytes[55] & 0xF0) >> 4));
|
|
|
edtHopThreshold.setText(Integer.toString(mBytes[55] & 0x0F));
|
|
|
edtNoiseMinTh.setText(Integer.toString(mBytes[57] & 0xFF));
|
|
|
edtSensorGroup.setText(Integer.toString(mBytes[59] & 0xFF));
|
|
|
edtSeg1Normalize.setText(Integer.toString(mBytes[60] & 0xFF));
|
|
|
edtSeg1Factor.setText(Integer.toString(mBytes[61] & 0xFF));
|
|
|
- edtMainClockAjdust.setText(Integer.toString(mBytes[62] & 0xFF));
|
|
|
edtSeg2Normalize.setText(Integer.toString(mBytes[63] & 0xFF));
|
|
|
edtSeg2Factor.setText(Integer.toString(mBytes[64] & 0xFF));
|
|
|
edtSeg3Normalize.setText(Integer.toString(mBytes[66] & 0xFF));
|
|
@@ -2661,7 +2649,6 @@ public class Config extends AppCompatActivity
|
|
|
edtSeg5Normalize.setText(Integer.toString(mBytes[72] & 0xFF));
|
|
|
edtSeg5Factor.setText(Integer.toString(mBytes[73] & 0xFF));
|
|
|
edtSeg6Normalize.setText(Integer.toString(mBytes[75] & 0xFF));
|
|
|
- //edtHopFreqAddr.setText("C6E6");
|
|
|
edtHopDetectTimes.setText(Integer.toString((mBytes[105] & 0xE0) >> 5));
|
|
|
}
|
|
|
|
|
@@ -3154,21 +3141,15 @@ public class Config extends AppCompatActivity
|
|
|
if (cbDisForceRef.isChecked()){
|
|
|
mBytes[54] += 32;
|
|
|
}
|
|
|
- if (cbRangeExt.isChecked()){
|
|
|
- mBytes[54] += 64;
|
|
|
- }
|
|
|
if (cbHoppingEn.isChecked()){
|
|
|
mBytes[54] += 128;
|
|
|
}
|
|
|
- mBytes[55] = (byte)(Integer.parseInt(edtHopThreshold.getText().toString(),10) +
|
|
|
- Integer.parseInt(edtFastHopLimit.getText().toString(),10) * 16);
|
|
|
//mBytes[56]
|
|
|
mBytes[57] = (byte)Integer.parseInt(edtNoiseMinTh.getText().toString(),10);
|
|
|
mBytes[58] = (byte)Integer.parseInt(edtLcdPlusMinusValue.getText().toString(),10);
|
|
|
mBytes[59] = (byte)Integer.parseInt(edtSensorGroup.getText().toString(),10);
|
|
|
mBytes[60] = (byte)Integer.parseInt(edtSeg1Normalize.getText().toString(),10);
|
|
|
mBytes[61] = (byte)Integer.parseInt(edtSeg1Factor.getText().toString(),10);
|
|
|
- mBytes[62] = (byte)Integer.parseInt(edtMainClockAjdust.getText().toString(),10);
|
|
|
mBytes[63] = (byte)Integer.parseInt(edtSeg2Normalize.getText().toString(),10);
|
|
|
mBytes[64] = (byte)Integer.parseInt(edtSeg2Factor.getText().toString(),10);
|
|
|
//mBytes[65]
|