CN104601200B - Near field communication extension method and extension device - Google Patents
Near field communication extension method and extension device Download PDFInfo
- Publication number
- CN104601200B CN104601200B CN201310534396.3A CN201310534396A CN104601200B CN 104601200 B CN104601200 B CN 104601200B CN 201310534396 A CN201310534396 A CN 201310534396A CN 104601200 B CN104601200 B CN 104601200B
- Authority
- CN
- China
- Prior art keywords
- near field
- field communication
- communication unit
- extension
- wireless
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000004891 communication Methods 0.000 title claims abstract description 155
- 238000000034 method Methods 0.000 title claims abstract description 25
- 230000006870 function Effects 0.000 claims description 34
- 238000009434 installation Methods 0.000 claims 5
- 239000004065 semiconductor Substances 0.000 claims 5
- 238000012545 processing Methods 0.000 description 35
- 238000010586 diagram Methods 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 4
- 239000007787 solid Substances 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
本发明提供一种近场通信延伸方法及延伸装置。所述方法包括下列步骤:控制第一近场通信单元通过近场通信功能与主机装置的第二近场通信单元进行配对操作,以在主机装置的第二通信单元与延伸装置的第一通信单元之间建立基于无线通信协议的第一无线联机。接着,判断是否通过近场通信功能接收来自电子装置的配对数据。若是,判断第一无线联机是否有效。若是,通过第一无线联机传输配对数据至主机装置。
The present invention provides a near field communication extension method and an extension device. The method comprises the following steps: controlling a first near field communication unit to perform a pairing operation with a second near field communication unit of a host device through a near field communication function, so as to establish a first wireless connection based on a wireless communication protocol between the second communication unit of the host device and the first communication unit of the extension device. Then, determining whether pairing data is received from an electronic device through the near field communication function. If so, determining whether the first wireless connection is valid. If so, transmitting the pairing data to the host device through the first wireless connection.
Description
技术领域technical field
本发明是有关于一种延伸方法及延伸装置,且特别是有关于一种近场通信延伸方法及延伸装置。The present invention relates to an extension method and an extension device, and in particular to a near-field communication extension method and an extension device.
背景技术Background technique
由于可提供高度的可靠性、保密性以及便利性,近场通信(Near FieldCommunication,简称:NFC)的应用已愈趋广泛。只要装置间的距离够近,无论是付款、身份辨识等功能皆可轻易地完成。常见的NFC功能除了用来进行例如金融认证的功能之外,还可用来进行装置间的配对认证,例如蓝牙(Bluetooth)与无线保真度直接连接(wirelessfidelity direct,简称:Wi-Fidirect)等。Due to the high reliability, security and convenience that can be provided, the application of Near Field Communication (NFC for short) has become more and more extensive. As long as the distance between the devices is close enough, functions such as payment and identification can be easily completed. The common NFC function is not only used for functions such as financial authentication, but also can be used for pairing authentication between devices, such as Bluetooth (Bluetooth) and wireless fidelity direct (wireless fidelity direct, referred to as: Wi-Fidirect).
然而,对于一些装置而言,虽然其具有的近场通信功能可便于与其他装置进行认证,但此认证行为通常只是一次性的行为,而导致相当低的近场通信功能使用率。以蓝牙鼠标与计算机间的配对行为为例,在蓝牙鼠标通过其近场通信功能与计算机配对之后,其近场通信功能几乎不会再有被使用的机会。从另一角度而言,设计者虽然在蓝牙鼠标中提高了成本以设置近场通信芯片,但由于此芯片的使用率极低,无形中造成成本的浪费。However, for some devices, although their near field communication function can facilitate authentication with other devices, this authentication is usually only a one-time action, resulting in a relatively low utilization rate of the near field communication function. Taking the pairing behavior between a Bluetooth mouse and a computer as an example, after the Bluetooth mouse is paired with a computer through its near field communication function, its near field communication function will hardly have a chance to be used again. From another point of view, although the designer increases the cost to install the near-field communication chip in the Bluetooth mouse, because the utilization rate of this chip is extremely low, the cost is wasted virtually.
发明内容Contents of the invention
有鉴于此,本发明提供一种近场通信延伸方法及延伸装置,可有效提升延伸装置中近场通信功能的使用率。In view of this, the present invention provides a near field communication extension method and an extension device, which can effectively improve the utilization rate of the near field communication function in the extension device.
本发明提供一种近场通信延伸方法,适于包括第一近场通信单元、第一通信单元的延伸装置。所述方法包括下列步骤:控制第一近场通信单元通过近场通信功能与主机装置的第二近场通信单元进行配对操作,以在主机装置的第二通信单元与延伸装置的第一通信单元之间建立基于无线通信协议的第一无线联机。接着,判断是否通过近场通信功能接收来自电子装置的配对数据。若是,判断第一无线联机是否有效。若是,通过第一无线联机传输配对数据至主机装置。The present invention provides a near-field communication extension method, which is suitable for an extension device including a first near-field communication unit and a first communication unit. The method includes the following steps: controlling the first near field communication unit to perform a pairing operation with the second near field communication unit of the host device through the near field communication function, so that the second communication unit of the host device and the first communication unit of the extension device A first wireless connection based on a wireless communication protocol is established between them. Next, it is determined whether to receive pairing data from the electronic device through the near field communication function. If yes, determine whether the first wireless connection is valid. If yes, transmit pairing data to the host device through the first wireless connection.
本发明提供一种延伸装置,包括第一近场通信单元、第一通信单元、存储单元以及处理单元。存储单元存储多个程序代码。处理单元耦接第一近场通信单元、第一通信单元以及存储单元。处理单元经配置以存取些程序代码以执行下列步骤。首先,处理单元控制第一近场通信单元通过近场通信功能与主机装置的第二近场通信单元进行配对操作,以在主机装置的第二通信单元与延伸装置的第一通信单元之间建立基于无线通信协议的第一无线联机。接着,处理单元判断第一近场通信单元是否通过近场通信功能接收来自电子装置的配对数据。若是,处理单元判断第一无线联机是否有效。若是,处理单元控制第一通信单元通过第一无线联机传输配对数据至主机装置。The present invention provides an extension device, which includes a first near field communication unit, a first communication unit, a storage unit and a processing unit. The storage unit stores a plurality of program codes. The processing unit is coupled to the first near field communication unit, the first communication unit and the storage unit. The processing unit is configured to access the program codes to perform the following steps. First, the processing unit controls the first near field communication unit to perform a pairing operation with the second near field communication unit of the host device through the near field communication function, so as to establish a communication between the second communication unit of the host device and the first communication unit of the extension device. The first wireless connection based on the wireless communication protocol. Next, the processing unit determines whether the first near field communication unit receives pairing data from the electronic device through the near field communication function. If yes, the processing unit determines whether the first wireless connection is valid. If so, the processing unit controls the first communication unit to transmit the pairing data to the host device through the first wireless connection.
基于上述,本发明实施例提供的近场通信延伸方法及延伸装置可在与主机装置通过配对操作建立第一无线联机(例如蓝牙联机)之后,再通过其第一近场通信单元与电子装置建立联机,以从电子装置取得可让主机装置据以与电子装置进行配对的配对数据。Based on the above, the near-field communication extension method and the extension device provided by the embodiments of the present invention can establish a first wireless connection (such as a Bluetooth connection) with the host device through a pairing operation, and then establish a connection with the electronic device through its first near-field communication unit. Connecting to obtain pairing data from the electronic device for the host device to pair with the electronic device.
为让本发明的上述特征和优点能更明显易懂,下文特举实施例,并配合附图作详细说明如下。In order to make the above-mentioned features and advantages of the present invention more comprehensible, the following specific embodiments are described in detail with reference to the accompanying drawings.
附图说明Description of drawings
图1是本发明的一实施例示出的近场通信系统示意图;FIG. 1 is a schematic diagram of a near field communication system shown in an embodiment of the present invention;
图2A是本发明的一实施例示出的近场通信延伸方法流程图;FIG. 2A is a flow chart of a near field communication extension method shown in an embodiment of the present invention;
图2B是本发明的一实施例示出的近场通信延伸方法流程图;FIG. 2B is a flow chart of a near field communication extension method shown in an embodiment of the present invention;
图3A是本发明的一实施例示出的主机装置及延伸装置示意图;FIG. 3A is a schematic diagram of a host device and an extension device according to an embodiment of the present invention;
图3B是本发明的一实施例示出的主机装置及延伸装置示意图。FIG. 3B is a schematic diagram of a host device and an extension device according to an embodiment of the present invention.
附图标记说明:Explanation of reference signs:
100:近场通信系统;100: near field communication system;
110、310:主机装置;110, 310: host device;
112:第二通信单元;112: the second communication unit;
114:第二近场通信单元;114: a second near-field communication unit;
116、128:处理单元;116, 128: processing unit;
120、320:延伸装置;120, 320: extension device;
122:第一通信单元;122: the first communication unit;
124:第一近场通信单元;124: a first near-field communication unit;
126:存储单元;126: storage unit;
312:第四通信单元;312: the fourth communication unit;
322:第三通信单元;322: the third communication unit;
WL1:第一无线联机;WL1: the first wireless connection;
WL3:第三无线联机;WL3: the third wireless connection;
S210~S270:步骤。S210-S270: steps.
具体实施方式detailed description
图1是本发明的一实施例示出的近场通信系统示意图。在本实施例中,近场通信系统100包括主机装置110、延伸装置120以及电子装置130。主机装置110、延伸装置120以及电子装置130分别例如是智能手机(smartphone)、平板电脑(tablet)、笔记本电脑(notebook)、个人电脑(personal computer)或掌上电脑(personal digital assistant,简称:PDA)等装置。Fig. 1 is a schematic diagram of a near field communication system according to an embodiment of the present invention. In this embodiment, the NFC system 100 includes a host device 110 , an extension device 120 and an electronic device 130 . The host device 110 , the extension device 120 and the electronic device 130 are respectively, for example, a smartphone, a tablet, a notebook, a personal computer or a personal digital assistant (PDA for short). and other devices.
主机装置110包括第二通信单元112、第二近场通信单元114以及处理单元116。延伸装置120可包括第一通信单元122、第一近场通信单元124、存储单元126以及处理单元128。The host device 110 includes a second communication unit 112 , a second near field communication unit 114 and a processing unit 116 . The extension device 120 may include a first communication unit 122 , a first near field communication unit 124 , a storage unit 126 and a processing unit 128 .
在本实施例中,第一通信单元122以及第二通信单元112例如是可依据Wi-Fi直接连接协议、蓝牙协议或其他相似通信协议来相互进行通信的通信组件。第一近场通信单元124以及第二近场通信单元114分别例如是可通过近场通信功能来互相进行数据交换的通信组件。In this embodiment, the first communication unit 122 and the second communication unit 112 are, for example, communication components that can communicate with each other according to the Wi-Fi direct connection protocol, the Bluetooth protocol or other similar communication protocols. The first near field communication unit 124 and the second near field communication unit 114 are, for example, communication components capable of exchanging data with each other through a near field communication function.
处理单元116耦接第二通信单元112以及第二近场通信单元114。处理单元128耦接第一通信单元122、第一近场通信单元124以及存储单元126。处理单元116以及处理单元128分别例如是一般用途处理器、特殊用途处理器、传统的处理器、数字信号处理器、多个微处理器(microprocessor)、一个或多个结合数字信号处理器核心的微处理器、控制器、微控制器、特殊应用集成电路(Application Specific Integrated Circuit,简称:ASIC)、现场可编程门阵列电路(Field Programmable Gate Array,简称:FPGA)、任何其他种类的集成电路、状态机、基于进阶精简指令集机器(Advanced RISC Machine,简称:ARM)的处理器以及类似品。存储单元126例如是硬盘、固态硬盘(Solid StateDisk,简称:SSD)或内存等存储媒体。存储单元126可存储多个程序代码,而处理单元128可通过存取这些程序代码来执行本发明实施例提供的近场通信延伸方法,其细节将在之后描述。The processing unit 116 is coupled to the second communication unit 112 and the second near field communication unit 114 . The processing unit 128 is coupled to the first communication unit 122 , the first near field communication unit 124 and the storage unit 126 . The processing unit 116 and the processing unit 128 are, for example, general-purpose processors, special-purpose processors, conventional processors, digital signal processors, multiple microprocessors (microprocessors), one or more integrated digital signal processor cores, etc. Microprocessors, controllers, microcontrollers, Application Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA), any other kind of integrated circuit, State machines, Advanced RISC Machine (ARM) based processors, and the like. The storage unit 126 is, for example, a storage medium such as a hard disk, a solid state disk (Solid State Disk, SSD for short), or a memory. The storage unit 126 can store a plurality of program codes, and the processing unit 128 can execute the NFC extension method provided by the embodiment of the present invention by accessing the program codes, the details of which will be described later.
此外,电子装置130中也可包括具有近场通信功能的近场通信单元以及可与主机装置110的第二通信单元112进行例如Wi-Fi通信、蓝牙通信等功能的通信单元。In addition, the electronic device 130 may also include a near field communication unit with a near field communication function and a communication unit capable of performing functions such as Wi-Fi communication and Bluetooth communication with the second communication unit 112 of the host device 110 .
概略而言,本发明实施例提供的延伸装置120可在与主机装置110通过配对操作建立无线联机(例如蓝牙联机)之后,再通过其第一近场通信单元124与电子装置130建立联机,以从电子装置130取得可让主机装置110据以与电子装置130进行配对的配对数据(例如电子装置130的身份身份信息等)。接着,延伸装置120可通过先前与主机装置110建立的无线联机(例如蓝牙联机)来将此配对数据传输至主机装置110。换言之,延伸装置120可代替主机装置110与电子装置130进行近场通信功能,进而让主机装置110可依据延伸装置120所转传的配对数据(例如电子装置130的身份信息)来与电子装置130进行配对。上述细节请参照下图2及其相关说明。In general, the extension device 120 provided by the embodiment of the present invention can establish a connection with the electronic device 130 through its first near-field communication unit 124 after establishing a wireless connection (such as a Bluetooth connection) with the host device 110 through a pairing operation, so as to The pairing data (such as the identity information of the electronic device 130 , etc.) by which the host device 110 can be paired with the electronic device 130 is obtained from the electronic device 130 . Then, the extension device 120 can transmit the pairing data to the host device 110 through the previously established wireless connection (such as Bluetooth connection) with the host device 110 . In other words, the extension device 120 can replace the host device 110 to perform the near field communication function with the electronic device 130, so that the host device 110 can communicate with the electronic device 130 according to the pairing data transmitted by the extension device 120 (such as the identity information of the electronic device 130). Make a pair. Please refer to Figure 2 below and its related descriptions for the above details.
图2A是本发明的一实施例示出的近场通信延伸方法流程图。图2A所示的方法可由图1的延伸装置120执行,以下即搭配图1的各个装置及单元来说明本实施例的方法步骤。FIG. 2A is a flow chart of a method for extending near field communication according to an embodiment of the present invention. The method shown in FIG. 2A can be executed by the extension device 120 in FIG. 1 , and the steps of the method in this embodiment will be described below in conjunction with each device and unit in FIG. 1 .
在步骤S210中,延伸装置120的处理单元128可控制第一近场通信单元124通过近场通信功能与主机装置110的第二近场通信单元114进行配对操作,以在主机装置110的第二通信单元112与延伸装置120的第一通信单元122之间建立基于无线通信协议的第一无线联机WL1。In step S210, the processing unit 128 of the extension device 120 can control the first near field communication unit 124 to perform pairing operation with the second near field communication unit 114 of the host device 110 through the near field communication function, so that the second near field communication unit 114 of the host device 110 A first wireless connection WL1 based on a wireless communication protocol is established between the communication unit 112 and the first communication unit 122 of the extension device 120 .
具体而言,当用户将延伸装置120移动至主机装置110附近,使得第一近场通信单元124与第二近场通信单元114之间的距离小于可启动近场通信功能的距离内(例如,20公分)时,延伸装置120的第一近场通信单元124与主机装置110的第二近场通信单元114之间可(自动地)启动各自的近场通信功能,进而进行可用于建立第一无线联机WL1(例如,蓝牙联机)的数据交换操作(例如,交换身份信息)。接着,延伸装置120的处理单元128以及主机装置110的处理单元116即可分别依据前述交换的数据来对应地设定第一通信单元122以及第二通信单元112,进而让主机装置110以及延伸装置120能够通过第一无线联机WL1(例如,蓝牙联机)来进行后续的各种文件传输操作(例如文件传输等)。Specifically, when the user moves the extension device 120 near the host device 110, so that the distance between the first near field communication unit 124 and the second near field communication unit 114 is less than the distance within which the near field communication function can be activated (for example, 20 cm), the first near-field communication unit 124 of the extension device 120 and the second near-field communication unit 114 of the host device 110 can (automatically) start their respective near-field communication functions, and then can be used to establish the first Data exchange operations (for example, exchange of identity information) of wireless connection WL1 (for example, Bluetooth connection). Then, the processing unit 128 of the extension device 120 and the processing unit 116 of the host device 110 can respectively set the first communication unit 122 and the second communication unit 112 correspondingly according to the exchanged data, so that the host device 110 and the extension device 120 can perform subsequent various file transfer operations (eg, file transfer, etc.) through the first wireless connection WL1 (eg, Bluetooth connection).
换言之,对使用者而言,用户仅需将延伸装置120摆放至主机装置110的附近,延伸装置120即可自动与主机装置110进行配对而建立例如蓝牙联机的第一无线联机WL1。In other words, for the user, the user only needs to place the extension device 120 near the host device 110, and the extension device 120 can automatically pair with the host device 110 to establish the first wireless connection WL1 such as a Bluetooth connection.
在本实施例中,在主机装置110以及延伸装置120建立第一无线联机WL1之后,用户可通过将延伸装置120摆放至电子装置130的行为来触发延伸装置120与电子装置130各自的近场通信功能。In this embodiment, after the first wireless connection WL1 is established between the host device 110 and the extension device 120, the user can trigger the respective near field of the extension device 120 and the electronic device 130 by placing the extension device 120 on the electronic device 130 communication function.
因此,在步骤S220中,处理单元128可判断第一近场通信单元124是否通过近场通信功能接收来自电子装置130的配对数据。若否,处理单元128可重复进行步骤S220。另一方面,若处理单元128判断第一近场通信单元124已接收来自电子装置130的配对数据,处理单元128可执行步骤S230以进一步判断所述第一联机是否有效。Therefore, in step S220 , the processing unit 128 can determine whether the first near field communication unit 124 receives the pairing data from the electronic device 130 through the near field communication function. If not, the processing unit 128 may repeat step S220. On the other hand, if the processing unit 128 determines that the first NFC unit 124 has received the pairing data from the electronic device 130 , the processing unit 128 may execute step S230 to further determine whether the first connection is valid.
详细而言,由于第一无线联机WL1可能会随着主机装置110以及延伸装置120之间的距离、通信环境等因素而失效,因此,当延伸装置120接收所述配对数据时,不会立即将此配对数据转传至主机装置110,而将先行判断第一无线联机WL1是否仍为有效。此外,当用户关闭第一通信单元122或第二通信单元112的其中一者时,也将导致所述第一联机的失效。因此,处理单元128可通过步骤S230来避免无效的数据传输。In detail, since the first wireless connection WL1 may fail due to factors such as the distance between the host device 110 and the extension device 120, the communication environment, etc., when the extension device 120 receives the pairing data, it will not immediately The pairing data is forwarded to the host device 110, and it will firstly determine whether the first wireless connection WL1 is still valid. In addition, when the user closes one of the first communication unit 122 or the second communication unit 112 , the first connection will also be invalidated. Therefore, the processing unit 128 can avoid invalid data transmission through step S230.
当处理单元128判断第一无线联机WL1为无效时,处理单元128可执行步骤S240以存储电子装置130的配对数据于延伸装置120的存储单元126中,并在第一无线联机WL1变为有效时,通过第一无线联机WL1传输配对数据至主机装置110。换言之,在第一无线联机WL1恢复为有效之前,延伸装置120可将配对数据暂存至其存储单元126中。When the processing unit 128 determines that the first wireless connection WL1 is invalid, the processing unit 128 may execute step S240 to store the pairing data of the electronic device 130 in the storage unit 126 of the extension device 120, and when the first wireless connection WL1 becomes valid , transmit the pairing data to the host device 110 through the first wireless connection WL1. In other words, before the first wireless connection WL1 becomes valid again, the extension device 120 can temporarily store the pairing data in its storage unit 126 .
另一方面,当处理单元128判断第一无线联机WL1为有效时,处理单元128可执行步骤S250,以控制第一通信单元122通过第一无线联机WL1传输配对数据至主机装置110,以配对主机装置110以及电子装置130。值得注意的是,延伸装置120的第一通信单元122除了可通过第一无线联机WL1传输所述配对数据之外,也可通过第一无线联机WL1来传递关联于延伸装置120本身的软件配置文件(software profile)。举例而言,当主机装置110为计算机而延伸装置120为鼠标时,延伸装置120除了可通过第一无线联机WL1传输所述配对数据之外,当用户移动此鼠标时,其仍可对应地将自身的移动情形通过第一无线联机WL1传输至所述计算机,以让所述计算机能够反应于用户的使用行为而进行例如移动光标的操作。On the other hand, when the processing unit 128 determines that the first wireless connection WL1 is valid, the processing unit 128 may execute step S250 to control the first communication unit 122 to transmit pairing data to the host device 110 through the first wireless connection WL1 to pair the host device 110 and electronic device 130 . It should be noted that, in addition to transmitting the pairing data through the first wireless connection WL1, the first communication unit 122 of the extension device 120 can also transmit the software configuration file associated with the extension device 120 itself through the first wireless connection WL1. (software profile). For example, when the host device 110 is a computer and the extension device 120 is a mouse, in addition to transmitting the pairing data through the first wireless connection WL1, the extension device 120 can also correspondingly connect the mouse when the user moves the mouse. The own moving situation is transmitted to the computer through the first wireless connection WL1, so that the computer can respond to the user's behavior and perform operations such as moving the cursor.
如此一来,当主机装置110以及电子装置130本身的可移动性较低时,用户仍能够以延伸装置120作为主机装置110以及电子装置130之间进行配对的媒介。举例而言,当主机装置110为个人电脑,而电子装置130为笔记本电脑时,使用者仅需在通过延伸装置120与主机装置110进行配对之后,即可通过较易于移动的延伸装置120(例如无线鼠标)来代替主机装置110与电子装置130进行配对。In this way, when the mobility of the host device 110 and the electronic device 130 itself is low, the user can still use the extension device 120 as a pairing medium between the host device 110 and the electronic device 130 . For example, when the host device 110 is a personal computer and the electronic device 130 is a notebook computer, the user only needs to pair with the host device 110 through the extension device 120 , and then use the easier-to-move extension device 120 (such as wireless mouse) to replace the host device 110 with the electronic device 130 for pairing.
此外,当延伸装置120为较不常使用其近场通信功能的装置时,本发明实施例提供的方法也可提高延伸装置120的近场通信功能及第一通信单元的使用频率。举例而言,当延伸装置120为鼠标时,其可能在与主机装置110(例如计算机)进行配对之后,其近场通信功能可能再也不会被使用。然而,通过本发明实施例提供的方法,可让延伸装置120的近场通信功能可具有其他用途,而不只是仅为了与主机置110配对而设置。In addition, when the extension device 120 is a device that uses its near field communication function less often, the method provided by the embodiment of the present invention can also increase the usage frequency of the near field communication function of the extension device 120 and the first communication unit. For example, when the extension device 120 is a mouse, after it is paired with the host device 110 (such as a computer), its NFC function may never be used again. However, through the method provided by the embodiment of the present invention, the NFC function of the extension device 120 can be used for other purposes, not just for pairing with the host device 110 .
此外,在其他实施例中,设计者可在延伸装置120上进一步设置配对开关,而延伸装置120即可依据所述配对开关的开启或关闭状态来决定在第一无线联机WL1为无效的情况下,是否可与其他装置(例如,电子装置130)进行配对。在本实施例中,当使用者将所述配对开关切换为开启状态时,代表用户允许延伸装置120与其他装置进行配对。而当使用者将所述配对开关切换为关闭状态时,代表即便在第一无线联机WL1为无效的情况下,延伸装置120也不可与其他装置进行配对。以下将提供详细说明。In addition, in other embodiments, the designer can further set a pairing switch on the extension device 120, and the extension device 120 can determine whether the first wireless connection WL1 is invalid according to the on or off state of the pairing switch. , whether it can be paired with other devices (for example, the electronic device 130 ). In this embodiment, when the user switches the pairing switch to on, it means that the user allows the extension device 120 to be paired with other devices. And when the user switches the pairing switch to the off state, it means that even if the first wireless connection WL1 is invalid, the extension device 120 cannot be paired with other devices. Detailed instructions are provided below.
图2B是本发明的一实施例示出的近场通信延伸方法流程图。图2B所示的方法可由图1的延伸装置120执行,以下即搭配图1的各个装置及单元来说明本实施例的方法步骤。在本实施例中,步骤S210~S250的细节可参照图2A实施例中的相关说明,在此不再赘述。FIG. 2B is a flow chart of a method for extending near field communication according to an embodiment of the present invention. The method shown in FIG. 2B can be executed by the extension device 120 in FIG. 1 , and the steps of the method in this embodiment will be described below in conjunction with each device and unit in FIG. 1 . In this embodiment, details of steps S210-S250 may refer to the relevant description in the embodiment of FIG. 2A , and details are not repeated here.
不同于图2A之处在于,当处理单元128判断所述无线联机为无效时,处理单元128可接续进行步骤S260,以判断延伸装置120的配对开关是否为开启状态。若否,处理单元128可执行相似于图2A所示的步骤S240。The difference from FIG. 2A is that when the processing unit 128 determines that the wireless connection is invalid, the processing unit 128 may proceed to step S260 to determine whether the pairing switch of the extension device 120 is on. If not, the processing unit 128 may perform step S240 similar to that shown in FIG. 2A .
然而,当处理单元128判断所述配对开关为开启状态时,处理单元128可执行步骤S270以控制第一近场通信单元124通过近场通信功能与电子装置130依据配对数据建立基于无线通信协议的第二无线联机(例如为蓝牙联机)。换言之,当使用者在第一无线联机WL1为无效且所述配对开关为开启状态的情况下,将延伸装置120移动至足以触发与电子装置130之间近场通信功能的距离(例如,20公分)内时,延伸装置120将自动与电子装置130进行前述教示的配对操作。也就是说,此时延伸装置120不再是作为主机装置110以及电子装置130之间进行配对操作的媒介,而将直接与电子装置130进行配对而建立所述第二无线联机(例如为蓝牙联机)。However, when the processing unit 128 determines that the pairing switch is on, the processing unit 128 may execute step S270 to control the first near field communication unit 124 to establish a wireless communication protocol based on the pairing data with the electronic device 130 through the near field communication function. A second wireless connection (such as a Bluetooth connection). In other words, when the first wireless connection WL1 is disabled and the pairing switch is turned on, the user moves the extension device 120 to a distance sufficient to trigger the near field communication function with the electronic device 130 (for example, 20 cm ), the extension device 120 will automatically perform the pairing operation with the electronic device 130 as taught above. That is to say, at this time, the extension device 120 is no longer the medium for pairing operation between the host device 110 and the electronic device 130, but will directly pair with the electronic device 130 to establish the second wireless connection (such as a Bluetooth connection). ).
虽然在先前实施例中已教示延伸装置120可通过第一无线联机WL1来传输配对数据及自身的软件配置文件(例如鼠标的移动情形),但在其他实施例中,主机装置110以及延伸装置120可额外配置其他的通信单元,用以在主机装置110以及延伸装置120之间建立其他的联机,进而区隔配对数据以及所述软件配置文件的传输路径。Although it has been taught in the previous embodiments that the extension device 120 can transmit pairing data and its own software configuration files (such as the movement of the mouse) through the first wireless connection WL1, in other embodiments, the host device 110 and the extension device 120 Other communication units can be additionally configured to establish other connections between the host device 110 and the extension device 120 , so as to separate the transmission paths of the pairing data and the software configuration files.
图3A是本发明的一实施例示出的主机装置及延伸装置示意图。在本实施例中,延伸装置320除了包括图1中延伸装置120的所有组件之外,还包括连接至处理单元128的第三通信单元322。相似地,主机装置310除了包括图1中主机装置110的所有组件之外,还包括连接至处理单元116的第四通信单元312。FIG. 3A is a schematic diagram of a host device and an extension device according to an embodiment of the present invention. In this embodiment, the extension device 320 includes all the components of the extension device 120 in FIG. 1 , and also includes a third communication unit 322 connected to the processing unit 128 . Similarly, the host device 310 includes a fourth communication unit 312 connected to the processing unit 116 in addition to all components of the host device 110 in FIG. 1 .
相似于先前实施例中所教示的内容,第一近场通信单元124可与第二近场通信单元114进行配对而建立第一通信单元122以及第二通信单元112之间的第一无线联机WL1。同时,第三通信单元322以及第四通信单元312也可通过第一近场通信单元124可与第二近场通信单元114所进行的配对操作而建立第三无线联机WL3。如此一来,主机装置310与延伸装置320之间即可通过第一无线联机WL1以及第三无线联机WL3来分别传送配对数据以及软件配置文件,进而区隔此二种数据的传输路径。Similar to the content taught in the previous embodiments, the first near field communication unit 124 can be paired with the second near field communication unit 114 to establish a first wireless connection WL1 between the first communication unit 122 and the second communication unit 112 . At the same time, the third communication unit 322 and the fourth communication unit 312 can also establish a third wireless connection WL3 through the pairing operation performed by the first near field communication unit 124 and the second near field communication unit 114 . In this way, the pairing data and software configuration files can be transmitted between the host device 310 and the extension device 320 through the first wireless connection WL1 and the third wireless connection WL3 , thereby separating the transmission paths of the two types of data.
图3B是本发明的一实施例示出的主机装置及延伸装置示意图。不同于图3A之处在于,本实施例的第三通信单元322未连接至处理单元128,而是连接至第一近场通信单元124。在本实施例中,主机装置310与延伸装置320之间仍可通过第一无线联机WL1以及第三无线联机WL3来分别传送配对数据以及软件配置文件,进而区隔此二种数据的传输路径。FIG. 3B is a schematic diagram of a host device and an extension device according to an embodiment of the present invention. The difference from FIG. 3A is that the third communication unit 322 of this embodiment is not connected to the processing unit 128 , but is connected to the first near field communication unit 124 . In this embodiment, the host device 310 and the extension device 320 can still transmit pairing data and software configuration files respectively through the first wireless connection WL1 and the third wireless connection WL3, thereby separating the transmission paths of the two types of data.
综上所述,本发明实施例提供的延伸装置及其近场通信延伸方法可在与主机装置通过配对操作建立第一无线联机(例如蓝牙联机)之后,再通过其第一近场通信单元与电子装置建立联机,以从电子装置取得可让主机装置据以与电子装置进行配对的配对数据。接着,延伸装置可通过先前与主机装置建立的第一无线联机来将此配对数据传输至主机装置。换言之,延伸装置可代替主机装置与电子装置进行近场通信功能,进而让主机装置可依据延伸装置所转传的配对数据来与电子装置进行配对。如此一来,当主机装置以及电子装置本身的可移动性较低时,用户仍能够以延伸装置作为主机装置以及电子装置之间进行配对的媒介。In summary, the extension device and its near-field communication extension method provided by the embodiments of the present invention can establish a first wireless connection (such as a Bluetooth connection) with the host device through a pairing operation, and then communicate with the host device through its first near-field communication unit. The electronic device establishes a connection to obtain pairing data from the electronic device for the host device to pair with the electronic device. Then, the extension device can transmit the pairing data to the host device through the first wireless connection previously established with the host device. In other words, the extension device can replace the host device to perform the near field communication function with the electronic device, so that the host device can pair with the electronic device according to the pairing data transmitted by the extension device. In this way, when the mobility of the host device and the electronic device itself is low, the user can still use the extension device as a pairing medium between the host device and the electronic device.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310534396.3A CN104601200B (en) | 2013-11-01 | 2013-11-01 | Near field communication extension method and extension device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310534396.3A CN104601200B (en) | 2013-11-01 | 2013-11-01 | Near field communication extension method and extension device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104601200A CN104601200A (en) | 2015-05-06 |
CN104601200B true CN104601200B (en) | 2017-08-04 |
Family
ID=53126753
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310534396.3A Active CN104601200B (en) | 2013-11-01 | 2013-11-01 | Near field communication extension method and extension device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104601200B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101843124A (en) * | 2007-10-31 | 2010-09-22 | 摩托罗拉公司 | Negotiation of short-range wireless communication parameters using configuration data received via RFID |
US8014722B2 (en) * | 2005-06-23 | 2011-09-06 | Microsoft Corporation | Provisioning of wireless connectivity for devices using NFC |
CN102857266A (en) * | 2011-06-29 | 2013-01-02 | 美国博通公司 | Secure communications via NFC device |
-
2013
- 2013-11-01 CN CN201310534396.3A patent/CN104601200B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8014722B2 (en) * | 2005-06-23 | 2011-09-06 | Microsoft Corporation | Provisioning of wireless connectivity for devices using NFC |
CN101843124A (en) * | 2007-10-31 | 2010-09-22 | 摩托罗拉公司 | Negotiation of short-range wireless communication parameters using configuration data received via RFID |
CN102857266A (en) * | 2011-06-29 | 2013-01-02 | 美国博通公司 | Secure communications via NFC device |
Also Published As
Publication number | Publication date |
---|---|
CN104601200A (en) | 2015-05-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10902411B2 (en) | Host-formatted select proximity payment system environment response | |
US12332831B2 (en) | Systems and methods for communications within a storage chassis using in-band data and out-of-band data | |
CN105610469A (en) | Wireless Proximity Pairing for User Interface Devices | |
JP2020505676A (en) | Application display method and related products | |
US11237636B2 (en) | System and method for network configuration and behavior control by proximity enabled devices | |
CN105556492B (en) | Near-field communication(NFC)Data transmission | |
JP2016076744A5 (en) | ||
CN105700732A (en) | Apparatus, system and method for communication of touch sensor information | |
KR101928015B1 (en) | Re-programmable secure cryptographic device | |
CN104115137A (en) | PCIe SMBus slave address self-selection | |
US11175855B2 (en) | Electronic device for communicating with host and operating method of the electronic device | |
CN115442083B (en) | Device access method, data exchange method, device and storage medium | |
US9883327B2 (en) | Selection of a credential for a target device to perform next state | |
CN114116415B (en) | Hard disk backboard, hard disk lighting control system, method, device and medium | |
US20150134510A1 (en) | Systems and methods for reporting a user interface status | |
US9064209B2 (en) | Printing through physical proximity between printer and print client device | |
TWI511482B (en) | Near field communication extension method and extension device | |
CN102393838A (en) | Data processing method and device, PCI-E (peripheral component interface-express) bus system, and server | |
CN104601200B (en) | Near field communication extension method and extension device | |
TW201616819A (en) | Near field communication device and its working mode starting method | |
CN109862553B (en) | Terminal and Communication Method | |
CN207664994U (en) | A kind of appliance control system | |
CN106067002B (en) | Fingerprint information processing method and user terminal | |
US9723079B2 (en) | System and method for automatic link detection and link initialization in a storage system | |
CN110612773B (en) | Operating Mode Configuration |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |