Skip to content

Port assigning for multiple CPUs #250

@RR-HSz

Description

@RR-HSz

Describe the bug
When using multiple CPUs, the port assignments conflict each other.

CI lab ports:
Processor 1: port 1234
Processor 2: port 1235
Processor 3: port 1236

TO lab also uses port 1235.

If cFS CPU2 runs, the Ground System cannot use the port 1235.

To Reproduce
Steps to reproduce the behavior:

  1. Start cFS CPU2
  2. Start Ground System
  3. See error about cannot bind socket:
    cFS-GroundSystem/RoutingService.py", line 59, in run
    self.sock.bind(('', udp_recv_port))
    OSError: [Errno 98] Address already in use

Expected behavior
There should be separate ports for TO and CI for all CPUs.

Code snips
Not applicable.

System observed on:

  • Hardware
  • OS: Ubuntu 24.10
  • Versions: cfe equuleus-rc1+dev223, osal equuleus-rc1+dev93, psp equuleus-rc1+dev55.

Additional context

Reporter Info
Szilárd HELF, Remred

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions