KR102007505B1 - Method for Data Communication Between Terminals Using Code - Google Patents

Method for Data Communication Between Terminals Using Code Download PDF

Info

Publication number
KR102007505B1
KR102007505B1 KR1020170052347A KR20170052347A KR102007505B1 KR 102007505 B1 KR102007505 B1 KR 102007505B1 KR 1020170052347 A KR1020170052347 A KR 1020170052347A KR 20170052347 A KR20170052347 A KR 20170052347A KR 102007505 B1 KR102007505 B1 KR 102007505B1
Authority
KR
South Korea
Prior art keywords
value
code
terminal
data
data communication
Prior art date
Application number
KR1020170052347A
Other languages
Korean (ko)
Other versions
KR20180118977A (en
Inventor
문기봉
강준구
Original Assignee
한국스마트인증 주식회사
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 한국스마트인증 주식회사 filed Critical 한국스마트인증 주식회사
Priority to KR1020170052347A priority Critical patent/KR102007505B1/en
Publication of KR20180118977A publication Critical patent/KR20180118977A/en
Application granted granted Critical
Publication of KR102007505B1 publication Critical patent/KR102007505B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3226Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using a predetermined code, e.g. password, passphrase or PIN
    • G06K9/18
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/22Character recognition characterised by the type of writing
    • G06V30/224Character recognition characterised by the type of writing of printed characters having additional code marks or containing code marks

Abstract

본 발명에 의한 단말기간 데이터 통신 방법은, 제1 단말기와 제2 단말기가 데이터 통신하는 방법에 있어서; 제1 데이터가 포함된 코드로서 추가적으로 제1-1 값과 제1-2 값을 포함하는 제1 코드를 제1 단말기가 현출하는 제1 단계와; 제2 단말기가 제1 코드를 인식하고 판독하는 제2 단계와; 제1 데이터에 대한 응답인 제2 데이터가 포함된 코드로서 추가적으로 제2-1 값과 제2-2 값을 포함하는 제2 코드를 제2 단말기가 현출하는 제3 단계와; 제1 단말기가 제2 코드를 인식하고 판독하는 제4 단계를 포함한다.
데이터 통신을 시작하는 경우에는, 제1 코드의 제1-1값이 제1 랜덤값으로 설정되고 제1-2 값은 제1 값으로 설정되며; 제2 코드의 제2-1 값은 제2 랜덤값으로 설정되고 제2-2 값은 제1 랜덤값으로 설정되며; 데이터 통신을 종료하려는 경우에는, 제1 단말기와 제2 단말기 중 종료 신호를 전송하는 단말기의 제1-1 값 또는 제2-1 값이 제2 값으로 설정되고, 제1-2 값 또는 제2-2 값은 직전에 수신한 코드에 포함된 랜덤값으로 설정된다.
According to an aspect of the present invention, there is provided a data communication method between terminals, comprising: a method in which data is communicated between a first terminal and a second terminal; A first step of presenting, by the first terminal, a first code including a first-1 value and a first-2 value as a code including first data; A second step of the second terminal recognizing and reading the first code; A third step of the second terminal presenting a second code including a second-1 value and a second-2 value as a code including second data which is a response to the first data; And a fourth step in which the first terminal recognizes and reads the second code.
When starting data communication, the first-first value of the first code is set to the first random value and the first-second value is set to the first value; The second-1 value of the second code is set to the second random value and the second-2 value is set to the first random value; When the data communication is to be terminated, the first-first value or the second-first value of the terminal that transmits the termination signal between the first terminal and the second terminal is set to the second value, and the 1-2 value or the second value. The value of -2 is set to a random value included in the immediately received code.

Description

코드를 이용한 단말기간 데이터 통신 방법{Method for Data Communication Between Terminals Using Code}Method for Data Communication Between Terminals Using Code}

본 발명은 코드를 이용한 단말기간 데이터 통신 방법에 관한 것으로서, 좀 더 구체적으로는 소정의 데이터가 포함된 코드를 단말기가 판독함으로써 단말기간에 데이터 통신이 가능하게 하는 방법에 대한 것이다.The present invention relates to a method of data communication between terminals using a code, and more particularly, to a method of enabling data communication between terminals by reading a code including predetermined data.

전자적 장치인 단말기끼리 데이터를 무선으로 전송하는 방법으로서 공지되어 있는 방법은 예를 들어, 블루투스를 이용하는 방법, NFC를 이용하는 방법, 적외선 통신(IR)을 이용하는 방법 등이 있다. 그러한 종래 기술에 따른 단말기간 데이터 전송은, 지원 가능한 단말기가 제한적이며, 무선 통신을 이용한 데이터 전송을 위해서 사용자가 매번 단말기를 켜서 사용해야 하는 등의 불편함이 수반되었으며, 항상 무선 통신 가능상태로 설정하면 전원이 낭비되는 등의 단점이 있었다.Known methods for wirelessly transmitting data between terminals, which are electronic devices, include, for example, a method using Bluetooth, a method using NFC, and a method using infrared communication (IR). Such data transfer between terminals according to the prior art is limited to the terminal that can be supported, and the user has to be inconvenient to turn on the terminal every time for data transmission using wireless communication. There were disadvantages such as wasting power.

