Movatterモバイル変換


[0]ホーム

URL:


Yuvaraja Ravi, profile picture
Uploaded byYuvaraja Ravi
PPT, PDF23,997 views

Automated hardware testing using python

The document outlines an automated hardware testing system designed to detect defects in electronic hardware using Python scripts and an embedded test module. The proposed system aims to improve efficiency by replacing manual testing methods, leveraging an ATmega microcontroller for component measurement and communication protocols. It highlights advantages such as reduced manual effort and cost-effectiveness while acknowledging challenges like delays in data processing.

In this document
Powered by AI

Introduction of project by Yuvaraja Ravi, discussing hardware testing automation using Python.

Abstract describes an embedded prototype for defect detection; discusses existing manual testing challenges and need for automation.

Proposed system details embedded test module; discusses resistance and protocol testing methods with various interfaces (I2C, UART).

Tection and explanation of UART, RS485, and RS422 protocols through detailed hardware design.

Focus on Python as a powerful tool for automating hardware testing, discussing its key features and software design flow.

Describes unit testing framework components, including test fixtures, test cases, and test plan processes.

Discussion on execution of automatic test cases in Python and how results are generated.

List of advantages of automated testing over manual methods and the drawbacks related to delays in data processing.

Summarizes effectiveness of automated hardware testing while proposing future enhancements like parallel testing and use of FPGA.

References to base papers used and concludes with a thank you slide.

Embed presentation

