From 85d9e18b2170526ba902e0affb1c9886f4c042bb Mon Sep 17 00:00:00 2001 From: Giovanni Condello Date: Sun, 28 May 2023 16:37:43 +0200 Subject: XLTF7267-BHA+: Document how to change the PLOAM password (#212) * Fix typo in the software version string * Add PLOAM password settings * Remove a wrong warning * Update max PLOAM length * Remove misleading warning * Update _ont_xgs/ont-hisense-ltf7267-bha+.md * Apply suggestions from code review * add nanomad js script * fix js * Add missing braces --------- Co-authored-by: Simone Bortolin --- _ont_xgs/ont-hisense-ltf7267-bha+.md | 93 ++++++++++++++++++++++++++++++++++-- assets/js/LTF7267-BHA-ploam.js | 28 +++++++++++ 2 files changed, 118 insertions(+), 3 deletions(-) create mode 100644 assets/js/LTF7267-BHA-ploam.js diff --git a/_ont_xgs/ont-hisense-ltf7267-bha+.md b/_ont_xgs/ont-hisense-ltf7267-bha+.md index 1975930..7ac0311 100644 --- a/_ont_xgs/ont-hisense-ltf7267-bha+.md +++ b/_ont_xgs/ont-hisense-ltf7267-bha+.md @@ -307,6 +307,95 @@ INT CFG_ID_PON_VSSN = 0xAABBCCDD; Reboot ONT to apply the change +## Setting ONU GPON PLOAM password + +### Web procedure + +
+
+ + +
+ Please provide a valid PLOAM password. +
+
+
+ +
+
+
+
+            
+
+
+
+ + + + + +### Normal procedure + +This ONT seems to be supporting a PLOAM password up to 288 bits in lenghth (36 ASCII characters, 72 Hex digits). + +The PLOAM password is stored into 32 bit chunks (4 ASCII characters / 8 Hex digits), each byte swapped. + +So, starting from the following PLOAM in ASCII format + +``` +A1B2C3D4E5 +``` + +It gets translated into the following HEX value: + +``` +0x41314232433344344535 +``` + +Which is then split into the following blocks (the last block gets padded with 0 to reach 8 digits) + +``` +BLOCK 0: 0x41314232 +BLOCK 1: 0x43334434 +BLOCK 2: 0x45350000 +``` + +Each block is then byte swapped (i.e. read each sequence of two digits from right to left) + +``` +BLOCK 0: 0x32423141 +BLOCK 1: 0x34443343 +BLOCK 2: 0x00003545 +``` + +And then you can finally persist it by changing the configuration file + +```sh +# vi /config/scfg.txt +``` + +Append lines below to the file and save it to change the PLOAM password + +``` +INT CFG_ID_PON_REGISTRATION_ID0 = 0x32423141; +INT CFG_ID_PON_REGISTRATION_ID1 = 0x34443343; +INT CFG_ID_PON_REGISTRATION_ID2 = 0x00003545; +``` + +Reboot the ONT to apply the change. + ## Setting ONU GPON LOID and LOID password @@ -330,7 +419,7 @@ Reboot ONT to apply the change ```sh # fw_setenv img_version0 20220527052622 -# fw_setenv img_version0 20220527052622 +# fw_setenv img_version1 20220527052622 ``` Reboot ONT to apply the change @@ -381,8 +470,6 @@ Reboot ONT to apply the change ## Changing OMCC Version -{% include alert.html content="In Italy, if you are under some Huawei OLT it's mandatory to use 0xA3, while on Alcatel 0xB4, otherwise you will get O5 status but no MIBs - Note that this can be quirk of TIM Italy" alert="Warning" icon="svg-warning" color="red" %} - ```sh # vi /config/scfg.txt diff --git a/assets/js/LTF7267-BHA-ploam.js b/assets/js/LTF7267-BHA-ploam.js new file mode 100644 index 0000000..57cd307 --- /dev/null +++ b/assets/js/LTF7267-BHA-ploam.js @@ -0,0 +1,28 @@ +function hexEncode(str){ + var hex, i; + + var result = ""; + for (i=0; i0; j--) { + new_ploam_segment = new_ploam_segment + ploam_segment.slice((j-1)*2, j*2); + } + if(new_ploam_segment !== "00000000") { + array.push("INT CFG_ID_PON_REGISTRATION_ID"+i+" = 0x"+new_ploam_segment+";"); + } + } + return array.join("\n"); +} \ No newline at end of file -- cgit v1.2.3