Differences between revisions 238 and 239
Revision 238 as of 2026-03-17 11:40:52
Size: 21729
Comment:
Revision 239 as of 2026-03-17 12:37:59
Size: 21828
Comment:
Deletions are marked like this. Additions are marked like this.
Line 209: Line 209:
|| Main POE switch (Main Switch) || [[https://gwdoc.icrr.u-tokyo.ac.jp/cgi-bin/private/DocDB/ShowDocument?docid=12542|12542]] || Brocade ICX6610 || 192.168.10.100 (2026/03/16) || 10200 || U38 of N1 rack ||
|| POE path-through switch  || [[https://gwdoc.icrr.u-tokyo.ac.jp/cgi-bin/private/DocDB/ShowDocument?docid=12539|12539]] || Brocade ICX6610 || 192.168.10.101 (2026/03/16) || 10200 || U19 of IOO0 rack ||
|| POE switch               || [[https://gwdoc.icrr.u-tokyo.ac.jp/cgi-bin/private/DocDB/ShowDocument?docid=xxxxx|xxxxx]] || Netgear M4100-D12G-POE || 192.168.10.200 (2026/03/16) || 9216 || EX rack ||
|| POE switch               || [[https://gwdoc.icrr.u-tokyo.ac.jp/cgi-bin/private/DocDB/ShowDocument?docid=xxxxx|xxxxx]] || Netgear M4100-D12G-POE || 192.168.10.220 (2026/03/16) || 9216 || EY rack ||
|| POE switch               || [[https://gwdoc.icrr.u-tokyo.ac.jp/cgi-bin/private/DocDB/ShowDocument?docid=12540|12540]] || Netgear M4100-24G-POE || 192.168.10.230 (2026/03/16) || 9216 || SRM rack ||
|| POE switch               || [[https://gwdoc.icrr.u-tokyo.ac.jp/cgi-bin/private/DocDB/ShowDocument?docid=12541|12541]] || Netgear M4100-24G-PoE || ? 10.68.96.231 (2026/03/13) || 9216 || OMC fire alarm rack ||
|| POE switch               || [[https://gwdoc.icrr.u-tokyo.ac.jp/cgi-bin/private/DocDB/ShowDocument?docid=xxxxx|xxxxx]] || NAOJ switch || ? || ? || where? ||
|| Main POE switch || [[https://gwdoc.icrr.u-tokyo.ac.jp/cgi-bin/private/DocDB/ShowDocument?docid=12542|12542]] || Brocade ICX6610      || [[http://192.168.10.100|192.168.10.100]] (2026/03/16) || 10200 || U38 of N1 rack ||
|| POE switch || [[https://gwdoc.icrr.u-tokyo.ac.jp/cgi-bin/private/DocDB/ShowDocument?docid=12539|12539]] || Brocade ICX6610      || [[http://192.168.10.101|192.168.10.101]] (2026/03/16) || 10200 || U19 of IOO0 rack ||
|| POE switch || [[https://gwdoc.icrr.u-tokyo.ac.jp/cgi-bin/private/DocDB/ShowDocument?docid=xxxxx|xxxxx]] || Netgear M4100-D12G-POE || [[http://192.168.10.200|192.168.10.200]] (2026/03/16) || 9216 || EX rack ||
|| POE switch || [[https://gwdoc.icrr.u-tokyo.ac.jp/cgi-bin/private/DocDB/ShowDocument?docid=xxxxx|xxxxx]] || Netgear M4100-D12G-POE || [[http://192.168.10.220|192.168.10.220]] (2026/03/16) || 9216 || EY rack ||
|| POE switch || [[https://gwdoc.icrr.u-tokyo.ac.jp/cgi-bin/private/DocDB/ShowDocument?docid=12540|12540]] || Netgear M4100-24G-POE  || [[http://192.168.10.230|192.168.10.230]] (2026/03/16) || 9216 || U42 of SRM rack ||
|| POE switch || [[https://gwdoc.icrr.u-tokyo.ac.jp/cgi-bin/private/DocDB/ShowDocument?docid=12541|12541]] || Netgear M4100-24G-PoE  || [[http://192.168.10.231|192.168.10.231]] (2026/03/16) || 9216 || OMC fire alarm rack ||
|| || || || || || ||
||
POE switch || [[https://gwdoc.icrr.u-tokyo.ac.jp/cgi-bin/private/DocDB/ShowDocument?docid=xxxxx|xxxxx]] || NAOJ switch || ? || ? || where? ||

Digital Camera System

Overview

  • GigE cameras work on the dedicated camera network, which is one of local networks under CDS network. The main software is managed on pylon-camera-server on LIGO Git and the binary package is available on LIGO's Debian repository via the apt-get command. A few camera servers belonging to both CDS and camera networks serves all camera images in the camera network to the client workstations in the CDS network. Old camera system called as camlan or camera-server is no longer updated for a long time. So it will be expired also in KAGRA, though the old one is still remaining.

Software Structure

Server side

  • pylon-camera-server

    file

    note

    /usr/bin/pylon-camera-server

    Server application of pylon-camera-server (installed by apt)

    /kagra/camera/pylon-camera-config/K1-CAM_*.ini

    Configuration files for pylon-camera-server

    /kagra/camera/pylon-camera-service

    User interface for pylon-camera-server services on camera servers

    /kagra/camera/pylon-camera-status.sh

    Status checker of pylon-camera-server

    ~controls/.config/systemd/user/pylon-camera-server@.service

    Service template for pylon-camera-server

    ~controls/.config/systemd/user/pylon-camera-status.service

    Service file for status checker of pylon-camera-server

    ~controls/.config/systemd/user/pylon-camera-status.timer

    Service scheduler for status checker of pylon-camera-server

  • camlan camera-server

    file

    note

    /kagra/apps/camera/bin/camera_server.py

    Server application of camlan camera-server

    /kagra/apps/camera/bin/camera_pcas.py

    Pcas Server application

    /kagra/camera/camlan-camera-config/K1-CAM_*.ini

    Configuration files for old camlan camera-server

    /kagra/camera/camera-service

    User interface for old camlan camera-server services on camera servers

    /kagra/bin/CAM/camera_status.sh

    Status checker (1) of camlan camera-server

    /kagra/bin/CAM/camera_ping.sh

    Status checker (2) of camlan camera-server

    /etc/systemd/system/camera@.service

    Service template for camlan camera-server

    /etc/systemd/system/camera_pcas@.service

    Service template for Pcas process

    /etc/systemd/system/camera_status.service

    Service file for status checker (1) of camlan camera-server

    /etc/systemd/system/camera_ping.service

    Service file for status checker (2) of camlan camera-server

  • common

    file

    note

    /etc/systemd/system/cpupower-performance.service

    Service file to ensure max performance behavior of CPU

    /kagra/camera/find_cameras.py

    A tool for showing all camera list in the CAM network

Client side

  • file

    note

    /kagra/apps/camera/bin/camera_client.py

    Camera client application to display an image on X11 and to save an image/video to a file

    /kagra/apps/camera/bin/camera_client_movie.py

    Camera client application to save a video to a file (Deprecated)

    /kagra/apps/camera/bin/camera-service-client.sh

    User interface for camera services on CDS workstations

    /kagra/apps/camera/bin/revert_default_expgain.sh

    Revert to default values in config file

EPICS IOC@k1script1

  • file

    note

    /opt/rtcds/kamioka/k1/target/k1cam/db/GigE.substitutions

    Record definition for each camera

    /opt/rtcds/kamioka/k1/target/k1cam/db/Cam.db

    Record definition for each server

    /etc/supervisor/conf.d/k1cam.conf

    Service file to launch IOC

How to Use

  • To show the display, open sitemap on any workstations (click medm icon on the desktop), and choose CAMERA.

  • You can/opt/rtcds/kamioka/k1/target/k1cam/db record the movies from MEDM screen.
  • End-user Manual

How to add new cameras

  1. Setup camera IP address and Name
    • using GUI (blog)

    • using script after physically connecting a camera to the CAM network
      k1cam0> /kagra/camera/find_cameras.py --key $(serial) --addr $(ip_address)
      k1cam0> /kagra/camera/find_cameras.py --key $(serial) --name $(camera_name)
  2. Install GigE camera
  3. Assign configuration file
  4. Start camera service
  5. Update medm screens

Configuration files

  • Configuration files are stored as K1-CAM-*.ini in /kagra/camera/pylon-camera-config/ (/kagra/camera/ instead for the old camlan system). A format of the configuration files are as follows. What we must edit are serial_number, overlay_text, multicast_addresses, channel_prefix and archive_file_name_prefix. Serial number can be checked on the camera body and camera name and multicast address must be decided as a unique value.

    • serial_number=00000000
      packet_size=8192
      inter_packet_delay=50000
      exposure_auto=0
      exposure_time_raw=1000
      gain_auto=0
      gain_raw=100
      timeout_ms=5000
      width=640
      height=480
      framerate_numerator=25
      framerate_denominator=1
      format=GRAY8
      overlay_text=OMC_TRANS
      overlay_silent=false
      multicast_address=239.192.0.x
      multicast_port=65000
      ttl_mc=64
      channel_prefix=K1:CAM-OMC_TRANS_
      calc_noise_floor=25
      archive_interval_minutes=0
      archive_folder_path_prefix=/kagra/camera/images/
      archive_file_name_prefix=OMC_TRANS

Start (and manage) camera service

  • First, you need to decide which camera server (k1cam0, k1mca1, or k1cam2) to register the new camera with. Initial registration is done by logging into the camera server and executing the /kagra/camera/pylon-camera-service command (/kagra/camera/camera-service instead for the old camlan system). Following example is to register the OMC_TRANS camera on k1cam0.

    • k1ctr> ssh k1cam0
      k1cam0> /kagra/camera/pylon-camera-service enable OMC_TRANS

    pylon-camera-service command has following sub-commands.

    • list                 : show registered cameras
      enable <camera_name> : register cameras on the camera server
      disable <camera_name>: unregister cameras on the camera server
      start <camera_name>  : start camera process
      stop <camera_name>   : stop camera process
      restart <camera_name>: restart camera process
      status <camera_name> : show the status of camera process
      log <camera_name>    : show the log of camera process

    enable/disable can be executed only on the camera server and another sub-commands can be executed also on the CDS client workstations via /kagra/apps/camera/bin/camera-service-client.sh or the Shell Command block on the MEDM screens.

Update MEDM screens

  • MEDM screens are stored in /opt/rtcds/userapps/release/cds/common/medm. When the new cameras are added, K1IFO_CAM.adl and K1CAM_STATUS.adl must be updated. Camera interface screen is served as CUST_CAMERA_PYLON.adl (CUST_CAMERA.adl instead for the old camlan system) with MEDM macros e.g. CAMERA=K1:CAM-OMC_TRANS and CONFIG=K1-CAM-OMC_TRANS.

How to recover

If GStreamer isn't started

  1. Disconnect the LAN cable once or Switch ON/OFF power supply from network switch
  2. Restart camera process
    k1cam?> /kagra/camera/pylon-camera-service restart $(camera_name)

How to ON/OFF power supply from camera switch

  1. SSH connect with dynamic forward
    ssh -D 10000 k1cam0
  2. Open web browser on workstation with setting SOCKS proxy

    Preferences -> Network Settings -> "Manual proxy configuration" SOCKS Host:localhost, Port:10000

  3. Input IP address of network switch
  4. System -> PoE -> PoE Port Configuration

  5. Select the port and "disable" -> APPLY -> "Enable" -> APPLY

Hardware Assignments

Viewport Status

Status after iKAGRA

Cameras

Cameras

CAM SN

S-number

MAC Addr

IP Addr

Multicast Addr

Service name

Installed place

Lens f

Status

Port

21551056

12543

00:30:53:17:AA:D0

192.168.10.10

239.192.0.254

MCE

?

16mm

Installed

21740439

12544

00:30:53:1A:8E:97

192.168.10.11

239.192.0.151

IMM

?

?

Installed? klog26952

21740447

12545

00:30:53:1A:8E:9F

192.168.10.12

239.192.0.253

REFCAV TRANS

?

Installed

21740438

12546

00:30:53:1A:8E:96

192.168.10.13

239.192.0.57

EX

?

8mm(2017/10/19 by Inoue)

Installed in EXA(2017/10/19)

21740468

12547

00:30:53:1A:8E:B4

192.168.10.14

239.192.0.154

MC_REFL

?

none

Active

21740473

12548

00:30:53:1A:8E:B9

192.168.10.15

239.192.0.153

MCE_TRANS

?

25mm

Active

21740449

12549

00:30:53:1A:8E:A1

192.168.10.16

239.192.0.56

Spare

TDB

PSL-S-A 3(2024/01/31) klog28473

21740498

12550

00:30:53:1A:8E:D2

192.168.10.17

239.192.0.59

IMTRANS??
->EY(2017/10/20 by Miyakawa)

?

8mm(2017/10/20 by Yokozawa)

Installed in EYA(2017/10/20)

21740446

12551

00:30:53:1A:8E:9E

192.168.10.18

239.192.0.58

PMC REFL

PSL table

none

Active

21740459

12552

00:30:53:1A:8E:AB

192.168.10.19

239.192.0.59

TMSY_G

TMSY table

none

Active

21740443

12553

00:30:53:1A:8E:9B

192.168.10.20

239.192.0.31

PR2

?

8mm

Active (Confirmed by Yokozawa klog26952)

21740460

12554

00:30:53:1A:8E:AC

192.168.10.21

239.192.0.32

PR3

?

8mm

Active (Confirmed by Yokozawa klog26952)

21740465

12555

00:30:53:1A:8E:B1

192.168.10.22

239.192.0.133

PMC TRANS

PSL

none

Active

21740467

12556

00:30:53:1A:8E:B3

192.168.10.23

239.192.0.34

BS

?

16mm

Active (Confirmed by Yokozawa klog26952)

21740482

12557

00:30:53:1A:8E:C2

192.168.10.24

239.192.0.35

OFI

OMC chamber

16mm

Installed (klog27275)

OMC 6

21740483

12558

00:30:53:1A:8E:C3

192.168.10.25

239.192.0.36

OMMT1

OMC chamber

16mm

Installed (klog27275)

OMC 7

21740484

12559

00:30:53:1A:8E:C4

192.168.10.26

239.192.0.37

IFO_REFL

REFL table

none

Active

21740487

12560

00:30:53:1A:8E:C7

192.168.10.27

239.192.0.38

OMC_BODY

OMC chamber

16mm

Installed (klog27275)

OMC 5

21740489

12561

00:30:53:1A:8E:C9

192.168.10.28

239.192.0.39

MCO

?

25mm

Installed

21740490

12562

00:30:53:1A:8E:CA

192.168.10.29

239.192.0.40

TMSX_G

TMSX table

none

Active

21740493

12565

00:30:53:1A:8E:CD

192.168.10.30

239.192.0.41

TMSX_IR

TMSX table

none

Active

21740499

12566

00:30:53:1A:8E:D3

192.168.10.31

239.192.0.49

POP_P

POP table

?

Active (klog#36284)

SRM 16

21740500

12567

00:30:53:1A:8E:D4

192.168.10.32

239.192.0.43

POS

POS table

?

Active

SRM 18

21740501

12568

00:30:53:1A:8E:D5

192.168.10.33

239.192.0.44

AS

AS table

none

Active

OMC 4

21740507

12569

00:30:53:1A:BE:D8

192.168.10.34

239.192.0.45

Spare

TBD

PSL-S-A 3(2023/11/27)

22227094

12570

00:30:53:21:FB:96

192.168.10.35

239.192.0.46

TMSY_IR

TMSY table

none

Active

22227106

12571

00:30:53:21:FB:A2

192.168.10.36

239.192.0.47

OMC_TRANS

AS table

none

Active

OMC 2

22227107

12572

00:30:53:21:FB:A3

192.168.10.37

239.192.0.48

OMC_REFL

AS table

none

Active

OMC 3

22227108

12573

00:30:53:21:FB:A4

192.168.10.38

239.192.0.42

POP (spol)

POP table

?

Active (klog#36284)

SRM 12

22227109

12574

00:30:53:21:FB:A5

192.168.10.39

239.192.0.50

Spare

TBD

PSL-S-A 3(2025/08/29)

22227114

12575

00:30:53:21:FB:AA

192.168.10.40

239.192.0.51

Spare

TBD

PSL-S-A 3(2023/11/27)

22227115

12576

00:30:53:21:FB:AB

192.168.10.41

239.192.0.52

Spare

TBD

PSL-S-A 3(2023/11/27)

22227116

12577

00:30:53:21:FB:AC

192.168.10.42

239.192.0.53

Spare

TBD

PSL-S-A 3(2023/11/27)

22227117

12578

00:30:53:21:FB:AD

192.168.10.43

239.192.0.54

Spare

TBD

PSL-S-A 3(2023/11/27)

22227175

12579

00:30:53:21:FB:E7

192.168.10.44

239.192.0.55

Spare

TBD

23569821

x

00:30:53:36:78:9D

192.168.10.45

239.192.0.60

Testing

TBD

40413678

x

00:30:53:35:E0:86

192.168.10.46

239.192.0.61

TCam test bench

TBD

40776920

x

00:30:53:37:F7:4B

192.168.10.47

239.192.0.62

TCam test bench2

Near the OMC

在庫

場所:PSL-S-A 3(2023/11/27)

Name

No of stock

必要数

Installed

2017 購入

GigE

6

19(窓)&12(直射)→31

6

16 (5個予備)

Giottos stage

10

19 (窓分)

3

lens 6mm

3

lens 8mm

5

予備として4

0

2

lens 16mm

16

19 (窓分)

1

16 (2個予備)

lens 25 mm

10

12(ラフ予想)

0

8

Optical BPF for 1064

2

Optical BPF for 532

6

Network Switches

There is the main switch in the main digital room. All the other switches are connected to the main switch with cat 6 LAN cables. Switches in EX and EY are connected to the main switch via optical fibers.

Camera Network Plan

Hardware

S-number

Product

IP Addr

MTU

Installed at

Main POE switch

12542

Brocade ICX6610

192.168.10.100 (2026/03/16)

10200

U38 of N1 rack

POE switch

12539

Brocade ICX6610

192.168.10.101 (2026/03/16)

10200

U19 of IOO0 rack

POE switch

xxxxx

Netgear M4100-D12G-POE

192.168.10.200 (2026/03/16)

9216

EX rack

POE switch

xxxxx

Netgear M4100-D12G-POE

192.168.10.220 (2026/03/16)

9216

EY rack

POE switch

12540

Netgear M4100-24G-POE

192.168.10.230 (2026/03/16)

9216

U42 of SRM rack

POE switch

12541

Netgear M4100-24G-PoE

192.168.10.231 (2026/03/16)

9216

OMC fire alarm rack

POE switch

xxxxx

NAOJ switch

?

?

where?

Camera Machines

Name

CDS IP Addr

Local IP Addr

Installed at

k1cam0

10.68.10.140

192.168.10.2

KAGRA Center

k1cam1

10.68.10.141

192.168.10.3

KAGRA Center

k1cam2

10.68.10.143

192.168.10.4

KAGRA Center

TEST for 10G network

Test of 10G switch has been done. We confirmed the following switch works. Three of them are bought, but not installed. They are to be installed for bKAGRA.

Network Switch

Model

MAC Addr

IP Addr

Installed at

Brocade ICX6610-48P

10GB POE

169.254.100.23

Mozumi Server Room

物品のありか

  • 雲台:倉庫(Y側)、段ボール箱
  • カメラ、レンズの在庫、カメラと雲台のアダプタ、ネジ、ペデスタル、NDフィルタ等(あれば):PSL-S-A 3
  • ビューポートに取り付けるための台座:MC近くの棚、MCE寄り(上とは別の箱)

Requested

KAGRA/Subgroups/DGS/Projects/Cam (last edited 2026-03-17 12:37:59 by TakahiroYamamoto)