dtorkin

Untitled

May 18th, 2025 (edited)
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.58 KB | None | 0 0
  1. dtorkin@ubuntu1:~/Desktop/practice$ sudo ./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. dtorkin@ubuntu1:~/Desktop/practice$ make
  27. Compiling uvm/uvm_main.c...
  28. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o uvm/uvm_main.o uvm/uvm_main.c
  29. Linking uvm_app...
  30. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread uvm/uvm_main.o uvm/uvm_sender.o uvm/uvm_receiver.o uvm/uvm_utils.o protocol/message_utils.o protocol/message_builder.o io/io_common.o io/io_ethernet.o io/io_serial.o config/config.o config/ini.o utils/ts_queue.o utils/ts_queue_req.o utils/ts_queued_msg_queue.o utils/ts_uvm_resp_queue.o -o uvm_app -pthread -lrt
  31. UVM application (uvm_app) built successfully.
  32. dtorkin@ubuntu1:~/Desktop/practice$ sudo ./uvm_app OR
  33. [sudo] пароль для dtorkin:
  34. UVM: Effective RadarMode selected: OR (0)
  35. UVM: Загрузка конфигурации...
  36. Configuration parsed successfully from 'config.ini'.
  37. Found configurations for 1 SVM instances in file.
  38. Found configurations for 2 SVM instances in file.
  39. Found configurations for 3 SVM instances in file.
  40. Found configurations for 4 SVM instances in file.
  41. --- Effective Configuration ---
  42. interface_type = ethernet
  43. UVM Target: 192.168.189.129:8080
  44. Keep-Alive Timeout: 15 seconds
  45. Response Timeout: 5 seconds
  46. SVM 0: Port=8080, LAK=0x08 (Loaded: Yes)
  47. Simulate Control Failure: No
  48. Disconnect After: -1 messages
  49. Simulate Response Timeout: No
  50. Send Warning on Confirm: No (TKS: 1)
  51. SVM 1: Port=8081, LAK=0x09 (Loaded: Yes)
  52. Simulate Control Failure: Yes
  53. Disconnect After: -1 messages
  54. Simulate Response Timeout: No
  55. Send Warning on Confirm: No (TKS: 1)
  56. SVM 2: Port=8082, LAK=0x0A (Loaded: Yes)
  57. Simulate Control Failure: No
  58. Disconnect After: -1 messages
  59. Simulate Response Timeout: Yes
  60. Send Warning on Confirm: No (TKS: 1)
  61. SVM 3: Port=8083, LAK=0x0B (Loaded: Yes)
  62. Simulate Control Failure: No
  63. Disconnect After: 5 messages
  64. Simulate Response Timeout: No
  65. Send Warning on Confirm: No (TKS: 1)
  66. -----------------------------
  67. UVM: Found 4 SVM configurations in config file.
  68. Thread-safe UVM request queue created with capacity 50
  69. Thread-safe UVM Response queue created with capacity 200
  70. UVM: Connecting to SVMs...
  71. UVM: Attempting to connect to SVM ID 0 (IP: 192.168.189.129, Port: 8080)...
  72. Ethernet: Connected to 192.168.189.129:8080 (handle: 3)
  73. UVM: Successfully connected to SVM ID 0 (Handle: 3).
  74. UVM: Attempting to connect to SVM ID 1 (IP: 192.168.189.129, Port: 8081)...
  75. Ethernet: Connected to 192.168.189.129:8081 (handle: 4)
  76. UVM: Successfully connected to SVM ID 1 (Handle: 4).
  77. UVM: Attempting to connect to SVM ID 2 (IP: 192.168.189.129, Port: 8082)...
  78. Ethernet: Connected to 192.168.189.129:8082 (handle: 5)
  79. UVM: Successfully connected to SVM ID 2 (Handle: 5).
  80. UVM: Attempting to connect to SVM ID 3 (IP: 192.168.189.129, Port: 8083)...
  81. Ethernet: Connected to 192.168.189.129:8083 (handle: 6)
  82. UVM: Successfully connected to SVM ID 3 (Handle: 6).
  83. UVM: Connected to 4 out of 4 configured SVMs.
  84. UVM: Запуск потоков Sender, Receiver(s) и GUI Server...
  85. UVM Sender thread started.
  86. UVM: All necessary threads started. Selected RadarMode: OR
  87. UVM: Entering main processing loop (Ctrl+C to exit)...
  88. DEBUG_UVM_MAIN_LOOP: Top of main loop. uvm_keep_running = true
  89. DEBUG_UVM_MAIN_LOOP: Attempting to dequeue response...
  90. UVM Receiver thread started for SVM ID 1 (handle: 4).
  91. UVM Receiver thread started for SVM ID 0 (handle: 3).
  92. UVM Receiver thread started for SVM ID 3 (handle: 6).
  93. UVM Receiver thread started for SVM ID 2 (handle: 5).
  94. GUI Server: Starting listener on port 12345
  95. GUI Server: Waiting for GUI connection on port 12345...
  96. GUI Server: Accepted connection from 127.0.0.1:44734 (FD 8)
  97. GUI Server: Sending initial state to new GUI client (FD 8).
  98. GUI Server: Initial state sent to GUI client (FD 8).
  99.  
  100.  
  101. Simulate Control Failure: No
  102. Disconnect After: -1 messages
  103. Simulate Response Timeout: Yes
  104. Send Warning on Confirm: No (TKS: 1)
  105. SVM 3: Port=8083, LAK=0x0B (Loaded: Yes)
  106. Simulate Control Failure: No
  107. Disconnect After: 5 messages
  108. Simulate Response Timeout: No
  109. Send Warning on Confirm: No (TKS: 1)
  110. -----------------------------
  111. SVM: Will attempt to start 4 instances based on config.
  112. DEBUG SVM MAIN - Instance 0 Settings: LAK=0x08, simulate_control_failure=0, disconnect_after=-1, simulate_timeout=0, send_warning=0, tks=1
  113. DEBUG SVM MAIN - Instance 1 Settings: LAK=0x09, simulate_control_failure=1, disconnect_after=-1, simulate_timeout=0, send_warning=0, tks=1
  114. DEBUG SVM MAIN - Instance 2 Settings: LAK=0x0A, simulate_control_failure=0, disconnect_after=-1, simulate_timeout=1, send_warning=0, tks=1
  115. DEBUG SVM MAIN - Instance 3 Settings: LAK=0x0B, simulate_control_failure=0, disconnect_after=5, simulate_timeout=0, send_warning=0, tks=1
  116. SVM: Loading configuration...
  117. Configuration parsed successfully from 'config.ini'.
  118. Found configurations for 1 SVM instances in file.
  119. Found configurations for 2 SVM instances in file.
  120. Found configurations for 3 SVM instances in file.
  121. Found configurations for 4 SVM instances in file.
  122. --- Effective Configuration ---
  123. interface_type = ethernet
  124. UVM Target: 192.168.189.129:8080
  125. Keep-Alive Timeout: 15 seconds
  126. Response Timeout: 5 seconds
  127. SVM 0: Port=8080, LAK=0x08 (Loaded: Yes)
  128. Simulate Control Failure: No
  129. Disconnect After: -1 messages
  130. Simulate Response Timeout: No
  131. Send Warning on Confirm: No (TKS: 1)
  132. SVM 1: Port=8081, LAK=0x09 (Loaded: Yes)
  133. Simulate Control Failure: Yes
  134. Disconnect After: -1 messages
  135. Simulate Response Timeout: No
  136. Send Warning on Confirm: No (TKS: 1)
  137. SVM 2: Port=8082, LAK=0x0A (Loaded: Yes)
  138. Simulate Control Failure: No
  139. Disconnect After: -1 messages
  140. Simulate Response Timeout: Yes
  141. Send Warning on Confirm: No (TKS: 1)
  142. SVM 3: Port=8083, LAK=0x0B (Loaded: Yes)
  143. Simulate Control Failure: No
  144. Disconnect After: 5 messages
  145. Simulate Response Timeout: No
  146. Send Warning on Confirm: No (TKS: 1)
  147. -----------------------------
  148. SVM: Will attempt to start 4 instances based on config.
  149. Thread-safe QueuedMessage queue created with capacity 400
  150. SVM: Listener thread 0 initiated for Port 8080 (LAK 0x08).
  151. SVM: Listener thread 1 initiated for Port 8081 (LAK 0x09).
  152. SVM: Listener thread 2 initiated for Port 8082 (LAK 0x0A).
  153. Ethernet: Listening on port 8080 (handle: 3)
  154. Listener thread started for SVM ID 0 (LAK 0x08, Port 8080, Listen FD 3)
  155. Listener (SVM 0): Waiting for connection on port 8080...
  156. Ethernet: Listening on port 8082 (handle: 6)
  157. Listener thread started for SVM ID 2 (LAK 0x0A, Port 8082, Listen FD 6)
  158. Listener (SVM 2): Waiting for connection on port 8082...
  159. Ethernet: Listening on port 8081 (handle: 5)
  160. Listener thread started for SVM ID 1 (LAK 0x09, Port 8081, Listen FD 5)
  161. Listener (SVM 1): Waiting for connection on port 8081...
  162. SVM: Listener thread 3 initiated for Port 8083 (LAK 0x0B).
  163. SVM: Starting common threads (Timer, Sender)...
  164. SVM: All common threads started. 4 listeners active. Running...
  165. SVM Timer thread started.
  166. SVM Main: Waiting for shutdown signal...
  167. Ethernet: Listening on port 8083 (handle: 4)
  168. Listener thread started for SVM ID 3 (LAK 0x0B, Port 8083, Listen FD 4)
  169. Listener (SVM 3): Waiting for connection on port 8083...
  170. SVM Sender thread started (reads global outgoing queue).
  171. Listener (SVM 0): Accepted connection from 192.168.189.128:44702 (Client FD 7)
  172. Thread-safe QueuedMessage queue created with capacity 100
  173. Listener (SVM 0): Instance activated. Worker threads started.
  174. SVM Processor thread started for instance 0.
  175. Listener (SVM 2): Accepted connection from 192.168.189.128:37886 (Client FD 8)
  176. Thread-safe QueuedMessage queue created with capacity 100
  177. Listener (SVM 3): Accepted connection from 192.168.189.128:54330 (Client FD 10)
  178. Thread-safe QueuedMessage queue created with capacity 100
  179. SVM Receiver thread started for instance 2 (handle: 8).
  180. Listener (SVM 1): Accepted connection from 192.168.189.128:47434 (Client FD 9)
  181. Thread-safe QueuedMessage queue created with capacity 100
  182. SVM Receiver thread started for instance 0 (handle: 7).
  183. SVM Processor thread started for instance 2.
  184. SVM Receiver thread started for instance 3 (handle: 10).
  185. SVM Receiver thread finished for instance 3.
  186. Listener (SVM 3): Instance activated. Worker threads started.
  187. Listener (SVM 3): Receiver thread joined.
  188. SVM Receiver thread started for instance 1 (handle: 9).
  189. Listener (SVM 2): Instance activated. Worker threads started.
  190. Listener (SVM 1): Instance activated. Worker threads started.
  191. SVM Processor thread started for instance 3.
  192. SVM Processor thread started for instance 1.
  193.  
  194.  
  195. dtorkin@ubuntu1:~/Desktop/practice$ make
  196. Compiling uvm/uvm_main.c...
  197. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o uvm/uvm_main.o uvm/uvm_main.c
  198. Linking uvm_app...
  199. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread uvm/uvm_main.o uvm/uvm_sender.o uvm/uvm_receiver.o uvm/uvm_utils.o protocol/message_utils.o protocol/message_builder.o io/io_common.o io/io_ethernet.o io/io_serial.o config/config.o config/ini.o utils/ts_queue.o utils/ts_queue_req.o utils/ts_queued_msg_queue.o utils/ts_uvm_resp_queue.o -o uvm_app -pthread -lrt
  200. UVM application (uvm_app) built successfully.
  201. dtorkin@ubuntu1:~/Desktop/practice$ sudo ./uvm_app OR
  202. [sudo] пароль для dtorkin:
  203. UVM: Effective RadarMode selected: OR (0)
  204. UVM: Загрузка конфигурации...
  205. Configuration parsed successfully from 'config.ini'.
  206. Found configurations for 1 SVM instances in file.
  207. Found configurations for 2 SVM instances in file.
  208. Found configurations for 3 SVM instances in file.
  209. Found configurations for 4 SVM instances in file.
  210. --- Effective Configuration ---
  211. interface_type = ethernet
  212. UVM Target: 192.168.189.129:8080
  213. Keep-Alive Timeout: 15 seconds
  214. Response Timeout: 5 seconds
  215. SVM 0: Port=8080, LAK=0x08 (Loaded: Yes)
  216. Simulate Control Failure: No
  217. Disconnect After: -1 messages
  218. Simulate Response Timeout: No
  219. Send Warning on Confirm: No (TKS: 1)
  220. SVM 1: Port=8081, LAK=0x09 (Loaded: Yes)
  221. Simulate Control Failure: Yes
  222. Disconnect After: -1 messages
  223. Simulate Response Timeout: No
  224. Send Warning on Confirm: No (TKS: 1)
  225. SVM 2: Port=8082, LAK=0x0A (Loaded: Yes)
  226. Simulate Control Failure: No
  227. Disconnect After: -1 messages
  228. Simulate Response Timeout: Yes
  229. Send Warning on Confirm: No (TKS: 1)
  230. SVM 3: Port=8083, LAK=0x0B (Loaded: Yes)
  231. Simulate Control Failure: No
  232. Disconnect After: 5 messages
  233. Simulate Response Timeout: No
  234. Send Warning on Confirm: No (TKS: 1)
  235. -----------------------------
  236. UVM: Found 4 SVM configurations in config file.
  237. Thread-safe UVM request queue created with capacity 50
  238. Thread-safe UVM Response queue created with capacity 200
  239. UVM: Connecting to SVMs...
  240. UVM: Attempting to connect to SVM ID 0 (IP: 192.168.189.129, Port: 8080)...
  241. Ethernet: Connected to 192.168.189.129:8080 (handle: 3)
  242. UVM: Successfully connected to SVM ID 0 (Handle: 3).
  243. UVM: Attempting to connect to SVM ID 1 (IP: 192.168.189.129, Port: 8081)...
  244. Ethernet: Connected to 192.168.189.129:8081 (handle: 4)
  245. UVM: Successfully connected to SVM ID 1 (Handle: 4).
  246. UVM: Attempting to connect to SVM ID 2 (IP: 192.168.189.129, Port: 8082)...
  247. Ethernet: Connected to 192.168.189.129:8082 (handle: 5)
  248. UVM: Successfully connected to SVM ID 2 (Handle: 5).
  249. UVM: Attempting to connect to SVM ID 3 (IP: 192.168.189.129, Port: 8083)...
  250. Ethernet: Connected to 192.168.189.129:8083 (handle: 6)
  251. UVM: Successfully connected to SVM ID 3 (Handle: 6).
  252. UVM: Connected to 4 out of 4 configured SVMs.
  253. UVM: Запуск потоков Sender, Receiver(s) и GUI Server...
  254. UVM Sender thread started.
  255. UVM: All necessary threads started. Selected RadarMode: OR
  256. UVM: Entering main processing loop (Ctrl+C to exit)...
  257. DEBUG_UVM_MAIN_LOOP: Top of main loop. uvm_keep_running = true
  258. DEBUG_UVM_MAIN_LOOP: Attempting to dequeue response...
  259. UVM Receiver thread started for SVM ID 1 (handle: 4).
  260. UVM Receiver thread started for SVM ID 0 (handle: 3).
  261. UVM Receiver thread started for SVM ID 3 (handle: 6).
  262. UVM Receiver thread started for SVM ID 2 (handle: 5).
  263. GUI Server: Starting listener on port 12345
  264. GUI Server: Waiting for GUI connection on port 12345...
  265. GUI Server: Accepted connection from 127.0.0.1:44734 (FD 8)
  266. GUI Server: Sending initial state to new GUI client (FD 8).
  267. GUI Server: Initial state sent to GUI client (FD 8).
  268.  
  269. dtorkin@ubuntu1:~/Desktop/practice$ nc localhost 12345
  270. EVENT;SVM_ID:0;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x08
  271. EVENT;SVM_ID:1;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x09
  272. EVENT;SVM_ID:2;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x0A
  273. EVENT;SVM_ID:3;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x0B
  274.  
  275.  
Advertisement
Add Comment
Please, Sign In to add comment