Downloaded 385 times
AUTOMATED HARDWARE TESTINGAUTOMATED HARDWARE TESTINGUSING PYTHONUSING PYTHON1Name : YUVARAJA RAVIReg No : 13PEES1005course : M.TECH EMBEDDED
2NAME : YUVARAJA.RREGISTER NUMBER : 13PEES1005LANGUAGE : EMBEDDED C & PYTHONPROJECT INCHARGE : K.Bhaskar B.Tech., M.E.(Ph.D)
ABSTRACTABSTRACTDesign a Embedded Prototype test hardwareinteract with Python software shows presenceof defects in UUT. Python test script candownload the test cases to the target systemone by one, receive test output, compare withspecifications then verify it, and generate logfiles. Log files inside test steps results arestored as PASS/FAIL.It’s a cost effective test system for SSElectronic hardware manufacturers3
TESTINGTESTINGTesting is an organized process to verifythe behavior, performance, and reliabilityof a deviceIt ensures a device or system to be asdefect-free as possibleTesting is a manufacturing step to ensurethat the manufactured device is defectfree4
HARDWARE TESTINGHARDWARE TESTING  A common test platform (CTP), also called an open teststandard (OTS), is a set of specifications defining test methodsfor diverse components of computer and electronic systemsto be marketed as complete products. The intent of a CTP isto ensure consistency in hardware and software testprocedures from the conceptual and design phases throughmanufacture and distribution. Computers, computer peripherals and electronic systemsoften contain complex devices, circuits, programs andinterfaces. These must all work together in a variety ofapplications and conditions. A CTP can be part of an overallquality assurance program. A common standard can reducethe cost of test equipment, optimize the use of available testequipment, increase production efficiency and minimizetraining costs.5
EXISTING SYSTEMEXISTING SYSTEM Testing is carried out manually by test engineers.Consuming a lot of time and effort huge for spendingthe time for testing. NI Lab View designing a ATE .But measurements aretaken by reputed instruments or NI PXI only PXI HW and its software is huge amount. Certified engineer only able to access the software Add-on software needed for Test case and Reportgeneration .6
PROPOSED SYSTEMPROPOSED SYSTEM To overcome the existing problem, we construct Embeddedhardware test module to measure the Resistance test applied to signal traces (short/open) Voltage /current measure with help of analog pins. IO pins used to trigger the on/off or control the hw. Protocols testing are done by the test hardware. Tested data packets serially communicated to the Python scritps Python scripts collect the complied data's then compare with testcase input and generate the test reports..7
PROJECT – ENTIRE SYSTEMPROJECT – ENTIRE SYSTEM8SERIAL INTERFACE
EMBEDDED TEST HW DESIGNEMBEDDED TEST HW DESIGN Atmega 8-bit AVR controller used for Embedded TestHardware system. Necessity to test the every protocols chips, Analog andDigital IC. Current, Voltage and Resistance measurements using 10bitADC I2C >> | TEMP | EEPROM | SENSORS | DEVICES | UART >> RS232 << RS485 >> 75176-IC << RS422 >> 75176-IC <<9
HW DESIGN – VOLTAGE ,CURRENT &HW DESIGN – VOLTAGE ,CURRENT &RESISTANCE MEASUREMENTRESISTANCE MEASUREMENTVoltage measured by using AVRController 10bit ADCCurrent measurement taken by ACS712Current sensor IC.Constant current probing to the voltagenet through voltage divider circuit.Impedance measured by the ADC.10
HW DESIGN – PROTOCOLS TESTING-I2CHW DESIGN – PROTOCOLS TESTING-I2C I2C (Inter-Integrated Circuit, pronounced "I squaredC") is also a synchronous protocol.I2C uses only 2wires, one for the clock (SCL) and one for the data(SDA). That means that master and slave send dataover the same wire, again controlled by the master.11
HW DESIGN – PROTOCOLSHW DESIGN – PROTOCOLSTESTING-UART / SERIALTESTING-UART / SERIAL  Serial communication is the process of sending dataone bit one by one sequentially, over acommunication channel. UART communication of Full duplex TX and RXcommunication through the COM devices.12
HW DESIGN – PROTOCOLSHW DESIGN – PROTOCOLSTESTING – RS485TESTING – RS485 RS-485 allows multiple devices (up to 32) tocommunicate at half-duplex on a single pair ofwires, plus a ground wire (more on that later),at distances up to 1200 meters (4000 feet) RS485 Differential communication through A <-> B Signal lines.13
HW DESIGN – PROTOCOLSHW DESIGN – PROTOCOLSTESTING – RS422TESTING – RS422 Serial, balanced and differential are the keywords for the RS422interface standard. Serial means, that the information is sent bit bybit on a single transmission line, just like with RS232. Balanceddifferential is what makes RS422 different from RS23214
SW Design - PYTHONSW Design - PYTHONPython is a clear and powerful object-oriented programming language,comparable to Perl, Tcl and Java.It’s a FOSS Programming language.Runs on many different computers andoperating systems: Windows, MacOS,many brands of Unix, OS/2Python Code can be grouped intomodules and packages15
SOFTWARE DESIGN - PYTHONSOFTWARE DESIGN - PYTHONAn open source software used to Automatethe Hardware TestingUNITTEST module supports test automation,sharing of setup and shutdown code for tests,aggregation of tests into collections, andindependence of the tests from the reportingframework.AUTOMATED HARDWARE TESTING 16
UNIT TEST MODULE CONCEPTSUNIT TEST MODULE CONCEPTS Test Fixture : It represents the preparation needed to perform oneor more tests, and any associate cleanup actions. This may involve,for example, creating temporary or proxy databases, directories, orstarting a server process. Test Case: is the smallest unit of testing. It checks for a specificresponse to a particular set of inputs. Unit test provides a baseclass, Test Case which may be used to create new test cases. Test Suite: Test suite is a collection of test cases, test suites, orboth. It is used to aggregate tests that should be executed together. Test Plan: Test plan is a document detailing the objectives, targetmarket, internal beta team, and processes for a specific beta test fora software or hardware product. The plan typically contains adetailed understanding of the eventual workflow.AUTOMATED HARDWARE TESTING 17
SW –Development FlowSW –Development FlowAUTOMATED HARDWARE TESTING 18
Requirements & Test CaseRequirements & Test CaseRelationshipRelationshipAUTOMATED HARDWARE TESTING 19
UUT Code SampleUUT Code SampleDef ScaledInput(data):rc = NO_ERRscaled_data = dataif data >= DATA_MIN and data <= DATA_MAX:scaled_data = (data * data_scale) + data_offsetif scaled_data > SCALE_MAX:scaled_data = SCALE_MAXrc = ERR_MAXSCALEelif scaled_data < SCALE_MIN:scaled_data = SCALE_MINrc = ERR_MINSCALEelse:rc = ERR_OVERreturn (rc, scaled_data)AUTOMATED HARDWARE TESTING 20Function code getting one input argumentFunction Returning two o/p values
Function with argument code tableFunction with argument code tableAUTOMATED HARDWARE TESTING 21A unit test is constructed such that all possibleinputs are used to force the execution to traverseall possible paths. In the case of ScaledInput(), wecan see that there are three obvious input testcases. Too low,Too high,Within range.
Test Case Function Flow chartTest Case Function Flow chartAUTOMATED HARDWARE TESTING 22
Test Step Flow ChartTest Step Flow ChartAUTOMATED HARDWARE TESTING 23
PYTHON SCRIPTPYTHON SCRIPTTEST CASETEST CASEEach automatic test casecontains assigned Pythonscript that is executed byExecutor application. Figurepresents general flow chartfor writing automatic scripts forfunctional testing.24
PYTHON TEST RESULTPYTHON TEST RESULT25
ADVANTAGESADVANTAGESBoards, components and interface cableseparately tested in modes of test case.Manual testing has been reducedLocating the Hardware(components) andsoftware bugs using test reports.Low Cost (Pursuing software’s are Opensource)Reduced human efforts26
DISADVANTAGESDISADVANTAGESEmbedded controllers are single task at ainstant. So measuring data goes to the pcwith delay. Output data packets comparedwith test case help of Python Script. Soreport generating time taken more.27
CONCLUSIONCONCLUSION Automatic hardware testing using Python is a ATEtechnique to increase throughput without acorresponding increase in cost, by performing tests onprotocols are handling and test without error. It hasbeen shown quantitatively to reduce test cost moreeffectively than low-cost ATE. Because it reduces alltest cost contributors, and not only capital cost of ATE. In this paper, we described the AHT using pythonstrategy adopted for hardware testing and protocolstesting without measuring instruments .28
FUTURE ENHANCEMENTFUTURE ENHANCEMENTIn this project in future we can add aFPGA or CPLD used to get the datapackets at instant of time without delay.Parallel Testing method introduces totest the multiple boards at same instanttime.29
BASE PAPERSBASE PAPERS [1] Jambunatha, K .,Design and implement Automated Procedure to upgraderemote network devices using Python, Advance Computing Conference (IACC),2015 IEEE International, Bangalore, June 2015. [2] Karmore, S.P.; Mabajan, A.R., Universal methodology for embedded systemtesting., Computer Science & Education (ICCSE), 2013 8th International Conferenceon Year: 2013,IEEE Conference Publications, 26-28 April 2013 [3] Kovacevic, M.; Kovacevic, B.; Pekovic, V.; Stefanovic, D., Framework forautomatic testing of Set-top boxes., Telecommunications Forum Telfor (TELFOR),22ndYear: 2014 [4] Kim H. Pries, Jon M. Quigley-Testing Complex and Embedded Systems-CRCPress (2010) [5] Python Programming Language, URL http://python.org/.30
THANK YOUTHANK YOU31

Recommended

PPT
AUTOMATED TESTING USING PYTHON (ATE)
PPTX
PART-2 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
PPTX
Embedded System Test Automation
PPTX
System Verilog Tutorial - VHDL
PDF
PPT
PDF
Trusted firmware deep_dive_v1.0_
 
PDF
ARM CORTEX M3 PPT
PDF
Verilog lab manual (ECAD and VLSI Lab)
PDF
JTAG Interface (Intro)
PDF
CPU Verification
PPTX
PART-1 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
PDF
PPTX
Embedded C programming session10
PPTX
RISC-V Introduction
PPTX
Python Programming Essentials - M24 - math module
PDF
Automotive CAN Protocol | Flow Control | Block Size | ST Min | First Frame
PPT
linux device driver
PPT
Introduction to embedded systems
PPT
Compiler Design
PDF
Network Drivers
PDF
Building Embedded Linux Full Tutorial for ARM
PDF
Embedded Android : System Development - Part II (Linux device drivers)
PPTX
SOC - system on a chip
PDF
Session 6 sv_randomization
PPTX
Automated Python Test Frameworks for Hardware Verification and Validation
PDF
Automated Testing for Embedded Software in C or C++

More Related Content

PPT
AUTOMATED TESTING USING PYTHON (ATE)
PPTX
PART-2 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
PPTX
Embedded System Test Automation
PPTX
System Verilog Tutorial - VHDL
PDF
PPT
PDF
Trusted firmware deep_dive_v1.0_
 
AUTOMATED TESTING USING PYTHON (ATE)
PART-2 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
Embedded System Test Automation
System Verilog Tutorial - VHDL
Trusted firmware deep_dive_v1.0_
 

What's hot

PDF
ARM CORTEX M3 PPT
PDF
Verilog lab manual (ECAD and VLSI Lab)
PDF
JTAG Interface (Intro)
PDF
CPU Verification
PPTX
PART-1 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
PDF
PPTX
Embedded C programming session10
PPTX
RISC-V Introduction
PPTX
Python Programming Essentials - M24 - math module
PDF
Automotive CAN Protocol | Flow Control | Block Size | ST Min | First Frame
PPT
linux device driver
PPT
Introduction to embedded systems
PPT
Compiler Design
PDF
Network Drivers
PDF
Building Embedded Linux Full Tutorial for ARM
PDF
Embedded Android : System Development - Part II (Linux device drivers)
PPTX
SOC - system on a chip
PDF
Session 6 sv_randomization
ARM CORTEX M3 PPT
Verilog lab manual (ECAD and VLSI Lab)
JTAG Interface (Intro)
CPU Verification
PART-1 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
Embedded C programming session10
RISC-V Introduction
Python Programming Essentials - M24 - math module
Automotive CAN Protocol | Flow Control | Block Size | ST Min | First Frame
linux device driver
Introduction to embedded systems
Compiler Design
Network Drivers
Building Embedded Linux Full Tutorial for ARM
Embedded Android : System Development - Part II (Linux device drivers)
SOC - system on a chip
Session 6 sv_randomization

Viewers also liked

PPTX
Automated Python Test Frameworks for Hardware Verification and Validation
PDF
Automated Testing for Embedded Software in C or C++
ODT
Testing in-python-and-pytest-framework
PDF
Robot framework 을 이용한 기능 테스트 자동화
PPTX
Python in Test automation
PDF
Robot Framework Dos And Don'ts
PPT
Python in telecommunications (in 7 minutes)
PPTX
An Overview of User Acceptance Testing (UAT)
PDF
Protocol Aware Ate Semi Submitted
PPTX
Automated Acceptance Testing from Scratch
PPTX
C++ and Embedded Linux - a perfect match
PPT
Yuva Home automation project
PPT
C to C++ Migration Strategy
PPT
Automated Regression Testing for Embedded Systems in Action
PPTX
Python Programming Essentials - M39 - Unit Testing
PDF
Softwarequalitätssicherung mit Continuous Integration Tools
PDF
Python Testing Fundamentals
 
PDF
Python Ireland Nov 2010 Talk: Unit Testing
PDF
Mock testing mit Python
PDF
A Statistician's View on Big Data and Data Science (Version 3)
Automated Python Test Frameworks for Hardware Verification and Validation
Automated Testing for Embedded Software in C or C++
Testing in-python-and-pytest-framework
Robot framework 을 이용한 기능 테스트 자동화
Python in Test automation
Robot Framework Dos And Don'ts
Python in telecommunications (in 7 minutes)
An Overview of User Acceptance Testing (UAT)
Protocol Aware Ate Semi Submitted
Automated Acceptance Testing from Scratch
C++ and Embedded Linux - a perfect match
Yuva Home automation project
C to C++ Migration Strategy
Automated Regression Testing for Embedded Systems in Action
Python Programming Essentials - M39 - Unit Testing
Softwarequalitätssicherung mit Continuous Integration Tools
Python Testing Fundamentals
 
Python Ireland Nov 2010 Talk: Unit Testing
Mock testing mit Python
A Statistician's View on Big Data and Data Science (Version 3)

Similar to Automated hardware testing using python

PDF
Automotive Ethernet: Physical Layer Compliance Testing Webinar Slides
PPTX
“Automation Testing for Embedded Systems”
PDF
Avionics Test Station Setup
PDF
IRJET - Implementation of SDC: Self-Driving Car based on Raspberry Pi
PDF
The Ultimate Serial Port Detective – Baudowl
PDF
Resume of Gaurang Rathod, Embedded Software Developer
DOC
Ankit sarin
DOC
LTTS_Dinesh Prasath_Resume
DOCX
Ramesh gupta cv
DOCX
Bindu_Resume
DOCX
Michael_Joshua_Validation
PPT
L1_Introduction.ppt
PPT
Euro india2006 wirelessradioembeddedchallenges
PDF
TestowanieIoT2016
 
PDF
Rashmi_Resume
PPT
'Automated Reliability Testing via Hardware Interfaces' by Bryan Bakker
PPTX
What Have We Lost - A look at some historical techniques
PDF
Insights and Lessons Learned Verifying the QoS Engine of a Network Processor
 
PDF
Boston 2009 q1_kappler_chris
PPTX
EMBEDDED SYSTEM (41130161).pptx
Automotive Ethernet: Physical Layer Compliance Testing Webinar Slides
“Automation Testing for Embedded Systems”
Avionics Test Station Setup
IRJET - Implementation of SDC: Self-Driving Car based on Raspberry Pi
The Ultimate Serial Port Detective – Baudowl
Resume of Gaurang Rathod, Embedded Software Developer
Ankit sarin
LTTS_Dinesh Prasath_Resume
Ramesh gupta cv
Bindu_Resume
Michael_Joshua_Validation
L1_Introduction.ppt
Euro india2006 wirelessradioembeddedchallenges
TestowanieIoT2016
 
Rashmi_Resume
'Automated Reliability Testing via Hardware Interfaces' by Bryan Bakker
What Have We Lost - A look at some historical techniques
Insights and Lessons Learned Verifying the QoS Engine of a Network Processor
 
Boston 2009 q1_kappler_chris
EMBEDDED SYSTEM (41130161).pptx

Recently uploaded

