summaryrefslogtreecommitdiff
path: root/loopback_nv_read
diff options
context:
space:
mode:
Diffstat (limited to 'loopback_nv_read')
-rwxr-xr-xloopback_nv_read26
1 files changed, 26 insertions, 0 deletions
diff --git a/loopback_nv_read b/loopback_nv_read
new file mode 100755
index 0000000..1d29f2b
--- /dev/null
+++ b/loopback_nv_read
@@ -0,0 +1,26 @@
+# 54 bytes path length
+# /nv/item_files/modem/data/3gpp/ps/loopback_config.txt
+
+# 85 bytes file content (original--all but last end in \r\n)
+# LOOPBACK_ENABLED:1;
+# L2_LOOPBACK_ENABLED:0;
+# SYS MODE:9;
+# REP_FACTOR:1;
+# NR5G_ONLY:1;
+#
+# Experimentation showed that last line *can* end in \r\n. And all
+# lines can end in \n only.
+#
+# The REP_FACTOR says how many replicas are looped back; 1 means
+# simple loopback, while 2 means echo back two copies of each
+# received packet.
+
+# Read the "loopback_config.txt" NV data (length must be right)
+send_data 75 19 39 0 82 0 0 0 54 0 0 0 5 0 \
+ 47 110 118 \
+ 47 105 116 101 109 95 102 105 108 101 115 \
+ 47 109 111 100 101 109 \
+ 47 100 97 116 97 \
+ 47 51 103 112 112 \
+ 47 112 115 \
+ 47 108 111 111 112 98 97 99 107 95 99 111 110 102 105 103 46 116 120 116 0