dtorkin

Untitled

May 19th, 2025 (edited)
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.38 KB | None | 0 0
  1. dtorkin@ubuntu1:~/Desktop/practice$ nc localhost 12345
  2. EVENT;SVM_ID:0;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x08
  3. EVENT;SVM_ID:1;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x09
  4. EVENT;SVM_ID:2;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x0A
  5. EVENT;SVM_ID:3;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x0B
  6. SENT;SVM_ID:0;Type:128;Num:0;LAK:0x08
  7. EVENT;SVM_ID:0;Type:ResponseTimeout;Details:CmdType=128,CmdNum=0
  8. EVENT;SVM_ID:0;Type:LinkStatus;Details:NewStatus=3,AssignedLAK=0x08
  9. SENT;SVM_ID:1;Type:128;Num:0;LAK:0x09
  10. EVENT;SVM_ID:1;Type:ResponseTimeout;Details:CmdType=128,CmdNum=0
  11. EVENT;SVM_ID:1;Type:LinkStatus;Details:NewStatus=3,AssignedLAK=0x09
  12. SENT;SVM_ID:2;Type:128;Num:0;LAK:0x0A
  13. EVENT;SVM_ID:2;Type:ResponseTimeout;Details:CmdType=128,CmdNum=0
  14. EVENT;SVM_ID:2;Type:LinkStatus;Details:NewStatus=3,AssignedLAK=0x0A
  15. SENT;SVM_ID:3;Type:128;Num:0;LAK:0x0B
  16. EVENT;SVM_ID:3;Type:ResponseTimeout;Details:CmdType=128,CmdNum=0
  17. EVENT;SVM_ID:3;Type:LinkStatus;Details:NewStatus=3,AssignedLAK=0x0B
  18.  
  19. dtorkin@ubuntu1:~/Desktop/practice$ sudo ./uvm_app --wait-for-gui OR
  20. UVM: Option --wait-for-gui enabled. Will wait for GUI connection.
  21. DEBUG UVM: Effective RadarMode selected: 0
  22. UVM: Загрузка конфигурации...
  23. Configuration parsed successfully from 'config.ini'.
  24. Found configurations for 4 SVM instances in file.
  25. --- Effective Configuration ---
  26. interface_type = ethernet
  27. UVM Target: 192.168.189.129:8080
  28. SVM 0: Port=8080, LAK=0x08 (Loaded: Yes)
  29. Simulate Control Failure: No
  30. Disconnect After: -1 messages
  31. Simulate Response Timeout: No
  32. Send Warning on Confirm: No (TKS: 1)
  33. SVM 1: Port=8081, LAK=0x09 (Loaded: Yes)
  34. Simulate Control Failure: Yes
  35. Disconnect After: -1 messages
  36. Simulate Response Timeout: No
  37. Send Warning on Confirm: No (TKS: 1)
  38. SVM 2: Port=8082, LAK=0x0A (Loaded: Yes)
  39. Simulate Control Failure: No
  40. Disconnect After: -1 messages
  41. Simulate Response Timeout: Yes
  42. Send Warning on Confirm: No (TKS: 1)
  43. SVM 3: Port=8083, LAK=0x0B (Loaded: Yes)
  44. Simulate Control Failure: No
  45. Disconnect After: 5 messages
  46. Simulate Response Timeout: No
  47. Send Warning on Confirm: No (TKS: 1)
  48. -----------------------------
  49. UVM: Found 4 SVM configurations in config file.
  50. Thread-safe UVM request queue created with capacity 50
  51. Thread-safe UVM Response queue created with capacity 200
  52. UVM: Connecting to SVMs...
  53. DEBUG UVM: IP before loop: 192.168.189.129
  54. UVM: Attempting to connect to SVM ID 0 (IP: 192.168.189.129, Port: 8080)...
  55. DEBUG UVM: Preparing to create interface for SVM 0 with IP=192.168.189.129, Port=8080
  56. Ethernet: Connected to 192.168.189.129:8080 (handle: 3)
  57. UVM: Successfully connected to SVM ID 0 (Handle: 3).
  58. UVM: Attempting to connect to SVM ID 1 (IP: 192.168.189.129, Port: 8081)...
  59. DEBUG UVM: Preparing to create interface for SVM 1 with IP=192.168.189.129, Port=8081
  60. Ethernet: Connected to 192.168.189.129:8081 (handle: 4)
  61. UVM: Successfully connected to SVM ID 1 (Handle: 4).
  62. UVM: Attempting to connect to SVM ID 2 (IP: 192.168.189.129, Port: 8082)...
  63. DEBUG UVM: Preparing to create interface for SVM 2 with IP=192.168.189.129, Port=8082
  64. Ethernet: Connected to 192.168.189.129:8082 (handle: 5)
  65. UVM: Successfully connected to SVM ID 2 (Handle: 5).
  66. UVM: Attempting to connect to SVM ID 3 (IP: 192.168.189.129, Port: 8083)...
  67. DEBUG UVM: Preparing to create interface for SVM 3 with IP=192.168.189.129, Port=8083
  68. Ethernet: Connected to 192.168.189.129:8083 (handle: 6)
  69. UVM: Successfully connected to SVM ID 3 (Handle: 6).
  70. UVM: Connected to 4 out of 4 configured SVMs.
  71. UVM: Запуск потоков Sender, Receiver(s) и GUI Server...
  72. UVM: Waiting for GUI client to connect on port 12345 (or press Ctrl+C)...
  73. UVM Sender thread started.
  74. UVM Receiver thread started for SVM ID 0 (handle: 3).
  75. UVM Receiver thread started for SVM ID 2 (handle: 5).
  76. UVM Receiver thread started for SVM ID 3 (handle: 6).
  77. GUI Server: Starting listener on port 12345
  78. GUI Server: Waiting for GUI connection on port 12345...
  79. UVM Receiver thread started for SVM ID 1 (handle: 4).
  80. GUI Server: Accepted connection from 127.0.0.1:33756 (FD 8)
  81. GUI Server: Sending initial state to new GUI client (FD 8).
  82. GUI Server: Initial state sent to GUI client (FD 8).
  83. UVM: GUI client connected! Proceeding with SVM operations.
  84. UVM: All necessary threads started. Selected RadarMode: 0
  85.  
  86. --- Подготовка к сеансу наблюдения ---
  87. UVM Main: Starting observation prep for SVM ID 0 (LAK 0x08)
  88. UVM (SVM 0): Sending msg type 128 (num 0) and waiting for response type 129...
  89. Отправка сообщения через Ethernet: Тип=128, Номер=0, Длина тела=2, Общий размер=8, Handle=3
  90. Получено сообщение через Ethernet: Тип=129, Номер=0, Длина тела=12, Handle=3
  91. UVM (SVM 0): TIMEOUT waiting for response type 129 (for sent msg num 0)!
  92. UVM Main (SVM 0): Failed InitChannel sequence. Skipping further prep.
  93. UVM Main: Starting observation prep for SVM ID 1 (LAK 0x09)
  94. receive_protocol_message: Соединение закрыто при чтении заголовка.
  95. Receiver Thread (SVM 0): Connection closed by SVM. Marking link as INACTIVE.
  96. UVM Receiver thread for SVM ID 0 finished.
  97. UVM (SVM 1): Sending msg type 128 (num 0) and waiting for response type 129...
  98. Sender Thread: Cannot send message to SVM ID 1 (inactive or invalid).
  99. UVM (SVM 1): TIMEOUT waiting for response type 129 (for sent msg num 0)!
  100. UVM Main (SVM 1): Failed InitChannel sequence. Skipping further prep.
  101. UVM Main: Starting observation prep for SVM ID 2 (LAK 0x0A)
  102. UVM (SVM 2): Sending msg type 128 (num 0) and waiting for response type 129...
  103. receive_protocol_message: Соединение закрыто при чтении заголовка.
  104. Receiver Thread (SVM 1): Connection closed by SVM. Marking link as INACTIVE.
  105. UVM Receiver thread for SVM ID 1 finished.
  106. Sender Thread: Cannot send message to SVM ID 2 (inactive or invalid).
  107. UVM (SVM 2): TIMEOUT waiting for response type 129 (for sent msg num 0)!
  108. UVM Main (SVM 2): Failed InitChannel sequence. Skipping further prep.
  109. UVM Main: Starting observation prep for SVM ID 3 (LAK 0x0B)
  110. UVM (SVM 3): Sending msg type 128 (num 0) and waiting for response type 129...
  111. receive_protocol_message: Соединение закрыто при чтении заголовка.
  112. Receiver Thread (SVM 2): Connection closed by SVM. Marking link as INACTIVE.
  113. UVM Receiver thread for SVM ID 2 finished.
  114. Sender Thread: Cannot send message to SVM ID 3 (inactive or invalid).
  115. UVM (SVM 3): TIMEOUT waiting for response type 129 (for sent msg num 0)!
  116. UVM Main (SVM 3): Failed InitChannel sequence. Skipping further prep.
  117.  
  118. --- Подготовка к сеансу съемки ---
  119. DEBUG UVM: Mode before sending parameters: 0
  120. UVM: Все сообщения подготовки к съемке отправлены.
  121. UVM: Ожидание асинхронных сообщений от SVM (или Ctrl+C для завершения)...
  122. UVM Main: Ignored message type 129 from non-active/failed SVM ID 0 (Status: 0)
  123. receive_protocol_message: Соединение закрыто при чтении заголовка.
  124. Receiver Thread (SVM 3): Connection closed by SVM. Marking link as INACTIVE.
  125. UVM Receiver thread for SVM ID 3 finished.
  126.  
  127. dtorkin@ubuntu1:~/Desktop/practice$ sudo ./svm_app
  128. [sudo] пароль для dtorkin:
  129. SVM Multi-Port Server starting...
  130. Message handlers initialized.
  131. SVM: Loading configuration...
  132. Configuration parsed successfully from 'config.ini'.
  133. Found configurations for 4 SVM instances in file.
  134. --- Effective Configuration ---
  135. interface_type = ethernet
  136. UVM Target: 192.168.189.129:8080
  137. SVM 0: Port=8080, LAK=0x08 (Loaded: Yes)
  138. Simulate Control Failure: No
  139. Disconnect After: -1 messages
  140. Simulate Response Timeout: No
  141. Send Warning on Confirm: No (TKS: 1)
  142. SVM 1: Port=8081, LAK=0x09 (Loaded: Yes)
  143. Simulate Control Failure: Yes
  144. Disconnect After: -1 messages
  145. Simulate Response Timeout: No
  146. Send Warning on Confirm: No (TKS: 1)
  147. SVM 2: Port=8082, LAK=0x0A (Loaded: Yes)
  148. Simulate Control Failure: No
  149. Disconnect After: -1 messages
  150. Simulate Response Timeout: Yes
  151. Send Warning on Confirm: No (TKS: 1)
  152. SVM 3: Port=8083, LAK=0x0B (Loaded: Yes)
  153. Simulate Control Failure: No
  154. Disconnect After: 5 messages
  155. Simulate Response Timeout: No
  156. Send Warning on Confirm: No (TKS: 1)
  157. -----------------------------
  158. SVM: Will attempt to start 4 instances based on config.
  159. DEBUG SVM MAIN - Instance 0 Settings: LAK=0x08, simulate_control_failure=0, disconnect_after=-1, simulate_timeout=0, send_warning=0, tks=1
  160. DEBUG SVM MAIN - Instance 1 Settings: LAK=0x09, simulate_control_failure=1, disconnect_after=-1, simulate_timeout=0, send_warning=0, tks=1
  161. DEBUG SVM MAIN - Instance 2 Settings: LAK=0x0A, simulate_control_failure=0, disconnect_after=-1, simulate_timeout=1, send_warning=0, tks=1
  162. DEBUG SVM MAIN - Instance 3 Settings: LAK=0x0B, simulate_control_failure=0, disconnect_after=5, simulate_timeout=0, send_warning=0, tks=1
  163. SVM: Loading configuration...
  164. Configuration parsed successfully from 'config.ini'.
  165. Found configurations for 4 SVM instances in file.
  166. --- Effective Configuration ---
  167. interface_type = ethernet
  168. UVM Target: 192.168.189.129:8080
  169. SVM 0: Port=8080, LAK=0x08 (Loaded: Yes)
  170. Simulate Control Failure: No
  171. Disconnect After: -1 messages
  172. Simulate Response Timeout: No
  173. Send Warning on Confirm: No (TKS: 1)
  174. SVM 1: Port=8081, LAK=0x09 (Loaded: Yes)
  175. Simulate Control Failure: Yes
  176. Disconnect After: -1 messages
  177. Simulate Response Timeout: No
  178. Send Warning on Confirm: No (TKS: 1)
  179. SVM 2: Port=8082, LAK=0x0A (Loaded: Yes)
  180. Simulate Control Failure: No
  181. Disconnect After: -1 messages
  182. Simulate Response Timeout: Yes
  183. Send Warning on Confirm: No (TKS: 1)
  184. SVM 3: Port=8083, LAK=0x0B (Loaded: Yes)
  185. Simulate Control Failure: No
  186. Disconnect After: 5 messages
  187. Simulate Response Timeout: No
  188. Send Warning on Confirm: No (TKS: 1)
  189. -----------------------------
  190. SVM: Will attempt to start 4 instances based on config.
  191. Thread-safe QueuedMessage queue created with capacity 400
  192. SVM: Listener thread 0 initiated for Port 8080 (LAK 0x08).
  193. SVM: Listener thread 1 initiated for Port 8081 (LAK 0x09).
  194. SVM: Listener thread 2 initiated for Port 8082 (LAK 0x0A).
  195. SVM: Listener thread 3 initiated for Port 8083 (LAK 0x0B).
  196. SVM: Starting common threads (Timer, Sender)...
  197. SVM: All common threads started. 4 listeners active. Running...
  198. SVM Main: Waiting for shutdown signal...
  199. Ethernet: Listening on port 8080 (handle: 3)
  200. Listener thread started for SVM ID 0 (LAK 0x08, Port 8080, Listen FD 3)
  201. Listener (SVM 0): Waiting for connection on port 8080...
  202. Ethernet: Listening on port 8081 (handle: 5)
  203. Listener thread started for SVM ID 1 (LAK 0x09, Port 8081, Listen FD 5)
  204. Listener (SVM 1): Waiting for connection on port 8081...
  205. Ethernet: Listening on port 8082 (handle: 7)
  206. Listener thread started for SVM ID 2 (LAK 0x0A, Port 8082, Listen FD 7)
  207. Listener (SVM 2): Waiting for connection on port 8082...
  208. Ethernet: Listening on port 8083 (handle: 9)
  209. Listener thread started for SVM ID 3 (LAK 0x0B, Port 8083, Listen FD 9)
  210. Listener (SVM 3): Waiting for connection on port 8083...
  211. SVM Timer thread started.
  212. SVM Sender thread started (reads global outgoing queue).
  213. Listener (SVM 0): Accepted connection from 192.168.189.128:45914 (Client FD 4)
  214. Thread-safe QueuedMessage queue created with capacity 100
  215. Listener (SVM 0): Instance activated. Worker threads started.
  216. Listener (SVM 1): Accepted connection from 192.168.189.128:41620 (Client FD 6)
  217. Thread-safe QueuedMessage queue created with capacity 100
  218. Listener (SVM 1): Instance activated. Worker threads started.
  219. SVM Processor thread started for instance 0.
  220. SVM Receiver thread started for instance 0 (handle: 4).
  221. SVM Receiver thread started for instance 1 (handle: 6).
  222. SVM Processor thread started for instance 1.
  223. Listener (SVM 2): Accepted connection from 192.168.189.128:53122 (Client FD 8)
  224. Thread-safe QueuedMessage queue created with capacity 100
  225. Listener (SVM 2): Instance activated. Worker threads started.
  226. SVM Processor thread started for instance 2.
  227. Listener (SVM 3): Accepted connection from 192.168.189.128:57012 (Client FD 10)
  228. Thread-safe QueuedMessage queue created with capacity 100
  229. SVM Receiver thread started for instance 2 (handle: 8).
  230. Listener (SVM 3): Instance activated. Worker threads started.
  231. SVM Receiver thread started for instance 3 (handle: 10).
  232. SVM Processor thread started for instance 3.
  233. Получено сообщение через Ethernet: Тип=128, Номер=0, Длина тела=2, Handle=4
  234. Processor (Inst 0): Обработка 'Инициализация канала'
  235. Параметры: LAUVM=0x1, LAK=0x08 (assigned)
  236. SVM (Inst 0): Эмуляция выключения лазера...
  237. Ответ 'Подтверждение инициализации' сформирован (LAK=0x08).
  238. Отправка сообщения через Ethernet: Тип=129, Номер=0, Длина тела=12, Общий размер=18, Handle=4
  239. receive_protocol_message: Соединение закрыто при чтении заголовка.
  240. Receiver Thread (Inst 0): Connection closed by UVM. Stopping instance.
  241. Receiver Thread (Inst 0): Marked instance as inactive.
  242. Receiver Thread (Inst 0): Shutting down incoming queue.
  243. Thread-safe QueuedMessage queue shutdown initiated.
  244. SVM Receiver thread finished for instance 0.
  245. Processor Thread (Inst 0): Incoming queue empty and shutdown. Exiting.
  246. SVM Processor thread finished for instance 0.
  247. Listener (SVM 0): Receiver thread joined.
  248. Listener (SVM 0): Processor thread joined.
  249. Listener (SVM 0): Worker threads finished. Cleaning up instance...
  250. Ethernet: Closing handle 4
  251. Thread-safe QueuedMessage queue destroyed
  252. Listener (SVM 0): Instance deactivated. Ready for new connection.
  253. Listener (SVM 0): Waiting for connection on port 8080...
  254. receive_protocol_message: Соединение закрыто при чтении заголовка.
  255. Receiver Thread (Inst 1): Connection closed by UVM. Stopping instance.
  256. Receiver Thread (Inst 1): Marked instance as inactive.
  257. Receiver Thread (Inst 1): Shutting down incoming queue.
  258. Thread-safe QueuedMessage queue shutdown initiated.
  259. SVM Receiver thread finished for instance 1.
  260. Processor Thread (Inst 1): Incoming queue empty and shutdown. Exiting.
  261. SVM Processor thread finished for instance 1.
  262. Listener (SVM 1): Receiver thread joined.
  263. Listener (SVM 1): Processor thread joined.
  264. Listener (SVM 1): Worker threads finished. Cleaning up instance...
  265. Ethernet: Closing handle 6
  266. Thread-safe QueuedMessage queue destroyed
  267. Listener (SVM 1): Instance deactivated. Ready for new connection.
  268. Listener (SVM 1): Waiting for connection on port 8081...
  269. receive_protocol_message: Соединение закрыто при чтении заголовка.
  270. Receiver Thread (Inst 2): Connection closed by UVM. Stopping instance.
  271. Receiver Thread (Inst 2): Marked instance as inactive.
  272. Receiver Thread (Inst 2): Shutting down incoming queue.
  273. Thread-safe QueuedMessage queue shutdown initiated.
  274. SVM Receiver thread finished for instance 2.
  275. Processor Thread (Inst 2): Incoming queue empty and shutdown. Exiting.
  276. SVM Processor thread finished for instance 2.
  277. Listener (SVM 2): Receiver thread joined.
  278. Listener (SVM 2): Processor thread joined.
  279. Listener (SVM 2): Worker threads finished. Cleaning up instance...
  280. Ethernet: Closing handle 8
  281. Thread-safe QueuedMessage queue destroyed
  282. Listener (SVM 2): Instance deactivated. Ready for new connection.
  283. Listener (SVM 2): Waiting for connection on port 8082...
  284. receive_protocol_message: Соединение закрыто при чтении заголовка.
  285. Receiver Thread (Inst 3): Connection closed by UVM. Stopping instance.
  286. Receiver Thread (Inst 3): Marked instance as inactive.
  287. Receiver Thread (Inst 3): Shutting down incoming queue.
  288. Thread-safe QueuedMessage queue shutdown initiated.
  289. SVM Receiver thread finished for instance 3.
  290. Listener (SVM 3): Receiver thread joined.
  291. Processor Thread (Inst 3): Incoming queue empty and shutdown. Exiting.
  292. SVM Processor thread finished for instance 3.
  293. Listener (SVM 3): Processor thread joined.
  294. Listener (SVM 3): Worker threads finished. Cleaning up instance...
  295. Ethernet: Closing handle 10
  296. Thread-safe QueuedMessage queue destroyed
  297. Listener (SVM 3): Instance deactivated. Ready for new connection.
  298. Listener (SVM 3): Waiting for connection on port 8083...
  299.  
  300.  
Advertisement
Add Comment
Please, Sign In to add comment