Skip to content

Commit

Permalink
Apply fixes to Pico README.md
Browse files Browse the repository at this point in the history
Fixes to Pico README.md
  • Loading branch information
dinkelk authored and Jbsco committed Jun 18, 2024
1 parent c7e9b1f commit 3c889c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/assembly/linux/main/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 2 additions & 3 deletions src/assembly/pico/main/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ $ 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:

Expand All @@ -149,6 +149,7 @@ $ ls /dev/tty*
> ```
> ports:
> - "2003:2003/tcp"
- "127.0.0.1:7779:7779" # Event packets
> ```
Start COSMOS by running:
Expand Down Expand Up @@ -238,8 +239,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
```
Expand Down

0 comments on commit 3c889c8

Please sign in to comment.