CN113193923A - Remote testing method, equipment and system - Google Patents

Remote testing method, equipment and system Download PDF

Info

Publication number
CN113193923A
CN113193923A CN202110474551.1A CN202110474551A CN113193923A CN 113193923 A CN113193923 A CN 113193923A CN 202110474551 A CN202110474551 A CN 202110474551A CN 113193923 A CN113193923 A CN 113193923A
Authority
CN
China
Prior art keywords
nfc
signal
relay device
response signal
tested
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.)
Granted
Application number
CN202110474551.1A
Other languages
Chinese (zh)
Other versions
CN113193923B (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110474551.1A priority Critical patent/CN113193923B/en
Publication of CN113193923A publication Critical patent/CN113193923A/en
Application granted granted Critical
Publication of CN113193923B publication Critical patent/CN113193923B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/12Cash registers electronically operated
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Abstract

The embodiment of the application provides a remote testing method, equipment and a system, which can be used in the technical field of testing safety, wherein the method comprises the following steps: the method comprises the steps that a first NFC relay device receives a tested signal transmitted by a first NFC entity device and transmits the tested signal to a second NFC relay device located at a far end; the second NFC relay equipment receives a response signal transmitted by the second NFC entity equipment and transmits the response signal to the first NFC relay equipment; and determining that the first NFC entity device and/or the second NFC entity device are/is in a normal state according to the transmission condition of the detected signal and the response signal. The application solves the remote testing problem among the NFC devices, original NFC testing devices do not need to be changed, and the NFC testing device can be adapted to the testing of devices such as bank card non-connection devices, mobile phones and POS machines.

Description

Remote testing method, equipment and system
Technical Field
The present application relates to the field of computer technologies, and in particular, to a remote testing method, device, and system.
Background
With the development of science and technology, people have higher living standard, the Internet is ubiquitous, and the form of receipt is diversified. At present, the industry order-acquiring mode has the consumption of traditional bank card inserting, card swiping, non-connection, card number inputting by hand and the like, and meanwhile, the two-dimensional code scanning consumption of WeChat, Paibao and the like is greatly popularized by Unionpay. In such many bill receiving scenarios, functions such as bank card non-receiving, cell phone hce app non-receiving flash payment and the like are also widely used, but if the non-receiving bank card or the cell phone hce app non-receiving flash payment and pos bill receiving are not in the same city, especially in the initial development stage, for the requirement of confidentiality, the app and the cell phone are not allowed to be sent to a pos developer for testing, and meanwhile, nfc devices may be required to be connected to a computer for debugging each other, so that sending the app and the cell phone to the other side or sending the pos to the other side for testing also results in debugging incapability, how to reduce testing cost and improve testing efficiency? Particularly, during an epidemic situation, how to reduce the personnel flow of different developers and realize the real-time remote information interaction of two NFC entity devices becomes a problem to be solved.
Disclosure of Invention
To solve the problems in the prior art, the present application provides a remote testing method, device and system, the method comprising: the method comprises the steps that a first NFC relay device receives a tested signal transmitted by a first NFC entity device and transmits the tested signal to a second NFC relay device located at a far end, so that the second NFC relay device receives the tested signal and transmits the tested signal to the second entity device; the second NFC relay device receives a response signal transmitted by the second NFC entity device and transmits the response signal to the first NFC relay device, so that the first NFC relay device receives the response signal and transmits the response signal to the first NFC entity device; and determining that the first NFC entity device and/or the second NFC entity device are/is in a normal state according to the transmission condition of the detected signal and the response signal. The application solves the remote testing problem among the NFC devices, original NFC testing devices do not need to be changed, and the NFC testing device can be adapted to the testing of devices such as bank card non-connection devices, mobile phones and POS machines.
In an aspect of the present invention, a remote testing method is provided, where the method is applied to a first NFC relay device, and includes:
receiving a tested signal transmitted by first NFC entity equipment;
transmitting the signal to be tested to a second NFC relay device located at a far end, so that the second NFC relay device receives the signal to be tested and generates a response signal;
and receiving the response signal, and further determining that the first NFC entity device is in a normal state according to the transmission conditions of the detected signal and the response signal.
In a preferred embodiment, the first NTC relay device and the second NFC relay device are in the same proprietary communication network, and the transmitting the signal under test to the second NFC device located at the remote location is performed through the proprietary communication network.
In a preferred embodiment, further comprising:
encrypting the tested signal to obtain the cipher text information of the tested signal;
and transmitting the tested signal ciphertext information to a second NFC relay device located at a far end, so that the second NFC relay device receives the tested signal ciphertext information and generates a response signal.
In a preferred embodiment, the encrypting the signal under test includes:
adding a preset number of digital 0 s to the tail of the measured signal to obtain a signal to be encrypted;
and encrypting the signal to be encrypted by adopting a character codebook mode.
In a preferred embodiment, further comprising:
and if the number of bytes of the tested signal is less than a preset threshold value, the tested signal is not encrypted.
In another aspect of the present invention, a remote testing method applied to a second NFC relay device includes:
receiving a detected signal transmitted by first NFC relay equipment at a far end;
transmitting the signal under test to a second NFC entity device;
and receiving a response signal transmitted by the second NFC entity device, transmitting the response signal to the first NFC relay device at the far end, and determining that the second NFC entity device is in a normal state according to the transmission conditions of the detected signal and the response signal.
In another aspect of the present invention, a remote testing method is provided, including:
the method comprises the steps that a first NFC relay device receives a tested signal transmitted by a first NFC entity device and transmits the tested signal to a second NFC relay device located at a far end, so that the second NFC relay device receives the tested signal and transmits the tested signal to the second entity device;
the second NFC relay device receives a response signal transmitted by the second NFC entity device and transmits the response signal to the first NFC relay device, so that the first NFC relay device receives the response signal and transmits the response signal to the first NFC entity device;
and determining that the first NFC entity device and/or the second NFC entity device are/is in a normal state according to the transmission condition of the detected signal and the response signal.
In still another aspect of the present invention, an NFC relay device includes:
the tested signal receiving module is used for receiving a tested signal transmitted by the first NFC entity device;
the tested signal transmission module is used for transmitting the tested signal to second NFC relay equipment located at a far end so that the second NFC relay equipment receives the tested signal and generates a response signal;
and the response signal receiving module is used for receiving the response signal and further determining that the first NFC entity equipment is in a normal state according to the transmission conditions of the detected signal and the response signal.
In still another aspect of the present invention, an NFC relay device includes:
the device comprises a tested signal receiving module, a first NFC relay device and a second NFC relay device, wherein the tested signal receiving module is used for receiving a tested signal transmitted by the first NFC relay device positioned at a far end;
the tested signal transmission module is used for transmitting the tested signal to second NFC entity equipment;
and the response signal transmission module is used for receiving the response signal transmitted by the second NFC entity equipment and transmitting the response signal to the first NFC relay equipment at the far end, so that the second NFC entity equipment can be determined to be in a normal state according to the transmission conditions of the detected signal and the response signal.
In still another aspect of the present invention, there is provided a remote test system including:
the first NFC relay device receives a detected signal transmitted by the first NFC entity device and transmits the detected signal to a second NFC relay device located at a far end, so that the second NFC relay device receives the detected signal and transmits the detected signal to the second entity device;
the second NFC relay device receives the response signal transmitted by the second NFC entity device and transmits the response signal to the first NFC relay device, so that the first NFC relay device receives the response signal and transmits the response signal to the first NFC entity device;
and the test result determining device determines that the first NFC entity device and/or the second NFC entity device are/is in a normal state according to the transmission conditions of the tested signal and the response signal.
In yet another aspect of the present invention, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the remote testing method when executing the program.
In yet another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, is adapted to carry out the remote testing method.
According to the technical scheme, the remote testing method comprises the following steps: the method comprises the steps that a first NFC relay device receives a tested signal transmitted by a first NFC entity device and transmits the tested signal to a second NFC relay device located at a far end, so that the second NFC relay device receives the tested signal and transmits the tested signal to the second entity device; the second NFC relay device receives a response signal transmitted by the second NFC entity device and transmits the response signal to the first NFC relay device, so that the first NFC relay device receives the response signal and transmits the response signal to the first NFC entity device; and determining that the first NFC entity device and/or the second NFC entity device are/is in a normal state according to the transmission condition of the detected signal and the response signal. The application solves the remote testing problem among the NFC devices, original NFC testing devices do not need to be changed, and the NFC testing device can be adapted to the testing of devices such as bank card non-connection devices, mobile phones and POS machines.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a remote testing method applied to a first NFC relay device.
Fig. 2 is a schematic flow chart of encrypting a signal under test.
Fig. 3 is a flowchart of a remote testing method applied to a second NFC relay device.
Fig. 4 is a flow chart of a remote testing method.
Fig. 5 is a schematic structural diagram of an NFC relay device.
FIG. 6 is a schematic diagram of a remote test system.
Fig. 7 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the remote testing method, device and system disclosed in the present application can be used in the technical field of testing safety, and can also be used in any field except the technical field of testing safety.
With the development of science and technology, people have higher living standard, the Internet is ubiquitous, and the form of receipt is diversified. At present, the industry order-acquiring mode has the consumption of traditional bank card inserting, card swiping, non-connection, card number inputting by hand and the like, and meanwhile, the two-dimensional code scanning consumption of WeChat, Paibao and the like is greatly popularized by Unionpay. In such many bill receiving scenarios, functions such as bank card non-receiving, cell phone hce app non-receiving flash payment and the like are also widely used, but if the non-receiving bank card or the cell phone hce app non-receiving flash payment and pos bill receiving are not in the same city, especially in the initial development stage, for the requirement of confidentiality, the app and the cell phone are not allowed to be sent to a pos developer for testing, and meanwhile, nfc devices may be required to be connected to a computer for debugging each other, so that sending the app and the cell phone to the other side or sending the pos to the other side for testing also results in debugging incapability, how to reduce testing cost and improve testing efficiency? Particularly, during an epidemic situation, how to reduce the personnel flow of different developers and realize the real-time remote information interaction of two NFC entity devices becomes a problem to be solved.
To solve the problems in the prior art, the present application provides a remote testing method, device and system, the method comprising: the method comprises the steps that a first NFC relay device receives a tested signal transmitted by a first NFC entity device and transmits the tested signal to a second NFC relay device located at a far end, so that the second NFC relay device receives the tested signal and transmits the tested signal to the second entity device; the second NFC relay device receives a response signal transmitted by the second NFC entity device and transmits the response signal to the first NFC relay device, so that the first NFC relay device receives the response signal and transmits the response signal to the first NFC entity device; and determining that the first NFC entity device and/or the second NFC entity device are/is in a normal state according to the transmission condition of the detected signal and the response signal. The application solves the remote testing problem among the NFC devices, original NFC testing devices do not need to be changed, and the NFC testing device can be adapted to the testing of devices such as bank card non-connection devices, mobile phones and POS machines.
The remote testing method, device and system provided by the invention are described in detail below with reference to the accompanying drawings.
Near Field Communication (NFC for short) is an emerging technology, devices (such as mobile phones) using the NFC technology can exchange data when they are close to each other, and is integrated and evolved from a non-contact Radio Frequency Identification (RFID) and an interconnection technology, and by integrating functions of an induction card reader, an induction card and point-to-point Communication on a single chip, applications such as mobile payment, electronic ticketing, door access, mobile identity identification, anti-counterfeiting and the like are realized by using a mobile terminal.
It can be understood that data interaction between the NFC entity devices is near field communication, and for two NFC entity devices, a relay device is required to implement communication. In a specific embodiment of the present invention, two NFC entity devices that need remote communication are referred to as a first NFC entity device and a second NFC entity device, respectively. For example, in a scenario of mobile phone non-contact payment, the first NFC entity device is a pos machine and is configured to initiate a payment request, and the second NFC entity device is a mobile phone and responds to the payment request. If the pos machine and the mobile phone are in a near field, the NFC chip in the pos machine and the mobile phone can enable the pos machine and the mobile phone to directly communicate. If the pos machine and the mobile phone are in two different places and are in far fields, two relay devices need to be used, wherein the first NFC relay device corresponds to the first NFC entity device, and the pos machine and the mobile phone are in near fields, so that NFC direct communication can be realized; and the second NFC relay device corresponds to the second NFC entity device, and the second NFC relay device and the second NFC entity device are positioned in the near field, so that NFC direct communication can be realized. The first NFC relay device and the second NFC relay device may communicate via a wired or wireless network, for example, a wired network is a cable, and a wireless network is wifi or the like.
In a specific embodiment, the present application provides a remote testing method, where the method is applied to a first NFC relay device, as shown in fig. 1, and includes:
s1, receiving a tested signal transmitted by the first NFC entity device;
specifically, the first NFC entity device is an NFC-enabled device, which can actively send out a test signal to be tested. In a specific embodiment, the first NFC physical device may be a pos device, an access control device, or the like. For example, the first NFC physical device is a pos machine, and when an amount to be paid is input by pressing a keyboard, the pos machine generates a data packet according to the NFC related protocol, where the data packet is a signal to be tested and includes the amount to be paid. The first NFC entity device sends the generated signal to be tested to the first NFC relay device in an NFC mode, so that the first NFC relay device receives the signal to be tested.
S2, transmitting the tested signal to a second NFC relay device located at a far end, so that the second NFC relay device receives the tested signal and generates a response signal;
specifically, the first NFC relay device and the second NFC relay device are two devices in a remote state, so that communication between the two devices needs to be through a wired or wireless remote communication network. In a specific embodiment, the remote communication network may be a cable-based communication network or a wifi communication network. In order to ensure the security of the measured signal data, two ways are available, one is to build a private communication network of a first NFC relay device and a second NFC relay device, so that only two relay devices exist in the private communication network, and other devices cannot use or access the network, so that the measured signal may not be encrypted, and certainly, the measured signal may also be encrypted; and the other is that the first NFC relay device encrypts the transmitted measured signal and transmits the encrypted measured signal to the second NFC relay device through a public communication network, and the second NFC relay device decrypts the encrypted measured signal which is received in accordance with the second NFC relay device to obtain the measured signal. For the first, the requirements for its implementation are complex; the second method is a commonly used method for ensuring data security. For the second method, as shown in fig. 2, the specific steps are as follows:
s21, encrypting the tested signal to obtain the cipher text information of the tested signal;
in a specific embodiment, for example, in a non-payment application scenario of a mobile phone, a pos approaches a first NFC relay device after inputting a money amount, the pos generates a signal to be tested such as 00a404000E325041592E5359532E 44444446303100 through an NFC module, an NFC communication module of the first NFC relay device receives the signal and converts the signal into digital information, the digital information is sent to a central processing unit of the pos, the central processing unit transfers the digital information to an nfcc scolet program to complement the data 00a404000E325041592E5359532E 4446303100 with a preset number of 0, for example, 160 s in 000000000000, and then a key 12345678901234567890123456789012 is used for 3des ECB (word codebook) mode encryption, and the encryption is performed to obtain ciphertext information of the signal to be tested for each 8-byte group. If the number of bytes is less than a predetermined number, for example, 8 bytes, the encryption is not performed.
And S22, transmitting the tested signal ciphertext information to a second NFC relay device located at a far end, so that the second NFC relay device receives the tested signal ciphertext information and generates a response signal.
Specifically, the measured signal ciphertext information is transmitted to the second NFC relay device located at the far end through a cable network or a wifi network. In a specific embodiment, if a cable network is adopted, measured signal ciphertext information is modulated into an electric signal through a modem and loaded onto a cable, and the cable transmits the signal; if the wifi network is adopted, the signals are directly transmitted to the internet through the wifi module and transmitted. On the other hand, the second NFC relay device receives the cipher text information of the signal to be tested and generates a response signal. In a specific embodiment, after receiving the ciphertext of the signal to be tested, the second NFC relay device decrypts the ciphertext of the signal to be tested, first performs decryption in a 3des ECB mode with the key 12345678901234567890123456789012, and then removes the 16 th bit to obtain the decrypted signal to be tested. And sending the decrypted tested signal to a mobile phone through an NFC module, responding a payment request in the tested signal by the mobile phone to generate a response signal, and transmitting the response signal to second relay equipment. And the second NFC relay device transmits the response signal to the first NFC relay device through the remote network. In a specific embodiment, the second NFC relay device may encrypt the response signal and then transmit the response signal.
And S3, receiving the response signal, and further determining that the first NFC entity device is in a normal state according to the transmission condition of the detected signal and the response signal.
Specifically, after receiving a response signal transmitted by the second NFC relay device, the first NFC relay device sends the response signal to the first NFC entity device, and then may determine that the first NFC entity device is in a normal state according to the transmission conditions of the detected signal and the response signal. It can be understood that, if the received response signal is an encrypted signal, the encrypted response signal needs to be decrypted first, and the encrypted response signal is decrypted first in the 3des ECB mode with the key 12345678901234567890123456789012, and then the 16 bits are removed to obtain a decrypted response signal, and then the response signal is sent to the first NFC entity device. And if the first NFC entity device finishes the service operation according to the detected signal and the response signal, determining that the first NFC entity device is in a normal state, and if the first NFC entity device does not finish the service operation, determining that the first NFC entity device is in an abnormal state and further debugging is needed.
It is understood that the first NFC relay device may perform the above steps to include a measured signal receiving module, a measured signal transmitting module, and a response signal receiving module, where the measured signal receiving module performs step S1, the measured signal transmitting module performs step S2, and the response signal receiving module performs step S3, and subsequent related embodiments are not repeated.
On the other hand, in a specific embodiment, the present application provides a remote testing method, which is applied to a second NFC relay device, as shown in fig. 3, and includes:
s01, receiving a detected signal transmitted by a first NFC relay device at a far end;
specifically, the second NFC relay device receives the measured signal transmitted by the first NFC relay device located at the remote end through a remote network, such as a cable or wifi. If the signal is encrypted, the signal needs to be decrypted.
S02, transmitting the tested signal to a second NFC entity device;
specifically, the second NFC relay device and the second NFC entity device are in the near field, so that direct communication can be performed through the NFC function. And the second NFC relay equipment sends the unencrypted signal to be detected to the second NFC entity equipment. In a specific embodiment, for example, in a non-payment scenario of a mobile phone, that is, when the NFC relay device is close to the mobile phone, the measured signal is transmitted to the mobile phone end by the relay device.
And S03, receiving the response signal transmitted by the second NFC entity device, transmitting the response signal to the first NFC relay device at the far end, and determining that the second NFC entity device is in a normal state according to the transmission conditions of the detected signal and the response signal.
Specifically, when the second NFC entity device responds to the content in the signal to be detected and generates a response signal, the response signal is sent to the second NFC relay device. And the second NFC relay equipment receives the response signal transmitted by the second NFC entity equipment and transmits the response signal to the first NFC relay equipment at the far end. In a specific embodiment, for example, the mobile phone does not receive payment, the second NFC entity device is a mobile phone, and generates a corresponding response signal according to the payment request in the detected signal, if payment is available, payment is not available, balance is insufficient, and the like, and then sends the generated response signal to the second NFC relay device through the NFC function. After receiving the response signal, the second NFC relay device may directly send the response signal through the private network; the response signal may be encrypted and transmitted via the shared network. In a specific embodiment, the NFC communication module in the second NFC entity device receives the signal, converts the signal into digital information, sends the digital information to the central processing unit, and the central processing unit transfers the digital information to the nfcshook program to complement the data with a preset number of 0, for example, 0000000000000000, for 160 s, and then encrypts the data in 3des ECB mode with the key 12345678901234567890123456789012 to obtain ciphertext information of the response signal in every 8-byte group. If the number of bytes is less than a predetermined number, for example, 8 bytes, the encryption is not performed. And then the second NFC relay device transmits the ciphertext information of the response signal to the first NFC relay device through a wired or wireless shared network, so that the first NFC relay device sends the response signal to the first NFC entity device, and then the second NFC entity device can be determined to be in a normal state according to the transmission conditions of the detected signal and the response signal, if the first NFC entity device completes the business operation, the second NFC entity device can be determined to be in the normal state according to the transmission conditions of the detected signal and the response signal, and if the first NFC entity device does not complete the business operation, further debugging is needed.
In a specific embodiment, the overall system is integrated to obtain a remote testing method, as shown in fig. 4, which includes:
s101, a first NFC relay device receives a detected signal transmitted by a first NFC entity device and transmits the detected signal to a second NFC relay device located at a far end, so that the second NFC relay device receives the detected signal and transmits the detected signal to the second entity device;
s102, receiving a response signal transmitted by second NFC entity equipment by second NFC relay equipment, and transmitting the response signal to first NFC relay equipment so that the first NFC relay equipment receives the response signal and transmits the response signal to the first NFC entity equipment;
and S103, determining that the first NFC entity device and/or the second NFC entity device are in a normal state according to the transmission condition of the detected signal and the response signal.
The present invention is further described with reference to two specific implementation scenarios, wherein fig. 5 is a schematic structural diagram of a relay device in a specific embodiment.
Scene one: and testing the NFC non-connection payment service between the mobile phone and the pos machine, wherein the first NFC relay device and the second NFC relay device are in a wifi wireless network.
For a first NFC relay device:
pressing 'power 9170' switch NFC relay equipment starts, type C socket 9190 is plugged into data line and connected to computer, and computer uploads configuration file config.ini to memory 9140 for storage, for example
ip=192.168.0.1
port=9999
key=12345678901234567890123456789012
After the functional button of '9121 client wifi mode' is pressed again, the central processing unit 9100 starts to load 9140 the nfcsoket program of the application/function 9142 in the memory to the buffer 9141, the nfcsoket starts to read config.ini and set as the client, the port of the ip192.168.0.1 is connected to be 9999, the connection is successful, the indicator light 9130 is green, and if the connection is not successful, the color is red. The central processing unit 9100 issues a preparation instruction to the NFC communication module 9110, and the NFC communication module 9110 handles the listening state. When pos approaches to the NFC relay device A after inputting money, the pos sends an instruction such as 00A404000E325041592E5359532E 44444446303100 through an NFC module, an NFC communication module 9110 receives a signal and converts the signal into digital information to be sent to a central processing unit, the central processing unit sends the digital information to an nfcScoket program to supplement 0000000000000000 to data 00A404000E325041592E5359532E444446303100, and then encryption is carried out in A3 des ECB mode by using a key 12345678901234567890123456789012, wherein encryption is carried out on a group of 8 bytes each and is not encrypted with less than 8 bytes. And then sent to the internet through wifi module 9180. When the wifi module 9180 receives reply information of the internet and sends the reply information to the central processing unit 9100, the central processing unit 9100 transfers the reply information to the nfcScoket program, decryption is performed in a 3des ECB mode by using the key 12345678901234567890123456789012, then 16 bits are removed, and the original text instruction is left, and then the pos is signed through the NFC communication module 9110.
For a second NFC relay device:
pressing 'power 9170' switch NFC relay equipment starts, type C socket 9190 is plugged into data line and connected to computer, and computer uploads configuration file config.ini to memory 9140 for storage, for example
ip=192.168.0.2
port=9999
key=12345678901234567890123456789012
After the functional button of '9122 server wifi mode' is pressed again, central processing unit 9100 starts the nfcsoket program of application/function 9142 in the loading 9140 memory to buffer 9141, and nfcsoket starts to read config.ini and sets as the server, when wifi module 9180 receives the connection request of the internet and visits 9999 port, then the response connection is successful, and simultaneously indicator light 9130 is indicated to turn green through central processing unit 9100. After the 9999 port receives the data, the central processing unit 9100 designates an nfcsoket program to process, the nfcsoket program is decrypted in a 3des ECB mode by using a key 2345678901234567890123456789012, 16 bits are removed after decryption, an original text instruction is left, and an NFC signal is sent to the mobile phone through the NFC communication module 9110. After the mobile phone sends out an NFC response, the NFC communication module 9110 receives the signal and converts the signal into digital information, and sends the digital information to the central processing unit, the central processing unit transfers the digital information to an nfcc scoket program to supplement 000000000000 to the data, and then uses the key 12345678901234567890123456789012 to encrypt the data in a 3des ECB mode, wherein the encryption is one group of 8 bytes, and the encryption is not encrypted with less than 8 bytes. And then returned to the original requester through wifi module 9180.
Scene two: and testing the NFC indirect payment service between the indirect bank card and the pos machine, wherein the first NFC relay device and the second NFC relay device are in a cable wired network.
For a first NFC relay device:
pressing 'power 9170' switch NFC relay equipment starts, type C socket 9190 is plugged into data line and connected to computer, and computer uploads configuration file config.ini to memory 9140 for storage, for example
ip=**
port=9999
key=12345678901234567890123456789012
After the function button of '9123 client electric wire mode' is pressed again, the central processing unit 9100 starts to load the nfcsoket program of the application/function 9142 in the memory 9140 to the buffer area 9141, the nfcsoket starts to read config.ini and set as the client, then the central processing unit sends the connection message to the modem module 9150, the modem module 9150 modulates the message into an electric signal and loads the electric signal to the electric wire while monitoring and demodulating the carrier signal on the electric wire, when the connection with the port in the electric wire range of the same electric meter user is 9999 successful, the indicator light 9130 turns green, and if the connection is not red, the indicator light turns green. The central processing unit 9100 issues a preparation instruction to the NFC communication module 9110, and the NFC communication module 9110 handles the listening state. When pos approaches to the NFC relay device A after inputting money, the pos sends an instruction such as 00A404000E325041592E5359532E 44444446303100 through an NFC module, an NFC communication module 9110 receives a signal and converts the signal into digital information to be sent to a central processing unit, the central processing unit sends the digital information to an nfcScoket program to supplement 0000000000000000 to data 00A404000E325041592E5359532E444446303100, and then encryption is carried out in A3 des ECB mode by using a key 12345678901234567890123456789012, wherein encryption is carried out on a group of 8 bytes each and is not encrypted with less than 8 bytes. Then, the message is modulated into an electric signal by the modulation and demodulation module 9150 to be loaded on the wire, meanwhile, a carrier signal on the demodulation wire is monitored, when the message demodulated by the modulation and demodulation module 9150 is a message which is responded to the message, the message is transmitted to the central processing unit 9100, the central processing unit 9100 transmits the message to an nfcScoket program, decryption is performed in a 3des ECB mode by using the secret key 12345678901234567890123456789012, then 16 bits are removed, and an original text instruction is left, and then the message is signed to pos through the NFC communication module 9110.
For a second NFC relay device:
pressing 'power 9170' switch NFC relay equipment starts, type C socket 9190 is plugged into data line and connected to computer, and computer uploads configuration file config.ini to memory 9140 for storage, for example
ip=**
port=9999
key=12345678901234567890123456789012
After the '9124 server wire mode' function button is pressed again, the central processing unit 9100 starts to load 9140 the nfcsoket program of the application/function 9142 in the memory to the buffer 9141, the nfcsoket starts to read config.ini and set as the server, the modem module 9150 starts to listen to the carrier signal on the demodulation wire, when the message demodulated by the modem module 9150 is forwarded to the central processing unit 9100, the central processing unit 9100 finds that the connection request accesses the 9999 port, the response connection is successful, the modem module 9150 modulates the message into an electric signal and loads the electric signal on the wire while listening to the carrier signal on the demodulation wire, and the central processing unit 9100 indicates that the indicator light 9130 turns green. After the 9999 port receives data, the central processing unit 9100 designates an nfcsoket program to process, the nfcsoket program is decrypted in a 3des ECB mode by using a key 2345678901234567890123456789012, 16 bits are removed after decryption, original text instructions are left, and then an NFC signal is sent to the non-contact bank card through the NFC communication module 9110. After the non-connected bank card sends out an NFC response, the NFC communication module 9110 receives a signal and converts the signal into digital information, the digital information is sent to the central processing unit, the central processing unit sends the digital information to an nfcScoket program to supplement 000000000000 to the data, then 3des ECB mode encryption is carried out by using the secret key 12345678901234567890123456789012, the encryption is one group of 8 bytes, and the encryption is not carried out by less than 8 bytes. Then the message is modulated into an electric signal by the modulation and demodulation module 9150 and loaded on the electric wire, and meanwhile, the carrier signal on the electric wire is monitored and demodulated and returned to the original requesting party.
As can be seen from the above description, the present invention provides a remote testing method, which includes: the method comprises the steps that a first NFC relay device receives a tested signal transmitted by a first NFC entity device and transmits the tested signal to a second NFC relay device located at a far end, so that the second NFC relay device receives the tested signal and transmits the tested signal to the second entity device; the second NFC relay device receives a response signal transmitted by the second NFC entity device and transmits the response signal to the first NFC relay device, so that the first NFC relay device receives the response signal and transmits the response signal to the first NFC entity device; and determining that the first NFC entity device and/or the second NFC entity device are/is in a normal state according to the transmission condition of the detected signal and the response signal. The application solves the remote testing problem among the NFC devices, original NFC testing devices do not need to be changed, and the NFC testing device can be adapted to the testing of devices such as bank card non-connection devices, mobile phones and POS machines.
In another aspect, the present application provides an embodiment of a remote testing apparatus and a system for executing all or part of the contents of the remote testing method, and referring to fig. 6, the remote testing system specifically includes the following contents:
the first NFC relay device receives a detected signal transmitted by the first NFC entity device and transmits the detected signal to a second NFC relay device located at a far end, so that the second NFC relay device receives the detected signal and transmits the detected signal to the second entity device;
the second NFC relay device receives the response signal transmitted by the second NFC entity device and transmits the response signal to the first NFC relay device, so that the first NFC relay device receives the response signal and transmits the response signal to the first NFC entity device;
and the test result determining device determines that the first NFC entity device and/or the second NFC entity device are/is in a normal state according to the transmission conditions of the tested signal and the response signal.
As can be seen from the above description, according to the remote test device and the remote test system provided by the present invention, the first NFC relay device receives the signal to be tested transmitted by the first NFC physical device, and transmits the signal to be tested to the second NFC relay device located at the remote end, so that the second NFC relay device receives the signal to be tested and transmits the signal to be tested to the second physical device; the second NFC relay device receives a response signal transmitted by the second NFC entity device and transmits the response signal to the first NFC relay device, so that the first NFC relay device receives the response signal and transmits the response signal to the first NFC entity device; and determining that the first NFC entity device and/or the second NFC entity device are/is in a normal state according to the transmission condition of the detected signal and the response signal. The application solves the remote testing problem among the NFC devices, original NFC testing devices do not need to be changed, and the NFC testing device can be adapted to the testing of devices such as bank card non-connection devices, mobile phones and POS machines.
In a specific embodiment, data interaction between the NFC entity devices is near field communication, and for two NFC entity devices, a relay device is required to implement communication. In a specific embodiment of the present invention, two NFC entity devices that need remote communication are referred to as a first NFC entity device and a second NFC entity device, respectively. For example, in a scenario of mobile phone non-contact payment, the first NFC entity device is a pos machine and is configured to initiate a payment request, and the second NFC entity device is a mobile phone and responds to the payment request. If the pos machine and the mobile phone are in a near field, the NFC chip in the pos machine and the mobile phone can enable the pos machine and the mobile phone to directly communicate. If the pos machine and the mobile phone are in two different places and are in far fields, two relay devices need to be used, wherein the first NFC relay device corresponds to the first NFC entity device, and the pos machine and the mobile phone are in near fields, so that NFC direct communication can be realized; and the second NFC relay device corresponds to the second NFC entity device, and the second NFC relay device and the second NFC entity device are positioned in the near field, so that NFC direct communication can be realized. The first NFC relay device and the second NFC relay device may communicate via a wired or wireless network, for example, a wired network is a cable, and a wireless network is wifi or the like.
In a specific embodiment, the first NFC relay device is configured to perform the following steps:
s1, receiving a tested signal transmitted by the first NFC entity device;
specifically, the first NFC entity device is an NFC-enabled device, which can actively send out a test signal to be tested. In a specific embodiment, the first NFC physical device may be a pos device, an access control device, or the like. For example, the first NFC physical device is a pos machine, and when an amount to be paid is input by pressing a keyboard, the pos machine generates a data packet according to the NFC related protocol, where the data packet is a signal to be tested and includes the amount to be paid. The first NFC entity device sends the generated signal to be tested to the first NFC relay device in an NFC mode, so that the first NFC relay device receives the signal to be tested.
S2, transmitting the tested signal to a second NFC relay device located at a far end, so that the second NFC relay device receives the tested signal and generates a response signal;
specifically, the first NFC relay device and the second NFC relay device are two devices in a remote state, so that communication between the two devices needs to be through a wired or wireless remote communication network. In a specific embodiment, the remote communication network may be a cable-based communication network or a wifi communication network. In order to ensure the security of the measured signal data, two ways are available, one is to build a private communication network of a first NFC relay device and a second NFC relay device, so that only two relay devices exist in the private communication network, and other devices cannot use or access the network, so that the measured signal may not be encrypted, and certainly, the measured signal may also be encrypted; and the other is that the first NFC relay device encrypts the transmitted measured signal and transmits the encrypted measured signal to the second NFC relay device through a public communication network, and the second NFC relay device decrypts the encrypted measured signal which is received in accordance with the second NFC relay device to obtain the measured signal. For the first, the requirements for its implementation are complex; the second method is a commonly used method for ensuring data security. For the second method, the specific steps are as follows:
s21, encrypting the tested signal to obtain the cipher text information of the tested signal;
in a specific embodiment, for example, in a non-payment application scenario of a mobile phone, a pos approaches a first NFC relay device after inputting a money amount, the pos generates a signal to be tested such as 00a404000E325041592E5359532E 44444446303100 through an NFC module, an NFC communication module of the first NFC relay device receives the signal and converts the signal into digital information, the digital information is sent to a central processing unit of the pos, the central processing unit transfers the digital information to an nfcc scolet program to complement the data 00a404000E325041592E5359532E 4446303100 with a preset number of 0, for example, 160 s in 000000000000, and then a key 12345678901234567890123456789012 is used for 3des ECB (word codebook) mode encryption, and the encryption is performed to obtain ciphertext information of the signal to be tested for each 8-byte group. If the number of bytes is less than a predetermined number, for example, 8 bytes, the encryption is not performed.
And S22, transmitting the tested signal ciphertext information to a second NFC relay device located at a far end, so that the second NFC relay device receives the tested signal ciphertext information and generates a response signal.
Specifically, the measured signal ciphertext information is transmitted to the second NFC relay device located at the far end through a cable network or a wifi network. In a specific embodiment, if a cable network is adopted, measured signal ciphertext information is modulated into an electric signal through a modem and loaded onto a cable, and the cable transmits the signal; if the wifi network is adopted, the signals are directly transmitted to the internet through the wifi module and transmitted. On the other hand, the second NFC relay device receives the cipher text information of the signal to be tested and generates a response signal. In a specific embodiment, after receiving the ciphertext of the signal to be tested, the second NFC relay device decrypts the ciphertext of the signal to be tested, first performs decryption in a 3des ECB mode with the key 12345678901234567890123456789012, and then removes the 16 th bit to obtain the decrypted signal to be tested. And sending the decrypted tested signal to a mobile phone through an NFC module, responding a payment request in the tested signal by the mobile phone to generate a response signal, and transmitting the response signal to second relay equipment. And the second NFC relay device transmits the response signal to the first NFC relay device through the remote network. In a specific embodiment, the second NFC relay device may encrypt the response signal and then transmit the response signal.
And S3, receiving the response signal, and further determining that the first NFC entity device is in a normal state according to the transmission condition of the detected signal and the response signal.
Specifically, after receiving a response signal transmitted by the second NFC relay device, the first NFC relay device sends the response signal to the first NFC entity device, and then may determine that the first NFC entity device is in a normal state according to the transmission conditions of the detected signal and the response signal. It can be understood that, if the received response signal is an encrypted signal, the encrypted response signal needs to be decrypted first, and the encrypted response signal is decrypted first in the 3des ECB mode with the key 12345678901234567890123456789012, and then the 16 bits are removed to obtain a decrypted response signal, and then the response signal is sent to the first NFC entity device. And if the first NFC entity device finishes the service operation according to the detected signal and the response signal, determining that the first NFC entity device is in a normal state, and if the first NFC entity device does not finish the service operation, determining that the first NFC entity device is in an abnormal state and further debugging is needed.
On the other hand, in a specific embodiment, the second NFC relay device is configured to perform the following steps:
s01, receiving a detected signal transmitted by a first NFC relay device at a far end;
specifically, the second NFC relay device receives the measured signal transmitted by the first NFC relay device located at the remote end through a remote network, such as a cable or wifi. If the signal is encrypted, the signal needs to be decrypted.
S02, transmitting the tested signal to a second NFC entity device;
specifically, the second NFC relay device and the second NFC entity device are in the near field, so that direct communication can be performed through the NFC function. And the second NFC relay equipment sends the unencrypted signal to be detected to the second NFC entity equipment. In a specific embodiment, for example, in a non-payment scenario of a mobile phone, that is, when the NFC relay device is close to the mobile phone, the measured signal is transmitted to the mobile phone end by the relay device.
And S03, receiving the response signal transmitted by the second NFC entity device, transmitting the response signal to the first NFC relay device at the far end, and determining that the second NFC entity device is in a normal state according to the transmission conditions of the detected signal and the response signal.
Specifically, when the second NFC entity device responds to the content in the signal to be detected and generates a response signal, the response signal is sent to the second NFC relay device. And the second NFC relay equipment receives the response signal transmitted by the second NFC entity equipment and transmits the response signal to the first NFC relay equipment at the far end. In a specific embodiment, for example, the mobile phone does not receive payment, the second NFC entity device is a mobile phone, and generates a corresponding response signal according to the payment request in the detected signal, if payment is available, payment is not available, balance is insufficient, and the like, and then sends the generated response signal to the second NFC relay device through the NFC function. After receiving the response signal, the second NFC relay device may directly send the response signal through the private network; the response signal may be encrypted and transmitted via the shared network. In a specific embodiment, the NFC communication module in the second NFC entity device receives the signal, converts the signal into digital information, sends the digital information to the central processing unit, and the central processing unit transfers the digital information to the nfcshook program to complement the data with a preset number of 0, for example, 0000000000000000, for 160 s, and then encrypts the data in 3des ECB mode with the key 12345678901234567890123456789012 to obtain ciphertext information of the response signal in every 8-byte group. If the number of bytes is less than a predetermined number, for example, 8 bytes, the encryption is not performed. And then the second NFC relay device transmits the ciphertext information of the response signal to the first NFC relay device through a wired or wireless shared network, so that the first NFC relay device sends the response signal to the first NFC entity device, and then the second NFC entity device can be determined to be in a normal state according to the transmission conditions of the detected signal and the response signal, if the first NFC entity device completes the business operation, the second NFC entity device can be determined to be in the normal state according to the transmission conditions of the detected signal and the response signal, and if the first NFC entity device does not complete the business operation, further debugging is needed.
In a particular embodiment, a remote test system for performing the steps comprising:
s101, a first NFC relay device receives a detected signal transmitted by a first NFC entity device and transmits the detected signal to a second NFC relay device located at a far end, so that the second NFC relay device receives the detected signal and transmits the detected signal to the second entity device;
s102, receiving a response signal transmitted by second NFC entity equipment by second NFC relay equipment, and transmitting the response signal to first NFC relay equipment so that the first NFC relay equipment receives the response signal and transmits the response signal to the first NFC entity equipment;
and S103, determining that the first NFC entity device and/or the second NFC entity device are in a normal state according to the transmission condition of the detected signal and the response signal.
The present invention is further described with reference to two specific implementation scenarios, wherein fig. 5 is a schematic structural diagram of a relay device in a specific embodiment.
Scene one: and testing the NFC non-connection payment service between the mobile phone and the pos machine, wherein the first NFC relay device and the second NFC relay device are in a wifi wireless network.
For a first NFC relay device:
pressing 'power 9170' switch NFC relay equipment starts, type C socket 9190 is plugged into data line and connected to computer, and computer uploads configuration file config.ini to memory 9140 for storage, for example
ip=192.168.0.1
port=9999
key=12345678901234567890123456789012
After the functional button of '9121 client wifi mode' is pressed again, the central processing unit 9100 starts to load 9140 the nfcsoket program of the application/function 9142 in the memory to the buffer 9141, the nfcsoket starts to read config.ini and set as the client, the port of the ip192.168.0.1 is connected to be 9999, the connection is successful, the indicator light 9130 is green, and if the connection is not successful, the color is red. The central processing unit 9100 issues a preparation instruction to the NFC communication module 9110, and the NFC communication module 9110 handles the listening state. When pos approaches to the NFC relay device A after inputting money, the pos sends an instruction such as 00A404000E325041592E5359532E 44444446303100 through an NFC module, an NFC communication module 9110 receives a signal and converts the signal into digital information to be sent to a central processing unit, the central processing unit sends the digital information to an nfcScoket program to supplement 0000000000000000 to data 00A404000E325041592E5359532E444446303100, and then encryption is carried out in A3 des ECB mode by using a key 12345678901234567890123456789012, wherein encryption is carried out on a group of 8 bytes each and is not encrypted with less than 8 bytes. And then sent to the internet through wifi module 9180. When the wifi module 9180 receives reply information of the internet and sends the reply information to the central processing unit 9100, the central processing unit 9100 transfers the reply information to the nfcScoket program, decryption is performed in a 3des ECB mode by using the key 12345678901234567890123456789012, then 16 bits are removed, and the original text instruction is left, and then the pos is signed through the NFC communication module 9110.
For a second NFC relay device:
pressing 'power 9170' switch NFC relay equipment starts, type C socket 9190 is plugged into data line and connected to computer, and computer uploads configuration file config.ini to memory 9140 for storage, for example
ip=192.168.0.2
port=9999
key=12345678901234567890123456789012
After the functional button of '9122 server wifi mode' is pressed again, central processing unit 9100 starts the nfcsoket program of application/function 9142 in the loading 9140 memory to buffer 9141, and nfcsoket starts to read config.ini and sets as the server, when wifi module 9180 receives the connection request of the internet and visits 9999 port, then the response connection is successful, and simultaneously indicator light 9130 is indicated to turn green through central processing unit 9100. After the 9999 port receives the data, the central processing unit 9100 designates an nfcsoket program to process, the nfcsoket program is decrypted in a 3des ECB mode by using a key 2345678901234567890123456789012, 16 bits are removed after decryption, an original text instruction is left, and an NFC signal is sent to the mobile phone through the NFC communication module 9110. After the mobile phone sends out an NFC response, the NFC communication module 9110 receives the signal and converts the signal into digital information, and sends the digital information to the central processing unit, the central processing unit transfers the digital information to an nfcc scoket program to supplement 000000000000 to the data, and then uses the key 12345678901234567890123456789012 to encrypt the data in a 3des ECB mode, wherein the encryption is one group of 8 bytes, and the encryption is not encrypted with less than 8 bytes. And then returned to the original requester through wifi module 9180.
Scene two: and testing the NFC indirect payment service between the indirect bank card and the pos machine, wherein the first NFC relay device and the second NFC relay device are in a cable wired network.
For a first NFC relay device:
pressing 'power 9170' switch NFC relay equipment starts, type C socket 9190 is plugged into data line and connected to computer, and computer uploads configuration file config.ini to memory 9140 for storage, for example
ip=**
port=9999
key=12345678901234567890123456789012
After the function button of '9123 client electric wire mode' is pressed again, the central processing unit 9100 starts to load the nfcsoket program of the application/function 9142 in the memory 9140 to the buffer area 9141, the nfcsoket starts to read config.ini and set as the client, then the central processing unit sends the connection message to the modem module 9150, the modem module 9150 modulates the message into an electric signal and loads the electric signal to the electric wire while monitoring and demodulating the carrier signal on the electric wire, when the connection with the port in the electric wire range of the same electric meter user is 9999 successful, the indicator light 9130 turns green, and if the connection is not red, the indicator light turns green. The central processing unit 9100 issues a preparation instruction to the NFC communication module 9110, and the NFC communication module 9110 handles the listening state. When pos approaches to the NFC relay device A after inputting money, the pos sends an instruction such as 00A404000E325041592E5359532E 44444446303100 through an NFC module, an NFC communication module 9110 receives a signal and converts the signal into digital information to be sent to a central processing unit, the central processing unit sends the digital information to an nfcScoket program to supplement 0000000000000000 to data 00A404000E325041592E5359532E444446303100, and then encryption is carried out in A3 des ECB mode by using a key 12345678901234567890123456789012, wherein encryption is carried out on a group of 8 bytes each and is not encrypted with less than 8 bytes. Then, the message is modulated into an electric signal by the modulation and demodulation module 9150 to be loaded on the wire, meanwhile, a carrier signal on the demodulation wire is monitored, when the message demodulated by the modulation and demodulation module 9150 is a message which is responded to the message, the message is transmitted to the central processing unit 9100, the central processing unit 9100 transmits the message to an nfcScoket program, decryption is performed in a 3des ECB mode by using the secret key 12345678901234567890123456789012, then 16 bits are removed, and an original text instruction is left, and then the message is signed to pos through the NFC communication module 9110.
For a second NFC relay device:
pressing 'power 9170' switch NFC relay equipment starts, type C socket 9190 is plugged into data line and connected to computer, and computer uploads configuration file config.ini to memory 9140 for storage, for example
ip=**
port=9999
key=12345678901234567890123456789012
After the '9124 server wire mode' function button is pressed again, the central processing unit 9100 starts to load 9140 the nfcsoket program of the application/function 9142 in the memory to the buffer 9141, the nfcsoket starts to read config.ini and set as the server, the modem module 9150 starts to listen to the carrier signal on the demodulation wire, when the message demodulated by the modem module 9150 is forwarded to the central processing unit 9100, the central processing unit 9100 finds that the connection request accesses the 9999 port, the response connection is successful, the modem module 9150 modulates the message into an electric signal and loads the electric signal on the wire while listening to the carrier signal on the demodulation wire, and the central processing unit 9100 indicates that the indicator light 9130 turns green. After the 9999 port receives data, the central processing unit 9100 designates an nfcsoket program to process, the nfcsoket program is decrypted in a 3des ECB mode by using a key 2345678901234567890123456789012, 16 bits are removed after decryption, original text instructions are left, and then an NFC signal is sent to the non-contact bank card through the NFC communication module 9110. After the non-connected bank card sends out an NFC response, the NFC communication module 9110 receives a signal and converts the signal into digital information, the digital information is sent to the central processing unit, the central processing unit sends the digital information to an nfcScoket program to supplement 000000000000 to the data, then 3des ECB mode encryption is carried out by using the secret key 12345678901234567890123456789012, the encryption is one group of 8 bytes, and the encryption is not carried out by less than 8 bytes. Then the message is modulated into an electric signal by the modulation and demodulation module 9150 and loaded on the electric wire, and meanwhile, the carrier signal on the electric wire is monitored and demodulated and returned to the original requesting party.
As can be seen from the above description, the remote test device and system provided by the present invention include a first NFC relay device receiving a signal to be tested transmitted by a first NFC physical device, and transmitting the signal to be tested to a second NFC relay device located at a remote end, so that the second NFC relay device receives the signal to be tested and transmits the signal to be tested to the second physical device; the second NFC relay device receives a response signal transmitted by the second NFC entity device and transmits the response signal to the first NFC relay device, so that the first NFC relay device receives the response signal and transmits the response signal to the first NFC entity device; and determining that the first NFC entity device and/or the second NFC entity device are/is in a normal state according to the transmission condition of the detected signal and the response signal. The application solves the remote testing problem among the NFC devices, original NFC testing devices do not need to be changed, and the NFC testing device can be adapted to the testing of devices such as bank card non-connection devices, mobile phones and POS machines.
In terms of hardware, the present application provides an embodiment of an electronic device for implementing all or part of contents in a remote testing method, where the electronic device specifically includes the following contents:
fig. 7 is a schematic block diagram of a system configuration of an electronic device 9600 according to an embodiment of the present application. As shown in fig. 7, the electronic device 9600 can include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. Notably, this fig. 7 is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In one embodiment, the remote test function may be integrated into a central processor. Wherein the central processor may be configured to control:
s1, receiving a tested signal transmitted by the first NFC entity device;
s2, transmitting the tested signal to a second NFC relay device located at a far end, so that the second NFC relay device receives the tested signal and generates a response signal;
and S3, receiving the response signal, and further determining that the first NFC entity device is in a normal state according to the transmission condition of the detected signal and the response signal.
As can be seen from the above description, the electronic device provided in the embodiment of the present application solves the problem of remote testing between NFC devices, does not need to change an original NFC testing device, and can adapt to testing of devices such as a bank card non-contact device and a mobile phone and a POS device.
In another embodiment, the remote testing device and system may be configured separately from the central processor 9100, for example, the remote testing device and system may be configured as a chip connected to the central processor 9100, and the remote testing function is realized by the control of the central processor.
As shown in fig. 7, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is noted that the electronic device 9600 also does not necessarily include all of the components shown in fig. 7; further, the electronic device 9600 may further include components not shown in fig. 7, which may be referred to in the art.
As shown in fig. 7, a central processing unit 9100, also sometimes referred to as a controller or operational control, may include a microprocessor or other processor device and system and/or logic device and system, that receives input and controls operation of various components of the electronic device 9600.
The memory 9140 can be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable devices and systems. The information relating to the failure may be stored, and a program for executing the information may be stored. And the central processing unit 9100 can execute the program stored in the memory 9140 to realize information storage or processing, or the like.
The input unit 9120 provides input to the central processor 9100. The input unit 9120 is, for example, a key or touch input device and system. Power supply 9170 is used to provide power to electronic device 9600. The display 9160 is used for displaying display objects such as images and characters. The display may be, for example, an LCD display, but is not limited thereto.
The memory 9140 can be a solid state memory, e.g., Read Only Memory (ROM), Random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 9140 could also be some other type of device or system. Memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application/function storage portion 9142, the application/function storage portion 9142 being used for storing application programs and function programs or for executing a flow of operations of the electronic device 9600 by the central processor 9100.
The memory 9140 can also include a data store 9143, the data store 9143 being used to store data, such as contacts, digital data, pictures, sounds, and/or any other data used by an electronic device. The driver storage portion 9144 of the memory 9140 may include various drivers for the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, contact book applications, etc.).
The communication module 9110 is a transmitter/receiver 9110 that transmits and receives signals via an antenna 9111. The communication module (transmitter/receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 9110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be provided in the same electronic device. The communication module (transmitter/receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and receive audio input from the microphone 9132, thereby implementing ordinary telecommunications functions. The audio processor 9130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 9130 is also coupled to the central processor 9100, thereby enabling recording locally through the microphone 9132 and enabling locally stored sounds to be played through the speaker 9131.
Embodiments of the present application further provide a computer-readable storage medium capable of implementing all steps in the remote testing method in the foregoing embodiments, where the computer-readable storage medium stores thereon a computer program, and when the computer program is executed by a processor, the computer program implements all steps of the remote testing method in which an execution subject is a server or a client in the foregoing embodiments, for example, when the processor executes the computer program, the processor implements the following steps:
s1, receiving a tested signal transmitted by the first NFC entity device;
s2, transmitting the tested signal to a second NFC relay device located at a far end, so that the second NFC relay device receives the tested signal and generates a response signal;
and S3, receiving the response signal, and further determining that the first NFC entity device is in a normal state according to the transmission condition of the detected signal and the response signal.
As can be seen from the above description, the computer-readable storage medium provided in the embodiment of the present application solves the problem of remote testing between NFC devices, and can adapt to testing of devices such as a bank card, a mobile phone, and a POS device without changing the original NFC testing device.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as methods, apparatus and systems, or computer program products. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means and systems for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means and systems which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (12)

1. A remote testing method applied to a first NFC relay device is characterized by comprising the following steps:
receiving a tested signal transmitted by first NFC entity equipment;
transmitting the signal to be tested to a second NFC relay device located at a far end, so that the second NFC relay device receives the signal to be tested and generates a response signal;
and receiving the response signal, and further determining that the first NFC entity device is in a normal state according to the transmission conditions of the detected signal and the response signal.
2. The remote testing method of claim 1, wherein said first NTC relay device and said second NFC relay device are in the same proprietary communication network, and wherein said transmitting said signal under test to said remotely located second NFC device is via said proprietary communication network.
3. The remote testing method of claim 1, further comprising:
encrypting the tested signal to obtain the cipher text information of the tested signal;
and transmitting the tested signal ciphertext information to a second NFC relay device located at a far end, so that the second NFC relay device receives the tested signal ciphertext information and generates a response signal.
4. The remote testing method of claim 3, wherein said encrypting said signal under test comprises:
adding a preset number of digital 0 s to the tail of the measured signal to obtain a signal to be encrypted;
and encrypting the signal to be encrypted by adopting a character codebook mode.
5. A remote testing method as claimed in claim 3, further comprising:
and if the number of bytes of the tested signal is less than a preset threshold value, the tested signal is not encrypted.
6. A remote testing method applied to a second NFC relay device is characterized by comprising the following steps:
receiving a detected signal transmitted by first NFC relay equipment at a far end;
transmitting the signal under test to a second NFC entity device;
and receiving a response signal transmitted by the second NFC entity device, transmitting the response signal to the first NFC relay device at the far end, and determining that the second NFC entity device is in a normal state according to the transmission conditions of the detected signal and the response signal.
7. A remote testing method, comprising:
the method comprises the steps that a first NFC relay device receives a tested signal transmitted by a first NFC entity device and transmits the tested signal to a second NFC relay device located at a far end, so that the second NFC relay device receives the tested signal and transmits the tested signal to the second entity device;
the second NFC relay device receives a response signal transmitted by the second NFC entity device and transmits the response signal to the first NFC relay device, so that the first NFC relay device receives the response signal and transmits the response signal to the first NFC entity device;
and determining that the first NFC entity device and/or the second NFC entity device are/is in a normal state according to the transmission condition of the detected signal and the response signal.
8. An NFC relay device, comprising:
the tested signal receiving module is used for receiving a tested signal transmitted by the first NFC entity device;
the tested signal transmission module is used for transmitting the tested signal to second NFC relay equipment located at a far end so that the second NFC relay equipment receives the tested signal and generates a response signal;
and the response signal receiving module is used for receiving the response signal and further determining that the first NFC entity equipment is in a normal state according to the transmission conditions of the detected signal and the response signal.
9. An NFC relay device, comprising:
the device comprises a tested signal receiving module, a first NFC relay device and a second NFC relay device, wherein the tested signal receiving module is used for receiving a tested signal transmitted by the first NFC relay device positioned at a far end;
the tested signal transmission module is used for transmitting the tested signal to second NFC entity equipment;
and the response signal transmission module is used for receiving the response signal transmitted by the second NFC entity equipment and transmitting the response signal to the first NFC relay equipment at the far end, so that the second NFC entity equipment can be determined to be in a normal state according to the transmission conditions of the detected signal and the response signal.
10. A remote test system, comprising:
the first NFC relay device receives a detected signal transmitted by the first NFC entity device and transmits the detected signal to a second NFC relay device located at a far end, so that the second NFC relay device receives the detected signal and transmits the detected signal to the second entity device;
the second NFC relay device receives the response signal transmitted by the second NFC entity device and transmits the response signal to the first NFC relay device, so that the first NFC relay device receives the response signal and transmits the response signal to the first NFC entity device;
and the test result determining device determines that the first NFC entity device and/or the second NFC entity device are/is in a normal state according to the transmission conditions of the tested signal and the response signal.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the remote testing method of any of claims 1 to 7 when executing the program.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the remote testing method of any one of claims 1 to 7.
CN202110474551.1A 2021-04-29 2021-04-29 Remote testing method, equipment and system Active CN113193923B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110474551.1A CN113193923B (en) 2021-04-29 2021-04-29 Remote testing method, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110474551.1A CN113193923B (en) 2021-04-29 2021-04-29 Remote testing method, equipment and system

Publications (2)

Publication Number Publication Date
CN113193923A true CN113193923A (en) 2021-07-30
CN113193923B CN113193923B (en) 2022-10-11

Family

ID=76980895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110474551.1A Active CN113193923B (en) 2021-04-29 2021-04-29 Remote testing method, equipment and system

Country Status (1)

Country Link
CN (1) CN113193923B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130070926A1 (en) * 2011-09-19 2013-03-21 Pantech Co., Ltd. Terminal and method for communicating via near field communication
CN202931319U (en) * 2012-11-22 2013-05-08 深圳Tcl新技术有限公司 Data transfer device and near-field communication system
CN105608574A (en) * 2015-12-18 2016-05-25 宁波大学 Near-field communication payment method based on optimal relay cooperation
US20190065300A1 (en) * 2017-08-28 2019-02-28 American Megatrends Inc. Method of retrieving debugging data in uefi and computer system thereof
CN110995913A (en) * 2019-11-14 2020-04-10 北京中电华大电子设计有限责任公司 Non-contact smart card testing method based on NFC smart phone

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130070926A1 (en) * 2011-09-19 2013-03-21 Pantech Co., Ltd. Terminal and method for communicating via near field communication
CN202931319U (en) * 2012-11-22 2013-05-08 深圳Tcl新技术有限公司 Data transfer device and near-field communication system
CN105608574A (en) * 2015-12-18 2016-05-25 宁波大学 Near-field communication payment method based on optimal relay cooperation
US20190065300A1 (en) * 2017-08-28 2019-02-28 American Megatrends Inc. Method of retrieving debugging data in uefi and computer system thereof
CN110995913A (en) * 2019-11-14 2020-04-10 北京中电华大电子设计有限责任公司 Non-contact smart card testing method based on NFC smart phone

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
包岱远等: "基于嵌入式平台的NFC购电卡通信测试仪设计与实现", 《电器与能效管理技术》 *

Also Published As

Publication number Publication date
CN113193923B (en) 2022-10-11

Similar Documents

Publication Publication Date Title
US10733603B2 (en) Method and apparatus for facilitating electronic payments using a wearable device
KR101510784B1 (en) Method of secure personalization of a nfc chipset
CN101261675B (en) Secure method for loading service access data in an NFC chipset
CN101771586B (en) Method, system and equipment for realizing equipment adding in wireless fidelity (Wi-Fi) point-to-point network
US9628585B2 (en) Systems and methods for cross-layer secure connection set up
KR100547855B1 (en) Secure communication system and method of a composite mobile communication terminal having a local area communication device
JP2018510592A (en) Dynamic encryption method, terminal, and server
CN104700262B (en) A kind of payment system based on NFC mobile terminal and POS terminal
CN104507080A (en) File processing method and terminal
CN112672342B (en) Data transmission method, device, equipment, system and storage medium
CN105376059A (en) Method and system for performing application signature based on electronic key
CN103236926A (en) Point-to-point-based data transmission system and data transmission method
CN110278083A (en) ID authentication request treating method and apparatus, equipment replacement method and apparatus
KR102050823B1 (en) System, an apparatus and a method for transmitting and receiving information using quick response code
CN114039727A (en) Data transmission method and device, intelligent terminal and gateway equipment
WO2017044677A1 (en) Method and apparatus for facilitating electronic payments using a wearable device
CN115669022A (en) Method for providing ranging-based service by electronic equipment and electronic equipment
CN105678542B (en) payment service interaction method, payment terminal and payment cloud terminal
CN111357305B (en) Communication method, equipment, system and storage medium of movable platform
CN107493281A (en) encryption communication method and device
CN113193923B (en) Remote testing method, equipment and system
CN116508044A (en) Payment method and device using ultra-wideband communication
CN112242977A (en) Data transmission method and data transmission system
CN112041897A (en) Control method, ticket selling rule server, ticket checking rule server and device
CN113596827B (en) Key generation method, device, 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