首页 > 其他分享 >assert failed: tcpip_send_msg_wait_sem IDF/components/lwip/lwip/src/api/tcpip.c:455 (Invalid mbox)

assert failed: tcpip_send_msg_wait_sem IDF/components/lwip/lwip/src/api/tcpip.c:455 (Invalid mbox)

时间:2022-08-29 16:22:33浏览次数:70  
标签:src lwip thread api 线程 sem tcpip

assert failed: tcpip_send_msg_wait_sem IDF/components/lwip/lwip/src/api/tcpip.c:455 (Invalid mbox)
assert failed: tcpip_send_msg_wait_sem IDF/components/lwip/lwip/src/api/tcpip.c:455 (Invalid mbox)

UIS8910DM平台移值LwIP的方式和推荐的不太一样。

(1)没有创建 tcpip_thread 线程,把需要在 tcpip_thread 执行的代码,移植到 net_thread 线程上。该工作通过修改 tcpip_thread() 函数和异步调用函数(如tcpip_inpkt、tcpip_callback_with_block、tcpip_send_msg_wait_sem、tcpip_api_call)的实现来完成。

(2)设置 LWIP_TCPIP_CORE_LOCKING = 1

(3)对网络设备的数据处理,通过线程 callback的方式,运行在 net_thread 线程上。

综上所述,UIS8910DM平台上,socket层的主动调用基本都运行在调用者的线程上,而接收数据的协议栈内的处理运行在 net_thread 线程上,然后通过消息队列将异步事件通知给使用者。
 
原文链接:https://blog.csdn.net/Jonee_Pan/article/details/108110681

 

标签:src,lwip,thread,api,线程,sem,tcpip
From: https://www.cnblogs.com/hshy/p/16636348.html

相关文章

  • 软件开发需要了解的计算机网络知识 - OSI参考模型和TCPIP模型
    OSI参考模型的产生背景:-各大IT设备厂商只支持自己的私有协议,跨厂商设备兼容性差-用户购买和维护成本高-不利于网络技术发展 OSI参考模型的概念:定义了网络中设备所遵......
  • tcpip详解-读书笔记
    TCP/IP详解卷一第一版读书笔记第一章:应用层关心是应用程序的细节,而不是数据在网络中对的传输活动,下三层对应用程序一无所知,但他们要处理所有的通信细节。七层代理可......
  • Blazor与typeSrcipt交互
    创建Blazor项目创建新的BlazorWebAssemblyApp将其命名为BlazerWithTSInterop在您选择的目录中。仅使用.NET6.0客户端,无安全性且无PWA。CTRL+F5在热重载模......
  • 图解tcpip(第5版) pdf
    高清扫描版下载链接:https://pan.baidu.com/s/16Owjujj9v7AHYp408FHgKg点击这里获取提取码这是一本图文并茂的网络管理技术书籍,旨在让广大读者理解TCP/IP的基本知识、掌握......
  • ESP32-S2 lwip
    I'mnotabigexpertinlwIP,butIthinkthecodeiscorrect,sinceIspenttimedebuggingitonESP32anditworksverywellthere.Ifonecodefortransmitt......
  • 如何給html5的video的src地址不以明文方式顯示,以防止下載
    chrome:chrome的video標籤支持srcredirect。<videoid="video"src="{:U('/Portal/Video/token')}"autoplay="true"controlstype="video/mp4"class="videoplayer"po......
  • React 项目中配置 `@` 符号来代替 `src` 目录
    1.主要是修改两个配置文件:craco.config.js和tsconfig.json。//craco.config.jsconstpath=require("path");//定义函数resolve,将你想要自定义的路径和js的根路......