dtorkin

Untitled

May 19th, 2025 (edited)
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.10 KB | None | 0 0
  1. dtorkin@ubuntu1:~/Desktop/practice$ nc localhost 12346
  2. EVENT;SVM_ID:0;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x08,ProtocolStage=1
  3. EVENT;SVM_ID:1;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x09,ProtocolStage=1
  4. SENT;SVM_ID:0;Type:128;Num:0;LAK:0x08
  5. SENT;SVM_ID:1;Type:128;Num:0;LAK:0x09
  6. SENT;SVM_ID:3;Type:128;Num:0;LAK:0x0B
  7. RECV;SVM_ID:1;Type:129;Num:0;LAK:0x01;BCB:0xA0000000;Details:LAK_ret=0x09;SLP=0x3;VDR=16;BOP1=17;BOP2=18
  8. EVENT;SVM_ID:1;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x09,ProtocolStage=3
  9. RECV;SVM_ID:0;Type:129;Num:0;LAK:0x01;BCB:0xA0000000;Details:LAK_ret=0x08;SLP=0x3;VDR=16;BOP1=17;BOP2=18
  10. EVENT;SVM_ID:0;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x08,ProtocolStage=3
  11. RECV;SVM_ID:3;Type:254;Num:0;LAK:0x01;BCB:0xA0000000;Details:UnexpectedWarning;TKS=3
  12. EVENT;SVM_ID:3;Type:Warning;Details:TKS=3
  13. EVENT;SVM_ID:3;Type:LinkStatus;Details:NewStatus=5,AssignedLAK=0x0B,ProtocolStage=2
  14.  
  15.  
  16.  
  17. dtorkin@ubuntu1:~/Desktop/practice$ sudo ./uvm_app --wait-for-gui OR
  18. UVM: Option --wait-for-gui enabled. UVM will wait for GUI client connection before proceeding with SVM operations.
  19. UVM: Effective RadarMode selected: OP
  20. UVM: Загрузка конфигурации из 'config.ini'...
  21. Configuration parsed successfully from 'config.ini'.
  22. --- UVM Effective Configuration ---
  23. Interface Type: ethernet
  24. SVM Response Timeout: 6.00 seconds
  25. SVM Keep-Alive Timeout: 18.00 seconds
  26. GUI Listen Port: 12346
  27. Main Loop Idle Sleep: 60000 us
  28. Target IP for SVMs (UVM connects to): 192.168.189.129
  29. Number of SVMs with explicit config in INI: 3
  30. SVM Slot 0 Configuration (Explicitly loaded: Yes):
  31. Connect Port: 8080
  32. Assigned LAK: 0x08
  33. Simulate Control Failure: No
  34. Disconnect After Messages: -1
  35. Simulate Response Timeout: No
  36. Send Warning on Confirm: No (TKS: 1)
  37. SVM Slot 1 Configuration (Explicitly loaded: Yes):
  38. Connect Port: 8081
  39. Assigned LAK: 0x09
  40. Simulate Control Failure: Yes
  41. Disconnect After Messages: -1
  42. Simulate Response Timeout: No
  43. Send Warning on Confirm: No (TKS: 2)
  44. SVM Slot 2 Configuration (Explicitly loaded: No):
  45. Connect Port: 8082
  46. Assigned LAK: 0x0A
  47. Simulate Control Failure: No
  48. Disconnect After Messages: -1
  49. Simulate Response Timeout: No
  50. Send Warning on Confirm: No (TKS: 1)
  51. SVM Slot 3 Configuration (Explicitly loaded: Yes):
  52. Connect Port: 8083
  53. Assigned LAK: 0x0B
  54. Simulate Control Failure: No
  55. Disconnect After Messages: 3
  56. Simulate Response Timeout: No
  57. Send Warning on Confirm: Yes (TKS: 3)
  58. ----------------------------------
  59. UVM: Найдено 3 конфигураций SVM в файле.
  60. Thread-safe UVM request queue created with capacity 150
  61. Thread-safe UVM Response queue created with capacity 150
  62. UVM: Подключение к сконфигурированным SVM...
  63. UVM: Попытка подключения к SVM ID 0 (IP: 192.168.189.129, Порт: 8080, Ожидаемый LAK: 0x08)...
  64. Ethernet: Connected to 192.168.189.129:8080 (handle: 3)
  65. UVM: Успешное подключение к SVM ID 0 (Дескриптор: 3).
  66. UVM: Попытка подключения к SVM ID 1 (IP: 192.168.189.129, Порт: 8081, Ожидаемый LAK: 0x09)...
  67. Ethernet: Connected to 192.168.189.129:8081 (handle: 4)
  68. UVM: Успешное подключение к SVM ID 1 (Дескриптор: 4).
  69. UVM: Попытка подключения к SVM ID 3 (IP: 192.168.189.129, Порт: 8083, Ожидаемый LAK: 0x0B)...
  70. Ethernet: Connected to 192.168.189.129:8083 (handle: 5)
  71. UVM: Успешное подключение к SVM ID 3 (Дескриптор: 5).
  72. UVM: Подключено к 3 из 3 (найденных в конфиге) SVM.
  73. UVM: Запуск рабочих потоков (Sender, Receivers, GUI Server)...
  74. UVM: Ожидание подключения GUI клиента к порту 12346 (или Ctrl+C для выхода)...
  75. UVM Receiver thread started for SVM ID 3 (handle: 5).
  76. GUI Server: Starting listener on port 12346
  77. GUI Server: Waiting for GUI connection on port 12346...
  78. UVM Receiver thread started for SVM ID 1 (handle: 4).
  79. UVM Receiver thread started for SVM ID 0 (handle: 3).
  80. UVM Sender thread started.
  81. GUI Server: Accepted connection from 127.0.0.1:33852 (FD 7)
  82. GUI Server: Sending initial state to new GUI client (FD 7).
  83. GUI Server: Initial state sent to GUI client (FD 7).
  84. UVM: GUI клиент подключен. Продолжение операций с SVM.
  85. UVM: Начало основного цикла работы. Выбранный режим РЛС: OP
  86.  
  87. DEBUG MAIN LOOP: Iteration 1, uvm_keep_running: 1
  88. SVM 0 State (Loop Start): Status: ACTIVE, Stage: NEEDS_INIT_CHANNEL, AwaitingResp: 0, ExpectedRespType: N/A
  89. SVM 1 State (Loop Start): Status: ACTIVE, Stage: NEEDS_INIT_CHANNEL, AwaitingResp: 0, ExpectedRespType: N/A
  90. SVM 3 State (Loop Start): Status: ACTIVE, Stage: NEEDS_INIT_CHANNEL, AwaitingResp: 0, ExpectedRespType: N/A
  91. DEBUG SEND LOOP: SVM 0, Loaded: 1, Status: ACTIVE, AwaitingResp: 0, Stage: NEEDS_INIT_CHANNEL (Completed: 0, Error: 0)
  92. DEBUG SEND LOOP PRE-SWITCH: SVM 0, Stage for switch: NEEDS_INIT_CHANNEL
  93. UVM: SVM 0 (LAK 0x08), Этап: Отправка 'Инициализация канала' (Сообщение #0)...
  94. DEBUG SEND LOOP: SVM 1, Loaded: 1, Status: ACTIVE, AwaitingResp: 0, Stage: NEEDS_INIT_CHANNEL (Completed: 0, Error: 0)
  95. DEBUG SEND LOOP PRE-SWITCH: SVM 1, Stage for switch: NEEDS_INIT_CHANNEL
  96. UVM: SVM 1 (LAK 0x09), Этап: Отправка 'Инициализация канала' (Сообщение #0)...
  97. Отправка сообщения через Ethernet: Тип=128, Номер=0, Длина тела=2, Общий размер=8, Handle=3
  98. DEBUG SEND LOOP: SVM 3, Loaded: 1, Status: ACTIVE, AwaitingResp: 0, Stage: NEEDS_INIT_CHANNEL (Completed: 0, Error: 0)
  99. DEBUG SEND LOOP PRE-SWITCH: SVM 3, Stage for switch: NEEDS_INIT_CHANNEL
  100. UVM: SVM 3 (LAK 0x0B), Этап: Отправка 'Инициализация канала' (Сообщение #0)...
  101. Отправка сообщения через Ethernet: Тип=128, Номер=0, Длина тела=2, Общий размер=8, Handle=4
  102. Отправка сообщения через Ethernet: Тип=128, Номер=0, Длина тела=2, Общий размер=8, Handle=5
  103. Получено сообщение через Ethernet: Тип=129, Номер=0, Длина тела=12, Handle=4
  104. Получено сообщение через Ethernet: Тип=129, Номер=0, Длина тела=12, Handle=3
  105. Получено сообщение через Ethernet: Тип=254, Номер=0, Длина тела=12, Handle=5
  106. UVM: SVM 1 (LAK 0x09), Получен ОЖИДАЕМЫЙ ответ: Подтверждение инициализации (129) (#0 на наш запрос #0).
  107. DEBUG: SVM 1 new stage: NEEDS_PROVESTI_KONTROL (after ConfirmInit OK)
  108. UVM: SVM 0 (LAK 0x08), Получен ОЖИДАЕМЫЙ ответ: Подтверждение инициализации (129) (#0 на наш запрос #0).
  109. DEBUG: SVM 0 new stage: NEEDS_PROVESTI_KONTROL (after ConfirmInit OK)
  110. DEBUG: SVM 3 (LAK 0x0B) - Получен НЕОЖИДАЕМЫЙ ответ Предупреждение (254), когда ждали Подтверждение инициализации (129). Стадия БЫЛА AWAITING_CONFIRM_INIT.
  111. DEBUG: SVM 3 получил Предупреждение, когда ждал Подтверждение инициализации (129). Стадия осталась AWAITING_CONFIRM_INIT. is_awaiting_response остается true.
  112.  
  113.  
  114.  
  115. dtorkin@ubuntu1:~/Desktop/practice$ sudo ./svm_app
  116. SVM Multi-Port Server starting...
  117. Message handlers initialized.
  118. SVM: Loading configuration...
  119. Configuration parsed successfully from 'config.ini'.
  120. --- UVM Effective Configuration ---
  121. Interface Type: ethernet
  122. SVM Response Timeout: 6.00 seconds
  123. SVM Keep-Alive Timeout: 18.00 seconds
  124. GUI Listen Port: 12346
  125. Main Loop Idle Sleep: 60000 us
  126. Target IP for SVMs (UVM connects to): 192.168.189.129
  127. Number of SVMs with explicit config in INI: 3
  128. SVM Slot 0 Configuration (Explicitly loaded: Yes):
  129. Connect Port: 8080
  130. Assigned LAK: 0x08
  131. Simulate Control Failure: No
  132. Disconnect After Messages: -1
  133. Simulate Response Timeout: No
  134. Send Warning on Confirm: No (TKS: 1)
  135. SVM Slot 1 Configuration (Explicitly loaded: Yes):
  136. Connect Port: 8081
  137. Assigned LAK: 0x09
  138. Simulate Control Failure: Yes
  139. Disconnect After Messages: -1
  140. Simulate Response Timeout: No
  141. Send Warning on Confirm: No (TKS: 2)
  142. SVM Slot 2 Configuration (Explicitly loaded: No):
  143. Connect Port: 8082
  144. Assigned LAK: 0x0A
  145. Simulate Control Failure: No
  146. Disconnect After Messages: -1
  147. Simulate Response Timeout: No
  148. Send Warning on Confirm: No (TKS: 1)
  149. SVM Slot 3 Configuration (Explicitly loaded: Yes):
  150. Connect Port: 8083
  151. Assigned LAK: 0x0B
  152. Simulate Control Failure: No
  153. Disconnect After Messages: 3
  154. Simulate Response Timeout: No
  155. Send Warning on Confirm: Yes (TKS: 3)
  156. ----------------------------------
  157. SVM: Will attempt to start 3 instances based on config.
  158. DEBUG SVM MAIN - Instance 0 Settings: LAK=0x08, simulate_control_failure=0, disconnect_after=-1, simulate_timeout=0, send_warning=0, tks=1
  159. DEBUG SVM MAIN - Instance 1 Settings: LAK=0x09, simulate_control_failure=1, disconnect_after=-1, simulate_timeout=0, send_warning=0, tks=2
  160. DEBUG SVM MAIN - Instance 2 Settings: LAK=0x0A, simulate_control_failure=0, disconnect_after=-1, simulate_timeout=0, send_warning=0, tks=1
  161. DEBUG SVM MAIN - Instance 3 Settings: LAK=0x0B, simulate_control_failure=0, disconnect_after=3, simulate_timeout=0, send_warning=1, tks=3
  162. SVM: Loading configuration...
  163. Configuration parsed successfully from 'config.ini'.
  164. --- UVM Effective Configuration ---
  165. Interface Type: ethernet
  166. SVM Response Timeout: 6.00 seconds
  167. SVM Keep-Alive Timeout: 18.00 seconds
  168. GUI Listen Port: 12346
  169. Main Loop Idle Sleep: 60000 us
  170. Target IP for SVMs (UVM connects to): 192.168.189.129
  171. Number of SVMs with explicit config in INI: 3
  172. SVM Slot 0 Configuration (Explicitly loaded: Yes):
  173. Connect Port: 8080
  174. Assigned LAK: 0x08
  175. Simulate Control Failure: No
  176. Disconnect After Messages: -1
  177. Simulate Response Timeout: No
  178. Send Warning on Confirm: No (TKS: 1)
  179. SVM Slot 1 Configuration (Explicitly loaded: Yes):
  180. Connect Port: 8081
  181. Assigned LAK: 0x09
  182. Simulate Control Failure: Yes
  183. Disconnect After Messages: -1
  184. Simulate Response Timeout: No
  185. Send Warning on Confirm: No (TKS: 2)
  186. SVM Slot 2 Configuration (Explicitly loaded: No):
  187. Connect Port: 8082
  188. Assigned LAK: 0x0A
  189. Simulate Control Failure: No
  190. Disconnect After Messages: -1
  191. Simulate Response Timeout: No
  192. Send Warning on Confirm: No (TKS: 1)
  193. SVM Slot 3 Configuration (Explicitly loaded: Yes):
  194. Connect Port: 8083
  195. Assigned LAK: 0x0B
  196. Simulate Control Failure: No
  197. Disconnect After Messages: 3
  198. Simulate Response Timeout: No
  199. Send Warning on Confirm: Yes (TKS: 3)
  200. ----------------------------------
  201. SVM: Will attempt to start 3 instances based on config.
  202. Thread-safe QueuedMessage queue created with capacity 300
  203. SVM: Listener thread 0 initiated for Port 8080 (LAK 0x08).
  204. SVM: Listener thread 1 initiated for Port 8081 (LAK 0x09).
  205. SVM: Listener thread 3 initiated for Port 8083 (LAK 0x0B).
  206. SVM: Starting common threads (Timer, Sender)...
  207. SVM: All common threads started. 3 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 8083 (handle: 7)
  216. Listener thread started for SVM ID 3 (LAK 0x0B, Port 8083, Listen FD 7)
  217. Listener (SVM 3): Waiting for connection on port 8083...
  218. SVM Timer thread started.
  219. SVM Sender thread started (reads global outgoing queue).
  220. Listener (SVM 0): Accepted connection from 192.168.189.128:57724 (Client FD 4)
  221. Thread-safe QueuedMessage queue created with capacity 100
  222. Listener (SVM 0): Instance activated. Worker threads started.
  223. SVM Receiver thread started for instance 0 (handle: 4).
  224. SVM Processor thread started for instance 0.
  225. Listener (SVM 1): Accepted connection from 192.168.189.128:44724 (Client FD 6)
  226. Thread-safe QueuedMessage queue created with capacity 100
  227. Listener (SVM 1): Instance activated. Worker threads started.
  228. SVM Receiver thread started for instance 1 (handle: 6).
  229. SVM Processor thread started for instance 1.
  230. Listener (SVM 3): Accepted connection from 192.168.189.128:47970 (Client FD 8)
  231. Thread-safe QueuedMessage queue created with capacity 100
  232. Listener (SVM 3): Instance activated. Worker threads started.
  233. SVM Receiver thread started for instance 3 (handle: 8).
  234. SVM Processor thread started for instance 3.
  235. Получено сообщение через Ethernet: Тип=128, Номер=0, Длина тела=2, Handle=4
  236. Processor (Inst 0): Обработка 'Инициализация канала'
  237. Параметры: LAUVM=0x1, LAK=0x08 (assigned)
  238. SVM (Inst 0): Эмуляция выключения лазера...
  239. Получено сообщение через Ethernet: Тип=128, Номер=0, Длина тела=2, Handle=6
  240. Processor (Inst 1): Обработка 'Инициализация канала'
  241. Параметры: LAUVM=0x1, LAK=0x09 (assigned)
  242. SVM (Inst 1): Эмуляция выключения лазера...
  243. Ответ 'Подтверждение инициализации' сформирован (LAK=0x09).
  244. Получено сообщение через Ethernet: Тип=128, Номер=0, Длина тела=2, Handle=8
  245. Ответ 'Подтверждение инициализации' сформирован (LAK=0x08).
  246. Processor (Inst 3): Обработка 'Инициализация канала'
  247. Параметры: LAUVM=0x1, LAK=0x0B (assigned)
  248. SVM (Inst 3, LAK 0x0B): SIMULATING warning instead of confirm init (TKS=3).
  249. Отправка сообщения через Ethernet: Тип=129, Номер=0, Длина тела=12, Общий размер=18, Handle=6
  250. Отправка сообщения через Ethernet: Тип=129, Номер=0, Длина тела=12, Общий размер=18, Handle=4
  251. Отправка сообщения через Ethernet: Тип=254, Номер=0, Длина тела=12, Общий размер=18, Handle=8
  252.  
  253.  
Advertisement
Add Comment
Please, Sign In to add comment