From e4165edf850a74489a2d249ea4775c2ddc70490c Mon Sep 17 00:00:00 2001 From: Kevin Dinkel <1225857+dinkelk@users.noreply.github.com> Date: Tue, 18 Jun 2024 15:39:59 -0600 Subject: [PATCH] Apply fixes to Pico README.md Fixes to Pico README.md Apply additional fixes to Pico README.md --- src/assembly/linux/main/README.md | 1 + src/assembly/pico/main/README.md | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/assembly/linux/main/README.md b/src/assembly/linux/main/README.md index ca56bb2..a89432a 100644 --- a/src/assembly/linux/main/README.md +++ b/src/assembly/linux/main/README.md @@ -47,6 +47,7 @@ The COSMOS Docker container must be configured to use the same ports as Adamant. ``` ports: - "2003:2003/tcp" + - "127.0.0.1:7779:7779" # Event packets ``` Start COSMOS by running: diff --git a/src/assembly/pico/main/README.md b/src/assembly/pico/main/README.md index 55dbba5..6aea1c8 100644 --- a/src/assembly/pico/main/README.md +++ b/src/assembly/pico/main/README.md @@ -130,11 +130,13 @@ $ git clone https://github.com/openc3/cosmos-project.git The COSMOS Docker container must be configured to use the serial port connected to the Pico. -> **Note for Mac/Windows Hosts:** Exposing a serial device from a Mac or Windows host to a Docker container is [not yet supported](https://github.com/docker/for-mac/issues/900). This can be worked around by connecting to the serial port on the host and forwarding traffic through a TCP socket to COSMOS running on the Docker container. Mac-specific modifications to this tutorial will be noted by "**For Mac/Windows**" after applicable steps. +> **Note for Mac/Windows Hosts:** Exposing a serial device from a Mac or Windows host to a Docker container is [not yet supported](https://github.com/docker/for-mac/issues/900). This can be worked around by connecting to the serial port on the host and forwarding traffic through a TCP socket to COSMOS running on the Docker container. Mac and Windows specific modifications to this tutorial will be noted by "**For Mac/Windows**" after applicable steps. Edit `cosmos-project/compose.yaml` and add the following entry to the `openc3-operator:` section: ``` + ports: + - "127.0.0.1:7779:7779" devices: - /dev/ttyACM0:/dev/tty0 ``` @@ -149,6 +151,7 @@ $ ls /dev/tty* > ``` > ports: > - "2003:2003/tcp" +> - "127.0.0.1:7779:7779" > ``` Start COSMOS by running: @@ -238,8 +241,6 @@ With COSMOS running, here are some interesting things you can try: 5. Note that FSW events from Adamant are not yet viewable within COSMOS itself. However, COSMOS forwards packets on port 7779. From within the Adamant environment we can view these events by building the Pico event definitions and running the socket decoder while the Pico is connected and the COSMOS plugin is running. To do this, run the following commands from within the Adamant environment: ``` - $ cd adamant_example/src/assembly/pico - $ redo build/py/pico_example_events.py $ cd ~/adamant/gnd/bin $ python socket_event_decoder.py localhost 7779 98 ../../../adamant_example/src/assembly/pico/build/py/pico_example_events.py decoder.log ```