Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dtorkin@ubuntu1:~/Desktop/practice$ sudo ./uvm_app OR
- UVM Application (Iteration 2 - Init & Control Sequence)
- UVM: Loading configuration...
- Configuration parsed successfully from 'config.ini'.
- Found configurations for 4 SVM instances in file.
- --- Effective Configuration ---
- interface_type = ethernet
- UVM Target: 192.168.189.129:8080
- SVM 0: Port=8080, LAK=0x08 (Loaded: Yes)
- Simulate Control Failure: No
- Disconnect After: -1 messages
- Simulate Response Timeout: No
- Send Warning on Confirm: No (TKS: 1)
- SVM 1: Port=8081, LAK=0x09 (Loaded: Yes)
- Simulate Control Failure: Yes
- Disconnect After: -1 messages
- Simulate Response Timeout: No
- Send Warning on Confirm: No (TKS: 1)
- SVM 2: Port=8082, LAK=0x0A (Loaded: Yes)
- Simulate Control Failure: No
- Disconnect After: -1 messages
- Simulate Response Timeout: Yes
- Send Warning on Confirm: No (TKS: 1)
- SVM 3: Port=8083, LAK=0x0B (Loaded: Yes)
- Simulate Control Failure: No
- Disconnect After: 5 messages
- Simulate Response Timeout: No
- Send Warning on Confirm: No (TKS: 1)
- -----------------------------
- UVM: Found 4 SVM configurations to connect to.
- Thread-safe UVM request queue created with capacity 50
- Thread-safe UVM Response queue created with capacity 200
- UVM: Connecting to SVMs...
- UVM: Attempting to connect to SVM ID 0 (IP: 192.168.189.129, Port: 8080)...
- Ethernet: Connected to 192.168.189.129:8080 (handle: 3)
- UVM: Attempting to connect to SVM ID 1 (IP: 192.168.189.129, Port: 8081)...
- Ethernet: Connected to 192.168.189.129:8081 (handle: 4)
- UVM: Attempting to connect to SVM ID 2 (IP: 192.168.189.129, Port: 8082)...
- Ethernet: Connected to 192.168.189.129:8082 (handle: 5)
- UVM: Attempting to connect to SVM ID 3 (IP: 192.168.189.129, Port: 8083)...
- Ethernet: Connected to 192.168.189.129:8083 (handle: 6)
- UVM: Connected to 4 SVMs.
- UVM: Starting Sender, Receiver(s), and GUI Server threads...
- UVM: All threads started.
- UVM Main: Sending initial 'Init Channel' to active SVMs...
- UVM Main: 'Init Channel' (Num 0) enqueued for SVM ID 0 (LAK 0x08).
- UVM Main: 'Init Channel' (Num 0) enqueued for SVM ID 1 (LAK 0x09).
- UVM Main: 'Init Channel' (Num 0) enqueued for SVM ID 2 (LAK 0x0A).
- UVM Main: 'Init Channel' (Num 0) enqueued for SVM ID 3 (LAK 0x0B).
- UVM: Main processing loop started (Iteration 2 - Init & Control Sequence)...
- UVM Sender thread started.
- Отправка сообщения через Ethernet: Тип=128, Номер=0, Длина тела=2, Общий размер=8, Handle=3
- Отправка сообщения через Ethernet: Тип=128, Номер=0, Длина тела=2, Общий размер=8, Handle=4
- Отправка сообщения через Ethernet: Тип=128, Номер=0, Длина тела=2, Общий размер=8, Handle=5
- Отправка сообщения через Ethernet: Тип=128, Номер=0, Длина тела=2, Общий размер=8, Handle=6
- UVM Receiver thread started for SVM ID 2 (handle: 5).
- UVM Receiver thread started for SVM ID 3 (handle: 6).
- UVM Receiver thread started for SVM ID 0 (handle: 3).
- GUI Server: Starting listener on port 12345
- GUI Server: Waiting for GUI connection on port 12345...
- UVM Receiver thread started for SVM ID 1 (handle: 4).
- Получено сообщение через Ethernet: Тип=129, Номер=0, Длина тела=12, Handle=5
- Получено сообщение через Ethernet: Тип=129, Номер=0, Длина тела=12, Handle=4
- UVM Main: Processing message type 129 from SVM ID 2 (Assigned LAK 0x0A, Num 0)
- UVM Main: Sent 'Provesti Kontrol' (Num 1) to SVM ID 2.
- UVM Main: Processing message type 129 from SVM ID 1 (Assigned LAK 0x09, Num 0)
- UVM Main: Sent 'Provesti Kontrol' (Num 1) to SVM ID 1.
- Отправка сообщения через Ethernet: Тип=1, Номер=1, Длина тела=1, Общий размер=7, Handle=5
- Отправка сообщения через Ethernet: Тип=1, Номер=1, Длина тела=1, Общий размер=7, Handle=4
- Получено сообщение через Ethernet: Тип=3, Номер=1, Длина тела=8, Handle=4
- UVM Main: Processing message type 3 from SVM ID 1 (Assigned LAK 0x09, Num 1)
- UVM Main: 'Podtverzhdenie Kontrolya' OK for SVM ID 1.
- UVM Main: Sent 'Vydat Rezultaty Kontrolya' (Num 2) to SVM ID 1.
- Отправка сообщения через Ethernet: Тип=2, Номер=2, Длина тела=1, Общий размер=7, Handle=4
- Получено сообщение через Ethernet: Тип=4, Номер=2, Длина тела=8, Handle=4
- UVM Main: Processing message type 4 from SVM ID 1 (Assigned LAK 0x09, Num 2)
- UVM Main: 'Rezultaty Kontrolya' received for SVM ID 1. RSK=0x3E
- Получено сообщение через Ethernet: Тип=3, Номер=1, Длина тела=8, Handle=5
- UVM Main: Processing message type 3 from SVM ID 2 (Assigned LAK 0x0A, Num 1)
- UVM Main: 'Podtverzhdenie Kontrolya' OK for SVM ID 2.
- UVM Main: Sent 'Vydat Rezultaty Kontrolya' (Num 2) to SVM ID 2.
- Отправка сообщения через Ethernet: Тип=2, Номер=2, Длина тела=1, Общий размер=7, Handle=5
- dtorkin@ubuntu1:~/Desktop/practice$ sudo ./svm_app
- SVM Multi-Port Server starting...
- Message handlers initialized.
- SVM: Loading configuration...
- Configuration parsed successfully from 'config.ini'.
- Found configurations for 4 SVM instances in file.
- --- Effective Configuration ---
- interface_type = ethernet
- UVM Target: 192.168.189.129:8080
- SVM 0: Port=8080, LAK=0x08 (Loaded: Yes)
- Simulate Control Failure: No
- Disconnect After: -1 messages
- Simulate Response Timeout: No
- Send Warning on Confirm: No (TKS: 1)
- SVM 1: Port=8081, LAK=0x09 (Loaded: Yes)
- Simulate Control Failure: Yes
- Disconnect After: -1 messages
- Simulate Response Timeout: No
- Send Warning on Confirm: No (TKS: 1)
- SVM 2: Port=8082, LAK=0x0A (Loaded: Yes)
- Simulate Control Failure: No
- Disconnect After: -1 messages
- Simulate Response Timeout: Yes
- Send Warning on Confirm: No (TKS: 1)
- SVM 3: Port=8083, LAK=0x0B (Loaded: Yes)
- Simulate Control Failure: No
- Disconnect After: 5 messages
- Simulate Response Timeout: No
- Send Warning on Confirm: No (TKS: 1)
- -----------------------------
- SVM: Will attempt to start 4 instances based on config.
- DEBUG SVM MAIN - Instance 0 Settings: LAK=0x08, simulate_control_failure=0, disconnect_after=-1, simulate_timeout=0, send_warning=0, tks=1
- DEBUG SVM MAIN - Instance 1 Settings: LAK=0x09, simulate_control_failure=1, disconnect_after=-1, simulate_timeout=0, send_warning=0, tks=1
- DEBUG SVM MAIN - Instance 2 Settings: LAK=0x0A, simulate_control_failure=0, disconnect_after=-1, simulate_timeout=1, send_warning=0, tks=1
- DEBUG SVM MAIN - Instance 3 Settings: LAK=0x0B, simulate_control_failure=0, disconnect_after=5, simulate_timeout=0, send_warning=0, tks=1
- SVM: Loading configuration...
- Configuration parsed successfully from 'config.ini'.
- Found configurations for 4 SVM instances in file.
- --- Effective Configuration ---
- interface_type = ethernet
- UVM Target: 192.168.189.129:8080
- SVM 0: Port=8080, LAK=0x08 (Loaded: Yes)
- Simulate Control Failure: No
- Disconnect After: -1 messages
- Simulate Response Timeout: No
- Send Warning on Confirm: No (TKS: 1)
- SVM 1: Port=8081, LAK=0x09 (Loaded: Yes)
- Simulate Control Failure: Yes
- Disconnect After: -1 messages
- Simulate Response Timeout: No
- Send Warning on Confirm: No (TKS: 1)
- SVM 2: Port=8082, LAK=0x0A (Loaded: Yes)
- Simulate Control Failure: No
- Disconnect After: -1 messages
- Simulate Response Timeout: Yes
- Send Warning on Confirm: No (TKS: 1)
- SVM 3: Port=8083, LAK=0x0B (Loaded: Yes)
- Simulate Control Failure: No
- Disconnect After: 5 messages
- Simulate Response Timeout: No
- Send Warning on Confirm: No (TKS: 1)
- -----------------------------
- SVM: Will attempt to start 4 instances based on config.
- Thread-safe QueuedMessage queue created with capacity 400
- SVM: Listener thread 0 initiated for Port 8080 (LAK 0x08).
- SVM: Listener thread 1 initiated for Port 8081 (LAK 0x09).
- SVM: Listener thread 2 initiated for Port 8082 (LAK 0x0A).
- SVM: Listener thread 3 initiated for Port 8083 (LAK 0x0B).
- SVM: Starting common threads (Timer, Sender)...
- SVM: All common threads started. 4 listeners active. Running...
- Ethernet: Listening on port 8081 (handle: 3)
- Listener thread started for SVM ID 1 (LAK 0x09, Port 8081, Listen FD 3)
- Listener (SVM 1): Waiting for connection on port 8081...
- SVM Main: Waiting for shutdown signal...
- Ethernet: Listening on port 8082 (handle: 4)
- Listener thread started for SVM ID 2 (LAK 0x0A, Port 8082, Listen FD 4)
- Listener (SVM 2): Waiting for connection on port 8082...
- Ethernet: Listening on port 8080 (handle: 5)
- Listener thread started for SVM ID 0 (LAK 0x08, Port 8080, Listen FD 5)
- Listener (SVM 0): Waiting for connection on port 8080...
- Ethernet: Listening on port 8083 (handle: 7)
- Listener thread started for SVM ID 3 (LAK 0x0B, Port 8083, Listen FD 7)
- Listener (SVM 3): Waiting for connection on port 8083...
- SVM Sender thread started (reads global outgoing queue).
- SVM Timer thread started.
- Listener (SVM 0): Accepted connection from 192.168.189.128:38260 (Client FD 9)
- Thread-safe QueuedMessage queue created with capacity 100
- SVM Receiver thread started for instance 0 (handle: 9).
- SVM Receiver thread finished for instance 0.
- Listener (SVM 0): Instance activated. Worker threads started.
- SVM Processor thread started for instance 0.
- Listener (SVM 0): Receiver thread joined.
- Listener (SVM 2): Accepted connection from 192.168.189.128:43930 (Client FD 8)
- Thread-safe QueuedMessage queue created with capacity 100
- Listener (SVM 2): Instance activated. Worker threads started.
- Listener (SVM 1): Accepted connection from 192.168.189.128:55750 (Client FD 6)
- Thread-safe QueuedMessage queue created with capacity 100
- Listener (SVM 1): Instance activated. Worker threads started.
- SVM Receiver thread started for instance 1 (handle: 6).
- SVM Processor thread started for instance 1.
- SVM Processor thread started for instance 2.
- Listener (SVM 3): Accepted connection from 192.168.189.128:54524 (Client FD 10)
- Thread-safe QueuedMessage queue created with capacity 100
- SVM Receiver thread started for instance 3 (handle: 10).
- SVM Receiver thread finished for instance 3.
- Получено сообщение через Ethernet: Тип=128, Номер=0, Длина тела=2, Handle=6
- Processor (Inst 1): Обработка 'Инициализация канала'
- Параметры: LAUVM=0x1, LAK=0x09 (assigned)
- SVM (Inst 1): Эмуляция выключения лазера...
- Listener (SVM 3): Instance activated. Worker threads started.
- SVM Receiver thread started for instance 2 (handle: 8).
- Получено сообщение через Ethernet: Тип=128, Номер=0, Длина тела=2, Handle=8
- SVM Processor thread started for instance 3.
- Listener (SVM 3): Receiver thread joined.
- Ответ 'Подтверждение инициализации' сформирован (LAK=0x09).
- Processor (Inst 2): Обработка 'Инициализация канала'
- Параметры: LAUVM=0x1, LAK=0x0A (assigned)
- SVM (Inst 2): Эмуляция выключения лазера...
- Ответ 'Подтверждение инициализации' сформирован (LAK=0x0A).
- Отправка сообщения через Ethernet: Тип=129, Номер=0, Длина тела=12, Общий размер=18, Handle=6
- Отправка сообщения через Ethernet: Тип=129, Номер=0, Длина тела=12, Общий размер=18, Handle=8
- Получено сообщение через Ethernet: Тип=1, Номер=1, Длина тела=1, Handle=8
- Processor (Inst 2): Обработка 'Провести контроль'
- Получено сообщение через Ethernet: Тип=1, Номер=1, Длина тела=1, Handle=6
- SVM (Inst 2): Эмуляция самопроверки...
- Processor (Inst 1): Обработка 'Провести контроль'
- SVM (Inst 1): Эмуляция самопроверки...
- SVM (Inst 2, LAK 0x0A): SIMULATING response delay for 'Podtverzhdenie Kontrolya' AND preparing to stop responding.
- Ответ 'Подтверждение контроля' сформирован.
- Отправка сообщения через Ethernet: Тип=3, Номер=1, Длина тела=8, Общий размер=14, Handle=6
- Получено сообщение через Ethernet: Тип=2, Номер=2, Длина тела=1, Handle=6
- Processor (Inst 1): Обработка 'Выдать результаты контроля'
- SVM (Inst 1, LAK 0x09): SIMULATING control failure (RSK=0x3E).
- Ответ 'Результаты контроля' сформирован.
- Отправка сообщения через Ethernet: Тип=4, Номер=2, Длина тела=8, Общий размер=14, Handle=6
- Ответ 'Подтверждение контроля' сформирован.
- Отправка сообщения через Ethernet: Тип=3, Номер=1, Длина тела=8, Общий размер=14, Handle=8
- Получено сообщение через Ethernet: Тип=2, Номер=2, Длина тела=1, Handle=8
- Processor (Inst 2, LAK 0x0A): SIMULATING NO RESPONSE for 'Vydat Rezultaty Kontrolya' due to timeout simulation.
Advertisement
Add Comment
Please, Sign In to add comment