CN110764772B - Method and device for being compatible with multiple NFCCs - Google Patents
Method and device for being compatible with multiple NFCCs Download PDFInfo
- Publication number
- CN110764772B CN110764772B CN201910823821.8A CN201910823821A CN110764772B CN 110764772 B CN110764772 B CN 110764772B CN 201910823821 A CN201910823821 A CN 201910823821A CN 110764772 B CN110764772 B CN 110764772B
- Authority
- CN
- China
- Prior art keywords
- nfcc
- compatible
- program
- module
- characteristic information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/42—Syntactic analysis
- G06F8/427—Parsing
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention relates to the technical field of wireless communication, in particular to a method and a device for being compatible with a plurality of NFCCs, firstly, an execution program corresponding to the NFCC is obtained, one or a plurality of execution programs are compiled and packed to generate an NFCC compatible program, and the NFCC compatible program comprises the execution program corresponding to the NFCC and characteristic information; analyzing the characteristic information corresponding to the NFCC to be compatible, and redirecting the corresponding execution program in the NFCC compatible program according to the characteristic information; finally, loading and executing the redirected execution program to be compatible with the NFCC to be compatible, and identifying the characteristic information of the NFCC through software and adapting the corresponding NFCC according to the characteristic information of the NFCC, thereby realizing that the same system is compatible with a plurality of NFCC and obviously reducing the development and use cost.
Description
Technical Field
The invention relates to the technical field of wireless communication, in particular to a method and a device compatible with multiple NFCCs.
Background
For products supporting NFC functions, especially for products with long life cycle, it is often possible to use NFCCs of different types from the same manufacturer, or even NFCCs of different types from different manufacturers, for example, initially the V1.1 motherboard uses NFCC1 with model PN547 of the encampl semiconductor company, but later the V1.2 motherboard is upgraded to NFCC2 with model PN548 of the encampl semiconductor company.
The currently known scheme is that a main board of the NFCC1 adopts a system only comprising NFCC1 software, a main board of the NFCC2 adopts a system only comprising NFCC2 software, and different types of NFCCs correspond to different systems. If more models of NFCC controllers are to be added, more corresponding versions of the system need to be compiled. This brings great workload to the relevant parties such as developers, testers, after-market personnel, users, etc.
Disclosure of Invention
In order to solve the problems, the invention provides a method and a device for being compatible with multiple NFCCs, which are characterized in that the characteristic information of the NFCCs is identified through software, and the corresponding NFCCs are adapted according to the characteristic information of the NFCCs, so that the same system is compatible with multiple NFCCs, and the development and use cost is obviously reduced.
In order to achieve the above object, the present invention provides the following technical solutions:
a method of compatibility with multiple NFCCs, comprising:
acquiring an execution program corresponding to an NFCC (network function carrier), compiling and packaging one or more execution programs to generate an NFCC compatible program, wherein the NFCC compatible program comprises the execution program and characteristic information corresponding to the NFCC;
analyzing characteristic information corresponding to the NFCC to be compatible, and redirecting a corresponding execution program in the NFCC compatible program according to the characteristic information;
and loading and executing the redirected execution program to be compatible with the NFCC to be compatible.
Preferably, the acquiring an execution program corresponding to an NFCC, compiling and packaging one or more execution programs to generate an NFCC compatible program, where the NFCC compatible program includes an execution program corresponding to the NFCC and feature information, and includes:
identifying the same codes and the different codes in a plurality of execution programs, taking the different codes in the execution programs as the corresponding characteristic information of the NFCC, sharing the same codes, compiling the different codes in each execution program respectively, and compiling and packaging the same codes and the different codes to generate the NFCC compatible program.
Further, the analyzing the feature information corresponding to the NFCC to be compatible, redirecting the corresponding execution program in the NFCC compatible program according to the feature information, including:
establishing a table of NFCC to be compatible, wherein the table contains characteristic information corresponding to the NFCC to be compatible;
identifying an NFCC which is successfully communicated with DH, registering the NFCC as a communication node, and loading a driver for the NFCC;
analyzing the characteristic information corresponding to the NFCC, and matching the characteristic information with the table to obtain a compatible NFCC;
redirecting an execution program corresponding to the compatible NFCC in the NFCC compatible program.
Preferably, the identifying an NFCC that successfully communicates with a DH, registering the NFCC as a communication node, and loading a driver for the NFCC includes:
generating a power-on interface program according to power-on time sequence packages of all NFCCs to be compatible, wherein the power-on interface program is used for detecting the validity of NFCC hardware;
executing the power-on interface program, and sequentially inquiring each NFCC to be compatible to obtain reset and return state information corresponding to the NFCC to be compatible;
judging whether each NFCC to be compatible and DH normally communicate according to the reset and return state information, and taking the NFCC to be compatible which normally communicates with DH as the NFCC which successfully communicates with DH;
registering the NFCC which is successfully communicated with the DH as a communication node, and loading a driver for the NFCC which is successfully communicated with the DH.
Further, the parsing the feature information corresponding to the NFCC, and matching the feature information with the table to obtain a compatible NFCC, specifically:
executing the power-on interface program, starting an NFCC which is successfully communicated with DH, and triggering a query instruction to the NFCC to detect the model of the NFCC;
packaging a reset and initialized command interface, and calling the command interface to reset and initialize the NFCC which is successfully communicated with the DH;
and packaging an analysis interface for analyzing the NFCC information, and calling the analysis interface to analyze the characteristic information of the NFCC which is successfully communicated with the DH.
An apparatus compatible with multiple NFCCs, comprising:
the compiling module is used for acquiring the executive programs corresponding to the NFCCs, compiling and generating the executive programs containing the characteristic information, and compiling and packaging one or more executive programs corresponding to the NFCCs respectively to generate NFCC compatible programs;
the redirection module is used for analyzing the characteristic information corresponding to the NFCC to be compatible and redirecting the corresponding execution program in the NFCC compatible program according to the characteristic information;
and the execution module is used for loading and executing the redirected execution program so as to be compatible with the NFCC to be compatible.
Preferably, the compiling module is specifically configured to:
identifying the same codes and the difference codes in a plurality of execution programs, sharing the same codes, compiling the difference codes in each execution program respectively, and compiling and packaging the same codes and the difference codes to generate the NFCC compatible program.
Further, the redirection module includes:
the table building module is used for building a table of the NFCC to be compatible, wherein the table contains characteristic information corresponding to the NFCC to be compatible;
the identification module is used for identifying an NFCC which is successfully communicated with DH, registering the NFCC as a communication node and loading a driver for the NFCC;
the analysis module is used for analyzing the characteristic information corresponding to the NFCC and matching the characteristic information with the table to obtain a compatible NFCC;
and the corresponding module is used for redirecting an execution program corresponding to the compatible NFCC in the NFCC compatible program.
Further, the identification module includes:
the power-on interface program generation module is used for generating a power-on interface program according to power-on time sequence packages of all the NFCCs to be compatible, and the power-on interface program is used for detecting the hardware validity of the NFCC;
the state information obtaining module is used for executing the power-on interface program, sequentially inquiring each NFCC to be compatible, and obtaining reset and return state information corresponding to the NFCC to be compatible;
the communication state judging module is used for judging whether each NFCC to be compatible and DH normally communicate according to the reset and return state information, and taking the NFCC to be compatible which normally communicates with DH as the NFCC which successfully communicates with DH;
and the communication connection module is used for registering the NFCC which is successfully communicated with the DH as a communication node and loading a driver for the NFCC which is successfully communicated with the DH.
Further, the parsing module includes:
the NFCC model detection module is used for executing the power-on interface program, starting an NFCC which is successfully communicated with DH, and triggering a query instruction to the NFCC to detect the model of the NFCC;
the command interface encapsulation module is used for encapsulating a reset and initialized command interface and calling the command interface to reset and initialize the NFCC which is successfully communicated with the DH;
and the analysis interface packaging module is used for packaging an analysis interface for analyzing the NFCC information and calling the analysis interface to analyze the characteristic information of the NFCC which is successfully communicated with the DH.
The beneficial effects of the invention are as follows: the invention discloses a method and a device for being compatible with a plurality of NFCC, firstly, an execution program corresponding to the NFCC is obtained, one or a plurality of execution programs are compiled and packed to generate an NFCC compatible program, and the NFCC compatible program comprises the execution program and characteristic information corresponding to the NFCC; analyzing the characteristic information corresponding to the NFCC to be compatible, and redirecting the corresponding execution program in the NFCC compatible program according to the characteristic information; and finally, loading and executing the redirected execution program to be compatible with the NFCC to be compatible. According to the invention, the characteristic information of the NFCC is identified through software, and the corresponding NFCC is adapted according to the characteristic information of the NFCC, so that the same system is compatible with a plurality of NFCC, and the development and use cost is obviously reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings that are needed in the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a method for implementing multiple NFCCs compatibility according to an embodiment of the present invention;
FIG. 2 is a flow chart of step S200 according to an embodiment of the present invention;
FIG. 3 is a flowchart of step S220 according to an embodiment of the present invention;
FIG. 4 is a flowchart of step S230 according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus compatible with multiple NFCCs according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a redirection module according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of an identification module according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an parsing module according to an embodiment of the invention.
Detailed Description
The conception, specific structure, and technical effects produced by the present disclosure will be clearly and completely described below in connection with the embodiments and the drawings to fully understand the objects, aspects, and effects of the present disclosure. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other.
Referring to fig. 1, a method for compatibility with multiple NFCCs is shown in fig. 1, including the following steps:
step S100, acquiring an execution program corresponding to an NFCC, compiling and packaging one or more execution programs to generate an NFCC compatible program, wherein the NFCC compatible program comprises the execution program corresponding to the NFCC and characteristic information;
and step S300, loading and executing the redirected execution program to be compatible with the NFCC to be compatible.
Firstly, acquiring an execution program corresponding to an NFCC, compiling and packaging one or more execution programs to generate an NFCC compatible program, integrating a plurality of independent execution programs, establishing a corresponding relation through characteristic information, and forming an index list of the execution programs, so that subsequent searching and calling are facilitated; compared with the simple accumulation processing mode for executing programs in the prior art, the system is more systematic, and when a new NFCC needs to be added, only the corresponding executing program needs to be added, so that the compatible expansion of the executing programs with a plurality of independent versions can be carried out; after compiling and packaging each NFCC compatible program, the NFCC of any version can be adapted, and the corresponding execution program can be matched in the NFCC compatible program by analyzing the characteristic information corresponding to the NFCC to be compatible; the redirected executable program is then loaded and executed, thereby being compatible with the NFCC to be compatible. According to the embodiment of the disclosure, the characteristic information of the NFCC is identified through software, and the corresponding NFCC is adapted according to the characteristic information of the NFCC, so that the same system is compatible with multiple NFCC, one-time system adaptation for each version type of NFCC is not required, and the development and use cost is remarkably reduced.
In one embodiment, the step S100 may be:
adding unique identification information corresponding to the NFCC to each execution program, respectively compiling each execution program by taking the unique identification information as characteristic information corresponding to the NFCC, and packaging to generate an NFCC compatible program. In one example, the unique identification information may be a unique number corresponding to each NFCC, respectively, a unique name corresponding to each NFCC, respectively.
In this embodiment, additional unique identification information needs to be added, and one more step is needed in the process, but this method can be customized, and can adapt to version management specifications in the development process, so that subsequent management is facilitated.
In another preferred embodiment, the step S100 may be:
identifying the same codes and the different codes in a plurality of execution programs, taking the different codes in the execution programs as the corresponding characteristic information of the NFCC, sharing the same codes, compiling the different codes in each execution program respectively, and compiling and packaging the same codes and the different codes to generate the NFCC compatible program.
The same code in the embodiment may be understood as the same program code in the execution program, and the difference code may be understood as a unique program code in the execution program, and in this embodiment, by identifying the same code and the difference code in the execution program, existing feature information is reasonably utilized, and the difference code in the execution program is used as the feature information corresponding to the NFCC, without adding additional feature information, so that the difference code in each execution program is effectively utilized, which is more brief; by sharing the same code, storage and calling resources are saved, and the efficiency of NFCC compatible programs is effectively improved.
Referring to fig. 2, in a specific embodiment, the step S200 includes:
step S210, a table of NFCC to be compatible is established, wherein the table contains characteristic information corresponding to the NFCC to be compatible;
step S220, identifying an NFCC which is successfully communicated with DH, registering the NFCC as a communication node, and loading a driver for the NFCC;
step S230, analyzing the characteristic information corresponding to the NFCC, and matching the characteristic information with the table to obtain a compatible NFCC;
and step S240, redirecting an execution program corresponding to the compatible NFCC in the NFCC compatible program.
In this embodiment, a DH (Device Host) is built in a processor, where the processor includes, but is not limited to, a CPU, an ARM, and an FPGA, and a system kernel of the DH includes an NFCC driver, and in a startup process, an interface for detecting the validity of NFCC hardware is called by an initialization function of the NFCC driver, and by acquiring a reset state and a response state of the NFCC, it is possible to confirm whether communication between the DH and the NFCC is normal, and by traversing the NFCC supported in the NFCC compatible program, identify the NFCC with normal communication, thereby loading a driver on the NFCC with normal communication, and register as a communication node. The present embodiment can detect the NFCC that successfully communicates with the DH, but cannot specifically identify which type of NFCC, for example, NFCCs with types PN547 and PN548 may share the same NFCC driver, except that the application software of the two NFCCs is different, and the reset state and the response state of the two NFCCs are both successful, but specifically, PN547 or PN548 also needs to be completed in step S230.
Referring to fig. 3, in a specific embodiment, the step S220 includes:
step S221, a power-on interface program is generated according to the power-on time sequence package of each NFCC to be compatible.
The power-on interface program is used for detecting the validity of NFCC hardware; the NFCC hardware validity refers to whether the NFCC hardware can work and communicate normally.
Step S222, executing the power-on interface program, and sequentially inquiring each NFCC to be compatible to obtain reset and return state information corresponding to the NFCC to be compatible;
in one embodiment, in the step of sequentially querying each NFCC to be compatible, all NFCCs to be compatible may be completely traversed, or the traversal may be exited when a NFCC to be compatible with successful communication is encountered.
Step S223, judging whether each NFCC to be compatible and DH normally communicate according to the reset and return state information, and taking the NFCC to be compatible which normally communicates with DH as the NFCC which successfully communicates with DH;
step S224, register the NFCC that successfully communicates with DH as a communication node, and load a driver for the NFCC that successfully communicates with DH.
Referring to fig. 4, in a specific embodiment, the step S230 includes:
step S231, executing the power-on interface program, starting an NFCC which is successfully communicated with DH, and triggering a query instruction to the NFCC to detect the model of the NFCC;
step S232, packaging a reset and initialized command interface, and calling the command interface to reset and initialize the NFCC which is successfully communicated with the DH;
and step S233, packaging an analysis interface for analyzing the NFCC information, and calling the analysis interface to analyze the characteristic information of the NFCC which is successfully communicated with the DH.
Referring to fig. 5, embodiments provided by the present disclosure further include an apparatus compatible with multiple NFCCs, including:
the compiling module 100 is configured to obtain an execution program corresponding to an NFCC, compile the execution program to generate an execution program containing the feature information, compile and package one or more execution programs corresponding to NFCCs respectively to generate an NFCC compatible program;
the redirection module 200 is configured to parse feature information corresponding to an NFCC to be compatible, and redirect a corresponding execution program in the NFCC compatible program according to the feature information;
and the execution module 300 is configured to load and execute the redirected execution program to be compatible with the NFCC to be compatible.
In one embodiment, the compiling module 100 is specifically configured to:
adding unique identification information corresponding to the NFCC to each execution program, respectively compiling each execution program by taking the unique identification information as characteristic information corresponding to the NFCC, and packaging to generate an NFCC compatible program. In one example, the unique identification information may be a unique number corresponding to each NFCC, respectively, a unique name corresponding to each NFCC, respectively.
In another preferred embodiment, the compiling module 100 is specifically configured to:
identifying the same codes and the difference codes in a plurality of execution programs, sharing the same codes, compiling the difference codes in each execution program respectively, and compiling and packaging the same codes and the difference codes to generate the NFCC compatible program.
Referring to fig. 6, in one embodiment, the redirection module 200 includes:
a table building module 210, configured to build a table of NFCCs to be compatible, where the table includes feature information corresponding to the NFCCs to be compatible;
an identifying module 220, configured to identify an NFCC that successfully communicates with a DH, register the NFCC as a communication node, and load a driver for the NFCC;
the parsing module 230 is configured to parse the feature information corresponding to the NFCC, and match the feature information with the table to obtain a compatible NFCC;
and a corresponding module 240, configured to redirect an execution program corresponding to the compatible NFCC in the NFCC compatible program.
Referring to fig. 7, in one embodiment, the identification module 220 includes:
a power-on interface program generating module 221, configured to generate a power-on interface program according to a power-on timing sequence package of each NFCC to be compatible, where the power-on interface program is configured to detect the validity of NFCC hardware;
a state information obtaining module 222, configured to execute the power-on interface program, and query each NFCC to be compatible in sequence, to obtain reset and return state information corresponding to the NFCC to be compatible;
a communication state judging module 223, configured to judge whether each NFCC to be compatible and DH normally communicate according to the reset and return state information, and use the NFCC to be compatible that normally communicates with DH as an NFCC that successfully communicates with DH;
and the communication connection module 224 is configured to register the NFCC that is successfully communicated with the DH as a communication node, and load a driver for the NFCC that is successfully communicated with the DH.
Referring to fig. 8, in one embodiment, the parsing module 230 includes:
the NFCC type detection module 231 is configured to execute the power-on interface program, start an NFCC that is successfully communicated with DH, and trigger a query instruction to the NFCC to detect a type of the NFCC;
a command interface encapsulation module 232, configured to encapsulate a reset and initialized command interface, and call the command interface to reset and initialize the NFCC that is successfully communicated with the DH;
the parsing interface encapsulation module 233 is configured to encapsulate a parsing interface that parses NFCC information, and invoke the parsing interface to parse characteristic information of an NFCC that is successfully communicated with the DH.
Compared with the prior art, the beneficial effects of the device compatible with multiple NFCCs provided in the embodiment of the present invention are the same as the beneficial effects of the method compatible with multiple NFCCs provided in the embodiment, and are not described herein.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that the above-described embodiment method may be implemented by means of software plus necessary general hardware platform, and based on this understanding, the technical solution of the present invention may be embodied essentially or as a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above, including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, a face recognition terminal, a handheld terminal, or a network device, etc.) to perform the method according to the embodiments of the present invention.
While the present disclosure has been described in considerable detail and with particularity with respect to several described embodiments, it is not intended to be limited to any such detail or embodiments or any particular embodiment, but is to be considered as providing a broad interpretation of such claims by reference to the appended claims in light of the prior art and thus effectively covering the intended scope of the disclosure. Furthermore, the foregoing description of the present disclosure has been presented in terms of embodiments foreseen by the inventor for the purpose of providing a enabling description for enabling the enabling description to be available, notwithstanding that insubstantial changes in the disclosure, not presently foreseen, may nonetheless represent equivalents thereto.
Claims (8)
1. A method for compatibility with multiple NFCCs, comprising:
acquiring an execution program corresponding to an NFCC (network function carrier), compiling and packaging one or more execution programs to generate an NFCC compatible program, wherein the NFCC compatible program comprises the execution program and characteristic information corresponding to the NFCC;
analyzing characteristic information corresponding to the NFCC to be compatible, and redirecting a corresponding execution program in the NFCC compatible program according to the characteristic information;
loading and executing the redirected execution program to be compatible with the NFCC to be compatible;
the analyzing the feature information corresponding to the NFCC to be compatible, redirecting the corresponding execution program in the NFCC compatible program according to the feature information, including:
establishing a table of NFCC to be compatible, wherein the table contains characteristic information corresponding to the NFCC to be compatible;
identifying an NFCC which is successfully communicated with DH, registering the NFCC as a communication node, and loading a driver for the NFCC;
analyzing the characteristic information corresponding to the NFCC, and matching the characteristic information with the table to obtain a compatible NFCC;
redirecting an execution program corresponding to the compatible NFCC in the NFCC compatible program.
2. The method for implementing multiple NFCCs compatible with claim 1, wherein the obtaining an execution program corresponding to an NFCC, compiling and packaging one or more execution programs to generate an NFCC compatible program, where the NFCC compatible program includes an execution program and feature information corresponding to the NFCC, includes:
identifying the same codes and the different codes in a plurality of execution programs, taking the different codes in the execution programs as the corresponding characteristic information of the NFCC, sharing the same codes, compiling the different codes in each execution program respectively, and compiling and packaging the same codes and the different codes to generate the NFCC compatible program.
3. The method of claim 1, wherein the identifying an NFCC that successfully communicates with a DH, registering the NFCC as a communication node, and loading a driver for the NFCC comprises:
generating a power-on interface program according to power-on time sequence packages of all NFCCs to be compatible, wherein the power-on interface program is used for detecting the validity of NFCC hardware;
executing the power-on interface program, and sequentially inquiring each NFCC to be compatible to obtain reset and return state information corresponding to the NFCC to be compatible;
judging whether each NFCC to be compatible and DH normally communicate according to the reset and return state information, and taking the NFCC to be compatible which normally communicates with DH as the NFCC which successfully communicates with DH;
registering the NFCC which is successfully communicated with the DH as a communication node, and loading a driver for the NFCC which is successfully communicated with the DH.
4. The method for implementing multiple NFCCs compatible with claim 3, wherein said parsing feature information corresponding to said NFCC, and matching said feature information with said table, specifically:
executing the power-on interface program, starting an NFCC which is successfully communicated with DH, and triggering a query instruction to the NFCC to detect the model of the NFCC;
packaging a reset and initialized command interface, and calling the command interface to reset and initialize the NFCC which is successfully communicated with the DH;
and packaging an analysis interface for analyzing the NFCC information, and calling the analysis interface to analyze the characteristic information of the NFCC which is successfully communicated with the DH.
5. An apparatus for compatibility with multiple NFCCs, comprising:
the compiling module is used for acquiring the executive programs corresponding to the NFCCs, compiling and generating the executive programs containing the characteristic information, and compiling and packaging one or more executive programs corresponding to the NFCCs respectively to generate NFCC compatible programs;
the redirection module is used for analyzing the characteristic information corresponding to the NFCC to be compatible and redirecting the corresponding execution program in the NFCC compatible program according to the characteristic information;
the execution module is used for loading and executing the redirected execution program so as to be compatible with the NFCC to be compatible;
wherein the redirection module comprises:
the table building module is used for building a table of the NFCC to be compatible, wherein the table contains characteristic information corresponding to the NFCC to be compatible;
the identification module is used for identifying an NFCC which is successfully communicated with DH, registering the NFCC as a communication node and loading a driver for the NFCC;
the analysis module is used for analyzing the characteristic information corresponding to the NFCC and matching the characteristic information with the table to obtain a compatible NFCC;
and the corresponding module is used for redirecting an execution program corresponding to the compatible NFCC in the NFCC compatible program.
6. The apparatus of claim 5, wherein the compiling module is specifically configured to:
identifying the same codes and the difference codes in a plurality of execution programs, sharing the same codes, compiling the difference codes in each execution program respectively, and compiling and packaging the same codes and the difference codes to generate the NFCC compatible program.
7. The apparatus compatible with multiple NFCCs of claim 5, wherein the identification module comprises:
the power-on interface program generation module is used for generating a power-on interface program according to power-on time sequence packages of all the NFCCs to be compatible, and the power-on interface program is used for detecting the hardware validity of the NFCC;
the state information obtaining module is used for executing the power-on interface program, sequentially inquiring each NFCC to be compatible, and obtaining reset and return state information corresponding to the NFCC to be compatible;
the communication state judging module is used for judging whether each NFCC to be compatible and DH normally communicate according to the reset and return state information, and taking the NFCC to be compatible which normally communicates with DH as the NFCC which successfully communicates with DH;
and the communication connection module is used for registering the NFCC which is successfully communicated with the DH as a communication node and loading a driver for the NFCC which is successfully communicated with the DH.
8. The apparatus compatible with multiple NFCCs of claim 7, wherein the parsing module comprises:
the NFCC model detection module is used for executing the power-on interface program, starting an NFCC which is successfully communicated with DH, and triggering a query instruction to the NFCC to detect the model of the NFCC;
the command interface encapsulation module is used for encapsulating a reset and initialized command interface and calling the command interface to reset and initialize the NFCC which is successfully communicated with the DH;
and the analysis interface packaging module is used for packaging an analysis interface for analyzing the NFCC information and calling the analysis interface to analyze the characteristic information of the NFCC which is successfully communicated with the DH.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910823821.8A CN110764772B (en) | 2019-09-02 | 2019-09-02 | Method and device for being compatible with multiple NFCCs |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910823821.8A CN110764772B (en) | 2019-09-02 | 2019-09-02 | Method and device for being compatible with multiple NFCCs |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110764772A CN110764772A (en) | 2020-02-07 |
CN110764772B true CN110764772B (en) | 2023-04-25 |
Family
ID=69329191
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910823821.8A Active CN110764772B (en) | 2019-09-02 | 2019-09-02 | Method and device for being compatible with multiple NFCCs |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110764772B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10095537B1 (en) * | 2016-03-22 | 2018-10-09 | Amazon Technologies, Inc. | Driver version identification and update system |
CN109697079A (en) * | 2018-12-13 | 2019-04-30 | 杭州迪普科技股份有限公司 | The update method and device of bootstrap loader |
CN110073301A (en) * | 2017-08-02 | 2019-07-30 | 强力物联网投资组合2016有限公司 | The detection method and system under data collection environment in industrial Internet of Things with large data sets |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2906952B1 (en) * | 2006-10-05 | 2009-02-27 | Inside Contactless Sa | METHOD FOR MUTUAL AUTHENTICATION BETWEEN A COMMUNICATION INTERFACE AND A HOST PROCESSOR OF AN NFC CHIPSET |
US9887743B2 (en) * | 2012-10-29 | 2018-02-06 | Qualcomm Incorporated | Methods and apparatus for discovering tag talks first devices |
US8949815B2 (en) * | 2013-05-31 | 2015-02-03 | Microsoft Corporation | Driver installation for targeted and non-present devices |
CN105242917A (en) * | 2015-09-08 | 2016-01-13 | 珠海全志科技股份有限公司 | Method and apparatus for Android device to use WiFi module compatibly |
CN105354071A (en) * | 2015-12-15 | 2016-02-24 | 武汉长光科技有限公司 | Method for realizing compatibility between embedded software and hardware |
CN107251069B (en) * | 2016-01-28 | 2020-09-29 | 华为技术有限公司 | Near field communication payment method and terminal |
CN108287720B (en) * | 2018-02-08 | 2021-06-11 | 深圳创维-Rgb电子有限公司 | Software compiling method, device, equipment and storage medium |
-
2019
- 2019-09-02 CN CN201910823821.8A patent/CN110764772B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10095537B1 (en) * | 2016-03-22 | 2018-10-09 | Amazon Technologies, Inc. | Driver version identification and update system |
CN110073301A (en) * | 2017-08-02 | 2019-07-30 | 强力物联网投资组合2016有限公司 | The detection method and system under data collection environment in industrial Internet of Things with large data sets |
CN109697079A (en) * | 2018-12-13 | 2019-04-30 | 杭州迪普科技股份有限公司 | The update method and device of bootstrap loader |
Also Published As
Publication number | Publication date |
---|---|
CN110764772A (en) | 2020-02-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105718289A (en) | Component relationship establishing method and equipment | |
CN113407362A (en) | SOMEIP communication intermediate layer implementation method and system based on SOA architecture of vehicle-mounted Android system | |
CN110058864A (en) | The dispositions method and device of micro services | |
CN111736954A (en) | Multi-intelligent contract virtual machine implementation method, multi-intelligent contract virtual machine and system | |
CN111008046B (en) | Cross-platform dynamic loading and dynamic management system for software radar components | |
CN110457013B (en) | Program component configuration device and method | |
CN112463123A (en) | Task compiling method, device, network node, system and storage medium | |
US9632804B2 (en) | Method, apparatus, and communication system for implementing internet application | |
CN111966390A (en) | Project construction method, system, terminal device and storage medium | |
CN112114896A (en) | Plug-in framework and method for service function expansion | |
CN112015537A (en) | Method, system, terminal device and storage medium for executing data processing task | |
CN110764772B (en) | Method and device for being compatible with multiple NFCCs | |
CN113127329B (en) | Script debugging method and device and computer storage medium | |
CN111352631B (en) | Interface compatibility detection method and device | |
CN117411906A (en) | Implementation method and system of RTOS (real time operating System) embedded in QuickJS engine | |
WO2023208012A1 (en) | Program processing method and apparatus, program running method and apparatus, terminal, smart card and storage medium | |
CN108243038B (en) | Service calling method and device | |
CN115454575A (en) | Method, device, equipment and storage medium for conversion and automatic loading of jar package | |
CN109426546A (en) | Using starting method and device, computer storage medium and equipment | |
CN105204866A (en) | Equipment command calling method and system | |
CN111562951B (en) | Radar application component service implementation method | |
CN117056317B (en) | Data processing method, device, equipment and computer readable storage medium | |
CN113279154B (en) | Instruction execution method and device of sewing equipment, terminal equipment and medium | |
CN118377465B (en) | Method and device for bridging application software and NFC reader-writer | |
CN112214223B (en) | Application starting method, device, terminal equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |