Comments (5)
If device reboots (ot::Instance
re-initialized) we don't have any way to tell how long it is been off .
from openthread.
@abtink we could persist the last time the device was in router role and use that to calculate the duration when thread starts again right?
from openthread.
No it wont be possible since there is no notion of a (universal) clock time in OT that would persist over reboots and.or ot::Instance
re-inits.
The otPlatAlarmMilliGetNow()
(which maps to TimerMilli::GetNow())
is always used relative to another time value captured within the same run.
from openthread.
Thanks @abtink . Is there a reason we cannot use gettimeofday for this?
from openthread.
OpenThread is designed to be portable and run across different platforms and operating systems. We define a set of otPlat
APIs that OpenThread uses and expects the platform to provide. To maintain this portability, we restrict the use of external library functions. gettimeofday
is specific to certain platforms (POSIX/Unix). Also I think gettimeofday
may not necessarily be correct upon a device reboot on an embedded linux platform.
Regarding the enhancement you are suggesting to not send initial link requests in certain situations, I am not sure it worth all the complexity it can potentially add. And it may require changes to Thread spec. The process is specified in Section "4.7.1.3. Router Synchronization after Reset".
from openthread.
Related Issues (20)
- openthread-br on openwrt 23.05.03 thread device no fd11 address
- CLI unresponsive after multi-count ping command HOT 2
- test_srp_auto_host_address.py 5 failing /100 runs HOT 9
- unexpected test failing test_mlr_multicast_routing_across_thread_pans.py HOT 1
- unexpected test failing test_manual_maddress.py
- Data poll delayed when receiving fragmented packets HOT 8
- HardFault during otInstance initialization HOT 1
- Reading information from socket failed (Apple Homepod mini as Thread Border Router)
- Segmentation fault occurs in CLI - CoAP Example when using block-wise. HOT 6
- Add ICMPv6 Destination Unreachable sending for Border Router (SPEC-1218)
- Unit test for multipan isn't run by CI
- `dataset` pending failures HOT 9
- ot-ctl does not exit
- support all the otCoapSend*WithParameters but for otCoapSecure HOT 2
- There are some cases where OT (or Matter) loses track of matter services HOT 6
- SRP client registers mesh-local IP address in some topology scenarios HOT 2
- How to tune OPENTHREAD_CONFIG to 32 child per parent HOT 1
- [Thread 1.3.x / 1.4] related OT PRs and Thread JIRAs
- Address queries are forwarded by the node even though it is the one which resolves the address HOT 12
- Intermittent CoAP ACK Reception Issues with Multiple nRF52840 Nodes in Thread Network HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openthread.