How mrdevanagalingam/amararaja-integrated-qtp works
This is a TCP-based QTP laboratory test system: an operator selects a host-side test, the host sends a framed request to the target, and the target dispatches hardware or connectivity checks and returns results. The graph preserves the documented meter, IMD, CAN, RFID, temperature, 4G, relay, and firmware-flash capabilities. Some target wiring is supported by the SOURCE INDEX and README rather than full excerpts; uncertain implementation details are not expanded.
Main entry points: tests.py Test orchestration · tcp_handler.py Host TCP client · tcp_server.py TCP server · can_controller_qtp.py CAN QTP actions
Components 23
Host test console
- Host entry point
Amararaja_Integrated_QTP_Host/main.py - Interactive menu
Amararaja_Integrated_QTP_Host/interactive_menu.py - Command and results
Amararaja_Integrated_QTP_Host/command_handler.py
QTP transport
- Host TCP client
Amararaja_Integrated_QTP_Host/tcp_handler.py - Host QTP framing
Amararaja_Integrated_QTP_Host/qtp_protocol.py - Target QTP framing
Amararaja_Integrated_QTP_Target/qtp_protocol.py
Target dispatch
- Target entry point
Amararaja_Integrated_QTP_Target/main.py - TCP server
Amararaja_Integrated_QTP_Target/tcp_server.py - Command dispatcher
Amararaja_Integrated_QTP_Target/dispatcher.py - Test orchestration
Amararaja_Integrated_QTP_Target/tests.py
Hardware tests
- Selec EM4M meter
Amararaja_Integrated_QTP_Target/selec_EM4M.py - EDC2150 meter
Amararaja_Integrated_QTP_Target/edc2150.py - IMD readers
Amararaja_Integrated_QTP_Target/imd_read.py - RFID verification
Amararaja_Integrated_QTP_Target/tests.py - Temperature test
Amararaja_Integrated_QTP_Target/phyverso_temperature.py - 4G verification
Amararaja_Integrated_QTP_Target/network_4g.py
CAN and MCU
- CAN QTP actions
Amararaja_Integrated_QTP_Target/can_controller_qtp.py - CAN controller
Amararaja_Integrated_QTP_Target/can_controller_node.py - CAN interface and codec
Amararaja_Integrated_QTP_Target/can_setup.py - Relay control
Amararaja_Integrated_QTP_Target/relay_control.py - MCU firmware images
Amararaja_Integrated_QTP_Target/MCU_binary
Other components
- Operator
- QTP target service
Connections 23
- Operator → Interactive menu: selects test
Amararaja_Integrated_QTP_Host/interactive_menu.py - Host entry point → Interactive menu: starts menu
Amararaja_Integrated_QTP_Host/main.py - Host entry point → Command and results: creates handler
Amararaja_Integrated_QTP_Host/main.py - Interactive menu → Command and results: runs command
Amararaja_Integrated_QTP_Host/interactive_menu.py - Command and results → Host TCP client: sends request
README.md - Host TCP client → Host QTP framing: frames request
Amararaja_Integrated_QTP_Host/tcp_handler.py - Host TCP client → QTP target service: connects TCP
README.md - Target entry point → TCP server: starts server
Amararaja_Integrated_QTP_Target/main.py - TCP server → Target QTP framing: decodes frames
Amararaja_Integrated_QTP_Target/tcp_server.py - TCP server → Command dispatcher: dispatches command
Amararaja_Integrated_QTP_Target/tcp_server.py - Command dispatcher → Test orchestration: routes tests
Amararaja_Integrated_QTP_Target/dispatcher.py - Test orchestration → Selec EM4M meter: runs meter test
Amararaja_Integrated_QTP_Target/tests.py - Test orchestration → EDC2150 meter: runs meter test
Amararaja_Integrated_QTP_Target/tests.py - Test orchestration → IMD readers: reads IMD
Amararaja_Integrated_QTP_Target/tests.py - Test orchestration → RFID verification: verifies RFID
README.md - Test orchestration → Temperature test: runs sensor test
Amararaja_Integrated_QTP_Target/tests.py - Test orchestration → 4G verification: runs network test
Amararaja_Integrated_QTP_Target/tests.py - Test orchestration → CAN QTP actions: runs CAN action
Amararaja_Integrated_QTP_Target/tests.py - CAN QTP actions → CAN controller: invokes controller
Amararaja_Integrated_QTP_Target/can_controller_qtp.py - CAN QTP actions → CAN interface and codec: configures CAN
Amararaja_Integrated_QTP_Target/can_controller_qtp.py - CAN controller → CAN interface and codec: sends CAN frames
Amararaja_Integrated_QTP_Target/can_controller_node.py - Test orchestration → Relay control: runs relay action
Amararaja_Integrated_QTP_Target/tests.py - Test orchestration → MCU firmware images: flashes firmware
README.md