summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2016-11-04 17:45:02 +0200
committerMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2016-11-04 18:08:58 +0200
commitc4efa9a3500fba47b68e8449c612a745674c9c7b (patch)
treeb97a65059cb1a4fcda56e41d2aebe3f1f0dab5bb
parentc3ae43430ccf0cf92a4fa2d4bcf0024b53dbac7a (diff)
downloadmts-io-c4efa9a3500fba47b68e8449c612a745674c9c7b.tar.gz
mts-io-c4efa9a3500fba47b68e8449c612a745674c9c7b.tar.bz2
mts-io-c4efa9a3500fba47b68e8449c612a745674c9c7b.zip
capa-lora: log on-board lora eeprom fields only when capa-lora is set
-rw-r--r--io-module/mts_io.c25
-rwxr-xr-xio-tool/mts-io-sysfs10
2 files changed, 22 insertions, 13 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c
index f1f8cb6..f950e89 100644
--- a/io-module/mts_io.c
+++ b/io-module/mts_io.c
@@ -905,19 +905,20 @@ static int mts_id_eeprom_load()
}
log_info("uuid: %s", (char*)buf);
- log_info("lora-eui: %02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X",
- id_eeprom.lora_eui[0],
- id_eeprom.lora_eui[1],
- id_eeprom.lora_eui[2],
- id_eeprom.lora_eui[3],
- id_eeprom.lora_eui[4],
- id_eeprom.lora_eui[5],
- id_eeprom.lora_eui[6],
- id_eeprom.lora_eui[7]);
-
- log_info("lora-product-id: %.32s", id_eeprom.lora_product_id);
- log_info("lora-hw-version: %.32s", id_eeprom.lora_hw_version);
+ if (DEVICE_CAPA(id_eeprom.capa, CAPA_LORA)) {
+ log_info("lora-eui: %02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X",
+ id_eeprom.lora_eui[0],
+ id_eeprom.lora_eui[1],
+ id_eeprom.lora_eui[2],
+ id_eeprom.lora_eui[3],
+ id_eeprom.lora_eui[4],
+ id_eeprom.lora_eui[5],
+ id_eeprom.lora_eui[6],
+ id_eeprom.lora_eui[7]);
+ log_info("lora-product-id: %.32s", id_eeprom.lora_product_id);
+ log_info("lora-hw-version: %.32s", id_eeprom.lora_hw_version);
+ }
return 0;
}
diff --git a/io-tool/mts-io-sysfs b/io-tool/mts-io-sysfs
index e33c280..55b5087 100755
--- a/io-tool/mts-io-sysfs
+++ b/io-tool/mts-io-sysfs
@@ -108,7 +108,13 @@ usage() {
*-id )
;;
#uuid read-only
- uiid )
+ uuid )
+ ;;
+ #eui read-only
+ */eui )
+ ;;
+ #cdone read-only
+ */cdone )
;;
#hw-version is read-only
*hw-version )
@@ -116,6 +122,8 @@ usage() {
#imei is read-only
imei )
;;
+ radio-reset-backoff-seconds )
+ ;;
modalias )
;;
power )