-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sleep during twr_nranges_tdma #9
Comments
If you're adding sleep you will need to add wakeup before the next operation. But, as the timing of the next range exchange depends on the timer in the decawave running continously it will fail. The timer is stopped during sleep and thus the application will need to resync to the network. |
Thanks for your comment. But the same happens You mentioned that I should resync to the network upon wake up. |
The ntwr example sends out a blink every 1s. Every time a node/tag needs to resync you need to receive two of these blinks. |
Okay I get it. Can you recommend me an example. In the beginning of the slot_cb() i have added uwb_wakeup(udev). Will the resync happen automatically after call of this function ? If not how to do so ? Thank you for your support. |
You need to do a bit more work to tear down the tdma and ccp stacks and then restart them.
|
i tried working out with your functions, but it still shows up slot_timer_cb_:start_tx_error Please look into this code i used in main.c static void slot_cb(struct dpl_event * ev){
} Please help. |
i am trying to add sleep just like in the example of tdoa_tag
/* Enter sleep */
uwb_phy_forcetrxoff(udev);
uwb_phy_rx_reset(udev);
uwb_sleep_config(udev);
uwb_enter_sleep(udev);
after nrng_complete_cb(struct dpl_event *ev) is called. The code is able get the pan slot_id and compute the distance only for once, after that it shows
slot_timer_cb_....start_tx_error
please help me resolve this issue.
Thanks
The text was updated successfully, but these errors were encountered: