Giter Site home page Giter Site logo

ctce8_cfg_tool's People

Contributors

corberan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ctce8_cfg_tool's Issues

关于ctce8_F663NV3a.cfg的适配

运行程序出现如下错误:
thread 'main' panicked at 'attempt to subtract with overflow', src/main.rs:319:8
输出调试信息发现:
input_file_size is 28672
special_file_size is 31132
手动更改如图所示处的文件大小为6f 80后出现如下错误:
UnpackError(UnpackError { reason: "文件格式不正确,cfc header magic位 校验失败" })
图片

H2-2 解析失败

头部结构变了很多,猜不出新的布局,CTCE8HeaderPart1, special_file_size, CTCE8HeaderPart2 勉强可以对应上,但是 device_model_name 和 CfgHeader 找不到

image

ctce8_F673AV9.cfg UnpackError

UnpackError(UnpackError { reason: "文件格式不正确,cfc header magic位 校验失败" })

机型:移动定制光猫 ZXHN F673AV9
可以通过附件发给 corberan 兄看看能解么?

移动光猫 H60G 解包失败

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)" })

移动光猫F633N文件头格式不同于程序中格式

我尝试着用你的程序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]

希望能为你适配更多机型提供帮助。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.