Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-32038

Update the Hexapod GUI to be TCP/IP Client

    XMLWordPrintable

Details

    • 1
    • TSSW Sprint - Oct 11 - Oct 25
    • Telescope and Site
    • No

    Description

      Update the hexapod GUI to be TCP/IP client instead of the server.

      Attachments

        1. gui_1.png
          gui_1.png
          481 kB
        2. gui_2.png
          gui_2.png
          664 kB
        3. gui_3.png
          gui_3.png
          397 kB
        4. hexEuiExecutable.png
          hexEuiExecutable.png
          356 kB

        Issue Links

          Activity

            ttsai Te-Wei Tsai added a comment -

            Tested the GUI on summit. There is no problem:
               

            ttsai Te-Wei Tsai added a comment - Tested the GUI on summit. There is no problem:    
            ttsai Te-Wei Tsai added a comment -

            I realized I need to modify the state machine in the EUI code.

            ttsai Te-Wei Tsai added a comment - I realized I need to modify the state machine in the EUI code.
            ttsai Te-Wei Tsai added a comment -

            I think I did send the command message to the wrapper:

            Oct 14 21:47:43 localhost runmain: GUI has disconnected the CMD Socket. Existing.
            Oct 14 21:47:43 localhost runmain: received trigger for Offline Sub State Cmd: 0x5555, 0x8002, counter=0, parameter1 = 2.000000
            Oct 14 21:47:43 localhost runmain: Processing Command 0x8002
            Oct 14 21:47:43 localhost runmain: Received 26 bytes : 0x5555, counter=0x00000000, cmd=00008002 ,parameter1 = 2.000000, parameter2 = 0.000000
            Oct 14 21:47:43 localhost main: Target application is closed.
            Oct 14 21:47:42 localhost journal: LSST Wrapper: Mainloop Quit
            Oct 14 21:47:42 localhost journal: LSST Wrapper: GUI disconnected...shutting down
            Oct 14 21:47:41 localhost runmain: Processing Command 0x8009
            Oct 14 21:47:41 localhost runmain: Received 18 bytes : 0x5555, counter=0x000003E7, cmd=00008009 ,parameter1 = 1.000000, parameter2 = 0.000000
            Oct 14 21:47:41 localhost runmain: Processing Command 0x8009
            Oct 14 21:47:41 localhost runmain: Received 18 bytes : 0x5555, counter=0x000003E7, cmd=00008009 ,parameter1 = 1.000000, parameter2 = 0.000000
            Oct 14 21:47:41 localhost runmain: received trigger for Offline Sub State Cmd: 0x5555, 0x8002, counter=7, parameter1 = 2.000000
            

            ttsai Te-Wei Tsai added a comment - I think I did send the command message to the wrapper: Oct 14 21:47:43 localhost runmain: GUI has disconnected the CMD Socket. Existing. Oct 14 21:47:43 localhost runmain: received trigger for Offline Sub State Cmd: 0x5555, 0x8002, counter=0, parameter1 = 2.000000 Oct 14 21:47:43 localhost runmain: Processing Command 0x8002 Oct 14 21:47:43 localhost runmain: Received 26 bytes : 0x5555, counter=0x00000000, cmd=00008002 ,parameter1 = 2.000000, parameter2 = 0.000000 Oct 14 21:47:43 localhost main: Target application is closed. Oct 14 21:47:42 localhost journal: LSST Wrapper: Mainloop Quit Oct 14 21:47:42 localhost journal: LSST Wrapper: GUI disconnected...shutting down Oct 14 21:47:41 localhost runmain: Processing Command 0x8009 Oct 14 21:47:41 localhost runmain: Received 18 bytes : 0x5555, counter=0x000003E7, cmd=00008009 ,parameter1 = 1.000000, parameter2 = 0.000000 Oct 14 21:47:41 localhost runmain: Processing Command 0x8009 Oct 14 21:47:41 localhost runmain: Received 18 bytes : 0x5555, counter=0x000003E7, cmd=00008009 ,parameter1 = 1.000000, parameter2 = 0.000000 Oct 14 21:47:41 localhost runmain: received trigger for Offline Sub State Cmd: 0x5555, 0x8002, counter=7, parameter1 = 2.000000
            ttsai Te-Wei Tsai added a comment -

            I have the following debugging message:

            Oct 14 21:47:41 localhost runmain: Waiting for the DDS Cmd connection at port 5561.
            Oct 14 21:47:41 localhost runmain: Waiting for the DDS telemetry connection at port 5560.
            Oct 14 21:47:41 localhost runmain: The state of GUI telemetry server is connected. socket = 12.
            Oct 14 21:47:41 localhost runmain: Get the connection from: 10.9.57.224.
            Oct 14 21:47:41 localhost runmain: Waiting for the GUI telemetry connection at port 5590.
            Oct 14 21:47:41 localhost runmain: Connection is on in the GUI command server.
            Oct 14 21:47:41 localhost runmain: Get the connection from: 10.9.57.224.
            Oct 14 21:47:41 localhost runmain: Waiting for the GUI Cmd connection at port 5591.
            Oct 14 21:47:41 localhost runmain: >>>>>>>>>>>>> ETHERCAT NETWORK OPERATIONAL <<
            

            ttsai Te-Wei Tsai added a comment - I have the following debugging message: Oct 14 21:47:41 localhost runmain: Waiting for the DDS Cmd connection at port 5561. Oct 14 21:47:41 localhost runmain: Waiting for the DDS telemetry connection at port 5560. Oct 14 21:47:41 localhost runmain: The state of GUI telemetry server is connected. socket = 12. Oct 14 21:47:41 localhost runmain: Get the connection from: 10.9.57.224. Oct 14 21:47:41 localhost runmain: Waiting for the GUI telemetry connection at port 5590. Oct 14 21:47:41 localhost runmain: Connection is on in the GUI command server. Oct 14 21:47:41 localhost runmain: Get the connection from: 10.9.57.224. Oct 14 21:47:41 localhost runmain: Waiting for the GUI Cmd connection at port 5591. Oct 14 21:47:41 localhost runmain: >>>>>>>>>>>>> ETHERCAT NETWORK OPERATIONAL <<
            ttsai Te-Wei Tsai added a comment -

            Tested to use the executable:

            ttsai Te-Wei Tsai added a comment - Tested to use the executable:
            ttsai Te-Wei Tsai added a comment -

            Please help to review the PR:
            https://github.com/lsst-ts/ts_hexapod_gui/pull/18

            Thanks!

            ttsai Te-Wei Tsai added a comment - Please help to review the PR: https://github.com/lsst-ts/ts_hexapod_gui/pull/18 Thanks!
            rowen Russell Owen added a comment -

            Looks great. Thank you very much for this important change.

            rowen Russell Owen added a comment - Looks great. Thank you very much for this important change.
            ttsai Te-Wei Tsai added a comment -

            The debug message of DDS connection:

            Oct 15 18:35:19 localhost runmain: The state of DDS telemetry server is connecte
            d. socket = 18.
            Oct 15 18:35:19 localhost runmain: Get the connection from: 10.9.57.224.
            Oct 15 18:35:19 localhost runmain: The state of DDS command server is connected. socket = 17.
            Oct 15 18:35:19 localhost runmain: Get the connection from: 10.9.57.224.
            

            ttsai Te-Wei Tsai added a comment - The debug message of DDS connection: Oct 15 18:35:19 localhost runmain: The state of DDS telemetry server is connecte d. socket = 18. Oct 15 18:35:19 localhost runmain: Get the connection from: 10.9.57.224. Oct 15 18:35:19 localhost runmain: The state of DDS command server is connected. socket = 17. Oct 15 18:35:19 localhost runmain: Get the connection from: 10.9.57.224.
            ttsai Te-Wei Tsai added a comment -

            Some log message of 5550:

            [pbalucan@camhex log]$ sudo tac messages | grep 5550
            Oct 13 13:48:25 localhost journal: LSST Wrapper: CMD: drive 2 pos -36485550 -36485497
            Oct 13 13:48:25 localhost journal: LSST Wrapper: CMD: drive 1 pos -36485497 -36485550
            Oct 13 13:41:00 localhost NetworkManager[3331]: <info>  [1634132460.5550] policy: auto-activating connection 'enp21s0'
            [pbalucan@camhex log]$ sudo tac messages | grep 5551
            [pbalucan@camhex log]$
            

            ttsai Te-Wei Tsai added a comment - Some log message of 5550: [pbalucan@camhex log]$ sudo tac messages | grep 5550 Oct 13 13:48:25 localhost journal: LSST Wrapper: CMD: drive 2 pos -36485550 -36485497 Oct 13 13:48:25 localhost journal: LSST Wrapper: CMD: drive 1 pos -36485497 -36485550 Oct 13 13:41:00 localhost NetworkManager[3331]: <info> [1634132460.5550] policy: auto-activating connection 'enp21s0' [pbalucan@camhex log]$ sudo tac messages | grep 5551 [pbalucan@camhex log]$

            People

              ttsai Te-Wei Tsai
              ttsai Te-Wei Tsai
              Russell Owen
              Russell Owen, Te-Wei Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Jenkins

                  No builds found.