Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build from source

  1. Install rust (https://rustup.rs) and node (https://formulae.brew.sh/formula/node).

  2. Install the WASM target.

    rustup target add wasm32-unknown-unknown
  3. Build the interface.

    cd ui
    npm install
    cargo install --root extension/tools wasm-bindgen-cli@0.2.126
    npm run build
  4. Compile and run the server (CTRL-C to stop it).

    cd ../
    cargo run --release
  5. Open http://localhost:3000 in a browser.

Local development

  1. Build the interface with npm run watch.

  2. Open ./ui/build/index.html in a browser (the browser must support WebTransport, see https://caniuse.com/webtransport for compatibility).

  3. After making changes...

    • ...to a file in ./src, stop the server and run cargo run --release again.
    • ...to a file in ./ui/src, refresh the browser window (npm run watch automatically rebuilds ./ui/build/index.html when it detects source changes).
    • ...to a file in ./ui/extension, stop the watcher and run npm run watch again (extension files are only compiled when the watcher starts).

Format specification

Events (.raw.kai)

Byte Hex value ASCII Description
0 0x4B K Magic number
1 0x41 A Magic number
2 0x49 I Magic number
3 0x52 R Magic number
4 0x4F O Magic number
5 0x53 S Magic number
6 0x2D - Magic number
7 0x52 R Magic number
8 0x41 A Magic number
9 0x57 W Magic number
10 0x00 Version number
11 0x00 Format id (0 is EVT3)
12 [U0] Decoder state length (4 bytes LE)
13 [U1] Decoder state length (4 bytes LE)
14 [U2] Decoder state length (4 bytes LE)
15 [U3] Decoder state length (4 bytes LE)
16..16 + U Decoder state

The rest of the file contains raw EVT3 data.

USB packets timings (.index.kai)

Byte Hex value ASCII Description
0 0x4B K Magic number
1 0x41 A Magic number
2 0x49 I Magic number
3 0x52 R Magic number
4 0x4F O Magic number
5 0x53 S Magic number
6 0x2D - Magic number
7 0x49 I Magic number
8 0x4E N Magic number
9 0x44 D Magic number
10 0x45 E Magic number
11 0x58 X Magic number
12 0x00 Version number
13 0x00 Format id (0 is EVT3)

The rest of the file contains USB packets entries (packet offset in .raw.kai, computer timestamp, UTC time, and decoder state).

Samples (.samples.kai)

Byte Hex value ASCII Description
0 0x4B K Magic number
1 0x41 A Magic number
2 0x49 I Magic number
3 0x52 R Magic number
4 0x4F O Magic number
5 0x53 S Magic number
6 0x2D - Magic number
7 0x53 S Magic number
8 0x41 A Magic number
9 0x4D M Magic number
10 0x50 P Magic number
11 0x4C L Magic number
11 0x45 E Magic number
11 0x53 S Magic number
12 0x00 Version number
13 0x00 Format id (0 is Prophesee Gen4)

The rest of the file contains timestamped samples (illuminance and temperature).

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages