CN106507407B - The cross-platform test macro of low-power consumption bluetooth and method based on windows system - Google Patents

The cross-platform test macro of low-power consumption bluetooth and method based on windows system Download PDF

Info

Publication number
CN106507407B
CN106507407B CN201610847973.8A CN201610847973A CN106507407B CN 106507407 B CN106507407 B CN 106507407B CN 201610847973 A CN201610847973 A CN 201610847973A CN 106507407 B CN106507407 B CN 106507407B
Authority
CN
China
Prior art keywords
client
server
test
low energy
energy device
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.)
Active
Application number
CN201610847973.8A
Other languages
Chinese (zh)
Other versions
CN106507407A (en
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 CN201610847973.8A priority Critical patent/CN106507407B/en
Publication of CN106507407A publication Critical patent/CN106507407A/en
Application granted granted Critical
Publication of CN106507407B publication Critical patent/CN106507407B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of cross-platform test macros of the low-power consumption bluetooth based on windows system, comprising: one has bluetooth low energy device, and installs the PC of Windows10 operating system, and the PC is as server;The PC of Windows operating system of one installation in addition to Windows10 operating system, the PC is as client;The client completes the communication test between tested bluetooth low energy device by network comtrol server, and test result is shown on the client.The invention also discloses a kind of methods tested using the system.The present invention can test bluetooth low energy device in operating system before Windows8/8.1 version.

Description

The cross-platform test macro of low-power consumption bluetooth and method based on windows system
Technical field
The present invention relates to the fields low-power consumption bluetooth (BLE), blue more particularly to a kind of low-power consumption based on windows system The cross-platform test macro of tooth.The invention further relates to a kind of methods tested using the system.
Background technique
With the arrival of information age, always without quarter, there are in people's lives for Bluetooth technology.It is passed improving Defeated speed and on the basis of stablizing, bluetooth sig formal release bluetooth core specifications 4.0 2010 again.It includes classical blue Tooth, High Speed Bluetooth and low-power consumption bluetooth agreement.Similar to the bluetooth low energy devices such as smartwatch just like with people's lives It is closely coupled.The test of low-power consumption bluetooth also has become the essential work of bluetooth engineer.
Since bluetooth technology with low power consumption was born in 2010, can not in the pervious system of Windows8/8.1 version Support low-power consumption bluetooth.And in Windows series, WindowsXP, Window7 radix is quite huge.If test can only be It is tested in the operating system of Windows8/8.1 or more, that does not just have versatility and replicability for test equipment.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of cross-platform tests of the low-power consumption bluetooth based on windows system System can test bluetooth low energy device in operating system before Windows8/8.1 version;For this purpose, the present invention also provides A method of it is tested using the system.
In order to solve the above technical problems, the cross-platform test macro of the low-power consumption bluetooth of the invention based on windows system, Include:
One has bluetooth low energy device, and installs the PC of Windows10 operating system, and the PC is as server;
The PC of one installation Window XP or Window7 operating system, the PC is as client;
The server scans bluetooth low energy device, obtains all bluetooth low energy device titles;It is selected in client Bluetooth low energy device title;The server chooses bluetooth low energy device to be measured, the GATT service of its acquisition is traversed, in visitor Family end selects GATT service;The server chooses GATT to be measured to service, and traverses the implementor name characteristic value of its acquisition;In client Select implementor name characteristic value;The server chooses Devices to test name characteristic value;In client input test data;The service Device carries out data loopback test;The server calculates the bit error rate, packet loss, winding rate and the stability of communication;
The client completes the communication test between tested bluetooth low energy device by network comtrol server, surveys Test result is shown on the client.
The method tested using above system, is included the following steps:
Step 1: server scans bluetooth low energy device, all bluetooth low energy device titles are obtained;It is selected in client Select bluetooth low energy device title;
Step 2: the server chooses bluetooth low energy device to be measured, GATT (the general-purpose attribute configuration of its acquisition is traversed File) service, in client selection GATT service;
Step 3: the server chooses GATT to be measured to service, the implementor name characteristic value of its acquisition is traversed;It is selected in client Select implementor name characteristic value;
Step 4: the server chooses Devices to test name characteristic value;In client input test data;
Step 5: the server carries out data loopback test;
Step 6: the server calculates the bit error rate, packet loss, winding rate and the stability of communication;It is aobvious in client Show test result.
The operating system version of bench device is extremely more, is nearly all the Windows operating system of Microsoft, Windows series In it is most commonly used be exactly Window XP, Window7, Windows8/8.1 and newest Windows10 these versions.And Low-power consumption bluetooth is born in newer bluetooth 4.0 specification, and the operating system before Windows8/8.1 does not support low-power consumption The use of bluetooth, so having to consider the mode that the Windows system of Versions can also be supported when designing cross-platform scheme.
Present invention employs the Socket (friendships that two programs on network pass through a two-way communication connection realization data Change) method, PC connection one installation for installing WindowXP or Window7 is made by udp protocol (User Datagram Protocol) The PC of Windows10 installs the PC of WindowXP or Window7 as client using the PC of installation Windows10 as server End, the i.e. equipment of installation Window XP or Window7 pass through using the PC of installation Windows10 as the carrier of test equipment Windows10 supports the characteristics of bluetooth low energy device to achieve the purpose that communication.After client chooses test feature value (Characteristic ID), command server is tested, and after the test is finished, all data is carried out to count last hair It is shown in test software back to client.Very good solution of the present invention Window XP and Window7 do not support that low-power consumption is blue Tooth the problem of can not be tested, greatly improves the PC utilization rate for carrying installation early version operating system.
The present invention can accomplish the full-automation of entire test process, due to the characteristic of network linking, it might even be possible to long-range It is tested, as long as server and client side has network linking not need in the same place.Entire test process does not need Manual operation, has full-automatic, easy to operate, tests convenient advantage.In addition, also there is fabulous scalability, almost It can be used in any other systems (MAC OS, Linux) for supporting udp protocol.
Detailed description of the invention
Present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments:
Attached drawing 1 is using the cross-platform test system and test flow diagram of low-power consumption bluetooth based on windows system.
Specific embodiment
The cross-platform test macro of the low-power consumption bluetooth based on windows system, to install by udp protocol The equipment that the equipment of Window XP or Window7 connects an installation Windows10, will install the equipment of Windows10 as Server will install the equipment of Window XP or Window7 as client, the equipment of installation Window XP or Window7 Using installation Windows10 equipment be used as the carrier of test equipment, by Windows10 support bluetooth low energy device the characteristics of Achieve the purpose that communication.Client successively selects bluetooth low energy device name, service number, characteristic value, and server is according to client Selection successively execute and choose, finally tested after devices selected name characteristic value according to client instructions, after the completion of test All data statistics are completed on the server, and all data are finally sent back to client in test software and are shown.
Server apparatus example code is as follows
Client device example code is as follows
In conjunction with shown in attached drawing 1, surveyed using the cross-platform test macro of the low-power consumption bluetooth based on windows system The method of examination, includes the following steps:
Step 1, server scan bluetooth low energy device, obtain all bluetooth low energy device titles;It is selected in client Select bluetooth low energy device title.
Step 2, the server choose bluetooth low energy device to be measured, the GATT service of its acquisition are traversed, in client Select GATT service.
Step 3, the server choose GATT to be measured to service, and traverse the implementor name characteristic value of its acquisition;It is selected in client Select implementor name characteristic value.
Step 4, the server choose Devices to test name characteristic value;In client input test data.
Step 5, the server carry out data loopback test.
Step 6, the server calculate the bit error rate, packet loss, winding rate and the stability of communication;It is shown in client Test result.
The data loopback test refers to sending and receiving data test of point-to-point each progress between equipment.
When without using the present invention, it is not available Window XP and Window7 etc. and does not relatively early support low-power consumption bluetooth to operate The PC of system carries out the test of low-power consumption bluetooth.Greatly waste limited test resource.And after using the present invention, not only may be used With the test of the carry out bluetooth low energy device of spanning operation system platform, and due to the characteristic of network connection, net can be passed through Network remotely carries out this class testing, and time and money is greatly saved, and provides more reliable guarantee for product design research and development.
Above by specific embodiment and embodiment, invention is explained in detail, but these are not composition pair Limitation of the invention.Without departing from the principles of the present invention, those skilled in the art can also make many deformations and change Into these also should be regarded as protection scope of the present invention.

Claims (4)

1. a kind of cross-platform test macro of low-power consumption bluetooth based on windows system characterized by comprising
One has bluetooth low energy device, and installs the PC of Windows10 operating system, and the PC is as server;
The PC of one installation Window XP or Window7 operating system, the PC is as client;
The server scans bluetooth low energy device, obtains all bluetooth low energy device titles;Low function is selected in client Consume bluetooth device name;The server chooses bluetooth low energy device to be measured, the GATT service of its acquisition is traversed, in client Select GATT service;The server chooses GATT to be measured to service, and traverses the implementor name characteristic value of its acquisition;It is selected in client Implementor name characteristic value;The server chooses Devices to test name characteristic value;In client input test data;The server into Row data loopback test;The server calculates the bit error rate, packet loss, winding rate and the stability of communication;
The client completes the communication test between tested bluetooth low energy device, test knot by network comtrol server Fruit shows on the client.
2. the system as claimed in claim 1, it is characterised in that: the system makes the client and clothes by udp protocol Business device connection, the client support bluetooth low energy device using server as the carrier of test equipment, by Windows10 The characteristics of achieve the purpose that communication.
3. system as claimed in claim 1 or 2, it is characterised in that: the client successively select bluetooth low energy device name, Service number and implementor name characteristic value, server are successively executed according to the selection of client and are chosen, finally in devices selected name feature It is tested after value according to client instructions, completes all data statistics on the server after the completion of test, all data are sent out It is shown in test software back to client.
4. a kind of method tested using such as system as claimed in any one of claims 1-3, which is characterized in that including as follows Step:
Step 1: server scans bluetooth low energy device, all bluetooth low energy device titles are obtained;It is selected in client low Power consumption bluetooth device name;
Step 2: the server chooses bluetooth low energy device to be measured, the GATT service of its acquisition is traversed, is selected in client GATT service;
Step 3: the server chooses GATT to be measured to service, the implementor name characteristic value of its acquisition is traversed;It is set in client selection Standby name characteristic value;
Step 4: the server chooses Devices to test name characteristic value;In client input test data;
Step 5: the server carries out data loopback test;
Step 6: the server calculates the bit error rate, packet loss, winding rate and the stability of communication;It shows and surveys in client Test result.
CN201610847973.8A 2016-09-23 2016-09-23 The cross-platform test macro of low-power consumption bluetooth and method based on windows system Active CN106507407B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610847973.8A CN106507407B (en) 2016-09-23 2016-09-23 The cross-platform test macro of low-power consumption bluetooth and method based on windows system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610847973.8A CN106507407B (en) 2016-09-23 2016-09-23 The cross-platform test macro of low-power consumption bluetooth and method based on windows system

Publications (2)

Publication Number Publication Date
CN106507407A CN106507407A (en) 2017-03-15
CN106507407B true CN106507407B (en) 2019-08-13

Family

ID=58290382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610847973.8A Active CN106507407B (en) 2016-09-23 2016-09-23 The cross-platform test macro of low-power consumption bluetooth and method based on windows system

Country Status (1)

Country Link
CN (1) CN106507407B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021119922A1 (en) * 2019-12-16 2021-06-24 深圳市汇顶科技股份有限公司 Bluetooth low energy ble product testing method and ble apparatus
CN113672526B (en) * 2021-08-24 2024-02-13 深圳忆联信息系统有限公司 Method and device for acquiring triggering times of power-down protection of solid state disk and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1384616A (en) * 2001-04-30 2002-12-11 晶讯科技股份有限公司 Long-distance blue-teeth data transmitting method
CN1758573A (en) * 2004-10-07 2006-04-12 乐金电子(中国)研究开发中心有限公司 Testing method for blue-tooth function of ISDN phone
US8180856B2 (en) * 2006-09-14 2012-05-15 Ixia Testing a network
US8538414B1 (en) * 2007-07-17 2013-09-17 Google Inc. Mobile interaction with software test cases
CN105512029A (en) * 2015-11-27 2016-04-20 北京奇虎科技有限公司 Method, server and system for testing intelligent terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1384616A (en) * 2001-04-30 2002-12-11 晶讯科技股份有限公司 Long-distance blue-teeth data transmitting method
CN1758573A (en) * 2004-10-07 2006-04-12 乐金电子(中国)研究开发中心有限公司 Testing method for blue-tooth function of ISDN phone
US8180856B2 (en) * 2006-09-14 2012-05-15 Ixia Testing a network
US8538414B1 (en) * 2007-07-17 2013-09-17 Google Inc. Mobile interaction with software test cases
CN105512029A (en) * 2015-11-27 2016-04-20 北京奇虎科技有限公司 Method, server and system for testing intelligent terminal

Also Published As

Publication number Publication date
CN106507407A (en) 2017-03-15

Similar Documents

Publication Publication Date Title
JP6387344B2 (en) System and method for executing a user-defined instrument command sequence using multiple hardware and analysis modules
CN103812726B (en) Automated testing method and device for data communication equipment
CN104424092B (en) The page loads duration method of testing and device
CN103544100B (en) Method of testing, system and the client of portable data processing equipment application program
US10182273B2 (en) Configurable secure mobile tool for AMI and AMR metering systems
CN105094783A (en) Method and device for testing Android application stability
CN101882108A (en) Embedded software automatic test system and method thereof
CN104331282A (en) Reconfigurable comprehensive development and test system of wireless product
CN105302706B (en) Applied program testing method and device
CN103974312A (en) WLAN (wireless local area network) equipment testing method, device and system
CN106507407B (en) The cross-platform test macro of low-power consumption bluetooth and method based on windows system
CN109408309A (en) The test method and device of multiple terminals
CN102291274A (en) System and method for realizing automatic adaptation of network testing instrument
CN104462626A (en) RFIF verification platform based on VMM verification methodology and implementation method
CN103077080B (en) Based on parallel program performance collecting method and the device of high performance platform
CN102750143A (en) Digital signal processing (DSP) developing method based on matrix laboratory (MATLAB) component object model (COM) component calling
CN106713069A (en) System resource monitoring and bottleneck identification method
Lim et al. Distributed and synchronized measurements with FlockLab
CN103596645B (en) Method, device and equipment for terminal debugging
CN105306309A (en) Automated testing method of monitoring of repeater
Borlenghi et al. An FPGA-accelerated testbed for hardware component development in MIMO wireless communication systems
Kostiainen et al. Framework for comparative usability testing of distributed applications
CN112911629A (en) Network testing method and device and computer readable storage medium
CN103686774A (en) Wireless network testing method with one controller controlling multiple testing terminals
CN107577610A (en) Automate compatibility test method

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
GR01 Patent grant
GR01 Patent grant