CN106332075A - Equipment connection method, device and system - Google Patents

Equipment connection method, device and system Download PDF

Info

Publication number
CN106332075A
CN106332075A CN 201510334071 CN201510334071A CN106332075A CN 106332075 A CN106332075 A CN 106332075A CN 201510334071 CN201510334071 CN 201510334071 CN 201510334071 A CN201510334071 A CN 201510334071A CN 106332075 A CN106332075 A CN 106332075A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
audio signal
audio
device
wireless connection
signal
Prior art date
Application number
CN 201510334071
Other languages
Chinese (zh)
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

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATIONS NETWORKS
    • H04W12/00Security arrangements, e.g. access security or fraud detection; Authentication, e.g. verifying user identity or authorisation; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATIONS NETWORKS
    • H04W12/00Security arrangements, e.g. access security or fraud detection; Authentication, e.g. verifying user identity or authorisation; Protecting privacy or anonymity
    • H04W12/06Authentication

Abstract

The invention discloses an equipment connection method and a device, an equipment access method and a device, and an equipment connection system, which relate to the technical field of computers. The equipment connection method comprises steps: whether an audio interface of a first piece of equipment is inserted is detected; if the audio interface of the first piece of equipment is detected to be inserted, a first audio signal is sent via the audio interface, wherein the first audio signal is used for indicating to acquire wireless connection permission information of target equipment, a second audio signal is received via the audio interface, and the second audio signal comprises the wireless connection permission information of the target equipment; and according to the wireless connection permission information in the second audio signal, the first piece of equipment and the target equipment are wirelessly connected. The operation steps for enabling the first piece of equipment to be connected with the target equipment by the user are reduced, the user operation tedious degree is reduced, the secrecy degree is high, the application range is wide, and needs of the majority of users can be met.

Description

一种设备连接方法、装置和系统 A device connection method, apparatus and system for

技术领域 FIELD

[0001] 本申请涉及计算机技术领域,特别是涉及一种设备连接方法、装置和系统。 [0001] The present application relates to computer technologies, and particularly relates to an apparatus connection method, apparatus and system.

背景技术 Background technique

[0002] 随着技术的发展,人们使用移动终端的频率越来越高,在人们使用移动终端的过程中,使用该移动终端与其他设备进行交互,以传输或者获取信息的频率也越来越高。 [0002] With the development of technology, people use mobile terminals frequency increasing, in the process of people using the mobile terminal, using the mobile terminal to interact with other devices, or to transmit information on the frequency of obtaining more high. 比如某个用户将移动终端通过接入wifi (wireless fidelity,无线保真)设备以访问互联网;又比如某个用户将移动终端通过蓝牙连接接入另外一个用户的移动终端或者其他设备,以传输或者接收数据,比如传输图片、视频、文档等等;又比如,某个用户将移动终端通过0TG(0n-The-Go,其是在没有网络节点的情况下,实现设备间的数据传送的技术)连接到另外一个用户的设备,以传输或者接收数据。 For example a user access to the mobile terminal by wifi (wireless fidelity, wireless fidelity) device to access the Internet; another example, a user terminal connected to a mobile access another user's mobile terminal or other device via Bluetooth, or to transmit receive data, such as image transmission, video, documents and the like; another example, a mobile user terminal through 0TG (0n-the-Go, which in the absence of network nodes, the data transfer technique between devices implement) a user is connected to another device, to transmit or receive data.

[0003] 而用户的移动终端通过类似前述的各种方式连接到某个设备,存在如下几种连接方式: [0003] and the user's mobile terminal is connected via a device similar to the foregoing ways, there is a connection in several ways:

[0004] 其一,由用户在移动终端找到设备标识,输入连接密码进行连接,一般包括如下几个步骤: [0004] First, find the mobile terminal device by the user ID, password input connection is connected, generally includes the following steps:

[0005] (I)用户通过某种渠道获取设备标识及连接密码; [0005] (I) a user equipment identifier and the connection password acquired through some channels;

[0006] 以wifi路由器为例,如果用户A想连接到该wifi路由器,可以从该wifi路由器的设置者处问询wifi路由器的标识和连接密码。 [0006] In wifi router, for example, if user A wants to connect to the wifi router, the router queries wifi connection ID and password from the wifi provided by the router. 其问询的方式可以由多种方式。 Inquiries may be made in a manner which is in many ways. 比如wifi路由器的标识为ABC,密码为123456。 Such as wifi router identifies as ABC, the password is 123456.

[0007] (2)用户在其移动终端上打开相应连接界面,查找相应标识所对应的设备; [0007] (2) user opens a corresponding connection interface on their mobile terminal identifier corresponding to find the appropriate equipment;

[0008] 比如用户打开手机的wifi的连接界面,在该连接界面中众多wifi路由器标识中查找ABC对应的wifi路由器标识。 [0008] For example, the user to open the phone wifi connection interface, ABC find the corresponding identification number of the router wifi wifi router ID in the connection interface.

[0009] (3)用户选择相应的设备,进入相应密码输入界面之后,输入连接密码以进行连接。 After [0009] (3) the user to select the device, and enter the corresponding password input interface, an input connector for connection password.

[0010] 比如对前述ABC的wifi路由器标识,用户点击该标识,进入登录界面,然后输入连接密码,点击连接。 [0010] For example, the ABC on wifi Router ID, the user clicks the identifier into the login screen, and then enter the connection password, click connection. 如果连接密码正确,则连接到ABC的wifi路由器;如果连接密码不正确,则连接失败。 If the connection password is correct, the connection to the wifi router ABC; if the connection password is incorrect, the connection fails.

[0011] 其二,用户利用移动终端扫描针对设备的二维码与该设备进行连接。 [0011] Second, a user using a mobile terminal connected to the scanning device for two-dimensional code device.

[0012] 其三,在一些特制移动终端中,加入NFC(Near Field Communicat1n,近距离无线通信)模块,通过NFC模块与设备进行连接。 [0012] Third, in some special mobile terminal added NFC (Near Field Communicat1n, short-range wireless communication) module, connected with the device via the NFC module.

[0013] 但是,对于上述第一种连接方式,容易发生由于人为的密码输入错误而导致连接失败;用户的操作繁琐,并且整个过程耗时长;还有由于设备标识和密码是对外界暴露的,在用户获取设备标识和密码时容易被他人盗用。 [0013] However, the above-mentioned first connection mode easily occurs due to human error password input connection fails; troublesome operation of the user, and the entire process is time consuming; the device ID and password since there is exposed outside, easy to steal other people when a user ID and password to obtain equipment.

[0014] 对于上述第二种连接方式,需要移动终端具备摄像头,并且被连接设备具有显示屏,对摄像头的精度、自动对焦等还有一定要求,用户操作也比较繁琐。 [0014] For the above-mentioned second connection mode, the mobile terminal needs to have a camera, and is connected with the display device, the accuracy of the camera, there are certain requirements and other auto focus, the user operation is relatively complicated.

[0015] 对于上述第三种连接方式,由于很多移动终端都不包含NFC模块,其应用范围狭窄,无法满足需求。 [0015] For the above-described third embodiment is connected, the mobile terminal not included because many NFC module, a narrow range of applications, can not meet the demand.

发明内容 SUMMARY

[0016] 鉴于上述问题,提出了本申请实施例以便提供一种克服上述问题或者至少部分地解决上述问题的一种设备连接方法和相应的一种设备连接装置、一种设备接入方法和相应的一种设备接入设备、以及一种设备连接系统。 [0016] In view of the above problem, an embodiment of the present application to overcome the above problems or to provide a solution to at least partially connected to an apparatus and method for an apparatus connected to the respective means of the above problems, an apparatus and a corresponding access method a device access apparatus, and an apparatus connection system.

[0017] 为了解决上述问题,本申请公开了一种设备连接方法,包括: [0017] In order to solve the above problems, the present application discloses a connection device, comprising:

[0018] 检测第一设备的音频接口是否被插入; [0018] detecting whether the first audio interface device is inserted;

[0019] 若检测到第一设备的音频接口被插入,则通过所述音频接口发送第一音频信号;所述第一音频信号用于指示获取目标设备的无线连接权限信息; [0019] When detecting that the first device is inserted into the audio interface, the audio interface is transmitted by a first audio signal; a wireless connection permission information for instructing the first audio signal acquired target device;

[0020] 通过所述音频接口接收第二音频信号;所述第二音频信号包括目标设备的无线连接权限信息; [0020] a second audio signal received by the audio interface; the second audio signal comprises a wireless connection permission information of a target device;

[0021] 根据所述第二音频信号中的无线连接权限信息,将所述第一设备与目标设备进行无线连接。 [0021] The wireless connection permission information of the second audio signal, the first device a wireless connection with the target device.

[0022] 本申请还公开了一种设备接入方法,包括: [0022] The present application further discloses an access method for an apparatus, comprising:

[0023] 检测是否接收到第一音频信号;所述第一音频信号用于指示获取目标设备的无线连接权限信息; [0023] detecting whether a first audio signal; the first audio signal to obtain wireless connection permission information indicating a target device;

[0024] 若检测到第一音频信号,则针对第一音频信号进行处理,获得第二音频信号;所述第二音频信号包括目标设备的无线连接权限信息; [0024] When detecting the first audio signal, the audio signal processing performed for the first, obtaining a second audio signal; a second audio signal comprises a wireless connection permission information of a target device;

[0025] 将所述第二音频信号返回第一设备,以使第一设备根据所述第二音频信号中的无线连接权限信息,将所述第一设备与目标设备进行无线连接。 [0025] The second audio signal back to the first device, to cause the first wireless connection device according to the authority information of the second audio signal, the first device a wireless connection with the target device.

[0026] 本申请还公开了,一种设备连接装置,包括: [0026] The present application further discloses an apparatus connecting device, comprising:

[0027] 音频接口插入检测模块,用于检测第一设备的音频接口是否被插入; [0027] Audio Interface insertion detecting means for detecting whether the first audio interface device is inserted;

[0028] 第一音频信号发送模块,用于在检测到第一设备的音频接口被插入时,则通过所述音频接口发送第一音频信号;所述第一音频信号用于指示获取目标设备的无线连接权限信息; [0028] The first audio signal transmitting means for detecting when the first device is inserted into the audio interface, the audio interface is transmitted by a first audio signal; the first audio signal for instructing the target device acquiring wireless connection permission information;

[0029] 第二音频信号接收模块,用于通过所述音频接口接收第二音频信号;所述第二音频信号包括目标设备的无线连接权限信息; The second audio signal comprises a wireless connection permission information of a target device; [0029] a second audio signal receiving means for receiving a second audio interface via the audio signal;

[0030] 无线连接模块,用于根据所述第二音频信号中的无线连接权限信息,将所述第一设备与目标设备进行无线连接。 [0030] The wireless connection module, the wireless connection according to the authority information of the second audio signal, the first device a wireless connection with the target device.

[0031] 本申请还公开了,一种设备接入装置,包括: [0031] The present application further discloses an apparatus access device, comprising:

[0032] 第一音频信号接收模块,用于检测是否接收到第一音频信号;所述第一音频信号用于指示获取目标设备的无线连接权限信息; [0032] The first audio signal receiving means for detecting whether a first audio signal; the first audio signal to obtain wireless connection permission information indicating a target device;

[0033] 第一音频信号处理模块,用于若检测到第一音频信号,则针对第一音频信号进行处理,获得第二音频信号;所述第二音频信号包括目标设备的无线连接权限信息; [0033] The first audio signal processing means for detecting when the first audio signal, the audio signal processing performed for the first, obtaining a second audio signal; a second audio signal comprises a wireless connection permission information of a target device;

[0034] 第二音频信号返回模块,用于将所述第二音频信号返回第一设备,以使第一设备根据所述第二音频信号中的无线连接权限信息,将所述第一设备与目标设备进行无线连接。 [0034] The second audio signal return means for the second audio signal back to the first device, to cause the first device to the second audio signal according to information of the wireless connection right, and the first device target device wirelessly connected.

[0035] 本申请还公开了,一种设备连接系统,包括: [0035] The present application further discloses an apparatus connection system, comprising:

[0036] 第一设备和目标设备; [0036] The first device and the target device;

[0037] 所述第一设备包括: [0037] The first device comprises:

[0038] 音频接口插入检测模块,用于检测第一设备的音频接口是否被插入; [0038] Audio Interface insertion detecting means for detecting whether the first audio interface device is inserted;

[0039] 第一音频信号发送模块,用于在检测到第一设备的音频接口被插入时,则通过所述音频接口发送第一音频信号;所述第一音频信号用于指示获取目标设备的无线连接权限信息; [0039] The first audio signal transmitting means for detecting when the first device is inserted into the audio interface, the audio interface is transmitted by a first audio signal; the first audio signal for instructing the target device acquiring wireless connection permission information;

[0040] 第二音频信号接收模块,用于通过所述音频接口接收第二音频信号; [0040] The second audio signal receiving means for receiving a second audio interface via the audio signal;

[0041] 无线连接模块,用于根据所述第二音频信号中的无线连接权限信息,将所述第一设备与目标设备进行无线连接; [0041] The wireless connection module, the wireless connection according to the authority information of the second audio signal, the first device a wireless connection with the target device;

[0042] 所述目标设备包括: [0042] The target device comprising:

[0043] 第一音频信号接收模块,用于检测是否接收到第一音频信号; [0043] The first audio signal receiving means for detecting whether a first audio signal;

[0044] 第一音频信号处理模块,用于若检测到第一音频信号,则针对第一音频信号进行处理,获得第二音频信号;所述第二音频信号包括目标设备的无线连接权限信息; [0044] The first audio signal processing means for detecting when the first audio signal, the audio signal processing performed for the first, obtaining a second audio signal; a second audio signal comprises a wireless connection permission information of a target device;

[0045] 第二音频信号返回模块,用于将所述第二音频信号返回第一设备。 [0045] The second audio signal return means for the second audio signal back to the first device.

[0046] 本申请还公开了,一种设备连接系统,包括: [0046] The present application further discloses an apparatus connection system, comprising:

[0047] 第一设备、中继设备和目标设备; [0047] The first device, the relay device and the target device;

[0048] 所述第一设备包括: [0048] The first device comprises:

[0049] 音频接口插入检测模块,用于检测第一设备的音频接口是否被插入; [0049] The audio interface module insertion detector for detecting whether the first audio interface device is inserted;

[0050] 第一音频信号发送模块,用于在检测到第一设备的音频接口被插入时,则通过所述音频接口发送第一音频信号;所述第一音频信号用于指示获取目标设备的无线连接权限信息; [0050] The first audio signal transmitting means for detecting when the first device is inserted into the audio interface, the audio interface is transmitted by a first audio signal; the first audio signal for instructing the target device acquiring wireless connection permission information;

[0051] 第二音频信号接收模块,用于通过所述音频接口接收第二音频信号; [0051] The second audio signal receiving means for receiving a second audio interface via the audio signal;

[0052] 无线连接模块,用于根据所述第二音频信号中的无线连接权限信息,将所述第一设备与目标设备进行无线连接; [0052] The wireless connection module, the wireless connection according to the authority information of the second audio signal, the first device a wireless connection with the target device;

[0053] 所述中继设备包括: [0053] The relay apparatus comprising:

[0054] 第一音频信号接收模块,用于检测是否接收到第一音频信号; [0054] The first audio signal receiving means for detecting whether a first audio signal;

[0055] 第一音频信号处理模块,用于若检测到第一音频信号,则针对第一音频信号进行处理,获得第二音频信号;所述第二音频信号包括目标设备的无线连接权限信息; [0055] The first audio signal processing means for detecting when the first audio signal, the audio signal processing performed for the first, obtaining a second audio signal; a second audio signal comprises a wireless connection permission information of a target device;

[0056] 第二音频信号返回模块,用于将所述第二音频信号返回第一设备。 [0056] The second audio signal return means for the second audio signal back to the first device.

[0057]与背景技术相比,本申请实施例包括以下优点: [0057] compared to the background art, the application of the present embodiment includes the following advantages:

