spacelab-ufsc / obdh2

On-Board Data Handling Module 2
https://spacelab-ufsc.github.io/obdh2/doc/user_manual/slb-obdh2-doc-v0.10.pdf
22 stars 3 forks source link

The OBDH2 cannot communicate with the EPS2. #329

Open LucasAzulay opened 1 year ago

LucasAzulay commented 1 year ago

The OBDH2 cannot communicate with the EPS2.

joaoclaudioeb commented 1 year ago

@LucasAzulay, we have been changing the EPS 2.0 code for the last couple of days, in some secondary branches, for testing, with names similar to _feature_deviceXXX, _feature_driversXXX. These changes were merged into the _devfirmware. Then, this firmware was tested with EPS 2.0 and OBDH 2.0, both of which are plugged into our FlatSat. On the OBDH 2.0, it was used the code that is present in the master. With this setup, EPS 2.0 and OBDH 2.0 were able to communicate. The EPS recognizes the read requests (cmd = 1) and sends the data to the OBDH. The errors that occur on the OBDH side are related to TTC 2.0. Additionally, today we conducted some tests regarding the communication of TTC 2.0 with EPS 2.0. And, again, they were able to communicate. Soon we are going to merge these modifications into the master for EPS, but for now, you can use the _devfirmware of the EPS to see if you can achieve the same results as us. If you try this, let me know what your results are.

LucasAzulay commented 1 year ago

Thanks for the response, we implemented the EPS 2.0 code in the dev_firmware version and the communication between the OBDH 2.0 and EPS 2.0 worked as intended, the EPS recognized the read requests (cmd = 1), but we were not able to receive the data in the OBDH side (highlighted in the image). Communication between the OBDH and EPS

joaoclaudioeb commented 1 year ago

@LucasAzulay, could you tell me if the TTC 2.0 was connected with OBDH 2.0 and EPS 2.0 during these tests that you conducted?

LucasAzulay commented 1 year ago

Yes, the three were connected.

joaoclaudioeb commented 1 year ago

Ok. Today I will make some small changes to the OBDH's firmware in the _devfirmware. I will then contact you again to ask you to do some testing.

joaoclaudioeb commented 1 year ago

@LucasAzulay, could you please use the code in _devfirmware into the OBDH 2.0? You should see EPS 2.0 being able to receive multiple commands from OBDH 2.0. OBDH 2.0 should not show any EPS 2.0 related errors. Finally, you will still see TTC 2.0 related errors: Captura de tela de 2023-03-17 19-23-17

LucasAzulay commented 1 year ago

We tested using the dev_firmware into the OBDH and we still have this erros.

image

joaoclaudioeb commented 1 year ago

@LucasAzulay, could you please tell me if these errors occur recurrently? Here we have not yet observed these errors. And, please, could you share to us what are the modules' versions that you are using (e.g. EPS 2.0 v0.1)? We would like to know the version of the EPS, TTC and OBDH, if possible.

LucasAzulay commented 1 year ago

These errors still occurring. The OBDH is not receiving data from the EPS (image 2), and the EPS is receiving the commands correctly most of the time, but sometimes the commands are getting corrupted (image 4). We are using the TTC 2.0 v0.4.2, OBDH 2.0 v10.0 and EPS v0.3.0.

image image image image

joaoclaudioeb commented 1 year ago

@LucasAzulay, sorry for the delayed response. We have not yet been able to replicate the errors, however, I have some observations:

1) Please check if in config/config.h the _CONFIG_SET_DUMMYEPS is set to 0 or 1. I suggest trying to do the tests with this deactivated, that is, with 0.

2) I would like to ask you to do a little "test". Would it be possible to change the position of the OBDH in your FlatSat platform? You can put it in any other slot.

Please report me if something changed during the tests. We will try to make more tests to replicate the errors.