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

呼和浩特网站seoseo关键词外包

呼和浩特网站seo,seo关键词外包,做企业网站有哪些系统,网站百度突然不收录了文章目录 一、创建云平台产品设备二、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.上板

在这里插入图片描述
上传了3种数据,分别是温度。湿度。光照强度。实测成功

在这里插入图片描述
在这里插入图片描述

演示视频:

基于fpga的数据上云展示平台,esp8266模块连接fpga开发板和中国移动onenet

总结

踩得坑:正点原子的esp8266模块不用刷固件,mqtt直接用,买其他的esp8266 -01需要刷固件,我还没买底座,比较麻烦,后来索性换了正点原子的wifi模块。其实用其他的效果一样,都是AT指令+MQTT,只不过需要刷固件。

参考:CSDN大佬们 ID:紧邻的二氧化碳

虽然但是fpga做这些没什么优势,但是架不住有些毕业设计需要,emmmm当个参考吧。

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

相关文章:

  • 室内效果图用什么软件做最好深圳seo网络推广
  • 网站后台用什么语言合适河南自助建站seo公司
  • 盐山网站制作新闻头条今日要闻国内新闻最新
  • 怎么用DREAMWAVER做网站教育培训网站官网
  • 如何做网站内链上海企业推广
  • 昆山网站百度竞价价格查询
  • 广东汕头最新消息绍兴seo排名
  • 青海玉树网站建设网站seo搜索引擎优化怎么做
  • 什么是网站外链杭州seo培训
  • 局域网网站建设书籍百度推广开户费用多少
  • 重庆网络安全公司排名seo是干什么的
  • 深圳做网站最好的公司品牌营销推广
  • 做618购物网站的总结做网站设计的公司
  • 整套html企业网站模板seoheuni
  • 珠海网站制作推广营销公司排名
  • 汽车做网站外贸接单网站
  • 网站禁止复制长尾关键词挖掘工具
  • 上海网站建设专业公司哪家好营销渠道
  • 一键发布多个自媒体平台百度关键词优化软件怎么样
  • 吸引企业做网站的文章内容市场营销手段13种手段
  • 交友网站初期怎么做有效获客的六大渠道
  • 网站 快照 更新慢品牌传播方案
  • wordpress akismet西安seo优化系统
  • 福州seo公司网站seo关键词优化推广
  • 省建设厅网站安徽网站优化排名网站
  • 个人网站开发的背景搜索引擎营销的6种方式
  • 鞍山58同城网北京网优化seo优化公司
  • 建设门户网站的目的和需求百度一下你就知道首页官网
  • jsp和php做网站那个快网站诊断分析
  • 网站后台根据前端做吗建个网站费用多少