Re: [PATCH bluetooth-next] at86rf230: increase sleep to off timings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Am 04/19/2016 um 04:41 PM schrieb Stefan Schmidt:
> Hello.
>
> On 19/04/16 15:34, Alexander Aring wrote:
>> I expierenced when setting channel while sleep mode it didn't changed
>> the channel inside the hardware registers. Then I got another report of
>> an user which has similar issues.
>>
>> I increased the sleep to off state change timing, which is according
>> at86rf233 at maximum 1000 us. After this change I got no similar effects
>> again.
>>
>> I tried another option to wait on AWAKE_END irq, which can be used to
>> wait until the transceiver is awaked. I tested it and the IRQ took 4
>> seconds after starting state change. I don't believe it takes 4 seconds
>> to go into the TRX_OFF state from SLEEP state. The alternative is to
>> increase the timings which seems to work.
>
> Nicely spotted. Increasing the timing is fine here I think. Given the datasheet actually assumes a maximum of 1000 us we should allow for it as well.
>
> Did you also check the maximum timing for 231 and 212 in the datasheet? Just to make sure they are not different (for example higher).

No the datasheets differs much here, there are 380 us only. I set it now to 1 ms,
because it's not really a hotpath yet where this is used.

Alternative would be to use IRQ_CCA_ED, which is multi-funcional irq. That means
it can also used to indicate (IRQ_AWAKE) to be sure the transceiver is _really_
awake when doing spi cmds. I tested it and saw it took 4 seconds to get such IRQ
after state switch from SLEEP to TRX_OFF.

This occurs that commands like link up commands for the first time on one phy
for one interface can took above ~10 seconds. It's better we wait 1ms to be sure
and I think the IRQ_AWAKE mechanism isn't good to use in practice.

btw: I expierence similar issues with recalibrate PLL with registers to recalibrate the
PLL. But doing a state change to OFF and RX_ON/TX_ON will do the same and works
better.

- Alex
--
To unsubscribe from this list: send the line "unsubscribe linux-wpan" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux