aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrowe67 <[email protected]>2024-03-28 07:39:00 +1030
committerDavid Rowe <[email protected]>2024-03-28 07:39:00 +1030
commit3c761467659fb6d4776fc59075d7d32e99b9b156 (patch)
tree0fb7016efbbe12ad99177b65faf2052e9cff6f84
parentbabaecccb95190677dd5974a445bde480cbf2f09 (diff)
work out packet duration including pre/postamble
-rw-r--r--doc/modem_codec_frame_design.odsbin44305 -> 44489 bytes
-rw-r--r--octave/ofdm_helper.m3
2 files changed, 2 insertions, 1 deletions
diff --git a/doc/modem_codec_frame_design.ods b/doc/modem_codec_frame_design.ods
index ab51e22..040ba01 100644
--- a/doc/modem_codec_frame_design.ods
+++ b/doc/modem_codec_frame_design.ods
Binary files differ
diff --git a/octave/ofdm_helper.m b/octave/ofdm_helper.m
index b34ec23..38c0248 100644
--- a/octave/ofdm_helper.m
+++ b/octave/ofdm_helper.m
@@ -44,7 +44,8 @@ function print_config(states)
printf("Nc=%d Ts=%4.3f Tcp=%4.3f Ns: %d Np: %d\n", Nc, 1/Rs, Tcp, Ns, Np);
printf("Nsymperframe: %d Nbitsperpacket: %d Nsamperframe: %d Ntxtbits: %d Nuwbits: %d Nuwframes: %d\n",
Ns*Nc, Nbitsperpacket, Nsamperframe, Ntxtbits, Nuwbits, Nuwframes);
- printf("uncoded bits/s: %4.1f\n", Nbitsperpacket*Fs/(Np*Nsamperframe));
+ printf("uncoded bits/s: %4.1f Duration (incl post/preamble): %4.2f s\n",
+ Nbitsperpacket*Fs/(Np*Nsamperframe), (Np+2)*Ns*(Tcp+1/Rs));
end
%-----------------------------------------------------------------------