corberan / ctce8_cfg_tool Goto Github PK
View Code? Open in Web Editor NEWA tool for packing/unpacking ZTE Optical Modem configuration file
A tool for packing/unpacking ZTE Optical Modem configuration file
:-(
UnpackError(UnpackError { reason: "文件格式不正确,cfc header magic位 校验失败" })
UnpackError(UnpackError { reason: "文件格式不正确,cfc header magic位 校验失败" })
机型:移动定制光猫 ZXHN F673AV9
可以通过附件发给 corberan 兄看看能解么?
UnpackError(UnpackError { reason: "文件格式不正确,cfc header magic位 校验失败" })
ctce8_cfg_tool.exe unpack ctce8_ZXHN_F1855V2.cfg ctce8.xml
UnpackError(UnpackError { reason: "文件格式不正确,cfc header magic位 校验失败" })
PS C:\Users\Yue_plus\Desktop\e8_Config_Backup> .\ctce8_cfg_tool_x64.exe unpack .\ctce8_H60G.cfg .\ctce8_H60G.xml
UnpackError(UnpackError { reason: "文件格式不正确(CTCE8_HEADER_PART1)" })
我尝试着用你的程序unpack我的配置文件,发现它报出{reason: "文件格式不正确(CTCE8_HEADER_PART1)" }
在使用WinHex修改之后成功解码
以下为F633N的文件头部
00000000 99 99 99 99 44 44 44 44 55 55 55 55 AA AA AA AA
00000010 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00
00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40
00000040 00 02 00 00 00 00 00 80 00 00 6D A0 00 00 00 00
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000080 04 03 02 01 00 00 00 00 00 00 00 05 46 36 36 33
00000090 4E 01 02 03 04 …
(文件大小28192B,减128得28064,即0x6DA0)
对比代码可以看出:
F633N写入数据方式与代码中的相反(大端?小端?抱歉忘了是哪个了)
flag4 不是[0x02000000, 0x80000000]而是[0x00020000, 0x80000000]
希望能为你适配更多机型提供帮助。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.