AP日志的抓取与分析

# 相关软件下载地址如下: - [LUA Tools](https://cdn.openluat-luatcommunity.openluat.com/attachment/20200808182655634_Luatools_v2.exe) - [cool watcher](http://openluat-erp.oss-cn-hangzhou.aliyuncs.com/erp_site_file/product_file/%5B%E9%9D%9E%E9%87%8F%E4%BA%A7%E7%89%88%E6%9C%AC%5Dsw_file_20210426163005_cooltools-win32_custom_2020-05-09-6c0c5e17.7z) - [wire shark](https://www.wireshark.org/download.html) - [postman](https://www.postman.com/downloads/) 1、以空中升级为例,分析模块空中升级的HTTP请求。 2、打开LUA Tools软件并重启模块(为重新获取一次完整日志,问题复现后关闭luatools,以避免产生干扰日志不方便查找)。 3、资源管理器中进入LUA Tools所在目录,->log->4gdiag。找到最近一次luatools保存的bin文件,。 4、打开cool watcher,选择8910。 ![image.png](https://cdn.openluat-luatcommunity.openluat.com/images/20210624152233725_image.png) 5、Plugins->Activate Tracer ![image.png](https://cdn.openluat-luatcommunity.openluat.com/images/20210624152255906_image.png) 6、设置日志自动保存,Trace tool->set trace levels ![image.png](https://cdn.openluat-luatcommunity.openluat.com/images/20210624152313880_image.png) 7、勾选Save Pcap ![image.png](https://cdn.openluat-luatcommunity.openluat.com/images/20210624152345444_image.png) 8、加载luatools保存的日志文件 ![image.png](https://cdn.openluat-luatcommunity.openluat.com/images/20210624152400605_image.png) 9、选择打开,在luatools所在的文件夹中->log->4gdiag->luatools保存的.bin文件 ![image.png](https://cdn.openluat-luatcommunity.openluat.com/images/20210624152425236_image.png) 10、加载完成后,可在coolwatcher的日志文件夹中找到.cap文件。coolwatcher所在文件夹->logs->cap ![image.png](https://cdn.openluat-luatcommunity.openluat.com/images/20210624152444143_image.png) 11、使用wireshark即可以打开cap文件 ![image.png](https://cdn.openluat-luatcommunity.openluat.com/images/20210624152503046_image.png)