Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Clearing streams from port in interlaced mode. #195

Closed
apepelis opened this issue Sep 12, 2016 · 0 comments
Closed

Clearing streams from port in interlaced mode. #195

apepelis opened this issue Sep 12, 2016 · 0 comments
Labels

Comments

@apepelis
Copy link

if you put the port in Interlaced mode and then try to delete all streams (issue 179), there is a 53 second pause.

    _sid_list = drone.getStreamIdList(port_string.port_id[0])
    drone.deleteStream(sid_list)

    # https://github.com/pstavirs/ostinato/issues/179
    stream_cfg = ost_pb.StreamConfigList()
    stream_cfg.port_id.id = port_string.port_id[0].id
    drone.modifyStream(stream_cfg)_

this needs to be added

    _port_id_list = drone.getPortIdList()
    port_config_list = drone.getPortConfig(port_id_list)
    for port in port_config_list.port:
        if port.port_id == port_string.port_id[0]:
            port.transmit_mode = ost_pb.kSequentialTransmit
            break
    drone.modifyPort(port_config_list)_

to change it to sequential

@pstavirs pstavirs added the bug label Sep 13, 2016
cdm-work pushed a commit to cdm-work/ostinato that referenced this issue Dec 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants