CN106502886A - Low-power consumption bluetooth test system based on TCL - Google Patents

Low-power consumption bluetooth test system based on TCL Download PDF

Info

Publication number
CN106502886A
CN106502886A CN201610891729.1A CN201610891729A CN106502886A CN 106502886 A CN106502886 A CN 106502886A CN 201610891729 A CN201610891729 A CN 201610891729A CN 106502886 A CN106502886 A CN 106502886A
Authority
CN
China
Prior art keywords
test
power consumption
low
consumption bluetooth
bluetooth
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610891729.1A
Other languages
Chinese (zh)
Inventor
张修远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Huahong Integrated Circuit Co Ltd
Original Assignee
Shanghai Huahong Integrated Circuit Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Huahong Integrated Circuit Co Ltd filed Critical Shanghai Huahong Integrated Circuit Co Ltd
Priority to CN201610891729.1A priority Critical patent/CN106502886A/en
Publication of CN106502886A publication Critical patent/CN106502886A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)

Abstract

The invention discloses a kind of low-power consumption bluetooth test system based on TCL, including:The one test PC for installing Windows10 operating systems, 4.0 adapter of a bluetooth being connected with test PC;Testing results software in the test PC, by writing different test scripts in test software, the transmitting-receiving instructed as requested by control 4.0 adapter of bluetooth, scan low-power consumption bluetooth equipment to be measured and choose according to command request and treat that side feature is tested, currently tested low-power consumption bluetooth equipment state is verified according to the test script that writes in advance, to be confirmed whether by test.The present invention can realize that whole test process is full-automatic, and have great flexibility and extensibility.

Description

Low-power consumption bluetooth test system based on TCL
Technical field
The present invention relates to bluetooth field tests, more particularly to a kind of based on TCL (Tool Command Language works Tool command lanuage) low-power consumption bluetooth test system.
Background technology
With the arrival of information age, low-power consumption bluetooth technology enters the every aspect of people's life, and intelligence is wearable The usage frequency more and more higher of equipment.Although this kind of technology may lag behind developed country in China, scientific research personnel exists always In positive innovation and exploration.For effectively analyzing the problem of low-power consumption bluetooth, a lot of test equipments are have also been invented.But reference Some current automatic testing schemes, often it is difficult to accomplish perfection, test inadequate hommization, and man-machine interaction is poor, interface list One, it is impossible to voluntarily flexibly write more complicated test case, it is impossible to according to the test result that practical situation modification is compared automatically, Also the function of the higher orders such as output report is not similar to, and these deeper demands are occurred in before engineer again.
Existing automation solutions are highly customized according to actual test demand mostly, practical faciostenosis, system Very inflexible, the single function that makees, lacks motility and the extensibility of research and development needs, has no idea to meet the higher need of research staff Ask, far from each other with laboratory debugging, testing requirement.
Content of the invention
The technical problem to be solved in the present invention is to provide a kind of low-power consumption bluetooth test system based on TCL, can realize Whole test process is full-automatic, and has great flexibility and extensibility.
For solve above-mentioned technical problem, the present invention the low-power consumption bluetooth test system based on TCL, including:
The one test PC (PC) for installing Windows10 operating systems, the bluetooth 4.0 being connected with test PC Adapter;
Testing results software in the test PC, by writing different test scripts in test software, controls bluetooth 4.0 The transmitting-receiving instructed as requested by adapter, scans low-power consumption bluetooth equipment to be measured and chooses according to command request and treat side feature Tested, currently tested low-power consumption bluetooth equipment state is verified according to the test script that writes in advance, to confirm to be No by test.
Thoroughly can be realized in whole test process using the present invention full-automatic, and according to writing script engineer's Ability, oneself can just complete the protos test suite PROTOS of depth customization, be that the demand of itself is tailored.
The present invention has extraordinary extensibility, in addition to the function of using at present, can also continue to external other Laboratory equlpment, such as signal generator, audiofrequency spectrometer, Network Analyzer etc. are added to together in whole test system, using TCL The powerful autgmentability of language so that the follow-up external test facility that accesses can also become very simple, it is only necessary to simply carry out two Secondary exploitation can be used, and finally everything can reach the low-power consumption bluetooth test system of the intelligence of a set of high integration, and Grow with each passing hour lasting perfect and evolution.
The present invention has high flexibility, and man-machine interaction is directly perceived, the characteristics of each functional independence, and can be according to actual needs Test script is write voluntarily with various types of application, filled up the high intelligent automation test of current low-power consumption bluetooth equipment The blank of demand.
Description of the drawings
The present invention is further detailed explanation with specific embodiment below in conjunction with the accompanying drawings:
Accompanying drawing is one embodiment schematic diagram of low-power consumption bluetooth test system based on TCL.
Specific embodiment
In conjunction with shown in accompanying drawing, the low-power consumption bluetooth test system based on TCL in the following embodiments, including:One 4.0 adapter of bluetooth, the test P of installation Windows10 operating systems.
4.0 adapter of the bluetooth is usually used USB (USB (universal serial bus)) interface, and by USB interface and test PC It is connected.Interface convertor of the Bluetooth adapter exponential code product using bluetooth equipment.4.0 version adapter of bluetooth employs indigo plant Bluetooth core specification 4.0 of the tooth Technology-based Alliance in 2010 formal releases.It includes classical bluetooth, High Speed Bluetooth and low-power consumption bluetooth Agreement.
4.0 adapter of the bluetooth scans low-power consumption bluetooth equipment to be measured and chooses to be measured according to the command request of test PC Feature, sends test instruction to this feature value and is tested, and whether the function of testing tested low-power consumption bluetooth equipment is normal.
The test PC, testing results software, by working out different test scripts in test software, control low-power consumption is blue Tooth equipment carries out difference in functionality test according to command request, while checking whether tested low-power consumption bluetooth device talk is normal;And According to the script Rule of judgment for writing in advance, the state when tested low-power consumption bluetooth equipment is verified, is confirmed whether to lead to Cross test.
The test software is worked out using TCL language.TCL language syntax features:Simply, efficient, powerful autgmentability, and And good man-machine interaction causes test become abnormal easy.TCL language syntaxs have powerful compatibility simultaneously so that It almost can be embedded in the grammer of all main flows, do not have particular/special requirement in itself to compiler, on the market existing TCL compilers This set test system can be built, for the engineer for having development ability, this set low-power consumption bluetooth test system is powerful Function can undoubtedly become their Gospel.
It is as follows that TCL test scripts write example code:
Tcl interface function encapsulation example is as follows:
In sum, there is obvious advantage for the relatively former automation solutions of the present invention.Whole test system Unified denier is built and is completed, and just has high integrated level, and automatization, intelligence degree height, can at any time according to test need Ask the features such as carrying covers test case, and durability is strong, and flexibility ratio is high, accurate testing, reliable results, generalization is strong.
A specific embodiment is presented herein below, technical scheme, implementation process can be better understood by and had Beneficial effect.
After test case is write, in whole test process, Test Engineer is even without aside checking, a whole set of Test system can voluntarily complete all tests according to pre-designed logic completely, and print test report.Surveying During examination, engineer has been added in the decision logic of a lot of erroneous points, in test report, may directly indicate that test is lost The reason for losing, greatly improves the efficiency of test and analysis erroneous point, also reduces the threshold for executing test, be deisgn product section Substantial amounts of time and efforts is saved.Replicability of the present invention is also very good simultaneously, and hardware only needs a Bluetooth adapter and installation There is the PC of Windows10 operating systems, these are commercially all very easy to purchase.In addition the present invention is provided for engineer again The system is such as connected into online network, almost can be tested at any time and place by the probability of Function Extension, And testing progress and test result can be checked whenever and wherever possible.Greatly save labour cost.
The present invention has been described in detail above by specific embodiment and embodiment, but these not constitute right The restriction of the present invention.Without departing from the principles of the present invention, those skilled in the art can also make many deformations and change Enter, these also should be regarded as protection scope of the present invention.

Claims (4)

1. a kind of low-power consumption bluetooth test system based on TCL, it is characterised in that include:
The one test PC for installing Windows10 operating systems, 4.0 adapter of a bluetooth being connected with test PC;
Testing results software in the test PC, by writing different test scripts in test software, control bluetooth 4.0 is adapted to The transmitting-receiving instructed as requested by device, scans low-power consumption bluetooth equipment to be measured and chooses according to command request and treat that side feature is carried out Test, verifies to currently tested low-power consumption bluetooth equipment state according to the test script that writes in advance, to be confirmed whether to lead to Cross test.
2. the system as claimed in claim 1, it is characterised in that:The test software is worked out using TCL language.
3. the system as claimed in claim 1, it is characterised in that:After feature to be measured chosen by 4.0 adapter of the bluetooth, to the spy Value indicative sends test instruction and is tested, and whether the function of testing tested low-power consumption bluetooth equipment is normal.
4. the system as claimed in claim 1, it is characterised in that:By working out different test scripts, control in test software Low-power consumption bluetooth equipment carries out difference in functionality test according to command request, while checking that tested low-power consumption bluetooth device talk is No normal.
CN201610891729.1A 2016-10-13 2016-10-13 Low-power consumption bluetooth test system based on TCL Pending CN106502886A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610891729.1A CN106502886A (en) 2016-10-13 2016-10-13 Low-power consumption bluetooth test system based on TCL

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610891729.1A CN106502886A (en) 2016-10-13 2016-10-13 Low-power consumption bluetooth test system based on TCL