[0058] 本申请实施例中,第一设备直接通过音频接口获取目标设备的无线连接权限信息,比如获取无线路由器的设备标识和连接密码,然后自动根据获取到的无线连接设备的无线连接权限信息,将第一设备与目标设备进行无线连接。 Embodiment, the wireless connection permission information acquisition target device directly through the audio interface of the first device [0058] embodiment of the present application, such as access to a wireless router and a connection device identification code, then automatically the wireless connection permission information based on the acquired wireless connection device the first device a wireless connection with the target device. 首先,上述过程减少了用户在将其第一设备连接到目标设备的各种操作步骤,降低了用户操作繁琐程度;其次,上述过程通过音频快速获取目标设备的无线连接密码然后自动登录,其执行过程快,无线连接的耗用时间短;其次,目标设备的无线连接权限信息是在目标设备、第一设备之间内部传输,用户无需通过暴露的环境获取无线连接权限信息,保密程度高;再次,无需用户进行输入操作,不会因为用户的输入错误而导致密码连接失败;最后,由于目前市场中,绝大部分的第一设备(如手机、平板电脑、智能手环、智能手表等终端)都具备音频接口,因而本申请应用范围广,能够满足广大用户的需求。 First, the above-described process reduces the various operational steps to connect a first user device to a target device, the user reduces the degree of operation cumbersome; secondly, the above-described process is quick access to the target device via the wireless connection audio and automatic login password, which is performed process, short elapsed time of the wireless connection; secondly, the wireless connection permission information of the target device is an internal transfer between the target device, the first device, the user authority information without obtaining the wireless connection by exposure environment, a high degree of confidentiality; again , without user input operation, will not enter the wrong password to connect users and lead to failure; and finally, due to the current market, most of the first device (such as mobile phones, tablet PCs, smart wristbands, watches and other intelligent terminal) They are equipped with audio interface, thus the wide application range of applications to meet the needs of customers.

附图说明 BRIEF DESCRIPTION

[0059]图1是本申请的一种设备连接方法实施例的步骤流程图; [0059] FIG. 1 is a step of an embodiment of an apparatus connected to a flow chart method of the present application;

[0060] 图2是本申请对应图1的一种设备接入方法实施例的步骤流程图; [0060] FIG. 2 is an embodiment of the present application corresponds to the step of FIG. 1, an apparatus flowchart access method;

[0061] 图3是本申请第一设备直接连接目标设备的环境下的一种设备连接方法实施例的步骤流程图; [0061] FIG. 3 is a step of connecting an apparatus embodiment of the method of the present application is directly connected to the target device environment of the first embodiment flowchart device;

[0062] 图4是本申请第一设备通过中继设备连接目标设备的环境下的一种设备连接方法实施例的步骤流程图; [0062] FIG. 4 is a step of connecting an apparatus embodiment of the method of the present application connection target apparatus via a relay apparatus environment of the first embodiment flowchart device;

[0063]图5是本申请的本申请的一种设备连接装置实施例的结构框图; [0063] FIG. 5 is a block diagram showing an embodiment of an apparatus according to the present disclosure of the present application means is connected;

[0064] 图6是本申请对应图5的一种设备接入装置实施例的结构框图; [0064] FIG. 6 is a block diagram of embodiments of the present application corresponds embodiment of an apparatus of the access apparatus of FIG 5;

[0065]图7是本申请一种设备连接系统实施例的结构框图; [0065] FIG. 7 of the present application is a device that connects the system block diagram according to an embodiment;

[0066]图8是本申请另一种设备连接系统实施例的结构框图。 [0066] FIG. 8 of the present application is the connection of another device embodiment of the system block diagram.

具体实施方式 detailed description

[0067] 下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。 [0067] below with reference to this application example of the accompanying drawings, technical solutions in the embodiments will be apparent to the present application, fully described, obviously, the described embodiments are merely part of the present application embodiment, but not all embodiments example. 基于本申请中的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本申请保护的范围。 Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art fall within the scope of protection of the present application.

[0068] 本申请的核心思想之一在于,对于用户使用具备音频接口的第一设备,当其想要将第一设备与目标设备进行无线连接时,通过第一设备的音频接口连接到目标设备或者中继设备中,通过音频信号指示目标设备或者中继设备去获取目标设备的无线连接权限信息,然后第一设备即可自动根据该无线连接权限信息与目标设备进行无线连接。 [0068] One of the core idea of ​​the present application that the user using the first device includes an audio interface, when it wants the first device wirelessly connected with the target device, a target device connected to the first device via the audio interface or the relay apparatus, to acquire the target device via an audio signal indicative of a target device or a relay device having wireless connection permission information, and then automatically to the first device is wirelessly connected according to the connection permission information to the target wireless device. 节省用户的操作步骤,提高连接速度,提高目标设备无线连接权限信息的安全性。 User-saving steps, faster connections, wireless connections to improve the security of the right information of the target device.

[0069] 需要说明的是,在本申请实施例中,上述第一设备包括移动终端,上述移动终端是指可以在移动中使用的计算机设备,广义的讲包括手机、笔记本、平板电脑、POS(point Ofsale,销售终端)机、车载电脑等。 [0069] Incidentally, in the present application embodiment, the first device comprises a mobile terminal, the mobile terminal refers to the above-described computer device may be used on the move, broadly speaking, including mobile phones, laptops, tablet PCs, the POS ( point Ofsale, sale terminals), car computers.

[0070] 上述目标设备包括具备无线接入功能的设备,比如提供wifi的无线路由器,可以设置为wifi热点的移动终端,可以提供蓝牙连接、红外线连接接入功能的移动终端等。 [0070] The target device comprises a wireless access device includes functions such as providing wifi wireless router, the mobile terminal may be provided wifi hotspot, it may provide a Bluetooth connection, infrared link access functions of the mobile terminal or the like.

[0071] 上述中继设备为第一设备和目标设备之间的设备,可以独立于目标设备,由中继设备获取目标设备的无线连接权限信息;上述中继设备与第一设备直接进行音频通信,将无线连接权限信息返回第一设备。 [0071] The apparatus is a relay device between the first device and the target device, may be independent of the target device, the target device is acquired by the relay device having wireless connection permission information; and the relay device and the first audio communication device directly , the wireless connection permission information back to the first device.

[0072] 参照图1,其示出了本申请的一种设备连接方法的步骤流程图。 [0072] Referring to FIG 1, which illustrates the steps of connecting method of the present application is a flowchart apparatus.

[0073] 图1所示实施例从发起连接的第一设备一侧进行描述,具体可以包括如下步骤: [0073] Figure 1 shows a first embodiment example will be described from the side of the device to initiate a connection, specifically include the following steps:

[0074] 步骤110,检测第一设备的音频接口是否被插入;如果检测到第一设备的音频接口被插入,则进入步骤120 ;如果未检测到第一设备的音频接口被插入,则不进行后续执行过程。 [0074] Step 110, detecting whether the first device is inserted into the audio interface; if the detected first audio interface device is inserted, the process proceeds to step 120; if not detected, the first audio interface device is inserted, is not performed follow-up the implementation process.

[0075] 可以理解,在本申请实施例中,上述第一设备具备音频接口,对于音频接口,常见的包括四个引脚:GND(地底线)、L(左声道)、R(右声道)和MIC(麦克风)。 [0075] It will be appreciated that in the present application embodiment, the apparatus includes a first audio interface, an audio interface for the common four pins: GND (the bottom line), L (left channel), R (right audio Road) and mIC (microphone).

[0076] 可以理解,本申请实施例中对音频接口的孔径不进行任何限制,音频接口为任意孔径皆可应用本申请实施例的技术方案。 [0076] It will be appreciated, the present application example of the aperture audio interface without any limitation, the audio interface to any application of the present application aperture Jieke technical solution of the embodiment. 比如3.5毫米孔径的音频接口,2.5毫米孔径的音频接口,或者其他孔径的音频接口,本申请实施例不做限制。 For example 3.5 mm audio interface aperture, the aperture of 2.5 mm audio interface, audio interface or other aperture, this embodiment does not limit the embodiment of the present application.

[0077] 在实际应用中,检测音频接口是否被插入是通过检测GND和MIC之间的阻抗是否为指定值,当GND和MIC之间的阻抗达到指定值,则确认音频接口被插入。 [0077] In practice, the detected audio interface is plugged by detecting the impedance between GND and MIC is the specified value, when the impedance between the GND and MIC reaches a specified value, it is confirmed to be inserted into an audio interface. 上述指定值比如现在通用手机的阻抗设置的4.99K,当然也可根据终端的需要设置其他值。 4.99K above specified value such as the current universal phone impedance provided, of course, other values ​​may also be provided as desired terminal.

[0078] 在实际应用中,可以调用相应操作系统的API去检测音频接口是否被插入。 [0078] In a practical application, you can call the appropriate operating system API to detect whether the audio interface is inserted. 具体调用的API随操作系统的不同而有不同,本申请不对其加以限制。 Specific API calls with different operating systems have different, this application is not to limit it. 比如对于Android系统,可以调用HeadsetObserver检测音频接口是否被插入。 For example, the Android system can detect whether the call HeadsetObserver audio interface is inserted.

[0079] 在本申请实施例中,检测的是第一设备的音频接口是否被音频线的音频接头插入。 [0079] In the embodiment of the present application, whether the first detection device is an audio interface audio cable into the audio. 然后第一设备可以通过音频线连接到目标设备获取无线连接权限信息,或者第一设备可以通过音频线连接到中继设备,由中继设备去获取目标设备的连接权限。 And then the first device may be connected by an audio cable is connected to the target wireless device acquires the right information, or the first device may be connected to the relay apparatus through an audio cable, connection right to acquire the target device by the relay apparatus.

[0080] 其中,在本申请实施例中,本申请的执行逻辑可通过多种形式预置在第一设备中。 [0080] In the present application embodiment, the logic of the present disclosure may be performed by pre-forms in the first device. 比如对于手机、平板等移动终端,可通过APP应用的形式安装到移动终端的系统中。 For example, mobile phones, tablet and other mobile terminals, the system may be mounted to the mobile terminal in the form of APP application. 也可以将本申请的执行逻辑在第一设备上市之前直接写入第一设备的操作系统中。 This logic may be performed before the application is written directly to the first device listed in the operating system of the first device. 那么用户在第一设备中启动本申请的执行逻辑,比如打开相应APP应用之后,即可检测第一设备的音频接口是否被插入。 After the user starts the execution logic of the application in the first device, such as opening the appropriate application APP, can be detected whether the first audio interface device is inserted.

[0081] 那么,当用户将音频插头插入第一设备的音频接口后,则检测第一设备的音频接口被插入,然后即可进入步骤120。 [0081] Then, when the audio plug is inserted into the first user device an audio interface, the first detecting device is inserted into the audio interface, and then proceeds to step 120 to.

[0082] 步骤120,通过所述音频接口发送第一音频信号;所述第一音频信号用于指示获取目标设备的无线连接权限信息; [0082] Step 120, transmitting a first audio signal through the audio interface; the first audio signal for instructing the target device acquiring a wireless connection permission information;

[0083] 在检测到音频接口被插入之后,则可以生成用于指示获取目标设备的无线连接权限信息的第一音频信号,然后将该第一音频信号通过音频接口发出。 [0083] After detecting the audio interface is inserted, a first audio signal may be generated wireless connection permission information for instructing to obtain the target device, the first audio signal is then sent via the audio interface. 然后该第一音频信号可通过音频线传输到前述目标设备或者前述中继设备。 The first audio signal may then be transmitted to the target device or the relay device through the audio line.

[0084] 可以理解,上述目标设备或者说中继设备预置了相应的用于处理音频信号的模块,对接收到的各种音频信号进行解析,执行相应动作以获取目标设备的无线连接权限信息,然后返回包括无线连接权限信息的第二音频信号。 [0084] It will be appreciated, the above-described target device or the relay device corresponding means for pre-processing an audio signal, various audio signals received parse, execute a corresponding operation for the destination device wireless connection permission information , then returned to the second audio signal comprises a wireless connection right information.

[0085] 可以理解,上述目标设备的无线连接权限信息包括目标设备的设备标识和连接密码。 [0085] It will be appreciated, the wireless connection right above the target device information includes a device identification of the target device and the connection password. 比如对于无线路由器,上述无线连接权限信息包括ssid(Service Set Identifier,月艮务集标识)和wifi的连接密码。 For example, for a wireless router, the wireless connection permission information includes ssid (Service Set Identifier, Burgundy month service set identifier) ​​and wifi connection password. 比如对于设置为无线热点的手机,上述无线连接权限信息包括手机的设备标识和无线热点的连接密码。 For example, mobile wireless hotspot to the wireless connection comprises a connection password authority information phone device identification and hotspot. 比如对于手机的蓝牙连接,无线连接权限信息包括手机设备标识以及蓝牙连接的连接密码。 Such as Bluetooth connectivity for mobile phones, wireless connection right information including mobile device identification and password for connecting Bluetooth connection.

[0086] 当然,上述无线连接权限信息也可采用其他信息,只要是第一设备无线连接目标设备时所需要的信息即可,本申请不对其加以限制。 [0086] Of course, the radio connection right information can be other information as long as the first wireless device when the target device is connected to the information required, the present application is not to limit it.

[0087] 在本申请的一个实施例中,步骤120可以包括如下子步骤: [0087] In one embodiment of the present disclosure, step 120 may include the following sub-steps:

[0088] 子步骤S121,生成权限获取指令;所述权限获取指令用于获取目标设备的无线连接权限信息; [0088] The sub-step S121, the generated rights acquisition instruction; the wireless connection permission obtaining instruction for obtaining authority information of a target device;

[0089] 在确定音频接口被插入之后,本申请即可生成权限获取指令,该权限获取指令用于获取目标设备的无线连接权限信息。 [0089] After determining the audio interface is inserted, the present application to generate rights acquisition instruction, the rights acquisition instruction for acquiring a target wireless device connection right information.

[0090] 本申请可以采用各种协议构建权限获取指令,在第一设备和目标设备,或者第一设备和中继设备之间采用一套协议。 [0090] The present application may employ various protocols construct rights acquisition instruction, the use of a protocol between the first device and the target device, or the first device and the relay device.

[0091] 在具体实现中,以简单文本协议为例,本申请可以在确定音频接口被插入后,根据简单文本协议构造权限获取指令。 [0091] In a specific implementation, a simple text protocol as an example, the present application makes it possible to obtain the audio interface after determining that the instruction is inserted according to a simple text protocol configuration rights. 其简单文本协议构造的指令格式如“数据内容为字符串明文“\r\n”,其中以\r\n作为命令或音频响应信号的结束。比如获取路由器的ssid和连接密码,构造的权限获取指令为“getssid:+Equipment info+ “\r\n”。 Its simple text-based protocol configuration instruction format such as the "data content as plaintext string" \ r \ n ", which \ r \ n as a command or response to the audio signal ends, such as ssid and the acquired router connection password, permission configuration acquisition instruction is "getssid: + Equipment info +" \ r \ n ".

[0092]当然,在此仅以简单文本协议为例,本申请还可采用其他协议,本申请不对其加以限制。 [0092] Of course, this only as an example a simple text-based protocol, other protocols may also be used in this application, the present application is not to limit it.

[0093] 子步骤S122,将所述权限获取指令调制为第一音频信号; [0093] The sub-step S122, the rights acquisition instruction to the audio signal as a first modulated;

[0094] 然后对于前述生成的权限获取指令,即可将其调制为第一音频信号。 [0094] Then the rights acquisition instruction for the generation, which can be modulated to a first audio signal. 如此,第一音频信号也可以理解为用于指示获取目标设备的无线连接权限信息。 Thus, a first audio signal may also be appreciated that the target device is acquired for indicating wireless connection permission information.

[0095]由于音频接口和音频线传输的是音频信号,其是波形的信号。 [0095] Since the audio interface and the audio transmission line is an audio signal, which is a signal waveform. 而在权限获取指令本身是数字信号,那么需要将数字信号调制为音频信号,才能通过音频线传输给目标设备或者中继设备。 Acquiring permission instruction itself is a digital signal, it is necessary to modulate a digital signal into an audio signal to be transmitted to a target device or a relay device through the audio cable.

[0096] 在具体实现中,,将数字信号调制为音频信号,将音频信号解调为数字信号,可以采用2FSK(2binary frequency shift keying,二进制频移键控)的方式进行调制解调。 [0096] ,, modulated digital signal is an audio signal, the audio signal is demodulated into a digital signal, may be employed 2FSK (2binary frequency shift keying, binary frequency shift keying) modulation and demodulation in a manner specific implementation. 2FSK就是用二进制里的0、1来控制载波的频率,从而达到通信的目的。 Lane 2FSK is binary 0, to control the frequency of the carrier, so as to achieve the purpose of communication. 例如:用Ims(微米)长、IKHz (千赫兹)的正弦信号来代表二进制里的I ;用Ims长、2KHz的正弦来代表二进制里的O ;那一连串的1ΚΗζ、2ΚΗζ的信号解调出来就是一连串的O和I。 For example: with Ims (microns) long, IKHz (kHz) sinusoidal signals representative of the binary Lane I; with Ims long, representing a binary to 2KHz sine Lane O; series of signals that 1ΚΗζ, 2ΚΗζ is the demodulated a series of O and I. 那么在本申请中可以根据需要设置X微米长,y千赫兹的正弦信号代表2进制里的I ;设置m微米长,η千赫兹的正弦信号代表2进制里的O。 In the present application, it may be provided as required length X m, and y represents a sinusoidal signal of 2 kHz in the binary I; m is provided microns long, [eta] is a sinusoidal signal representative of 2 kHz in the binary O.

[0097] 当然,具体的调制解调方式还可以采用其他方式,本申请不对其加以限制。 [0097] Of course, the specific modulation and demodulation may also be used in other ways, the present application is not to limit it.

[0098] 那么在步骤S122中,本申请将权限获取指令采用2FSK的方式调制为第一音频信号。 [0098] Then in step S122, the present application by way of a rights acquisition instruction is a first modulated audio signal 2FSK.

[0099] 如前述简单文本协议的权限获取指令为“getssid:+Equipment info+ “\r\n”,由于简单文本协议米用的字符为ASCII表(American Standard Code for Informat1n [0099] Simple text preceding authority acquisition command protocol as "getssid: + Equipment info +" \ r \ n ", since the character with a simple text-based protocol is ASCII table m (American Standard Code for Informat1n

Interchange,美国标准信息交换代码)中的字符,而ASCII表的字符在底层都有一个-- Interchange, American Standard Code for Information Interchange) characters, while the ASCII character has a table at the bottom -

对应的二进制代码,那么对于“getssid:+Equipment info+“\r\n”,其实质对应一连串的二进制代码,将上述一连串的二进制代码通过2FSK可以调制为波形信号,即第一音频信号。 Corresponding binary code, for the "getssid: + Equipment info +" \ r \ n ", corresponding to the essence of the series of binary code, the binary code by the above-described series of modulated waveform signal may 2FSK, i.e., the first audio signal.

[0100] 子步骤S123,将所述第一音频信号由音频接口发出。 [0100] Sub-step S123, the audio signal of the first issued by the audio interface.

[0101] 然后即可通过音频接口传输到音频线,再通过音频线传输到目标设备或者中继设备。 [0101] and then to an audio line, then transferred to the target device or a relay device transmitted through an audio interface audio cable.

[0102] 在本申请的一个实施例中,子步骤S123可以包括如下子步骤: [0102] In one embodiment of the present disclosure, the sub-step S123 may include the following sub-steps:

[0103] 子步骤S124,调用音频输出API,通过音频接口的左声道引脚和/或右声道引脚,将上述第一音频信号发出。 [0103] Sub-step S124, the audio output of the API call, channel pin through the left and / or right channel audio interface pins, said first audio signal is issued.

[0104] 在实际应用中,可以调用相应操作系统的API (Applicat1n Program Interface,应用程序编程接口)去检测音频接口是否被插入。 [0104] In a practical application, you can call the appropriate operating system API (Applicat1n Program Interface, an application programming interface) to check whether the audio interface is inserted. 具体调用的API随操作系统的不同而有不同,本申请不对其加以限制。 Specific API calls with different operating systems have different, this application is not to limit it. 以Android系统为例,可以调用Aud1Track将上述第一音频信号从音频接口输出。 In Android system, for example, you can call Aud1Track said first audio signal output from audio interface. 然后第一音频信号沿着音频线就输送到目标设备或者中继设备。 The first audio signal is then delivered to a target device or a relay device along the audio cable. 当然不同的操作系统,其调用的音频输出API也可能不同,本申请不对其加以限制。 Of course, different operating systems, its audio output API call may be different, this application is not to limit it.

[0105] 对于第一音频信号的输出,可以只是以左声道引脚传输,也可以只使用右声道引脚传输,也可以两者结合进行传输,本申请不对其加以限制。 [0105] the output of the first audio signal, the left pin may be only transmitted channels may be transmitted using only the right channel pin, a combination of both may be transmitted, the present application is not to limit it.

[0106] 可以理解,应用本实施例,可以预先在上述目标设备或者说中继设备设置相应的处理音频信号的模块,设置相同的通信协议,以及在相应的通信协议下,对不同指令预置相应的处理逻辑。 [0106] It will be appreciated, this embodiment is applied, the above object may be previously apparatus or module processing an audio signal corresponding to the relay apparatus is provided, the same set of communications protocols, and in the respective communication protocols, different preset instruction corresponding processing logic.

[0107] 比如都预置了2FSK和简单文本协议的处理音频信号的模块,在目标设备侧预置了对指令权限获取指令的处理逻辑,那么对于前述转换后的对应“getssid:+Equipmentinfo+“\r\n”的第一音频信号。先将第一音频信号采用2FSK解调为一系列二进制代码,然后将该一系列二进制代码从头部与ASCII表进行匹配,转换即得到“getssid:+Equipmentinfo+ “\r\n”,目标设备或中继设备识别该指令为获取目标设备的ssid和连接密码,则执行该指令,获取目标设备的ssid和连接密码,再将ssid和连接密码调制为第二音频信号通过音频线返回第一设备。 [0107] For example, both the pre-processing an audio signal and a module 2FSK simple text protocol, the target device side acquired rights preset instruction processing logic instructions, then converted to the corresponding rear "getssid: + Equipmentinfo +" \ r \ n ". the first audio signal is a first audio signal using a first series of binary codes to demodulate 2FSK, then a series of binary codes from the head to match with the ASCII table, i.e., converted to give" getssid: + Equipmentinfo + "\ r \ n", target device or the relay device identify the instructions to acquire the target device is connected ssid and password, the instruction is executed, and the connection target apparatus acquires ssid password, ssid and then modulated to a second connection password The audio signal back to the first device through the audio line.

[0108] 在本申请实施例中,目标设备或者中继设备在获取到无线连接权限信息之后,会基于该无线连接权限信息生成返回指令,然后将该返回指令调制为第二音频信号返回第一设备。 [0108] embodiment, the target device or a relay device after a wireless connection is acquired right information, the return instruction is generated based on the wireless connection permission information, and the return instruction in the present application is a modulated second audio signal back to the first equipment.

[0109] 如前述简单文本协议和2FSK机制下路由器的例子,可将获取到的ssid和连接密码,构造为返回指令“ssid+password “\r\n”的形式,然后再对“ssid+password “\r\n”以前述相同的机制采用2FSK调制为第二音频信号,再将第二音频信号返回第一设备。 "Form, and then to" [0109] Examples of the preceding a simple text-based protocol and 2FSK mechanisms router can be acquired ssid and the connection password, configured to return instruction "ssid + password" \ r \ n ssid + password "\ r \ n" to use the same mechanism 2FSK modulated second audio signal, the second audio signal and then back to the first device.

[0110] 在本申请实施例中,目标设备或中继设备返回的第二音频信号可通过麦克风引脚返回的,第二音频信号然后通过音频线中的麦克风线返回第一设备。 [0110] embodiment, a second audio signal of the target device or the relay device may be returned through the microphone return pin, and a second audio signal back to the first device through the audio line microphone line embodiment of the present application.

[0111] 步骤130,通过所述音频接口接收第二音频信号;所述第二音频信号包括目标设备的无线连接权限信息; [0111] Step 130, the second audio signal received via the audio interface; the second audio signal comprises a wireless connection permission information of a target device;

[0112] 第一设备则通过音频接口接收第二音频信号,该第二音频信号则包括了目标设备的无线连接权限信息。 [0112] The first device receives a second audio signal through the audio interface, the second audio signal is included in the connection permission information of the target wireless device.

[0113] 在本申请的一个实施例中,步骤130可以包括如下子步骤: [0113] In one embodiment of the present application, step 130 may include the following sub-steps:

[0114] 子步骤S131,调用音频输入API,从音频接口的麦克风引脚中接收所述第二音频信号。 [0114] sub-step S131, an audio input calls API, receiving a second audio signal from the microphone in the audio interface pin.

[0115] 在实际应用中,可以调用相应操作系统的API从音频接口的麦克风引脚中接收上述第二音频信号。 [0115] In a practical application, you can call the appropriate operating system API receives the second audio signal from the microphone in the audio interface pin. 具体调用的API随操作系统的不同而有不同,本申请不对其加以限制。 Specific API calls with different operating systems have different, this application is not to limit it. 以Android系统为例,可以调用Aud1Recordk从音频接口的麦克风引脚中接收上述第二音频信号。 In Android system, for example, you can call Aud1Recordk receiving said second audio signal from the microphone in the audio interface pin.

[0116] 步骤140,根据所述第二音频信号中的无线连接权限信息,将所述第一设备与目标设备进行无线连接。 [0116] Step 140, the wireless connection according to the authority information of the second audio signal, the first device a wireless connection with the target device.

[0117]由于第二音频信号中包括了目标设备的连接权限信息,本步骤则可从第二音频信号中提取无线连接权限信息,然后在根据该无线连接权限信息,将苏颂第一设备与目标设备进行无线连接。 [0117] Since the second audio signal is included in the connection permission information of the target device, this step may extract information from the second wireless connection right audio signal, then the radio connection permission information according to the first device and Su Song target device wirelessly connected.

[0118] 在本申请的一个实施例中,步骤140可以包括如下子步骤: [0118] In one embodiment of the present disclosure, step 140 may include the following sub-steps:

[0119] 子步骤S141,所述第一设备通过音频接口接收到所述第二音频信号之后,解调所述第二音频信号; After the [0119] sub-step S141, the first device receives the second audio signal through the audio interface, the second audio signal demodulation;

[0120] 对于目标设备或者中继设备返回的第二音频信号,本申请则可采用相应的解调机制对第二音频信号进行解调。 [0120] For the second audio signal or a relay device returns the target device, and the present application can be adopted for the second mechanism corresponding demodulation audio signal is demodulated.

[0121] 如前述的包括回指令“ssid+password “\r\n”的第二音频信号,采用2FSK对第二音频信号进行解调,得到一系列二进制码,再将该一系列二进制码从头部与ASCII表进行匹配,转换即得到“ssid+password “\r\n”。 [0121] The foregoing including return instruction "ssid + password" second audio signal \ r \ n ", using 2FSK second audio signal is demodulated into a series of binary code, then the binary code from a series of head and matching ASCII table, conversion to obtain "ssid + password" \ r \ n ".

[0122] 子步骤S142,从解调后的结果中,提取目标设备的无线连接权限信息; [0122] Sub-step S142, the demodulated result from the extraction target device wireless connection permission information;

[0123] 如前述的解调后的结果“ssid+password “\r\n”中,可以提取无线连接权限信息ssid和password。 [0123] The results of the demodulated "ssid + password" \ r \ n ", the authority information may be extracted wireless connection ssid and password.

[0124] 子步骤S143,基于所述无线连接权限信息,将所述第一设备与目标设备进行无线连接。 [0124] Sub-step S143, the wireless connection based on the authority information, the first device a wireless connection with the target device.

[0125] 以前述无线连接权限信息ssid和password为例,得到该无线连接权限信息之后,即可将第一设备连入前述无线路由器的wifi中。 After [0125] In the wireless connection permission information ssid and password, for example, to obtain the radio connection permission information to the first device to join the wireless router in wifi.

[0126] 在本申请的一个实施例中,子步骤S143可以包括如下子步骤: [0126] In one embodiment of the present disclosure, the sub-step S143 may include the following sub-steps:

[0127] 子步骤S144,用无线连接API,根据所述无线连接权限信息将第一设备与目标设备进行无线连接; [0127] Sub-step S144, the wireless connection with the API, the first wireless device and a target device connected to the wireless connection according to the rights information;

[0128] 在实际应用中,无论是wif1、蓝牙连接还是红外线连接,均需要目标设备的设备标识和连接密码之后,第一设备的相应wifi模块、蓝牙连接模块或者红外线连接模块才能向目标设备发送正确的连接请求,使第一设备和目标设备可以成功连接。 After [0128] In practice, both WIFl, a Bluetooth connection or an infrared connection, require connection device identification and password for the target device, the first device module corresponding wifi, Bluetooth connection or an infrared connection module to send to the target device module correct connection request, the first device and the target device can successfully connect.

[0129] 对于前述无线路由器的连接,第一设备以Android系统为例,在第一设备中可调用WifiConfigurat1n,根据上述无线连接权限信息将第一设备与目标设备进行无线连接。 [0129] connected to the wireless router, the first device to Android system, for example, may be invoked in the first device WifiConfigurat1n, the first device and the target device is wirelessly connected wireless connection based on the authority information.

[0130] 在本申请的一个实施例中,子步骤S144可以包括如下子步骤: [0130] In one embodiment of the present disclosure, the sub-step S144 may include the following sub-steps:

[0131] 子步骤S144,调用无线连接API中的无线配置API,根据所述无线连接权限信息进行无线连接配置; [0131] Sub-step S144, the calling wireless connection API API wireless configuration, wireless connection configuration according to the wireless connection permission information;

[0132] 第一设备以Android系统为例,在连接前述无线路由器的wif i时,其调用WifiManager在第一设备中进行wifi热点配置。 [0132] In a first device Android system, for example, when connecting the wireless router wif i, which calls for WifiManager wifi hotspot disposed in the first device.

[0133] 上述WifiManager首先获取WifiManager对象,然后在该WifiManager对象中进行如下配置: [0133] The first acquires WifiManager WifiManager object, and then follows the WifiManager object:

[0134] (I)配置wifi 热点的类,如WifiConfigurat1n apConfig = newWifiConfigurat1n O ; [0134] (I) class configuration wifi hotspot, as WifiConfigurat1n apConfig = newWifiConfigurat1n O;

[0135] (2)配置wifi 热点的名称,如apConfig.SSID = 〃YRCC0NNECT10N〃 ; [0135] (2) the configuration name wifi hotspot, as apConfig.SSID = 〃YRCC0NNECT10N〃;

[0136] (3)配置热点的密码,如apConfig.preSharedKey = "password"; [0136] (3) arranged hotspot password, such as apConfig.preSharedKey = "password";

[0137] (4)通过反射调用以设置wifi热点,并确定wifi加密类型,如Method method =wifiManager.getClass().getMethod( [0137] (4) by reflection calls to set the wifi hotspot, and determines the type of encryption wifi as Method method = wifiManager.getClass (). GetMethod (

[0138] ^setffifiApEnabled^, WifiConfigurat1n.class, Boolean.TYPE); [0138] ^ setffifiApEnabled ^, WifiConfigurat1n.class, Boolean.TYPE);

[0139] (5)返回热点打开状态,如return (Boolean)method.1nvoke (wifiManager, apConfig, true);如此,wifi热点在第一设备中配置完毕。 [0139] (5) returns a hot open state, such as return (Boolean) method.1nvoke (wifiManager, apConfig, true); thus, wifi hotspots in the first device configuration is completed.

[0140] 子步骤S145,调用无线连接中的连接API,根据所述无线连接配置,将第一设备连接到目标设。 [0140] Sub-step S145, the API calls the connection is a wireless connection, the wireless connection according to the configuration, connecting the first device to a target set.

[0141] 在前述wifi热点在第一设备中配置完毕,则可将第一设备连接到目标设备的wifi 中。 [0141] In the aforementioned configuration is completed wifi hotspots in the first device, the first device may connect to the target device in wifi.

[0142] 以前述第一设备以Android系统为例,将第一设备连接到目标设备的wifi中时,可调用WifiConfigurat1n进行连接。 When [0142] In the first device to Android system, for example, connecting the first device to a target device wifi, calls can be connected WifiConfigurat1n.

[0143]在进行 wifi 连接时,WifiConfigurat1n 获取WifiManager 对象后,以WifiManager 对象为基准创建WifiConfigurat1n 对象。 [0143] When wifi connection is made after acquiring WifiConfigurat1n WifiManager object, creating an object in WifiConfigurat1n WifiManager object as a reference. 然后在WifiConfigurat1n 对象中根据wifi加密类型选择相应类型的连接方式,以将第一设备连接到目标设备的wifi中。 Then WifiConfigurat1n object corresponding type is selected according to the wifi connection encryption type, to connect the first device to a target device in wifi.

[0144] 在WifiConfigurat1n对象中根据wifi加密类型选择相应类型的连接方式比如: [0144] In WifiConfigurat1n object corresponding type is selected according to such as wifi connection encryption type:

[0145] (I) Type = 1,表示wifi没有设置密码,则在WifiConfigurat1n对象中按序进行如下操作: [0145] (I) Type = 1, represents a wifi no password is set, the following operation is performed sequentially WifiConfigurat1n object:

[0146] 将KeyMgmt字段设置为NONE ; [0146] The KeyMgmt field to NONE;

[0147]将 wepTxKeyIndex 字段设置为O ; [0147] The field to wepTxKeyIndex is O;

[0148] 可将上述设置添加到wifi列表; [0148] provided above may be added to the list wifi;

[0149]执行 Wif iConf igurat1n 中的函数wif iManager.enableNetwork (wcgID, true)即可连接到目标设备的wifi。 [0149] performing the function Wif iConf igurat1n wif iManager.enableNetwork (wcgID, true) to connect to the target device wifi.

[0150] (2) Type = 2,表示wifi为WEP加密类型,贝丨』在WifiConfigurat1n对象中按序进行如下操作: [0150] (2) Type = 2, represented as wifi WEP encryption type, shell Shu "sequentially perform the following operations WifiConfigurat1n object:

[0151] 将config.SSID字段设置为连接密码设备标识; [0151] The connection password field to config.SSID device identifier;

[0152] 将config.wepKeys字段设置为连接密码password ;将AuthAlgorithm字段设置为SHARED ; [0152] The connection password field to config.wepKeys password; AuthAlgorithm the field to the SHARED;

[0153]将 GroupCipher 设置为CCMP,再将GroupCipher 设置为TKIP ; [0153] The GroupCipher to CCMP, then set GroupCipher TKIP;

[0154] GroupCipher 设置为WEP40,最后GroupCipher 设置将WEP104 ; [0154] GroupCipher set WEP40, finally setting GroupCipher WEP104;

[0155]将 KeyMgmt 设置为NONE ;将wepTxKey Index 字段设置为O ; [0155] The KeyMgmt to NONE; field to the wepTxKey Index is O;

[0156] 将上述设置添加到wifi列表; [0156] Adding to the above arrangement wifi list;

[0157]执行 Wif iConf igurat1n 中的函数wif iManager.enableNetwork (wcgID, true)即可连接到目标设备的wifi。 [0157] performing the function Wif iConf igurat1n wif iManager.enableNetwork (wcgID, true) to connect to the target device wifi.

[0158] (3) Type = 3,表示wifi为WPA加密类型,贝丨』在WifiConfigurat1n对象中按序进行如下操作: [0158] (3) Type = 3, expressed as wifi WPA encryption type, shell Shu "sequentially perform the following operations WifiConfigurat1n object:

[0159] 将config.SSID字段设置为连接密码设备标识; [0159] The connection password field to config.SSID device identifier;

[0160] 将config.wepKeys字段设置为连接密码password ; [0160] The connection password field to config.wepKeys password;

[0161 ]将AuthAlgorithm 字段设置为OPEN ; [0161] The field to the OPEN AuthAlgorithm;

[0162]将 GroupCipher 字段设置为TKIP ; [0162] The field to GroupCipher TKIP;

[0163]将 KeyMgmt 字段设置为WPA_PSK ; [0163] The field to KeyMgmt WPA_PSK;

[0164]将 Protocol 设置为WPA ; [0164] Protocol to the WPA;

[0165]将 GroupCipher 字段设置为CCMP ; [0165] The field to GroupCipher CCMP;

[0166]将 Pairwi seCipher 字段设置为CCMP ; [0166] The field to Pairwi seCipher CCMP;

[0167]将 status 字段设置为ENABLED ; [0167] The status field to the ENABLED;

[0168] 将上述设置添加到wifi列表;最后执行WifiConfigurat1n中的函数wif iManager.enableNetwork (wcgID, true)即可连接到目标设备的wifi。 [0168] Adding to the above arrangement list wifi; wifi WifiConfigurat1n last execution of the function wif iManager.enableNetwork (wcgID, true) to connect to the target device.

[0169] 当然,对于第一设备来说,不同的操作系统,其调用的无线连接API可能不同,具体的连接过程也不同,本申请不对其加以限制。 [0169] Of course, for the first device, a different operating system, it calls the API wireless connections may be different, different connection process, the present application is not to limit it.

[0170] 在本申请的一种优选实施例中,步骤120之前可以还包括如下步骤: [0170] In one preferred embodiment of the present disclosure may further comprise the step before step 120:

[0171] 步骤114,通过音频接口发送音频连接测试信号;所述音频连接测试信号用于指示第一设备的连接对象返回音频响应信号; [0171] Step 114, an audio test signal transmitted via the audio interface; the audio test signal for connecting a first object indicating an audio device returns a response signal;

[0172] 在本申请实施例中,为了避免由于第一设备的音频接口接入的对象不是目标设备或者中继设备,本申请还通过音频接口向外发送信号,影响用户对其他设备(比如耳机)的使用,本申请首先检查第一设备的音频接口连接的是否为目标设备或中继设备,如果第一设备的音频接口连接的是目标设备或中继设备,则进入后续步骤。 [0172] In the present application example, since the object is not a target in order to avoid an audio interface device accesses the first device or the relay device, the present application also sends out signals via the audio interface, user influence on other devices (such as headphone ) to be used, the application first checks if the target device is the first device or the relay device connected to the audio interface, audio interface if the first device is connected to the relay device or the target device, the process proceeds to the subsequent step.

[0173] 在本申请实施例中,通过第一设备的音频接口向外发送音频连接测试信号,其中,上述音频连接测试信号用于指示第一设备的连接对象返回音频响应信号。 [0173] In the present application example, the audio test signal transmitted through the audio interface of the first device outwardly, wherein the audio test signal for connecting a first object indicating an audio device returns a response signal. . 那么,如果是本申请的目标设备或者中继设备接收到上述音频连接测试信号,则会针对上述音频连接测试信号进行音频响应信号。 So, if the target device or the relay device of the present disclosure receives the audio test signal, it will be above the audio response signal to an audio test signal. 如果不是本申请的目标设备或中继设备,则不会返回针对上述音频连接测试信号进行音频响应信号。 If the target device is not present disclosure or the relay device, the audio will not be returned response signal to said audio test signal.

[0174] 在具体实现中,以前述简单文本协议和2FSK机制为例,本申请可先构造类似“ceshi “\r\n”的连接测试指令,然后将“ceshi “\r\n”调制为音频连接测试信号,再将上述音频连接测试信号通过音频接口发出。 [0174] In a specific implementation, to the simple text-based protocol and mechanisms 2FSK an example, the present application may be configured similar to "ceshi" \ r \ n "is connected to the test instruction, and then" ceshi "\ r \ n" is modulated The audio test signal, said audio test signal and then sent via the audio interface.

[0175] 步骤116,检测音频接口是否接收到针对所述音频连接测试信号的音频响应信号;如果检测到针对所述音频连接测试信号的音频响应信号,则进入步骤110 ;如果检测到针对所述音频连接测试信号的音频响应信号,则停止后续执行过程。 If the detected against; [0175] Step 116, detecting whether an audio interface for receiving an audio response to the audio signal of the test signal; if the detected signal for the audio response of the audio test signal, the process proceeds to step 110 audio signal of the audio test signal in response to the subsequent execution is stopped.

[0176] 在具体实现中,如前述例子,目标设备或者中继设备接收到包括“ceshi “\r\n”的音频连接测试信号后,先采用2FSK解调该音频连接测试信号,得到“ceshi “\r\n”,采用简单文本协议识别该指令,则会针对该指令返回一个音频响应信号。 [0176] In a specific implementation, the preceding example, the target device comprises a receiving device or a relay "ceshi" \ r \ n "after the audio test signal, demodulates the first use of 2FSK audio test signal, to obtain" ceshi "\ r \ n", a simple text-based protocol to identify the instruction, it returns a response to the audio signal for the instruction. 比如,生成音频响应信号指令“ok “\r\n”,再将“ok “\r\n”采用2FSK调制为音频响应信号,再将该音频响应信号通过音频线返回第一设备的音频接口。 For example, to generate an audio signal in response to the instruction "ok" \ r \ n ", then" ok "\ r \ n" 2FSK modulated using an audio response signal, then the audio signal is returned in response to the audio interface of the first device through the audio line .

[0177] 第一设备在音频接口接收到上述音频响应信号之后,采用2FSK进行解调,获得“ok“\r\n”,那么通过简单文本协议识别该指令,就确认音频接口的连接对象为目标设备或者中继设备,那么可进入步骤110。 [0177] After the first audio interface device in response to receiving the audio signal, demodulates using 2FSK obtain "ok" \ r \ n ", then the instruction identified by simple text-based protocol, it is confirmed that connection object to the audio interface target device or a relay device, it may proceed to step 110.

[0178] 在具体实现中,本申请实施例可以设置一个时间间隔,比如设置时间间隔为5秒,在音频连接测试信号发出之后,如果5秒之内未接收到针对上述音频连接测试信号的音频响应信号,则停止后续执行过程。 [0178] In a specific implementation, embodiments of the application can set a time interval, such as setting the time interval is 5 seconds, after the audio test signal is issued, is not received audio for said audio test signal within If 5 seconds response signal, performing a subsequent process is stopped.

[0179] 可以理解第一设备发送音频连接测试信号采用的音频接口引脚与前述发送第一音频信号类似,第一设备接收音频响应信号所采用的音频接口引脚与前述接收第二音频信号类似。 [0179] It will be appreciated similar device transmits a first audio test signal using audio interface transmits a first pin and the audio signal, similar to the second pin and the audio interface audio receiving device receives the first audio signal in response to a signal used . 在此不在赘叙。 Not dwell on this.

[0180] 当然上述时间间隔可以根据需要进行设置,本申请不对其加以限制。 [0180] Of course, the above-mentioned time interval can be set according to needs, the present application is not to limit it.

[0181] 在第一设备与目标设备无线连接上之后,用户即可将音频插头从第一设备的音频接口中拔出。 [0181] After the first device and a target device having wireless connection, the user can audio plug from an audio interface of the first device.

[0182] 通过本发明实施例,第一设备可以通过音频接口获取到其想要进行无线连接的目标设备的无线连接权限信息,然后自动根据无线连接权限信息与目标设备进行无线连接。 [0182] Example embodiments of the present invention, the first device may obtain a wireless connection via the audio interface to the authority information that it wants to be connected to the target wireless device, then automatically the wireless connection according to wireless connection permission information to the target device. 用户的无线连接的操作简单,不需用户记忆和输入任何无线连接权限信息;其次,目标设备的无线连接权限信息在电路内部传输给第一设备,安全性高;再次,由于音频接口的应用范围广泛,从而本申请的应用范围也很广泛,适配性强。 Simple operation of the user of wireless connection without any user input memory and a wireless connection permission information; secondly, the connection permission information of the target wireless device in the interior of the transmission circuit to the first device, safe; again, since the application range of the audio interface wide, thus the scope of application of this application is very broad, fit and strong.

[0183] 需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请实施例并不受所描述的动作顺序的限制,因为依据本申请实施例,某些步骤可以采用其他顺序或者同时进行。 [0183] Incidentally, the method embodiments, for ease of description, it is described as a series combination of actions, those skilled in the art will be aware that the present application is not subject to an operation sequence example of the described embodiment limiting, since the application according to the present embodiment, some steps may be performed simultaneously or in other sequences. 其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本申请实施例所必须的。 Secondly, those skilled in the art should also understand that the embodiments are described in the specification are exemplary embodiments, the operation is not necessarily related to the embodiment of the present application is necessary.

[0184] 参照图2,其示出了本申请的一种设备接入方法的步骤流程图。 [0184] Referring to Figure 2, which shows an apparatus of the present application, the step a flowchart of access method.

[0185] 图2所示实施例对应图1所示实施例,从被连接的目标设备或中继设备一侧进行描述,具体可以包括如下步骤: [0185] FIG. 2 embodiment corresponding to Embodiment 1 shown in FIG embodiment embodiment, will be described from the side of the target device is connected or the relay device may include the following steps:

[0186] 步骤210,检测是否接收到第一音频信号;所述第一音频信号用于指示获取目标设备的无线连接权限信息;若检测到第一音频信号,则进入步骤220 ;若未检测到第一音频信号,则不进行后续处理; [0186] Step 210, detecting whether the first audio signal; the first audio signal for instructing the target device acquiring a wireless connection permission information; if the first audio signal is detected, the process proceeds to step 220; if not detected a first audio signal, the subsequent processing is not performed;

[0187] 可以理解,本申请实施例的目标设备或者中继设备在接收到由第一设备发送的用于指示获取目标设备的无线连接权限信息的第一音频信号之后,会在对音频信号进行解析和处理,并根据相应执行逻辑返回第一设备所需求的目标设备的无线连接权限信息。 [0187] It will be appreciated, the target device or a relay device according to embodiments of the present application after receiving a first audio signal by a first device for transmitting an indication of the target device acquiring a wireless connection permission information, the audio signal will parsing and processing, and returns the target device of the first device according to the respective needs execution logic wireless connection permission information.

[0188] 本申请实施例中,在目标设备或中继设备中会预置与第一设备一致的音频信号解析机制,使两侧可以正常进行通信。 [0188] Application of the present embodiment, the target device or the relay device will be consistent with the preset audio signal to the first device resolution mechanism, so that both sides can communicate normally.

[0189] 由于第一设备的音频接口包括4个引脚:GND(地底线)、L(左声道)、R(右声道)和MIC (麦克风)。 [0189] Since the first audio interface device comprises four pins: GND (the bottom line), L (left channel), R (right channel) and MIC (microphone).

[0190] 可以理解,相应的在目标设备或者中继设备中,对应设置4个引脚,使第一设备和目标设备,或者第一设备和中继设备,可以通过音频线进行连接,并通过相应引脚接收信号。 [0190] It will be appreciated, the respective target device or a relay device, four pins provided corresponding to the first device and the target device, or the first device and the relay device, may be connected by an audio cable, and by receiving a respective signal pin.

[0191] 当然,目标设备或者中继设备中的各引脚可以对外暴露的音频接口实现,此时,则可用两端均为音频插头的音频线,该音频线其中一端插头插入第一设备的音频接口,另一端插头插入目标设备或中继设备的音频接口,实现两侧的连接。 [0191] Of course, the external exposed audio interface pins of each target device or a relay device, in which case, the ends are available audio plug audio cable, wherein an end of the audio cable connector inserted into the first device audio interface, audio interface plug into the other end of the target device or a relay device, connected to both sides of the implement. 目标设备或中继设备的各引脚也可与音频线相应引脚合在一起,音频线的另外一个插头暴露在外,此时,该插头插入第一设备的音频接口,实现两侧的连接。 Each pin target device or the relay device may also be the audio line corresponding pin together, another audio cable plug exposed, In this case, the plug is inserted into the first audio interface device, connected to both sides of the implement.

[0192] 在本申请的一个实施例中,对应于图1实施例的子步骤S124,调用音频输出API,通过音频接口的左声道引脚和/或右声道引脚,经由音频线将上述第一音频信号发出。 [0192] In one embodiment of the present application, corresponding to the sub-step S124 of FIG. 1 embodiment, the API calls the audio output, left channel by pins and / or pin right channel audio interface, the audio line via said first audio signal is issued. 在本申请实施例中,上述步骤210包括: In the present application embodiment, the step 210 comprises:

[0193] 子步骤S211,在左声道引脚和/或右声道引脚检测是否接收到第一音频信号。 [0193] Sub-step S211, the pin and the left channel / right channel audio signal or a first pin received in detecting whether.

[0194] 可以理解,目标设备或者中继设备则通过相应的左声道引脚和/或右声道引检测是否接收到第一音频信号。 [0194] It will be appreciated, the target device or a relay device through the pin and the corresponding left channel / right channel or primers detecting whether the first audio signal.

[0195] 步骤220,针对第一音频信号进行处理,获得第二音频信号;所述第二音频信号包括目标设备的无线连接权限信息; [0195] Step 220 performs processing for the first audio signal to obtain a second audio signal; a second audio signal comprises a wireless connection permission information of a target device;

[0196] 在获得第一音频信号之后,即可对第一音频信号进行处理,根据第一音频信号中获取目标设备的无线连接权限信息的指示,获取目标设备的无线连接权限信息以生成第二音频信号,从而,上述第二音频信号包括了目标设备的无线连接权限信息。 [0196] After obtaining a first audio signal to the first audio signal is processed, according to the audio signal indicating that the first device obtains a target wireless connection permission information, the wireless device acquires the target information to generate a second connection right audio signal to the second audio signal comprises a wireless connection permission information of the target device.

[0197] 在本申请的一个实施例中,如图1实施例中的,述第一音频信号中包括权限获取指令; [0197] In one embodiment of the present application, as shown, said first audio signal in the embodiment 1 includes a rights acquisition instruction;

[0198] 相应的,上述步骤220包括: [0198] Accordingly, the above-described step 220 comprises:

[0199] 子步骤S221,对接收到的所述第一音频信号进行解调,获得权限获取指令; [0199] sub-step S221, the received first audio signal is demodulated to obtain rights acquisition instruction;

[0200] 在具体实现中,采用与第一设备一致的调制调解方式和指令协议。 [0200] In a specific implementation, the first device consistent with the mediation and instructions modulation protocols. 如图1实施例中使用的2FSK和简单文本协议。 2FSK and simple text protocol used in the FIG. 1 embodiment. 那么对于包括权限获取指令“getssid:+Equipmentinfo+ “\r\n” 的第一音频信号进行解调,获得“getssid:+Equipment info+ “\r\n”。 Then for fetching instructions including "getssid: + Equipmentinfo +" authority "of the first audio signal is demodulated to obtain" \ r \ n getssid: + Equipment info + "\ r \ n".

[0201] 子步骤S222,根据所述权限获取指令,获取目标设备的无线连接权限信息; [0201] Sub-step S222, the authority according to the acquisition instruction, the target device acquiring a wireless connection permission information;

[0202] 如前述权限获取指令“getssid:+Equipment info+ “\r\n”,根据简单文本协议识别该权限获取指令,则调用相应逻辑获取目标设备的无线连接权限。对应于“getssid:+Equipment info+ “\r\n”,则获取目标设备的ssid 和连接密码password。 [0202] The foregoing rights acquisition instruction "getssid: + Equipment info +" \ r \ n "., Identifying the rights acquisition instruction according to a simple text-based protocol, is called respective logical acquisition target device wireless connection right corresponding to" getssid: + Equipment info + "\ r \ n", ssid is acquired password and the password is connected target device.

[0203] 子步骤S223,生成包括所述无线连接权限信息的返回指令; [0203] Sub-step S223, the generating comprising the wireless connection permission information return command;

[0204] 如前述例子,在获取到目标设备的ssid和连接密码password,根据简单文本协议生成返回指令“ssid+password “\r\n”。 [0204] The foregoing examples, in the acquired target device connection password ssid and password, according to a simple protocol generator return instruction text "ssid + password" \ r \ n ".

[0205] 子步骤S224,将所述返回指令调制为第二音频信号。 [0205] Sub-step S224, the instruction to return the modulated second audio signal.

[0206] 如前述例子,将返回指令“ssid+password“\r\n”采用2FSK调制为第二音频信号。 [0206] The foregoing examples, the return instruction "ssid + password" \ r \ n "using 2FSK modulating the second audio signal.

[0207] 步骤230,将所述第二音频信号返回第一设备,以使第一设备根据所述第二音频信号中的无线连接权限信息,将所述第一设备与目标设备进行无线连接。 [0207] Step 230, the second audio signal back to the first device, to cause the first device to the second audio signal according to information of the wireless connection right, the first device a wireless connection with the target device.

[0208] 在目标设备或者中继设备生成第二音频信号之后,即可将第二音频信号由音频线返回第一设备的音频接口中。 [0208] After the target device or a relay device generates a second audio signal, the audio signal is returned to the second line by the audio interface of the first audio device.

[0209] 在本申请的一个实施例中,步骤230可以包括如下子步骤: [0209] In one embodiment of the present application, step 230 may include the following sub-steps:

[0210] 子步骤S231,通过麦克风引脚将所述第二音频信号返回第一设备。 [0210] sub-step S231, the microphone pin by the second audio signal back to the first device.

[0211] 在一种情况下,第一设备可通过麦克风引脚接收音频输入的,那么目标设备或者中继设备则将第二音频信号通过其麦克风引脚输出,然后由音频线的麦克风线传输到第一设备的麦克风引脚。 [0211] In one case, the first device may receive audio input via a microphone of the pin, then the target device or a relay device stores the second audio signal output pin through which the microphone and the transmission line by the microphone audio line a microphone device to the first pin.

[0212] 进而,第一设备则可通过子步骤S131,调用音频输入API,从音频接口的麦克风引脚中接收上述第二音频信号。 [0212] Further, the first device may be by sub-step S131, an audio input the API call, receives the second audio signal from the microphone in the audio interface pin.

[0213] 在本申请的一个实施例中,在步骤210之前还包括: [0213] In one embodiment of the present application, prior to step 210 further comprises:

[0214] 步骤202,检测是否接收到音频连接测试信号;所述音频连接测试信号用于指示第一设备的连接对象返回音频响应信号;若检测到所述音频连接测试信号,则进入步骤204 ;若未检测到所述音频连接测试信号,则不进入后续执行过程; [0214] Step 202, detecting whether the audio test signal; the audio test signal for connecting a first object indicating an audio device returns a response signal; if the detected audio test signal, the process proceeds to step 204; If no connection is detected to the audio test signal, it would not enter the subsequent process is performed;

[0215] 步骤204,返回针对所述音频连接测试信号的音频响应信号。 [0215] Step 204, return a response signal for the audio connection test audio signal.

[0216] 如前述步骤116中,第一设备发送的包括“ceshi “\r\n”的音频连接测试信号之后,本申请实施例则解调音频连接测试信号,获得音频响应信号指令“ceshi “ \r\n”,然后根据简单文本协议识别并执行该指令,生成音频响应信号指令“ok “\r\n”,再将“ok “\r\n”采用2FSK调制为音频响应信号,再将该音频响应信号通过音频线返回第一设备的音频接 [0216] In the preceding step 116, including "ceshi" \ r \ n first device transmits a "after the audio test signal, embodiments of the present application is demodulated audio test signal to obtain an audio signal in response to the instruction" ceshi " \ r \ n ", according to a simple text-based protocol and then identifies and executes the instructions to generate an audio signal in response to the instruction" ok "\ r \ n", then "ok" \ r \ n "using 2FSK modulated audio signal in response, and then the audio response signal back to the first device via the audio line audio interface

□ O □ O

[0217] 另外,在本申请实施例中,对于目标设备,还可自动定时修改无线连接权限信息。 [0217] Further, in the present application embodiment, the target device may also automatically modify the timing of wireless connection permission information. 比如修改无线连接权限信息中的连接密码。 For example, modify the connection password wireless connection permission information. 那么每次无线连接权限修改后,第一设备则自动断开与目标设备的无线连接。 Then the wireless connection right after each modification, the first wireless device is automatically disconnected from the target device is connected. 如此,加强了目标设备的无线连接的安全性。 So, to strengthen the security of the wireless connection of the target device.

[0218] 在实际应用中,可以在目标设备中设置动态口令(如One-time Password),动态更新目标设备的连接密码。 [0218] In practical applications, the dynamic password may be provided (e.g., One-time Password), the password dynamically update the connection target device in the target device.

[0219] 需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请实施例并不受所描述的动作顺序的限制,因为依据本申请实施例,某些步骤可以采用其他顺序或者同时进行。 [0219] Incidentally, the method embodiments, for ease of description, it is described as a series combination of actions, those skilled in the art will be aware that the present application is not subject to an operation sequence example of the described embodiment limiting, since the application according to the present embodiment, some steps may be performed simultaneously or in other sequences. 其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本申请实施例所必须的。 Secondly, those skilled in the art should also understand that the embodiments are described in the specification are exemplary embodiments, the operation is not necessarily related to the embodiment of the present application is necessary.

[0220] 参照图3,其示出了本申请的一种设备连接方法的步骤流程图。 [0220] Referring to Figure 3, which illustrates steps of a method of the present application, an apparatus is connected flowchart.

[0221] 为了更为直观的描述本申请实施例,在图1实施例与图2实施例的基础上,以图3示出第一设备与目标设备音频通信过程。 [0221] For a more intuitive description of the embodiment of the present application, based on the embodiment in FIG. 1 and FIG. 2 of the embodiment, in FIG. 3 shows a first device and a target device audio communication process. 其具体可以包括如下步骤: Which may include the following steps:

[0222] 步骤310,检测第一设备的音频接口是否被插入;若检测到第一设备的音频接口被插入,则进入步骤312 ;如果未检测到第一设备的音频接口被插入,则不进行后续执行过程。 [0222] Step 310, detecting whether the first device is inserted into the audio interface; if the detected first audio interface device is inserted, the process proceeds to step 312; if not detected, the first audio interface device is inserted, is not performed follow-up the implementation process.

[0223] 在实际应用中,第一设备可以调用相应操作系统的API去检测音频接口是否被插入。 [0223] In practical applications, the first device may call the appropriate operating system API to detect whether the audio interface is inserted. 如果第一设备的音频接口被音频线的插头插入,则进入步骤312。 If the first audio interface device is inserted into the plug of the audio cable, the process proceeds to step 312.

[0224] 步骤312,第一设备通过所述音频接口发送第一音频信号到目标设备;所述第一音频信号用于指示获取目标设备的无线连接权限信息; [0224] Step 312, the first device via the audio interface transmits a first audio signal to the destination device; the first wireless connection right audio signal acquiring information indicating a target device;

[0225] 第一设备在检测到音频接口被插入之后,则可以生成用于指示获取目标设备的无线连接权限信息的第一音频信号,然后将该第一音频信号通过音频接口发出。 [0225] a first device after detecting an audio interface is inserted, may be generated for instructing the target device acquiring information of a first wireless connection right audio signal, the first audio signal is then sent via the audio interface. 然后该第一音频信号可通过音频线传输到前述目标设备。 The first audio signal may then be transmitted to the target device through the audio line.

[0226] 在本申请的一种情况中,第一设备可以调用音频输出API,通过音频接口的左声道引脚和/或右声道引脚,将第一音频信号发送到上述目标设备。 [0226] In one aspect of the present application, the first audio output device may call the API, the left channel by pins and / or pin right channel audio interface, the audio signal to said first transmission destination device.

[0227] 步骤314,目标设备检测是否接收到第一音频信号;若目标设备检测到第一音频信号,则进入步骤316 ;若目标设备未检测到第一音频信号,则不进行后续执行过程; [0227] Step 314, detecting whether the target device receives the first audio signal; if the target device to the first audio signal is detected, the process proceeds to step 316; if the target device does not detect the first audio signal, performing a subsequent process is not performed;

[0228] 在本申请的一种情况中,当目标设备为路由器等需要额外预置处理音频信号的硬件模块时,可以自定义接收第一音频信号的音频输入API,根据该音频输入API接收第一音频信号。 When [0228] In one aspect of the present application, when the target device is a router or the like require additional hardware pre-processing an audio signal module, receiving audio input can customize the API of the first audio signal, receiving the first input according to the audio API an audio signal.

[0229] 在本申请的另一种情况中,当目标设备为手机、平板电脑等已存在通用的处理音频信号的硬件模块时,可以调用其系统中的音频输入API接收第一音频信号。 When [0229] In another aspect of the present application, when the target device is a phone, tablet, etc., have a common hardware module processing an audio signal is present, the audio input may invoke its API system receives a first audio signal. 特别对于第一设备通过其音频接口的左声道引脚和/或右声道引脚发送第一音频信号时,目标设备可以调用其系统的音频输入API相应在目标设备左声道引脚和/或右声道引脚接收第一音频信号。 Especially for the first device by the left channel pin and / or right channel audio signal a first pin which transmits audio interface, the target device may invoke its API system input audio left channel corresponding pin of the target device and / pin receives a first or right channel audio signal.

[0230] 步骤316,目标设备针对第一音频信号进行处理,获得第二音频信号;所述第二音频信号包括目标设备的无线连接权限信息; [0230] Step 316, the target device for processing a first audio signal to obtain a second audio signal; a second audio signal comprises a wireless connection permission information of a target device;

[0231 ] 在本申请实施例中,目标设备根据第一音频信号,获取目标设备本身中的无线连接权限信息,然后再根据无线连接权限信息生成第二音频信号; [0231] In the present application embodiment, the target device according to the first audio signal, the wireless connection obtaining authority information in the target device itself, and then generate a second audio signal in accordance with the wireless connection permission information;

[0232]目标设备在获得第一音频信号之后,即可对第一音频信号进行处理,根据第一音频信号中获取目标设备的无线连接权限信息的指示,获取目标设备的无线连接权限信息以生成第二音频信号,从而,上述第二音频信号包括了目标设备的无线连接权限信息。 [0232] target device after obtaining a first audio signal to the first audio signal is processed, according to the audio signal indicating that the first device obtains a target wireless connection permission information, the target device acquiring a wireless connection permission information to generate a second audio signal to the second audio signal comprises a wireless connection permission information of the target device.

[0233] 步骤318,目标设备将所述第二音频信号返回第一设备; [0233] Step 318, the target device, the second audio signal back to the first device;

[0234] 在本申请的一种情况中,当目标设备为路由器等需要额外预置处理音频信号的硬件模块时,可以自定义发送第二音频信号的音频输出API,根据该音频输出API送第二音频信号。 [0234] In one aspect of the present application, when the target device is preset routers require additional hardware module processing an audio signal, the audio may be output from the audio signal transmitting a second API is defined, according to the audio output of the send API two audio signals.

[0235] 在本申请的另一种情况中,当目标设备为手机、平板电脑等已存在通用的处理音频信号的硬件模块时,可以调用其系统中的音频输出API送第二音频信号。 When [0235] In another aspect of the present application, when the target device is a phone, tablet, etc., have a common hardware module processing an audio signal is present, the audio output may invoke its API system transmitting a second audio signal. 目标设备可以通过其麦克风引脚输出第二音频信号,然后第二音频信号通过音频线传输到第一设备的音频接口的麦克风引脚。 A microphone through which the target device may be a second audio signal output pin and a second pin microphone audio signal to audio interface of the first device through the audio line.

[0236] 步骤320,通过第一设备的音频接口接收第二音频信号; [0236] Step 320, the second audio signal received by the audio interface of the first device;

[0237] 第一设备则通过音频接口,接收包括了目标设备的无线连接权限信息的第二音频信号。 [0237] The first device through the audio interface, the target device receiving a second audio signal radio connection right information.

[0238] 在本申请的一种情况中,第一设备可调用音频输入API,从音频接口的麦克风引脚中接收所述第二音频信号。 [0238] In one aspect of the present application, the first audio input device may invoke the API, receiving a second audio signal from the microphone in the audio interface pin.

[0239] 步骤322,第一设备根据所述第二音频信号中的无线连接权限信息,将所述第一设备与目标设备进行无线连接。 [0239] Step 322, the first wireless connection device in accordance with the authority information of the second audio signal, the first device a wireless connection with the target device.

[0240] 第一设备可从第二音频信号中提取无线连接权限信息,然后在根据该无线连接权限信息,将苏颂第一设备与目标设备进行无线连接。 [0240] The first device may extract the information from the second wireless connection right audio signal, then the radio connection according to the authority information, the first device Su Song wireless connection with the target device.

[0241 ] 在具体应用中,第一设备可以调用其操作系统中的无线连接API,根据所述无线连接权限信息将第一设备与目标设备进行无线连接。 [0241] In a particular application, the first device may be a wireless connection API call its operating system, the first wireless device and a target device connected to the wireless connection according to the authority information.

[0242] 图3所示实施例各步骤执行原理与图1和图2所描述的相应步骤的原理类似,其对各种音频信号的处理、传输等过程原理类似,在此不再赘叙。 [0242] FIG. 3 shows the principle steps in each embodiment of FIGS. 1 and corresponding steps of the principle similar to that described in FIG. 2, which is similar to the process of the principles of various audio signal processing, transmission, etc., which will not dwell on.

[0243] 参照图4,其示出了本申请的一种设备连接方法的步骤流程图。 [0243] Referring to Figure 4, which shows the step of connecting the method of the present application is a flowchart of an apparatus.

[0244] 为了更为直观的描述本申请实施例,在图1实施例与图2实施例的基础上,以图4示出第一设备、中继设备与目标设备音频通信过程。 [0244] For a more intuitive description of the embodiment of the present application, based on the embodiment in FIG. 1 and FIG. 2 of the embodiment, in FIG. 4 shows a first device, the relay device processes audio communication with the target device. 其具体可以包括如下步骤: Which may include the following steps:

[0245] 步骤410,检测第一设备的音频接口是否被插入;若检测到第一设备的音频接口被插入,则进入步骤412 ;如果未检测到第一设备的音频接口被插入,则不进行后续执行过程。 [0245] Step 410, detecting whether the first device is inserted into the audio interface; if the detected first audio interface device is inserted, the process proceeds to step 412; if not detected, the first audio interface device is inserted, is not performed follow-up the implementation process.

[0246] 在实际应用中,第一设备可以调用相应操作系统的API去检测音频接口是否被插入。 [0246] In practical applications, the first device may call the appropriate operating system API to detect whether the audio interface is inserted. 如果第一设备的音频接口被音频线的插头插入,则进入步骤412。 If the first audio interface device is inserted into the plug of the audio cable, the process proceeds to step 412.

[0247] 步骤412,第一设备通过所述音频接口发送第一音频信号到中继设备;所述第一音频信号用于指示获取目标设备的无线连接权限信息; [0247] Step 412, the first device via the audio interface transmits a first audio signal to the relay device; the first audio signal for instructing the target device acquiring a wireless connection permission information;

[0248] 第一设备在检测到音频接口被插入之后,则可以生成用于指示获取目标设备的无线连接权限信息的第一音频信号,然后将该第一音频信号通过音频接口发出。 [0248] a first device after detecting an audio interface is inserted, may be generated for instructing the target device acquiring information of a first wireless connection right audio signal, the first audio signal is then sent via the audio interface. 然后该第一音频信号可通过音频线传输到前述目标设备。 The first audio signal may then be transmitted to the target device through the audio line.

[0249] 在本申请的一种情况中,第一设备可以调用音频输出API,通过音频接口的左声道引脚和/或右声道引脚,将第一音频信号发送到上述目标设备。 [0249] In one aspect of the present application, the first audio output device may call the API, the left channel by pins and / or pin right channel audio interface, the audio signal to said first transmission destination device.

[0250] 步骤414,中继设备检测是否接收到第一音频信号;若中继设备检测到第一音频信号,则进入步骤416 ;若中继设备未检测到第一音频信号,则不进行后续执行过程; [0250] Step 414, detecting whether the relay device receives the first audio signal; if the relay device to the first audio signal is detected, the process proceeds to step 416; if the relay apparatus does not detect the first audio signal, no subsequent Implementation process;

[0251] 在本申请的一种情况中,在中继设备中预置处理音频信号的硬件模块时,在该中继设备中自定义接收第一音频信号的音频输入API,根据该音频输入API接收第一音频信号。 [0251] In one aspect of the present application, the preset audio signal processing hardware module in the relay apparatus, the relay apparatus in a custom API receiving audio input of the first audio signal, according to the audio input API receiving a first audio signal.

[0252] 步骤416,中继设备针对第一音频信号进行处理,获得第二音频信号;所述第二音频信号包括目标设备的无线连接权限信息; [0252] Step 416, a relay device for processing a first audio signal to obtain a second audio signal; a second audio signal comprises a wireless connection permission information of a target device;

[0253] 在本申请实施例中,中继设备根据第一音频信号,获取目标设备本身中的无线连接权限信息,然后再根据无线连接权限信息生成第二音频信号; [0253] In the present application embodiment, the relay apparatus according to the first audio signal, the wireless connection obtaining authority information in the target device itself, and then generate a second audio signal in accordance with the wireless connection permission information;

[0254] 中继设备在获得第一音频信号之后,即可对第一音频信号进行处理,根据第一音频信号中获取目标设备的无线连接权限信息的指示,获取目标设备的无线连接权限信息以生成第二音频信号,从而,上述第二音频信号包括了目标设备的无线连接权限信息。 [0254] After obtaining the first relay device audio signal to the first audio signal is processed, according to the audio signal acquired in the first target device indicates that the wireless connection right information, the wireless device acquires the target information in connection right generating a second audio signal to the second audio signal comprises a wireless connection right target device information.

[0255] 在实际应用中,用户可以将目标设备的无线连接权限信息写入中继设备中。 [0255] In practical applications, a user may be a wireless connection permission information is written in the target device in the relay device. 当然,也可以由中继设备实时从目标设备中获取无线连接权限信息。 Of course, it can also be acquired in real time wireless connection permission information from the target device by the relay device. 具体获取目标设备的无线连接权限信息的方式,本申请不对其加以限制。 Specific acquisition target device's wireless connection permission information, the present application is not to limit it.

[0256] 步骤418,中继设备将所述第二音频信号返回第一设备; [0256] Step 418, the relay device, the second audio signal back to the first device;

[0257] 在本申请的一种情况中,在中继设备中预置处理音频信号的硬件模块时,可以自定义发送第二音频信号的音频输出API,根据该音频输出API送第二音频信号。 When [0257] In one aspect of the present application, the pre-processing hardware module of the audio signal in the relay apparatus, the audio output can be customized API transmitted second audio signal, transmitting a second audio signal according to the audio output API .

[0258] 步骤420,通过第一设备的音频接口接收第二音频信号; [0258] Step 420, the second audio signal received by the audio interface of the first device;

[0259] 第一设备则通过音频接口,接收包括了目标设备的无线连接权限信息的第二音频信号。 [0259] The first device through the audio interface, the target device receiving a second audio signal radio connection right information.

[0260] 在本申请的一种情况中,第一设备可调用音频输入API,从音频接口的麦克风引脚中接收所述第二音频信号。 [0260] In one aspect of the present application, the first audio input device may invoke the API, receiving a second audio signal from the microphone in the audio interface pin.

[0261] 步骤422,第一设备根据所述第二音频信号中的无线连接权限信息,将所述第一设备与目标设备进行无线连接。 [0261] Step 422, the first wireless connection device in accordance with the authority information of the second audio signal, the first device a wireless connection with the target device.

[0262] 第一设备可从第二音频信号中提取无线连接权限信息,然后在根据该无线连接权限信息,将苏颂第一设备与目标设备进行无线连接。 [0262] The first device may extract the information from the second wireless connection right audio signal, then the radio connection according to the authority information, the first device Su Song wireless connection with the target device.

[0263] 图4所示实施例各步骤执行原理与图1和图2所描述的相应步骤的原理类似,其对各种音频信号的处理、传输等过程原理类似,在此不再赘叙。 [0263] Each embodiment shown in FIG. 4 Step principle similar to Figure 1 and the corresponding steps described principle of FIG. 2, the process which is similar to the principles of various audio signal processing, transmission, etc., which will not dwell on.

[0264] 参照图5,其示出了本申请的一种设备连接装置的结构框图,具体可以包括如下模块: [0264] Referring to Figure 5 a block diagram which shows an application of the present apparatus connecting device, may include the following modules:

[0265] 音频接口插入检测模块510,用于检测第一设备的音频接口是否被插入; [0265] The audio connector into the detection module 510 for detecting whether the first audio interface device is inserted;

[0266] 第一音频信号发送模块520,用于在检测到第一设备的音频接口被插入时,则通过所述音频接口发送第一音频信号;所述第一音频信号用于指示获取目标设备的无线连接权限信息; [0266] The first audio signal transmitting module 520, upon detecting a first audio interface device is inserted, the first audio signal is transmitted via the audio interface; the first audio signal for instructing the target device acquiring the wireless connection permission information;

[0267] 第二音频信号接收模块530,用于通过所述音频接口接收第二音频信号;所述第二音频信号包括目标设备的无线连接权限信息; [0267] The second audio signal receiving module 530, configured to receive a second audio signal through the audio interface; the second audio signal comprises a wireless connection permission information of a target device;

[0268] 无线连接模块540,用于根据所述第二音频信号中的无线连接权限信息,将所述第一设备与目标设备进行无线连接。 [0268] the wireless connection module 540, the wireless connection according to the authority information of the second audio signal, the first device a wireless connection with the target device.

[0269] 本申请实施例上述一种设备连接装置应用于第一设备中。 [0269] The present application is applied to a first device in an apparatus connected to the above-described embodiment apparatus embodiment.

[0270] 在本申请实施例的一种优选示例中,所述第一音频信号发送模块520包括: [0270] In a preferred exemplary embodiment of the present application, the first audio signal transmitting module 520 includes:

[0271] 权限获取指令生成模块,用于生成权限获取指令;所述权限获取指令用于获取目标设备的无线连接权限信息; [0271] authority acquisition command generating module for generating a rights acquisition instruction; the wireless connection permission obtaining instruction for obtaining authority information of a target device;

[0272] 权限获取指令调制模块,用于将所述权限获取指令调制为第一音频信号; [0272] modulation module rights acquisition instruction, an instruction for acquiring a first audio signal modulating said authority;

[0273] 第一发送模块,用于将所述第一音频信号由音频接口发出。 [0273] a first transmitting module, configured to emit the first audio signal from the audio interface.

[0274] 在本申请实施例的一种优选示例中,所述第一发送模块包括: [0274] In a preferred exemplary embodiment of the present application, the first sending module comprises:

[0275] 声道引脚发送模块,用于调用音频输出API,通过音频接口的左声道引脚和/或右声道引脚,将所述第一音频信号发出。 [0275] pin-channel transmission module for calling the API audio output, through the audio interface pins and a left channel / right channel or pins, the first audio signal sent.

[0276] 在本申请实施例的一种优选示例中,所述第二音频信号接收模块530包括: [0276] In a preferred exemplary embodiment of the present application, the second audio signal receiving module 530 includes:

[0277] 麦克风引脚接收模块,用于调用音频输入API,从音频接口的麦克风引脚中接收所述第二音频信号。 [0277] microphone pin receiving module, an audio input for the API call, receives a second audio signal from the microphone in the audio interface pin.

[0278] 在本申请实施例的一种优选示例中,所述无线连接模块540包括: [0278] In a preferred exemplary embodiment of the present application, the wireless connection module 540 comprises:

[0279] 第二音频信号解调模块,用于所述第一设备通过音频接口接收到所述第二音频信号之后,解调所述第二音频信号; After [0279] the second audio signal demodulating means for receiving the first device to the second audio signal via the audio interface, demodulating the second audio signal;

[0280] 权限提取模块,用于从解调后的结果中,提取目标设备的无线连接权限信息; [0280] right extraction module for wireless connection permission information from the demodulated result, extracts the target device;

[0281] 第一无线连接模块,用于基于所述无线连接权限信息,将所述第一设备与目标设备进行无线连接。 [0281] first wireless connection module for wireless connection information based on the permission, the first device a wireless connection with the target device.

[0282] 在本申请实施例的一种优选示例中,所述第一无线连接模块包括: [0282] In a preferred exemplary embodiment of the present application, the first wireless connection module comprising:

[0283] 连接执行模块,用于调用无线连接API,根据所述无线连接权限信息将第一设备与目标设备进行无线连接。 [0283] connection execution module, the API for calling a wireless connection, the first wireless device and a target device connected to the wireless connection according to the authority information.

[0284] 在本申请实施例的一种优选示例中,还包括: [0284] In a preferred exemplary embodiment of the present application, further comprising:

[0285] 连接测试发送模块,用于在通过所述音频接口获取目标设备的无线连接权限信息之前,通过音频接口发送音频连接测试信号;所述音频连接测试信号用于指示第一设备的连接对象返回音频响应信号; [0285] Connection Test sending module, configured to interface to obtain the target prior to the audio device via the wireless connection permission information, the audio test signal transmitted via the audio interface; the audio test signal for connecting a first object indicating device Back audio response signal;

[0286] 连接音频响应信号检测模块,用于检测音频接口是否接收到针对所述音频连接测试信号的音频响应信号;如果检测到针对所述音频连接测试信号的音频响应信号,则进入通过所述音频接口发送第一音频信号的步骤。 [0286] connected to an audio response signal detection means for detecting whether an audio interface for receiving an audio response to the audio signal of the test signal; if the detected signal in response to the audio for the audio test signal is connected, the process proceeds through the a first step of transmitting an audio interface audio signal.

[0287] 在本申请实施例的一种优选示例中,所述无线连接权限信息包括目标设备的设备标识和连接密码。 [0287] In a preferred exemplary embodiment of the present application, the wireless device identification information comprises a connection right target device and the connection password.

[0288] 参照图6,其示出了本申请的一种设备接入装置的结构框图,具体可以包括如下模块: [0288] Referring to Figure 6, which shows a block diagram of the present disclosure an apparatus access device, may include the following modules:

[0289] 第一音频信号接收模块610,用于检测是否接收到第一音频信号;所述第一音频信号用于指示获取目标设备的无线连接权限信息; [0289] The first audio signal receiving module 610, configured to detect whether the received first audio signal; the first audio signal to obtain wireless connection permission information indicating a target device;

[0290] 第一音频信号处理模块620,用于若检测到第一音频信号,则针对第一音频信号进行处理,获得第二音频信号;所述第二音频信号包括目标设备的无线连接权限信息; [0290] The first audio signal processing module 620, if it is detected for the first audio signal, the audio signal is processed for a first, a second audio signal is obtained; the second audio signal comprises a wireless connection permission information of the target device ;

[0291] 第二音频信号返回模块630,用于将所述第二音频信号返回第一设备,以使第一设备根据所述第二音频信号中的无线连接权限信息,将所述第一设备与目标设备进行无线连接。 [0291] The second audio signal return module 630, for the second audio signal back to the first device, so that the first device information based on the second audio signal wireless connection right, the first device a wireless connection with the target device.

[0292] 在本申请实施例的一种优选示例中,所述第一音频信号中包括权限获取指令; [0292] In a preferred exemplary embodiment of the present application, the first audio signal comprises a right obtaining instruction;

[0293] 进一步的,所述第一音频信号处理模块620包括: [0293] Further, the first audio signal processing module 620 comprises:

[0294] 第一音频信号解调模块,用于对接收到的所述第一音频信号进行解调,获得权限获取指令; [0294] The first audio signal demodulation module, for the first received audio signal is demodulated to obtain rights acquisition instruction;

[0295] 权限获取模块,用于根据所述权限获取指令,获取目标设备的无线连接权限信息; [0295] right obtaining means for obtaining authority information according to the instruction, obtains a target wireless device connection right;

[0296] 返回指令生成模块,用于生成包括所述无线连接权限信息的返回指令; [0296] Back command generation module for generating information including the wireless connection right return command;

[0297] 第一返回模块,用于将所述返回指令调制为第二音频信号。 [0297] a first return means for the return instruction of the second modulated audio signal.

[0298] 在本申请实施例的一种优选示例中,所述第一音频信号由第一设备的音频接口的左声道引脚和/或右声道引脚发出; [0298] In a preferred exemplary embodiment of the present application, the first left channel audio signal emitted by the pin and / or the right channel audio interface of the first device pin;

[0299] 进一步的,所述第一音频信号接收模块610包括: [0299] Further, the first audio signal receiving module 610 includes:

[0300]引脚检测模块,适于在左声道引脚和/或右声道引脚检测是否接收到第一音频信号。 [0300] detection module pin, the pin adapted left channel and / or right channel pin detecting whether the first audio signal.

[0301] 在本申请实施例的一种优选示例中,所述第二音频信号返回模块630包括: [0301] In a preferred exemplary embodiment of the present application, the audio signal is returned to the second module 630 comprises:

[0302] 麦克风引脚返回模块,用于通过麦克风引脚将所述第二音频信号返回第一设备。 [0302] Returns the microphone module pins, the pins used by the second microphone audio signal back to the first device.

[0303] 在本申请实施例的一种优选示例中,还包括: [0303] In a preferred exemplary embodiment of the present application, further comprising:

[0304] 连接测试检测模块,用于在检测是否接收到第一音频信号之前,检测是否接收到音频连接测试信号;所述音频连接测试信号用于指示第一设备的连接对象返回音频响应信号; [0304] connection test detection means for detecting whether before receiving the first audio signal, detecting whether the audio test signal; the audio test signal for connecting a first object indicating an audio device returns a response signal;

[0305] 音频响应信号返回模块,用于若检测到所述音频连接测试信号,则返回针对所述音频连接测试信号的音频响应信号。 [0305] The audio module returns a response signal, for detecting if the test connection to the audio signal, the audio signal for the audio connection in response to the test signal is returned.

[0306] 在本申请实施例的一种优选示例中,所述无线连接权限信息包括目标设备的设备标识和连接密码。 [0306] In a preferred exemplary embodiment of the present application, the wireless device identification information comprises a connection right target device and the connection password.

[0307] 本申请实施例上述一种设备连接装置应用于上述目标设备或者中继设备中。 [0307] This application is a device that connects the above-described embodiment is applied to the above-described device or the relay device of the target device.

[0308] 参照图7,其示出了本申请的一种设备接入系统的结构框图,具体可以包括如下模块: [0308] Referring to FIG 7, there is shown a block diagram of an apparatus according to the present application access system may include the following modules:

[0309] 第一设备710和目标设备720 ; [0309] First device 710 and target device 720;

[0310] 所述第一设备710包括: [0310] The first apparatus 710 comprising:

[0311] 音频接口插入检测模块711,用于检测第一设备的音频接口是否被插入; [0311] Audio Interface insertion detecting module 711 for detecting whether the first audio interface device is inserted;

[0312] 第一音频信号发送模块712,用于在检测到第一设备的音频接口被插入时,则通过所述音频接口发送第一音频信号;所述第一音频信号用于指示获取目标设备的无线连接权限信息; [0312] The first audio signal transmitting module 712, upon detecting a first audio interface device is inserted, the first audio signal is transmitted via the audio interface; the first audio signal for instructing the target device acquiring the wireless connection permission information;

[0313] 第二音频信号接收模块713,用于通过所述音频接口接收第二音频信号; [0313] The second audio signal receiving module 713, configured to receive a second audio signal through the audio interface;

[0314] 无线连接模块714,用于根据所述第二音频信号中的无线连接权限信息,将所述第一设备与目标设备进行无线连接; [0314] the wireless connection module 714, the wireless connection according to the authority information of the second audio signal, the first device a wireless connection with the target device;

[0315] 所述目标设备720包括: [0315] The target device 720 comprising:

[0316] 第一音频信号接收模块721,用于检测是否接收到第一音频信号; [0316] The first audio signal receiving module 721, configured to detect whether the received first audio signal;

[0317] 第一音频信号处理模块722,用于若检测到第一音频信号,则针对第一音频信号进行处理,获得第二音频信号;所述第二音频信号包括目标设备的无线连接权限信息; [0317] The first audio signal processing module 722, if it is detected for the first audio signal, the audio signal is processed for a first, a second audio signal is obtained; the second audio signal comprises a wireless connection to a target permission information ;

[0318] 第二音频信号返回模块723,用于将所述第二音频信号返回第一设备。 [0318] a second audio signal back module 723, for the second audio signal back to the first device.

[0319] 参照图8,其示出了本申请的一种设备接入系统的结构框图,具体可以包括如下模块: [0319] Referring to FIG. 8, which shows a block diagram of an apparatus according to the present application access system may include the following modules:

[0320] 第一设备810、中继设备820和目标设备830 ; [0320] First device 810, the relay device 820 and target device 830;

[0321] 所述第一设备810包括: [0321] The first device 810 comprises:

[0322] 音频接口插入检测模块811,用于检测第一设备的音频接口是否被插入; [0322] Audio Interface insertion detecting module 811 for detecting whether the first audio interface device is inserted;

[0323] 第一音频信号发送模块812,用于在检测到第一设备的音频接口被插入时,则通过所述音频接口发送第一音频信号;所述第一音频信号用于指示获取目标设备的无线连接权限信息; [0323] The first audio signal transmitting module 812, upon detecting a first audio interface device is inserted, the first audio signal is transmitted via the audio interface; the first audio signal for instructing the target device acquiring the wireless connection permission information;

[0324] 第二音频信号接收模块813,用于通过所述音频接口接收第二音频信号; [0324] The second audio signal receiving module 813, configured to receive a second audio signal through the audio interface;

[0325] 无线连接模块814,用于根据所述第二音频信号中的无线连接权限信息,将所述第一设备与目标设备进行无线连接; [0325] wireless connection module 814, the wireless connection according to the authority information of the second audio signal, the first device a wireless connection with the target device;

[0326] 所述中继设备包820括: [0326] The packet relay apparatus 820 comprising:

[0327] 第一音频信号接收模块821,用于检测是否接收到第一音频信号; [0327] The first audio signal receiving module 821, configured to detect whether the received first audio signal;

[0328] 第一音频信号处理模块822,用于若检测到第一音频信号,则针对第一音频信号进行处理,获得第二音频信号;所述第二音频信号包括目标设备的无线连接权限信息; [0328] The first audio signal processing module 822, if it is detected for the first audio signal, the audio signal is processed for a first, a second audio signal is obtained; the second audio signal comprises a wireless connection permission information of the target device ;

[0329] 第二音频信号返回模块823,用于将所述第二音频信号返回第一设备。 [0329] a second audio signal back module 823, for the second audio signal back to the first device.

[0330] 对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。 [0330] For the apparatus of the embodiment, since the method of the embodiment which is substantially similar, the description of a relatively simple, some embodiments of the methods see relevant point can be described.

[0331] 本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。 [0331] In the present specification, various embodiments are described in a progressive way, differences from the embodiment and the other embodiments each of which emphasizes embodiment, the same portions similar between the various embodiments refer to each other.

[0332] 本领域内的技术人员应明白,本申请实施例的实施例可提供为方法、装置、或计算机程序产品。 [0332] skill in the art should understand that the embodiment of the present embodiment may be provided as the application method, apparatus or computer program product. 因此,本申请实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。 Thus, embodiments may employ an entirely hardware embodiment of the present application embodiment, an entirely software embodiment, or an embodiment in conjunction with the form of software and hardware aspects. 而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。 Further, a computer program product according to embodiments may employ one or more of which comprises a computer usable storage medium having computer-usable program code (including but not limited to, disk storage, CD-ROM, optical memory, etc.) on the application of the present embodiment.

[0333] 在一个典型的配置中,所述计算机设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。 [0333] In a typical configuration, the computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory. 内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。 Memory may include a computer-readable medium volatile memory, a random access memory (RAM) and / or other forms of nonvolatile memory, such as read only memory (ROM) or flash memory (flash RAM). 内存是计算机可读介质的示例。 Are examples of computer-readable memory medium. 计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信号存储。 The computer-readable media include permanent and non-permanent, removable and non-removable media may be accomplished by any method or technology for signal storage. 信号可以是计算机可读指令、数据结构、程序的模块或其他数据。 Signal may be computer readable instructions, data modules, or other data structures, program. 计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(R0M)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信号。 Examples of computer-storage media include, but are not limited to, phase change memory (the PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (R0M), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, CD-ROM read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, or magnetic disk storage or other magnetic storage devices, any other non-transmission medium, may be used to access the storage device signal may be calculated. 按照本文中的界定,计算机可读介质不包括非持续性的电脑可读媒体(transitory media),如调制的数据信号和载波。 As defined herein, computer-readable media does not include non-persistent computer-readable medium (transitory media), such as a data signal and carrier modulation.

[0334] 本申请实施例是参照根据本申请实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。 Example [0334] This application is a reference to the method according to an embodiment of the present application, the terminal apparatus (systems), and the flowchart and / or block diagrams of a computer program product described herein. 应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。 It should be understood and implemented by computer program instructions and block, and the flowchart / or block diagrams each process and / or flowchart illustrations and / or block diagrams of processes and / or blocks. 可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。 These computer program instructions may be provided to a processor a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal apparatus to produce a machine, such that the instructions executed by a computer or other programmable data processing terminal processor generating a flow diagram for implementing a process or apparatus or more processes and / or block diagram of a plurality of blocks in the block functions.

[0335] 这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。 [0335] These computer program instructions may also be stored in a can direct a computer or other programmable data processing apparatus to function in a particular terminal computer readable memory, such that the instructions stored in the computer readable memory comprising instruction generating means for producing products, the instruction means implemented in a flowchart or more flows and / or block diagram block or blocks in a specified function.

[0336] 这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。 [0336] These computer program instructions may also be loaded onto a computer or other programmable data processing terminal, so that a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer terminal implemented so that a computer or other instructions that execute on the device provide steps for implementing the programming terminal in a flowchart or more flows and / or block diagram block or blocks a function specified step.

[0337] 尽管已描述了本申请实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。 [0337] While the present application has been described with preferred embodiments of the embodiment, but those skilled in the art from the underlying inventive concept can make further modifications and variations to these embodiments. 所以,所附权利要求意欲解释为包括优选实施例以及落入本申请实施例范围的所有变更和修改。 Therefore, the appended claims are intended to explain embodiments including the preferred embodiment and as fall within the scope of the embodiments of the present application all changes and modifications.

[0338] 最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。 [0338] Finally, it should be noted that, herein, relational terms such as first and second and the like are only used to distinguish one entity or operation from another entity or action without necessarily requiring or implying any such actual relationship or order between these entities or operations. 而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。 Further, the term "comprising", "containing" or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, article, or terminal device not include only those elements but not explicitly listed further comprising the other elements, or elements of the process further comprising, method, article, or inherent to the terminal device. 在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。 Without more constraints, by the wording "include a ......" defined does not exclude the existence of additional identical elements in the element comprising a process, method, article, or terminal device.

[0339] 以上对本申请所提供的一种设备连接方法、一种设备接入方法、一种设备连接装置、一种设备接入装置和一种设备连接系统,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。 [0339] A device is connected to the above method provided in the present application, an access method for an apparatus, an apparatus connecting device, a device connected to an access device and a device system, described in detail, application of the article specific examples of the principles and embodiments of the present application are set forth in the above described embodiments are merely for understanding embodiments of the present disclosure a method and core ideas; Meanwhile, those of ordinary skill in the art based on the idea of ​​the present application, the specific embodiments and application scope of the change, Therefore, the specification shall not be construed as limiting the present disclosure.

Claims (30)

  1. 1.一种设备连接方法,其特征在于,包括: 检测第一设备的音频接口是否被插入; 若检测到第一设备的音频接口被插入,则通过所述音频接口发送第一音频信号;所述第一音频信号用于指示获取目标设备的无线连接权限信息; 通过所述音频接口接收第二音频信号;所述第二音频信号包括目标设备的无线连接权限信息; 根据所述第二音频信号中的无线连接权限信息,将所述第一设备与目标设备进行无线连接。 A device connection method, comprising: detecting whether the first device is inserted into the audio interface; if the first detecting device is inserted into the audio interface, the audio interface audio signal through a first transmission; the said first audio signal for instructing the target device acquiring a wireless connection permission information; receiving a second audio signal through the audio interface; the second audio signal comprises a wireless connection target device authority information; according to the second audio signal the wireless connection permission information, the first device a wireless connection with the target device.
  2. 2.根据权利要求1所述的方法,其特征在于,所述通过所述音频接口发送第一音频信号的步骤,包括: 生成权限获取指令;所述权限获取指令用于获取目标设备的无线连接权限信息; 将所述权限获取指令调制为第一音频信号; 将所述第一音频信号由音频接口发出。 2. The method according to claim 1, wherein the step of transmitting the audio interface by said first audio signal, comprising: generating authority acquisition command; the authority-acquisition instruction for acquiring the target wireless connection device authority information; the rights acquisition instruction is a first modulated audio signal; the first audio signal sent from the audio interface.
  3. 3.根据权利要求2所述的方法,其特征在于,将所述第一音频信号由音频接口发出的步骤,包括: 调用音频输出API,通过音频接口的左声道引脚和/或右声道引脚,将所述第一音频信号发出。 3. The method according to claim 2, wherein the step of the first audio signal emitted by the audio interface, comprising: an audio output to call the API, the left channel via the audio interface pins and / or right audio pin Road, the first audio signal sent.
  4. 4.根据权利要求1所述的方法,其特征在于,通过所述音频接口接收第二音频信号的步骤,包括: 调用音频输入API,从音频接口的麦克风引脚中接收所述第二音频信号。 4. The method according to claim 1, wherein the step of receiving the second audio signal via the audio interface, comprising: an audio input the API call, receives a pin from the microphone audio interface second audio signal .
  5. 5.根据权利要求1所述的方法,其特征在于,所述根据所述第二音频信号中的无线连接权限信息,将所述第一设备与目标设备进行无线连接的步骤,包括: 所述第一设备通过音频接口接收到所述第二音频信号之后,解调所述第二音频信号; 从解调后的结果中,提取目标设备的无线连接权限信息; 基于所述无线连接权限信息,将所述第一设备与目标设备进行无线连接。 5. The method according to claim 1, characterized in that the wireless connection according to the authority information of the second audio signal, the first target device and the wireless connection device, comprising: after the first device to the second audio signal received via the audio interface, the second audio signal demodulation; results from the demodulated extracts the wireless connection permission information of the target device; permission information based on the wireless connection, the first device a wireless connection with the target device.
  6. 6.根据权利要求5所述的方法,其特征在于,所述基于所述无线连接权限信息,将所述第一设备与目标设备进行无线连接的步骤,包括: 调用无线连接API,根据所述无线连接权限信息将第一设备与目标设备进行无线连接。 6. The method according to claim 5, wherein the wireless connection based on the authority information, the first device and the target device of the wireless connection, comprising: a wireless connection calling the API, according to the a first wireless connection permission information device wirelessly connected with the target device.
  7. 7.根据权利要求1所述的方法,其特征在于,在通过所述音频接口获取目标设备的无线连接权限信息的步骤之前,还包括: 通过音频接口发送音频连接测试信号;所述音频连接测试信号用于指示第一设备的连接对象返回音频响应信号; 检测音频接口是否接收到针对所述音频连接测试信号的音频响应信号; 如果检测到针对所述音频连接测试信号的音频响应信号,则进入通过所述音频接口发送第一音频信号的步骤。 7. The method according to claim 1, wherein, before the step of acquiring the target device through the wireless audio interface connection right information, further comprising: transmitting the audio via the audio interface connected to a test signal; the audio connection test a signal for instructing a first device connected to the audio object returns a response signal; detecting whether an audio interface for receiving an audio response to the audio signal of the test signal; if the detected signal in response to the audio for the audio test signal is connected, the process proceeds a first step of transmitting an audio signal via the audio interface.
  8. 8.根据权利要求1-7其中之一所述的方法,其特征在于,所述无线连接权限信息包括目标设备的设备标识和连接密码。 8. The method according to one of the preceding claims, characterized in that the wireless connection permission information comprises a device identifier and a target device connection password.
  9. 9.一种设备接入方法,其特征在于,包括: 检测是否接收到第一音频信号;所述第一音频信号用于指示获取目标设备的无线连接权限信息; 若检测到第一音频信号,则针对第一音频信号进行处理,获得第二音频信号;所述第二音频信号包括目标设备的无线连接权限信息; 将所述第二音频信号返回第一设备,以使第一设备根据所述第二音频信号中的无线连接权限信息,将所述第一设备与目标设备进行无线连接。 A device access method, characterized by comprising: detecting whether a first audio signal; the first audio signal for instructing the target device acquiring a wireless connection permission information; if the first audio signal is detected, the processing performed for the first audio signal to obtain a second audio signal; a second audio signal comprises a wireless connection permission information of a target device; and the second audio signal back to the first device, to cause the apparatus according to the first wireless connection permission information of the second audio signal, the first device a wireless connection with the target device.
  10. 10.根据权利要求9所述的方法,其特征在于,所述第一音频信号中包括权限获取指令; 进一步的,所述若检测到第一音频信号,则针对第一音频信号进行处理,获得第二音频信号的步骤,包括: 对接收到的所述第一音频信号进行解调,获得权限获取指令; 根据所述权限获取指令,获取目标设备的无线连接权限信息; 生成包括所述无线连接权限信息的返回指令; 将所述返回指令调制为第二音频信号。 10. The method according to claim 9, wherein said first audio signal comprises a right obtaining instruction; further, if the detected first audio signal, the audio signal is processed for a first obtain the step of the second audio signal, comprising: the first audio signal received is demodulated to obtain rights acquisition instruction; information according to the rights acquisition instruction, obtains a target wireless device connection right; includes generating the wireless connection return instruction authority information; the return instruction of the second modulated audio signal.
  11. 11.根据权利要求9所述的方法,其特征在于,所述第一音频信号由第一设备的音频接口的左声道引脚和/或右声道引脚发出; 进一步的,所述检测是否接收到第一音频信号的步骤,包括: 在左声道引脚和/或右声道引脚检测是否接收到第一音频信号。 11. The method according to claim 9, wherein the first audio signal emitted by the pin and the left channel / right channel or a first pin audio interface device; further, the detection whether a step of first audio signal, comprising: a pin and a left channel / right channel or pin detecting whether the first audio signal.
  12. 12.根据权利要求9所述的方法,其特征在于,所述将所述第二音频信号返回第一设备的步骤,包括: 通过麦克风引脚将所述第二音频信号返回第一设备。 12. The method according to claim 9, characterized in that the audio signal is returned to the second step of the first device, comprising: a microphone pin by the second audio signal back to the first device.
  13. 13.根据权利要求9所述的方法,其特征在于,在检测是否接收到第一音频信号的步骤之前,还包括: 检测是否接收到音频连接测试信号;所述音频连接测试信号用于指示第一设备的连接对象返回音频响应信号; 若检测到所述音频连接测试信号,则返回针对所述音频连接测试信号的音频响应信号。 13. The method according to claim 9, wherein, before the step of detecting whether a first audio signal, further comprising: detecting whether the audio test signal; the audio test signal for instructing section a connection destination device in response to an audio return signal; detecting if the test signal to the audio connection, audio connection response signal to the audio test signal is returned.
  14. 14.根据权利要求9-13其中之一所述的方法,其特征在于,所述无线连接权限信息包括目标设备的设备标识和连接密码。 14. The method according to claim 9-13 wherein one of the preceding claims, characterized in that the wireless connection permission information comprises a device identifier and a target device connection password.
  15. 15.一种设备连接装置,其特征在于,包括: 音频接口插入检测模块,用于检测第一设备的音频接口是否被插入; 第一音频信号发送模块,用于在检测到第一设备的音频接口被插入时,则通过所述音频接口发送第一音频信号;所述第一音频信号用于指示获取目标设备的无线连接权限信息; 第二音频信号接收模块,用于通过所述音频接口接收第二音频信号;所述第二音频信号包括目标设备的无线连接权限信息; 无线连接模块,用于根据所述第二音频信号中的无线连接权限信息,将所述第一设备与目标设备进行无线连接。 15. An apparatus connecting device, characterized by comprising: an audio interface insertion detecting means for detecting whether the first audio interface device is inserted; a first audio signal transmitting module for the first device in the audio detected when the interface is inserted, through the audio interface transmits a first audio signal; the first audio signal information indicating permission for the wireless connection target acquisition device; a second audio signal receiving means for receiving via the audio interface a second audio signal; a second audio signal comprising a target wireless device connection right information; wireless connection module, the wireless connection according to the authority information of the second audio signal, the first device and the target device Wireless connections.
  16. 16.根据权利要求15所述的装置,其特征在于,所述第一音频信号发送模块包括: 权限获取指令生成模块,用于生成权限获取指令;所述权限获取指令用于获取目标设备的无线连接权限信息; 权限获取指令调制模块,用于将所述权限获取指令调制为第一音频信号; 第一发送模块,用于将所述第一音频信号由音频接口发出。 16. Apparatus according to claim 15, wherein said first audio signal transmitting module comprises: obtaining permission command generating module for generating a rights acquisition instruction; the authority-acquisition instruction for acquiring a target wireless device connection permission information; rights acquisition instruction modulation module, configured to acquire the privilege instruction modulating a first audio signal; a first sending module, configured to emit the first audio signal from the audio interface.
  17. 17.根据权利要求16所述的装置,其特征在于,所述第一发送模块包括: 声道引脚发送模块,用于调用音频输出API,通过音频接口的左声道引脚和/或右声道引脚,将所述第一音频信号发出。 17. The apparatus according to claim 16, wherein the first sending module comprises: a sending module pin-channel, an audio output for invoking the API, a left channel audio interface by pins and / or right channel pin, the first audio signal sent.
  18. 18.根据权利要求15所述的装置,其特征在于,所述第二音频信号接收模块包括: 麦克风引脚接收模块,用于调用音频输入API,从音频接口的麦克风引脚中接收所述第二音频信号。 18. The apparatus according to claim 15, wherein said second audio signal receiving module comprising: a microphone pin receiving module, an audio input for invoking the API, the audio interface from the microphone pin received in the first two audio signals.
  19. 19.根据权利要求15所述的装置,其特征在于,所述无线连接模块包括: 第二音频信号解调模块,用于所述第一设备通过音频接口接收到所述第二音频信号之后,解调所述第二音频信号; 权限提取模块,用于从解调后的结果中,提取目标设备的无线连接权限信息; 第一无线连接模块,用于基于所述无线连接权限信息,将所述第一设备与目标设备进行无线连接。 After the second audio signal demodulating means for receiving the first device to the second audio signal through the audio interface: 19. The apparatus according to claim 15, wherein the wireless connection module comprises demodulating the second audio signal; right extraction module, a wireless connection permission information from the demodulated result, extracts the target device; a first wireless connection module for wireless connection information based on the permissions, the said first device a wireless connection with the target device.
  20. 20.根据权利要求19所述的装置,其特征在于,所述无线连接模块包括: 连接执行模块,用于调用无线连接API,根据所述无线连接权限信息将第一设备与目标设备进行无线连接。 20. The apparatus according to claim 19, wherein the wireless connection module comprising: a module performing the connection, a wireless connection to the API calls, the first wireless device and a target device connected to the wireless connection according to the authority information .
  21. 21.根据权利要求15所述的装置,其特征在于,还包括: 连接测试发送模块,用于在通过所述音频接口获取目标设备的无线连接权限信息之前,通过音频接口发送音频连接测试信号;所述音频连接测试信号用于指示第一设备的连接对象返回音频响应信号; 连接音频响应信号检测模块,用于检测音频接口是否接收到针对所述音频连接测试信号的音频响应信号;如果检测到针对所述音频连接测试信号的音频响应信号,则进入通过所述音频接口发送第一音频信号的步骤。 21. The apparatus according to claim 15, characterized in that, further comprising: sending a connection test means for obtaining the target before the interface device via the wireless connection right audio information via the audio interface transmits audio test signal; the audio connector for connecting a test signal indicating that the first device returns the object in response to an audio signal; an audio connection response signal detection means for detecting whether an audio interface for receiving an audio response to the audio signal of the test signal; if it is detected for the audio signal in response to said audio test signal is connected, the process proceeds to step interface sends a first audio signal by the audio.
  22. 22.根据权利要求15-21其中之一所述的装置,其特征在于,所述无线连接权限信息包括目标设备的设备标识和连接密码。 22. The apparatus according to claim 15-21 wherein one of the preceding claims, characterized in that the wireless connection permission information comprises a device identifier and a target device connection password.
  23. 23.一种设备接入装置,其特征在于,包括: 第一音频信号接收模块,用于检测是否接收到第一音频信号;所述第一音频信号用于指示获取目标设备的无线连接权限信息; 第一音频信号处理模块,用于若检测到第一音频信号,则针对第一音频信号进行处理,获得第二音频信号;所述第二音频信号包括目标设备的无线连接权限信息; 第二音频信号返回模块,用于将所述第二音频信号返回第一设备,以使第一设备根据所述第二音频信号中的无线连接权限信息,将所述第一设备与目标设备进行无线连接。 23. An apparatus access device comprising: a first audio signal receiving means for detecting whether a first audio signal; a wireless connection right the first audio signal for instructing the target device information acquired ; first audio signal processing means for detecting when the first audio signal, the audio signal processing performed for the first, obtaining a second audio signal; a second audio signal comprises a wireless connection permission information of a target device; a second the audio signal return means for the second audio signal back to the first device, to cause the first device to the second audio signal according to information of the wireless connection right, the first device a wireless connection with the target device .
  24. 24.根据权利要求23所述的装置,其特征在于,所述第一音频信号中包括权限获取指令; 进一步的,所述第一音频信号处理模块包括: 第一音频信号解调模块,用于对接收到的所述第一音频信号进行解调,获得权限获取指令; 权限获取模块,用于根据所述权限获取指令,获取目标设备的无线连接权限信息; 返回指令生成模块,用于生成包括所述无线连接权限信息的返回指令; 第一返回模块,用于将所述返回指令调制为第二音频信号。 24. The apparatus according to claim 23, wherein said first audio signal comprises a right obtaining instruction; further, the first audio signal processing module comprises: a first audio signal demodulating means for the first audio signal received is demodulated to obtain rights acquisition instruction; right obtaining means for obtaining authority information according to the instruction, obtains a target wireless device connection right; return instruction generating module, for generating a return instruction of the wireless connection permission information; a first return means for the return instruction of the second modulated audio signal.
  25. 25.根据权利要求23所述的装置,其特征在于,所述第一音频信号由第一设备的音频接口的左声道引脚和/或右声道引脚发出; 进一步的,所述第一音频信号接收模块包括: 引脚检测模块,适于在左声道引脚和/或右声道引脚检测是否接收到第一音频信号。 25. The apparatus according to claim 23, wherein the first audio signal emitted by the pin and the left channel / right channel or a first pin audio interface device; Further, the second an audio signal receiving module comprising: a pin detection module adapted to whether to receive the first pin in the left channel audio signal and / or the right pin detection channel.
  26. 26.根据权利要求23所述的装置,其特征在于,所述第二音频信号返回模块包括: 麦克风引脚返回模块,用于通过麦克风引脚将所述第二音频信号返回第一设备。 26. The apparatus according to claim 23, wherein said second audio signal return module comprising: a microphone pin return means for the second pin through a microphone audio signal back to the first device.
  27. 27.根据权利要求23所述的装置,其特征在于,还包括: 连接测试检测模块,用于在检测是否接收到第一音频信号之前,检测是否接收到音频连接测试信号;所述音频连接测试信号用于指示第一设备的连接对象返回音频响应信号;音频响应信号返回模块,用于若检测到所述音频连接测试信号,则返回针对所述音频连接测试信号的音频响应信号。 27. The apparatus according to claim 23, characterized in that, further comprising: connecting a test detection means for detecting whether before receiving the first audio signal, detecting whether the audio test signal; the audio connection test a signal for instructing a first device connected to the audio object returns a response signal; audio response signal return module configured to detect if the audio test signal is returned in response to the audio signal for the audio connection test signal.
  28. 28.根据权利要求23-27其中之一所述的装置,其特征在于,所述无线连接权限信息包括目标设备的设备标识和连接密码。 28. The apparatus according to claim 23-27 wherein one of the preceding claims, characterized in that the wireless connection permission information comprises a device identifier and a target device connection password.
  29. 29.一种设备连接系统,其特征在于,包括: 第一设备和目标设备; 所述第一设备包括: 音频接口插入检测模块,用于检测第一设备的音频接口是否被插入; 第一音频信号发送模块,用于在检测到第一设备的音频接口被插入时,则通过所述音频接口发送第一音频信号;所述第一音频信号用于指示获取目标设备的无线连接权限信息; 第二音频信号接收模块,用于通过所述音频接口接收第二音频信号; 无线连接模块,用于根据所述第二音频信号中的无线连接权限信息,将所述第一设备与目标设备进行无线连接; 所述目标设备包括: 第一音频信号接收模块,用于检测是否接收到第一音频信号; 第一音频信号处理模块,用于若检测到第一音频信号,则针对第一音频信号进行处理,获得第二音频信号;所述第二音频信号包括目标设备的无线连接权限信息; 第 29. An apparatus connection system comprising: a first device and a destination device; the first device comprising: an audio interface insertion detecting means for detecting whether the first audio interface device is inserted; a first audio signal transmitting means for detecting when the first device is inserted into the audio interface, the audio interface is transmitted by a first audio signal; the first audio signal information indicating permission for the wireless connection target acquisition device; a first two audio signal receiving means for receiving a second audio signal through the audio interface; wireless connection module, the wireless connection according to the authority information of the second audio signal, the first wireless device and a target device ; said target apparatus comprises: a first audio signal receiving means for detecting whether a first audio signal; a first audio signal processing means for detecting when the first audio signal, the audio signal is performed for the first processing, obtaining a second audio signal; a second audio signal comprises a wireless connection permission information of a target device; first 音频信号返回模块,用于将所述第二音频信号返回第一设备。 The audio signal return means for the second audio signal back to the first device.
  30. 30.一种设备连接系统,其特征在于,包括: 第一设备、中继设备和目标设备; 所述第一设备包括: 音频接口插入检测模块,用于检测第一设备的音频接口是否被插入; 第一音频信号发送模块,用于在检测到第一设备的音频接口被插入时,则通过所述音频接口发送第一音频信号;所述第一音频信号用于指示获取目标设备的无线连接权限信息; 第二音频信号接收模块,用于通过所述音频接口接收第二音频信号; 无线连接模块,用于根据所述第二音频信号中的无线连接权限信息,将所述第一设备与目标设备进行无线连接; 所述中继设备包括: 第一音频信号接收模块,用于检测是否接收到第一音频信号; 第一音频信号处理模块,用于若检测到第一音频信号,则针对第一音频信号进行处理,获得第二音频信号;所述第二音频信号包括目标设备的无线连接权限 30. An apparatus connection system comprising: a first device, a relay device and a target device; the first device comprising: an audio interface insertion detecting means for detecting whether the first device is inserted into the audio interface ; a first audio signal transmitting means for upon detection of the first audio interface device is inserted through the audio interface transmits a first audio signal; the first audio signal for instructing the target device acquiring a wireless connection rights information; and a second audio signal receiving means for receiving a second audio signal through the audio interface; wireless connection module, information for the second audio signal according to the wireless connection right, and the first device the target device is wirelessly connected; said relay apparatus comprising: a first audio signal receiving means for detecting whether a first audio signal; a first audio signal processing means for detecting when the first audio signal, for the first audio signal is processed to obtain the second audio signal; a second audio signal comprises a wireless connection target device permissions 信息; 第二音频信号返回模块,用于将所述第二音频信号返回第一设备。 Information; and a second audio signal return means for the second audio signal back to the first device.
CN 201510334071 2015-06-16 2015-06-16 Equipment connection method, device and system CN106332075A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201510334071 CN106332075A (en) 2015-06-16 2015-06-16 Equipment connection method, device and system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 201510334071 CN106332075A (en) 2015-06-16 2015-06-16 Equipment connection method, device and system
PCT/CN2016/085214 WO2016202205A1 (en) 2015-06-16 2016-06-08 Device connection method, apparatus, and system

Publications (1)

Publication Number Publication Date
CN106332075A true true CN106332075A (en) 2017-01-11

Family

ID=57544957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201510334071 CN106332075A (en) 2015-06-16 2015-06-16 Equipment connection method, device and system

Country Status (2)

Country Link
CN (1) CN106332075A (en)
WO (1) WO2016202205A1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1802155A1 (en) * 2005-12-21 2007-06-27 Cronto Limited System and method for dynamic multifactor authentication
CN203027256U (en) * 2012-11-22 2013-06-26 国民技术股份有限公司 Communication device and communication system
CN103944723A (en) * 2014-04-18 2014-07-23 天地融科技股份有限公司 Bluetooth device authentication method and Bluetooth devices
CN204305268U (en) * 2014-09-27 2015-04-29 漳州市爱德电子技术有限公司 Bluetooth window intercom

Also Published As

Publication number Publication date Type
WO2016202205A1 (en) 2016-12-22 application

Similar Documents

Publication Publication Date Title
US20150113172A1 (en) Deploying and managing networked devices
US20120054493A1 (en) Secure wireless link between two devices using probes
Townsend et al. Getting started with Bluetooth low energy: tools and techniques for low-power networking
US20140053281A1 (en) Configuration of a new enrollee device for use in a communication network
US20070123165A1 (en) Methods, systems and devices for assisted discovery in bluetooth enabled devices
CN102149167A (en) Method for automatic pairing to a wireless network
US20090319673A1 (en) Automated Wireless Device Pairing
CN103281752A (en) WIFI (wireless fidelity) network access method and device, electronic equipment and communication system
CN104243484A (en) Information interaction method and device and electronic equipment
CN103281759A (en) WIFI (wireless fidelity) network access method and device, electronic equipment and communication system
CN104159226A (en) Network connection method and device
CN104243576A (en) Intelligent home system and user terminal and device terminal binding method of intelligent home system
US20140181916A1 (en) Electronic device, personal cloud apparatus, personal cloud system and method for registering personal cloud apparatus in user portal server thereof
US20130173702A1 (en) Supporting wps sessions using tcp-based connections
US20150189496A1 (en) Method for processing multiple pieces of sim information and electronic device thereof
CN104159218A (en) Network connection establishment method and device
US20140233547A1 (en) Systems and methods for implementing peer-to-peer wireless connections
CN104683938A (en) Configuration method and device for intelligent equipment
CN104302014A (en) Method and device for connecting terminal with Wi-Fi hotspot
US20160050551A1 (en) Methods, systems, and devices for enabling multiple radio assited discovery
US20130181819A1 (en) Physical tag-based subscription services
CN103220822A (en) Data transmission method, data transmission device and mobile terminal
US20140380443A1 (en) Network connection in a wireless communication device
CN104935744A (en) Verification code display method, verification code display device and mobile terminal
JP2011199381A (en) Radio communication method and system, and radio communication device of the same

Legal Events

Date Code Title Description
PB01
C10 Entry into substantive examination