dtorkin

Untitled

May 18th, 2025 (edited)
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.13 KB | None | 0 0
  1. dtorkin@ubuntu1:~/Desktop/practice$ ./svm_app
  2. SVM Multi-Port Server starting...
  3. Message handlers initialized.
  4. SVM: Loading configuration...
  5. Configuration parsed successfully from 'config.ini'.
  6. Found configurations for 4 SVM instances in file.
  7. --- Effective Configuration ---
  8. interface_type = ethernet
  9. UVM Target: 192.168.189.129:8080
  10. SVM 0: Port=8080, LAK=0x08 (Loaded: Yes)
  11. Simulate Control Failure: No
  12. Disconnect After: -1 messages
  13. Simulate Response Timeout: No
  14. Send Warning on Confirm: No (TKS: 1)
  15. SVM 1: Port=8081, LAK=0x09 (Loaded: Yes)
  16. Simulate Control Failure: Yes
  17. Disconnect After: -1 messages
  18. Simulate Response Timeout: No
  19. Send Warning on Confirm: No (TKS: 1)
  20. SVM 2: Port=8082, LAK=0x0A (Loaded: Yes)
  21. Simulate Control Failure: No
  22. Disconnect After: -1 messages
  23. Simulate Response Timeout: Yes
  24. Send Warning on Confirm: No (TKS: 1)
  25. SVM 3: Port=8083, LAK=0x0B (Loaded: Yes)
  26. Simulate Control Failure: No
  27. Disconnect After: 5 messages
  28. Simulate Response Timeout: No
  29. Send Warning on Confirm: No (TKS: 1)
  30. -----------------------------
  31. SVM: Will attempt to start 4 instances based on config.
  32. DEBUG SVM MAIN - Instance 0 Settings: LAK=0x08, simulate_control_failure=0, disconnect_after=-1, simulate_timeout=0, send_warning=0, tks=1
  33. DEBUG SVM MAIN - Instance 1 Settings: LAK=0x09, simulate_control_failure=1, disconnect_after=-1, simulate_timeout=0, send_warning=0, tks=1
  34. DEBUG SVM MAIN - Instance 2 Settings: LAK=0x0A, simulate_control_failure=0, disconnect_after=-1, simulate_timeout=1, send_warning=0, tks=1
  35. DEBUG SVM MAIN - Instance 3 Settings: LAK=0x0B, simulate_control_failure=0, disconnect_after=5, simulate_timeout=0, send_warning=0, tks=1
  36. Thread-safe QueuedMessage queue created with capacity 400
  37. SVM: Listener thread 0 initiated for Port 8080 (LAK 0x08).
  38. SVM: Listener thread 1 initiated for Port 8081 (LAK 0x09).
  39. SVM: Listener thread 2 initiated for Port 8082 (LAK 0x0A).
  40. Ethernet: Listening on port 8080 (handle: 3)
  41. Listener thread started for SVM ID 0 (LAK 0x08, Port 8080, Listen FD 3)
  42. Listener (SVM 0): Waiting for connection on port 8080...
  43. SVM: Listener thread 3 initiated for Port 8083 (LAK 0x0B).
  44. SVM: Starting common threads (Timer, Sender)...
  45. Ethernet: Listening on port 8081 (handle: 5)
  46. Listener thread started for SVM ID 1 (LAK 0x09, Port 8081, Listen FD 5)
  47. Listener (SVM 1): Waiting for connection on port 8081...
  48. SVM Timer thread started.
  49. Ethernet: Listening on port 8082 (handle: 7)
  50. Listener thread started for SVM ID 2 (LAK 0x0A, Port 8082, Listen FD 7)
  51. Listener (SVM 2): Waiting for connection on port 8082...
  52. Ethernet: Listening on port 8083 (handle: 6)
  53. Listener thread started for SVM ID 3 (LAK 0x0B, Port 8083, Listen FD 6)
  54. Listener (SVM 3): Waiting for connection on port 8083...
  55. SVM Sender thread started (reads global outgoing queue).
  56. SVM: All common threads started. 4 listeners active. Running...
  57. SVM Main: Waiting for shutdown signal...
  58. Listener (SVM 0): Accepted connection from 192.168.189.128:48964 (Client FD 4)
  59. Thread-safe QueuedMessage queue created with capacity 100
  60. Listener (SVM 0): Instance activated. Worker threads started.
  61. <<<<< Receiver Thread (Inst 0): FUNCTION ENTRY. Handle: 4. keep_running=1. instance->is_active=1 >>>>>
  62. <<<<< Receiver Thread (Inst 0): Loop iteration 0. keep_running=1. instance->is_active=1 >>>>>
  63. SVM Processor thread started for instance 0.
  64. Listener (SVM 1): Accepted connection from 192.168.189.128:34912 (Client FD 8)
  65. Thread-safe QueuedMessage queue created with capacity 100
  66. <<<<< Receiver Thread (Inst 1): FUNCTION ENTRY. Handle: 8. keep_running=1. instance->is_active=0 >>>>>
  67. Listener (SVM 2): Accepted connection from 192.168.189.128:51348 (Client FD 9)
  68. Thread-safe QueuedMessage queue created with capacity 100
  69. Listener (SVM 2): Instance activated. Worker threads started.
  70. <<<<< Receiver Thread (Inst 1): Loop iteration 0. keep_running=1. instance->is_active=1 >>>>>
  71. Listener (SVM 1): Instance activated. Worker threads started.
  72. <<<<< Receiver Thread (Inst 2): FUNCTION ENTRY. Handle: 9. keep_running=1. instance->is_active=1 >>>>>
  73. <<<<< Receiver Thread (Inst 2): Loop iteration 0. keep_running=1. instance->is_active=1 >>>>>
  74. SVM Processor thread started for instance 1.
  75. SVM Processor thread started for instance 2.
  76. Listener (SVM 3): Accepted connection from 192.168.189.128:45734 (Client FD 10)
  77. Thread-safe QueuedMessage queue created with capacity 100
  78. Listener (SVM 3): Instance activated. Worker threads started.
  79. <<<<< Receiver Thread (Inst 3): FUNCTION ENTRY. Handle: 10. keep_running=1. instance->is_active=1 >>>>>
  80. <<<<< Receiver Thread (Inst 3): Loop iteration 0. keep_running=1. instance->is_active=1 >>>>>
  81. SVM Processor thread started for instance 3.
  82. <<<<< Receiver Thread (Inst 0): Loop iteration 1. keep_running=1. instance->is_active=1 >>>>>
  83. <<<<< Receiver Thread (Inst 1): Loop iteration 1. keep_running=1. instance->is_active=1 >>>>>
  84. <<<<< Receiver Thread (Inst 2): Loop iteration 1. keep_running=1. instance->is_active=1 >>>>>
  85. <<<<< Receiver Thread (Inst 3): Loop iteration 1. keep_running=1. instance->is_active=1 >>>>>
  86. <<<<< Receiver Thread (Inst 0): Loop iteration 2. keep_running=1. instance->is_active=1 >>>>>
  87. <<<<< Receiver Thread (Inst 1): Loop iteration 2. keep_running=1. instance->is_active=1 >>>>>
  88. <<<<< Receiver Thread (Inst 2): Loop iteration 2. keep_running=1. instance->is_active=1 >>>>>
  89. <<<<< Receiver Thread (Inst 3): Loop iteration 2. keep_running=1. instance->is_active=1 >>>>>
  90. <<<<< Receiver Thread (Inst 0): Loop iteration 3. keep_running=1. instance->is_active=1 >>>>>
  91. <<<<< Receiver Thread (Inst 1): Loop iteration 3. keep_running=1. instance->is_active=1 >>>>>
  92. <<<<< Receiver Thread (Inst 2): Loop iteration 3. keep_running=1. instance->is_active=1 >>>>>
  93. <<<<< Receiver Thread (Inst 3): Loop iteration 3. keep_running=1. instance->is_active=1 >>>>>
  94. <<<<< Receiver Thread (Inst 0): Loop iteration 4. keep_running=1. instance->is_active=1 >>>>>
  95. <<<<< Receiver Thread (Inst 1): Loop iteration 4. keep_running=1. instance->is_active=1 >>>>>
  96. <<<<< Receiver Thread (Inst 2): Loop iteration 4. keep_running=1. instance->is_active=1 >>>>>
  97. <<<<< Receiver Thread (Inst 3): Loop iteration 4. keep_running=1. instance->is_active=1 >>>>>
  98. <<<<< Receiver Thread (Inst 0): EXITED LOOP or finished iterations. keep_running=1. instance->is_active=1 >>>>>
  99. Listener (SVM 0): Receiver thread joined.
  100. <<<<< Receiver Thread (Inst 1): EXITED LOOP or finished iterations. keep_running=1. instance->is_active=1 >>>>>
  101. Listener (SVM 1): Receiver thread joined.
  102. <<<<< Receiver Thread (Inst 3): EXITED LOOP or finished iterations. keep_running=1. instance->is_active=1 >>>>>
  103. Listener (SVM 3): Receiver thread joined.
  104. <<<<< Receiver Thread (Inst 2): EXITED LOOP or finished iterations. keep_running=1. instance->is_active=1 >>>>>
  105. Listener (SVM 2): Receiver thread joined.
  106.  
  107. dtorkin@ubuntu1:~/Desktop/practice$ sudo ./uvm_app --wait-for-gui DR
  108. UVM: Option --wait-for-gui enabled. Will wait for GUI connection.
  109. DEBUG UVM: Effective RadarMode selected: 129
  110. UVM Main Loop: Iteration start. Checking SVM link states...
  111. UVM: Загрузка конфигурации...
  112. Configuration parsed successfully from 'config.ini'.
  113. Found configurations for 4 SVM instances in file.
  114. --- Effective Configuration ---
  115. interface_type = ethernet
  116. UVM Target: 192.168.189.129:8080
  117. SVM 0: Port=8080, LAK=0x08 (Loaded: Yes)
  118. Simulate Control Failure: No
  119. Disconnect After: -1 messages
  120. Simulate Response Timeout: No
  121. Send Warning on Confirm: No (TKS: 1)
  122. SVM 1: Port=8081, LAK=0x09 (Loaded: Yes)
  123. Simulate Control Failure: Yes
  124. Disconnect After: -1 messages
  125. Simulate Response Timeout: No
  126. Send Warning on Confirm: No (TKS: 1)
  127. SVM 2: Port=8082, LAK=0x0A (Loaded: Yes)
  128. Simulate Control Failure: No
  129. Disconnect After: -1 messages
  130. Simulate Response Timeout: Yes
  131. Send Warning on Confirm: No (TKS: 1)
  132. SVM 3: Port=8083, LAK=0x0B (Loaded: Yes)
  133. Simulate Control Failure: No
  134. Disconnect After: 5 messages
  135. Simulate Response Timeout: No
  136. Send Warning on Confirm: No (TKS: 1)
  137. -----------------------------
  138. UVM: Found 4 SVM configurations in config file.
  139. Thread-safe UVM request queue created with capacity 50
  140. Thread-safe UVM Response queue created with capacity 200
  141. UVM: Connecting to SVMs...
  142. UVM: Attempting to connect to SVM ID 0 (IP: 192.168.189.129, Port: 8080)...
  143. Ethernet: Connected to 192.168.189.129:8080 (handle: 3)
  144. UVM: Successfully connected to SVM ID 0 (Handle: 3).
  145. UVM: Attempting to connect to SVM ID 1 (IP: 192.168.189.129, Port: 8081)...
  146. Ethernet: Connected to 192.168.189.129:8081 (handle: 4)
  147. UVM: Successfully connected to SVM ID 1 (Handle: 4).
  148. UVM: Attempting to connect to SVM ID 2 (IP: 192.168.189.129, Port: 8082)...
  149. Ethernet: Connected to 192.168.189.129:8082 (handle: 5)
  150. UVM: Successfully connected to SVM ID 2 (Handle: 5).
  151. UVM: Attempting to connect to SVM ID 3 (IP: 192.168.189.129, Port: 8083)...
  152. Ethernet: Connected to 192.168.189.129:8083 (handle: 6)
  153. UVM: Successfully connected to SVM ID 3 (Handle: 6).
  154. UVM: Connected to 4 out of 4 configured SVMs.
  155. UVM: Запуск потоков Sender, Receiver(s) и GUI Server...
  156. UVM Sender thread started.
  157. UVM: Waiting for GUI client to connect on port 12345 (or press Ctrl+C)...
  158. UVM Receiver thread started for SVM ID 0 (handle: 3).
  159. UVM Receiver thread started for SVM ID 1 (handle: 4).
  160. UVM Receiver thread started for SVM ID 2 (handle: 5).
  161. UVM Receiver thread started for SVM ID 3 (handle: 6).
  162. GUI Server: Starting listener on port 12345
  163. GUI Server: Waiting for GUI connection on port 12345...
  164. GUI Server: Accepted connection from 127.0.0.1:34050 (FD 8)
  165. GUI Server: Sending initial state to new GUI client (FD 8).
  166. GUI Server: Initial state sent to GUI client (FD 8).
  167. UVM: GUI client connected! Proceeding with SVM operations.
  168. UVM: All necessary threads started. Selected RadarMode: 129. Entering main loop.
  169.  
  170. dtorkin@ubuntu1:~/Desktop/practice$ nc localhost 12345
  171. EVENT;SVM_ID:0;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x08
  172. EVENT;SVM_ID:1;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x09
  173. EVENT;SVM_ID:2;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x0A
  174. EVENT;SVM_ID:3;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x0B
  175.  
  176.  
Advertisement
Add Comment
Please, Sign In to add comment