RfidResearchGroup / ChameleonUltra

The new generation chameleon based on NRF52840 makes the performance of card emulation more stable. And gave the chameleon the ability to read, write, and decrypt cards.
https://chameleonultra.com
GNU General Public License v3.0
838 stars 144 forks source link

Increase initial button wakeup from 4 to 8 seconds #152

Closed aramova closed 10 months ago

aramova commented 11 months ago

Initial button press wakeup of 4 seconds is sometimes inadequate to establish BT connection.

This change will expand the Initial button wakeup from 4 seconds to 8 seconds.

Device sleep behavior after will be as follows: (Changed) Initial Button Wakeup to Sleep : 8s (No Change) Subsequent Button Action to Sleep : 4s Leaving RF Field wake to sleep : 3s BLE Disconnect to sleep : 4s USB Power Disconnect to sleep : 3s

Example behavior : User wakes device with Button B (8 Sec to sleep) User pushes button B again (Now 4 Sec to sleep) User Places device in RF field (Maintain wake) User removes device from RF field (3 sec to sleep)

If user discontinues the user journey at any point, the identified condition will invoke sleep at defined times.

github-actions[bot] commented 11 months ago

You are welcome to add an entry to the CHANGELOG.md as well

github-actions[bot] commented 11 months ago

Built artifacts for commit 7dc3c2366b4458c043c6caf74ee88577f4ccf650

Firmware

Client

spp2000 commented 11 months ago

Hi @aramova I want to test your delay (very useful for me!) but, if I flash the Ultra APP DFU above, I get the 98605be (master branch fw) that still have 4 sec delay. How to get the DFU package with 8 sec delay?

aramova commented 11 months ago

Hi @aramova I want to test your delay (very useful for me!) but, if I flash the Ultra APP DFU above, I get the 98605be (master branch fw) that still have 4 sec delay. How to get the DFU package with 8 sec delay?

You need to fetch and checkout the PR since the devs haven't merged it yet to test...

git clone https://github.com/RfidResearchGroup/ChameleonUltra.git cd ChameleonUltra/ git fetch origin pull/152/head:pr-152 git checkout pr-152 less firmware/application/src/utils/syssleep.h

Line 7 should now have a value of 8000

doegox commented 10 months ago

thanks! I merged it on top of branch wip_protocol_refresh : https://github.com/RfidResearchGroup/ChameleonUltra/pull/147/commits/f5b50aa3124c4b918130891220b71479407d218c because main is currently frozen till all clients are ready for wip_protocol_refresh to be merged into main (cf PR #147 ).