Skip to content

[BUG] dSPACE reconnection after TrafficLayer restart - needs testing #85

@yunlishao

Description

@yunlishao

Describe the bug
Need to verify if dSPACE/Simulink client can properly reconnect to TrafficLayer after restart. Previously, reconnection failed after first use. Issue #66 added graceful shutdown, but unclear if this fully resolves dSPACE reconnection.

To Reproduce

  1. Start TrafficLayer.exe with EnableXil: true (XIL port 420)
  2. Connect dSPACE/Simulink model - verify simulation works
  3. Stop Simulink model
  4. Close TrafficLayer.exe (any method)
  5. Restart TrafficLayer.exe
  6. Attempt to reconnect Simulink model
  7. Check if connection succeeds or fails

Expected Behavior
After #66 graceful shutdown, dSPACE should reconnect without errors.

Investigation Needed

  • Test reconnection with current code (post PR #66/graceful shutdown #74)
  • Verify shutdown signal (state=0) reaches XIL clients
  • Check Simulink S-function handles shutdown properly
  • Verify socket cleanup on both sides

Environment

  • MATLAB/Simulink/dSPACE version: 2024a
  • SUMO version: 1.21

Additional context
Related to closed #66 (graceful shutdown). May need dSPACE-side socket cleanup or SO_REUSEADDR configuration. Test with config_RS_SimulinkRS.yaml.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions