dtorkin

Untitled

May 18th, 2025 (edited)
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.07 KB | None | 0 0
  1. dtorkin@ubuntu1:~/Desktop/practice$ ./svm_app
  2. SVM Multi-Port Server starting...
  3. Message handlers initialized.
  4. SVM: Loading configuration...
  5. Configuration parsed successfully from 'config.ini'.
  6. Found configurations for 1 SVM instances in file.
  7. Found configurations for 2 SVM instances in file.
  8. Found configurations for 3 SVM instances in file.
  9. Found configurations for 4 SVM instances in file.
  10. --- Effective Configuration ---
  11. interface_type = ethernet
  12. UVM Target: 192.168.189.129:8080
  13. Keep-Alive Timeout: 15 seconds
  14. Response Timeout: 5 seconds
  15. SVM 0: Port=8080, LAK=0x08 (Loaded: Yes)
  16. Simulate Control Failure: No
  17. Disconnect After: -1 messages
  18. Simulate Response Timeout: No
  19. Send Warning on Confirm: No (TKS: 1)
  20. SVM 1: Port=8081, LAK=0x09 (Loaded: Yes)
  21. Simulate Control Failure: Yes
  22. Disconnect After: -1 messages
  23. Simulate Response Timeout: No
  24. Send Warning on Confirm: No (TKS: 1)
  25. SVM 2: Port=8082, LAK=0x0A (Loaded: Yes)
  26. Simulate Control Failure: No
  27. Disconnect After: -1 messages
  28. Simulate Response Timeout: Yes
  29. Send Warning on Confirm: No (TKS: 1)
  30. SVM 3: Port=8083, LAK=0x0B (Loaded: Yes)
  31. Simulate Control Failure: No
  32. Disconnect After: 5 messages
  33. Simulate Response Timeout: No
  34. Send Warning on Confirm: No (TKS: 1)
  35. -----------------------------
  36. SVM: Will attempt to start 4 instances based on config.
  37. DEBUG SVM MAIN - Instance 0 Settings: LAK=0x08, simulate_control_failure=0, disconnect_after=-1, simulate_timeout=0, send_warning=0, tks=1
  38. DEBUG SVM MAIN - Instance 1 Settings: LAK=0x09, simulate_control_failure=1, disconnect_after=-1, simulate_timeout=0, send_warning=0, tks=1
  39. DEBUG SVM MAIN - Instance 2 Settings: LAK=0x0A, simulate_control_failure=0, disconnect_after=-1, simulate_timeout=1, send_warning=0, tks=1
  40. DEBUG SVM MAIN - Instance 3 Settings: LAK=0x0B, simulate_control_failure=0, disconnect_after=5, simulate_timeout=0, send_warning=0, tks=1
  41. SVM: Loading configuration...
  42. Configuration parsed successfully from 'config.ini'.
  43. Found configurations for 1 SVM instances in file.
  44. Found configurations for 2 SVM instances in file.
  45. Found configurations for 3 SVM instances in file.
  46. Found configurations for 4 SVM instances in file.
  47. --- Effective Configuration ---
  48. interface_type = ethernet
  49. UVM Target: 192.168.189.129:8080
  50. Keep-Alive Timeout: 15 seconds
  51. Response Timeout: 5 seconds
  52. SVM 0: Port=8080, LAK=0x08 (Loaded: Yes)
  53. Simulate Control Failure: No
  54. Disconnect After: -1 messages
  55. Simulate Response Timeout: No
  56. Send Warning on Confirm: No (TKS: 1)
  57. SVM 1: Port=8081, LAK=0x09 (Loaded: Yes)
  58. Simulate Control Failure: Yes
  59. Disconnect After: -1 messages
  60. Simulate Response Timeout: No
  61. Send Warning on Confirm: No (TKS: 1)
  62. SVM 2: Port=8082, LAK=0x0A (Loaded: Yes)
  63. Simulate Control Failure: No
  64. Disconnect After: -1 messages
  65. Simulate Response Timeout: Yes
  66. Send Warning on Confirm: No (TKS: 1)
  67. SVM 3: Port=8083, LAK=0x0B (Loaded: Yes)
  68. Simulate Control Failure: No
  69. Disconnect After: 5 messages
  70. Simulate Response Timeout: No
  71. Send Warning on Confirm: No (TKS: 1)
  72. -----------------------------
  73. SVM: Will attempt to start 4 instances based on config.
  74. Thread-safe QueuedMessage queue created with capacity 400
  75. SVM: Listener thread 0 initiated for Port 8080 (LAK 0x08).
  76. SVM: Listener thread 1 initiated for Port 8081 (LAK 0x09).
  77. Ethernet: Listening on port 8080 (handle: 3)
  78. Listener thread started for SVM ID 0 (LAK 0x08, Port 8080, Listen FD 3)
  79. Listener (SVM 0): Waiting for connection on port 8080...
  80. Ethernet: Listening on port 8081 (handle: 4)
  81. Listener thread started for SVM ID 1 (LAK 0x09, Port 8081, Listen FD 4)
  82. Listener (SVM 1): Waiting for connection on port 8081...
  83. SVM: Listener thread 2 initiated for Port 8082 (LAK 0x0A).
  84. Ethernet: Listening on port 8082 (handle: 5)
  85. Listener thread started for SVM ID 2 (LAK 0x0A, Port 8082, Listen FD 5)
  86. Listener (SVM 2): Waiting for connection on port 8082...
  87. SVM: Listener thread 3 initiated for Port 8083 (LAK 0x0B).
  88. SVM: Starting common threads (Timer, Sender)...
  89. Ethernet: Listening on port 8083 (handle: 9)
  90. Listener thread started for SVM ID 3 (LAK 0x0B, Port 8083, Listen FD 9)
  91. Listener (SVM 3): Waiting for connection on port 8083...
  92. SVM Timer thread started.
  93. SVM Sender thread started (reads global outgoing queue).
  94. SVM: All common threads started. 4 listeners active. Running...
  95. SVM Main: Waiting for shutdown signal...
  96. Listener (SVM 0): Accepted connection from 192.168.189.128:47484 (Client FD 6)
  97. Thread-safe QueuedMessage queue created with capacity 100
  98. Listener (SVM 1): Accepted connection from 192.168.189.128:41312 (Client FD 7)
  99. Thread-safe QueuedMessage queue created with capacity 100
  100. Listener (SVM 1): Instance activated. Worker threads started.
  101. SVM Receiver thread started for instance 1 (handle: 7).
  102. Listener (SVM 0): Instance activated. Worker threads started.
  103. SVM Processor thread started for instance 1.
  104. Listener (SVM 2): Accepted connection from 192.168.189.128:36672 (Client FD 8)
  105. Thread-safe QueuedMessage queue created with capacity 100
  106. Listener (SVM 2): Instance activated. Worker threads started.
  107. SVM Receiver thread started for instance 2 (handle: 8).
  108. SVM Receiver thread started for instance 0 (handle: 6).
  109. SVM Processor thread started for instance 0.
  110. SVM Processor thread started for instance 2.
  111. Listener (SVM 3): Accepted connection from 192.168.189.128:56766 (Client FD 10)
  112. Thread-safe QueuedMessage queue created with capacity 100
  113. Listener (SVM 3): Instance activated. Worker threads started.
  114. SVM Receiver thread started for instance 3 (handle: 10).
  115. SVM Processor thread started for instance 3.
  116. ^C
  117. SVM: Received shutdown signal. Shutting down all listeners and instances...
  118. Thread-safe QueuedMessage queue shutdown initiated.
  119. Timer thread stop signaled.
  120. SVM Main: Shutdown initiated. Waiting for threads to join...
  121. Timer thread stop signaled.
  122. SVM Timer thread stopped.
  123. SVM Sender thread finished.
  124. SVM Main: Timer thread joined.
  125. SVM Main: Waiting for listener threads to join...
  126. ^C
  127. SVM: Received shutdown signal. Shutting down all listeners and instances...
  128. Timer thread stop signaled.
  129. ^C
  130. SVM: Received shutdown signal. Shutting down all listeners and instances...
  131. Timer thread stop signaled.
  132. ^C
  133. SVM: Received shutdown signal. Shutting down all listeners and instances...
  134. Timer thread stop signaled.
  135. ^C
  136. SVM: Received shutdown signal. Shutting down all listeners and instances...
  137. Timer thread stop signaled.
  138. ^C
  139. SVM: Received shutdown signal. Shutting down all listeners and instances...
  140. Timer thread stop signaled.
  141. ^C
  142. SVM: Received shutdown signal. Shutting down all listeners and instances...
  143. Timer thread stop signaled.
  144.  
  145. dtorkin@ubuntu1:~/Desktop/practice$ sudo ./uvm_app --wait-for-gui DR
  146. [sudo] пароль для dtorkin:
  147. UVM: Option --wait-for-gui enabled. Will wait for GUI connection.
  148. UVM: Effective RadarMode selected: DR (129)
  149. UVM: Загрузка конфигурации...
  150. Configuration parsed successfully from 'config.ini'.
  151. Found configurations for 1 SVM instances in file.
  152. Found configurations for 2 SVM instances in file.
  153. Found configurations for 3 SVM instances in file.
  154. Found configurations for 4 SVM instances in file.
  155. --- Effective Configuration ---
  156. interface_type = ethernet
  157. UVM Target: 192.168.189.129:8080
  158. Keep-Alive Timeout: 15 seconds
  159. Response Timeout: 5 seconds
  160. SVM 0: Port=8080, LAK=0x08 (Loaded: Yes)
  161. Simulate Control Failure: No
  162. Disconnect After: -1 messages
  163. Simulate Response Timeout: No
  164. Send Warning on Confirm: No (TKS: 1)
  165. SVM 1: Port=8081, LAK=0x09 (Loaded: Yes)
  166. Simulate Control Failure: Yes
  167. Disconnect After: -1 messages
  168. Simulate Response Timeout: No
  169. Send Warning on Confirm: No (TKS: 1)
  170. SVM 2: Port=8082, LAK=0x0A (Loaded: Yes)
  171. Simulate Control Failure: No
  172. Disconnect After: -1 messages
  173. Simulate Response Timeout: Yes
  174. Send Warning on Confirm: No (TKS: 1)
  175. SVM 3: Port=8083, LAK=0x0B (Loaded: Yes)
  176. Simulate Control Failure: No
  177. Disconnect After: 5 messages
  178. Simulate Response Timeout: No
  179. Send Warning on Confirm: No (TKS: 1)
  180. -----------------------------
  181. UVM: Found 4 SVM configurations in config file.
  182. Thread-safe UVM request queue created with capacity 50
  183. Thread-safe UVM Response queue created with capacity 200
  184. UVM: Connecting to SVMs...
  185. UVM: Attempting to connect to SVM ID 0 (IP: 192.168.189.129, Port: 8080)...
  186. Ethernet: Connected to 192.168.189.129:8080 (handle: 3)
  187. UVM: Successfully connected to SVM ID 0 (Handle: 3).
  188. UVM: Attempting to connect to SVM ID 1 (IP: 192.168.189.129, Port: 8081)...
  189. Ethernet: Connected to 192.168.189.129:8081 (handle: 4)
  190. UVM: Successfully connected to SVM ID 1 (Handle: 4).
  191. UVM: Attempting to connect to SVM ID 2 (IP: 192.168.189.129, Port: 8082)...
  192. Ethernet: Connected to 192.168.189.129:8082 (handle: 5)
  193. UVM: Successfully connected to SVM ID 2 (Handle: 5).
  194. UVM: Attempting to connect to SVM ID 3 (IP: 192.168.189.129, Port: 8083)...
  195. Ethernet: Connected to 192.168.189.129:8083 (handle: 6)
  196. UVM: Successfully connected to SVM ID 3 (Handle: 6).
  197. UVM: Connected to 4 out of 4 configured SVMs.
  198. UVM: Запуск потоков Sender, Receiver(s) и GUI Server...
  199. UVM Sender thread started.
  200. UVM: Waiting for GUI client to connect on port 12345 (or press Ctrl+C)...
  201. UVM Receiver thread started for SVM ID 0 (handle: 3).
  202. UVM Receiver thread started for SVM ID 1 (handle: 4).
  203. UVM Receiver thread started for SVM ID 2 (handle: 5).
  204. GUI Server: Starting listener on port 12345
  205. UVM Receiver thread started for SVM ID 3 (handle: 6).
  206. GUI Server: Waiting for GUI connection on port 12345...
  207. GUI Server: Accepted connection from 127.0.0.1:54232 (FD 8)
  208. GUI Server: Sending initial state to new GUI client (FD 8).
  209. GUI Server: Initial state sent to GUI client (FD 8).
  210. UVM: GUI client connected! Proceeding with SVM operations.
  211. UVM: All necessary threads started. Selected RadarMode: DR
  212. UVM: Entering main processing loop (Ctrl+C to exit)...
  213. ^C
  214. UVM: Received shutdown signal. Exiting...
  215. Thread-safe UVM request queue shutdown initiated.
  216. Thread-safe UVM Response queue shutdown initiated.
  217. Sender Thread: Request queue empty and shutdown signaled. Exiting.
  218. UVM Sender thread finished.
  219. UVM Main (SVM 0): Stage IDLE, preparing InitChannel (MsgNum 0).
  220. GUI Server: Loop for client FD 8 ended.
  221. GUI Server: Thread shutting down.
  222. ^C
  223. UVM: Received shutdown signal. Exiting...
  224. Thread-safe UVM request queue shutdown initiated.
  225. ^C
  226. UVM: Received shutdown signal. Exiting...
  227. Thread-safe UVM request queue shutdown initiated.
  228. ^C
  229. UVM: Received shutdown signal. Exiting...
  230. Thread-safe UVM request queue shutdown initiated.
  231. ^C
  232. UVM: Received shutdown signal. Exiting...
  233. Thread-safe UVM request queue shutdown initiated.
  234. ^C
  235. UVM: Received shutdown signal. Exiting...
  236. Thread-safe UVM request queue shutdown initiated.
  237.  
  238.  
  239.  
  240. dtorkin@ubuntu1:~/Desktop/practice$ nc localhost 12345
  241. EVENT;SVM_ID:0;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x08
  242. EVENT;SVM_ID:1;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x09
  243. EVENT;SVM_ID:2;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x0A
  244. EVENT;SVM_ID:3;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x0B
  245.  
Advertisement
Add Comment
Please, Sign In to add comment