充电桩设计之4G模块 初始化
【摘要】
int dx_lte_init_check(void){ //rx at command response from 4g module //printf("uart2 rx at command *ext* response from 4g moduler\r\n"); //uart2_dma_send_data("...
-
int dx_lte_init_check(void)
-
{
-
//rx at command response from 4g module
-
//printf("uart2 rx at command *ext* response from 4g moduler\r\n");
-
//uart2_dma_send_data("uart2_dma_send test\r\n",strlen("uart2_dma_send test\r\n"));
-
uint32_t flags = 0;
-
flags = EVENT_FLAGS_UART2|EVENT_FLAGS_UART2_TX_COMPLETE;
-
printf("*****dx_lte_init_check\r\n");
-
flags = osEventFlagsWait(evt_id_uart, flags, osFlagsWaitAny, osWaitForever);
-
printf("*****dx_lte_init_check cb osEventFlagsWait flags =0x%08x\r\n",flags);
-
if(status_4g == -1)
-
{
-
uint8_t rcv_buf[30]= {0};
-
uint8_t rcv_len = 0;
-
int ret = 0;
-
uart2_rec_at_cmd_response(rcv_buf,&rcv_len);
-
printf("rcv_buf=%s rcv_len=%d\r\n",rcv_buf,rcv_len);
-
-
ret=strncmp(( const char *)rcv_buf,MODULE_4G_PDPDEACT,strlen(MODULE_4G_PDPDEACT));
-
if(ret==0)
-
{
文章来源: blog.csdn.net,作者:悟空胆好小,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/xushx_bigbear/article/details/122871643
【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)