CN114726407B - Method, device, controller and storage medium for acquiring abnormal information - Google Patents

Method, device, controller and storage medium for acquiring abnormal information Download PDF

Info

Publication number
CN114726407B
CN114726407B CN202210531781.1A CN202210531781A CN114726407B CN 114726407 B CN114726407 B CN 114726407B CN 202210531781 A CN202210531781 A CN 202210531781A CN 114726407 B CN114726407 B CN 114726407B
Authority
CN
China
Prior art keywords
abnormal information
management module
information management
application identifier
abnormal
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
Application number
CN202210531781.1A
Other languages
Chinese (zh)
Other versions
CN114726407A (en
Inventor
施伟周
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Unigroup Tsingteng Microsystems Co Ltd
Original Assignee
Beijing Unigroup Tsingteng Microsystems Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Unigroup Tsingteng Microsystems Co Ltd filed Critical Beijing Unigroup Tsingteng Microsystems Co Ltd
Priority to CN202210531781.1A priority Critical patent/CN114726407B/en
Publication of CN114726407A publication Critical patent/CN114726407A/en
Application granted granted Critical
Publication of CN114726407B publication Critical patent/CN114726407B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/73Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for taking measurements, e.g. using sensing coils
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/77Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for interrogation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application relates to the technical field of near field communication, and discloses a method, a device, a controller and a storage medium for acquiring abnormal information, which comprise the following steps: acquiring an abnormal information reading command sent by a card reader; determining an abnormal information management module corresponding to the abnormal information reading command; acquiring abnormal information corresponding to the abnormal information reading command; the abnormal information is stored in an abnormal information management module, and the abnormal information management module is deployed in the NFCC; and feeding back abnormal information to the card reader. Therefore, by using the abnormal information management module deployed in the near field communication controller, the near field communication controller can obtain the abnormal information directly through the abnormal information management module, the abnormal information does not need to be sent to the host, and a corresponding application program does not need to be set in the host to obtain the abnormal information, so that the abnormal information can be obtained simply and conveniently. The application also discloses a device, a controller and a storage medium for acquiring the abnormal information.

Description

Method, device, controller and storage medium for acquiring abnormal information
Technical Field
The present application relates to the field of near field communication technologies, and for example, to a method, an apparatus, a controller, and a storage medium for acquiring exception information.
Background
Currently, in order to analyze an abnormal problem, a human analyst can debug a firmware program in a Near Field Communication Controller (NFCC). In the prior art, an abnormal information obtaining method is provided, that is, when an NFCC is abnormal in operation, the NFCC sends abnormal information generated during operation to a DH (Dynamic Host) through an NCI (Near Field Communication protocol) Interface, and an abnormal analyst obtains the abnormal information through preset application software on the DH to analyze the abnormal information.
In the process of implementing the embodiments of the present disclosure, it is found that at least the following problems exist in the related art:
because the existing method for acquiring the abnormal information needs to rely on the host and the application software in the host, but the operating system environments of different hosts are different, the abnormal information needs to be acquired through the hosts, corresponding application software needs to be arranged on different hosts, and the operation is complex.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview nor is intended to identify key/critical elements or to delineate the scope of such embodiments but rather as a prelude to the more detailed description that is presented later.
The embodiment of the disclosure provides a method, a device, a controller and a storage medium for acquiring abnormal information, so that the abnormal information can be simply and conveniently acquired.
In some embodiments, the method is applied to a near field communication controller, NFCC, the method comprising: acquiring an abnormal information reading command sent by a card reader; determining an abnormal information management module corresponding to the abnormal information reading command; acquiring abnormal information corresponding to the abnormal information reading command; the abnormal information is stored in the abnormal information management module, and the abnormal information management module is deployed in the NFCC; and feeding back the abnormal information to the card reader.
In some embodiments, the apparatus is applied to a near field communication controller, NFCC, the apparatus comprising: the routing module is configured to acquire an abnormal information reading command sent by the card reader; determining an abnormal information management module corresponding to the abnormal information reading command; the abnormal information management module is configured to acquire abnormal information corresponding to the abnormal information reading command and feed the abnormal information back to the card reader; the exception information is stored in the exception information management module.
In some embodiments, the apparatus includes a processor and a memory storing program instructions, the processor being configured to, when executing the program instructions, perform the method for obtaining exception information described above.
In some embodiments, the near field communication controller includes the above-mentioned apparatus for acquiring anomaly information.
In some embodiments, the storage medium stores program instructions that, when executed, perform the above-described method for obtaining exception information.
The method, the device, the controller and the storage medium for acquiring the abnormal information provided by the embodiment of the disclosure can achieve the following technical effects: because the abnormal information management module is deployed in the near field communication controller, the near field communication controller can obtain the abnormal information directly through the abnormal information management module, and the abnormal information does not need to be obtained through the host, so that a corresponding application program does not need to be set in the host to obtain the abnormal information, and the abnormal information can be obtained simply and conveniently.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the accompanying drawings and not in limitation thereof, in which elements having the same reference numeral designations are shown as like elements and not in limitation thereof, and wherein:
fig. 1 is a schematic diagram of a first method for acquiring exception information according to an embodiment of the present disclosure;
FIG. 2 is a diagram illustrating a second method for obtaining exception information according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a third method for acquiring exception information according to an embodiment of the present disclosure;
FIG. 4 is a timing diagram illustrating a method for obtaining exception information according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of an apparatus for obtaining exception information according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of another apparatus for acquiring exception information according to an embodiment of the present disclosure.
Detailed Description
So that the manner in which the features and elements of the disclosed embodiments can be understood in detail, a more particular description of the disclosed embodiments, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may be practiced without these details. In other instances, well-known structures and devices may be shown in simplified form in order to simplify the drawing.
The terms "first," "second," and the like in the description and in the claims, and the above-described drawings of embodiments of the present disclosure, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the present disclosure described herein may be made. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions.
The term "plurality" means two or more unless otherwise specified.
In the embodiment of the present disclosure, the character "/" indicates that the preceding and following objects are in an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes objects, meaning that three relationships may exist. For example, a and/or B, represents: a or B, or A and B.
The term "correspond" may refer to an association or binding relationship, and a corresponding to B refers to an association or binding relationship between a and B.
With reference to fig. 1, an embodiment of the present disclosure provides a method for acquiring exception information, including:
step S101, NFCC obtains an abnormal information reading command sent by a card reader;
step S102, the NFCC determines an abnormal information management module corresponding to the abnormal information reading command;
step S103, the NFCC acquires abnormal information corresponding to the abnormal information reading command; the abnormal information is stored in an abnormal information management module, and the abnormal information management module is deployed in the NFCC;
and step S104, the NFCC feeds back abnormal information to the card reader.
According to the method for acquiring the abnormal information, provided by the embodiment of the disclosure, the abnormal information management module deployed in the near field communication controller is utilized, so that the near field communication controller can acquire the abnormal information directly through the abnormal information management module, the abnormal information does not need to be sent to the host, and a corresponding application program does not need to be set in the host to acquire the abnormal information, so that the abnormal information can be simply and conveniently acquired. Meanwhile, since the corresponding application program does not need to be set in the host, the host does not need to be invaded to set the application program, and therefore the abnormal information can be acquired even in the shutdown state of the host.
In some embodiments, the NFCC includes a routing module and an abnormal information management module, where the routing module is configured to obtain an abnormal information reading command sent by the card reader, and determine the abnormal information management module corresponding to the abnormal information reading command; then sending the abnormal information reading command to an abnormal information management module corresponding to the abnormal information reading command; the abnormal information management module acquires abnormal information corresponding to the abnormal information reading command under the condition that the abnormal information reading command is received; and feeds back abnormal information to the card reader.
Optionally, after acquiring the exception information corresponding to the exception information reading command from the exception information management module, the NFCC further includes: and the NFCC sends notification information used for representing the successful acquisition of the abnormal information to the card reader.
Optionally, determining an abnormal information management module corresponding to the abnormal information reading command includes: acquiring an application identifier of an abnormal information management module from a preset database; and determining the abnormal information management module corresponding to the application identifier as the abnormal information management module corresponding to the abnormal information reading command. In this way, an abnormal information reading command sent by the card reader can be sent to the corresponding abnormal information management module through the prestored application identifier.
Optionally, before acquiring the application identifier of the abnormal information management module from the preset database, the method further includes: acquiring an application selection command sent by a card reader, wherein the application selection command comprises an application identifier; and storing the application identifier in the application selection command into the database under the condition that the application identifier in the application selection command is the same as the application identifier of the abnormal information management module. Because the NFCC comprises a plurality of modules, and each module corresponds to a unique application identifier, under the condition that the application identifier in the application selection command is the same as the application identifier of the abnormal information management module, the module selected by the card reader can be determined to be the abnormal information management module.
With reference to fig. 2, another method for acquiring exception information is provided in an embodiment of the present disclosure, including:
step S201, the NFCC obtains an application selection command sent by the card reader, wherein the application selection command comprises an application identifier;
step S202, the NFCC stores the application identifier in the application selection command into a preset database under the condition that the application identifier in the application selection command is the same as the application identifier of the abnormal information management module;
step S203, the NFCC obtains an abnormal information reading command sent by the card reader;
step S204, the NFCC acquires an application identifier of the abnormal information management module from a preset database; determining the abnormal information management module corresponding to the application identifier as the abnormal information management module corresponding to the abnormal information reading command;
step S205, the NFCC obtains the abnormal information corresponding to the abnormal information reading command; the abnormal information is stored in an abnormal information management module, and the abnormal information management module is deployed in the NFCC;
step S206, the NFCC feeds back the abnormal information to the card reader.
According to the method for acquiring the abnormal information, provided by the embodiment of the disclosure, the abnormal information management module deployed in the near field communication controller is utilized, so that the near field communication controller can acquire the abnormal information directly through the abnormal information management module, the abnormal information does not need to be sent to the host, and a corresponding application program does not need to be set in the host to acquire the abnormal information, so that the abnormal information can be simply and conveniently acquired. Meanwhile, as the corresponding application program does not need to be set in the host computer, the host computer does not need to be invaded to set the application program, and the abnormal information can be acquired even in the shutdown state of the host computer.
Optionally, when the application identifier in the application selection command is the same as the application identifier corresponding to the abnormal information management module, the method further includes: and feeding back response information to the card reader, wherein the response information is used for representing the successful selection of the application. The response information is fed back to the card reader, so that the card reader can determine that the application selection is successful; and then the card reader can send an abnormal information reading command to simply and conveniently acquire the abnormal information.
With reference to fig. 3, another method for acquiring exception information is provided in an embodiment of the present disclosure, including:
step S301, the NFCC obtains an application selection command sent by the card reader;
step S302, under the condition that the application identifier in the application selection command is the same as the application identifier of the abnormal information management module, the NFCC stores the application identifier in the application selection command into a preset database and feeds back response information to the card reader;
step S303, the NFCC acquires an abnormal information reading command sent by the card reader;
step S304, the NFCC obtains the application identifier of the abnormal information management module from the database; determining an abnormal information management module corresponding to an application identifier in a database as an abnormal information management module corresponding to an abnormal information reading command;
step S305, the NFCC obtains the abnormal information corresponding to the abnormal information reading command; the abnormal information is stored in an abnormal information management module, and the abnormal information management module is deployed in the NFCC;
step S306, the NFCC feeds back the abnormal information to the card reader.
According to the method for acquiring the abnormal information, response information is fed back to the card reader, so that the card reader can determine that application selection is successful; and then the card reader can send an abnormal information reading command to simply and conveniently acquire the abnormal information.
In some embodiments, the routing module in the NFCC is further configured to obtain an application selection command issued by the card reader; under the condition that the application identifier in the application selection command is the same as the application identifier of the abnormal information management module, storing the application identifier in the application selection command into a preset database; simultaneously sending an application selection command to an abnormal information management module in the NFCC; and the abnormal information management module feeds back response information to the card reader under the condition that an application selection command is received, namely under the condition that an application identifier in the application selection command is the same as the application identifier of the abnormal information management module.
Optionally, the exception information generated during the operation of the NFCC is stored in the exception information management module according to a preset storage format. Optionally, the storage format includes formats including, but not limited to, binary formats, linear recording formats, and loop recording formats.
Optionally, the exception information stored by the exception information management module includes one or more of call stack information, a register state, an error code, a state of an important variable, a task running state, a Random Access Memory (RAM), a Flash Memory, and other resource use states when an exception occurs.
Optionally, the exception information generated during the operation of the NFCC is stored in the exception information management module according to a binary format, and includes: the abnormal information generated during the operation of the NFCC is sequentially stored in the abnormal information management module according to the form of binary byte streams. In this way, when the base address is included in the abnormal information reading command, the base address in the abnormal information reading command can be used to obtain the abnormal information corresponding to the abnormal information reading command in the abnormal information management module according to the base address offset addressing.
Optionally, the exception information generated during the operation of the NFCC is stored in the exception information management module according to a linear record format, and includes: abnormal information generated during the operation of the NFCC is stored in an abnormal information management module according to a fixed-length data block recording format or an indefinite-length data block recording format, and each abnormal information stored in the abnormal information management module corresponds to a record number. In this way, when the record number is included in the abnormal information reading command, the abnormal information corresponding to the abnormal information reading command can be obtained by using the record number in the abnormal information reading command.
In some embodiments, the exception information generated at the time of the NFCC runtime is stored in the exception information management module in terms of TLV (type-length-value).
Optionally, under a condition that each piece of exception information stored in the exception information management module corresponds to a record number, obtaining exception information corresponding to the exception information reading command includes: and acquiring a record number in the abnormal information reading command, matching abnormal information corresponding to the record number in the abnormal information reading command in the abnormal information management module, and feeding the abnormal information back to the card reader.
Optionally, the exception information generated during the running of the NFCC is stored in the exception information management module according to a loop record format, and includes: the abnormal information management module comprises a plurality of information storage units and the occupied time of each information storage unit, and abnormal information stored in a fixed-length data block recording format or an indefinite-length data block recording format is stored in each information storage unit; when abnormality information is stored in each information storage unit, the abnormality information in the information storage unit that is occupied the earliest is updated.
In some embodiments, the exception information is also stored in local Flash, which enables persistent storage of the exception information.
In some embodiments, the exception information management module provides a Programming API (Application Programming Interface) Interface for writing the exception information during the operation of the NFCC to the inside of the NFCC; a command interface for reading abnormal information during the operation of the NFCC is provided outside the NFCC, and the command interface conforms to an ISO-DEP (International standards organization) protocol defined in an NFC (Near Field Communication) standard and an ISO/IEC 7816-4 protocol.
Optionally, the card reader is a contactless card reader.
Optionally, before the NFCC acquires the application selection command issued by the card reader, the method further includes: a contactless communication link is established and activated with a contactless reader. Optionally, the contactless communication link establishment and activation process both comply with the ISO/IEC 14443 standard.
In some embodiments, establishing a contactless communication link between the NFCC and the contactless reader may be accomplished by using the contactless reader to approach an NFC antenna of a host corresponding to the NFCC. Thus, the efficiency of acquiring the abnormal information can be improved.
As shown in fig. 4, an embodiment of the present disclosure provides a method for acquiring exception information, including:
step S401, establishing and activating a non-contact communication link between a non-contact card reader and the NFCC;
step S402, the non-contact card reader sends an application selection command to a routing module in the NFCC;
step S403, when receiving the application selection command, the routing module in the NFCC determines whether the application identifier in the application selection command is the same as the application identifier of the abnormal information management module;
step S404, the routing module stores the application identifier in the application selection command into a preset database under the condition that the application identifier in the application selection command is the same as the application identifier of the abnormal information management module,
step S405, the routing module sends the application selection command to the abnormal information management module;
step S406, the abnormal information management module feeds back response information to the non-contact card reader under the condition of receiving the application selection command;
step S407, the non-contact card reader sends an abnormal information reading command to a routing module in the NFCC;
step S408, the routing module acquires the application identifier of the abnormal information management module from the database under the condition that the abnormal information reading command is received; determining the abnormal information management module corresponding to the application identifier as the abnormal information management module corresponding to the abnormal information reading command;
step S409, the routing module sends an abnormal information reading command to the abnormal information management module;
step S410, the abnormal information management module acquires the abnormal information corresponding to the abnormal information reading command under the condition that the abnormal information reading command is received;
step S411, the abnormal information management module feeds the abnormal information corresponding to the abnormal information reading command back to the non-contact card reader;
in step S412, the contactless communication link is deactivated. By adopting the device for acquiring the abnormal information provided by the embodiment of the disclosure, the abnormal information management module deployed in the near field communication controller is utilized, so that the near field communication controller can acquire the abnormal information directly through the abnormal information management module, the abnormal information does not need to be sent to the host, and a corresponding application program does not need to be set in the host to acquire the abnormal information, so that the abnormal information can be acquired simply and conveniently. Meanwhile, since the corresponding application program does not need to be set in the host, the host does not need to be invaded to set the application program, and therefore the abnormal information can be acquired even in the shutdown state of the host.
With reference to fig. 5, an apparatus for obtaining exception information according to the embodiment of the present disclosure is applied to a near field communication controller NFCC, and the apparatus includes a routing module 501 and an exception information management module 502; the routing module 501 is configured to acquire an abnormal information reading command sent by the card reader; determining an abnormal information management module corresponding to the abnormal information reading command; the abnormal information management module 502 is configured to obtain abnormal information corresponding to the abnormal information reading command and feed the abnormal information back to the card reader; the exception information is stored in an exception information management module.
By adopting the device for acquiring the abnormal information provided by the embodiment of the disclosure, the abnormal information management module deployed in the near field communication controller is utilized, so that the near field communication controller can acquire the abnormal information directly through the abnormal information management module, the abnormal information does not need to be sent to the host, and a corresponding application program does not need to be set in the host to acquire the abnormal information, so that the abnormal information can be acquired simply and conveniently. Meanwhile, since the corresponding application program does not need to be set in the host, the host does not need to be invaded to set the application program, and therefore the abnormal information can be acquired even in the shutdown state of the host.
Optionally, the routing module includes a first obtaining unit and a determining unit, and the first obtaining unit is configured to obtain, in a preset database, an application identifier of the abnormal information management module; the determining unit is configured to determine the abnormal information management module corresponding to the application identifier as the abnormal information management module corresponding to the abnormal information reading command.
Optionally, the routing module further includes a second obtaining unit and a storage unit, and the second obtaining unit is configured to obtain an application selection command issued by the card reader; the storage unit is configured to store the application identifier in the application selection command in the database in a case where the application identifier in the application selection command is the same as the application identifier of the abnormality information management module.
Optionally, the anomaly information management module is further configured to feed back response information to the card reader in the case that the application identifier in the application selection command is the same as the application identifier of the anomaly information management module, wherein the response information is used for representing that the application selection is successful.
As shown in fig. 6, an apparatus for obtaining exception information according to an embodiment of the present disclosure includes a processor (processor) 600 and a memory (memory) 601. Optionally, the apparatus may also include a Communication Interface 602 and a bus 603. The processor 600, the communication interface 602, and the memory 601 may communicate with each other via a bus 603. The communication interface 602 may be used for information transfer. The processor 600 may call logic instructions in the memory 601 to perform the method for obtaining exception information of the above embodiments.
By adopting the device for acquiring the abnormal information provided by the embodiment of the disclosure, the abnormal information management module deployed in the near field communication controller is utilized, so that the near field communication controller can acquire the abnormal information directly through the abnormal information management module, the abnormal information does not need to be sent to the host, and a corresponding application program does not need to be set in the host to acquire the abnormal information, so that the abnormal information can be acquired simply and conveniently. Meanwhile, since the corresponding application program does not need to be set in the host, the host does not need to be invaded to set the application program, and therefore the abnormal information can be acquired even in the shutdown state of the host.
In addition, the logic instructions in the memory 601 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products.
The memory 601 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 600 executes functional applications and data processing by executing program instructions/modules stored in the memory 601, i.e., implements the method for acquiring exception information in the above-described embodiment.
The memory 601 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. In addition, the memory 601 may include a high speed random access memory, and may also include a non-volatile memory.
The embodiment of the disclosure provides a near field communication controller, which comprises the above device for acquiring the abnormal information.
By adopting the near field communication controller provided by the embodiment of the disclosure, the near field communication controller can obtain the abnormal information directly through the abnormal information management module by using the abnormal information management module deployed in the near field communication controller, the abnormal information does not need to be sent to the host, and the corresponding application program does not need to be set in the host to obtain the abnormal information, so that the abnormal information can be simply and conveniently obtained. Meanwhile, since the corresponding application program does not need to be set in the host, the host does not need to be invaded to set the application program, and therefore the abnormal information can be acquired even in the shutdown state of the host.
The embodiment of the disclosure provides a storage medium, which stores program instructions, and when the program instructions are executed, the method for acquiring exception information is executed.
The disclosed embodiments provide a computer program product comprising a computer program stored on a computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the above-described method for acquiring anomaly information.
The computer-readable storage medium described above may be a transitory computer-readable storage medium or a non-transitory computer-readable storage medium.
The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, where the computer software product is stored in a storage medium and includes one or more instructions to enable a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium comprising: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes, and may also be a transient storage medium.
The above description and the drawings sufficiently illustrate embodiments of the disclosure to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. Furthermore, the words used in the specification are words of description only and are not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, the terms "comprises" and/or "comprising," when used in this application, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising an …" does not exclude the presence of other like elements in a process, method or apparatus that comprises the element. In this document, each embodiment may be described with emphasis on differences from other embodiments, and the same and similar parts between the respective embodiments may be referred to each other. For methods, products, etc. of the embodiment disclosures, reference may be made to the description of the method section for relevance if it corresponds to the method section of the embodiment disclosure.
Those of skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software may depend upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments. It can be clearly understood by the skilled person that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, the disclosed methods, products (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be merely a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to implement the present embodiment. In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two sequential operations or steps may in fact be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Claims (11)

1. A method for obtaining anomaly information, applied to a Near Field Communication Controller (NFCC), the method comprising:
acquiring an abnormal information reading command sent by a card reader;
determining an abnormal information management module corresponding to the abnormal information reading command;
acquiring abnormal information corresponding to the abnormal information reading command; the abnormal information is stored in the abnormal information management module, and the abnormal information management module is deployed in the NFCC;
and feeding back the abnormal information to the card reader.
2. The method according to claim 1, wherein determining an exception information management module corresponding to the exception information reading command comprises:
acquiring an application identifier of an abnormal information management module from a preset database;
and determining the abnormal information management module corresponding to the application identifier as the abnormal information management module corresponding to the abnormal information reading command.
3. The method according to claim 2, before obtaining the application identifier of the abnormal information management module from the preset database, further comprising:
acquiring an application selection command sent by the card reader, wherein the application selection command comprises an application identifier;
and storing the application identifier in the application selection command into the database under the condition that the application identifier in the application selection command is the same as the application identifier of the abnormal information management module.
4. The method according to claim 3, further comprising, in the case where the application identifier in the application selection command is the same as the application identifier of the abnormal information management module:
and feeding back response information to the card reader, wherein the response information is used for representing successful application selection.
5. An apparatus for obtaining exception information, applied to a near field communication controller, NFCC, the apparatus comprising:
the routing module is configured to acquire an abnormal information reading command sent by the card reader; determining an abnormal information management module corresponding to the abnormal information reading command;
the abnormal information management module is configured to acquire abnormal information corresponding to the abnormal information reading command and feed the abnormal information back to the card reader; the exception information is stored in the exception information management module.
6. The apparatus of claim 5, wherein the routing module comprises:
a first acquisition unit configured to acquire an application identifier of the abnormal information management module in a preset database;
a determining unit configured to determine the abnormal information management module corresponding to the application identifier as the abnormal information management module corresponding to the abnormal information reading command.
7. The apparatus of claim 6, wherein the routing module further comprises:
a second acquisition unit configured to acquire an application selection command issued by the card reader;
a storage unit configured to store the application identifier in the application selection command in the database in a case where the application identifier in the application selection command is the same as the application identifier of the abnormality information management module.
8. The apparatus of claim 7, comprising:
the abnormal information management module is further configured to feed back response information to the card reader under the condition that the application identifier in the application selection command is the same as the application identifier of the abnormal information management module, wherein the response information is used for representing that the application selection is successful.
9. An apparatus for obtaining exception information, comprising a processor and a memory having stored thereon program instructions, wherein the processor is configured to perform the method for obtaining exception information of any one of claims 1 to 4 when executing the program instructions.
10. A near field communication controller, characterized by comprising the apparatus for acquiring anomaly information according to claim 9.
11. A storage medium storing program instructions which, when executed, perform a method for retrieving exception information as claimed in any one of claims 1 to 4.
CN202210531781.1A 2022-05-17 2022-05-17 Method, device, controller and storage medium for acquiring abnormal information Active CN114726407B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210531781.1A CN114726407B (en) 2022-05-17 2022-05-17 Method, device, controller and storage medium for acquiring abnormal information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210531781.1A CN114726407B (en) 2022-05-17 2022-05-17 Method, device, controller and storage medium for acquiring abnormal information

Publications (2)

Publication Number Publication Date
CN114726407A CN114726407A (en) 2022-07-08
CN114726407B true CN114726407B (en) 2022-08-26

Family

ID=82232020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210531781.1A Active CN114726407B (en) 2022-05-17 2022-05-17 Method, device, controller and storage medium for acquiring abnormal information

Country Status (1)

Country Link
CN (1) CN114726407B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020182064A1 (en) * 2019-03-11 2020-09-17 华为技术有限公司 Method for automatically selecting nfc emulation card, electronic apparatus, and communications system
WO2022012616A1 (en) * 2020-07-15 2022-01-20 维沃移动通信有限公司 Near-field communication (nfc) information display method and apparatus, and electronic device
CN114186570A (en) * 2021-12-16 2022-03-15 中国工商银行股份有限公司 Operation and maintenance method and device for integrated card reader equipment, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106940767A (en) * 2016-01-05 2017-07-11 阿里巴巴集团控股有限公司 A kind of application of IC cards safe verification method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020182064A1 (en) * 2019-03-11 2020-09-17 华为技术有限公司 Method for automatically selecting nfc emulation card, electronic apparatus, and communications system
WO2022012616A1 (en) * 2020-07-15 2022-01-20 维沃移动通信有限公司 Near-field communication (nfc) information display method and apparatus, and electronic device
CN114186570A (en) * 2021-12-16 2022-03-15 中国工商银行股份有限公司 Operation and maintenance method and device for integrated card reader equipment, computer equipment and storage medium

Also Published As

Publication number Publication date
CN114726407A (en) 2022-07-08

Similar Documents

Publication Publication Date Title
US9208633B2 (en) Information processing device, information processing method and program
CN107911249B (en) Method, device and equipment for sending command line of network equipment
US20030024980A1 (en) System and method for flexibly loading an IC Card
CN113301568A (en) Network distribution method and device and intelligent household equipment
CN103458004A (en) Internet of things-based device subscription information changing method and equipment
CN105677673A (en) Business processing method, device and system
CN103152390A (en) Method and device and nodes and system for node configuration of distributed storage system
CN114726407B (en) Method, device, controller and storage medium for acquiring abnormal information
EP2793201A1 (en) Safety information transfer system, device and method based on extended parameter set
CN106204031B (en) Card application processing method and device
CN111932178A (en) Method, device, server and system for processing product logistics information
CN106650839B (en) Smart card production data state control method
CN115687223A (en) Method and device for serial port communication of embedded equipment, embedded equipment and storage medium
JP2006293941A (en) Non-contact data carrier, non-contact data carrier system and data processing method thereof
JP2007087120A (en) Ic card mounted with multiple os (operating system) and issue consignment method
CN114138371A (en) Configuration dynamic loading method and device, computer equipment and storage medium
CN108388406B (en) Data processing method and device
CN201522717U (en) Intelligence card data processing device
CN115604366B (en) Method and device for data transmission, near field communication chip and storage medium
CN115765803B (en) Radio frequency parameter setting method for NFC (near field communication) equipment and NFC equipment
CN113515387B (en) Data processing method and device and electronic device
CN109784112B (en) Automobile electronic identification reading and writing method and device, electronic equipment and medium
CN114942892B (en) Method and device for communicating with software to be tested, equipment and storage medium
CN112130791B (en) Method and device for editing information among multiple screens, storage medium and electronic device
CN117806886A (en) Method and device for chip communication, electronic equipment and 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