본 발명은 이러한 종래 기술의 문제점을 해결하기 위하여 시각적으로 인지 가능한 코드를 이용하여 적어도 두 대의 단말기간에 데이터 통신이 가능한 방법을 제공하는 것을 목적으로 한다.An object of the present invention is to provide a method capable of data communication between at least two terminals using a visually recognizable code in order to solve the problems of the prior art.

본 발명에 의한 단말기간 데이터 통신 방법은, 제1 단말기와 제2 단말기가 데이터 통신하는 방법에 있어서; 제1 데이터가 포함된 코드로서 추가적으로 제1-1 값과 제1-2 값을 포함하는 제1 코드를 제1 단말기가 현출하는 제1 단계와; 제2 단말기가 제1 코드를 인식하고 판독하는 제2 단계와; 제1 데이터에 대한 응답인 제2 데이터가 포함된 코드로서 추가적으로 제2-1 값과 제2-2 값을 포함하는 제2 코드를 제2 단말기가 현출하는 제3 단계와; 제1 단말기가 제2 코드를 인식하고 판독하는 제4 단계를 포함한다.According to an aspect of the present invention, there is provided a data communication method between terminals, comprising: a method in which a first terminal and a second terminal perform data communication; A first step of presenting, by the first terminal, a first code including a first-1 value and a first-2 value as a code including first data; A second step of the second terminal recognizing and reading the first code; A third step of the second terminal presenting a second code including a second-1 value and a second-2 value as a code including second data which is a response to the first data; And a fourth step in which the first terminal recognizes and reads the second code.

데이터 통신을 시작하는 경우에는, 제1 코드의 제1-1값이 제1 랜덤값으로 설정되고 제1-2 값은 제1 값으로 설정되며; 제2 코드의 제2-1 값은 제2 랜덤값으로 설정되고 제2-2 값은 제1 랜덤값으로 설정되며; 데이터 통신을 종료하려는 경우에는, 제1 단말기와 제2 단말기 중 종료 신호를 전송하는 단말기의 제1-1 값 또는 제2-1 값이 제2 값으로 설정되고, 제1-2 값 또는 제2-2 값은 직전에 수신한 코드에 포함된 랜덤값으로 설정된다.When starting data communication, the first-first value of the first code is set to the first random value and the first-second value is set to the first value; The second-1 value of the second code is set to the second random value and the second-2 value is set to the first random value; When the data communication is to be terminated, the first-first value or the second-first value of the terminal that transmits the termination signal between the first terminal and the second terminal is set to the second value, and the 1-2 value or the second value. The value of -2 is set to a random value included in the immediately received code.

제1 코드의 제1-1 값은 매번 다른 값으로 생성되는 랜덤값일 수 있으며, 제2 코드의 제2-1 값은 매번 다른 값으로 생성되는 랜덤값일 수 있다.The first-first value of the first code may be a random value generated every time with a different value, and the second-first value of the second code may be a random value generated every time with a different value.

단말기간 데이터 통신을 리셋하려는 경우에는, 제1 단말기 및 제2 단말기 중 어느 하나의 제1-1 값 및 제1-2 값 또는 제2-1 및 제2-2 값이 제3 값으로 동일하게 설정될 수 있다.When resetting the data communication between the terminals, the first-first value and the first-second value or the second-1 and second-2 value of any one of the first terminal and the second terminal are equal to the third value. Can be set.

제1-2 값 또는 제2-2 값이 직전에 상대 단말기로부터 수신한 코드에 포함된 랜덤값이 아닌 경우에는 통신 오류로 처리하는 단계를 더 포함할 수 있다.If the 1-2 value or the 2-2 value is not a random value included in the code received from the other terminal immediately before, the method may further include processing as a communication error.

본 발명에 의하면, 제1 단말기(10)와 제2 단말기(20)가 코드를 생성하고, 생성된 코드를 인식/판독함으로써 단말기간에 데이터 통신이 가능해지는 효과가 있다. 이는 블루투스나, 적외선 통신, NFC를 가능하게 하는 통신 모듈이 탑재되지 않더라도, 그리고 운영체제와 관계없이 단말기간 통신이 가능해지는 작용 효과가 제공된다. 특히 출입 통제 또는 모바일 결제 등에도 편리하게 적용할 수 있다.According to the present invention, the first terminal 10 and the second terminal 20 generates a code, and there is an effect of enabling data communication between the terminals by recognizing / reading the generated code. This provides the effect that communication between terminals is possible even if a communication module that enables Bluetooth, infrared communication, NFC, or the like is not mounted. In particular, it can be conveniently applied to access control or mobile payment.

