CN111309587B - Android-based automatic factory testing method - Google Patents
Android-based automatic factory testing method Download PDFInfo
- Publication number
- CN111309587B CN111309587B CN201910091592.5A CN201910091592A CN111309587B CN 111309587 B CN111309587 B CN 111309587B CN 201910091592 A CN201910091592 A CN 201910091592A CN 111309587 B CN111309587 B CN 111309587B
- Authority
- CN
- China
- Prior art keywords
- testing
- module
- sensor
- app
- data
- 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
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
Abstract
The invention discloses an Android-based automatic factory testing method for pre-charging, which comprises the steps of testing APP, setting an Android automatic starting testing APP on tested equipment after power-on, automatically executing testing 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. According to the invention, by using 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 can be conveniently identified, and the shipment efficiency is improved. Meanwhile, equipment with problems can be subjected to targeted investigation, and materials of the equipment can be conveniently tracked regularly, so that the quality of products is improved on the whole.
Description
Technical Field
The invention belongs to a production method of intelligent equipment, in particular 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. Thus greatly increasing the yield of customized Android devices. And the Android equipment is shipped in batches, so that a great deal of manpower and time are required for testing in order to ensure the shipment reliability of each equipment. But in recent years, the labor cost is greatly increased, and meanwhile, the requirement on the efficiency of equipment shipment is also higher. Therefore, the test by test results in a great increase in the cost of the Android device and a decrease in shipment efficiency. The random spot check cannot guarantee the reliability of the equipment, and as most of Android equipment is used for vehicles and the permission of the Android equipment in the intelligent traffic field is higher and higher, the equipment which cannot guarantee the reliability cannot acquire 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 the steps that a testing APP is arranged on tested equipment, and is automatically started after power-on, and the testing APP automatically executes testing of a GPS module, a 4G module, a sensor and an FM module in sequence, and then a report is generated on testing results;
wherein 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 acquire the positioning manager of the system, the GPS monitor is registered through the positioning manager, an interface method is used in the monitor to call a bottom driver to send and receive serial port instructions to a GPS module, the GPS module sends acquired information to a serial port end of a CPU through the serial port, the bottom driver can upload data received by the port to the GPS monitor, the test APP searches data required in the data sent by the GPS module through a character string, wherein output sentences of $GPGGA, $GPRMC and $GPVTG are required, the usable satellite number and positioning precision can be judged by analyzing sentences of the beginning of $GPGGA, the test APP screens useful satellite number and positioning precision information after receiving all the transmitted information, and the screened useful information is compared with a specified index to judge whether the GPS module meets the requirement;
the communication module test comprises the following steps: the test APP firstly obtains a telephone manager of the system by a method of transmitting a telephone service type to system service, registers a monitor by the telephone manager, realizes a callback method of an interface in the monitor, and is used for obtaining the strength of LTE and GSM signals, when the values of the LTE and GSM signal strength are both larger than a standard value, the 4G module is indicated to be normal, otherwise, the 4G module is indicated to be abnormal; the 4G network bandwidth is tested and is connected to a designated server port through a socket TCP programming mode, data stored in a system catalog are uploaded to a server, the data stored in the server are downloaded to the system catalog, whether the time required for completing one-time uploading and downloading is within a specified range is tested, and whether the 4G module meets the application requirement is judged; the method comprises the steps of testing a wifi module, firstly obtaining a wifi manager object from system service, opening wifi through the wifi manager object, connecting a network added with configuration, checking whether linking is successful, and judging whether wifi is normal;
the sensor test comprises the following steps: the sensor types tested are an acceleration sensor, a gyroscope sensor and an environmental sensor, the test APP firstly acquires sensor services, then the acceleration sensor type, the gyroscope sensor type and the environmental sensor type are respectively transmitted to the services to judge whether the sensors exist, if yes, the sensors and the corresponding monitors are registered, and meanwhile, an interface exposure callback method is realized in the monitors and is used for monitoring original sensor data, when the data register value of the sensor is read by the Android bottom layer driver to change, the callback method in the monitors receives the data transmitted by the bottom layer, and if the callback method does not receive the data all the time, the sensors can be judged to have faults; if the callback method receives the data, further judging whether the value of the callback method exceeds the range of the data manual calibration, so as to judge whether the sensor is normal;
the FM module test comprises the following steps: the test APP obtains an interface for operating the radio station service by using the radio station service of the android, invokes a bottom layer driver for operating the FM by using a local method of the interface so as to operate the FM module, firstly, sets the FM to a series of pre-recorded radio station frequencies respectively, reads registers related to signal strength and signal to noise ratio, and tests whether the signal strength and the signal to noise ratio meet the requirements on the frequencies.
The further scheme is that after the test APP is tested, a test result is recorded into a document to form a report, a test structure is displayed on a screen in the form of the document and the two-dimensional code, and a detector 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, then the test report is displayed on the screen of the device in the form of characters and two-dimensional codes, so that the detection of each device can be automatically finished, the problem of products can be conveniently identified, and the shipment efficiency is improved. Meanwhile, equipment with problems can be subjected to targeted investigation, and materials of the equipment can be conveniently tracked regularly, so that the quality of products is improved on the whole.
Detailed Description
The following technical solutions in the embodiments of the present invention are clearly and completely described.
Example 1.
The Android-based automatic factory testing method comprises the steps that a testing APP is arranged on tested equipment, and is automatically started after power-on, testing of a GPS module, a 4G module, a sensor and an FM module is automatically executed in sequence, and then a report is generated on testing results;
wherein 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 acquire the positioning manager of the system, the GPS monitor is registered through the positioning manager, an interface method is used in the monitor to call a bottom driver to send and receive serial port instructions to a GPS module, the GPS module sends acquired information to a serial port end of a CPU through the serial port, the bottom driver can upload data received by the port to the GPS monitor, the test APP searches data required in the data sent by the GPS module through a character string, wherein output sentences of $GPGGA, $GPRMC and $GPVTG are required, the usable satellite number and positioning precision can be judged by analyzing sentences of the beginning of $GPGGA, the test APP screens useful satellite number and positioning precision information after receiving all the transmitted information, and the screened useful information is compared with a specified index to judge whether the GPS module meets the requirement;
the communication module test comprises the following steps: the test APP firstly obtains a telephone manager of the system by a method of transmitting a telephone service type to system service, registers a monitor by the telephone manager, realizes a callback method of an interface in the monitor, and is used for obtaining the strength of LTE and GSM signals, when the values of the LTE and GSM signal strength are both larger than a standard value, the 4G module is indicated to be normal, otherwise, the 4G module is indicated to be abnormal; the 4G network bandwidth is tested and is connected to a designated server port through a socket TCP programming mode, data stored in a system catalog are uploaded to a server, the data stored in the server are downloaded to the system catalog, whether the time required for completing one-time uploading and downloading is within a specified range is tested, and whether the 4G module meets the application requirement is judged; the method comprises the steps of testing a wifi module, firstly obtaining a wifi manager object from system service, opening wifi through the wifi manager object, connecting a network added with configuration, checking whether linking is successful, and judging whether wifi is normal;
the sensor test comprises the following steps: the sensor types tested are an acceleration sensor, a gyroscope sensor and an environmental sensor, the test APP firstly acquires sensor services, then the acceleration sensor type, the gyroscope sensor type and the environmental sensor type are respectively transmitted to the services to judge whether the sensors exist, if yes, the sensors and the corresponding monitors are registered, and meanwhile, an interface exposure callback method is realized in the monitors and is used for monitoring original sensor data, when the data register value of the sensor is read by the Android bottom layer driver to change, the callback method in the monitors receives the data transmitted by the bottom layer, and if the callback method does not receive the data all the time, the sensors can be judged to have faults; if the callback method receives the data, further judging whether the value of the callback method exceeds the range of the data manual calibration, so as to judge whether the sensor is normal;
the FM module test comprises the following steps: the test APP obtains an interface for operating the radio station service by using the radio station service of the android, invokes a bottom layer driver for operating the FM by using a local method of the interface so as to operate the FM module, firstly, sets the FM to a series of pre-recorded radio station frequencies respectively, reads registers related to signal strength and signal to noise ratio, and tests whether the signal strength and the signal to noise ratio meet the requirements on the frequencies.
Meanwhile, after the test is completed, 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 the 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-dimension code through an automatic machine, so that complete automatic production is achieved.
Claims (2)
1. An Android-based automatic factory testing method comprises a testing APP and is characterized in that the testing APP is automatically started after power-on is arranged on tested equipment, the testing APP automatically executes testing 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;
wherein 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 acquire the positioning manager of the system, the GPS monitor is registered through the positioning manager, an interface method is used in the monitor to call a bottom driver to send and receive serial port instructions to a GPS module, the GPS module sends acquired information to a serial port end of a CPU through the serial port, the bottom driver can upload data received by the port to the GPS monitor, the test APP searches data required in the data sent by the GPS module through a character string, wherein output sentences of $GPGGA, $GPRMC and $GPVTG are required, the usable satellite number and positioning precision can be judged by analyzing sentences of the beginning of $GPGGA, the test APP screens useful satellite number and positioning precision information after receiving all the transmitted information, and the screened useful information is compared with a specified index to judge whether the GPS module meets the requirement;
the communication module test comprises the following steps: the test APP firstly obtains a telephone manager of the system by a method of transmitting a telephone service type to system service, registers a monitor by the telephone manager, realizes a callback method of an interface in the monitor, and is used for obtaining the strength of LTE and GSM signals, when the values of the LTE and GSM signal strength are both larger than a standard value, the 4G module is indicated to be normal, otherwise, the 4G module is indicated to be abnormal; the 4G network bandwidth is tested and connected to a designated server port through a socketTCP programming mode, data stored in a system catalog are uploaded to a server, the data stored in the server are downloaded to the system catalog, whether the time required for completing one-time uploading and downloading is within a specified range is tested, and whether the 4G module meets the application requirement is judged; the method comprises the steps of testing a wifi module, firstly obtaining a wifi manager object from system service, opening wifi through the wifi manager object, connecting a network added with configuration, checking whether linking is successful, and judging whether wifi is normal;
the sensor test comprises the following steps: the sensor types tested are an acceleration sensor, a gyroscope sensor and an environmental sensor, the test APP firstly acquires sensor services, then the acceleration sensor type, the gyroscope sensor type and the environmental sensor type are respectively transmitted to the services to judge whether the sensors exist, if yes, the sensors and the corresponding monitors are registered, and meanwhile, an interface exposure callback method is realized in the monitors and is used for monitoring original sensor data, when the data register value of the sensor is read by the Android bottom layer driver to change, the callback method in the monitors receives the data transmitted by the bottom layer, and if the callback method does not receive the data all the time, the sensors can be judged to have faults; if the callback method receives the data, further judging whether the value of the callback method exceeds the range of the data manual calibration, so as to judge whether the sensor is normal;
the FM module test comprises the following steps: the test APP obtains an interface for operating the radio station service by using the radio station service of the android, invokes a bottom layer driver for operating the FM by using a local method of the interface so as to operate the FM module, firstly, sets the FM to a series of pre-recorded radio station frequencies respectively, reads registers related to signal strength and signal to noise ratio, and tests whether the signal strength and the signal to noise ratio meet the requirements on the frequencies.
2. The Android-based automatic factory testing method is characterized in that after the testing is completed, the testing APP records a testing result into a document to form a report, a testing 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.
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 CN111309587A (en) | 2020-06-19 |
CN111309587B true 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) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112804704B (en) * | 2020-12-18 | 2022-08-19 | 珠海格力电器股份有限公司 | Automatic WIFI module test equipment and test method |
Citations (9)
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 |
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 automation testing method, 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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8774851B2 (en) * | 2011-02-04 | 2014-07-08 | Takwak GmBh | Systems and methods for group information server among mobile devices |
-
2019
- 2019-01-30 CN CN201910091592.5A patent/CN111309587B/en active Active
Patent Citations (9)
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 |
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 automation testing method, 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 |
Also Published As
Publication number | Publication date |
---|---|
CN111309587A (en) | 2020-06-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106060863B (en) | Wireless communication system with integrated location-based measurements for diagnostic and performance optimization | |
US20190206005A1 (en) | Vehicle detection method, device, equipment and readable storage medium | |
CN106937303B (en) | Base station testing method and system, terminal and cloud server | |
KR102429017B1 (en) | System and method for vehicle inspection | |
CN105100796A (en) | Television test method, device and system | |
US20130148519A1 (en) | System and method for testing wireless network device | |
US20120142335A1 (en) | Apparatus and Method for Network Based Wireless Network Test | |
CN111309587B (en) | Android-based automatic factory testing method | |
US20220086069A1 (en) | Web interface to remotely collect and analyze mobile device logs | |
CN112040439A (en) | OBU radio frequency parameter calibration method, OBU device, radio frequency device and system | |
CN111385762B (en) | Vehicle abnormity reporting method and device, shared vehicle and storage medium | |
CN108990094A (en) | A kind of IoT Internet of Things signal contrast analytical equipment and method | |
CN110771064A (en) | Estimation method, monitoring equipment and computer readable storage medium | |
KR101982504B1 (en) | Vehicle to everything communication conforming device | |
CN110167058B (en) | Interference frequency identification method, mobile terminal, log management method and server | |
US9843493B2 (en) | Test-software-supported measuring system and measuring method | |
CN204990658U (en) | Pressure sensing device and data monitoring system | |
CN115158400A (en) | Urban rail vehicle-mounted equipment and testing method thereof | |
CN111083018A (en) | Production detection method and device for wireless equipment | |
KR100539784B1 (en) | Apparatus and method for measuring receiver performance of global positioning system signal in mobile communication terminal | |
US20100120416A1 (en) | Method for generating a signal train which can be played back on a tester for testing a mobile radio | |
US9253665B2 (en) | Method and apparatuses for initialising a radio base station | |
CN104900042A (en) | Pressure sensing device, data monitoring system and data transmission method | |
CN108964796B (en) | Radio station testing method based on audio closed loop | |
CN115052337A (en) | Novel intelligent head-mounted terminal inspection system based on AI-Beacon |
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 |