当前位置: 首页 > wzjs >正文

校园网站开发目的b2b平台是什么意思

校园网站开发目的,b2b平台是什么意思,wordpress建论坛,网站备案证图片文章目录 一、创建云平台产品设备二、FPGA仿真WIFI模块通信过程仿真分析2.上板 总结 一、创建云平台产品设备 使用串口助手测试传输过程 相关信息记录 二、FPGA仿真WIFI模块通信过程 仿真分析 //各个状态tx_dataalways (posedge clk or negedge rst_n) beginif(!rst_n) beg…

文章目录

  • 一、创建云平台产品设备
  • 二、FPGA仿真WIFI模块通信过程
    • 仿真分析
    • 2.上板
  • 总结

一、创建云平台产品设备

在这里插入图片描述
在这里插入图片描述
使用串口助手测试传输过程

在这里插入图片描述

相关信息记录
在这里插入图片描述
在这里插入图片描述

二、FPGA仿真WIFI模块通信过程

仿真分析

在这里插入图片描述

 //各个状态tx_dataalways @(posedge clk or negedge rst_n) beginif(!rst_n) beginuart_tx_data <= 8'd0;endelse if((state==AT) && tx_count<8'd6 ) beginuart_tx_data <= cmd_AT[47 - tx_count *8 -:8];endelse if((state==CWMODE) && tx_count<8'd15 ) beginuart_tx_data <= cmd_CWMODE[119 - tx_count *8 -:8];endelse if((state==RST) && tx_count<8'd10 ) beginuart_tx_data <= cmd_RST[79 - tx_count *8 -:8];endelse if((state==CWJAP) && tx_count<8'd31 ) beginuart_tx_data <= cmd_CWJAP[247 - tx_count *8 -:8];endelse if((state==CWDHCP) && tx_count<8'd17 ) beginuart_tx_data <= cmd_CWDHCP[135 - tx_count *8 -:8];endelse if((state==MQTTUSERCFG) && tx_count<8'd172 ) beginuart_tx_data <= cmd_MQTTUSERCFG[1375 - tx_count *8 -:8];endelse if((state==MQTTCONN) && tx_count<8'd45 ) beginuart_tx_data <= cmd_MQTTCONN[359 - tx_count *8 -:8];endelse if((state==MQTTSUB) && tx_count<8'd67 ) beginuart_tx_data <= cmd_MQTTSUB[535 - tx_count *8 -:8];endelse if((state==MQTTPUB) && tx_count<8'd123 ) beginuart_tx_data <= cmd_MQTTPUB[983 - tx_count *8 -:8];endelse beginuart_tx_data <= uart_tx_data;end
end
always @(posedge clk or negedge rst_n) beginif(!rst_n) beginstate <= IDLE;endelse begincase(state)IDLE:beginstate<=AT;endAT:begin//at testif(tx_count==8'd6)beginstate <= WAK_AT;endelse beginstate <= AT;endendWAK_AT:beginif(rx_count==8'd2)beginstate <= CWMODE;endelse beginstate <= WAK_AT;endendCWMODE:begin//set modeif(tx_count==8'd15)beginstate <= WAK_CWMODE;endelse beginstate <= CWMODE;endendWAK_CWMODE:beginif(rx_count==8'd2)beginstate <= RST;endelse beginstate <= WAK_CWMODE;endendRST:begin//at rstif(tx_count==8'd10)beginstate <= WAK_RST;endelse beginstate <= RST;endendWAK_RST:beginif(rx_count==8'd2)beginstate <= CWJAP;endelse beginstate <= WAK_RST;endendCWJAP:begin//at rstif(tx_count==8'd31)beginstate <= WAK_CWJAP;endelse beginstate <= CWJAP;endendWAK_CWJAP:begin//at rstif(rx_count==8'd2)beginstate <= CWDHCP;endelse beginstate <= WAK_CWJAP;endendCWDHCP:begin//at rstif(tx_count==8'd17)beginstate <= WAK_CWDHCP;endelse beginstate <= CWDHCP;endendWAK_CWDHCP:begin//at rstif(rx_count==8'd2)beginstate <= MQTTUSERCFG;endelse beginstate <= WAK_CWDHCP;endendMQTTUSERCFG:begin//at rstif(tx_count==8'd172)beginstate <= WAK_MQTTUSERCFG;endelse beginstate <= MQTTUSERCFG;endendWAK_MQTTUSERCFG:begin//at rstif(rx_count==8'd2)beginstate <= MQTTCONN;endelse beginstate <= WAK_MQTTUSERCFG;endendMQTTCONN:begin//at rstif(tx_count==8'd45)beginstate <= WAK_MQTTCONN;endelse beginstate <= MQTTCONN;endendWAK_MQTTCONN:begin//at rstif(rx_count==8'd2)beginstate <= MQTTSUB;endelse beginstate <= WAK_MQTTCONN;endendMQTTSUB:begin//at rstif(tx_count==8'd67)beginstate <= WAK_MQTTSUB;endelse beginstate <= MQTTSUB;endendWAK_MQTTSUB:begin//at rstif(rx_count==8'd2)beginstate <= MQTTPUB;endelse beginstate <= WAK_MQTTSUB;endendMQTTPUB:begin//at rstif(tx_count==8'd123)beginstate <= WAK_MQTTPUB;endelse beginstate <= MQTTPUB;endendWAK_MQTTPUB:begin//at rstif(rx_count==8'd2)beginstate <= IDLE;endelse beginstate <= WAK_MQTTPUB;endenddefault:state <= IDLE;endcaseendend

接收数据判断只是简单做了一下,因为是正确回应的话所有的指令最后都是OK。所以可以一直缓存16位数据,当持续时间大于串口接受结束标志之间的间隔后进行判断,如果最后接收到的缓存16位数据是“OK”,则进入下一个状态即可,仿真只是检验一下过程,没做这一块。

按照第一部分设置的AT指令进行发送,主要就是一个状态机,一个是数据缓存发送。

2.上板

买的模块还没到,等到了再加上这部分内容。


总结

持续更新…

http://www.dtcms.com/wzjs/139312.html

相关文章:

  • 网站建设员工分工如何推广一个网站
  • 衢州 做 网站简述什么是网络营销
  • html手机模板提供搜索引擎优化公司
  • 网上作业网站怎么做的新东方教育培训机构
  • 国外网站建设官网广告软文小故事200字
  • 如何做网站首页的psd图在线代理浏览网页
  • 网站制作过程简介销售平台排名
  • 凡科的模板做网站互联网服务平台
  • 浏览器网站在线进入关键词优化
  • 个人网站需公安备案吗广州网络seo公司
  • 网站开发公司面试题收录网站是什么意思
  • wordpress解决速度新的seo网站优化排名 网站
  • 建网站难不难南京百度关键字优化价格
  • 淮安 做网站 app链接
  • 设计建设网站公司新东方
  • 有哪些可以做兼职的网站官网制作公司
  • 长春做网站哪里好武汉seo搜索引擎优化
  • 邯郸网站建设公司哪家好软文关键词排名推广
  • 阜阳市网站建设广西网络优化seo
  • 建设网站西安关键词你们懂的
  • aspnet网站建设十堰seo优化方法
  • 乌海品牌网站建设如何注册一个自己的网站
  • web网站开发学院搜索引擎yandex入口
  • 宁波网站建设58同城百度收录站长工具
  • 株洲网站搜索优化东莞网络推广策略
  • 专业的网站建设服务做个网页需要多少钱?
  • 优秀产品设计seo搜索引擎优化技术
  • 手机版网站优化磁力岛
  • 程序员不是做网站的电商运营平台
  • 手机网站怎么建百度极简网址