-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntax Issue For GroundSystem python Table Validate Command #20
Comments
Recommendation is to compare the command definition with how the command is defined in the ground system. There is likely a mismatch. It's not clear from the issue what versions of either you are using, but the command definitions in the ground system were recently updated and verified per nasa/cFS-GroundSystem#30. You may need the change listed there as part of the commit to the validate command. Alternatively you could just grab the latest version that has the fix integrated. |
I retrieved the latest GroundSystem-master.zip and did a new make. I sent the command as before and still seeing the Invalid msg length error. |
No surprise since there's likely cross versioning going on here. You'll need to make the command definition match the software. |
I'm using what is written in the Description box for CFE_TBL_INACTIVE and ACTIVE. Where can I find the proper syntax written for the command? |
It appears in the debugger that the CFE_TBLE_ValidateCmd is not actually being called. I've set a breakpoint dwelling on this call from the cfe_tbl_task.c and the function is never entered although the CommandCode is set properly when the error occurs. Since the CommandCode 4 is being set properly it makes sense that the Invalid msg length error is being thrown in the CFE_EVS_SendEvent since the CFE_TBL_ValidateCmd is actually never executed. |
It's not a problem with the syntax you are using. It's a mismatch between the definition of the packet in the ground system and the definition of the packet in the cFE. You need to make: match whatever it is your version of table services has defined. Likely in a file similar to what's in the latest version: |
Ok. I'll be the first to admit I am unclear about how the packet definition is translated back into code. I see uint16 and char which are consistent with the code. I also see comments consistent with the commented code. Not sure if lp0 and lp1 are lines, p2, p3, etc are spacing, S versus aS some time of string designation, aa is some type of grouping of features. All this points to the command window as far as I can tell, which is much more information than is in the code. |
The most likely issue is the string size doesn't match your code. It's the aS'38' line. Make the number match the size of TableName in CFE_TBL_ValidateCmd_Payload_t. Or just modify it such that you don't get the error (if reported length is 10, and 20 is expected, add 10 to the number). |
Ok that worked. I modified S38 to S40 since the length discrepancy was off by 2. I found that I had to do the same thing for the Table Activate command where I modified the value from S38 to S40 in struct_c_f_e_t_b_l__activate_cmd__t. Is it correct to say that any user who is using cFE 6.5 will have to make these two mods to the GroundSystem parameters to have these (and possibly others) work properly? |
Correction aS38 to aS40 |
Yes. In general it's on the user to handle any cross versioning or customization of sizes issues. The open source community typically focused on getting the system to work with all the current versions for the default configuration. |
Make sure _all_ functions in CF have a doxygen block on the declaration describing the inputs and outputs and a general summary of what the function does. Additionally describe the purpose of structures and structure members where it is not totally obvious from the name. Note: this also renames one member, CF_max_chunks, that appears to have been improperly scooped up in a previous batch rename.
Fix nasa#20, doxygen updates
I'm trying to get the syntax right for the validation command. I've been running gdb to look at the contents of the message. All I get is a cryptic invalid msg length error. With the following from the cFS-GroundSystem/Guid, instructions, I know I am not interpreting it right.
Originally posted by @JimKaidyNASA in nasa/ECI#42 (comment)
The text was updated successfully, but these errors were encountered: