Skip to content
John De Witt edited this page Apr 4, 2018 · 5 revisions

There are five programs that communicate over the network to make data collection happen in SLTK; each could potentially be at a different IP address.

sltk network topography

Editing Network Configuration

There are three places to change network addresses/ports:

  • ports.h
    • SERVER_CONTROL_ADDRESS : computer running slcapture.py
  • slcapture.py (top of file)
    • cam_server_addr : computer running mjpg-streamer
    • display_server_addr : computer running sldisp
    • GUI_server_addr : computer running slcontrol.pde
  • slcontrol.pde (top of file)
    • remoteControl : computer running slcapture.py
    • remoteDisplay : computer running sldisp

Ports

  1. slcapture.py (main program)

    • IN:
      • 8080 : images from mjpg-streamer
      • 4010 : scan parameter and trigger from slcontrol
      • 4010 : status updates from sldisp
      • 4040 : status updates from slturn
    • OUT:
      • 4011 : progress update to slcontrol
      • 4021 : pattern requests to sldisp
      • 4041 : rotation requests to slturn
  2. mjpg-streamer (camera)

    • OUT:
      • 8080 : JPG images to slcapture
  3. sldisp (projector)

    • IN:
      • 4021 : pattern requests from slcapture, slcontrol
    • OUT:
      • 4010 : status updates to slcapture
  4. slcontrol (GUI)

    • IN:
      • 4011 : progress update from slcapture
    • OUT:
      • 4010 : scan parameters and trigger to slcapture
      • 4021 : pattern requests to sldisp
  5. slturn (turntable)

    • IN:
      • 4041 : rotation requests from slcapture
    • OUT:
      • 4040 : progress update to slcapture