Skip to content
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

[nasa/nos3#267] fsw/gsw on separate machines #375

Merged
merged 4 commits into from
Oct 31, 2024

Conversation

Isgaroth-the-Green
Copy link
Contributor

This should be fully functional; testing will require either two actual computers or two VMs. How to run should be fairly simple - after making everything as normal (make prep, make config, make) one must run make prep-gsw on the computer which will run the ground software. Then, on the satellite computer, run make prep-sat and then the docker swarm join command which is output by make prep-gsw.

Once the two computers have been thus connected together, merely run make start-gsw on the gsw computer and make start-sat on the satellite computer (running make start-gsw first). COSMOS should come up on the gsw computer, 42 and the satellite terminals on the satellite computer, and commands can then be sent between them as though they were on the same computer.

…ding new options in the Makefile which should allow for making and running just the satellite side of things.
…he problem where 42 didn't launch when the thruster was active
@msuder
Copy link
Contributor

msuder commented Oct 10, 2024

I tested this functionality on two VMs. I was able to run GSW on one VM and FSW on another VM. I was able to send commands from GSW to FSW and was able to receive telemetry from FSW to GSW. I tested various NOOP commands as well as several thruster commands. I looked at several packets of telemetry from various apps.

Copy link
Contributor

@msuder msuder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my summary comment on testing I performed. I approve this pull request.

@jlucas9 jlucas9 self-assigned this Oct 15, 2024
@zlynch2
Copy link

zlynch2 commented Oct 17, 2024

Having trouble with eth1. Not connecting Working through connection issues as seen below.
image

Couple notes:

  1. Create Steps to make Nat network in virtual box in nos3 docs
  2. The real-clean script needs to remove docker swarm node (docker swarm leave --force)
  3. May want to consider creating a hardcoded ethernet name when vagrant up a new vm so that ethernet definitions are the same
  4. If we dont want to do number 3, then maybe instructions on how to change prep-gsw and pre-sat ethernet names

@zlynch2
Copy link

zlynch2 commented Oct 17, 2024

Fixed the above comment by configuring my ethernet in my vms see below: I changed the 01.yaml files under /etc/netplan/ and ran sudo netplan apply after saving the changes and exiting. I was then able to run the make prep-gsw and make prep-sat accordingly

GSW VM:
image

Satellite VM:
image

@zlynch2
Copy link

zlynch2 commented Oct 17, 2024

Tested cfs noop and worked fine after network config fix.

I noticed cosmos sometimes doesn't launch on the gsw vm. To get it to launch again I make clean and make. Also if you make stop on the sat VM side be sure to make stop on the GSW VM side too, then you can relaunch gsw and sat vm.

I am approving as I see it works as expected after configuring networks correctly.

Copy link

@zlynch2 zlynch2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving feature.

@jlucas9 jlucas9 changed the title Nos3#267 fsw/gsw on separate machines [nasa/nos3#267] fsw/gsw on separate machines Oct 22, 2024
@kevincbruce
Copy link
Contributor

Going to try this now probably. Will try in VMs first, though if you want a separate machine test, have a raspberry pi that I might be able to test on down the line.

Copy link

@dacarter22 dacarter22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still encountered eth1 error and had to manually edit yaml files, otherwise works correctly.

@jlucas9 jlucas9 merged commit f3ba01b into dev Oct 31, 2024
4 checks passed
@jlucas9 jlucas9 deleted the nos3#267-separate-fsw-and-gsw branch October 31, 2024 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants