dtorkin

Untitled

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