Skip to content

Conversation

@Apaisal
Copy link
Member

@Apaisal Apaisal commented Sep 10, 2024

local develop branch sync with official on 20240911
and need to review before merge into next aiim version.

moonlight83340 and others added 23 commits August 23, 2024 15:11
In commit 0d4dac2, we added a CSP address
parameter to the csp_can_socketcan_open_and_add_interface() function.
The address is assigned to ctx->iface.addr.

This commit similarly adds an addr parameter for the CSP address to
csp_usart_open_and_add_kiss_interface(), allowing us to specify the address for
the given interface.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
Previously, only the ZMQ interface was supported by default.
This update introduces command line options for ZMQ.
The `get_options()` function now supports `--zmq` as interface options.
The server initialization and routing table setup have been updated to handle
the selected interface based on the command line arguments provided.
We just add zmq parameter to the server python binding example, so we also have
to modify the current usage in the python workflow.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
This update introduces command line options for KISS.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
Add command line parameter options for kiss to python version of client.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
Fix camel case in python client example,
`getOptions` to ``get_options``.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
In the previous commit, we added parameters to the server python binding
example, in order to test that address parameter take the parameter and not the
default value.
I changed the address in zmq test to test the option parameter, introduce by
previous commit.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
In the previous commit, we add kiss parameter to the server python binding
example, so we also have to modify the python workflow to be able to test kiss
interface as well.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
Added steps to set up a virtual CAN (vcan0) interface in the CI environment.
Included tests for the CAN interface using the `csp_server` and `csp_client`
examples. Ensured the CAN interface is correctly configured with `modprobe
vcan`and `ip link add dev vcan0 type vcan`. Implemented both server and client
tests to validate CAN communication.

This change enables automated testing of the CAN interface within the CI
pipeline, improving test coverage for CAN-related functionality.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
The `csp_rdp_conn_print` function has no
implementation, documentation, or usage. This
commit removes its declaration.
When `__csp_rdp_queue_flush` encounters an empty
queue (i.e., `csp_queue_size(queue) == 0`),
the function would return an undefined value due
to the uninitialized variable `ret`.

This commit resolves the issue by initializing
`ret` to `CSP_ERR_NONE`. `CSP_ERR_NONE` is a
suitable value since an empty queue is equivalent
to a successfully flushed queue.

Although the return value is not currently used,
this change ensures future robustness if the
return value is utilized later.
This commit changes the scope of
`qfifo_queue_buffer` from global to local.
There appears to be no clear reason for
exposing the internal implementation details
of the queue.
Update the code to capture the return value of `csp_iflist_add` in the
variable `ret`.
This allows for proper error handling by ensuring that the
result of `csp_iflist_add` is returned by the function.

Previously, the return value was ignored, which could lead to missing error
information.

The return value is now used to confirm successful interface addition, and if an
error occurs, it can be properly propagated.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
Added a line to increment the `drop` counter on the KISS interface when a frame
is lost due to overflow.

This ensures that frame loss is properly tracked.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
Adds 'csp_if_eth.c' and 'csp_if_eth_pbuf.c' to the
cmake build process.
Replacing the usage of printf with csp_printf since
not all platforms have direct support for printf.
Adds 'eth_linux.c' to the cmake build.
Replacing the usage of printf with csp_printf since
not all platforms have direct support for printf.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
Replacing the usage of printf with csp_printf since
not all platforms have direct support for printf.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
Replacing the usage of printf with csp_printf since
not all platforms have direct support for printf.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
Fix wrong order of input parameters to
'__csp_rdp_queue_flush()'.
@Apaisal Apaisal added the enhancement New feature or request label Sep 10, 2024
@Apaisal Apaisal requested a review from a team September 10, 2024 21:20
@Apaisal Apaisal self-assigned this Sep 10, 2024
@Apaisal Apaisal merged commit 95dce86 into aiim Sep 22, 2024
@ttip-ts
Copy link

ttip-ts commented Oct 7, 2024

Hello, my name is Namthip.

  1. I am an assistant researcher from the AIIM team. I am encountering an issue with viewing data in the OpenMCT system. The screenshot displays a message "Missing: taxonomy.spacecraft" on the left panel, which might indicate that the system is unable to retrieve or display data from the RPi5 5 cameras. Additionally, I am viewing a folder named "My Items," which also appears to contain no data. I would like instructions or a user manual on how to activate or use OpenMCT to view the data from the RPi5 5 cameras.
    IMG_2773

  2. I would like to know how to monitor the heartbeat in the MobaXterm program.
    IMG_2775

@Apaisal
Copy link
Member Author

Apaisal commented Oct 7, 2024

Hi @ttip-ts ,

Thank you for your report.

  1. OpenMCT "Missing: taxonomy.spacecraft"
  1. Have you check YAMCS is working? Because OpenMCT has openmct-yamcs plugin to retrieve data from YAMCS API.
  2. Camera streaming from the device by mediamtx, Please check mediamtx service on your device.
  3. Getting started guide and learning below tools

2. Monitor the heartbeat in the MobaXterm program or any console.

  1. You must learn how to access the device via SSH client.
  2. On device has can-utils tool to observe and dump CAN messages what you need.

BTW, To avoid complex analysis and multi-issues on a comment
Please analyze your issues before any comments and open issue following specific tool related.
Thank you in advance.

@ttip-ts
Copy link

ttip-ts commented Oct 8, 2024

Hi Mr.Anol @Apaisal
Could you please provide me with the password for the Raspberry Pi?
IMG_1764

I clicked to shut down the laptop, and the YAMCS web page disconnected.
IMG_1765

@Apaisal
Copy link
Member Author

Apaisal commented Oct 9, 2024

Hi @ttip-ts

you please provide me with the password for the Raspberry Pi?

This is very sensitive information, Please take a look the default password from community.

I clicked to shut down the laptop, and the YAMCS web page disconnected.

This scenario related YAMCS. Please see YAMCS repository for learning.

BTW, please discuss on CRA-AIIM backlog at CRA-AIIM

@EmOne EmOne locked as off-topic and limited conversation to collaborators Oct 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants