Commit Graph

4 Commits

Author SHA1 Message Date
Georgi Gerganov
be44800fa0 Adding support for variable data length
The length of the data is encoded in the first 3 bytes of the transmission:
  - Byte 0: data length
  - Byte 1: ECC
  - Byte 2: ECC

For this type of transmission it is necessary to add an "end-of-message"
marker at the end of the Tx. This marker is used by the receiver to
understand when the transmission is over. At this point the receiver starts
analyzing the recorded data. First, the data length is decoded. After, this
length is used to try to decode the remaining data.

The number ECC bytes used for the payload is calculated as 2*(N/5), where N
is the length of the payload.
2018-05-31 19:19:37 +03:00
Georgi Gerganov
f1aad28b21 Reduce binary size to ~1MB
- Recompiled main.cpp with -s WASM=1
- Recompiled FFTW with O3 flag
2018-05-21 18:49:31 +03:00
Georgi Gerganov
77d9f646f8 Init the code only after the user presses a button 2018-05-04 19:06:17 +03:00
Georgi Gerganov
0edc8bdced Fix compile script name 2018-05-01 19:01:51 +03:00