Publications (1)

Publication Number Publication Date
CN106502886A true CN106502886A (en) 2017-03-15

Family

ID=58293910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610891729.1A Pending CN106502886A (en) 2016-10-13 2016-10-13 Low-power consumption bluetooth test system based on TCL

Country Status (1)

Country Link
CN (1) CN106502886A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107942158A (en) * 2017-11-01 2018-04-20 北京中电华大电子设计有限责任公司 A kind of download apparatus and test method of bluetooth SIM products
CN109495870A (en) * 2018-07-24 2019-03-19 华为机器有限公司 The method and apparatus of bluetooth test

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638603A (en) * 2011-02-11 2012-08-15 上海闻泰电子科技有限公司 Method for automatically testing power consumption of mobile phone through simulation key
KR101280287B1 (en) * 2011-12-16 2013-07-01 국방과학연구소 Embeded software test equipment and operating method thereof
GB2524737A (en) * 2014-03-31 2015-10-07 Kainos Worksmart Ltd A system and method for testing a workflow
CN105162532A (en) * 2015-09-28 2015-12-16 中山市天键电声有限公司 PC end Bluetooth testing method
CN105786698A (en) * 2014-12-25 2016-07-20 展讯通信(上海)有限公司 Script-based power consumption automatic test system for mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638603A (en) * 2011-02-11 2012-08-15 上海闻泰电子科技有限公司 Method for automatically testing power consumption of mobile phone through simulation key
KR101280287B1 (en) * 2011-12-16 2013-07-01 국방과학연구소 Embeded software test equipment and operating method thereof
GB2524737A (en) * 2014-03-31 2015-10-07 Kainos Worksmart Ltd A system and method for testing a workflow
CN105786698A (en) * 2014-12-25 2016-07-20 展讯通信(上海)有限公司 Script-based power consumption automatic test system for mobile terminal
CN105162532A (en) * 2015-09-28 2015-12-16 中山市天键电声有限公司 PC end Bluetooth testing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107942158A (en) * 2017-11-01 2018-04-20 北京中电华大电子设计有限责任公司 A kind of download apparatus and test method of bluetooth SIM products
CN109495870A (en) * 2018-07-24 2019-03-19 华为机器有限公司 The method and apparatus of bluetooth test
CN109495870B (en) * 2018-07-24 2022-02-01 华为机器有限公司 Bluetooth test method and device

Similar Documents

Publication Publication Date Title
CN101706753B (en) Unit testing framework and method based on Perl
CN102597964B (en) A computing device for enabling concurrent testing
CN104062969A (en) Hardware-in-loop simulation testing system and testing method for automobile
CN105930274B (en) A kind of automated testing method and system
CN105138386A (en) Logic design verification continuous integration platform based on Jenkins and vManager
CN104656632A (en) Integrated interface test system and detection method for aircraft semi-physical simulation tests
CN104778124A (en) Automatic testing method for software application
CN103123598B (en) Online debugging implementation method of compiling soft programmable logic controller (PLC)
CN101630258A (en) Embedded Linux software integration development system on Windows platform and construction method thereof
CN106646315B (en) A kind of Auto-Test System and its test method of digital measuring instruments
CN104268074A (en) Application software online debugging method based on DCS
CN105760296A (en) Automation testing control method, device and terminal
CN102214132A (en) Method and device for debugging Loongson central processing unit (CPU), south bridge chip and north bridge chip
CN103294596A (en) Early warning method for contract-type software fault based on program invariants
CN105301481A (en) Circuit testing method and applicable testing system
CN204480344U (en) A kind of coal preparation plant portable wireless logging
CN102707712B (en) Electronic equipment fault diagnosis method and system
CN106502886A (en) Low-power consumption bluetooth test system based on TCL
KR20210113155A (en) LED display update configuration method, receiving card, LED display module and LED display
CN104281918A (en) Safety self-evaluation system and method for PDA equipment of power transmission and transformation condition monitoring system
CN105093096B (en) A kind of FPGA test device
CN105093001A (en) Automatic analysis test system for characteristics of high-speed PLL and clock chip
CN103399813B (en) A kind of embedded system off-line trace analysis method based on Trace information
CN205091732U (en) Automatic switching device for USB interface
CN110674623A (en) Reading system and method for modeled embedded part positioning information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170315

WD01 Invention patent application deemed withdrawn after publication