Comments (5)
The bridge script assumes that it runs on the same device as the app and therefore has access to the same clock (this is the case we have with ChromeOS where the bridge is needed because the app has no access to USB).
It's possible to get rid of this assumption by using the WaltDevice.simpleSyncClock()
Call it in WaltDevice.syncClock()
instead of the connection.syncClock()
here
https://github.com/google/walt/blob/master/android/WALT/app/src/main/java/org/chromium/latency/walt/WaltDevice.java#L220
I think with the simpleSyncClock()
your setup should work ok, but the clock synchronization accuracy will be lower, probably in the order of 2-4 ms.
Thanks for the detailed description of your setup, it sounds interesting.
from walt.
This does help indeed thanks.
Now, at the end of the test pass (like after 20 taps on tap latency), when doing calling updateLag, the python bridge kills itself because it isn't properly initalized
Here is the stack trace
w>: '6724782\n'
w<: 'bridge update'
bridge command: bridge update, pausing ser2net thread...
Paused ser2net thread
Traceback (most recent call last):
File "walt.py", line 707, in <module>
run_tcp_bridge(args)
File "walt.py", line 691, in run_tcp_bridge
srv.serve()
File "walt.py", line 640, in serve
self.connections_loop()
File "walt.py", line 602, in connections_loop
self.net2ser_loop()
File "walt.py", line 617, in net2ser_loop
data = self.net2ser(data)
File "walt.py", line 570, in net2ser
self.walt.estimate_lag()
File "walt.py", line 231, in estimate_lag
times_local_received[i] = time.time() - self.base_time
TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'
from walt.
There is no implementation for "simple" updateLag. The workaround is to comment out the call to either updateLag()
on Java side or estimate_lag()
on Python side. It doesn't provide useful data anyway.
What sync accuracy are you getting?
When syncing it displays Remote clock: .... lagBounds = (0, x)
It means that the WALT clock is behind the Android clock by at most x us.
from walt.
Thanks this works.
Loss of clock accuracy seems to be around 3ms when averaged.
Latency is quite random between 4ms and 11ms
from walt.
For reference, here is my current diff:
http://pastebin.com/mndUN7P4
from walt.
Related Issues (20)
- Latency measurements for other devices?
- Create a form where developers can request a WALT device HOT 2
- WALT firmware for Adafruit ADXL335 board
- Tap Latency test should show average latency HOT 1
- Add AAudio support
- Hello ,I am a Chinese, I cant buy Something in "https://oshpark.com", where can I get the machine? HOT 1
- building with gradle-experimental, and it should be using CMake HOT 1
- WALT app is not displaying properly on an Android TV device
- Cannot connect my phone. to the WALT
- UsbSerialDevice read callback method is not working
- tap latency need accelerometer HOT 6
- About fastpath mode in screen latency test HOT 4
- Security Policy violation Binary Artifacts HOT 6
- Allow for configurable screen transition thresholds
- Jack detection on some devices HOT 1
- Allow resizing the window on ChromeOS
- Allow scrolling log in tap/drag latency tests
- Show help tooltips when help icon is pressed for each test
- Exception when brightness curve, then blink test
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 walt.