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 --- assets/js/LTF7267-BHA-ploam.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 assets/js/LTF7267-BHA-ploam.js (limited to 'assets') 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