도 1은 본 발명에 의한 방법에 사용되는 두 대의 단말기의 블록도.
도 2는 제1 코드의 개념도.
도 3은 제2 코드의 개념도.
도 4는 본 발명에 의한 데이터 통신 방법의 흐름도.
1 is a block diagram of two terminals used in the method according to the invention.
2 is a conceptual diagram of a first code.
3 is a conceptual diagram of a second code.
4 is a flowchart of a data communication method according to the present invention;

본 명세서에서 수행되는 정보(데이터) 전송 과정은 필요에 따라서 암호화/복호화가 적용될 수 있으며, 본 명세서 및 특허청구범위에서 정보(데이터) 전송 과정을 설명하는 표현은 별도로 언급되지 않더라도 모두 암호화/복호화하는 경우도 포함하는 것으로 해석되어야 한다. 본 명세서에서 "A로부터 B로 전송(전달)" 또는 "A가 B로부터 수신"과 같은 형태의 표현은 중간에 다른 매개체가 포함되어 전송(전달) 또는 수신되는 것도 포함하며, A로부터 B까지 직접 전송(전달) 또는 수신되는 것만을 표현하는 것은 아니다. 본 발명의 설명에 있어서 각 단계의 순서는 선행 단계가 논리적 및 시간적으로 반드시 후행 단계에 앞서서 수행되어야 하는 경우가 아니라면 각 단계의 순서는 비제한적으로 이해되어야 한다. 즉 위와 같은 예외적인 경우를 제외하고는 후행 단계로 설명된 과정이 선행 단계로 설명된 과정보다 앞서서 수행되더라도 발명의 본질에는 영향이 없으며 권리범위 역시 단계의 순서에 관계없이 정의되어야 한다. 그리고 본 명세서에서 “A 또는 B”은 A와 B 중 어느 하나를 선택적으로 가리키는 것 뿐만 아니라 A와 B 모두를 포함하는 것도 의미하는 것으로 정의된다. 또한, 본 명세서에서 "포함"이라는 용어는 포함하는 것으로 나열된 요소 이외에 추가로 다른 구성요소를 더 포함하는 것도 포괄하는 의미를 가진다.The information (data) transmission process performed in the present specification may be applied to encryption / decryption as necessary, and in this specification and the claims, the expressions describing the information (data) transmission process are all encrypted / decrypted even if not mentioned otherwise. It should also be interpreted to include cases. In this specification, expressions of the form "transfer from A to B (transfer)" or "A receives from B" include those that are transmitted (transmitted) or received with other mediators in between, and directly from A to B. It does not represent only what is transmitted (delivered) or received. In the description of the present invention, the order of each step is to be understood without limitation unless the preceding step is to be performed logically and temporally prior to the later step. In other words, except in the exceptional case described above, even if the process described in the following step is performed in advance of the process described in the preceding step, the nature of the invention is not affected, and the scope of rights should be defined regardless of the order of the steps. In this specification, “A or B” is defined to mean not only selectively indicating any one of A and B, but also including both A and B. In addition, the term "comprising" in this specification has the meaning encompassing further including other elements in addition to the elements listed as containing.

본 명세서에서 "모듈"이라 함은 범용적인 하드웨어와 그 기능을 수행하는 소프트웨어의 논리적 결합을 의미한다. As used herein, the term "module" refers to a logical combination of general-purpose hardware and software that performs its functions.

본 명세서에서는 본 발명의 설명에 필요한 필수적인 구성요소만을 설명하며, 본 발명의 본질과 관계가 없는 구성요소는 언급하지 아니한다. 그리고 언급되는 구성요소만을 포함하는 배타적인 의미로 해석되어서는 아니되며 다른 구성요소도 포함할 수 있는 비배타적인 의미로 해석되어야 한다.In this specification, only essential components necessary for the description of the present invention are described, and components not related to the nature of the present invention are not mentioned. It should not be construed in an exclusive sense that includes only the constituent elements but in a non-exclusive sense, which may also include other components.

도 1에 도시된 환경은 제1 단말기(10)와 제2 단말기(20)가 서로 데이터를 주고 받는 실시예를 가정한다. 본 발명이 적용되는 단말기의 개수는 반드시 2개에 제한되는 것은 아니다.The environment shown in FIG. 1 assumes an embodiment in which the first terminal 10 and the second terminal 20 exchange data with each other. The number of terminals to which the present invention is applied is not necessarily limited to two.

