Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ec200x 4G模块直吐模式导致数据丢失严重 #181

Open
largesun opened this issue May 7, 2022 · 2 comments
Open

ec200x 4G模块直吐模式导致数据丢失严重 #181

largesun opened this issue May 7, 2022 · 2 comments

Comments

@largesun
Copy link

largesun commented May 7, 2022

在调试移远EC600N模块时发现,at socket接收大量数据时,出现内存分配失败的现象,后面跟踪发现底层使用的直吐模式,有数据过来时mcu直接calloc缓存,当数据量大点时,比如下载几十KB或者更大的文件时,大量数据直接挤爆mcu的内存,导致出现因内存直接丢弃数据,建议使用模块的缓存模式和QIRD命令实现底层的at_socket,提高可靠性

@qiyongzhong0
Copy link
Contributor

qiyongzhong0 commented Jun 7, 2023

模块缓存也是有限的,使用缓存模式并不能解决数据积压问题,还可能会引入数据延迟问题和遗漏问题。

@yangpengya
Copy link
Contributor

传输大量数据一般都是在传输协议上做控制,比如服务器每发送几KB就等待MCU处理确认,MCU处理完一帧服务器再发下一帧。每次发几KB可以取决于应用接收缓存。MCU SRAM大接收缓存就可以开大点。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants