Automatic development method and device of Bluetooth, electronic equipment and storage medium

By combining Git server and Jenkins server and using Bluetooth protocol testing system, the automated development of Bluetooth devices is realized, which solves the problems of low efficiency and poor reliability in traditional Bluetooth device development, and improves development efficiency and testing reliability.

CN120104150AInactive Publication Date: 2025-06-06INGCHIPS TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510600393.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-12
Publication Date
2025-06-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the development process of traditional Bluetooth device, the testing and verification of the Bluetooth protocol stack relies on manual operation, resulting in low efficiency and poor reliability.

Method used

Automatic development of Bluetooth functions is achieved by combining Git server and Jenkins server, and calling the Bluetooth protocol test system (PTS) through the Jenkins server. The specific steps include: the Git server generates a pipeline task startup request, the Jenkins server determines and starts the Bluetooth CI/CD pipeline task, pulls development code, burns it to the device to be tested, calls PTS to execute test cases, and generates a test report.

Benefits of technology

It realizes the automated deployment and testing of Bluetooth development function code, ensuring that the integrity and reliability of functions can be verified in a timely manner after each code submission, improving development efficiency and ensuring the reliability of testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120104150A_ABST
    Figure CN120104150A_ABST
Patent Text Reader

Abstract

In order to solve the problems of low efficiency and poor reliability of traditional Bluetooth development and testing, the invention discloses an automatic development method and device of Bluetooth, electronic equipment and a storage medium, the development of a Bluetooth function is realized by combining a Git server and a Jenkins server and calling a Bluetooth protocol testing system, so that the development efficiency of the Bluetooth function is improved, and the development cost is reduced. According to the method, automatic deployment and testing of Bluetooth development function codes can be completed, so that the integrity and reliability of the function can be verified in time after each time of code submission, and on the basis, the development efficiency is improved, and the testing reliability is ensured; meanwhile, the Bluetooth protocol testing system is introduced into development testing, different use scenes can be simulated, and the functional stability and interoperability of the equipment under various conditions can be verified, so that the testing reliability is further ensured; therefore, the invention provides an efficient and reliable Bluetooth automatic development mode, thereby being very suitable for large-scale application and popularization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of software development, and in particular relates to a Bluetooth automated development method, device, electronic equipment and storage medium. Background Art

[0002] The development and certification of Bluetooth devices is a multi-level and complex process involving multiple links, including functional verification of the Bluetooth protocol stack, compatibility testing between devices, performance optimization, and multi-device interoperability. Each link requires developers to ensure that the device can work stably in different environments, different platforms, and different application scenarios, and meet Bluetooth technical standards. However, in the traditional Bluetooth device development process, the testing and verification of the Bluetooth protocol stack usually relies on manual operation. The execution of test cases requires developers to check them one by one, which is inefficient and easily affected by factors such as manual operation errors and environmental inconsistencies, thereby affecting the accuracy and reliability of the test results. Therefore, based on the aforementioned deficiencies, how to provide an automated Bluetooth development method has become an urgent problem to be solved. Summary of the invention

[0003] The purpose of the present invention is to provide a Bluetooth automated development method, device, electronic device and storage medium to solve the problem of low efficiency and poor reliability caused by the prior art that the testing and verification of the Bluetooth protocol stack usually relies on manual operation.

[0004] In order to achieve the above object, the present invention adopts the following technical solutions: In a first aspect, a Bluetooth automated development method is provided, comprising: The Git server obtains a Bluetooth function development code in response to the human-computer interaction operation, and generates a pipeline task start request based on the Bluetooth function development code; The Git server sends the pipeline task start request to the Jenkins server; After receiving the pipeline task start request sent by the Git server, the Jenkins server determines the Bluetooth CI / CD pipeline task to be started based on the pipeline task start request; The Jenkins server starts the Bluetooth CI / CD pipeline task to be started to pull the Bluetooth function development code from the Git server; The Jenkins server burns the Bluetooth function development code to the device under test, and calls the Bluetooth PTS automated testing system to establish a communication connection between the Bluetooth PTS automated testing system and the device under test; The Jenkins server obtains several Bluetooth test cases, and calls the Bluetooth PTS automated test system to execute each Bluetooth test case, so that after executing each Bluetooth test case, the Bluetooth PTS automated test system sends the test instructions corresponding to each Bluetooth test case to the device under test, and receives the test response information after the device under test executes each test instruction based on the Bluetooth function development code; The Jenkins server generates a test report based on the test response information corresponding to each Bluetooth test case, so as to complete the automated development of Bluetooth after generating the test report.

[0005] Based on the above disclosed content, the present invention uses Git server and Jenkins server to complete the automatic development test of Bluetooth. Specifically, after obtaining the Bluetooth function development code written by the developer, the Git server will generate a pipeline task start request and send it to the Jenkins server, and the Jenkins server will determine the Bluetooth CI / CD pipeline task required for this test based on the request; then, the Bluetooth CI / CD pipeline task is started to pull the Bluetooth function development code from the Git server; then, the Bluetooth function development code is burned to the device under test, and the Bluetooth PTS automated testing system is called to establish a communication connection between it and the device under test; then, the Jenkins service obtains several Bluetooth test cases, and calls the aforementioned Bluetooth PTS automated testing system to execute each Bluetooth test case, so that after executing the test case, the Bluetooth PTS automated testing system sends the test instructions corresponding to each Bluetooth test case to the device under test, and receives the test response information after the device under test executes each test instruction; finally, a test report can be generated based on each test response information, thereby completing the automated development test of Bluetooth.

[0006] Through the above design, the present invention combines the Git server and the Jenkins server, and calls the Bluetooth protocol test system (PTS) through the Jenkins server to realize the development of Bluetooth functions. In this way, the automatic deployment and testing of the Bluetooth development function code can be completed, so as to ensure that the integrity and reliability of the function can be verified in time after each code submission. Based on this, not only the development efficiency is improved, but also the reliability of the test is guaranteed; at the same time, the introduction of the Bluetooth protocol test system into the development test can simulate different usage scenarios and verify the functional stability and interoperability of the device under various conditions, thereby further ensuring the reliability of the test; thus, the present invention provides an efficient and reliable Bluetooth automatic development method, which is very suitable for large-scale application and promotion.

[0007] In a possible design, the Bluetooth function development code is burned into the device under test, including: Storing the Bluetooth function development code in a workspace, wherein the workspace is a running cache space allocated by the Jenkins server for the Bluetooth CI / CD pipeline task to be started; Compiling the Bluetooth function development code in the workspace to obtain a binary file; A burning tool is called, and the binary file is burned to the device under test based on the burning tool.

[0008] In a possible design, a test report is generated based on the test response information corresponding to each Bluetooth test case, including: For any Bluetooth test case, based on the test response information corresponding to the any Bluetooth test case, determine the test result of the any Bluetooth test case, and after all Bluetooth test cases are polled, obtain the test result of each Bluetooth test case, and the test result of any Bluetooth test case is a test success or a test failure; Wherein, if there is at least one Bluetooth test case in each Bluetooth test case whose test result is a test failure, a test failure report is generated using the Bluetooth test case corresponding to the test failure; Send the test failure report to the development end so that the development end can re-upload the Bluetooth function development code to the Git server; If the test results corresponding to each Bluetooth test case are all successful, a test pass report is generated and sent to the development end, so that the development end releases the Bluetooth function development code after receiving the test pass report.

[0009] In a possible design, the pipeline task start request includes a code version number, and the code version number is associated with a Bluetooth development function, wherein based on the pipeline task start request, determining the Bluetooth CI / CD pipeline task to be started includes: Acquire a pipeline task library, wherein the pipeline task library stores a plurality of candidate Bluetooth CI / CD pipeline tasks, and each candidate Bluetooth CI / CD pipeline task is respectively associated with a corresponding task function; Determine the Bluetooth development function corresponding to the Bluetooth function development code according to the code version number in the pipeline task start request; A task function corresponding to the Bluetooth development function is matched from the pipeline task library, and a candidate Bluetooth CI / CD pipeline task corresponding to the matched task function is used as the Bluetooth CI / CD pipeline task to be started.

[0010] In a possible design, a post-receive hook is deployed in the Git server; wherein, based on the Bluetooth function development code, a pipeline task start request is generated, including: After acquiring the Bluetooth function development code, triggering the post-receive hook to execute the script file corresponding to the post-receive hook to obtain the code version number corresponding to the Bluetooth function development code; Based on the code version number, the pipeline task start request is generated.