본 명세서에서 "코드"라 함은 소정의 정보가 포함될 수 있고 시각적으로 인식 가능한 형태로서 예를 들어, 바코드나, QR 코드와 같은 2차원 코드가 될 수 있으며 그 종류에 제한되지 않는다.In the present specification, the term "code" may include predetermined information and may be a visually recognizable form, for example, a two-dimensional code such as a barcode or a QR code, but is not limited thereto.

제1 단말기(10)는 코드 생성 모듈(12)과, 코드 현출 모듈(14)과, 코드 인식 모듈(16)과, 코드 판독 모듈(18)을 포함한다. 제2 단말기(20) 역시 코드 생성 모듈(22)과, 코드 현출 모듈(24)과, 코드 인식 모듈(26)과, 코드 판독 모듈(28)을 포함한다. 코드 생성 모듈(12, 22)은 소정의 정보가 포함된 코드를 생성한다. 코드 현출 모듈(14)은 생성된 코드 즉 제1 코드(100)를 외부에서 인식할 수 있도록 현출(現出)한다. 코드 인식 모듈(16)은 타 단말기가 생성한 코드를 인식할 수 있는 모듈로서 예를 들어, 카메라 모듈이 될 수 있다. 코드 판독 모듈(18)은 코드 인식 모듈(16)이 인식한 타 단말기의 코드를 판독한다.The first terminal 10 includes a code generation module 12, a code expression module 14, a code recognition module 16, and a code reading module 18. The second terminal 20 also includes a code generation module 22, a code expression module 24, a code recognition module 26, and a code reading module 28. The code generation modules 12 and 22 generate a code including predetermined information. The code display module 14 displays the generated code, that is, the first code 100 so as to be recognized externally. The code recognition module 16 is a module capable of recognizing a code generated by another terminal and may be, for example, a camera module. The code reading module 18 reads codes of other terminals recognized by the code recognition module 16.

제2 단말기(20)의 코드 생성 모듈(22), 코드 현출 모듈(24), 코드 인식 모듈(26), 코드 판독 모듈(28)은 제1 단말기(10)의 그것과 대동소이하므로 자세한 설명은 생략하기로 한다.Since the code generation module 22, the code display module 24, the code recognition module 26, and the code reading module 28 of the second terminal 20 are similar to those of the first terminal 10, a detailed description thereof will be provided. It will be omitted.

도 2에는 제1 단말기(10)가 생성한 제1 코드(100)의 예가 도시되어 있다.2 illustrates an example of the first code 100 generated by the first terminal 10.

도 2에 도시된 실시예에서 제1 코드(100)는 제1 데이터(120)와, 제1-1 값(140)과, 제1-2 값(160)이 포함되어 있다. 제1-1 값(140)은 일종의 논스값(nonce)으로서 랜덤값 또는 미리 정해진 값으로 생성된다. 제1-2 값(160)은 데이터 통신에서 수신확인(ack) 값의 기능을 수행하며, 직전에 수신한 데이터의 논스값 또는 미리 정해진 값으로 생성된다.In the embodiment shown in FIG. 2, the first code 100 includes first data 120, a first-first value 140, and a first-second value 160. The first-first value 140 is a kind of nonce and is generated as a random value or a predetermined value. The 1-2 value 160 performs a function of an acknowledgment value in data communication, and is generated as a nonce value or a predetermined value of data received immediately before.

도 3에는 제2 단말기(20)가 생성한 제2 코드(200)의 예가 도시되어 있다.3 illustrates an example of the second code 200 generated by the second terminal 20.

제2 코드(200)는 제2 데이터(220)와, 제2-1 값(240)과, 제2-2 값(260)이 포함되어 있다. 제2-1 값(240)은 일종의 논스값(nonce)으로서 랜덤값 또는 미리 정해진 값으로 생성된다. 제2-2 값(160)은 데이터 통신에서 수신확인(ack) 값의 기능을 수행하며, 직전에 수신한 데이터의 논스값 또는 미리 정해진 값으로 생성된다.The second code 200 includes the second data 220, the second-1 value 240, and the second-2 value 260. The second-first value 240 is a kind of nonce and is generated as a random value or a predetermined value. The second-2 value 160 performs a function of an acknowledgment value in data communication, and is generated as a nonce value or a predetermined value of data received immediately before.

다음으로 본 발명에 의한 단말기간 데이터 통신에 적용될 수 있는 예시적인 프로토콜과 데이터 통신 과정을 설명한다.Next, an exemplary protocol and data communication process applicable to data communication between terminals according to the present invention will be described.

제1 단말기(10)와 제2 단말기(20)가 서로 데이터 통신을 시작할 때, 코드 생성 모듈(12)은 제2 단말기(20)로 전송할 제1 데이터(120)와, 제1-1 값(140)과, 제1-2 값(160)이 포함된 제1 코드(100)를 생성하고 코드 현출 모듈(14)이 생성된 제1 코드(100)를 현출한다.(단계 400 및 410)When the first terminal 10 and the second terminal 20 start data communication with each other, the code generation module 12 may transmit the first data 120 to be transmitted to the second terminal 20 and the first-first value ( 140 and the first code 100 including the 1-2 value 160 and the code presenting module 14 displays the generated first code 100 (steps 400 and 410).

데이터 통신을 시작할 때에 제1-1 값(140)은 제1 랜덤값(nonce)이며, 제1-2 값은 제1 값으로 설정될 수 있다. 제1 값은 예를 들어, 0이 될 수 있다. 그러나 반드시 제1 값이 0으로 제한되는 것은 아니고 데이터 통신의 시작을 가리키는 다른 값으로 미리 설정될 수도 있다.When starting data communication, the first-first value 140 may be a first random value, and the first-second value may be set to a first value. The first value may be 0, for example. However, the first value is not necessarily limited to 0 and may be preset to another value indicating the start of data communication.

제1 단말기(10)에 현출된 제1 코드(100)를 제2 단말기(20)가 코드 인식 모듈(26) 및 코드 판독 모듈(28)로 인식하고 판독한다.(단계 420) 제1-2 값이 0인 것으로 판독되면, 단말기간 데이터 통신이 시작되는 것으로 판단하고 제1 데이터(120)에 대한 응답인 제2 데이터(220)와, 제2-1 값(240) 및 제2-2 값(260)이 포함된 제2 코드(200)를 생성한다.(단계 430) 제2-1 값(240)은 제2 랜덤값(nonce)이 되고, 제2-2 값(260)은, 제1 코드(100)에 포함된 제1-1 값(140) 즉 제1 랜덤값이 된다. 만약, 제1 단말기(10)와 제2 단말기(20)간의 데이터 통신이, 제1 데이터(120)의 전송과 제2 데이터(220)의 응답으로 한번에 종료하는 경우라면, 제2-1 값(240)을 데이터 통신 종료값으로 설정된 제2 값으로 한다. 제2 값은 예를 들어 0이 될 수 있다. 그러나 반드시 제2 값이 0으로 제한되는 것은 아니고 데이터 통신의 종료를 가리키는 다른 값으로 미리 설정될 수도 있다.The second terminal 20 recognizes and reads the first code 100 displayed on the first terminal 10 as the code recognition module 26 and the code reading module 28. (Step 420) 1-2 If the value is read as 0, it is determined that data communication between terminals is started, and the second data 220 which is a response to the first data 120, the second-1 value 240 and the second-2 value are determined. The second code 200 including the reference numeral 260 is generated. (Step 430) The second-first value 240 becomes a second random value, and the second-second value 260 corresponds to a second value. The first-value 140 included in the first code 100, that is, the first random value. If the data communication between the first terminal 10 and the second terminal 20 ends at the same time in response to the transmission of the first data 120 and the response of the second data 220, the second-1 value ( 240, a second value set as a data communication end value. The second value may be zero, for example. However, the second value is not necessarily limited to 0 and may be preset to another value indicating the end of data communication.

제2 단말기(20)는 제2 코드(200)를 현출하고(단계 440), 제1 단말기(10)는 제2 코드를 인식하고 판독한다.(단계 450)The second terminal 20 presents the second code 200 (step 440), and the first terminal 10 recognizes and reads the second code (step 450).

제2 데이터(220)를 판독한 후에 추가적인 데이터 통신이 필요한 경우라면, 제1 단말기(10)가 제2 데이터에 대한 응답 데이터가 포함된 제1 코드를 추가로 생성한다. 이 제1 코드는 데이터 통신의 시작 때 생성된 제1 코드와는 다른 코드이다. 이 제1 코드의 제1-1 값(140)은 새롭게 생성된 랜덤값이 되며, 제1-2 값(160)은 제2 코드(200)에 포함된 제2-1 값(240)이 된다.If additional data communication is necessary after reading the second data 220, the first terminal 10 further generates a first code including response data for the second data. This first code is different from the first code generated at the start of data communication. The first-first value 140 of the first code is a newly generated random value, and the first-second value 160 is a second-first value 240 included in the second code 200. .

현출된 제1 코드(100)는 제2 단말기(20)가 판독하고 전술한 과정을 데이터 통신이 종료될 때까지 계속한다.The present first code 100 is read by the second terminal 20 and continues until the data communication is terminated.

제1 코드와 제2 코드가 생성될 때 포함되는 랜덤값 즉 제1-1 값(140)과 제2-1 값(240)은 매번 다르게 생성될 수 있다.The random value included when the first code and the second code are generated, that is, the first-first value 140 and the second-first value 240 may be generated differently each time.

제1 단말기(10)와 제2 단말기(20)간의 데이터 통신을 리셋도 가능한데, 이 경우 리셋을 가리키도록 미리 설정되어 있는 값을 제1 코드(100) 또는 제2 코드(200)의 제1-1 값(140), 제1-2 값(160), 제2-1 값(240) 및 제2-2 값(260)로 설정할 수 있다. 예를 들어, 제1 단말기(10)쪽에서 통신을 리셋하는 경우에는 제1-1 값(140)과 제1-2 값(160)을 모두 0으로 설정할 수 있다.It is also possible to reset the data communication between the first terminal 10 and the second terminal 20. In this case, a value set in advance to indicate the reset may be set to the first of the first code 100 or the second code 200. It may be set to a -1 value 140, a 1-2 value 160, a second-1 value 240, and a second-2 value 260. For example, when resetting communication on the first terminal 10 side, both the first-first value 140 and the first-second value 160 may be set to zero.

다음으로, 여러 예를 들어서 데이터 통신 과정을 구체적으로 설명한다.Next, the data communication process will be described in detail with various examples.

[정상적인 데이터 통신][Normal data communication] 제1 코드First code 제2 코드Second code 제1-1 값 = 10
제1-2 값 = 0
1-1 value = 10
1-2 value = 0
제2-1 값 = 21
제2-2 값 = 10
2-1 value = 21
2-2 value = 10
제1-1 값 = 28
제1-2 값 = 21
1-1 value = 28
1-2 value = 21
제2-1 값 = 0
제2-2 값 = 28
2-1 value = 0
2-2 value = 28

[비정상 예시 1][Abnormal Example 1] 제1 코드First code 제2 코드Second code 제1-1 값 = 10
제1-2 값 = 0
1-1 value = 10
1-2 value = 0
제2-1 값 = 21
제2-2 값 = 11
2-1 value = 21
2-2 value = 11
제2 코드의 제2-2 값이 10이 아니라 11이므로 오류 처리Error handling because 2-2 value of second code is 11 instead of 10 제1-1 값 = 0
제1-2 값 = 0
1-1 value = 0
1-2 value = 0

상기 예에서는 제2-2 값이 제1 코드의 제1-1 값인 10과 다른 11이기 때문에 오류 처리하고 제1-1 값과 제1-2 값을 0으로 설정하고 리셋을 시킨다. 제2-1 값과 제2-2 값도 0으로 설정해서 리셋시킬 수 있다.In the above example, since the value 2-2 is 11 different from 10, which is the 1-1 value of the first code, error processing is performed, and the value 1-1 and the value 1-2 are set to 0 and reset. The 2-1 value and the 2-2 value can also be reset to 0.

[비정상 예시 2][Abnormal example 2] 제1 코드First code 제2 코드Second code 제1-1 값 = 10
제1-2 값 = 0
1-1 value = 10
1-2 value = 0
제2-1 값 = 21
제2-2 값 = 10
2-1 value = 21
2-2 value = 10
제1-1 값 = 28
제1-2 값 = 0
1-1 value = 28
1-2 value = 0
제1-2 값이 0이므로 제2 코드에 대한 응답이 아니라 새로운 트랜잭션(transaction)을 시작한 것으로 보고 오류 처리Since the value of 1-2 is 0, it is regarded as the start of a new transaction rather than a response to the second code. 제2-1 값 = 0
제2-2 값 = 0
2-1 value = 0
2-2 value = 0

제1 코드의 제1-2 값이 0이므로, 이 코드를 제2 코드에 대한 응답 데이터로 보지 않고 새로운 트랜잭션이 시작한 것으로 보고 오류 처리한 후, 제2-1 값과 제2-2 값을 0으로 설정하여 데이터 통신을 리셋시킨다.Since the first-2 value of the first code is 0, the code is regarded as the start of a new transaction without regard as the response data for the second code, and after error processing, the second-1 value and the second-2 value are zero. Set to reset the data communication.

이러한 본 발명에 의하면, 제1 단말기(10)와 제2 단말기(20)가 코드를 생성하고, 생성된 코드를 인식/판독함으로써 단말기간에 데이터 통신이 가능해지는 효과가 있다. 이는 블루투스나, 적외선 통신, NFC를 가능하게 하는 통신 모듈이 탑재되지 않더라도, 그리고 운영체제와 관계없이 단말기간 통신이 가능해지는 작용 효과가 제공된다. 특히 출입 통제 또는 모바일 결제 등에도 편리하게 적용할 수 있다.According to the present invention, the first terminal 10 and the second terminal 20 generates a code, and there is an effect that data communication is possible between the terminals by recognizing / reading the generated code. This provides the effect that communication between terminals is possible even if a communication module that enables Bluetooth, infrared communication, NFC, or the like is not mounted. In particular, it can be conveniently applied to access control or mobile payment.

이상 첨부 도면을 참고하여 본 발명에 대해서 설명하였지만 본 발명의 권리범위는 후술하는 특허청구범위에 의해 결정되며 전술한 실시예 및/또는 도면에 제한되는 것으로 해석되어서는 아니된다. 그리고 특허청구범위에 기재된 발명의, 당업자에게 자명한 개량, 변경 및 수정도 본 발명의 권리범위에 포함된다는 점이 명백하게 이해되어야 한다.While the invention has been described above with reference to the accompanying drawings, the scope of the invention is determined by the claims that follow, and should not be construed as limited to the embodiments and / or drawings described above. And it should be clearly understood that improvements, changes and modifications apparent to those skilled in the art of the invention described in the claims are included in the scope of the present invention.

10: 제1 단말기
12, 22: 코드 생성 모듈
14, 24: 코드 현출 모듈
16, 26: 코드 인식 모듈
18, 28: 코드 판독 모듈
20: 제2 단말기
100: 제1 코드
120: 제1 데이터
140, 260: 트랜잭션 식별 정보
160, 280: 논스값(nonce)
200: 제2 코드
220: 제2 데이터
240: 시간 정보
10: first terminal
12, 22: code generation module
14, 24: code display module
16, 26: code recognition module
18, 28: code reading module
20: second terminal
100: first code
120: first data
140, 260: transaction identification information
160, 280: nonce
200: second code
220: second data
240: time information

Claims (4)

제1 단말기와 제2 단말기가 데이터 통신하는 방법에 있어서,
제1 단말기가 제1 코드를 현출하는 제1 단계와,
제2 단말기가 제1 코드를 인식하고 판독하는 제2 단계와,
제2 단말기가 제2 코드를 현출하는 제3 단계와,
제1 단말기가 제2 코드를 인식하고 판독하는 제4 단계를 포함하며,
제1 코드는 제1 데이터와, 제1-1 값과, 제1-2 값을 포함하고,
제2 코드는 제2 데이터와, 제2-1 값과, 제2-2 값을 포함하고,
제1 단말기가 데이터 통신을 개시할 때, 제1 데이터는 최초에 제2 단말기로 전송할 데이터이고, 제1-1 값은 제1 랜덤값이며, 제1-2 값은 통신 개시를 가리키는 제1 값으로 설정되며,
데이터 통신 도중에는, 제1 데이터는 직전에 판독한 제2 코드에 포함된 제2 데이터에 대한 응답 데이터이고, 제1-1 값은 제1 랜덤값이며, 제1-2 값은 직전에 판독한 제2 코드에 포함된 제2 랜덤값과 동일한 값으로 설정되며,
데이터 통신 도중에는, 제2 데이터는 직전에 판독한 제1 코드에 포함된 제1 데이터에 대한 응답 데이터이고, 제2-1 값은 제2 랜덤값이며, 제2-2 값은 직전에 판독한 제1 코드에 포함된 제1-1 값과 동일한 값으로 설정되며,
제1 단말기가 제2 코드를 판독한 후 데이터 통신을 종료하는 경우에는, 제1-1 값이 통신 종료를 가리키는 제2 값으로 설정되고, 제1-2 값은 직전에 판독한 제2 코드에 포함된 제2-1 값으로 설정되며,
제2 단말기가 제1 코드를 판독한 후 데이터 통신을 종료하는 경우에는, 제2-1 값이 통신 종료를 가리키는 제2 값으로 설정되며, 제2-2 값은 직전에 판독한 제1 코드에 포함된 제1-1 값으로 설정되는,
단말기간 데이터 통신 방법.
In the method of the data communication between the first terminal and the second terminal,
A first step of the first terminal presenting the first code,
A second step of the second terminal recognizing and reading the first code;
A third step of displaying, by the second terminal, the second code;
A fourth step in which the first terminal recognizes and reads the second code,
The first code includes first data, first-first value, and first-second value,
The second code includes second data, a 2-1 value, and a 2-2 value,
When the first terminal initiates data communication, the first data is data to be initially transmitted to the second terminal, the first-first value is a first random value, and the first-second value is a first value indicating communication start. Is set to
During data communication, the first data is response data to the second data included in the second code read immediately before, the first-first value is the first random value, and the first-second value is the first data read immediately before. 2 is set to the same value as the second random value included in the code,
During data communication, the second data is response data to the first data included in the first code read immediately before, the second-1 value is the second random value, and the second-2 value is the first read data. 1 is set to the same value as the 1-1 value included in the code,
When the first terminal terminates data communication after reading the second code, the first-first value is set to a second value indicating the end of communication, and the first-second value is set to the second code read immediately before. Set to the included 2-1 value,
When the second terminal ends the data communication after reading the first code, the value 2-1 is set to a second value indicating the end of communication, and the value 2-2 is set to the first code read immediately before. Set to the included first-first value,
Method of data communication between terminals.
청구항 1에 있어서,
제1 랜덤값과 제2 랜덤값은 매번 다른 값으로 생성되는,
단말기간 데이터 통신 방법.
The method according to claim 1,
The first random value and the second random value are generated with different values each time,
Method of data communication between terminals.
청구항 1 또는 청구항 2에 있어서,
단말기간 데이터 통신을 리셋하려는 경우에는,
제1-1 값 및 제1-2 값을 동일하게 설정하거나 또는 제2-1 값 및 제2-2 값을 동일하게 설정하는,
단말기간 데이터 통신 방법.
The method according to claim 1 or 2,
If you want to reset data communication between terminals,
Setting the first-first value and the first-second value to the same or setting the second-first and second value to the same value,
Method of data communication between terminals.
청구항 1 또는 청구항 2에 있어서,
제1-2 값 또는 제2-2 값이 직전에 상대 단말기로부터 수신한 코드에 포함된 랜덤값이 아닌 경우에는 통신 오류로 처리하는 단계를 더 포함하는,
단말기간 데이터 통신 방법.
The method according to claim 1 or 2,
If the 1-2 value or the 2-2 value is not a random value included in the code received from the other terminal immediately before, further comprising the step of treating as a communication error,
Method of data communication between terminals.
KR1020170052347A 2017-04-24 2017-04-24 Method for Data Communication Between Terminals Using Code KR102007505B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020170052347A KR102007505B1 (en) 2017-04-24 2017-04-24 Method for Data Communication Between Terminals Using Code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020170052347A KR102007505B1 (en) 2017-04-24 2017-04-24 Method for Data Communication Between Terminals Using Code

Publications (2)

Publication Number Publication Date
KR20180118977A KR20180118977A (en) 2018-11-01
KR102007505B1 true KR102007505B1 (en) 2019-08-05

Family

ID=64398463

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020170052347A KR102007505B1 (en) 2017-04-24 2017-04-24 Method for Data Communication Between Terminals Using Code

Country Status (1)

Country Link
KR (1) KR102007505B1 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050198376A1 (en) * 2004-01-02 2005-09-08 Kotzin Michael D. Method and apparatus for data transfer
WO2013100905A1 (en) * 2011-12-27 2013-07-04 Intel Corporation Method and system for distributed off-line logon using one-time passwords
KR102457809B1 (en) * 2014-09-24 2022-10-24 삼성전자주식회사 Method, Apparatus and System of Security of Data Communication

Also Published As

Publication number Publication date
KR20180118977A (en) 2018-11-01

Similar Documents

Publication Publication Date Title
AU2014393629B2 (en) Authentication code entry system and method
EP2858259B1 (en) NFC tag, communication method and system
TWI572218B (en) Electronic device, controller and control method for nfc
US20170013457A1 (en) Relay device
TWI551996B (en) Cellular devices and pairing server implementing a pairing method
EP2890083A2 (en) Key distribution system and method
EP3065097B1 (en) Device and method for facilitating a transaction
JP2023106543A (en) Dynamic power level in nfc card communication
US20190342751A1 (en) Data communication method and data communication system
AU2015237203A1 (en) Network node security using short range communication
KR102007505B1 (en) Method for Data Communication Between Terminals Using Code
CN107437997B (en) Radio frequency communication device and method
WO2017076249A1 (en) Pairing method, pairing apparatus, smart terminal, and smart card
CN110505609B (en) Bluetooth interaction method, bluetooth interaction device and terminal equipment
CN110063052B (en) Method and system for confirming pairing
WO2017076287A1 (en) Method and device for pairing bluetooth devices
US10536280B2 (en) RFID tag for secure access to a service from an access terminal
CN114981828A (en) Technique for controlling an applet for a contactless card
TW201531144A (en) Wireless bidirectional data transmission system and transmission method thereof
CN105405010A (en) Transaction device, transaction system employing same, and transaction method
JP2008033426A (en) Ic card with mode change function and ic card program
KR20160009955A (en) Method for connecting wireless terminal to vehicle
CN107194234B (en) Method and system for accessing card key into computer
CN104732923A (en) Display device with background password protection and control method of display device
KR20230041230A (en) Display apparatus and method for controlling display apparatus

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E90F Notification of reason for final refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant