dtorkin

Untitled

May 19th, 2025 (edited)
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.81 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:49026 (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. UVM (SVM 1): Sending msg type 128 (num 0) and waiting for response type 129...
  95. receive_protocol_message: Соединение закрыто при чтении заголовка.
  96. Receiver Thread (SVM 0): Connection closed by SVM. Marking link as INACTIVE.
  97. UVM Receiver thread for SVM ID 0 finished.
  98. Отправка сообщения через Ethernet: Тип=128, Номер=0, Длина тела=2, Общий размер=8, Handle=4
  99. Получено сообщение через Ethernet: Тип=129, Номер=0, Длина тела=12, Handle=4
  100. UVM (SVM 1): TIMEOUT waiting for response type 129 (for sent msg num 0)!
  101. UVM Main (SVM 1): Failed InitChannel sequence. Skipping further prep.
  102. UVM Main: Starting observation prep for SVM ID 2 (LAK 0x0A)
  103. UVM (SVM 2): Sending msg type 128 (num 0) and waiting for response type 129...
  104. receive_protocol_message: Соединение закрыто при чтении заголовка.
  105. Receiver Thread (SVM 1): Connection closed by SVM. Marking link as INACTIVE.
  106. UVM Receiver thread for SVM ID 1 finished.
  107. Отправка сообщения через Ethernet: Тип=128, Номер=0, Длина тела=2, Общий размер=8, Handle=5
  108. Получено сообщение через Ethernet: Тип=129, Номер=0, Длина тела=12, Handle=5
  109. UVM (SVM 2): TIMEOUT waiting for response type 129 (for sent msg num 0)!
  110. UVM Main (SVM 2): Failed InitChannel sequence. Skipping further prep.
  111. UVM Main: Starting observation prep for SVM ID 3 (LAK 0x0B)
  112. UVM (SVM 3): Sending msg type 128 (num 0) and waiting for response type 129...
  113. receive_protocol_message: Соединение закрыто при чтении заголовка.
  114. Receiver Thread (SVM 2): Connection closed by SVM. Marking link as INACTIVE.
  115. UVM Receiver thread for SVM ID 2 finished.
  116. Отправка сообщения через Ethernet: Тип=128, Номер=0, Длина тела=2, Общий размер=8, Handle=6
  117. Получено сообщение через Ethernet: Тип=129, Номер=0, Длина тела=12, Handle=6
  118. UVM (SVM 3): TIMEOUT waiting for response type 129 (for sent msg num 0)!
  119. UVM Main (SVM 3): Failed InitChannel sequence. Skipping further prep.
  120.  
  121. --- Подготовка к сеансу съемки ---
  122. DEBUG UVM: Mode before sending parameters: 0
  123. UVM: Все сообщения подготовки к съемке отправлены.
  124. UVM: Ожидание асинхронных сообщений от SVM (или Ctrl+C для завершения)...
  125. UVM Main: Ignored message type 129 from non-active/failed SVM ID 0 (Status: 3)
  126. UVM Main: Ignored message type 129 from non-active/failed SVM ID 1 (Status: 3)
  127. UVM Main: Ignored message type 129 from non-active/failed SVM ID 2 (Status: 3)
  128. UVM Main: Ignored message type 129 from non-active/failed SVM ID 3 (Status: 3)
  129. receive_protocol_message: Соединение закрыто при чтении заголовка.
  130. Receiver Thread (SVM 3): Connection closed by SVM. Marking link as INACTIVE.
  131. UVM Receiver thread for SVM ID 3 finished.
  132.  
  133. dtorkin@ubuntu1:~/Desktop/practice$ sudo ./svm_app
  134. SVM Multi-Port Server starting...
  135. Message handlers initialized.
  136. SVM: Loading configuration...
  137. Configuration parsed successfully from 'config.ini'.
  138. Found configurations for 4 SVM instances in file.
  139. --- Effective Configuration ---
  140. interface_type = ethernet
  141. UVM Target: 192.168.189.129:8080
  142. SVM 0: Port=8080, LAK=0x08 (Loaded: Yes)
  143. Simulate Control Failure: No
  144. Disconnect After: -1 messages
  145. Simulate Response Timeout: No
  146. Send Warning on Confirm: No (TKS: 1)
  147. SVM 1: Port=8081, LAK=0x09 (Loaded: Yes)
  148. Simulate Control Failure: Yes
  149. Disconnect After: -1 messages
  150. Simulate Response Timeout: No
  151. Send Warning on Confirm: No (TKS: 1)
  152. SVM 2: Port=8082, LAK=0x0A (Loaded: Yes)
  153. Simulate Control Failure: No
  154. Disconnect After: -1 messages
  155. Simulate Response Timeout: Yes
  156. Send Warning on Confirm: No (TKS: 1)
  157. SVM 3: Port=8083, LAK=0x0B (Loaded: Yes)
  158. Simulate Control Failure: No
  159. Disconnect After: 5 messages
  160. Simulate Response Timeout: No
  161. Send Warning on Confirm: No (TKS: 1)
  162. -----------------------------
  163. SVM: Will attempt to start 4 instances based on config.
  164. DEBUG SVM MAIN - Instance 0 Settings: LAK=0x08, simulate_control_failure=0, disconnect_after=-1, simulate_timeout=0, send_warning=0, tks=1
  165. DEBUG SVM MAIN - Instance 1 Settings: LAK=0x09, simulate_control_failure=1, disconnect_after=-1, simulate_timeout=0, send_warning=0, tks=1
  166. DEBUG SVM MAIN - Instance 2 Settings: LAK=0x0A, simulate_control_failure=0, disconnect_after=-1, simulate_timeout=1, send_warning=0, tks=1
  167. DEBUG SVM MAIN - Instance 3 Settings: LAK=0x0B, simulate_control_failure=0, disconnect_after=5, simulate_timeout=0, send_warning=0, tks=1
  168. SVM: Loading configuration...
  169. Configuration parsed successfully from 'config.ini'.
  170. Found configurations for 4 SVM instances in file.
  171. --- Effective Configuration ---
  172. interface_type = ethernet
  173. UVM Target: 192.168.189.129:8080
  174. SVM 0: Port=8080, LAK=0x08 (Loaded: Yes)
  175. Simulate Control Failure: No
  176. Disconnect After: -1 messages
  177. Simulate Response Timeout: No
  178. Send Warning on Confirm: No (TKS: 1)
  179. SVM 1: Port=8081, LAK=0x09 (Loaded: Yes)
  180. Simulate Control Failure: Yes
  181. Disconnect After: -1 messages
  182. Simulate Response Timeout: No
  183. Send Warning on Confirm: No (TKS: 1)
  184. SVM 2: Port=8082, LAK=0x0A (Loaded: Yes)
  185. Simulate Control Failure: No
  186. Disconnect After: -1 messages
  187. Simulate Response Timeout: Yes
  188. Send Warning on Confirm: No (TKS: 1)
  189. SVM 3: Port=8083, LAK=0x0B (Loaded: Yes)
  190. Simulate Control Failure: No
  191. Disconnect After: 5 messages
  192. Simulate Response Timeout: No
  193. Send Warning on Confirm: No (TKS: 1)
  194. -----------------------------
  195. SVM: Will attempt to start 4 instances based on config.
  196. Thread-safe QueuedMessage queue created with capacity 400
  197. SVM: Listener thread 0 initiated for Port 8080 (LAK 0x08).
  198. SVM: Listener thread 1 initiated for Port 8081 (LAK 0x09).
  199. SVM: Listener thread 2 initiated for Port 8082 (LAK 0x0A).
  200. SVM: Listener thread 3 initiated for Port 8083 (LAK 0x0B).
  201. SVM: Starting common threads (Timer, Sender)...
  202. SVM: All common threads started. 4 listeners active. Running...
  203. SVM Main: Waiting for shutdown signal...
  204. Ethernet: Listening on port 8082 (handle: 4)
  205. Listener thread started for SVM ID 2 (LAK 0x0A, Port 8082, Listen FD 4)
  206. Listener (SVM 2): Waiting for connection on port 8082...
  207. SVM Sender thread started (reads global outgoing queue).
  208. Ethernet: Listening on port 8083 (handle: 5)
  209. SVM Timer thread started.
  210. Ethernet: Listening on port 8081 (handle: 3)
  211. Listener thread started for SVM ID 1 (LAK 0x09, Port 8081, Listen FD 3)
  212. Listener (SVM 1): Waiting for connection on port 8081...
  213. Listener thread started for SVM ID 3 (LAK 0x0B, Port 8083, Listen FD 5)
  214. Listener (SVM 3): Waiting for connection on port 8083...
  215. Ethernet: Listening on port 8080 (handle: 9)
  216. Listener thread started for SVM ID 0 (LAK 0x08, Port 8080, Listen FD 9)
  217. Listener (SVM 0): Waiting for connection on port 8080...
  218. Listener (SVM 0): Accepted connection from 192.168.189.128:35470 (Client FD 10)
  219. Thread-safe QueuedMessage queue created with capacity 100
  220. Listener (SVM 0): Instance activated. Worker threads started.
  221. SVM Receiver thread started for instance 0 (handle: 10).
  222. Listener (SVM 1): Accepted connection from 192.168.189.128:59094 (Client FD 7)
  223. Thread-safe QueuedMessage queue created with capacity 100
  224. SVM Processor thread started for instance 0.
  225. Listener (SVM 1): Instance activated. Worker threads started.
  226. SVM Receiver thread started for instance 1 (handle: 7).
  227. SVM Processor thread started for instance 1.
  228. Listener (SVM 2): Accepted connection from 192.168.189.128:54652 (Client FD 6)
  229. Thread-safe QueuedMessage queue created with capacity 100
  230. Listener (SVM 2): Instance activated. Worker threads started.
  231. SVM Receiver thread started for instance 2 (handle: 6).
  232. SVM Processor thread started for instance 2.
  233. Listener (SVM 3): Accepted connection from 192.168.189.128:44862 (Client FD 8)
  234. Thread-safe QueuedMessage queue created with capacity 100
  235. Listener (SVM 3): Instance activated. Worker threads started.
  236. SVM Receiver thread started for instance 3 (handle: 8).
  237. SVM Processor thread started for instance 3.
  238. Получено сообщение через Ethernet: Тип=128, Номер=0, Длина тела=2, Handle=10
  239. Processor (Inst 0): Обработка 'Инициализация канала'
  240. Параметры: LAUVM=0x1, LAK=0x08 (assigned)
  241. SVM (Inst 0): Эмуляция выключения лазера...
  242. Ответ 'Подтверждение инициализации' сформирован (LAK=0x08).
  243. Отправка сообщения через Ethernet: Тип=129, Номер=0, Длина тела=12, Общий размер=18, Handle=10
  244. receive_protocol_message: Соединение закрыто при чтении заголовка.
  245. Receiver Thread (Inst 0): Connection closed by UVM. Stopping instance.
  246. Receiver Thread (Inst 0): Marked instance as inactive.
  247. Receiver Thread (Inst 0): Shutting down incoming queue.
  248. Thread-safe QueuedMessage queue shutdown initiated.
  249. SVM Receiver thread finished for instance 0.
  250. Listener (SVM 0): Receiver thread joined.
  251. Processor Thread (Inst 0): Incoming queue empty and shutdown. Exiting.
  252. SVM Processor thread finished for instance 0.
  253. Listener (SVM 0): Processor thread joined.
  254. Listener (SVM 0): Worker threads finished. Cleaning up instance...
  255. Ethernet: Closing handle 10
  256. Thread-safe QueuedMessage queue destroyed
  257. Listener (SVM 0): Instance deactivated. Ready for new connection.
  258. Listener (SVM 0): Waiting for connection on port 8080...
  259. Получено сообщение через Ethernet: Тип=128, Номер=0, Длина тела=2, Handle=7
  260. Processor (Inst 1): Обработка 'Инициализация канала'
  261. Параметры: LAUVM=0x1, LAK=0x09 (assigned)
  262. SVM (Inst 1): Эмуляция выключения лазера...
  263. Ответ 'Подтверждение инициализации' сформирован (LAK=0x09).
  264. Отправка сообщения через Ethernet: Тип=129, Номер=0, Длина тела=12, Общий размер=18, Handle=7
  265. receive_protocol_message: Соединение закрыто при чтении заголовка.
  266. Receiver Thread (Inst 1): Connection closed by UVM. Stopping instance.
  267. Receiver Thread (Inst 1): Marked instance as inactive.
  268. Receiver Thread (Inst 1): Shutting down incoming queue.
  269. Thread-safe QueuedMessage queue shutdown initiated.
  270. SVM Receiver thread finished for instance 1.
  271. Processor Thread (Inst 1): Incoming queue empty and shutdown. Exiting.
  272. SVM Processor thread finished for instance 1.
  273. Listener (SVM 1): Receiver thread joined.
  274. Listener (SVM 1): Processor thread joined.
  275. Listener (SVM 1): Worker threads finished. Cleaning up instance...
  276. Ethernet: Closing handle 7
  277. Получено сообщение через Ethernet: Тип=128, Номер=0, Длина тела=2, Handle=6
  278. Thread-safe QueuedMessage queue destroyed
  279. Listener (SVM 1): Instance deactivated. Ready for new connection.
  280. Listener (SVM 1): Waiting for connection on port 8081...
  281. Processor (Inst 2): Обработка 'Инициализация канала'
  282. Параметры: LAUVM=0x1, LAK=0x0A (assigned)
  283. SVM (Inst 2): Эмуляция выключения лазера...
  284. Ответ 'Подтверждение инициализации' сформирован (LAK=0x0A).
  285. Отправка сообщения через Ethernet: Тип=129, Номер=0, Длина тела=12, Общий размер=18, Handle=6
  286. receive_protocol_message: Соединение закрыто при чтении заголовка.
  287. Receiver Thread (Inst 2): Connection closed by UVM. Stopping instance.
  288. Receiver Thread (Inst 2): Marked instance as inactive.
  289. Receiver Thread (Inst 2): Shutting down incoming queue.
  290. Thread-safe QueuedMessage queue shutdown initiated.
  291. SVM Receiver thread finished for instance 2.
  292. Listener (SVM 2): Receiver thread joined.
  293. Processor Thread (Inst 2): Incoming queue empty and shutdown. Exiting.
  294. SVM Processor thread finished for instance 2.
  295. Listener (SVM 2): Processor thread joined.
  296. Listener (SVM 2): Worker threads finished. Cleaning up instance...
  297. Ethernet: Closing handle 6
  298. Thread-safe QueuedMessage queue destroyed
  299. Listener (SVM 2): Instance deactivated. Ready for new connection.
  300. Listener (SVM 2): Waiting for connection on port 8082...
  301. Получено сообщение через Ethernet: Тип=128, Номер=0, Длина тела=2, Handle=8
  302. Processor (Inst 3): Обработка 'Инициализация канала'
  303. Параметры: LAUVM=0x1, LAK=0x0B (assigned)
  304. SVM (Inst 3): Эмуляция выключения лазера...
  305. Ответ 'Подтверждение инициализации' сформирован (LAK=0x0B).
  306. Отправка сообщения через Ethernet: Тип=129, Номер=0, Длина тела=12, Общий размер=18, Handle=8
  307. receive_protocol_message: Соединение закрыто при чтении заголовка.
  308. Receiver Thread (Inst 3): Connection closed by UVM. Stopping instance.
  309. Receiver Thread (Inst 3): Marked instance as inactive.
  310. Receiver Thread (Inst 3): Shutting down incoming queue.
  311. Thread-safe QueuedMessage queue shutdown initiated.
  312. SVM Receiver thread finished for instance 3.
  313. Listener (SVM 3): Receiver thread joined.
  314. Processor Thread (Inst 3): Incoming queue empty and shutdown. Exiting.
  315. SVM Processor thread finished for instance 3.
  316. Listener (SVM 3): Processor thread joined.
  317. Listener (SVM 3): Worker threads finished. Cleaning up instance...
  318. Ethernet: Closing handle 8
  319. Thread-safe QueuedMessage queue destroyed
  320. Listener (SVM 3): Instance deactivated. Ready for new connection.
  321. Listener (SVM 3): Waiting for connection on port 8083...
  322.  
  323.  
Advertisement
Add Comment
Please, Sign In to add comment