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

Multiple contacts for a link in a contact file #65

Open
snafu123 opened this issue Nov 1, 2024 · 2 comments
Open

Multiple contacts for a link in a contact file #65

snafu123 opened this issue Nov 1, 2024 · 2 comments

Comments

@snafu123
Copy link

snafu123 commented Nov 1, 2024

Can I define multiple contact periods in a contact file. For instance if I want a link to be active every 30s. I've tried something like this:

{
    "contacts": [
        {
            "contact": 1,
            "source": 1,
            "dest": 10,
            "startTime": 0,
            "endTime": 30,
            "rateBitsPerSec": 1000000,
            "owlt": 1
        },
        {
            "contact": 2,
            "source": 1,
            "dest": 10,
            "startTime": 60,
            "endTime": 90,
            "rateBitsPerSec": 1000000,
            "owlt": 1
        },
... etc ...
]
}

In my test attempts, the link never seems to go active again.

@rdudukov
Copy link
Contributor

rdudukov commented Nov 1, 2024

Yes, that should be ok.

@snafu123
Copy link
Author

snafu123 commented Nov 2, 2024

Hmmmm. I am trying to run 30s on 30s off on the 2-node LTP test. The link goes active for 60s and never starts again:

[ router   ][ 2024-11-02 01:14:35][ info]: LINK UP (time based) for source 10 destination 20
[ router   ][ 2024-11-02 01:14:35][ info]:  -- LINK UP Event sent for outductArrayIndex=0 at time 2024-Nov-02 01:14:35
[ router   ][ 2024-11-02 01:15:35][ info]: LINK DOWN (time based) for source 10 destination 20
[ router   ][ 2024-11-02 01:15:35][ info]:  -- LINK DOWN Event sent for outductArrayIndex=0 at time 2024-Nov-02 01:15:35

Full contact file:
LTP.json

Sender/Receiver logs:
rx-hdtn_00000.log
tx-hdtn_00000.log

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

No branches or pull requests

2 participants