Presentation is loading. Please wait.

Presentation is loading. Please wait.

Shreeram P Hungund & Sr.Test Engineer Raghavendra S & Test Lead

Similar presentations


Presentation on theme: "Shreeram P Hungund & Sr.Test Engineer Raghavendra S & Test Lead"— Presentation transcript:

1 Automating Hardware and Software integration testing based on CAN open protocol
Shreeram P Hungund & Sr.Test Engineer Raghavendra S & Test Lead Larson and Toubro Technology Services ltd

2 Abstract In today’s world, automation for embedded systems network increases rapidly. Hardware and Software integration testing is one important phase on PDLC. CAN protocol is widely used in several industries like automotive, avionics and medical devices. It is the broadcast based communication protocol between devices. On the other hand, CAN Open is the multi master CAN based communication protocol and profile based device specification. CAN Open uses the CAN Hardware for application layer in OSI/ISO model, the task includes are Configuring, accessing, messaging between various kinds of devices. This paper describes the automation testing of CAN open protocol applications is used in Embedded network as a hardware and software integration testing by using CAN open protocol tools and scripting language. Here, we are using CAN open protocol in embedded network and automating the CAN open application using PCAN view tool and Unit test framework for the result of automation testing. Keywords: CAN open protocol, Automation, Hardware and software integration testing, PCAN view tool, Python scripting

3 Agenda CAN Open Protocol PCAN View tool Unit Test framework Hardware and Software Testing Test stub Can open protocol application methods and Result

4 CAN Open Protocol

5 Device Model

6 Network Management

7 Unit Testing Framework

8 Methods and Procedures:
Connecting the CAN Bus and testing procedure

9 Methods and Procedures:
Connecting the CAN Hardware to Control board

10 CAN Receiver and Transmit Tab:

11 Actual code without test stub:
Test stubs are the test code which is used to simulate a specific test condition Actual code without test stub: void getPatientStatus(bool newPatientDetected) { newPatientDetected = global_flag; } global_flag is 1: Patient is on the BED global_flag is 0: Patient is on the BED In real environment 'global_flag' will set only when weight/patient is on the bed.

12 Modified code with stub:
Create a dummy stub function as follows void stub_patientState(uint8_t pps_data) { global_flag = pps_data; } Use CAN SDO to call the stub function "stub_patientState" with following arguments. If 'pps_data' is 1 -> Patient is on the Surface If 'pps_data' is 0 -> Patient left the Surface Sample data captured using in PCAN-View tool ( is an easy to supervise the data flow on a Controller Area Network (CAN))

13 https://en.wikipedia.org/wiki/Test_stub
References & Appendix USB_UserMan_eng.pdf

14 Author Biography Shreeram P Hungund Shreeram is working as senior test engineer V&V departments in Larson and Toubro Technology Services ltd Mysore. He has about 6.5 years of work experience in product testing and verification. He holds MTech in Electronics from PESIT Bangalore.

15 Author Biography Raghavendra S Raghavendra S is working as Test lead in V&V departments for Larsen and Toubro Technology Services ltd Mysore. He has about 12.8 years of work experience in Software development, Product Validation and Test Automation development in embedded domain

16 Thank You!!!


Download ppt "Shreeram P Hungund & Sr.Test Engineer Raghavendra S & Test Lead"

Similar presentations


Ads by Google