Movatterモバイル変換


[0]ホーム

URL:


CN103702440A - Terminal and equipment connecting method - Google Patents

Terminal and equipment connecting method
Download PDF

Info

Publication number
CN103702440A
CN103702440ACN201310705906.9ACN201310705906ACN103702440ACN 103702440 ACN103702440 ACN 103702440ACN 201310705906 ACN201310705906 ACN 201310705906ACN 103702440 ACN103702440 ACN 103702440A
Authority
CN
China
Prior art keywords
wireless device
connection
terminal
task
wireless
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310705906.9A
Other languages
Chinese (zh)
Other versions
CN103702440B (en
Inventor
张小华
黄立军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jinpeng Baoshu Technology Co ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co LtdfiledCriticalYulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201310705906.9ApriorityCriticalpatent/CN103702440B/en
Publication of CN103702440ApublicationCriticalpatent/CN103702440A/en
Application grantedgrantedCritical
Publication of CN103702440BpublicationCriticalpatent/CN103702440B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

Translated fromChinese

本发明提供了一种终端,包括:设备开启单元,在所述终端中的任一协同任务被启动时,开启所述终端的无线设备;搜索单元,搜索其他无线设备;获取单元,在所述搜索单元搜索到所述其他无线设备时,获取所述其他无线设备的设备标识;第一判断单元,对所述设备标识进行识别,并根据识别结果判断所述其他无线设备是否与所述任一协同任务相匹配;任务执行单元,在所述第一判断单元的判断结果为是时,建立所述无线设备和所述其他无线设备之间的连接,并开始执行所述任一协同任务。相应地,本发明还提供了一种设备连接方法。通过本发明的技术方案,解决了终端与终端之间连接时手动操作任务的重复性和频繁性,减少用户的操作,提升用户的使用体验。

Figure 201310705906

The present invention provides a terminal, including: a device enabling unit, which activates a wireless device of the terminal when any cooperative task in the terminal is activated; a searching unit, which searches for other wireless devices; an obtaining unit, which is configured in the When the search unit finds the other wireless device, it obtains the device identifier of the other wireless device; the first judging unit identifies the device identifier, and judges whether the other wireless device is compatible with any of the other wireless devices according to the recognition result. The coordinated tasks are matched; the task execution unit, when the determination result of the first determination unit is yes, establishes the connection between the wireless device and the other wireless devices, and starts to execute any of the coordinated tasks. Correspondingly, the present invention also provides a device connection method. Through the technical solution of the present invention, the repetition and frequency of manual operation tasks when terminals are connected are solved, user operations are reduced, and user experience is improved.

Figure 201310705906

Description

Translated fromChinese
终端和设备连接方法Terminal and device connection method

技术领域technical field

本发明涉及终端技术领域,具体而言,涉及一种终端和一种设备连接方法。The present invention relates to the technical field of terminals, in particular, to a terminal and a device connection method.

背景技术Background technique

在现有技术方案中,终端之间进行连接时,需要进行如下步骤:首先打开两端的物连终端设备的连接介质(如蓝牙、红外、WIFI等),然后在连接设置界面选择需要配对的设备,最后连接成功后开始触发任务操作。比如用户任务为手机对手机之间通过蓝牙传送一些图片,则需要进行的步骤包括:先开打手机A蓝牙,然后再打开手机B的蓝牙,然后在蓝牙设置界面去搜索,搜索到周围的设备之后再从设备列表中选择相应的设备,选择完成后再手动配对AB密码,配对完成后,A再到图库中去找到要发送的图片文件,点击分享发送蓝牙,再选择发送至手机B,手机B接收确认后才开始发送传输,最后任务完成。In the existing technical solution, when connecting between terminals, the following steps need to be performed: first, open the connection medium (such as Bluetooth, infrared, WIFI, etc.) of the IoT terminal devices at both ends, and then select the device to be paired on the connection setting interface , and start to trigger the task operation after the connection is successful. For example, if the user task is to transmit some pictures between mobile phones via Bluetooth, the steps to be performed include: first turn on the Bluetooth of mobile phone A, then turn on the Bluetooth of mobile phone B, and then search in the Bluetooth setting interface, after searching for the surrounding devices Then select the corresponding device from the device list, and then manually pair the AB password after the selection is completed. After the pairing is completed, A goes to the gallery to find the picture file to be sent, click Share to send Bluetooth, and then choose to send to mobile phone B, mobile phone B The transmission is sent only after receiving the confirmation, and finally the task is completed.

上述现有技术方案的缺陷在于:1、连接设置繁琐;2、操作步骤繁琐;3、用户触发任务被动操作;4、再次连接时操作繁琐;5、无法智能识别连接设备;6、重复操作同样功能任务,用户体验差;7、长时间开启连接设备器件,耗电量大。The disadvantages of the above-mentioned existing technical solutions are: 1. The connection settings are cumbersome; 2. The operation steps are cumbersome; 3. The user triggers the task to operate passively; 4. The operation is cumbersome when reconnecting; 5. The connected device cannot be intelligently identified; Functional tasks, poor user experience; 7. Turning on connected devices for a long time consumes a lot of power.

因此,需要一种新的技术方案,以期解决上述问题中的至少之一。Therefore, a new technical solution is needed to solve at least one of the above problems.

发明内容Contents of the invention

本发明正是基于上述问题,提出了一种新的技术方案,解决了终端与终端之间连接时手动操作任务的重复性和频繁性,减少用户的操作,提升用户的使用体验。Based on the above problems, the present invention proposes a new technical solution, which solves the repetitiveness and frequency of manual operation tasks when terminals are connected, reduces user operations, and improves user experience.

有鉴于此,本发明提出了一种终端,包括:设备开启单元,用于在所述终端中的任一协同任务被启动时,开启所述终端的无线设备;搜索单元,用于搜索其他无线设备;获取单元,用于在所述搜索单元搜索到所述其他无线设备时,获取所述其他无线设备的设备标识;第一判断单元,用于对所述设备标识进行识别,并根据识别结果判断所述其他无线设备是否与所述任一协同任务相匹配;任务执行单元,在所述第一判断单元的判断结果为是时,建立所述无线设备和所述其他无线设备之间的连接,并开始执行所述任一协同任务。In view of this, the present invention proposes a terminal, including: a device activation unit, configured to enable the wireless device of the terminal when any coordinated task in the terminal is activated; a search unit, configured to search for other wireless devices device; an acquisition unit, configured to acquire the device identifier of the other wireless device when the search unit searches for the other wireless device; a first judging unit, configured to identify the device identifier, and according to the identification result Judging whether the other wireless device matches any of the coordinated tasks; the task execution unit, when the judgment result of the first judging unit is yes, establishes a connection between the wireless device and the other wireless device , and start executing any of the co-tasks.

在该技术方案中,当用户在终端上启动一个协调任务时,则终端会根据该协同任务的功能去搜索周围设备中可以执行该协同任务的设备,并自动连接到该设备去执行协同任务。比如用户在终端A上选择了一项打印文件的任务,则终端会根据该打印任务,自动搜索周围的设备,并对每个设备进行识别,识别出是否有可以执行打印任务的设备,在识别出设备B具备打印功能时,则自动连接到设备B,并在连接成功后开始执行打印任务。这样,可以直接根据用户的需求去寻找合适的设备,而不需要用户再手动去选择相关设备,方便了用户的操作,提升了用户的使用体验。In this technical solution, when the user starts a coordination task on the terminal, the terminal will search for a device in the surrounding devices that can perform the coordination task according to the function of the coordination task, and automatically connect to the device to perform the coordination task. For example, if the user selects a task of printing a file on terminal A, the terminal will automatically search for surrounding devices according to the printing task, and identify each device to identify whether there is a device that can perform the printing task. When device B has the printing function, it will automatically connect to device B, and start to execute the printing task after the connection is successful. In this way, it is possible to directly find a suitable device according to the user's needs, without requiring the user to manually select the relevant device, which facilitates the user's operation and improves the user's experience.

在上述技术方案中,优选地,还包括:任务关闭单元,用于在所述任一协同任务执行完毕时,关闭所述任一协同任务并断开所述无线设备和所述其他无线设备的连接。In the above technical solution, preferably, further comprising: a task closing unit, configured to close any of the coordinated tasks and disconnect the wireless device from the other wireless devices when the execution of any of the coordinated tasks is completed. connect.

在该技术方案中,在任务完成时,自动关闭任务,并断开两个已连接设备,这样,不但减少了用户的操作,也可以取得更好的省电效果。In this technical solution, when the task is completed, the task is automatically closed and the two connected devices are disconnected, so that not only the user's operations are reduced, but also a better power saving effect can be achieved.

在上述技术方案中,优选地,所述第一判断单元包括:识别子单元,用于对所述设备标识进行识别,并判断是否能够识别出所述设备标识对应的设备功能;比较子单元,将所述设备功能与所述任一协同任务的任务功能进行比较,并根据比较结果判断所述其他无线设备是否与所述任一协同任务相匹配。In the above technical solution, preferably, the first judging unit includes: an identifying subunit, configured to identify the device identifier, and judge whether the device function corresponding to the device identifier can be identified; a comparing subunit, Comparing the device function with the task function of any one of the coordinated tasks, and judging whether the other wireless device matches the any one of the coordinated tasks according to the comparison result.

在该技术方案中,在每个设备的设备标识上都有标识该设备功能的一些特定字符,终端对搜索到的每个设备的设备标识进行识别,根据设备标识判断该设备的功能,并将识别出的设备功能和协同任务本身所需要的功能进行比较,判断出设备是否能与终端的设备进行连接,从而完成协同任务。其中,识别设备标识的方法包括但是不限于以下方式:1、在终端中预存一些设备标签,在搜索到其他终端的设备时,判断是否能够根据预存的设备标签获知其他终端的设备所具有的功能。2、在不能够根据预存的设备标签得知设备功能时,可以自动向外界(如互联网)发送搜索请求,请求获知其他终端设备的设备标识对应的设备功能。In this technical solution, the device identification of each device has some specific characters that identify the function of the device. The terminal recognizes the device identification of each device that is searched, judges the function of the device according to the device identification, and sends The identified device functions are compared with the functions required by the collaborative task itself, and it is judged whether the device can be connected with the terminal device, so as to complete the collaborative task. Among them, the method of identifying the device identification includes but is not limited to the following methods: 1. Pre-store some device tags in the terminal, and when searching for devices of other terminals, determine whether the functions of the devices of other terminals can be known according to the pre-stored device tags . 2. When the device function cannot be known according to the pre-stored device label, it can automatically send a search request to the outside world (such as the Internet) to request to know the device function corresponding to the device identifier of other terminal devices.

在上述技术方案中,优选地,还包括:第二判断单元,用于判断所述设备功能中是否包含多个操作项;第三判断单元,在所述第二判断单元的判断结果为是时,判断所述无线设备和所述其他无线设备是否建立过连接;信息获取单元,在所述第三判断单元的判断结果为是时,获取记录的所述无线设备和所述其他无线设备的连接信息,其中,所述连接信息包括所述无线设备和所述其他无线设备的连接时间、连接地点以及所述其他无线设备的设备功能和操作项;所述任务执行单元还用于:获取当前时间和当前地点,判断所述当前时间和所述当前地点是否和所述连接时间和所述连接地点匹配,在判断结果为是时,按照所述操作项在所述无线设备和所述其他无线设备之间建立连接。In the above technical solution, preferably, further comprising: a second judging unit, configured to judge whether multiple operation items are included in the device function; a third judging unit, when the judging result of the second judging unit is yes , judging whether the wireless device has established a connection with the other wireless device; the information obtaining unit, when the judgment result of the third judging unit is yes, obtains the recorded connection between the wireless device and the other wireless device information, wherein the connection information includes the connection time and location of the wireless device and the other wireless device, and the device functions and operation items of the other wireless device; the task execution unit is also used to: obtain the current time and the current location, judging whether the current time and the current location match the connection time and the connection location, and if the judgment result is yes, perform the operation on the wireless device and the other wireless device according to the operation item establish a connection between them.

在该技术方案中,操作项是指一个设备功能下的多个操作选项,比如,在一个打印功能下可能包括多个打印操作选项,如彩印、黑白印,在一个共享功能下可能包括多个共享操作选项,比如说保存、播放等,此时,终端可能并不能判断出用户当前最可能进行的操作项。此时,可以判断终端以前是否和对端的设备进行过连接,以及之前连接时的时间、地点、以及操作项等,这样,可以通过之前连接过的信息判断出用户当前最可能进行的操作项。比如,终端A想要执行打印文件的任务,并识别出终端B具有打印的功能,与终端B建立起连接,那么如果之前终端B与终端A连接过,并进行过相同或相似的任务,则终端会按照之前的操作项进行相关的操作。而为了保证终端中用户的信息安全,还可以在确定当前的连接时间和地点与以前连接的时间和地点等环境状态都相同时,才允许用户按照之前连接的操作项等来建立连接。In this technical solution, the operation item refers to multiple operation options under one device function. For example, one printing function may include multiple printing operation options, such as color printing, black and white printing, and one sharing function may include multiple Shared operation options, such as saving, playing, etc., at this time, the terminal may not be able to determine the most likely operation item currently performed by the user. At this time, it can be judged whether the terminal has been connected to the peer device before, as well as the time, place, and operation items of the previous connection. In this way, the most likely operation item currently performed by the user can be judged based on the information of the previous connection. For example, terminal A wants to perform the task of printing files, and recognizes that terminal B has the function of printing, and establishes a connection with terminal B, then if terminal B has connected to terminal A before and performed the same or similar tasks, then The terminal will perform related operations according to the previous operation items. In order to ensure the information security of the user in the terminal, it is also possible to allow the user to establish a connection according to the operation items of the previous connection when it is determined that the current connection time and place are the same as the previous connection time and place.

在上述技术方案中,优选地,还包括:在所述第三判断单元的判断结果为否时,根据接收到的选择命令,从所述多个操作项中选择出一个目标操作项,控制所述无线设备和所述其他无线设备根据所述目标操作项建立连接,并记录所述无线设备和所述其他无线设备的连接信息。In the above technical solution, preferably, it further includes: when the judgment result of the third judging unit is No, according to the received selection command, select a target operation item from the plurality of operation items, and control the Establishing a connection between the wireless device and the other wireless device according to the target operation item, and recording connection information between the wireless device and the other wireless device.

在该技术方案中,如果两个设备之间是首次进行连接,也就是说之前并未设置过操作项,那么用户可以根据需要自己选择需要的操作项,终端按照用户选择的操作项对协同任务进行操作,并记录下用户的选择,以便下次连接时作为参考。In this technical solution, if the connection between the two devices is the first time, that is to say, no operation item has been set before, then the user can select the required operation item according to the needs, and the terminal performs the coordination task according to the operation item selected by the user. Do it, and record the user's choice for reference the next time you connect.

根据本发明的另一方面,还提供了一种设备连接方法,包括:开启步骤,在所述终端中的任一协同任务被启动时,开启所述终端的无线设备;搜索步骤,搜索其他无线设备;获取步骤,在搜索到所述其他无线设备时,获取所述其他无线设备的设备标识;第一判断步骤,对所述设备标识进行识别,并根据识别结果判断所述其他无线设备是否与所述任一协同任务相匹配;任务执行步骤,在所述其他无线设备和所述任一协同任务相匹配时,建立所述无线设备和所述其他无线设备之间的连接,并开始执行所述任一协同任务。According to another aspect of the present invention, there is also provided a device connection method, including: an enabling step, when any coordinated task in the terminal is activated, enabling the wireless device of the terminal; a searching step, searching for other wireless devices device; the acquiring step, when the other wireless device is searched, acquire the device identifier of the other wireless device; the first judging step, identify the device identifier, and judge whether the other wireless device is compatible with the other wireless device according to the identification result Any of the coordinated tasks is matched; the task execution step is to establish a connection between the wireless device and the other wireless devices when the other wireless device matches the any coordinated task, and start to execute the task. any of the collaborative tasks described above.

在该技术方案中,当用户在终端上启动一个协调任务时,则终端会根据该协同任务的功能去搜索周围设备中可以执行该协同任务的设备,并自动连接到该设备去执行协同任务。比如用户在终端A上选择了一项打印文件的任务,则终端会根据该打印任务,自动搜索周围的设备,并对每个设备进行识别,识别出是否有可以执行打印任务的设备,在识别出设备B具备打印功能时,则自动连接到设备B,并在连接成功后开始执行打印任务。这样,可以直接根据用户的需求去寻找合适的设备,而不需要用户再手动去选择相关设备,方便了用户的操作,提升了用户的使用体验。In this technical solution, when the user starts a coordination task on the terminal, the terminal will search for a device in the surrounding devices that can perform the coordination task according to the function of the coordination task, and automatically connect to the device to perform the coordination task. For example, if the user selects a task of printing a file on terminal A, the terminal will automatically search for surrounding devices according to the printing task, and identify each device to identify whether there is a device that can perform the printing task. When device B has the printing function, it will automatically connect to device B, and start to execute the printing task after the connection is successful. In this way, it is possible to directly find a suitable device according to the user's needs, without requiring the user to manually select the relevant device, which facilitates the user's operation and improves the user's experience.

在上述技术方案中,优选地,还包括:在所述任一协同任务执行完毕时,关闭所述任一协同任务并断开所述无线设备和所述其他无线设备的连接。In the above technical solution, preferably, it further includes: closing any one of the coordination tasks and disconnecting the wireless device from the other wireless devices when the execution of any of the coordination tasks is completed.

在该技术方案中,在任务完成时,自动关闭任务,并断开两个已连接设备,这样,不但减少了用户的操作,也可以取得更好的省电效果。In this technical solution, when the task is completed, the task is automatically closed and the two connected devices are disconnected, so that not only the user's operations are reduced, but also a better power saving effect can be achieved.

在上述技术方案中,优选地,所述第一判断步骤包括:对所述设备标识进行识别,并判断是否能够识别出所述设备标识对应的设备功能;将所述设备功能与所述任一协同任务的任务功能进行比较,并根据比较结果判断所述其他无线设备是否与所述任一协同任务相匹配。In the above technical solution, preferably, the first judging step includes: identifying the device identifier, and judging whether the device function corresponding to the device identifier can be identified; The task functions of the coordinated tasks are compared, and according to the comparison result, it is judged whether the other wireless device matches any of the coordinated tasks.

在该技术方案中,在每个设备的设备标识上都有标识该设备功能的一些特定字符,终端对搜索到的每个设备的设备标识进行识别,根据设备标识判断该设备的功能,并将识别出的设备功能和协同任务本身所需要的功能进行比较,判断出设备是否能与终端的设备进行连接,从而完成协同任务。其中,识别设备标识的方法包括但是不限于以下方式:1、在终端中预存一些设备标签,在搜索到其他终端的设备时,判断是否能够根据预存的设备标签获知其他终端的设备所具有的功能。2、在不能够根据预存的设备标签得知设备功能时,可以自动向外界(如互联网)发送搜索请求,请求获知其他终端设备的设备标识对应的设备功能。In this technical solution, the device identification of each device has some specific characters that identify the function of the device. The terminal recognizes the device identification of each device that is searched, judges the function of the device according to the device identification, and sends The identified device functions are compared with the functions required by the collaborative task itself, and it is judged whether the device can be connected with the terminal device, so as to complete the collaborative task. Among them, the method of identifying the device identification includes but is not limited to the following methods: 1. Pre-store some device tags in the terminal, and when searching for devices of other terminals, determine whether the functions of the devices of other terminals can be known according to the pre-stored device tags . 2. When the device function cannot be known according to the pre-stored device label, it can automatically send a search request to the outside world (such as the Internet) to request to know the device function corresponding to the device identifier of other terminal devices.

在上述技术方案中,优选地,还包括:第二判断步骤,判断所述设备功能中是否包含多个操作项;第三判断步骤,在所述第二判断步骤的判断结果为是时,判断所述无线设备和所述其他无线设备是否建立过连接;信息获取步骤,在所述第三判断步骤的判断结果为是时,获取记录的所述无线设备和所述其他无线设备的连接信息,其中,所述连接信息包括所述无线设备和所述其他无线设备的连接时间、连接地点以及所述其他无线设备的设备功能和操作项;以及获取当前时间和当前地点,判断所述当前时间和所述当前地点是否和所述连接时间和所述连接地点匹配,在判断结果为是时,按照所述操作项在所述无线设备和所述其他无线设备之间建立连接。In the above technical solution, preferably, further comprising: a second judging step, judging whether multiple operation items are included in the device function; a third judging step, judging if the judging result of the second judging step is yes Whether the wireless device has established a connection with the other wireless device; the information obtaining step, when the judgment result of the third judgment step is yes, obtain the recorded connection information between the wireless device and the other wireless device, Wherein, the connection information includes the connection time and location of the wireless device and the other wireless device, and the device functions and operation items of the other wireless device; and obtaining the current time and current location, and judging the current time and Whether the current location matches the connection time and the connection location, and if the judging result is yes, establish a connection between the wireless device and the other wireless device according to the operation item.

在该技术方案中,操作项是指一个设备功能下的多个操作选项,比如,在一个打印功能下可能包括多个打印操作选项,如彩印、黑白印,在一个共享功能下可能包括多个共享操作选项,比如说保存、播放等,此时,终端可能并不能判断出用户当前最可能进行的操作项。此时,可以判断终端以前是否和对端的设备进行过连接,以及之前连接时的时间、地点、以及操作项等,这样,可以通过之前连接过的信息判断出用户当前最可能进行的操作项。比如,终端A想要执行打印文件的任务,并识别出终端B具有打印的功能,与终端B建立起连接,那么如果之前终端B与终端A连接过,并进行过相同或相似的任务,则终端会按照之前的操作项进行相关的操作。而为了保证终端中用户的信息安全,还可以在确定当前的连接时间和地点与以前连接的时间和地点等环境状态都相同时,才允许用户按照之前连接的操作项等来建立连接。In this technical solution, the operation item refers to multiple operation options under one device function. For example, one printing function may include multiple printing operation options, such as color printing, black and white printing, and one sharing function may include multiple Shared operation options, such as saving, playing, etc., at this time, the terminal may not be able to determine the most likely operation item currently performed by the user. At this time, it can be judged whether the terminal has been connected to the peer device before, as well as the time, place, and operation items of the previous connection. In this way, the most likely operation item currently performed by the user can be judged based on the information of the previous connection. For example, terminal A wants to perform the task of printing files, and recognizes that terminal B has the function of printing, and establishes a connection with terminal B, then if terminal B has connected to terminal A before and performed the same or similar tasks, then The terminal will perform related operations according to the previous operation items. In order to ensure the information security of the user in the terminal, it is also possible to allow the user to establish a connection according to the operation items of the previous connection when it is determined that the current connection time and place are the same as the previous connection time and place.

在上述技术方案中,优选地,还包括:在所述第三判断步骤的判断结果为否时,根据接收到的选择命令,从所述多个操作项中选择出一个目标操作项,控制所述无线设备和所述其他无线设备根据所述目标操作项建立连接,并记录所述无线设备和所述其他无线设备的连接信息。In the above technical solution, preferably, it further includes: when the judgment result of the third judging step is No, selecting a target operation item from the plurality of operation items according to the received selection command, and controlling all Establishing a connection between the wireless device and the other wireless device according to the target operation item, and recording connection information between the wireless device and the other wireless device.

在该技术方案中,如果两个设备之间是首次进行连接,也就是说之前并未设置过操作项,那么用户可以根据需要自己选择需要的操作项,终端按照用户选择的操作项对协同任务进行操作,并记录下用户的选择,以便下次连接时作为参考。In this technical solution, if the connection between the two devices is the first time, that is to say, no operation item has been set before, then the user can select the required operation item according to the needs, and the terminal performs the coordination task according to the operation item selected by the user. Do it, and record the user's choice for reference the next time you connect.

通过以上技术方案,解决了终端与终端之间连接时手动操作任务的重复性和频繁性,减少用户的操作,提升用户的使用体验。Through the above technical solutions, the repetitiveness and frequency of manual operation tasks when terminals are connected are solved, user operations are reduced, and user experience is improved.

附图说明Description of drawings

图1示出了根据本发明的实施例的终端的框图;Fig. 1 shows a block diagram of a terminal according to an embodiment of the present invention;

图2示出了根据本发明的实施例的设备连接方法的流程图;Fig. 2 shows a flowchart of a device connection method according to an embodiment of the present invention;

图3示出了根据本发明的实施例的设备连接方法的具体流程图。Fig. 3 shows a specific flowchart of a device connection method according to an embodiment of the present invention.

具体实施方式Detailed ways

为了能够更清楚地理解本发明的上述目的、特征和优点,下面结合附图和具体实施方式对本发明进行进一步的详细描述。需要说明的是,在不冲突的情况下,本申请的实施例及实施例中的特征可以相互组合。In order to understand the above-mentioned purpose, features and advantages of the present invention more clearly, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the case of no conflict, the embodiments of the present application and the features in the embodiments can be combined with each other.

在下面的描述中阐述了很多具体细节以便于充分理解本发明,但是,本发明还可以采用其他不同于在此描述的其他方式来实施,因此,本发明的保护范围并不受下面公开的具体实施例的限制。In the following description, many specific details are set forth in order to fully understand the present invention. However, the present invention can also be implemented in other ways different from those described here. Therefore, the protection scope of the present invention is not limited by the specific details disclosed below. EXAMPLE LIMITATIONS.

图1示出了根据本发明的实施例的终端的框图。FIG. 1 shows a block diagram of a terminal according to an embodiment of the present invention.

如图1所示,根据本发明的实施例的终端100,包括:设备开启单元102,用于在所述终端中的任一协同任务被启动时,开启所述终端的无线设备;搜索单元104,用于搜索其他无线设备;获取单元106,用于在所述搜索单元104搜索到所述其他无线设备时,获取所述其他无线设备的设备标识;第一判断单元108,用于对所述设备标识进行识别,并根据识别结果判断所述其他无线设备是否与所述任一协同任务相匹配;任务执行单元110,在所述第一判断单元108的判断结果为是时,建立所述无线设备和所述其他无线设备之间的连接,并开始执行所述任一协同任务。As shown in FIG. 1 , a terminal 100 according to an embodiment of the present invention includes: a device enabling unit 102 configured to enable a wireless device of the terminal when any coordinated task in the terminal is activated; a searching unit 104 , used to search for other wireless devices; the obtaining unit 106 is used to obtain the device identification of the other wireless device when the search unit 104 finds the other wireless device; the first judging unit 108 is used to determine the identify the device identifier, and judge whether the other wireless device matches any of the coordinated tasks according to the recognition result; the task execution unit 110, when the judgment result of the first judgment unit 108 is yes, establishes the wireless connection between the device and the other wireless device, and start performing any of the cooperative tasks.

在该技术方案中,当用户在终端上启动一个协调任务时,则终端会根据该协同任务的功能去搜索周围设备中可以执行该协同任务的设备,并自动连接到该设备去执行协同任务。比如用户在终端A上选择了一项打印文件的任务,则终端会根据该打印任务,自动搜索周围的设备,并对每个设备进行识别,识别出是否有可以执行打印任务的设备,在识别出设备B具备打印功能时,则自动连接到设备B,并在连接成功后开始执行打印任务。这样,可以直接根据用户的需求去寻找合适的设备,而不需要用户再手动去选择相关设备,方便了用户的操作,提升了用户的使用体验。In this technical solution, when the user starts a coordination task on the terminal, the terminal will search for a device in the surrounding devices that can perform the coordination task according to the function of the coordination task, and automatically connect to the device to perform the coordination task. For example, if the user selects a task of printing a file on terminal A, the terminal will automatically search for surrounding devices according to the printing task, and identify each device to identify whether there is a device that can perform the printing task. When device B has the printing function, it will automatically connect to device B, and start to execute the printing task after the connection is successful. In this way, it is possible to directly find a suitable device according to the user's needs, without requiring the user to manually select the relevant device, which facilitates the user's operation and improves the user's experience.

在上述技术方案中,优选地,还包括:任务关闭单元112,用于在所述任一协同任务执行完毕时,关闭所述任一协同任务并断开所述无线设备和所述其他无线设备的连接。In the above technical solution, preferably, further comprising: a task closing unit 112, configured to close any of the coordinated tasks and disconnect the wireless device from the other wireless devices when the execution of any of the coordinated tasks is completed. Connection.

在该技术方案中,在任务完成时,自动关闭任务,并断开两个已连接设备,这样,不但减少了用户的操作,也可以取得更好的省电效果。In this technical solution, when the task is completed, the task is automatically closed and the two connected devices are disconnected, so that not only the user's operations are reduced, but also a better power saving effect can be achieved.

在上述技术方案中,优选地,所述第一判断单元108包括:识别子单元1082,用于对所述设备标识进行识别,并判断是否能够识别出所述设备标识对应的设备功能;比较子单元1084,将所述设备功能与所述任一协同任务的任务功能进行比较,并根据比较结果判断所述其他无线设备是否与所述任一协同任务相匹配。In the above technical solution, preferably, the first judging unit 108 includes: an identifying subunit 1082, configured to identify the device identifier, and judge whether the device function corresponding to the device identifier can be identified; Unit 1084, compares the device function with the task function of any coordinated task, and judges whether the other wireless device matches the any coordinated task according to the comparison result.

在该技术方案中,在每个设备的设备标识上都有标识该设备功能的一些特定字符,终端对搜索到的每个设备的设备标识进行识别,根据设备标识判断该设备的功能,并将识别出的设备功能和协同任务本身所需要的功能进行比较,判断出设备是否能与终端的设备进行连接,从而完成协同任务。其中,识别设备标识的方法包括但是不限于以下方式:1、在终端中预存一些设备标签,在搜索到其他终端的设备时,判断是否能够根据预存的设备标签获知其他终端的设备所具有的功能。2、在不能够根据预存的设备标签得知设备功能时,可以自动向外界(如互联网)发送搜索请求,请求获知其他终端设备的设备标识对应的设备功能。In this technical solution, the device identification of each device has some specific characters that identify the function of the device. The terminal recognizes the device identification of each device that is searched, judges the function of the device according to the device identification, and sends The identified device functions are compared with the functions required by the collaborative task itself, and it is judged whether the device can be connected with the terminal device, so as to complete the collaborative task. Among them, the method of identifying the device identification includes but is not limited to the following methods: 1. Pre-store some device tags in the terminal, and when searching for devices of other terminals, determine whether the functions of the devices of other terminals can be known according to the pre-stored device tags . 2. When the device function cannot be known according to the pre-stored device label, it can automatically send a search request to the outside world (such as the Internet) to request to know the device function corresponding to the device identifier of other terminal devices.

在上述技术方案中,优选地,还包括:第二判断单元114,用于判断所述设备功能中是否包含多个操作项;第三判断单元116,在所述第二判断单元114的判断结果为是时,判断所述无线设备和所述其他无线设备是否建立过连接;信息获取单元118,在所述第三判断单元116的判断结果为是时,获取记录的所述无线设备和所述其他无线设备的连接信息,其中,所述连接信息包括所述无线设备和所述其他无线设备的连接时间、连接地点以及所述其他无线设备的设备功能和操作项;所述任务执行单元110还用于:获取当前时间和当前地点,判断所述当前时间和所述当前地点是否和所述连接时间和所述连接地点匹配,在判断结果为是时,按照所述操作项在所述无线设备和所述其他无线设备之间建立连接。In the above technical solution, preferably, further comprising: a second judging unit 114 for judging whether multiple operation items are included in the device function; If it is yes, judge whether the wireless device has established a connection with the other wireless device; the information obtaining unit 118, when the judgment result of the third judgment unit 116 is yes, obtain the record of the wireless device and the other wireless device Connection information of other wireless devices, wherein the connection information includes connection time and connection location between the wireless device and the other wireless device, and device functions and operation items of the other wireless device; the task execution unit 110 also It is used for: obtaining the current time and current location, judging whether the current time and the current location match the connection time and the connection location, and when the judging result is yes, according to the operation item in the wireless device Establish a connection with the other wireless device.

在该技术方案中,操作项是指一个设备功能下的多个操作选项,比如,在一个打印功能下可能包括多个打印操作选项,如彩印、黑白印,在一个共享功能下可能包括多个共享操作选项,比如说保存、播放等,此时,终端可能并不能判断出用户当前最可能进行的操作项。此时,可以判断终端以前是否和对端的设备进行过连接,以及之前连接时的时间、地点、以及操作项等,这样,可以通过之前连接过的信息判断出用户当前最可能进行的操作项。比如,终端A想要执行打印文件的任务,并识别出终端B具有打印的功能,与终端B建立起连接,那么如果之前终端B与终端A连接过,并进行过相同或相似的任务,则终端会按照之前的操作项进行相关的操作。而为了保证终端中用户的信息安全,还可以在确定当前的连接时间和地点与以前连接的时间和地点等环境状态都相同时,才允许用户按照之前连接的操作项等来建立连接。In this technical solution, the operation item refers to multiple operation options under one device function. For example, one printing function may include multiple printing operation options, such as color printing, black and white printing, and one sharing function may include multiple Shared operation options, such as saving, playing, etc., at this time, the terminal may not be able to determine the most likely operation item currently performed by the user. At this time, it can be judged whether the terminal has been connected to the peer device before, as well as the time, place, and operation items of the previous connection. In this way, the most likely operation item currently performed by the user can be judged based on the information of the previous connection. For example, terminal A wants to perform the task of printing files, and recognizes that terminal B has the function of printing, and establishes a connection with terminal B, then if terminal B has connected to terminal A before and performed the same or similar tasks, then The terminal will perform related operations according to the previous operation items. In order to ensure the information security of the user in the terminal, it is also possible to allow the user to establish a connection according to the operation items of the previous connection when it is determined that the current connection time and place are the same as the previous connection time and place.

在上述技术方案中,优选地,还包括:在所述第三判断单元116的判断结果为否时,根据接收到的选择命令,从所述多个操作项中选择出一个目标操作项,控制所述无线设备和所述其他无线设备根据所述目标操作项建立连接,并记录所述无线设备和所述其他无线设备的连接信息。In the above technical solution, preferably, it further includes: when the judgment result of the third judging unit 116 is no, according to the received selection command, select a target operation item from the plurality of operation items, and control The wireless device establishes a connection with the other wireless device according to the target operation item, and records connection information between the wireless device and the other wireless device.

在该技术方案中,如果两个设备之间是首次进行连接,也就是说之前并未设置过操作项,那么用户可以根据需要自己选择需要的操作项,终端按照用户选择的操作项对协同任务进行操作,并记录下用户的选择,以便下次连接时作为参考。In this technical solution, if the connection between the two devices is the first time, that is to say, no operation item has been set before, then the user can select the required operation item according to the needs, and the terminal performs the coordination task according to the operation item selected by the user. Do it, and record the user's choice for reference the next time you connect.

图2示出了根据本发明的实施例的设备连接方法的流程图。Fig. 2 shows a flowchart of a device connection method according to an embodiment of the present invention.

如图2所示,根据本发明的实施例的设备连接方法,包括:步骤202,在所述终端中的任一协同任务被启动时,开启所述终端的无线设备;步骤204,搜索其他无线设备;步骤206,在搜索到所述其他无线设备时,获取所述其他无线设备的设备标识;步骤208,对所述设备标识进行识别,并根据识别结果判断所述其他无线设备是否与所述任一协同任务相匹配;步骤210,在所述其他无线设备和所述任一协同任务相匹配时,建立所述无线设备和所述其他无线设备之间的连接,并开始执行所述任一协同任务。As shown in Figure 2, the device connection method according to the embodiment of the present invention includes:step 202, when any cooperative task in the terminal is started, turn on the wireless device of the terminal;step 204, search for other wireless devices device;step 206, when the other wireless device is searched, obtain the device ID of the other wireless device;step 208, identify the device ID, and judge whether the other wireless device is compatible with the other wireless device according to the identification result Any cooperative task matches;step 210, when the other wireless device matches the any cooperative task, establish a connection between the wireless device and the other wireless device, and start to execute the any collaborative tasks.

在该技术方案中,当用户在终端上启动一个协调任务时,则终端会根据该协同任务的功能去搜索周围设备中可以执行该协同任务的设备,并自动连接到该设备去执行协同任务。比如用户在终端A上选择了一项打印文件的任务,则终端会根据该打印任务,自动搜索周围的设备,并对每个设备进行识别,识别出是否有可以执行打印任务的设备,在识别出设备B具备打印功能时,则自动连接到设备B,并在连接成功后开始执行打印任务。这样,可以直接根据用户的需求去寻找合适的设备,而不需要用户再手动去选择相关设备,方便了用户的操作,提升了用户的使用体验。In this technical solution, when the user starts a coordination task on the terminal, the terminal will search for a device in the surrounding devices that can perform the coordination task according to the function of the coordination task, and automatically connect to the device to perform the coordination task. For example, if the user selects a task of printing a file on terminal A, the terminal will automatically search for surrounding devices according to the printing task, and identify each device to identify whether there is a device that can perform the printing task. When device B has the printing function, it will automatically connect to device B, and start to execute the printing task after the connection is successful. In this way, it is possible to directly find a suitable device according to the user's needs, without requiring the user to manually select the relevant device, which facilitates the user's operation and improves the user's experience.

在上述技术方案中,优选地,还包括:步骤212,在所述任一协同任务执行完毕时,关闭所述任一协同任务并断开所述无线设备和所述其他无线设备的连接。In the above technical solution, preferably, further comprising: Step 212, when the execution of any coordinated task is completed, close the any coordinated task and disconnect the wireless device from the other wireless devices.

在该技术方案中,在任务完成时,自动关闭任务,并断开两个已连接设备,这样,不但减少了用户的操作,也可以取得更好的省电效果。In this technical solution, when the task is completed, the task is automatically closed and the two connected devices are disconnected, so that not only the user's operations are reduced, but also a better power saving effect can be achieved.

在上述技术方案中,优选地,所述步骤208具体包括:对所述设备标识进行识别,并判断是否能够识别出所述设备标识对应的设备功能;将所述设备功能与所述任一协同任务的任务功能进行比较,并根据比较结果判断所述其他无线设备是否与所述任一协同任务相匹配。In the above technical solution, preferably, thestep 208 specifically includes: identifying the device identifier, and judging whether the device function corresponding to the device identifier can be identified; The task functions of the task are compared, and according to the comparison result, it is judged whether the other wireless device matches any of the coordinated tasks.

在该技术方案中,在每个设备的设备标识上都有标识该设备功能的一些特定字符,终端对搜索到的每个设备的设备标识进行识别,根据设备标识判断该设备的功能,并将识别出的设备功能和协同任务本身所需要的功能进行比较,判断出设备是否能与终端的设备进行连接,从而完成协同任务。其中,识别设备标识的方法包括但是不限于以下方式:1、在终端中预存一些设备标签,在搜索到其他终端的设备时,判断是否能够根据预存的设备标签获知其他终端的设备所具有的功能。2、在不能够根据预存的设备标签得知设备功能时,可以自动向外界(如互联网)发送搜索请求,请求获知其他终端设备的设备标识对应的设备功能。In this technical solution, the device identification of each device has some specific characters that identify the function of the device. The terminal recognizes the device identification of each device that is searched, judges the function of the device according to the device identification, and sends The identified device functions are compared with the functions required by the collaborative task itself, and it is judged whether the device can be connected with the terminal device, so as to complete the collaborative task. Among them, the method of identifying the device identification includes but is not limited to the following methods: 1. Pre-store some device tags in the terminal, and when searching for devices of other terminals, determine whether the functions of the devices of other terminals can be known according to the pre-stored device tags . 2. When the device function cannot be known according to the pre-stored device label, it can automatically send a search request to the outside world (such as the Internet) to request to know the device function corresponding to the device identifier of other terminal devices.

在上述技术方案中,优选地,还包括:判断所述设备功能中是否包含多个操作项;在所述设备功能中包含多个操作项时,判断所述无线设备和所述其他无线设备是否建立过连接;在判断结果为建立过连接时,获取记录的所述无线设备和所述其他无线设备的连接信息,其中,所述连接信息包括所述无线设备和所述其他无线设备的连接时间、连接地点以及所述其他无线设备的设备功能和操作项;以及获取当前时间和当前地点,判断所述当前时间和所述当前地点是否和所述连接时间和所述连接地点匹配,在判断结果为是时,按照所述操作项在所述无线设备和所述其他无线设备之间建立连接。In the above technical solution, preferably, further comprising: judging whether the device function contains multiple operation items; when the device function contains multiple operation items, judging whether the wireless device and the other wireless device A connection has been established; when the judging result is that the connection has been established, obtain the recorded connection information of the wireless device and the other wireless device, wherein the connection information includes the connection time of the wireless device and the other wireless device , the connection location, and the device functions and operation items of the other wireless devices; and obtaining the current time and current location, judging whether the current time and the current location match the connection time and the connection location, and determining whether the current time and the current location match the connection time and the connection location. If yes, establish a connection between the wireless device and the other wireless device according to the operation item.

在该技术方案中,操作项是指一个设备功能下的多个操作选项,比如,在一个打印功能下可能包括多个打印操作选项,如彩印、黑白印,在一个共享功能下可能包括多个共享操作选项,比如说保存、播放等,此时,终端可能并不能判断出用户当前最可能进行的操作项。此时,可以判断终端以前是否和对端的设备进行过连接,以及之前连接时的时间、地点、以及操作项等,这样,可以通过之前连接过的信息判断出用户当前最可能进行的操作项。比如,终端A想要执行打印文件的任务,并识别出终端B具有打印的功能,与终端B建立起连接,那么如果之前终端B与终端A连接过,并进行过相同或相似的任务,则终端会按照之前的操作项进行相关的操作。而为了保证终端中用户的信息安全,还可以在确定当前的连接时间和地点与以前连接的时间和地点等环境状态都相同时,才允许用户按照之前连接的操作项等来建立连接。In this technical solution, the operation item refers to multiple operation options under one device function. For example, one printing function may include multiple printing operation options, such as color printing, black and white printing, and one sharing function may include multiple Shared operation options, such as saving, playing, etc., at this time, the terminal may not be able to determine the most likely operation item currently performed by the user. At this time, it can be judged whether the terminal has been connected to the peer device before, as well as the time, place, and operation items of the previous connection. In this way, the most likely operation item currently performed by the user can be judged based on the information of the previous connection. For example, terminal A wants to perform the task of printing files, and recognizes that terminal B has the function of printing, and establishes a connection with terminal B, then if terminal B has connected to terminal A before and performed the same or similar tasks, then The terminal will perform related operations according to the previous operation items. In order to ensure the information security of the user in the terminal, it is also possible to allow the user to establish a connection according to the operation items of the previous connection when it is determined that the current connection time and place are the same as the previous connection time and place.

在上述技术方案中,优选地,还包括:在所述无线设备和其他无线设备未建立过连接时,根据接收到的选择命令,从所述多个操作项中选择出一个目标操作项,控制所述无线设备和所述其他无线设备根据所述目标操作项建立连接,并记录所述无线设备和所述其他无线设备的连接信息。In the above technical solution, preferably, it further includes: when the wireless device has not established a connection with other wireless devices, according to the received selection command, select a target operation item from the plurality of operation items, and control The wireless device establishes a connection with the other wireless device according to the target operation item, and records connection information between the wireless device and the other wireless device.

在该技术方案中,如果两个设备之间是首次进行连接,也就是说之前并未设置过操作项,那么用户可以根据需要自己选择需要的操作项,终端按照用户选择的操作项对协同任务进行操作,并记录下用户的选择,以便下次连接时作为参考。In this technical solution, if the connection between the two devices is the first time, that is to say, no operation item has been set before, then the user can select the required operation item according to the needs, and the terminal performs the coordination task according to the operation item selected by the user. Do it, and record the user's choice for reference the next time you connect.

图3示出了根据本发明的实施例的设备连接方法的具体流程图。Fig. 3 shows a specific flowchart of a device connection method according to an embodiment of the present invention.

如图3所示,根据本发明的实施例的设备连接方法的具体流程如下:As shown in FIG. 3, the specific flow of the device connection method according to the embodiment of the present invention is as follows:

步骤302,用户在A终端上选定协同任务。Step 302, the user selects a collaborative task on terminal A.

步骤304,开启A终端的无线设备。Step 304, turn on the wireless device of terminal A.

步骤306,A终端开始搜索连接范围内的其他设备。Instep 306, terminal A starts to search for other devices within the connection range.

步骤308,A终端将周边搜索到的所有其他设备中的ID识别码标签进行统计。Step 308, terminal A counts the ID tags of all other devices found in the surrounding area.

步骤310,A终端自动在其数据库中查找与每个其他设备的识别码标签相匹配的已存储的设备标签,以确定每个其他设备的功能。Step 310, Terminal A automatically searches its database for stored device tags that match the identification code tags of each other device, so as to determine the function of each other device.

步骤312,在所述步骤310的查找结果为未找到匹配的设备标签时,终端自动向外界(如互联网)发出搜索请求,请求搜索与其他设备的识别码标签相匹配的设备标签。Step 312, when the result of the search instep 310 is that no matching device tag is found, the terminal automatically sends a search request to the outside world (such as the Internet), requesting to search for device tags that match the identification code tags of other devices.

步骤314,在未搜索到设备标签时,提示用户手动创建设备标签。Step 314, prompting the user to manually create a device label when no device label is found.

步骤316,在搜索到匹配的设备标签时,或用户已创建完设备标签时,自动在A终端的数据库中存储该设备标签。Step 316, when a matching device tag is found, or when the user has created the device tag, automatically store the device tag in the database of terminal A.

步骤318,根据终端查到的设备标签,查找是否有对应的标签任务。Step 318, according to the device label found by the terminal, check whether there is a corresponding label task.

步骤320,在未查找到标签任务时,终端自动向外界(互联网)发出搜索请求,搜索设备标签对应的任务。Step 320, when no tag task is found, the terminal automatically sends a search request to the outside world (Internet) to search for tasks corresponding to the device tag.

步骤322,在为搜索到任务时,终端会让用户手动创建设备标签对应的任务。Step 322, when no task is found, the terminal allows the user to manually create a task corresponding to the device label.

步骤324,在搜索到设备标签对应的任务或者用户手动创建完设备标签对应的任务后,终端自动在数据库中存储该设备标签的对应任务。Step 324, after searching for the task corresponding to the device tag or manually creating the task corresponding to the device tag, the terminal automatically stores the corresponding task of the device tag in the database.

步骤326,判断设备标签的任务是否有多于2个以上的执行任务。其中执行任务即操作项,是指一个设备功能下的多个操作选项,比如,在一个打印功能下可能包括多个打印操作选项,如彩印、黑白印,在一个共享功能下可能包括多个共享操作选项,比如说保存、播放等,此时,终端可能并不能判断出用户当前最可能进行的操作项。Step 326, judging whether the task of the device tag has more than two executing tasks. Among them, the execution task is the operation item, which refers to multiple operation options under one device function. For example, one printing function may include multiple printing operation options, such as color printing and black and white printing, and one sharing function may include multiple sharing options. Operation options, such as saving, playing, etc., at this time, the terminal may not be able to determine the most likely operation item currently performed by the user.

步骤328,判断终端A的设备和设备标签对应的设备B之间是否是第一次进行连接。Instep 328, it is judged whether the connection between the device of the terminal A and the device B corresponding to the device label is the first time.

步骤330,在步骤328的判断结果为否时,判断当前终端数据传输环境定量标签(包括全球定位系统GPS,时间等)是否与记录的数据传输环境定量标签相匹配。在判断结果为是时,进入步骤344,在判断结果为否时,进入步骤332。Step 330 , if the determination result instep 328 is negative, determine whether the quantitative label of the current terminal data transmission environment (including global positioning system GPS, time, etc.) matches the recorded quantitative label of the data transmission environment. If the judgment result is yes, go to step 344, and if the judgment result is no, go to step 332.

步骤332,终端自动报警并提示用户传输数据环境变量发生改变是否继续执行协同任务。在检测到用户传输数据环境变量发生改变时,提醒用户,这样可以保证用户终端中的信息的安全。Step 332, the terminal automatically alarms and prompts the user whether to continue executing the collaborative task if the environment variable of the transmitted data changes. When it is detected that the environment variable of the data transmitted by the user changes, the user is reminded, which can ensure the security of the information in the user terminal.

步骤334,在用户选择不执行协同任务时,自动传输任务失败。Step 334, when the user chooses not to execute the coordinated task, the automatic task transmission fails.

步骤336,在用户选择执行协同任务时,终端记录下该设备标签对应的任务的传输数据环境变量,并将其增加到数据库中。Step 336, when the user chooses to execute the coordinated task, the terminal records the environment variable of the transmission data of the task corresponding to the device tag, and adds it to the database.

步骤338,在步骤328的判断结果为是时,终端弹出多个执行任务让用户选择一个或者多个执行任务开始执行。Step 338, when the judgment result ofstep 328 is yes, the terminal pops up a plurality of execution tasks to allow the user to select one or more execution tasks to start execution.

步骤340,自动收录当前终端数据传输环境定量标签(GPS,时间)。Step 340, automatically collect the quantitative tags (GPS, time) of the current terminal data transmission environment.

步骤342,记录完成后标签任务开始执行协同任务。Step 342, after the recording is completed, the tag task starts to execute the coordinated task.

步骤344,任务操作完成后自动关闭任务。Instep 344, the task is automatically closed after the task operation is completed.

以上结合附图详细说明了本发明的技术方案,通过本发明的技术方案,解决了终端与终端之间连接时手动操作任务的重复性和频繁性,减少用户的操作,提升用户的使用体验。The above describes the technical solution of the present invention in detail in conjunction with the accompanying drawings. Through the technical solution of the present invention, the repetition and frequency of manual operation tasks when connecting between terminals are solved, user operations are reduced, and user experience is improved.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (10)

Translated fromChinese
1.一种终端,其特征在于,包括:1. A terminal, characterized in that, comprising:设备开启单元,用于在所述终端中的任一协同任务被启动时,开启所述终端的无线设备;A device enabling unit, configured to enable the wireless device of the terminal when any coordinated task in the terminal is activated;搜索单元,用于搜索其他无线设备;A search unit for searching other wireless devices;获取单元,用于在所述搜索单元搜索到所述其他无线设备时,获取所述其他无线设备的设备标识;an obtaining unit, configured to obtain the device identifier of the other wireless device when the other wireless device is found by the search unit;第一判断单元,用于对所述设备标识进行识别,并根据识别结果判断所述其他无线设备是否与所述任一协同任务相匹配;A first judging unit, configured to identify the device identifier, and judge whether the other wireless device matches any of the coordinated tasks according to the recognition result;任务执行单元,在所述第一判断单元的判断结果为是时,建立所述无线设备和所述其他无线设备之间的连接,并开始执行所述任一协同任务。The task executing unit, when the judgment result of the first judging unit is yes, establishes the connection between the wireless device and the other wireless device, and starts to execute any one of the cooperative tasks.2.根据权利要求1所述的终端,其特征在于,还包括:2. The terminal according to claim 1, further comprising:任务关闭单元,用于在所述任一协同任务执行完毕时,关闭所述任一协同任务并断开所述无线设备和所述其他无线设备的连接。A task closing unit, configured to close any of the coordinated tasks and disconnect the wireless device from the other wireless devices when the execution of any of the coordinated tasks is completed.3.根据权利要求1所述的终端,其特征在于,所述第一判断单元包括:3. The terminal according to claim 1, wherein the first judging unit comprises:识别子单元,用于对所述设备标识进行识别,并判断是否能够识别出所述设备标识对应的设备功能;An identifying subunit, configured to identify the device identifier, and determine whether the device function corresponding to the device identifier can be identified;比较子单元,将所述设备功能与所述任一协同任务的任务功能进行比较,并根据比较结果判断所述其他无线设备是否与所述任一协同任务相匹配。The comparison subunit compares the device function with the task function of any one of the coordinated tasks, and judges whether the other wireless device matches the any one of the coordinated tasks according to the comparison result.4.根据权利要求1至3中任一项所述的终端,其特征在于,4. The terminal according to any one of claims 1 to 3, characterized in that,还包括:Also includes:第二判断单元,用于判断所述设备功能中是否包含多个操作项;a second judging unit, configured to judge whether the device function includes multiple operation items;第三判断单元,在所述第二判断单元的判断结果为是时,判断所述无线设备和所述其他无线设备是否建立过连接;A third judging unit, when the judging result of the second judging unit is yes, judging whether a connection has been established between the wireless device and the other wireless device;信息获取单元,在所述第三判断单元的判断结果为是时,获取记录的所述无线设备和所述其他无线设备的连接信息,其中,所述连接信息包括所述无线设备和所述其他无线设备的连接时间、连接地点以及所述其他无线设备的设备功能和操作项;An information acquiring unit, when the determination result of the third determining unit is yes, acquiring the recorded connection information of the wireless device and the other wireless device, wherein the connection information includes the connection information of the wireless device and the other wireless device When the wireless device is connected, where it is connected, and the device functions and operating items of the other wireless device;所述任务执行单元还用于:The task execution unit is also used for:获取当前时间和当前地点,判断所述当前时间和所述当前地点是否和所述连接时间和所述连接地点匹配,在判断结果为是时,按照所述操作项在所述无线设备和所述其他无线设备之间建立连接。Acquiring the current time and current location, judging whether the current time and the current location match the connection time and the connection location, if the judgment result is yes, according to the operation item in the wireless device and the A connection is established between other wireless devices.5.根据权利要求4所述的终端,其特征在于,还包括:5. The terminal according to claim 4, further comprising:在所述第三判断单元的判断结果为否时,根据接收到的选择命令,从所述多个操作项中选择出一个目标操作项,控制所述无线设备和所述其他无线设备根据所述目标操作项建立连接,并记录所述无线设备和所述其他无线设备的连接信息。When the determination result of the third determination unit is negative, select a target operation item from the plurality of operation items according to the received selection command, and control the wireless device and the other wireless devices according to the The target operation item establishes a connection, and records connection information between the wireless device and the other wireless device.6.一种设备连接方法,其特征在于,包括:6. A device connection method, characterized in that, comprising:开启步骤,在所述终端中的任一协同任务被启动时,开启所述终端的无线设备;The starting step is to start the wireless device of the terminal when any coordinated task in the terminal is started;搜索步骤,搜索其他无线设备;Search steps to search for other wireless devices;获取步骤,在搜索到所述其他无线设备时,获取所述其他无线设备的设备标识;The obtaining step is to obtain the device identification of the other wireless device when the other wireless device is found;第一判断步骤,对所述设备标识进行识别,并根据识别结果判断所述其他无线设备是否与所述任一协同任务相匹配;The first judging step is to identify the device identifier, and judge whether the other wireless device matches any of the collaborative tasks according to the identification result;任务执行步骤,在所述其他无线设备和所述任一协同任务相匹配时,建立所述无线设备和所述其他无线设备之间的连接,并开始执行所述任一协同任务。The task execution step is to establish a connection between the wireless device and the other wireless device when the other wireless device matches the any coordinated task, and start to execute the any coordinated task.7.根据权利要求6所述的设备连接方法,其特征在于,还包括:7. The device connection method according to claim 6, further comprising:在所述任一协同任务执行完毕时,关闭所述任一协同任务并断开所述无线设备和所述其他无线设备的连接。When the execution of any of the coordinated tasks is completed, close the any coordinated task and disconnect the wireless device from the other wireless devices.8.根据权利要求6所述的设备连接方法,其特征在于,所述第一判断步骤包括:8. The device connection method according to claim 6, wherein the first judging step comprises:对所述设备标识进行识别,并判断是否能够识别出所述设备标识对应的设备功能;Identifying the device identifier, and judging whether the device function corresponding to the device identifier can be identified;将所述设备功能与所述任一协同任务的任务功能进行比较,并根据比较结果判断所述其他无线设备是否与所述任一协同任务相匹配。Comparing the device function with the task function of any one of the coordinated tasks, and judging whether the other wireless device matches the any one of the coordinated tasks according to the comparison result.9.根据权利要求6至8中任一项所述的设备连接方法,其特征在于,还包括:9. The device connection method according to any one of claims 6 to 8, further comprising:第二判断步骤,判断所述设备功能中是否包含多个操作项;The second judging step is judging whether the device function includes multiple operation items;第三判断步骤,在所述第二判断步骤的判断结果为是时,判断所述无线设备和所述其他无线设备是否建立过连接;A third judging step, when the judging result of the second judging step is yes, judging whether the wireless device has established a connection with the other wireless device;信息获取步骤,在所述第三判断步骤的判断结果为是时,获取记录的所述无线设备和所述其他无线设备的连接信息,其中,所述连接信息包括所述无线设备和所述其他无线设备的连接时间、连接地点以及所述其他无线设备的设备功能和操作项;以及An information obtaining step, when the judgment result of the third judgment step is yes, obtain the recorded connection information of the wireless device and the other wireless device, wherein the connection information includes the connection information of the wireless device and the other wireless device When the wireless device was connected, where it was connected, and the device functions and actions of said other wireless device; and获取当前时间和当前地点,判断所述当前时间和所述当前地点是否和所述连接时间和所述连接地点匹配,在判断结果为是时,按照所述操作项在所述无线设备和所述其他无线设备之间建立连接。Acquiring the current time and current location, judging whether the current time and the current location match the connection time and the connection location, if the judgment result is yes, according to the operation item in the wireless device and the A connection is established between other wireless devices.10.根据权利要求9所述的设备连接方法,其特征在于,还包括:10. The device connection method according to claim 9, further comprising:在所述第三判断步骤的判断结果为否时,根据接收到的选择命令,从所述多个操作项中选择出一个目标操作项,控制所述无线设备和所述其他无线设备根据所述目标操作项建立连接,并记录所述无线设备和所述其他无线设备的连接信息。When the judgment result of the third judging step is No, according to the received selection command, select a target operation item from the plurality of operation items, and control the wireless device and the other wireless devices according to the The target operation item establishes a connection, and records connection information between the wireless device and the other wireless device.
CN201310705906.9A2013-12-192013-12-19Terminal and equipment connecting methodActiveCN103702440B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201310705906.9ACN103702440B (en)2013-12-192013-12-19Terminal and equipment connecting method

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201310705906.9ACN103702440B (en)2013-12-192013-12-19Terminal and equipment connecting method

Publications (2)

Publication NumberPublication Date
CN103702440Atrue CN103702440A (en)2014-04-02
CN103702440B CN103702440B (en)2017-05-17

Family

ID=50363809

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201310705906.9AActiveCN103702440B (en)2013-12-192013-12-19Terminal and equipment connecting method

Country Status (1)

CountryLink
CN (1)CN103702440B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105472776A (en)*2015-11-172016-04-06飞天诚信科技股份有限公司Method for establishing Bluetooth connection and Bluetooth smart key device
CN105743929A (en)*2016-04-282016-07-06广东欧珀移动通信有限公司Terminal interaction method and device
CN105979604A (en)*2016-05-312016-09-28北京疯景科技有限公司Equipment connecting method and equipment connecting device
CN106028294A (en)*2016-05-312016-10-12北京疯景科技有限公司 Device connection method and device
CN107623736A (en)*2017-09-282018-01-23上海爱优威软件开发有限公司A kind of equipment connection method and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105472776A (en)*2015-11-172016-04-06飞天诚信科技股份有限公司Method for establishing Bluetooth connection and Bluetooth smart key device
CN105472776B (en)*2015-11-172018-08-28飞天诚信科技股份有限公司A kind of method that establishing bluetooth connection and blue-tooth intelligence key devices
CN105743929A (en)*2016-04-282016-07-06广东欧珀移动通信有限公司Terminal interaction method and device
CN105743929B (en)*2016-04-282019-05-17Oppo广东移动通信有限公司Terminal interaction method and device
CN105979604A (en)*2016-05-312016-09-28北京疯景科技有限公司Equipment connecting method and equipment connecting device
CN106028294A (en)*2016-05-312016-10-12北京疯景科技有限公司 Device connection method and device
CN107623736A (en)*2017-09-282018-01-23上海爱优威软件开发有限公司A kind of equipment connection method and system

Also Published As

Publication numberPublication date
CN103702440B (en)2017-05-17

Similar Documents

PublicationPublication DateTitle
US11917037B2 (en)Methods, devices, and systems for determining a subset for autonomous sharing of digital media
CN104038263B (en)Method and device for establishing Bluetooth connection
EP2677774B1 (en)Method and apparatus for managing a group profile in a wi-fi direct communication system
EP3253080B1 (en)Data sharing method and system
EP2833653B1 (en)Method and apparatus for establishing communication between an image photographing apparatus and a user device
CN103702440B (en)Terminal and equipment connecting method
CN104137480A (en) Sensor-based configuration and control of networked devices
US11412555B2 (en)Mobile terminal
CN104159226A (en)Network connection method and device
CN103944870B (en)Communicator and its control method
US20140297806A1 (en)Machine to machine system, method and server using social network service
CN102684752B (en)Identifying method and indentifying device for close range terminal users
CN103857013A (en)Method for setting personal hotspot and mobile terminal
KR102343301B1 (en)Method for wireless connection and electronic device thereof
CN104869562A (en)Information transmission method, device and system
CN107645789B (en)Network access method, device and system
CN107580132B (en)Information sending method, information sending device, storage medium and electronic equipment
CN110945882B (en)Information pushing method and terminal equipment
CN106487990B (en)Electronic device and information display control method
US20080120398A1 (en)Communication apparatus, communication method, and storage medium therefor
KR20140119917A (en)Method for providing User Interface for wireless communication connection, Terminal thereof and Wireless Communication System thereof
CN107370863B (en)Connection information updating method and device based on Bluetooth connection
WO2015122129A1 (en)Communication apparatus, method for controlling communication apparatus, and program
CN105430642B (en)Document transmission method and device
CN106303903B (en)User searching method and device and server

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
TR01Transfer of patent right
TR01Transfer of patent right

Effective date of registration:20250610

Address after:100071 East Binhe Road, No.2, Building 6, 4th Floor, Room 4709, Fengtai District, Beijing

Patentee after:Beijing Jinpeng Baoshu Technology Co.,Ltd.

Country or region after:China

Address before:518040 Guangdong city in Shenzhen Province, Che Kung Temple Tian An Digital City, the innovation and Technology Square, B Building 8 floor

Patentee before:YULONG COMPUTER TELECOMMUNICATION SCIENTIFIC (SHENZHEN) Co.,Ltd.

Country or region before:China


[8]ページ先頭

©2009-2025 Movatter.jp