Comments (1)
TX and RX PDU sizes can be different. Transmit maximum size is configurable via table using outgoing_file_chunk_size as defined below. Note the actual TX PDU also includes the PDU header which is variable size. The CCSDS header also needs to be accounted for to get to the final size over the SB.
CF/config/default_cf_tblstruct.h
Lines 51 to 52 in 27dcaf5
CF_MAX_PDU_SIZE is defined in the interface header here, note this includes the PDU headers but not the CCSDS header:
CF/config/default_cf_interface_cfg.h
Lines 94 to 95 in 27dcaf5
The outgoing_file_chunk_size is limited by this structure size:
Lines 371 to 381 in 27dcaf5
Note the comment below is actually misleading, since CF gets a buffer from SB and writes from the file to it directly:
Lines 460 to 462 in 27dcaf5
On the receive side the PDU is processed "in place", so it isn't restricted by local CF buffer sizes. There's a misleading comment here:
Lines 455 to 458 in 27dcaf5
Note that there is a structure defined below, but it's only used for size checking of outgoing_file_chunk_size and not directly:
Lines 371 to 381 in 27dcaf5
This comment is also wrong, since outgoing_file_chunk_size is common across channels:
CF/config/default_cf_interface_cfg.h
Lines 87 to 89 in 27dcaf5
Also no longer applicable:
Lines 413 to 415 in 27dcaf5
from cf.
Related Issues (20)
- Fix typo in Requirement CF2002.1.3
- Various type mismatches in CF
- EDS file inconsistencies
- Should message buffers returned from `CFE_SB_ReceiveBuffer` be checked for `NULL`?
- Segfault trying to dereference NULL pointer.
- Apply name updates from recent EdsLib change
- Placing a file with a name that is too long in the polling directory causes errors to spam
- Inaccurate comment in CF_CFDP_ReceiveMessage
- cf delete file when there is an error during tx HOT 1
- Transaction priority sorted incorrectly
- Static analysis issues JSC 2.1
- Standardization of Command Responses
- EotPacket provides transaction status, but defines are internal
- f-sanitizer report run time error in coverage-cf-cf_cfdp_r-testrunner
- f-sanitizer report run time error in coverage-cf-cf_cfdp_sbintf-testrunner
- f-sanitizer report run time error in coverage-cf-cf_cfdp_s-testrunner
- f-sanitizer report run time error in coverage-cf-cf_cfdp-testrunner
- f-sanitizer report runtime error in coverage-cf-cf_cmd-testrunner
- Convert internal `0`/`1` variables to `bool` type
- How to build 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 cf.