CN111309587A - Android-based automatic factory testing method - Google Patents
Android-based automatic factory testing method Download PDFInfo
- Publication number
- CN111309587A CN111309587A CN201910091592.5A CN201910091592A CN111309587A CN 111309587 A CN111309587 A CN 111309587A CN 201910091592 A CN201910091592 A CN 201910091592A CN 111309587 A CN111309587 A CN 111309587A
- Authority
- CN
- China
- Prior art keywords
- module
- app
- testing
- test
- sensor
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
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)
- Mobile Radio Communication Systems (AREA)
- Position Fixing By Use Of Radio Waves (AREA)
Abstract
The invention discloses an automatic factory testing method based on Android pre-charging, which comprises a testing APP, wherein the testing APP is automatically started by the Android after the tested device is powered on, the testing APP automatically executes the tests of a GPS module, a 4G module, a sensor and an FM module in sequence, and then a report is generated on the testing result. According to the invention, by utilizing the self mechanism of the Android system, the test APP is set for automatic detection, and then the test report is displayed on the screen of the equipment in the form of characters and two-dimensional codes, so that the detection of each equipment can be automatically completed, the problem of products is conveniently identified, and the shipment efficiency is improved. Meanwhile, the equipment with problems can be checked in a targeted manner, and the materials of the equipment can be conveniently and regularly tracked, so that the quality of the product is integrally improved.
Description
Technical Field
The invention belongs to a production method of intelligent equipment, and particularly relates to an Android-based automatic factory testing method.
Background
Most of various motor vehicles in the existing society have certain intelligent functions, and the intelligent functions are generally realized based on Android equipment. Therefore, the yield of the customized Android device is greatly increased. And the mass shipment of the Android equipment needs a large amount of manpower and time to test in order to ensure the shipment reliability of each piece of equipment. However, in recent years, labor cost is greatly increased, and the requirement for equipment shipment efficiency is also higher and higher. Therefore, the cost of the Android equipment is greatly increased through one-by-one test, and the shipment efficiency is reduced. Random spot check can not ensure the reliability of the equipment, and most Android equipment is used for vehicles, and the Android equipment has higher and higher authority in the intelligent transportation field, so that the equipment which can not ensure the reliability can not obtain the market.
Disclosure of Invention
The invention aims to provide an Android-based automatic factory testing method capable of automatically detecting main module functions of Android equipment aiming at the defects of the prior art.
In order to achieve the purpose, the Android-based automatic factory testing method comprises a testing APP, wherein the Android automatic starting testing APP is arranged on a device to be tested after power is on, the testing APP automatically executes tests of a GPS module, a 4G module, a sensor and an FM module in sequence, and then a test result is generated into a report;
the GPS module test comprises the following steps: the test APP firstly transmits the type of the position manager to a system service method to obtain a positioning manager of the system, registers the GPS monitor through the positioning manager, an interface method is used in the monitor to call a bottom layer driver to send a serial port receiving instruction to a GPS module, the GPS module sends the acquired information to a serial port end of a CPU through a serial port, the bottom layer driver uploads data received by the port to the GPS monitor, a test APP searches for needed data in the data sent by the GPS module through character string retrieval, where output statements of $ GPGGA, $ GPRMC and $ GPVTG are required, analyzing the initial statement of $ GPGGA to judge the usable satellite number and the positioning precision, screening out the useful satellite number and the positioning precision information after the test APP receives all the transmitted information, comparing the screened useful information with a specified index to judge whether the GPS module meets the requirement;
the communication module test comprises the following steps: the testing APP firstly acquires a telephone manager of a system by a method of transmitting a telephone service type to the system service, registers a monitor through the telephone manager, and realizes a call-back method of an interface in the monitor to acquire the strength of LTE and GSM signals, when the values of the LTE and GSM signal strength are both greater than a calibration value, the 4G module is normal, otherwise, the 4G module is abnormal; the 4G network bandwidth is tested by connecting to a specified server port in a socket TCP programming mode, uploading data stored in a system catalog to a server, downloading the data stored in the server to the system catalog, and testing whether the time required for completing uploading and downloading respectively is in a specified range to judge whether a 4G module meets the application requirement; the method comprises the steps that a wifi module is tested, firstly, a wifi manager object is obtained from system service, wifi is started through the wifi manager object, a configured network is connected, whether link is successful or not is checked, and whether wifi is normal or not is judged;
the sensor test comprises the following steps: the method comprises the steps that the tested sensor types are an acceleration sensor, a gyroscope sensor and an environmental sensor, an APP is tested to obtain sensor service, then the acceleration sensor type, the gyroscope sensor type and the environmental sensor type are respectively transmitted to the service to judge whether the sensors exist, if yes, the sensors and corresponding monitors are registered, meanwhile, a call-back method of interface exposure is realized in the monitors and used for monitoring original sensor data, when the Android bottom layer driver reads that the data register value of the sensors changes, the call-back method in the monitors receives data transmitted from the bottom layer, and if the call-back method does not receive the data all the time, the sensors can be judged to be faulty; if the callback method receives the data, further judging whether the value exceeds the calibration range of the data manual to judge whether the sensor is normal;
the FM module test comprises the following steps: the testing APP obtains an interface for operating the radio service through the radio service using android, the bottom layer drive of the FM is called by using a local method of the interface to further operate the FM module, the FM is firstly respectively set to a series of pre-recorded radio frequencies, then registers related to signal strength and signal to noise ratio are read, and whether the signal strength and the signal to noise ratio meet requirements on the frequencies is tested.
The further scheme is that after the test APP is tested, the test result is recorded in a document to form a report, the test structure is displayed on a screen in the form of the document and a two-dimensional code, and a tester directly reads the report through a code reader.
Compared with the prior art, the method and the device have the advantages that the self mechanism of the Android system is utilized, the test APP is set for automatic detection, and then the test report is displayed on the screen of the equipment in the form of characters and two-dimensional codes, so that the detection of each equipment can be automatically completed, the product is conveniently identified, and the delivery efficiency is improved. Meanwhile, the equipment with problems can be checked in a targeted manner, and the materials of the equipment can be conveniently and regularly tracked, so that the quality of the product is integrally improved.
Detailed Description
The technical scheme in the embodiment of the invention is clearly and completely described below.
Example 1.
The Android-based automatic factory testing method described in this embodiment includes testing an APP, setting a powered-on Android automatic start testing APP on a device to be tested, automatically executing tests of a GPS module, a 4G module, a sensor and an FM module by the testing APP in sequence, and generating a report of a testing result;
the GPS module test comprises the following steps: the test APP firstly transmits the type of the position manager to a system service method to obtain a positioning manager of the system, registers the GPS monitor through the positioning manager, an interface method is used in the monitor to call a bottom layer driver to send a serial port receiving instruction to a GPS module, the GPS module sends the acquired information to a serial port end of a CPU through a serial port, the bottom layer driver uploads data received by the port to the GPS monitor, a test APP searches for needed data in the data sent by the GPS module through character string retrieval, where output statements of $ GPGGA, $ GPRMC and $ GPVTG are required, analyzing the initial statement of $ GPGGA to judge the usable satellite number and the positioning precision, screening out the useful satellite number and the positioning precision information after the test APP receives all the transmitted information, comparing the screened useful information with a specified index to judge whether the GPS module meets the requirement;
the communication module test comprises the following steps: the testing APP firstly acquires a telephone manager of a system by a method of transmitting a telephone service type to the system service, registers a monitor through the telephone manager, and realizes a call-back method of an interface in the monitor to acquire the strength of LTE and GSM signals, when the values of the LTE and GSM signal strength are both greater than a calibration value, the 4G module is normal, otherwise, the 4G module is abnormal; the 4G network bandwidth is tested by connecting to a specified server port in a socket TCP programming mode, uploading data stored in a system catalog to a server, downloading the data stored in the server to the system catalog, and testing whether the time required for completing uploading and downloading respectively is in a specified range to judge whether a 4G module meets the application requirement; the method comprises the steps that a wifi module is tested, firstly, a wifi manager object is obtained from system service, wifi is started through the wifi manager object, a configured network is connected, whether link is successful or not is checked, and whether wifi is normal or not is judged;
the sensor test comprises the following steps: the method comprises the steps that the tested sensor types are an acceleration sensor, a gyroscope sensor and an environmental sensor, an APP is tested to obtain sensor service, then the acceleration sensor type, the gyroscope sensor type and the environmental sensor type are respectively transmitted to the service to judge whether the sensors exist, if yes, the sensors and corresponding monitors are registered, meanwhile, a call-back method of interface exposure is realized in the monitors and used for monitoring original sensor data, when the Android bottom layer driver reads that the data register value of the sensors changes, the call-back method in the monitors receives data transmitted from the bottom layer, and if the call-back method does not receive the data all the time, the sensors can be judged to be faulty; if the callback method receives the data, further judging whether the value exceeds the calibration range of the data manual to judge whether the sensor is normal;
the FM module test comprises the following steps: the testing APP obtains an interface for operating the radio service through the radio service using android, the bottom layer drive of the FM is called by using a local method of the interface to further operate the FM module, the FM is firstly respectively set to a series of pre-recorded radio frequencies, then registers related to signal strength and signal to noise ratio are read, and whether the signal strength and the signal to noise ratio meet requirements on the frequencies is tested.
And simultaneously, after the test is finished, the test APP records the test result into a document to form a report, the test structure is displayed on a screen in the form of the document and a two-dimensional code, and a detector directly reads the report through a code reader. The abnormal equipment can be directly screened on the premise of reading the two-dimensional code through an automatic machine, so that the full automatic production is achieved.
Claims (2)
1. An Android-based automatic factory testing method comprises an APP test, and is characterized in that the APP test is automatically started by Android after power-on is set on a device to be tested, the APP test automatically executes tests of a GPS module, a 4G module, a sensor and an FM module in sequence, and then a test result is generated into a report;
the GPS module test comprises the following steps: the test APP firstly transmits the type of the position manager to a system service method to obtain a positioning manager of the system, registers the GPS monitor through the positioning manager, an interface method is used in the monitor to call a bottom layer driver to send a serial port receiving instruction to a GPS module, the GPS module sends the acquired information to a serial port end of a CPU through a serial port, the bottom layer driver uploads data received by the port to the GPS monitor, a test APP searches for needed data in the data sent by the GPS module through character string retrieval, where output statements of $ GPGGA, $ GPRMC and $ GPVTG are required, analyzing the initial statement of $ GPGGA to judge the usable satellite number and the positioning precision, screening out the useful satellite number and the positioning precision information after the test APP receives all the transmitted information, comparing the screened useful information with a specified index to judge whether the GPS module meets the requirement;
the communication module test comprises the following steps: the testing APP firstly acquires a telephone manager of a system by a method of transmitting a telephone service type to the system service, registers a monitor through the telephone manager, and realizes a call-back method of an interface in the monitor to acquire the strength of LTE and GSM signals, when the values of the LTE and GSM signal strength are both greater than a calibration value, the 4G module is normal, otherwise, the 4G module is abnormal; the 4G network bandwidth is tested by connecting the bandwidth to a specified server port in a socket TCP programming mode, uploading data stored in a system catalog to a server, downloading the data stored in the server to the system catalog, and testing whether the time required for completing uploading and downloading respectively is in a specified range to judge whether a 4G module meets the application requirement; the method comprises the steps that a wifi module is tested, firstly, a wifi manager object is obtained from system service, wifi is started through the wifi manager object, a configured network is connected, whether link is successful or not is checked, and whether wifi is normal or not is judged;
the sensor test comprises the following steps: the method comprises the steps that the tested sensor types are an acceleration sensor, a gyroscope sensor and an environmental sensor, an APP is tested to obtain sensor service, then the acceleration sensor type, the gyroscope sensor type and the environmental sensor type are respectively transmitted to the service to judge whether the sensors exist, if yes, the sensors and corresponding monitors are registered, meanwhile, a call-back method of interface exposure is realized in the monitors and used for monitoring original sensor data, when the Android bottom layer driver reads that the data register value of the sensors changes, the call-back method in the monitors receives data transmitted from the bottom layer, and if the call-back method does not receive the data all the time, the sensors can be judged to be faulty; if the callback method receives the data, further judging whether the value exceeds the calibration range of the data manual to judge whether the sensor is normal;
the FM module test comprises the following steps: the testing APP obtains an interface for operating the radio service through the radio service using android, the bottom layer drive of the FM is called by using a local method of the interface to further operate the FM module, the FM is firstly respectively set to a series of pre-recorded radio frequencies, then registers related to signal strength and signal to noise ratio are read, and whether the signal strength and the signal to noise ratio meet requirements on the frequencies is tested.
2. The Android-based automatic factory testing method of claim 1, wherein the testing APP records the testing result into a document to form a report after the testing is completed, the testing structure is displayed on a screen in the form of the document and a two-dimensional code, and a tester reads the report directly through a code reader.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910091592.5A CN111309587B (en) | 2019-01-30 | 2019-01-30 | Android-based automatic factory testing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910091592.5A CN111309587B (en) | 2019-01-30 | 2019-01-30 | Android-based automatic factory testing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111309587A true CN111309587A (en) | 2020-06-19 |
CN111309587B CN111309587B (en) | 2023-06-27 |
Family
ID=71150631
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910091592.5A Active CN111309587B (en) | 2019-01-30 | 2019-01-30 | Android-based automatic factory testing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111309587B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112804704A (en) * | 2020-12-18 | 2021-05-14 | 珠海格力电器股份有限公司 | Automatic WIFI module test equipment and test method |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102333334A (en) * | 2011-08-31 | 2012-01-25 | 华南理工大学 | Mobile network quality automatic monitoring system and method for GSM and 3G |
US20120202551A1 (en) * | 2011-02-04 | 2012-08-09 | Takwak GmBh | Systems and Methods for Group Information Server Among Mobile Devices |
CN103501505A (en) * | 2013-09-18 | 2014-01-08 | 福州瑞芯微电子有限公司 | System capable of automatically testing WIFI module on Android device |
CN103546124A (en) * | 2013-10-17 | 2014-01-29 | 北京理工大学 | Device for acquiring signal triggering moment value |
CN104503875A (en) * | 2014-12-08 | 2015-04-08 | 深圳市阿龙电子有限公司 | Test method and test system of Android device |
CN104679631A (en) * | 2015-03-23 | 2015-06-03 | 重庆蓝岸通讯技术有限公司 | Testing method and system for equipment based on Android system |
CN105954665A (en) * | 2016-01-27 | 2016-09-21 | 上海华测导航技术股份有限公司 | Multi-mode and multi-frequency OEM plate initialization speed test method |
CN106021095A (en) * | 2016-05-06 | 2016-10-12 | 北京邮电大学 | A push mechanism-based Android application automated testing method |
CN106161134A (en) * | 2015-04-21 | 2016-11-23 | 腾讯科技(深圳)有限公司 | Mobile terminal automatic testing method and device and mobile terminal |
CN109151466A (en) * | 2018-06-28 | 2019-01-04 | 苏州乐轩科技有限公司 | A kind of android system platform clectronic equipment utility function automatic test approach |
-
2019
- 2019-01-30 CN CN201910091592.5A patent/CN111309587B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120202551A1 (en) * | 2011-02-04 | 2012-08-09 | Takwak GmBh | Systems and Methods for Group Information Server Among Mobile Devices |
CN102333334A (en) * | 2011-08-31 | 2012-01-25 | 华南理工大学 | Mobile network quality automatic monitoring system and method for GSM and 3G |
CN103501505A (en) * | 2013-09-18 | 2014-01-08 | 福州瑞芯微电子有限公司 | System capable of automatically testing WIFI module on Android device |
CN103546124A (en) * | 2013-10-17 | 2014-01-29 | 北京理工大学 | Device for acquiring signal triggering moment value |
CN104503875A (en) * | 2014-12-08 | 2015-04-08 | 深圳市阿龙电子有限公司 | Test method and test system of Android device |
CN104679631A (en) * | 2015-03-23 | 2015-06-03 | 重庆蓝岸通讯技术有限公司 | Testing method and system for equipment based on Android system |
CN106161134A (en) * | 2015-04-21 | 2016-11-23 | 腾讯科技(深圳)有限公司 | Mobile terminal automatic testing method and device and mobile terminal |
CN105954665A (en) * | 2016-01-27 | 2016-09-21 | 上海华测导航技术股份有限公司 | Multi-mode and multi-frequency OEM plate initialization speed test method |
CN106021095A (en) * | 2016-05-06 | 2016-10-12 | 北京邮电大学 | A push mechanism-based Android application automated testing method |
CN109151466A (en) * | 2018-06-28 | 2019-01-04 | 苏州乐轩科技有限公司 | A kind of android system platform clectronic equipment utility function automatic test approach |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112804704A (en) * | 2020-12-18 | 2021-05-14 | 珠海格力电器股份有限公司 | Automatic WIFI module test equipment and test method |
Also Published As
Publication number | Publication date |
---|---|
CN111309587B (en) | 2023-06-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106060863B (en) | Wireless communication system with integrated location-based measurements for diagnostic and performance optimization | |
CN107113070B (en) | On-vehicle device and on-vehicle device diagnostic system | |
US20060261933A1 (en) | Vehicle performance data communication link | |
US10685556B2 (en) | System and method for vehicle inspection | |
CN102092247A (en) | Tire pressure monitoring apparatus and method | |
CN111506047B (en) | Vehicle diagnosis method, device and storage medium | |
CN109274807B (en) | Test method, device and system | |
US20110071724A1 (en) | System and method for data collection and messaging | |
CN110632428A (en) | Sensitivity testing method and module for locomotive signal vehicle-mounted equipment | |
CN111385762B (en) | Vehicle abnormity reporting method and device, shared vehicle and storage medium | |
CN103906091A (en) | Detecting method and system for wireless AP performance in WIFI | |
US20110093160A1 (en) | Vehicle check in method | |
CN115810227B (en) | Method and system for rapidly identifying abnormality of vehicle-mounted equipment | |
CN115158400A (en) | Urban rail vehicle-mounted equipment and testing method thereof | |
CN111309587B (en) | Android-based automatic factory testing method | |
CN110167058B (en) | Interference frequency identification method, mobile terminal, log management method and server | |
CN111210101A (en) | Vehicle management device, exhaust gas analysis system, storage medium, and vehicle management method | |
JP2007174176A (en) | Unit and method for testing communication terminal | |
CN105510930A (en) | Ground marking system and method based on Beidou satellite | |
CN113075485A (en) | Online automatic detection method for locomotive signal vehicle-mounted equipment | |
CN114553331B (en) | Method, device and storage medium for realizing system self-checking for radio monitoring station | |
CN111901470B (en) | Terminal testing method and system | |
CN115267841A (en) | Fault detection method and device and GNSS positioning equipment | |
CN115052337A (en) | Novel intelligent head-mounted terminal inspection system based on AI-Beacon | |
CN113886164A (en) | Bluetooth product testing method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | 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 |