[0011] In the second aspect, a Bluetooth automated development device is provided, taking the device as a Jenkins server as an example, including: A task starting unit, configured to determine a Bluetooth CI / CD pipeline task to be started based on the pipeline task starting request after receiving the pipeline task starting request sent by the Git server, wherein the pipeline task starting request is generated by the Git server after acquiring the Bluetooth function development code; A code pulling unit, used to start the Bluetooth CI / CD pipeline task to be started, so as to pull the Bluetooth function development code from the Git server; A communication unit, used for burning the Bluetooth function development code to the device under test, and calling the Bluetooth PTS automated test system to establish a communication connection between the Bluetooth PTS automated test system and the device under test; The test unit is used to obtain a number of Bluetooth test cases and call the Bluetooth PTS automated test system to execute each Bluetooth test case, so that after executing each Bluetooth test case, the Bluetooth PTS automated test system sends a test instruction corresponding to each Bluetooth test case to the device under test, and receives test response information after the device under test executes each test instruction based on the Bluetooth function development code; The test unit is further used to generate a test report based on the test response information corresponding to each Bluetooth test case, so as to complete the Bluetooth automation development after generating the test report.

[0012] In a third aspect, another Bluetooth automated development device is provided, taking the device as a Git server as an example, including: A request generating unit, configured to obtain a Bluetooth function development code in response to a human-computer interaction operation, and generate a pipeline task start request based on the Bluetooth function development code; A sending unit, used for sending the pipeline task start request to the Jenkins server, so that after receiving the pipeline task start request sent by the Git server, the Jenkins server determines the Bluetooth CI / CD pipeline task to be started based on the pipeline task start request, and starts the Bluetooth CI / CD pipeline task to be started, so as to pull the Bluetooth function development code from the Git server and burn it to the device under test, and call the Bluetooth PTS automated testing system to establish a communication connection between the Bluetooth PTS automated testing system and the device under test, so as to call the Bluetooth PTS automated testing system to execute each Bluetooth test case, obtain the test response information of the device under test to each Bluetooth test case, and generate a test report based on each test response information; The test response information of the device under test to each Bluetooth test case is obtained after the Bluetooth PTS automated test system executes each Bluetooth test case, sends the test instructions corresponding to each Bluetooth test case to the device under test, and causes the device under test to run each test instruction.

[0013] In a fourth aspect, a third type of Bluetooth automated development device is provided. Taking the device as an electronic device as an example, the device includes a memory, a processor and a transceiver that are communicatively connected in sequence, wherein the memory is used to store computer programs, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the Bluetooth automated development method as described in the first aspect or any one of the possible designs in the first aspect.

[0014] In a fifth aspect, a storage medium is provided, on which instructions are stored. When the instructions are executed on a computer, the Bluetooth automated development method as in the first aspect or any possible design of the first aspect is executed.

[0015] In a sixth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, causes the computer to execute the Bluetooth automated development method as described in the first aspect or any possible design of the first aspect.

[0016] Beneficial effects: (1) The present invention combines the Git server and the Jenkins server, and calls the Bluetooth protocol test system (PTS) through the Jenkins server to realize the development of Bluetooth functions. In this way, the automatic deployment and testing of the Bluetooth development function code can be completed, so as to ensure that the integrity and reliability of the function can be verified in time after each code submission. Based on this, not only the development efficiency is improved, but also the reliability of the test is guaranteed; at the same time, the introduction of the Bluetooth protocol test system into the development test can simulate different usage scenarios and verify the functional stability and interoperability of the device under various conditions, thereby further ensuring the reliability of the test; thus, the present invention provides an efficient and reliable Bluetooth automatic development method, which is very suitable for large-scale application and promotion.

[0017] (2) The present invention has an automatic test report and feedback mechanism, that is, it can generate different test reports after testing, so as to ensure that developers can quickly respond to problems and iterate codes. Based on this, through real-time test result feedback, developers can clearly understand which functions have problems and quickly locate and solve bugs. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A schematic diagram of the steps of the Bluetooth automated development method provided by an embodiment of the present invention; Figure 2 A schematic diagram of the structure of a Jenkins server provided in an embodiment of the present invention; Figure 3 A schematic diagram of the structure of a Git server provided in an embodiment of the present invention; Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in combination with the drawings and the description of the embodiments or the prior art. Obviously, the following description of the structure of the drawings is only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention.

[0020] It should be understood that although the terms first, second, etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are only used to distinguish one unit from another unit. For example, a first unit can be referred to as a second unit, and similarly, a second unit can be referred to as a first unit without departing from the scope of the exemplary embodiments of the present invention.

[0021] It should be understood that the term "and / or" that may appear in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, B exists alone, and A and B exist at the same time. The term " / and" that may appear in this article describes another type of association object relationship, indicating that two relationships may exist. For example, A / and B can represent two situations: A exists alone, and A and B exist alone. In addition, the character " / " that may appear in this article generally indicates that the previous and next associated objects are in an "or" relationship.

[0022] Example: See also Figure 1 As shown, the Bluetooth automated development method provided in this embodiment combines the Git server and the Jenkins server, and calls the Bluetooth protocol test system through the Jenkins server to realize the development of the Bluetooth function. In this way, the automated deployment and testing of the Bluetooth development function code can be completed, so as to ensure that the integrity and reliability of the function can be verified in time after each code submission. Based on this, not only the development efficiency is improved, but also the reliability of the test is guaranteed; at the same time, the method introduces the Bluetooth protocol test system into the development test, which can simulate different usage scenarios to verify the functional stability and interoperability of the device under various conditions, thereby further ensuring the reliability of the test; therefore, the method is very suitable for large-scale application and promotion; among them, for example, the method can be but not limited to running on the Jenkins server and Git server side. It can be understood that the aforementioned execution subject does not constitute a limitation on the embodiments of the present application. Accordingly, the running steps of the method can be but not limited to the following steps S1 to S7.

[0023] S1. The Git server responds to the human-computer interaction operation to obtain the Bluetooth function development code, and generates a pipeline task start request based on the Bluetooth function development code; in specific implementation, the Bluetooth function development code is obtained by the developer through coding according to the product requirement document and the technical design document, and the aforementioned Bluetooth function development code can be submitted to the Git server using a version control tool to ensure the management and tracking of the code version; at the same time, for example, a post-receive hook is deployed in the Git server (the main function of this hook is to notify the Jenkins server to perform some necessary automation tasks, such as building, deployment or data backup functions); in this way, after obtaining the Bluetooth function development code, the Git server will trigger the post-receive hook to execute the script file corresponding to the post-receive hook, thereby obtaining the code version number corresponding to the Bluetooth function development code; at the same time, the code version number is also associated with the Bluetooth development function that needs to be implemented in this Bluetooth development, so that the pipeline task start request can be generated based on the code version number, so that the subsequent Jenkins server can perform subsequent development tests based on the aforementioned request.

[0024] After the pipeline task request is generated, the request can be sent, and the process is shown in the following step S2.

[0025] S2. The Git server sends the pipeline task start request to the Jenkins server; in specific implementation, the script file corresponding to the aforementioned post-receive hook sends the aforementioned request to the Jenkins server through Webhook to notify the Jenkins server to perform subsequent operations; wherein, Webhook is a Web callback or HTTP POST request, which is triggered by certain events, usually events in the source code management system (such as GitHub, GitLab, Bitbucket, etc.). Therefore, in this embodiment, the execution is triggered after the code is submitted.

[0026] After the pipeline task start request is sent, the Jenkins server can be used to automatically deploy and test the Bluetooth development function code, and the process is shown in the following steps S3 to S7.

[0027] S3. After receiving the pipeline task start request sent by the Git server, the Jenkins server determines the Bluetooth CI / CD pipeline task to be started based on the pipeline task start request; in the specific implementation, it has been explained above that the pipeline task start request is generated according to the code version number, so the request includes the aforementioned code version number, and the code version number is associated with the Bluetooth development function; therefore, this embodiment matches the task based on this.

[0028] Optionally, the specific process of task matching is: first obtain a pipeline task library, wherein the pipeline task library stores a number of candidate Bluetooth CI / CD pipeline tasks, and each candidate Bluetooth CI / CD pipeline task is associated with a corresponding task function; then, according to the code version number in the pipeline task start request, determine the Bluetooth development function corresponding to the Bluetooth function development code; finally, match the task function corresponding to the Bluetooth development function from the pipeline task library, and use the candidate Bluetooth CI / CD pipeline task corresponding to the matched task function as the Bluetooth CI / CD pipeline task to be started.

[0029] In this embodiment, several candidate Bluetooth CI / CD pipeline tasks in the pipeline task library can be pre-set by developers in the Jenkins server, and when used, they can be matched according to the Bluetooth development function associated with the code version number in the pipeline task startup request; at the same time, CI / CD pipeline tasks refer to a series of automated tasks in the continuous integration (CI) and continuous delivery / deployment (CD) processes, which in this embodiment refer to Bluetooth deployment and testing tasks.

[0030] After determining the pipeline task required for this Bluetooth development, the task can be started to pull the Bluetooth function development code, thereby facilitating subsequent code deployment and testing; wherein the code pulling process is shown in the following step S4.

[0031] S4. The Jenkins server starts the Bluetooth CI / CD pipeline task to be started to pull the Bluetooth function development code from the Git server. In this embodiment, for example, but not limited to, the Git plug-in can be used to pull the aforementioned Bluetooth function development code from the Git server, and then the code can be burned for subsequent deployment and testing; wherein, the burning process is shown in the following step S5.

[0032] S5. The Jenkins server burns the Bluetooth function development code to the device under test, and calls the Bluetooth PTS automated testing system to establish a communication connection between the Bluetooth PTS automated testing system and the device under test; in this embodiment, the Bluetooth function development code is first stored in a workspace (the workspace is the running cache space allocated by the Jenkins server for the Bluetooth CI / CD pipeline task to be started, which can be understood as the running directory allocated to the aforementioned task for executing the task); then, the Bluetooth function development code is compiled in the workspace to obtain a binary file (such as calling a compilation script to compile the code); finally, the burning tool can be called, and the binary file can be burned to the device under test based on the burning tool; in this way, the burning of the Bluetooth function development code can be completed for subsequent integration testing.

[0033] At the same time, this embodiment also introduces the Bluetooth PTS (Profile Test Suite) automated testing system in the development test, so as to complete the Bluetooth development test in different scenarios based on the automated testing system. In specific applications, the Bluetooth development test is realized by establishing serial port communication between the Bluetooth PTS (Profile Test Suite) automated testing system and the device under test. The process is shown in the following step S6.

[0034] S6. The Jenkins server obtains several Bluetooth test cases, and calls the Bluetooth PTS automated test system to execute each Bluetooth test case, so that after executing each Bluetooth test case, the Bluetooth PTS automated test system sends the test instructions corresponding to each Bluetooth test case to the device under test, and receives the test response information after the device under test executes each test instruction based on the Bluetooth function development code; in the specific implementation, for example, a test case library is pre-set, and the test case library stores test cases corresponding to different functions. Therefore, the Jenkins server can filter out the test cases of the corresponding functions through the Bluetooth development function associated with the aforementioned code version number, so as to serve as the Bluetooth test case, and then call the Bluetooth PTS automated test system to execute each Bluetooth test case, and when the system executes the Bluetooth test case, it will generate the corresponding test instruction and send it to the device under test through the serial port, and the device under test can execute each test instruction and return the corresponding test response information to the PTS system through the serial port; in this way, the Jenkins server can generate the corresponding test report according to the received test response information, so as to complete the test of Bluetooth development.

[0035] Furthermore, the Bluetooth PTS test covers multiple test scenarios related to GATT (Generic Access Profile), GAP (Generic Access Profile), SM (Security Manager), L2CAP (Logical Link Control and Adaptation Protocol), and other Bluetooth protocols to ensure that the device complies with the Bluetooth specification.

[0036] Optionally, the test report generation process may be but is not limited to the process shown in step S7 below.

[0037] S7. The Jenkins server generates a test report based on the test response information corresponding to each Bluetooth test case, so as to complete the automated development of Bluetooth after generating the test report; in specific applications, for any Bluetooth test case, this embodiment determines the test result of any Bluetooth test case based on the test response information corresponding to the any Bluetooth test case, and obtains the test result of each Bluetooth test case after all Bluetooth test cases are polled, wherein the test result of any Bluetooth test case is taken as a test success or a test failure; in this way, different test reports can be generated according to the test results of each Bluetooth test case, and the process is as follows: If there is at least one Bluetooth test case among all the Bluetooth test cases whose test result is a test failure, a test failure report is generated using the Bluetooth test case corresponding to the test failure; then, the test failure report is sent to the development end so that the development end can re-upload the Bluetooth function development code to the Git server; similarly, if the test results corresponding to all the Bluetooth test cases are all test successes, a test pass report is generated and sent to the development end so that the development end can publish the Bluetooth function development code after receiving the test pass report.

[0038] In this way, it is equivalent to that in the process of automated testing, if one or more test cases are found to have failed, the Jenkins server will automatically generate a test report and feedback the failed test case information to the developer; the developer can fix the problems in the code according to the report content, modify and resubmit the code to the version control system, and start the next round of testing; and when all test cases pass, the Jenkins server will trigger an email notification, and send the test pass result to the developer through the email system (such as SMTP server). The email content includes the test results, build information and confirmation of passing the test; therefore, when the developer receives the email of the test pass and confirms that the test results are correct, he can start preparing to release the code to the production environment or the official release channel. The release operation usually includes version tagging, release script execution and release of the official version, etc., which can significantly improve the efficiency and test coverage of Bluetooth device development, reduce the complexity of manual operations, and provide higher protection for product quality.

[0039] Therefore, through the Bluetooth automated development method described in detail in the aforementioned steps S1 to S7, the present invention combines the Git server and the Jenkins server, and calls the Bluetooth protocol test system through the Jenkins server to realize the development of the Bluetooth function. In this way, the automated deployment and testing of the Bluetooth development function code can be completed, so as to ensure that the integrity and reliability of the function can be verified in time after each code submission. Based on this, not only the development efficiency is improved, but also the reliability of the test is guaranteed; at the same time, the present invention introduces the Bluetooth protocol test system into the development test, which can simulate different usage scenarios and verify the functional stability and interoperability of the device under various conditions, thereby further ensuring the reliability of the test; therefore, the present invention is very suitable for large-scale application and promotion.

[0040] like Figure 2 As shown, the second aspect of this embodiment provides a hardware device for implementing the Bluetooth automated development method described in the first aspect of the embodiment, taking the device as a Jenkins server as an example, including: A task starting unit is used to determine the Bluetooth CI / CD pipeline task to be started based on the pipeline task starting request after receiving the pipeline task starting request sent by the Git server, wherein the pipeline task starting request is generated by the Git server after obtaining the Bluetooth function development code.

[0041] The code pulling unit is used to start the Bluetooth CI / CD pipeline task to be started to pull the Bluetooth function development code from the Git server.

[0042] The communication unit is used to burn the Bluetooth function development code to the device under test and call the Bluetooth PTS automatic test system to establish a communication connection between the Bluetooth PTS automatic test system and the device under test.

[0043] The test unit is used to obtain several Bluetooth test cases and call the Bluetooth PTS automated test system to execute each Bluetooth test case, so that after executing each Bluetooth test case, the Bluetooth PTS automated test system sends the test instructions corresponding to each Bluetooth test case to the device under test, and receives the test response information after the device under test executes each test instruction based on the Bluetooth function development code.

[0044] The test unit is further used to generate a test report based on the test response information corresponding to each Bluetooth test case, so as to complete the Bluetooth automation development after generating the test report.

[0045] The working process, working details and technical effects of the device provided in this embodiment can be found in the first aspect of the embodiment and will not be described in detail here.

[0046] like Figure 3 As shown, the third aspect of this embodiment provides another Bluetooth automated development device, taking the device as a Git server as an example, including: A request generating unit, configured to obtain a Bluetooth function development code in response to a human-computer interaction operation, and generate a pipeline task start request based on the Bluetooth function development code; A sending unit, used for sending the pipeline task start request to the Jenkins server, so that after receiving the pipeline task start request sent by the Git server, the Jenkins server determines the Bluetooth CI / CD pipeline task to be started based on the pipeline task start request, and starts the Bluetooth CI / CD pipeline task to be started, so as to pull the Bluetooth function development code from the Git server and burn it to the device under test, and call the Bluetooth PTS automated testing system to establish a communication connection between the Bluetooth PTS automated testing system and the device under test, so as to call the Bluetooth PTS automated testing system to execute each Bluetooth test case, obtain the test response information of the device under test to each Bluetooth test case, and generate a test report based on each test response information; The test response information of the device under test to each Bluetooth test case is obtained after the Bluetooth PTS automated test system executes each Bluetooth test case, sends the test instructions corresponding to each Bluetooth test case to the device under test, and causes the device under test to run each test instruction.

[0047] The working process, working details and technical effects of the device provided in this embodiment can be found in the first aspect of the embodiment and will not be described in detail here.

[0048] like Figure 4 As shown, the fourth aspect of this embodiment provides a third Bluetooth automated development device, taking the device as an electronic device as an example, comprising: a memory, a processor and a transceiver that are communicatively connected in sequence, wherein the memory is used to store computer programs, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the Bluetooth automated development method as described in the first aspect of the embodiment.

[0049] For example, the memory may include, but is not limited to, random access memory (RAM), read only memory (ROM), flash memory, first input first output (FIFO) and / or first in last out (FILO), etc. Specifically, the processor may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). At the same time, the processor may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state.

[0050] In some embodiments, the processor may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. For example, the processor may not be limited to a microprocessor of the STM32F105 series, a reduced instruction set computer (RISC) microprocessor, an X86 architecture processor, or a processor with an integrated embedded neural network processing unit (NPU); the transceiver may be, but is not limited to, a wireless fidelity (WIFI) wireless transceiver, a Bluetooth wireless transceiver, a General Packet Radio Service (GPRS) wireless transceiver, a ZigBee protocol (a low-power LAN protocol based on the IEEE802.15.4 standard, ZigBee) wireless transceiver, a 3G transceiver, a 4G transceiver, and / or a 5G transceiver. In addition, the device may also include, but is not limited to, a power module, a display screen, and other necessary components.

[0051] The working process, working details and technical effects of the electronic device provided in this embodiment can be found in the first aspect of the embodiment and will not be described in detail here.

[0052] The fifth aspect of this embodiment provides a storage medium storing instructions including the Bluetooth automated development method described in the first aspect of the embodiment, that is, the storage medium stores instructions, and when the instructions are run on a computer, the Bluetooth automated development method described in the first aspect of the embodiment is executed.

[0053] The storage medium refers to a carrier for storing data, which may include but is not limited to a floppy disk, a CD, a hard disk, a flash memory, a USB flash drive and / or a memory stick, and the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.

[0054] The working process, working details and technical effects of the storage medium provided in this embodiment can be found in the first aspect of the embodiment and will not be described in detail here.

[0055] A sixth aspect of the present embodiment provides a computer program product comprising instructions, which, when executed on a computer, causes the computer to execute the automated development method for Bluetooth as described in the first aspect of the embodiment, wherein the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.

[0056] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A Bluetooth automated development method, characterized in that: Applicable to Jenkins server, including: After receiving the pipeline task start request sent by the Git server, determining the Bluetooth CI / CD pipeline task to be started based on the pipeline task start request, wherein the pipeline task start request is generated by the Git server after obtaining the Bluetooth function development code; Start the pending Bluetooth CI / CD pipeline task to pull the Bluetooth function development code from the Git server; Burn the Bluetooth function development code to the device under test, and call the Bluetooth PTS automated testing system to establish a communication connection between the Bluetooth PTS automated testing system and the device under test; Obtain several Bluetooth test cases, and call the Bluetooth PTS automated test system to execute each Bluetooth test case, so that after executing each Bluetooth test case, the Bluetooth PTS automated test system sends a test instruction corresponding to each Bluetooth test case to the device under test, and receives test response information after the device under test executes each test instruction based on the Bluetooth function development code; A test report is generated based on the test response information corresponding to each Bluetooth test case, so as to complete the Bluetooth automation development after the test report is generated.

2. The method according to claim 1, characterized in that Burn the Bluetooth function development code to the device under test, including: Storing the Bluetooth function development code in a workspace, wherein the workspace is a running cache space allocated by the Jenkins server for the Bluetooth CI / CD pipeline task to be started; Compiling the Bluetooth function development code in the workspace to obtain a binary file; A burning tool is called, and the binary file is burned to the device under test based on the burning tool.

3. The method according to claim 1, characterized in that: Generate a test report based on the test response information corresponding to each Bluetooth test case, including: For any Bluetooth test case, based on the test response information corresponding to the any Bluetooth test case, determine the test result of the any Bluetooth test case, and after all Bluetooth test cases are polled, obtain the test result of each Bluetooth test case, and the test result of any Bluetooth test case is a test success or a test failure; Wherein, if there is at least one Bluetooth test case in each Bluetooth test case whose test result is a test failure, a test failure report is generated using the Bluetooth test case corresponding to the test failure; Send the test failure report to the development end so that the development end can re-upload the Bluetooth function development code to the Git server; If the test results corresponding to each Bluetooth test case are all successful, a test pass report is generated and sent to the development end, so that the development end releases the Bluetooth function development code after receiving the test pass report.

4. The method according to claim 1, characterized in that: The pipeline task start request includes a code version number, and the code version number is associated with a Bluetooth development function. Based on the pipeline task start request, determining the Bluetooth CI / CD pipeline task to be started includes: Acquire a pipeline task library, wherein the pipeline task library stores a plurality of candidate Bluetooth CI / CD pipeline tasks, and each candidate Bluetooth CI / CD pipeline task is respectively associated with a corresponding task function; Determine the Bluetooth development function corresponding to the Bluetooth function development code according to the code version number in the pipeline task start request; A task function corresponding to the Bluetooth development function is matched from the pipeline task library, and a candidate Bluetooth CI / CD pipeline task corresponding to the matched task function is used as the Bluetooth CI / CD pipeline task to be started.

