|
我在24L01的手册上看到了有the Carrier Detect functionality 这个功能,
In RX mode a carrier detect signal is avaliable. The carrier detect is a signal that is set high when a RF signal
is detected inside the receiving frequency channel. The signal must be FSK modulated for a secure
detection. Other signals can also be detected. The Carrier Detect (CD) is set high when an RF signal is
detected in RX mode, otherwise CD is low. The internal CD signal is filtered before presented to CD register.
The RF signal must be present for at least 128μs before the CD is set high. How to use the CD is described
当接收端检测到射频范围内的信号时会把CD的最后一位变高,同时会保持128US。如是在Enhanced ShockBurst™ 模式下,使用方法如下:
In Enhanced ShockBurst™ it is recommended to use the Carrier Detect functionality only when the PTX
device does not succeed to get packets through, as indicated by the MAX_RT IRQ for single packets and by
the packet loss counter (PLOS_CNT) if several packets are lost. If the PLOS_CNT in the PTX device indicates
a high rate of packet losses, the device can be configured to a PRX device for a short time (Tstbt2a +
CD-filter delay = 130μs+128μs = 258μs) to check CD. If CD was high (jam situation), the frequency channel
should be changed. If CD was low (out of range or jammed by broadband signals like WLAN), it may continue
on the same frequency channel, but you must perform other adjustments (a dummy write to the
RF_CH clears the PLOS_CNT).
就是只有在发送端没有发送成功的情况下,再去变成接收模式,去检测CD。我现有的一个问题,我想在发送前去读一下CD。在读CD时是接收态的。这样是为了防止空中的碰撞。我在测试,有一个模块我记它一直发数据。别一个一直while去读CD。有一个问题是,是刚开始可以读到CD是高,只会读到2次。再就没有了,我不知道是不是在读完CD后,还要请一些寄存器。有做过24L01的朋友,请指点一二,就是载波检测功能的使用??? |
|