dtorkin

Untitled

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