Image
Image

纠结的那些年

+ 关注

粉丝 0     |     主题 29     |     回帖 453

STM32 消息队列处理串口发送的报文
2024-3-31 22:42
  • ST MCU
  • 6
  • 215
  小结 使用队列后,解决丢包现象。可靠性得到进一步保证。  
  队列中取出数据解包 --请根据自己的实际进行修改 struct CommData recvData_U2H; void Usart2_ParameterHa ...  
  中断接收报文-进行判断 void USART2_IRQHandler(void) { struct CommData recvData_U2; unsigned char da ...  
  从队列中取出 uint8_t QUEUE_get(struct CommQueue *queue,struct CommData *data) { uint8_t rtl=1; __ ...  
  添加到队列 uint8_t QUEUE_add(struct CommQueue *queue,struct CommData data) { uint8_t rtl = 1; __ ...  
  初始化----主函数调用 struct CommQueue sendQueue,recvQueue; void QUEUE_init(struct CommQueue *queue) ...  
  概要 本文写自正在做的项目,需要使用串口2处理EasyModBus传输的报文,原本采用中断处理的方式,在屏幕,按 ...  
记录一次ping不通的解决方法
2024-3-31 22:40
  • ST MCU
  • 0
  • 210
使用STM32F103控制蜂鸣器发声播放音乐
2024-1-29 15:27
  • ST MCU
  • 6
  • 49
不正确的电源和地连接可能导致通信不稳定或失败。
2024-1-19 12:56
  • ST MCU
  • 11
  • 94
在STM8L上使用SPI1进行基本读写一般步骤---代码简化示例
2023-12-31 13:54
  • ST MCU
  • 0
  • 76
在使用DM9051 SPI以太网模块时,有遇到过网络异常吗,以及如何解决?
2024-1-3 15:06
  • 雅特力AT32 MCU
  • 4
  • 485
AT32F413网络扩展实践:整合DM9051 SPI以太网模块
2024-2-1 09:56
  • 雅特力AT32 MCU
  • 6
  • 327
STM32智慧农业
2023-12-29 14:55
  • ST MCU
  • 9
  • 797
2
3
近期访客