DTA tool for cross-platform NFC test, NFC test method, equipment and medium

The cross-platform DTA tool for NFC testing simplifies adaptation and maintenance by separating UI, core logic, and protocol stack interface layers, enabling efficient and flexible testing across multiple operating systems.

CN120321613APending Publication Date: 2025-07-15BEIJING TSINGTENG MICROSYSTEM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510462914.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-14
Publication Date
2025-07-15

AI Technical Summary

Technical Problem

Existing DTA tools have problems such as high complexity, high cost and insufficient scalability in cross-platform adaptation and maintenance. Especially when migrating to other operating systems, the user interface and underlying logic need to be redesigned, which makes the transplantation process cumbersome and time-consuming.

Method used

DTA tools that adopt hierarchical design include the user interface layer, the core logic processing layer and the protocol stack interface layer. Each layer is independent of each other, the user interface layer is related to the operating system, and the core logic processing layer calls the protocol stack through the protocol stack interface layer to realize cross-platform testing.

Benefits of technology

It simplifies cross-platform development and maintenance work, improves applicability and ease of use, reduces development and maintenance costs, and ensures consistency and adaptability of test logic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120321613A_ABST
    Figure CN120321613A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to a DTA tool for cross-platform NFC testing, an NFC testing method, NFC testing equipment and a medium, the DTA tool comprises a user interface layer, a core logic processing layer and a protocol stack interface layer which are mutually independent, and the user interface layer is related to an operation system to which a to-be-tested NFC chip belongs and used for receiving test parameters configured by a user and sending the test parameters to the core logic processing layer. The core logic processing layer is used for receiving the test parameters transmitted by the user interface layer and testing the NFC chip and the protocol stack based on the test parameters and the DTA executable binary file, and the protocol stack is called through the protocol stack interface layer in the test process. According to the scheme, by designing the mutually independent functional layers, responsibility separation and decoupling of the functional layers are achieved, different operating systems can share one set of test logic, and when the test logic needs to be transplanted to different platforms, only the user interface layer needs to be developed according to the platforms, so that the DTA tool can normally run in the multiple operating systems, and the test efficiency is improved. And cross-platform efficient adaptation and maintenance are realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of near-field communication technologies, and in particular, to a DTA tool, an NFC testing method, a device, and a medium for cross-platform NFC testing. Background Art

[0002] A Device Test Application (DTA) is a tool used to test and verify NFC chips and their protocol stacks in the field of Near Field Communication (NFC). The DTA tool is usually used as an auxiliary tool for device testing to assist in evaluating the compatibility and performance of NFC chips and ensure their compliance with NFC-related standard specifications.

[0003] Currently, in the related art, the DTA tool is bound to the Android system, and the implementation process is complex and cumbersome. When it needs to be ported to other operating systems, not only does the user interface (UI) need to be redesigned, but also complex adaptation of the underlying code logic is required, resulting in an extremely complex and cumbersome porting process that consumes a large amount of time and labor costs. Moreover, the code needs to be independently maintained after the porting is completed, leading to a relatively high maintenance cost. Summary of the Invention

[0004] To solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a DTA tool, an NFC testing method, a device, and a medium for cross-platform NFC testing.

[0005] In a first aspect, an embodiment of the present disclosure provides a DTA tool for cross-platform NFC testing, including:

[0006] A user interface layer, which is related to the operating system to which the NFC chip to be tested belongs, and is used to receive test parameters configured by a user;

[0007] A core logic processing layer, which is used to receive the test parameters transmitted by the user interface layer and test the NFC chip and the protocol stack based on the test parameters and the DTA executable binary file. During the testing process, the protocol stack is called through a protocol stack interface layer;

[0008] A protocol stack interface layer, which is used to provide a standardized interface required for the core logic processing layer to call the protocol stack;

[0009] Wherein, the user interface layer, the core logic processing layer, and the protocol stack interface layer are independent of each other.

[0010] Second aspect, embodiments of the present disclosure provide an NFC testing method based on a DTA tool, where the DTA tool is the DTA tool for cross-platform NFC testing described in the first aspect, and the method includes:

[0011] Receiving test parameters configured by a user through the user interface layer of the DTA tool, and passing the test parameters to the core logic processing layer of the DTA tool;

[0012] Testing the NFC chip and protocol stack based on the test parameters and the DTA executable binary file through the core logic processing layer, where the protocol stack is called through the protocol stack interface layer during the testing process.

[0013] Third aspect, embodiments of the present disclosure provide an NFC testing device based on a DTA tool, where the DTA tool is the DTA tool for cross-platform NFC testing described in the first aspect, and the device includes:

[0014] A parameter configuration module, configured to receive test parameters configured by a user through the user interface layer of the DTA tool, and pass the test parameters to the core logic processing layer of the DTA tool;

[0015] A testing module, configured to test the NFC chip and protocol stack based on the test parameters and the DTA executable binary file through the core logic processing layer, where the protocol stack is called through the protocol stack interface layer during the testing process.

[0016] Fourth aspect, embodiments of the present disclosure provide an electronic device, where the electronic device includes: a processor; a memory for storing executable instructions of the processor; the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the NFC testing method based on the DTA tool as described in the second aspect.

[0017] Fifth aspect, embodiments of the present disclosure provide a computer-readable storage medium, where the storage medium stores a computer program for implementing the NFC testing method based on the DTA tool as described in the second aspect.

[0018] The technical solutions provided by the embodiments of the present disclosure have the following advantages compared with the prior art:

[0019] The DTA tool and NFC test solution for cross-platform NFC testing provided by the embodiments of the present disclosure. The DTA tool includes an independent user interface layer, a core logic processing layer, and a protocol stack interface layer. The user interface layer is related to the operating system to which the NFC chip to be tested belongs and is used to receive test parameters configured by the user. The core logic processing layer is used to receive the test parameters transmitted by the user interface layer and test the NFC chip and the protocol stack based on the test parameters and the DTA executable binary file. Among them, the protocol stack is called through the protocol stack interface layer during the test process. By adopting the solution of the present disclosure, through the design of different functional layers, and each functional layer is independent of each other, the separation of responsibilities and decoupling of each functional layer are realized. Different operating systems can share a set of test logics. When it is necessary to be transplanted to different platforms, only the user interface layer needs to be developed according to this platform, so that the DTA tool can operate normally in multiple operating systems, improving the applicability and ease of use of the DTA tool, greatly simplifying the development and maintenance work, and realizing efficient adaptation and maintenance across platforms. And, by providing a standardized interface for the core logic processing layer to call the protocol stack through the protocol stack interface layer, the core logic processing layer is decoupled from the underlying protocol stack, and at the same time, the differences in the specific protocol stack implementation are shielded, enhancing the adaptation ability of the DTA tool. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In combination with the accompanying drawings and with reference to the following specific embodiments, the above and other features, advantages, and aspects of the embodiments of the present disclosure will become more obvious. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic, and the original components and elements are not necessarily drawn to scale.

[0021] Figure 1 It is a schematic structural diagram of a DTA tool for cross-platform NFC testing provided by an exemplary embodiment of the present disclosure;

[0022] Figure 2 It is a schematic flowchart of an NFC test method based on the DTA tool provided by an exemplary embodiment of the present disclosure;

[0023] Figure 3 It shows a schematic architecture diagram of the DTA tool of a specific embodiment of the present disclosure;

[0024] Figure 4 It shows a schematic flowchart of an NFC test method based on the DTA tool of a specific embodiment of the present disclosure;

[0025] Figure 5 It is a schematic structural diagram of an NFC test device based on the DTA tool provided by an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0026] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Instead, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not used to limit the scope of protection of the present disclosure.

[0027] It should be understood that the various steps recited in the method embodiments of the present disclosure can be executed in a different order and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this regard.

[0028] The term "including" and its variations used herein are open-ended, i.e., "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0029] It should be noted that the concepts such as "first", "second", etc. mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of the functions executed by these devices, modules or units or their interdependent relationships.

[0030] It should be noted that the modifications of "one" and "plural" mentioned in the present disclosure are illustrative rather than restrictive. Those skilled in the art should understand that, unless clearly specified otherwise in the context, it should be understood as "one or more".

[0031] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information.

[0032] Currently, in the related art, although the DTA tool can implement the test functions of the NFC chip and protocol stack on the Android platform, there are significant problems in cross-platform adaptation and maintenance, which are mainly manifested in the following aspects: First, due to the high coupling between the UI and underlying logic of the tool, when migrating to other operating systems (such as HarmonyOS (OHOS), Linux, Real-Time Operating System (RTOS), etc.), not only the user interface needs to be re-ported, but also the underlying code logic needs to be complexly adapted, resulting in an extremely cumbersome porting process and consuming a large amount of time and labor costs; Second, the code synchronization and maintenance in a multi-platform environment is extremely difficult. The implementation differences between different systems are likely to lead to code redundancy, version inconsistency, and potential errors, further increasing the maintenance workload; In addition, the existing tools have a strong dependence on specific platforms, lack flexibility and generality, and show obvious limitations when supporting emerging operating systems or meeting the requirements of complex scenarios.

[0033] In view of the problems existing in the existing solutions, the present disclosure provides a DTA test tool that can be adapted to multiple operating systems to solve the problems of high cross-platform porting complexity, high maintenance cost, insufficient scalability, etc. in the prior art. The DTA tool provided by the present disclosure can directly run on different operating systems (such as Android, OHOS, Linux, RTOS, etc.) by providing a unified executable binary file, without modifying the core business logic, and only needs to adapt the UI interface to support different operating systems. Through hierarchical design and independent design of core business modules, different platforms only need to develop or customize the corresponding user interface according to specific requirements, and the DTA tool can also be used through the command line method, thereby further improving the applicability and usability of the tool. At the same time, since the same core logic and test framework are used on different platforms, the development and maintenance costs are significantly reduced. In addition, this solution greatly simplifies the deployment process of the tool on new platforms, reduces the errors and redundancies that may occur during the porting process, and improves the efficiency. In short, the DTA tool provided by this solution can achieve rapid cross-platform adaptation and ensure the consistency of test logic, solve the main pain points in the prior art, significantly improve the flexibility and generality of the test tool, and at the same time avoid the maintenance complexity and low adaptation efficiency problems that may be brought by the prior art.

[0034] The following will explain in detail the DTA tool, NFC test method, device, and medium for cross-platform NFC testing provided by the present disclosure with reference to the accompanying drawings.

[0035] To separate the core business logic of the DTA tool from the user interface and enable it to run properly on multiple operating systems, the present disclosure proposes a technical solution with a layered design. The DTA tool is divided into multiple independent layers to achieve the separation of responsibilities for each functional layer. By clearly defining the layer division, the core logic layer of DTA testing is decoupled from other functional layers to achieve efficient cross-platform adaptation and maintenance.

[0036] Figure 1 The structure diagram of the DTA tool for cross-platform NFC testing provided by an exemplary embodiment of the present disclosure is as Figure 1 shown. The DTA tool includes a user interface layer 110, a core logic processing layer 120, and a protocol stack interface layer 130. Among them, the user interface layer 110, the core logic processing layer 120, and the protocol stack interface layer 130 are independent of each other, and each layer implements different functions.

[0037] Specifically, the user interface layer 110 is related to the operating system to which the NFC chip to be tested belongs and is used to receive the test parameters configured by the user. In this embodiment, the user interface layer 110 is responsible for user interface display and interaction functions, and can design corresponding UIs according to the characteristics of different operating systems (such as Android, OHOS, Linux, etc.). In addition, the user interface layer 110 also supports using the DTA tool through the command line.

[0038] The core logic processing layer 120 is used to receive the test parameters passed by the user interface layer 110 and test the NFC chip and the protocol stack based on the test parameters and the DTA executable binary file. Among them, the protocol stack is called through the protocol stack interface layer during the test. The DTA executable binary file refers to the core test logic file that needs to be executed to test the NFC chip and the protocol stack through the DTA tool. It is obtained through compilation and stored in the device where the operating system is located. It needs to be loaded and executed during the test. In this embodiment, the core logic processing layer 120 contains the core logic related to DTA testing and is used to complete the performance testing of the NFC chip and the protocol stack. The core logic processing layer 120 directly interacts with the protocol stack through the protocol stack interface layer 130 and is responsible for the initialization of the test task, the loading of configuration parameters, and the processing and analysis of data.

[0039] The protocol stack interface layer 130 is used to provide a standardized interface for the core logic processing layer 120 to call the protocol stack. In this embodiment, the protocol stack interface layer 130 is the basis of the entire architecture, responsible for exposing the interfaces required by the core logic processing layer 120, providing standardized interfaces for the core logic processing layer 120 to call, and shielding the complexity of the underlying protocol stack implementation. Through the protocol stack interface layer 130, the core logic processing layer 120 is decoupled from the underlying protocol stack implementation, and at the same time, the differences in the specific protocol stack implementation are shielded, enhancing the adaptation ability of the DTA tool. Through the protocol stack interface layer 130, the core logic processing layer 120 can call the protocol stack functions in a unified manner, ensuring the compatibility and flexibility between different protocol stacks.

[0040] The DTA tool for cross-platform NFC testing provided by the embodiments of the present disclosure includes an independent user interface layer, a core logic processing layer, and a protocol stack interface layer. The user interface layer is related to the operating system to which the NFC chip to be tested belongs and is used to receive the test parameters configured by the user. The core logic processing layer is used to receive the test parameters passed by the user interface layer and test the NFC chip and the protocol stack based on the test parameters and the DTA executable binary file. Among them, the protocol stack is called through the protocol stack interface layer during the test process. By adopting the solution of the present disclosure, through the design of different functional layers, and each functional layer is independent of each other, the separation of responsibilities and decoupling of each functional layer are realized. Different operating systems can share a set of test logics. When it is necessary to be ported to different platforms, only the user interface layer needs to be developed according to the platform, so that the DTA tool can run normally in multiple operating systems, improving the applicability and usability of the DTA tool, greatly simplifying the development and maintenance work, and realizing efficient cross-platform adaptation and maintenance; moreover, through the protocol stack interface layer, a standardized interface required for the core logic processing layer to call the protocol stack is provided, so that the core logic processing layer is decoupled from the underlying protocol stack implementation, and at the same time, the differences in the specific protocol stack implementation are shielded, enhancing the adaptation ability of the DTA tool.

[0041] In an alternative embodiment of the present disclosure, the core logic processing layer 120 and the protocol stack interface layer 130 are developed in C language, and the development language of the user interface layer 110 is selected according to the operating system to which the NFC chip belongs. In this embodiment, the core logic processing layer 120 is developed in C language to ensure that the core code can be compiled and run on multiple operating systems, thereby achieving cross-platform adaptability. Due to the strong cross-platform compatibility advantage of C language, C language is used in this embodiment to develop the core logic processing layer 120, enabling the core logic processing layer 120 to maintain platform independence, ensuring cross-platform consistency, and thus realizing sharing of the same set of test logic between different platforms, greatly simplifying the development and maintenance work, and effectively reducing the cost of cross-system adaptation and maintenance. The protocol stack interface layer 130 is also developed in C language to ensure the compatibility of the interface with the core logic processing layer 120 and provide a standardized interface for calling. The user interface layer 110 selects a suitable mainstream development language according to the operating system to which the NFC chip belongs. For example, on the Android platform, Java or Kotlin programming languages are used to develop the UI, and on the Linux platform, Qt or GTK, etc. are used to develop the UI. Selecting a suitable programming language to develop the UI according to the platform can not only meet the user interface requirements but also optimize the development efficiency.

[0042] In the embodiment of the present disclosure, the user interface layer 110 is mainly responsible for the interaction between users during testing, and different interaction functions can be implemented by designing different modules. In an alternative embodiment of the present disclosure, the user interface layer 110 includes: a parameter setting module, an operation control module, and a log display module.

[0043] Among them, the parameter setting module is used to receive the test parameters configured by the user. In this embodiment, the parameter setting module provides a friendly input interface, through which the user can configure the test parameters required for testing with the DTA tool (such as parameters like poll_tech, listen_tech, etc.). Optionally, the parameter setting module may also include a parameter verification function to verify the test parameters configured by the user, avoiding problems that may affect the test process due to incorrect input of test parameters.

[0044] The operation control module is used to receive the control operations of the user on the DTA tool. In this embodiment, the operation control module can provide control operations such as starting, pausing, exiting the DTA tool, and loading the DTA binary file to control the test process. Optionally, the operation control module may also provide a command-line input function, through which the user can also control the operation of the DTA tool via the command line; or, the operation control module may also provide corresponding operation buttons, and the user can control the operation of the DTA tool by operating the buttons.

[0045] The log display module is used to display the log information during the test process and receive the user's processing operations on the log information. In this embodiment, the log display module can display the log information during the test process in real time, including the test progress, key results, error prompts, and so on. At the same time, the user can also perform processing operations on the log information through the log display module. The processing operations include but are not limited to log filtering and export functions, which are convenient for the user to debug and record the results. It should be noted that the UI layer does not contain any test logic, and its responsibility is limited to providing an interactive interface and parameter transfer, which is completely decoupled from the core test logic, thereby reducing the system complexity and simplifying the maintenance work.

[0046] In an alternative embodiment of the present disclosure, when the core logic processing layer 120 performs a test, it parses the received test parameters, generates NFC register parameters for the test based on the parsed test parameters, and then executes the DTA executable binary file based on the NFC register parameters to implement the test of the NFC chip and the protocol stack.

[0047] Further, in an alternative embodiment of the present disclosure, the core logic processing layer 120 is also used to call and test the digital protocol related to the NFC chip and the polling mode through the protocol stack interface layer 130 in the digital protocol test; in the tag operation test, call the protocol stack matching the type of the NFC tag through the protocol stack interface layer 130 for testing.

[0048] In the embodiment of the present disclosure, the core logic processing layer 120, as the core logic module of the DTA tool, its implementation steps include parameter reception and parsing, and the execution of the core test logic. First, the core logic processing layer 120 receives the test parameters configured by the user through the command line or the user interface layer 110 and parses the test parameters. After the parsing is completed, NFC register parameters for the test are generated according to the configured test parameters, which is a key step in the DTA initialization work. Subsequently, based on the generated NFC register parameters, the core logic processing layer 120 executes the core test logic in the DTA executable binary file according to the test requirements and the card type to complete different test tasks. Among them, the test requirements can be provided by test cases, and different test tasks use different test cases; the card type includes the type of NFC tag. The core test logic includes:

[0049] (1) In the digital protocol (DP) test, call and verify the digital protocol related to the NFC device (the device installed with the NFC chip) and the polling mode in the underlying protocol stack through the protocol stack interface layer 130 to ensure the correctness of the protocol implementation.

[0050] (2) In the Tag Operation (TO) test, tasks such as data verification of NFC Data Exchange Format (NDEF) for different types of NFC tags (such as TYPE 1 TAG, TYPE 2 TAG, etc.), NDEF data reading and writing, tag permission setting, and performance testing are performed.

[0051] In this embodiment, the core logic processing layer 120 executes the core test logic, and supports different test cases by calling the protocol stack interface layer 130, ensuring that the NFC chip can pass comprehensive functional and compatibility verification.

[0052] For the DTA tool provided by the present disclosure, the test process is started by the user interface layer. After the configuration initialization is completed through parameter setting and passing, the core logic processing layer executes the core test logic and calls the protocol stack interface layer to complete specific operations.

[0053] Figure 2 It is a schematic flowchart of an NFC test method based on a DTA tool provided by an exemplary embodiment of the present disclosure. This method can be executed by the NFC test device based on the DTA tool provided by the embodiments of the present disclosure. The device can be implemented in software and / or hardware and can be integrated in an electronic device. The DTA tool for cross-platform NFC testing described in the foregoing embodiments is deployed on the electronic device to complete the testing of the NFC chip and the protocol stack.

[0054] As Figure 2 shown, the NFC test method based on the DTA tool may include the following steps:

[0055] Step 201, receive the test parameters configured by the user through the user interface layer of the DTA tool, and pass the test parameters to the core logic processing layer of the DTA tool.

[0056] Among them, the DTA tool includes a user interface layer, a core logic processing layer, and a protocol stack interface layer. The functions of each layer can be referred to the relevant descriptions of the foregoing embodiments and will not be elaborated here.

[0057] In this embodiment, the user interface layer is responsible for the user interface display and interaction functions. The user can configure the test parameters required for NFC testing through the user interface layer and pass the test parameters to the core logic processing layer through the user interface layer.

[0058] Step 202, test the NFC chip and the protocol stack through the core logic processing layer based on the test parameters and the DTA executable binary file. Among them, the protocol stack is called through the protocol stack interface layer during the test process.

[0059] Among them, the DTA executable binary file refers to the core test logic file that needs to be executed for testing the NFC chip and protocol stack through the DTA tool. It is obtained through compilation, stored in the device where the operating system is located, and loaded and executed during testing.

[0060] In this embodiment, after the core logic processing layer receives the test parameters configured by the user, the core logic processing layer can test the NFC chip and protocol stack based on the test parameters and the DTA executable binary file. First, the core logic processing layer parses the received test parameters. After the parsing is completed, NFC register parameters for testing are generated according to the test parameters. Subsequently, the core logic processing layer executes the core test logic of the DTA executable binary file according to the test requirements and card type to complete the NFC test. During the test, the core logic processing layer calls the required protocol stack through the protocol stack interface layer according to the test needs to support different test cases.

[0061] In an alternative embodiment of the present disclosure, the electronic device can also receive a control operation initiated by the user on the DTA tool through the user interface layer and respond to the received control operation; or, it can also receive a control operation initiated by the user on the DTA tool through the command line and respond to the received control operation.

[0062] Among them, the control operations include but are not limited to starting, pausing, and exiting the DTA tool, as well as loading the DTA executable binary file, etc.

[0063] Exemplarily, control operation buttons with different functions can be set on the UI provided by the user interface layer, and the user initiates the corresponding control operation by triggering the control operation button.

[0064] The NFC testing method based on the DTA tool provided by the embodiments of the present disclosure is implemented based on the DTA tool provided by the foregoing embodiments. The DTA tool includes an independent user interface layer, a core logic processing layer, and a protocol stack interface layer. The user interface layer is related to the operating system to which the NFC chip to be tested belongs and is used to receive test parameters configured by the user. The core logic processing layer is used to receive the test parameters transmitted by the user interface layer and test the NFC chip and the protocol stack based on the test parameters and the DTA executable binary file. Among them, the protocol stack is called through the protocol stack interface layer during the testing process. By adopting the solution of the present disclosure, through the design of different functional layers, and each functional layer is independent of each other, the separation of responsibilities and decoupling of each functional layer are realized. Different operating systems can share a set of test logics. When it is necessary to be transplanted to different platforms, only the user interface layer needs to be developed according to this platform, so that the DTA tool can run normally in multiple operating systems, improving the applicability and ease of use of the DTA tool, greatly simplifying the development and maintenance work, and realizing efficient cross-platform adaptation and maintenance. Moreover, by providing a standardized interface required for the core logic processing layer to call the protocol stack through the protocol stack interface layer, the core logic processing layer is decoupled from the underlying protocol stack, and at the same time, the differences in the specific protocol stack implementation are shielded, enhancing the adaptation ability of the DTA tool. Therefore, for NFC testing based on this DTA tool, only the user interface layer adapted to the operating system needs to be developed to transplant the DTA tool to the operating system for NFC testing. During the testing, the user can complete operations such as parameter configuration and tool control through the user interface layer, simplifying the cross-platform testing process and improving the convenience and flexibility of testing.

[0065] Figure 3 FIG. shows the architecture schematic diagram of the DTA tool according to a specific embodiment of the present disclosure, as Figure 3 shown, the DTA tool includes a user interface layer, a core logic processing layer, and a protocol stack interface layer. Adapted UIs can be developed according to different operating systems (such as Android, OHOS, Linux, etc.). Test parameters can be configured through the user interface layer and transmitted to the core logic processing layer. The core logic processing layer calls the underlying protocol stack through the standardized interface provided by the protocol stack interface layer. The test process of this solution is started by the UI layer. After the configuration initialization is completed through parameter setting and transmission, the core logic processing layer executes the core test logic and calls the protocol stack interface layer to complete specific operations. During the testing process, the real-time feedback log information will help the user monitor and debug. The overall process is as Figure 4 shown.

[0066] Figure 4 FIG. shows the schematic flow chart of the NFC testing method based on the DTA tool according to a specific embodiment of the present disclosure, as Figure 4As shown, after the core logic processing layer receives the test parameters configured by the user, it parses the test parameters, opens the protocol stack for calling during the test, sets the DTA-related parameters (i.e., the NFC register parameters for testing) according to the parsed test parameters, and then performs a card reading callback or a card emulation callback according to the test requirements. Among them, in the card reading callback, the card reading test cases of different NFC tag types are executed for testing, and in the card emulation callback, the card emulation test cases of different NFC tag types are executed for testing. Figure 4 Among them, the T1T test represents the test case for the first type of tag, the T2T test represents the test case for the second type of tag, the T2T test represents the test case for the second type of tag, and so on. After the test is completed, the protocol stack is closed to end the current test process.

[0067] To implement the above embodiments, the present disclosure also provides an NFC test device based on the DTA tool.

[0068] Figure 5 FIG. is a schematic structural diagram of an NFC test device based on the DTA tool provided by an embodiment of the present disclosure. The device is implemented in a software and / or hardware manner and can be integrated into an electronic device. The DTA tool for cross-platform NFC testing described in the foregoing embodiments is deployed on the electronic device to complete the testing of the NFC chip and the protocol stack.

[0069] As Figure 5 shown, the NFC test device 30 based on the DTA tool may include: a parameter configuration module 310 and a test module 320.

[0070] Among them, the parameter configuration module 310 is used to receive the test parameters configured by the user through the user interface layer of the DTA tool and transfer the test parameters to the core logic processing layer of the DTA tool;

[0071] The test module 320 is used to test the NFC chip and the protocol stack through the core logic processing layer based on the test parameters and the DTA executable binary file. Among them, the protocol stack is called through the protocol stack interface layer during the test.

[0072] Optionally, the NFC test device 30 based on the DTA tool further includes:

[0073] A control module for receiving and responding to the control operations initiated by the user on the DTA tool through the user interface layer; or, receiving and responding to the control operations initiated by the user on the DTA tool through the command line.

[0074] The NFC test device based on the DTA tool provided by the embodiments of the present disclosure for an electronic device can execute the NFC test method based on the DTA tool provided by the embodiments of the present disclosure, and has the corresponding functional modules and beneficial effects for executing the method. The content not described in detail in the device embodiments of the present disclosure can be referred to the description in any method embodiment of the present disclosure.

[0075] The embodiments of the present disclosure also provide a computer program product, including computer programs / instructions, which when executed by a processor, implement the NFC test method based on the DTA tool provided by any embodiment of the present disclosure.

[0076] According to one or more embodiments of the present disclosure, the present disclosure provides an electronic device, including:

[0077] A processor;

[0078] A memory for storing executable instructions of the processor;

[0079] The processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the NFC test method based on the DTA tool provided by any embodiment of the present disclosure.

[0080] According to one or more embodiments of the present disclosure, the present disclosure provides a computer-readable storage medium, and the storage medium stores a computer program for implementing the NFC test method based on the DTA tool provided by any embodiment of the present disclosure.

[0081] It should be noted that the above-mentioned computer-readable medium in the present disclosure can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of a computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, and this computer-readable signal medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on a computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0082] The above-mentioned computer-readable medium can be included in the above-mentioned electronic device; or it can exist separately without being assembled into the electronic device.

[0083] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram can represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks can occur in a different order from that marked in the accompanying drawings. For example, two consecutive blocks shown can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, as well as the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0084] The units involved in the embodiments described in this disclosure can be implemented in software or in hardware. In some cases, the name of a unit does not constitute a limitation on the unit itself.

[0085] The functions described above herein can be performed, at least in part, by one or more hardware logic components. By way of example, and without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.

[0086] In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0087] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles applied. Those skilled in the art should understand that the scope of the disclosure involved in this disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, a technical solution formed by mutually replacing the above features with (but not limited to) technical features having similar functions disclosed in this disclosure.

[0088] Moreover, although the operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although several specific implementation details are included in the foregoing discussion, these should not be construed as limitations on the scope of the present disclosure. Certain features that are described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment may also be implemented separately or in any suitable sub-combination in multiple embodiments.

[0089] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A DTA tool for cross-platform NFC testing, characterized in that, including: a user interface layer, which is related to the operating system to which the NFC chip to be tested belongs, and is used to receive test parameters configured by the user; a core logic processing layer, which is used to receive the test parameters transmitted by the user interface layer, and test the NFC chip and protocol stack based on the test parameters and the DTA executable binary file, wherein the protocol stack is called through the protocol stack interface layer during the test; a protocol stack interface layer, which is used to provide a standardized interface required for the core logic processing layer to call the protocol stack; wherein, the user interface layer, the core logic processing layer and the protocol stack interface layer are independent of each other.

2. The DTA tool according to claim 1, wherein The core logic processing layer and the protocol stack interface layer are developed in C language; The development language of the user interface layer is selected according to the operating system to which the NFC chip belongs.

3. The DTA tool according to claim 1, characterized in that, The user interface layer includes: a parameter setting module, which is used to receive test parameters configured by the user; an operation control module, which is used to receive the control operation of the user on the DTA tool; a log display module, which is used to display the log information during the test, and receive the processing operation of the user on the log information.

4. The DTA tool according to claim 1, characterized in that, The core logic processing layer is further used for: parsing the received test parameters, and generating NFC register parameters for testing according to the parsed test parameters; executing the DTA executable binary file based on the NFC register parameters to implement the test of the NFC chip and protocol stack.

5. The DTA tool according to claim 4, wherein The core logic processing layer is further used for: in the digital protocol test, calling the digital protocol related to the NFC chip and polling mode through the protocol stack interface layer for testing; in the tag operation test, calling the protocol stack matching the type of the NFC tag through the protocol stack interface layer for testing.

6. A method for NFC testing based on a DTA tool, characterized in that, The DTA tool is the DTA tool for cross-platform NFC testing according to any one of claims 1-5, and the method includes: receiving the test parameters configured by the user through the user interface layer of the DTA tool, and transmitting the test parameters to the core logic processing layer of the DTA tool; testing the NFC chip and protocol stack by the core logic processing layer based on the test parameters and the DTA executable binary file, wherein the protocol stack is called through the protocol stack interface layer during the test.

7. The NFC testing method according to claim 6, wherein The method further includes: receiving and responding to the control operation initiated by the user on the DTA tool through the user interface layer; or, receiving and responding to the control operation initiated by the user on the DTA tool through the command line.

8. An NFC test device based on a DTA tool, characterized in that, The DTA tool is the DTA tool for cross-platform NFC testing according to any one of claims 1-5, and the device includes: a parameter configuration module, which is used to receive the test parameters configured by the user through the user interface layer of the DTA tool, and transmit the test parameters to the core logic processing layer of the DTA tool; a test module, which is used to test the NFC chip and protocol stack by the core logic processing layer based on the test parameters and the DTA executable binary file, wherein the protocol stack is called through the protocol stack interface layer during the test.

9. An electronic device, characterized in that, The electronic device includes: a processor; a memory for storing executable instructions executable by the processor; The processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the NFC testing method based on the DTA tool according to any one of claims 6-7 above.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and the computer program is used to implement the NFC testing method based on the DTA tool according to any one of claims 6-7 above.