dtorkin

Untitled

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