PPT
Virtual Instrumentation Programming Techniques.ppt
PDF
Event #3_ Build a Gemini Bot, Together with GitHub_private.pdf
PPTX
Ship Repair and fault diagnosis and restoration of system back to normal .pptx
PPTX
Generative AI Deep Dive: Architectures, Mechanics, and Future Applications
PDF
Stern-Gerlach-Experiment from quantum mechanics
PDF
Introduction to MySQL Spatial Features and Real-World Use Cases
PDF
Welcome to ISPR 2026 - 12th International Conference on Image and Signal Pro...
PDF
ANPARA THERMAL POWER STATION[1] sangam.pdf
PPTX
AI at the Crossroads_ Transforming the Future of Green Technology.pptx
PDF
November_2025 Top 10 Read Articles in Computer Networks & Communications.pdf
PPTX
clustering type :hierarchical clustering.pptx
PDF
IPE 105 - Engineering Materials Constitution of Alloys
PDF
Why Buildings Crumble Before Their Time And How We Can Build a Legacy
PPTX
31.03.24 - 7.CURRICULUM & TEACHING - LEARNING PROCESS IMPLEMENTATION DETAILS....
PPTX
waste to energy deck v.3.pptx changing garbage to electricity
PDF
HEV Descriptive Questions https://www.slideshare.net/slideshow/hybrid-electr...
PDF
Soil Permeability and Seepage-Irrigation Structures
PDF
Reinforced Earth Walls Notes .pdf
PPTX
Supercapacitor.pptx...............................
PPTX
2-Photoelectric effect, phenomena and its related concept.pptx
Virtual Instrumentation Programming Techniques.ppt
Event #3_ Build a Gemini Bot, Together with GitHub_private.pdf
Ship Repair and fault diagnosis and restoration of system back to normal .pptx
Generative AI Deep Dive: Architectures, Mechanics, and Future Applications
Stern-Gerlach-Experiment from quantum mechanics
Introduction to MySQL Spatial Features and Real-World Use Cases
Welcome to ISPR 2026 - 12th International Conference on Image and Signal Pro...
ANPARA THERMAL POWER STATION[1] sangam.pdf
AI at the Crossroads_ Transforming the Future of Green Technology.pptx
November_2025 Top 10 Read Articles in Computer Networks & Communications.pdf
clustering type :hierarchical clustering.pptx
IPE 105 - Engineering Materials Constitution of Alloys
Why Buildings Crumble Before Their Time And How We Can Build a Legacy
31.03.24 - 7.CURRICULUM & TEACHING - LEARNING PROCESS IMPLEMENTATION DETAILS....
waste to energy deck v.3.pptx changing garbage to electricity
HEV Descriptive Questions https://www.slideshare.net/slideshow/hybrid-electr...
Soil Permeability and Seepage-Irrigation Structures
Reinforced Earth Walls Notes .pdf
Supercapacitor.pptx...............................
2-Photoelectric effect, phenomena and its related concept.pptx