5. A Bluetooth automated development method, characterized in that: Applicable to Git server, including: Responding to the human-computer interaction operation, obtaining a Bluetooth function development code, and generating a pipeline task start request based on the Bluetooth function development code; Send the pipeline task start request to the Jenkins server, so that after receiving the pipeline task start request sent by the Git server, the Jenkins server determines the Bluetooth CI / CD pipeline task to be started based on the pipeline task start request, and starts the Bluetooth CI / CD pipeline task to be started, so as to pull the Bluetooth function development code from the Git server and burn it to the device under test, and call the Bluetooth PTS automated testing system to establish a communication connection between the Bluetooth PTS automated testing system and the device under test, so as to call the Bluetooth PTS automated testing system to execute each Bluetooth test case, obtain the test response information of the device under test to each Bluetooth test case, and generate a test report based on each test response information; The test response information of the device under test to each Bluetooth test case is obtained after the Bluetooth PTS automated test system executes each Bluetooth test case, sends the test instructions corresponding to each Bluetooth test case to the device under test, and causes the device under test to run each test instruction.

6. The method according to claim 5, characterized in that A post-receive hook is deployed in the Git server; wherein, based on the Bluetooth function development code, a pipeline task start request is generated, including: After acquiring the Bluetooth function development code, triggering the post-receive hook to execute the script file corresponding to the post-receive hook to obtain the code version number corresponding to the Bluetooth function development code; Based on the code version number, the pipeline task start request is generated.

7. A Bluetooth automated development device, characterized in that: include: A task starting unit, configured to determine a Bluetooth CI / CD pipeline task to be started based on the pipeline task starting request after receiving the pipeline task starting request sent by the Git server, wherein the pipeline task starting request is generated by the Git server after acquiring the Bluetooth function development code; A code pulling unit, used to start the Bluetooth CI / CD pipeline task to be started, so as to pull the Bluetooth function development code from the Git server; A communication unit, used for burning the Bluetooth function development code to the device under test, and calling the Bluetooth PTS automated test system to establish a communication connection between the Bluetooth PTS automated test system and the device under test; The test unit is used to obtain a number of Bluetooth test cases and call the Bluetooth PTS automated test system to execute each Bluetooth test case, so that after executing each Bluetooth test case, the Bluetooth PTS automated test system sends a test instruction corresponding to each Bluetooth test case to the device under test, and receives test response information after the device under test executes each test instruction based on the Bluetooth function development code; The test unit is further used to generate a test report based on the test response information corresponding to each Bluetooth test case, so as to complete the Bluetooth automation development after generating the test report.

8. A Bluetooth automated development device, characterized in that: include: A request generating unit, configured to obtain a Bluetooth function development code in response to a human-computer interaction operation, and generate a pipeline task start request based on the Bluetooth function development code; A sending unit, used for sending the pipeline task start request to the Jenkins server, so that after receiving the pipeline task start request sent by the Git server, the Jenkins server determines the Bluetooth CI / CD pipeline task to be started based on the pipeline task start request, and starts the Bluetooth CI / CD pipeline task to be started, so as to pull the Bluetooth function development code from the Git server and burn it to the device under test, and call the Bluetooth PTS automated testing system to establish a communication connection between the Bluetooth PTS automated testing system and the device under test, so as to call the Bluetooth PTS automated testing system to execute each Bluetooth test case, obtain the test response information of the device under test to each Bluetooth test case, and generate a test report based on each test response information; The test response information of the device under test to each Bluetooth test case is obtained after the Bluetooth PTS automated test system executes each Bluetooth test case, sends the test instructions corresponding to each Bluetooth test case to the device under test, and causes the device under test to run each test instruction.

9. An electronic device, characterized in that: include: A memory, a processor and a transceiver that are sequentially connected in communication, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program, and execute the Bluetooth automated development method as described in any one of claims 1 to 4 or 5 to 6.

10. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions are executed on a computer, the Bluetooth automated development method according to any one of claims 1 to 4 or 5 to 6 is executed.

Citation Information

Patent Citations

  • Bluetooth test system and method

    CN110024362A

  • Method for automatically integrating and testing vehicle-mounted software system and storage medium

    CN115202722A

  • Software development processing method and device based on Jenkins and terminal

    CN118276919A