For the nRF24L01 wireless sending and receiving module, it uses two ways to process data packets, one is the ShockBurstTM mode, and the other is the enhanced ShockBurstTM mode. Both of these data packet processing methods use the micro control unit. The MCU and nRF24L01 wireless transmit and receive modules are connected to each other through a serial peripheral interface SPI. <br>① ShockBurstTM mode <br>When the ShockBurstTM mode is used to receive the signal, if the receiving end receives the accurate address and data, then the receiving end informs the micro control unit through interrupt request IRQ that the MCU information has been accurately received, and then the micro control unit passes the RXFIFO The register reads the received address and data. When using this mode for data and address transmission, a cyclic redundancy check code can be automatically generated. When the data is completely sent, the interrupt request IRQ at the receiving end informs the micro control unit that the MCU information has been sent, which can greatly reduce the micro control. The unit MCU queries the information deterministically, thereby improving work efficiency. In addition, the nRF24L01 wireless communication module contains two types of registers, one is the RXFIFO register, and the other is the TXFIFO register. Whether in transceiver mode, shutdown mode, or idle mode, the MCU can control the FIFO register. Conduct an interview. <br>② Enhanced ShockBurstTM mode <br>For the enhanced ShockBurstTM mode, it maintains the workload of the MCU of the micro-control unit, and has both an automatic answer function and an automatic retransmission function. Its main process is as follows: First, the sending end sends out a signal, and when the receiving end receives the address and data sent out, it will reply to the sending end through the automatic answer function, and then the sending end will detect the feedback information. If the information detection is correct, the sending end continues to send the next message. If the information detection is incorrect, the automatic retransmission function is executed until the information is transmitted correctly. In addition, the response and retransmission functions in the enhanced ShockBurstTM mode are automatically run without manual operation. It can be seen from this that using the enhanced ShockBurstTM mode to process data packets has the advantages of low power loss, low cost, and strong anti-interference.<br>After comprehensive consideration, so in this design we use the enhanced ShockBurstTM mode to process the data packet. <br>(2) Automatic answering function The <br>automatic answering function mainly serves the information receiving end. The automatic answering function means that when the receiving end receives the signal, the receiving end will automatically feed back information to the sending end, so as to detect the accuracy of the information well. When the information is confirmed to be correct, the system will enter the normal working state. This function greatly reduces the workload of the micro control unit MCU, reduces current consumption, and greatly improves work efficiency. <br>(3) Automatic retransmission function The <br>automatic retransmission function mainly serves the information sending end. When the sending end detects that the feedback information of the receiving end is correct, then the system will enter the normal working mode, if the sending end has no data to be sent, then the sending end enters the idle mode. Once an error in the feedback information is detected, the system automatically returns to the sending mode to retransmit the erroneous data until the data is accurate.
正在翻译中..