Automated hardware testing using python

  • 1.
    AUTOMATED HARDWARE TESTINGAUTOMATEDHARDWARE TESTINGUSING PYTHONUSING PYTHON1Name : YUVARAJA RAVIReg No : 13PEES1005course : M.TECH EMBEDDED
  • 2.
    2NAME : YUVARAJA.RREGISTERNUMBER : 13PEES1005LANGUAGE : EMBEDDED C & PYTHONPROJECT INCHARGE : K.Bhaskar B.Tech., M.E.(Ph.D)
  • 3.
    ABSTRACTABSTRACTDesign a EmbeddedPrototype test hardwareinteract with Python software shows presenceof defects in UUT. Python test script candownload the test cases to the target systemone by one, receive test output, compare withspecifications then verify it, and generate logfiles. Log files inside test steps results arestored as PASS/FAIL.It’s a cost effective test system for SSElectronic hardware manufacturers3
  • 4.
    TESTINGTESTINGTesting is anorganized process to verifythe behavior, performance, and reliabilityof a deviceIt ensures a device or system to be asdefect-free as possibleTesting is a manufacturing step to ensurethat the manufactured device is defectfree4
  • 5.
    HARDWARE TESTINGHARDWARE TESTING A common test platform (CTP), also called an open teststandard (OTS), is a set of specifications defining test methodsfor diverse components of computer and electronic systemsto be marketed as complete products. The intent of a CTP isto ensure consistency in hardware and software testprocedures from the conceptual and design phases throughmanufacture and distribution. Computers, computer peripherals and electronic systemsoften contain complex devices, circuits, programs andinterfaces. These must all work together in a variety ofapplications and conditions. A CTP can be part of an overallquality assurance program. A common standard can reducethe cost of test equipment, optimize the use of available testequipment, increase production efficiency and minimizetraining costs.5
  • 6.
    EXISTING SYSTEMEXISTING SYSTEMTesting is carried out manually by test engineers.Consuming a lot of time and effort huge for spendingthe time for testing. NI Lab View designing a ATE .But measurements aretaken by reputed instruments or NI PXI only PXI HW and its software is huge amount. Certified engineer only able to access the software Add-on software needed for Test case and Reportgeneration .6
  • 7.
    PROPOSED SYSTEMPROPOSED SYSTEMTo overcome the existing problem, we construct Embeddedhardware test module to measure the Resistance test applied to signal traces (short/open) Voltage /current measure with help of analog pins. IO pins used to trigger the on/off or control the hw. Protocols testing are done by the test hardware. Tested data packets serially communicated to the Python scritps Python scripts collect the complied data's then compare with testcase input and generate the test reports..7
  • 8.
    PROJECT – ENTIRESYSTEMPROJECT – ENTIRE SYSTEM8SERIAL INTERFACE
  • 9.
    EMBEDDED TEST HWDESIGNEMBEDDED TEST HW DESIGN Atmega 8-bit AVR controller used for Embedded TestHardware system. Necessity to test the every protocols chips, Analog andDigital IC. Current, Voltage and Resistance measurements using 10bitADC I2C >> | TEMP | EEPROM | SENSORS | DEVICES | UART >> RS232 << RS485 >> 75176-IC << RS422 >> 75176-IC <<9
  • 10.
    HW DESIGN –VOLTAGE ,CURRENT &HW DESIGN – VOLTAGE ,CURRENT &RESISTANCE MEASUREMENTRESISTANCE MEASUREMENTVoltage measured by using AVRController 10bit ADCCurrent measurement taken by ACS712Current sensor IC.Constant current probing to the voltagenet through voltage divider circuit.Impedance measured by the ADC.10
  • 11.
    HW DESIGN –PROTOCOLS TESTING-I2CHW DESIGN – PROTOCOLS TESTING-I2C I2C (Inter-Integrated Circuit, pronounced "I squaredC") is also a synchronous protocol.I2C uses only 2wires, one for the clock (SCL) and one for the data(SDA). That means that master and slave send dataover the same wire, again controlled by the master.11
  • 12.
    HW DESIGN –PROTOCOLSHW DESIGN – PROTOCOLSTESTING-UART / SERIALTESTING-UART / SERIAL  Serial communication is the process of sending dataone bit one by one sequentially, over acommunication channel. UART communication of Full duplex TX and RXcommunication through the COM devices.12
  • 13.
    HW DESIGN –PROTOCOLSHW DESIGN – PROTOCOLSTESTING – RS485TESTING – RS485 RS-485 allows multiple devices (up to 32) tocommunicate at half-duplex on a single pair ofwires, plus a ground wire (more on that later),at distances up to 1200 meters (4000 feet) RS485 Differential communication through A <-> B Signal lines.13
  • 14.
    HW DESIGN –PROTOCOLSHW DESIGN – PROTOCOLSTESTING – RS422TESTING – RS422 Serial, balanced and differential are the keywords for the RS422interface standard. Serial means, that the information is sent bit bybit on a single transmission line, just like with RS232. Balanceddifferential is what makes RS422 different from RS23214
  • 15.
    SW Design -PYTHONSW Design - PYTHONPython is a clear and powerful object-oriented programming language,comparable to Perl, Tcl and Java.It’s a FOSS Programming language.Runs on many different computers andoperating systems: Windows, MacOS,many brands of Unix, OS/2Python Code can be grouped intomodules and packages15
  • 16.
    SOFTWARE DESIGN -PYTHONSOFTWARE DESIGN - PYTHONAn open source software used to Automatethe Hardware TestingUNITTEST module supports test automation,sharing of setup and shutdown code for tests,aggregation of tests into collections, andindependence of the tests from the reportingframework.AUTOMATED HARDWARE TESTING 16
  • 17.
    UNIT TEST MODULECONCEPTSUNIT TEST MODULE CONCEPTS Test Fixture : It represents the preparation needed to perform oneor more tests, and any associate cleanup actions. This may involve,for example, creating temporary or proxy databases, directories, orstarting a server process. Test Case: is the smallest unit of testing. It checks for a specificresponse to a particular set of inputs. Unit test provides a baseclass, Test Case which may be used to create new test cases. Test Suite: Test suite is a collection of test cases, test suites, orboth. It is used to aggregate tests that should be executed together. Test Plan: Test plan is a document detailing the objectives, targetmarket, internal beta team, and processes for a specific beta test fora software or hardware product. The plan typically contains adetailed understanding of the eventual workflow.AUTOMATED HARDWARE TESTING 17
  • 18.
    SW –Development FlowSW–Development FlowAUTOMATED HARDWARE TESTING 18
  • 19.
    Requirements & TestCaseRequirements & Test CaseRelationshipRelationshipAUTOMATED HARDWARE TESTING 19
  • 20.
    UUT Code SampleUUTCode SampleDef ScaledInput(data):rc = NO_ERRscaled_data = dataif data >= DATA_MIN and data <= DATA_MAX:scaled_data = (data * data_scale) + data_offsetif scaled_data > SCALE_MAX:scaled_data = SCALE_MAXrc = ERR_MAXSCALEelif scaled_data < SCALE_MIN:scaled_data = SCALE_MINrc = ERR_MINSCALEelse:rc = ERR_OVERreturn (rc, scaled_data)AUTOMATED HARDWARE TESTING 20Function code getting one input argumentFunction Returning two o/p values
  • 21.
    Function with argumentcode tableFunction with argument code tableAUTOMATED HARDWARE TESTING 21A unit test is constructed such that all possibleinputs are used to force the execution to traverseall possible paths. In the case of ScaledInput(), wecan see that there are three obvious input testcases. Too low,Too high,Within range.
  • 22.
    Test Case FunctionFlow chartTest Case Function Flow chartAUTOMATED HARDWARE TESTING 22
  • 23.
    Test Step FlowChartTest Step Flow ChartAUTOMATED HARDWARE TESTING 23
  • 24.
    PYTHON SCRIPTPYTHON SCRIPTTESTCASETEST CASEEach automatic test casecontains assigned Pythonscript that is executed byExecutor application. Figurepresents general flow chartfor writing automatic scripts forfunctional testing.24
  • 25.
  • 26.
    ADVANTAGESADVANTAGESBoards, components andinterface cableseparately tested in modes of test case.Manual testing has been reducedLocating the Hardware(components) andsoftware bugs using test reports.Low Cost (Pursuing software’s are Opensource)Reduced human efforts26
  • 27.
    DISADVANTAGESDISADVANTAGESEmbedded controllers aresingle task at ainstant. So measuring data goes to the pcwith delay. Output data packets comparedwith test case help of Python Script. Soreport generating time taken more.27
  • 28.
    CONCLUSIONCONCLUSION Automatic hardwaretesting using Python is a ATEtechnique to increase throughput without acorresponding increase in cost, by performing tests onprotocols are handling and test without error. It hasbeen shown quantitatively to reduce test cost moreeffectively than low-cost ATE. Because it reduces alltest cost contributors, and not only capital cost of ATE. In this paper, we described the AHT using pythonstrategy adopted for hardware testing and protocolstesting without measuring instruments .28
  • 29.
    FUTURE ENHANCEMENTFUTURE ENHANCEMENTInthis project in future we can add aFPGA or CPLD used to get the datapackets at instant of time without delay.Parallel Testing method introduces totest the multiple boards at same instanttime.29
  • 30.
    BASE PAPERSBASE PAPERS[1] Jambunatha, K .,Design and implement Automated Procedure to upgraderemote network devices using Python, Advance Computing Conference (IACC),2015 IEEE International, Bangalore, June 2015. [2] Karmore, S.P.; Mabajan, A.R., Universal methodology for embedded systemtesting., Computer Science & Education (ICCSE), 2013 8th International Conferenceon Year: 2013,IEEE Conference Publications, 26-28 April 2013 [3] Kovacevic, M.; Kovacevic, B.; Pekovic, V.; Stefanovic, D., Framework forautomatic testing of Set-top boxes., Telecommunications Forum Telfor (TELFOR),22ndYear: 2014 [4] Kim H. Pries, Jon M. Quigley-Testing Complex and Embedded Systems-CRCPress (2010) [5] Python Programming Language, URL http://python.org/.30
  • 31.

[8]ページ先頭

©2009-2025 Movatter.jp