dtorkin

Untitled

May 20th, 2025 (edited)
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.63 KB | None | 0 0
  1. dtorkin@ubuntu1:~/Desktop/practice$ sudo ./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. SVM: Loading configuration...
  37. Configuration parsed successfully from 'config.ini'.
  38. Found configurations for 4 SVM instances in file.
  39. --- Effective Configuration ---
  40. interface_type = ethernet
  41. UVM Target: 192.168.189.129:8080
  42. SVM 0: Port=8080, LAK=0x08 (Loaded: Yes)
  43. Simulate Control Failure: No
  44. Disconnect After: -1 messages
  45. Simulate Response Timeout: No
  46. Send Warning on Confirm: No (TKS: 1)
  47. SVM 1: Port=8081, LAK=0x09 (Loaded: Yes)
  48. Simulate Control Failure: Yes
  49. Disconnect After: -1 messages
  50. Simulate Response Timeout: No
  51. Send Warning on Confirm: No (TKS: 1)
  52. SVM 2: Port=8082, LAK=0x0A (Loaded: Yes)
  53. Simulate Control Failure: No
  54. Disconnect After: -1 messages
  55. Simulate Response Timeout: Yes
  56. Send Warning on Confirm: No (TKS: 1)
  57. SVM 3: Port=8083, LAK=0x0B (Loaded: Yes)
  58. Simulate Control Failure: No
  59. Disconnect After: 5 messages
  60. Simulate Response Timeout: No
  61. Send Warning on Confirm: No (TKS: 1)
  62. -----------------------------
  63. SVM: Will attempt to start 4 instances based on config.
  64. Thread-safe QueuedMessage queue created with capacity 400
  65. SVM: Listener thread 0 initiated for Port 8080 (LAK 0x08).
  66. SVM: Listener thread 1 initiated for Port 8081 (LAK 0x09).
  67. SVM: Listener thread 2 initiated for Port 8082 (LAK 0x0A).
  68. Ethernet: Listening on port 8080 (handle: 3)
  69. Listener thread started for SVM ID 0 (LAK 0x08, Port 8080, Listen FD 3)
  70. Listener (SVM 0): Waiting for connection on port 8080...
  71. Ethernet: Listening on port 8082 (handle: 4)
  72. Listener thread started for SVM ID 2 (LAK 0x0A, Port 8082, Listen FD 4)
  73. Listener (SVM 2): Waiting for connection on port 8082...
  74. Ethernet: Listening on port 8083 (handle: 6)
  75. Listener thread started for SVM ID 3 (LAK 0x0B, Port 8083, Listen FD 6)
  76. Listener (SVM 3): Waiting for connection on port 8083...
  77. SVM: Listener thread 3 initiated for Port 8083 (LAK 0x0B).
  78. Ethernet: Listening on port 8081 (handle: 5)
  79. Listener thread started for SVM ID 1 (LAK 0x09, Port 8081, Listen FD 5)
  80. Listener (SVM 1): Waiting for connection on port 8081...
  81. SVM: Starting common threads (Timer, Sender)...
  82. SVM: All common threads started. 4 listeners active. Running...
  83. SVM Main: Waiting for shutdown signal...
  84. SVM Timer thread started.
  85. SVM Sender thread started (reads global outgoing queue).
  86. Listener (SVM 0): Accepted connection from 192.168.189.128:35862 (Client FD 7)
  87. Thread-safe QueuedMessage queue created with capacity 100
  88. Listener (SVM 0): Instance activated. Worker threads started.
  89. SVM Receiver thread started for instance 0 (handle: 7).
  90. Listener (SVM 1): Accepted connection from 192.168.189.128:46220 (Client FD 10)
  91. Thread-safe QueuedMessage queue created with capacity 100
  92. Listener (SVM 1): Instance activated. Worker threads started.
  93. SVM Receiver thread started for instance 1 (handle: 10).
  94. Listener (SVM 2): Accepted connection from 192.168.189.128:56852 (Client FD 8)
  95. Thread-safe QueuedMessage queue created with capacity 100
  96. Listener (SVM 2): Instance activated. Worker threads started.
  97. SVM Processor thread started for instance 0.
  98. Listener (SVM 3): Accepted connection from 192.168.189.128:46572 (Client FD 9)
  99. Thread-safe QueuedMessage queue created with capacity 100
  100. SVM Processor thread started for instance 1.
  101. Listener (SVM 3): Instance activated. Worker threads started.
  102. SVM Receiver thread started for instance 2 (handle: 8).
  103. SVM Receiver thread started for instance 3 (handle: 9).
  104. SVM Processor thread started for instance 3.
  105. SVM Processor thread started for instance 2.
  106. Получено сообщение через Ethernet: Тип=128, Номер=0, Длина тела=2, Handle=7
  107. Processor (Inst 0): Обработка 'Инициализация канала'
  108. Параметры: LAUVM=0x1, LAK=0x08 (assigned)
  109. SVM (Inst 0): Эмуляция выключения лазера...
  110. Ответ 'Подтверждение инициализации' сформирован (LAK=0x08).
  111. Отправка сообщения через Ethernet: Тип=129, Номер=0, Длина тела=12, Общий размер=18, Handle=7
  112. Получено сообщение через Ethernet: Тип=1, Номер=0, Длина тела=1, Handle=7
  113. Processor (Inst 0): Обработка 'Провести контроль'
  114. SVM (Inst 0): Эмуляция самопроверки...
  115. Ответ 'Подтверждение контроля' сформирован.
  116. Отправка сообщения через Ethernet: Тип=3, Номер=1, Длина тела=8, Общий размер=14, Handle=7
  117. Получено сообщение через Ethernet: Тип=2, Номер=1, Длина тела=1, Handle=7
  118. Processor (Inst 0): Обработка 'Выдать результаты контроля'
  119. Ответ 'Результаты контроля' сформирован.
  120. Отправка сообщения через Ethernet: Тип=4, Номер=2, Длина тела=8, Общий размер=14, Handle=7
  121.  
  122. dtorkin@ubuntu1:~/Desktop/practice$ sudo ./uvm_app --wait-for-gui OR
  123. UVM Application (Iteration 2 - Init & Control Sequence)
  124. UVM: Loading configuration...
  125. Configuration parsed successfully from 'config.ini'.
  126. Found configurations for 4 SVM instances in file.
  127. --- Effective Configuration ---
  128. interface_type = ethernet
  129. UVM Target: 192.168.189.129:8080
  130. SVM 0: Port=8080, LAK=0x08 (Loaded: Yes)
  131. Simulate Control Failure: No
  132. Disconnect After: -1 messages
  133. Simulate Response Timeout: No
  134. Send Warning on Confirm: No (TKS: 1)
  135. SVM 1: Port=8081, LAK=0x09 (Loaded: Yes)
  136. Simulate Control Failure: Yes
  137. Disconnect After: -1 messages
  138. Simulate Response Timeout: No
  139. Send Warning on Confirm: No (TKS: 1)
  140. SVM 2: Port=8082, LAK=0x0A (Loaded: Yes)
  141. Simulate Control Failure: No
  142. Disconnect After: -1 messages
  143. Simulate Response Timeout: Yes
  144. Send Warning on Confirm: No (TKS: 1)
  145. SVM 3: Port=8083, LAK=0x0B (Loaded: Yes)
  146. Simulate Control Failure: No
  147. Disconnect After: 5 messages
  148. Simulate Response Timeout: No
  149. Send Warning on Confirm: No (TKS: 1)
  150. -----------------------------
  151. UVM: Found 4 SVM configurations to connect to.
  152. Thread-safe UVM request queue created with capacity 50
  153. Thread-safe UVM Response queue created with capacity 200
  154. UVM: Connecting to SVMs...
  155. UVM: Attempting to connect to SVM ID 0 (IP: 192.168.189.129, Port: 8080)...
  156. Ethernet: Connected to 192.168.189.129:8080 (handle: 3)
  157. UVM: Attempting to connect to SVM ID 1 (IP: 192.168.189.129, Port: 8081)...
  158. Ethernet: Connected to 192.168.189.129:8081 (handle: 4)
  159. UVM: Attempting to connect to SVM ID 2 (IP: 192.168.189.129, Port: 8082)...
  160. Ethernet: Connected to 192.168.189.129:8082 (handle: 5)
  161. UVM: Attempting to connect to SVM ID 3 (IP: 192.168.189.129, Port: 8083)...
  162. Ethernet: Connected to 192.168.189.129:8083 (handle: 6)
  163. UVM: Connected to 4 SVMs.
  164. UVM: Starting Sender, Receiver(s), and GUI Server threads...
  165. UVM: All threads started.
  166.  
  167. UVM Main: Sending 'Init Channel' to active SVMs...
  168. UVM Receiver thread started for SVM ID 0 (handle: 3).
  169. UVM Receiver thread started for SVM ID 3 (handle: 6).
  170. UVM Receiver thread started for SVM ID 1 (handle: 4).
  171. GUI Server: Starting listener on port 12345
  172. GUI Server: Waiting for GUI connection on port 12345...
  173. UVM Receiver thread started for SVM ID 2 (handle: 5).
  174. UVM Sender thread started.
  175. UVM Main: 'Init Channel' (Num 0) sent to SVM ID 0 (LAK 0x08).
  176. UVM Main: 'Init Channel' (Num 1) sent to SVM ID 1 (LAK 0x09).
  177. UVM Main: 'Init Channel' (Num 2) sent to SVM ID 2 (LAK 0x0A).
  178. UVM Main: 'Init Channel' (Num 3) sent to SVM ID 3 (LAK 0x0B).
  179. UVM: Main loop started. Managing SVM interactions (Iteration 2 - Init & Control Sequence)...
  180. Отправка сообщения через Ethernet: Тип=128, Номер=0, Длина тела=2, Общий размер=8, Handle=3
  181. Sender Thread: Cannot send message to SVM ID 1 (inactive or invalid).
  182. Sender Thread: Cannot send message to SVM ID 2 (inactive or invalid).
  183. Sender Thread: Cannot send message to SVM ID 3 (inactive or invalid).
  184. Получено сообщение через Ethernet: Тип=129, Номер=0, Длина тела=12, Handle=3
  185. UVM Main: Processing message type 129 from SVM ID 0 (Assigned LAK 0x08, Num 0)
  186. UVM Main: Sent 'Provesti Kontrol' (Num 0) to SVM ID 0.
  187. Отправка сообщения через Ethernet: Тип=1, Номер=0, Длина тела=1, Общий размер=7, Handle=3
  188. Получено сообщение через Ethernet: Тип=3, Номер=1, Длина тела=8, Handle=3
  189. UVM Main: Processing message type 3 from SVM ID 0 (Assigned LAK 0x08, Num 1)
  190. UVM Main: Sent 'Vydat Rezultaty Kontrolya' (Num 1) to SVM ID 0.
  191. Отправка сообщения через Ethernet: Тип=2, Номер=1, Длина тела=1, Общий размер=7, Handle=3
  192. Получено сообщение через Ethernet: Тип=4, Номер=2, Длина тела=8, Handle=3
  193. UVM Main: Processing message type 4 from SVM ID 0 (Assigned LAK 0x08, Num 2)
  194.  
  195.  
Advertisement
Add Comment
Please, Sign In to add comment