Device connection method, device, device and storage medium
By determining the target type device identification in the first device and sending trigger information, automatic connection between electronic devices is realized, and the problems of low connection efficiency and misconnection caused by manual manual operations are solved, thereby improving the connection efficiency.
Patent Information
- Application Number
- CN202110500085.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-08
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2041-05-08
AI Technical Summary
When multiple electronic devices are interconnected, manual search and configuration information is manually required, resulting in low device connection efficiency and prone to misconnection problems.
By determining whether a device identifier of the target type is stored in the first device, and sending a trigger information to the second device when it is determined to exist, instructing it to send a connection request, wireless connection is realized, and manual manual operation is eliminated, and automatic operation is realized connect.
The equipment connection efficiency is improved, misconnection is avoided, automatic connection between the first device and the second device is realized, and the connection process is simplified.
Smart Images

Figure CN115315025B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a device connection method, apparatus, device and storage medium. Background Art
[0002] With the development of science and technology, there are more and more types of electronic devices. Each electronic device has certain functions, and the interconnection of multiple electronic devices can realize more functions.
[0003] Currently, when multiple electronic devices are interconnected, they are manually installed and deployed, and then each electronic device is adapted and connected. During the adaptation and connection process, each device needs to manually search and configure relevant information.
[0004] However, if there are a large number of electronic devices, it will take a long time, resulting in low device connection efficiency. Summary of the invention
[0005] The embodiments of the present application provide a device connection method, apparatus, device and storage medium, which can solve the problem of low device connection efficiency. The technical solution is as follows:
[0006] In a first aspect, an embodiment of the present application provides a device connection method, which is applied to a first device, and the method includes: determining whether the first device stores an identifier of a device of a target type; if the first device stores an identifier of a device of the target type, sending trigger information to a second device, wherein the trigger information is used to instruct the second device to send a connection request, the type of the second device is the target type, and the second device is connected to the first device via a line input line; receiving the connection request sent by the second device; and establishing a wireless connection with the second device according to the connection request.
[0007] In a second aspect, an embodiment of the present application provides a device connection method, which is applied to a second device, and the method includes: receiving trigger information sent by the first device, and the trigger information is used to trigger the first device to send a connection request; the first device is connected to the second device via a line input line; and according to the trigger information, a connection request is sent to the first device.
[0008] In the third aspect, an embodiment of the present application provides a device connection device, including: a determination module, used to determine whether the identification of a device of the target type is stored in a first device; the first device is connected to a second device via a line input line; a first sending module, used to send trigger information to the second device if the identification of the device of the target type is stored in the first device, the trigger information is used to instruct the second device to send a connection request, the type of the second device is the target type, and the second device is connected to the first device via a line input line; a first receiving module, used to receive the connection request sent by the second device; a connection module, used to establish a wireless connection with the second device according to the connection request.
[0009] In a fourth aspect, an embodiment of the present application provides a device connection device, comprising: a second receiving module, used to receive trigger information sent by a first device, the trigger information being used to trigger the first device to send a connection request; the first device is connected to a second device via a line input line; and a second sending module, used to send a connection request to the first device according to the trigger information.
[0010] In a fifth aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the steps of the method of the first aspect above.
[0011] In a sixth aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the steps of the method of the second aspect described above.
[0012] In the seventh aspect, an embodiment of the present application provides a smart interactive tablet, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the steps of the method of the first aspect above.
[0013] In an eighth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the steps of the method of the second aspect mentioned above.
[0014] In an embodiment of the present application, it is determined whether the identifier of a device of the target type is stored in the first device; if the identifier of the device of the target type is stored in the first device, a trigger message is sent to the second device, the trigger message is used to instruct the second device to send a connection request, the type of the second device is the target type, and the second device is connected to the first device via a line input line; the connection request sent by the second device is received; and a wireless connection is established with the second device according to the connection request. In this scheme, since it is first determined whether the identifier of the device of the target type is stored in the first device, and when it is determined that the identifier of the device of the target type is stored in the first device, the second device is triggered to send a connection request to the first device, thereby automatically reconnecting with the second device. The problem that the device connection requires manual operation, resulting in low device connection efficiency and easy misconnection is solved; the manual operation step is eliminated, and the automatic connection between the first device and the second device is realized, thereby improving the technical effect of improving the device connection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0016] Figure 1 The following is an example of an application scenario of the device connection method applicable to the embodiment of the present application. Figure 1 ;
[0017] Figure 2 Interaction of the device connection method provided in the embodiment of the present application Figure 1 ;
[0018] Figure 3 Interaction of the device connection method provided in the embodiment of the present application Figure 2 ;
[0019] Figure 4 A flow chart of a device connection method provided in an embodiment of the present application;
[0020] Figure 5 The following is an example of an application scenario of the device connection method applicable to the embodiment of the present application. Figure 2 ;
[0021] Figure 6 Interaction of the device connection method provided in the embodiment of the present application Figure 3 ;
[0022] Figure 7 A schematic diagram of the structure of a device connection device provided in an embodiment of the present application;
[0023] Figure 8 A schematic diagram of the structure of a device connection device provided in an embodiment of the present application;
[0024] Fig. 9 A schematic diagram of the structure of the smart interactive tablet provided in the embodiment of the present application;
[0025] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
[0027] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0028] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0029] In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0030] Figure 1 The following is an example of an application scenario of the device connection method applicable to the embodiment of the present application. Figure 1 .like Figure 1 As shown, the application scenario includes: a first device 11 and at least one second device 12; wherein the first device 11 may be a smart terminal, a personal computer (PC), and the second device 12 may be an audio device.
[0031] In some scenarios, the first device 11 may also be a smart interactive tablet, and the second device 12 may also be a speaker.
[0032] Among them, the hardware part of the smart interactive tablet is composed of a touch display module, an intelligent processing system (including a controller) and other parts, which are combined together by overall structural parts and are also supported by a dedicated software system. The touch display module includes a display screen, a touch component and a backlight component. The backlight component is used to provide a backlight source for the display screen. The display screen generally uses a liquid crystal display device for displaying pictures. The touch component is set on the display screen or at the front end of the display screen to collect the user's touch operation data and send the collected touch operation data to the intelligent processing system for processing.
[0033] In actual use, the screen data is displayed on the display screen of the smart interactive tablet. When the user clicks on the content displayed on the display screen with a touch object such as a finger or a stylus, for example, clicks on a graphic button displayed on the display screen, the touch component of the smart interactive tablet will collect the touch data, and the touch component will convert the touch data into coordinate data of the touch point and send it to the intelligent processing system, or send it to the intelligent processing system and convert it into coordinate data of the touch point by the intelligent processing system. After the intelligent processing system obtains the coordinate data of the touch point, it implements the corresponding control operation according to the pre-set program, drives the display content of the display screen to change, and realizes a variety of display and operation effects.
[0034] Touch components can be divided into five basic categories based on technical principles: vector pressure sensing technology touch components, resistance technology touch components, capacitance technology touch components, electromagnetic technology touch screens, infrared technology touch components, and surface acoustic wave technology touch components. According to the working principle of the touch component and the medium for transmitting information, the touch component can be divided into four categories: resistance, capacitance induction, electromagnetic induction, infrared, and surface acoustic wave.
[0035] When the user touches the display screen with a finger or a pen, the touch component can collect data from the touch point and send it to the intelligent processing system, and then use the built-in software of the intelligent processing system to implement different functional applications, thereby realizing touch control of the intelligent processing system.
[0036] The “screen” and “large screen” mentioned in this application refer to the display screen of the smart interactive tablet; the smart interactive tablet displaying a certain interface means that the display screen of the smart interactive tablet displays the interface.
[0037] Smart interactive tablets are integrated devices that use touch technology to control the content displayed on display tablets (LCD, LED, PDP) and realize human-computer interaction. Smart interactive tablets can build a system with central consoles, cameras, computers, speakers, microphones and other devices to achieve more functions.
[0038] Taking the teaching scenario as an example, teachers can teach through smart interactive tablets; in addition, teachers can also connect smart interactive tablets with teaching electronic devices such as speakers and microphones to achieve diversified teaching. There are many teaching electronic devices in school classrooms, and each device is independent of each other. To achieve interconnection between devices, it is necessary to first deploy and install these devices, and then connect these devices. Taking the connection between these devices via Bluetooth as an example, the operator needs to turn on the discovery and pairing functions of each electronic device in turn, so that other electronic devices can be searched. After other electronic devices search for surrounding electronic devices, the operator needs to manually confirm the electronic devices that need to be connected again. The above process is repeated many times to complete the adaptation connection of each electronic device. When the number of devices is large, the device needs to be searched and confirmed one by one during the adaptation connection process, which makes the device connection efficiency low; in addition, during the search process, the smart interactive tablet may search for multiple devices around. At this time, it is necessary to manually screen out the devices that the smart interactive tablet currently needs to connect to, and then manually connect. In this way, there may be problems with misconnection.
[0039] In response to the above technical problems, the inventors of the present application propose the following technical concept: in some scenarios where the first device is used, the type of the second device that the first device needs to connect to is usually a fixed type. The fixed type can be one type or multiple types. In each device connection process, the first device usually establishes a wireless connection with one type of the second device. Therefore, if the first device stores the identifier of the second device that has established a wireless connection with the first device, it can automatically reconnect to the second device. In order to avoid the situation where the connection fails when the first device actively reconnects to the second device when the second device is in a hidden state. The first device can also send a trigger message to the second device to trigger the second device to automatically reconnect to the first device.
[0040] The technical solution of the present invention and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.
[0041] based on Figure 1 The scene shown, Figure 2Interaction of the device connection method provided in the embodiment of the present application Figure 1 .like Figure 2 As shown, the device connection method of this embodiment includes the following steps:
[0042] Step S201: Determine whether the first device stores an identifier of a device of the target type.
[0043] The execution subject of this step may be the first device.
[0044] Taking the application of smart interactive tablet in teaching scenario as an example, the target type of device can be a speaker. For speakers that have established wireless connection with the smart interactive tablet and speakers that have not established wireless connection with the smart interactive tablet, they all belong to the same target type of device.
[0045] In this embodiment, determining whether the first device stores the identifier of the target type of device is intended to determine whether the first device has established a wireless connection with the target type of device. If the first device has established a wireless connection with the target type of device, the first device stores the identifier of the target type of device. Based on the identifier of the device stored in the first device, it can be determined whether the first device has established a wireless connection with the target type of device.
[0046] Step S202: If the first device stores an identifier of a device of the target type, the first device sends trigger information to the second device, where the trigger information is used to instruct the second device to send a connection request. The type of the second device is the target type, and the second device is connected to the first device via a line input line.
[0047] In this embodiment, the first device and the second device can transmit audio through a line-in connection, or can also transmit data through low-power wireless communication technology. This embodiment aims to wirelessly connect the first device and the second device.
[0048] In this embodiment, the second device may be in a hidden state or in a discoverable state. Therefore, in order to avoid the situation where the second device is in a hidden state, the first device sends a connection request to the second device, but the second device cannot receive it, resulting in a connection failure. In this embodiment, the second device can be connected to the first device through a link method such as a line in line, so that when the second device and the first device have not established a wireless connection, the first device sends trigger information to the second device through the line in line to trigger the second device to actively connect back to the first device.
[0049] In some embodiments, the trigger information may be preset audio information. Still taking the smart interactive tablet and the speaker as an example, the smart interactive tablet is provided with a line out interface, and the speaker is provided with a line in interface. The line out interface of the smart interactive tablet is connected to the line in interface provided on the speaker through a line in line, so that the transmission of the trigger information can be realized.
[0050] Among them, the second device sends a connection request to the first device by means of directional broadcast. Therefore, the role of the trigger information can be understood as triggering the directional broadcast function of the second device, so that the second device sends a connection request to the first device by means of directional broadcast. For the specific implementation of directional broadcast, please refer to the introduction of related technologies, which will not be repeated in this embodiment.
[0051] Step S203: The second device receives trigger information.
[0052] Step S204: The second device sends a connection request to the first device according to the trigger information.
[0053] The second device sends a connection request to the first device by way of directional broadcast.
[0054] Step S205: The first device receives a connection request sent by the second device.
[0055] Step S206: The first device establishes a wireless connection with the second device according to the connection request.
[0056] In this embodiment, the connection request sent by the second device includes the connection information of the second device. The first device receives the connection request sent by the second device and establishes a wireless connection with the first device according to the connection information of the second device in the connection request. For the specific content of the connection information, please refer to the introduction of the related technology, which will not be repeated here.
[0057] In some embodiments, after the first device establishes a wireless connection with the second device, the state of the second device can be obtained, and the second device can be controlled according to the state of the second device.
[0058] The device connection method provided in this embodiment determines whether the identifier of the target type of device is stored in the first device, and if the identifier of the target type of device is stored in the first device, trigger information is sent to the second device through the line input line, and the trigger information is used to instruct the second device to send a connection request, the type of the second device is the target type, and according to the connection request sent by the second device, a wireless connection is established with the second device. In this scheme, since it is first determined whether the identifier of the target type of device is stored in the first device, and when it is determined that the identifier of the target type of device is stored in the first device, the second device is triggered to send a connection request to the first device, so as to achieve a back connection with the second device, the above process does not require manual operation, and can achieve automatic connection between the first device and the second device, so that the connection efficiency can be improved. In addition, the second device is connected to the first device through a linking method such as a line in line, so that when the second device and the first device do not establish a wireless connection, the first device can send a trigger information to the second device through the line in line to trigger the second device to actively connect back to the first device. It can avoid the situation where the second device is in a hidden state, the first device sends a connection request to the second device, and the second device cannot receive it, resulting in a connection failure.
[0059] Figure 3 Interaction of the device connection method provided in the embodiment of the present application Figure 2 .like Figure 3 As shown, the device connection method may also include the following steps:
[0060] Step S207: If the first device does not store the identifier of the target type of device, the first device sends preset information to the second device, where the preset information is used to trigger the second device to start the discovery and pairing function.
[0061] The preset information may be preset audio information. It should be understood that the trigger information and the preset information are used to trigger different functions of the second device. In order to distinguish the trigger information from the preset information, the audio information corresponding to the trigger information and the preset information in this embodiment may be different audio information.
[0062] In some embodiments, the first device loads preset audio information and outputs it to the second device through the line out interface. The second device receives the preset audio information through the line in interface and identifies whether the received audio information is the preset audio information. If the received audio information is the preset audio information, it activates its own discovery and pairing functions.
[0063] Step S208: The second device receives preset information.
[0064] Step S209: The second device starts discovery and pairing functions.
[0065] Step S210: The first device establishes a wireless connection with the second device through the discovery and pairing functions of the second device.
[0066] In this embodiment, the second device receives the preset information and turns on its own discovery and pairing functions, wherein the discovery and pairing functions are used to enable the first device to discover the second device and pair with the second device, thereby establishing a wireless connection.
[0067] Specifically, after the first device sends the preset information, it can search for a device of the target type. If a device of the target type is found, a wireless connection is established with the searched device of the target type.
[0068] In this embodiment, when the identifier of the target type of device is not stored in the first device, the first device sends preset information to the second device to trigger the second device to start the discovery and pairing functions, thereby establishing a wireless connection with the second device. Since the first device sends preset information to the second device to trigger the second device to start the discovery and pairing functions when the identifier of the target type of device is not stored in the first device, it is possible to achieve automatic connection with the second device when the first device has not established a wireless connection with the target type of device.
[0069] On the basis of the above embodiment, in order to conveniently and quickly determine whether the second device stores the identifier of the target type of device. The first device may also establish a storage list for storing the identifiers of devices that establish a wireless connection with the first device. Specifically, after the first device establishes a wireless connection with the second device, the identifier of the second device that is connected this time may be stored in the storage list. The form of the storage list may be as shown in Table 1 below:
[0070] Identification of connected devices SS*1 SS*2 ……
[0071] In the above Table 1, SS*1 and SS*2 are identifiers of the same type of equipment.
[0072] Similarly, in the second device, a storage list may also be established to store the identifiers of the devices connected to the second device, so as to realize automatic reconnection next time.
[0073] Figure 4 This is a flow chart of a device connection method provided in an embodiment of the present application. Figure 4 As shown, in the device connection method, determining whether the first device stores an identifier of a device of the target type specifically includes the following steps:
[0074] Step S401: Obtain a storage list, where the storage list is used to store identifiers of devices that have established wireless connections with the first device.
[0075] Step S402: If the type indicated by the identifier of the device in the storage list is the target type, determine the identifier of the device of the target type stored in the first device.
[0076] Step S403: If the type indicated by the identifier of the device that does not exist in the storage list is the target type, it is determined that the identifier of the device of the target type is not stored in the first device.
[0077] It is understandable that in the initial stage, that is, the first device has not established a wireless connection with any device, the storage list is empty. In this case, the first device determines that the storage list is empty based on the storage list, and can determine that the identifier of the target type of device is not stored in the first device, that is, the first device has not established a wireless connection with the target type of device. At this time, the implementation method shown in steps S207 to S210 can be followed. After step S210 is executed, the first device stores the identifier of the second device in the storage list. Then, when the first device and the second device are connected next time, they can directly realize automatic reconnection according to the implementation method shown in steps S202 to S206.
[0078] For example, in a teaching scenario, a smart interactive tablet is usually connected to a speaker. For a smart interactive tablet, a speaker is a type of device, and all speakers are named according to the standard naming method. For example, speaker 1 is named "SS*1" and speaker 2 is named "SS*2". It can be understood that although SS*1 and SS*2 are names of different speakers, their prefixes "SS*" both represent the names of the speakers. Therefore, if it is detected that the identifier of the device in the storage list includes the "SS*" identifier, it means that the speaker has established a wireless connection with the smart interactive tablet. Then, all subsequent speakers can automatically reconnect to the smart interactive tablet.
[0079] On the basis of the above-mentioned implementation of automatic connection between the first device and the second device, in order to further ensure that the automatically connected device is the device to be connected, the present application can also propose the following embodiments. Specifically: after the second device establishes a wireless connection with the first device, the second device sets its own state to a hidden state.
[0080] In the hidden state, other devices cannot discover the second device. Then, the first device that needs to establish a wireless connection with the second device can send a trigger message to the second device through the line in line to trigger the second device to actively connect back to the first device. In this way, the defect that the device automatically connected during the adaptation and connection of the first device is not the device to be connected can be avoided. In addition, multiple second devices will not affect each other when they are adapted and connected at the same time. For example, there are smart interactive tablet 1 and speaker 1 in classroom 1, and there are smart interactive tablet 2 and speaker 2 in classroom 2. When the distance between classroom 1 and classroom 2 is very close, and speaker 1 and speaker 2 are both discoverable, smart interactive tablet 1 will search for speaker 1 and speaker 2 at the same time during the adaptation and connection process. If the status of speaker 1 and speaker 2 is hidden, the smart interactive tablet 1 will not search for speaker 1 and speaker 2. The smart interactive tablet 1 will search for speaker 1 and speaker 2 through Figure 2 The device connection method of the illustrated embodiment performs device connection with the speaker 1 without being affected by other unpaired or paired devices, thereby avoiding erroneous connection.
[0081] Figure 5 The following is an example of an application scenario of the device connection method applicable to the embodiment of the present application. Figure 2 .like Figure 5 As shown, the application scenario includes: a first device 51, at least one second device 52 and at least one third device 53; a third device 53 can be connected to at least one second device 52, and the third device 53 and the second device 52 are connected to each other through a high-real-time wireless communication technology, thereby realizing a low-latency wireless amplification function and data transmission communication. Optionally, the high-real-time wireless communication technology can adopt infrared communication technology.
[0082] The first device 51 may be a smart terminal or a personal computer (PC), the second device 52 may be an audio device, and the third device 53 may be a microphone.
[0083] The first device 51 may be Figure 1 The first device 11 and the second device 52 may be Figure 1 The second device 12 described. For the introduction of the first device 51 and the second device 52, reference can be made to the above introduction of the first device 11 and the second device 12. This embodiment will not be described in detail here.
[0084] In this embodiment, the first device and the third device are independent of each other, and there is no direct communication method.
[0085] The following is based on Figure 5 The scenario shown is a detailed introduction to the device connection method provided in the embodiment of the present application.
[0086] Figure 6 Interaction of the device connection method provided in the embodiment of the present application Figure 3 .like Figure 6 As shown, the device connection method of this embodiment includes the following steps:
[0087] Step S601: The first device sends a first transfer message to the second device.
[0088] Step S602: The second device receives the first transfer message and forwards it to the third device;
[0089] Step S603: The third device sends a second transfer message to the second device;
[0090] Step S604: The second device receives the second transfer message and forwards it to the first device.
[0091] Before executing the method of this embodiment, the second device needs to be connected to the third device first.
[0092] In this embodiment, the first device can communicate with the third device through the second device, thereby controlling the third device. In some embodiments, the first device can query the status of the third device through the second device, and control the third device according to the status query result. It can be understood that the second device serves as a message transfer station for the first device and the third device.
[0093] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0094] See also Figure 7 , which shows a schematic diagram of the structure of a device connection device provided by an exemplary embodiment of the present application. The device connection device can be implemented as all or part of a smart interactive tablet through software, hardware, or a combination of both. The device includes a determination module 701, a first sending module 702, a first receiving module 703, and a connection module 704.
[0095] A determination module 701 is used to determine whether the identification of a device of the target type is stored in the first device; the first device is connected to the second device via a line input line; a first sending module 702 is used to send trigger information to the second device if the identification of the device of the target type is stored in the first device, the trigger information is used to instruct the second device to send a connection request, the type of the second device is the target type, and the second device is connected to the first device via a line input line; a first receiving module 703 is used to receive the connection request sent by the second device; a connection module 704 is used to establish a wireless connection with the second device according to the connection request.
[0096] Optionally, the first sending module 702 is also used to send preset information to the second device if the identifier of the target type of device is not stored therein, and the preset information is used to trigger the second device to enable discovery and pairing functions; the connection module is also used to establish a wireless connection with the second device through the discovery and pairing functions of the second device.
[0097] Among them, the determination module 701 is specifically used to: obtain a storage list, the storage list is used to store the identification of devices that have established a wireless connection with the first device; if the type indicated by the identification of a device in the storage list is the target type, then determine that the identification of a device of the target type is stored in the first device; if the type indicated by the identification of a device in the storage list is not the target type, then determine that the identification of a device of the target type is not stored in the first device.
[0098] Furthermore, the state of the second device is a hidden state.
[0099] Optionally, the apparatus further includes: a storage module 705, configured to store the identifier of the second device connected this time in the storage list.
[0100] Optionally, the first sending module 702 is also used to send information to the third device through the second device if the second device is also connected to at least one third device; the first receiving module 703 is also used to receive information of the third device forwarded by the second device if the second device is also connected to at least one third device.
[0101] See also Figure 8 , which shows a schematic diagram of the structure of a device connection device provided by an exemplary embodiment of the present application. The device connection device can be implemented as all or part of a smart interactive tablet through software, hardware, or a combination of both. The device includes a second receiving module 801 and a second sending module 802.
[0102] The second receiving module 801 is used to receive trigger information sent by the first device, and the trigger information is used to trigger the first device to send a connection request; the first device is connected to the second device via a line input line; the second sending module 802 is used to send a connection request to the first device according to the trigger information.
[0103] Optionally, the device also includes: an activation module 803; the second receiving module 801 is also used to receive preset information sent by the first device, and the preset information is used to trigger the second device to activate the discovery and pairing function; the activation module 803 is also used to activate the discovery and pairing function according to the preset information.
[0104] Furthermore, the device also includes: a setting module 804, which is used to set its own state to a hidden state.
[0105] Optionally, the second receiving module 801 is also used to receive a message from the first device and forward it to the third device through the second sending module 802 if the second device is also connected to at least one third device; and / or receive a message from the third device and forward it to the first device through the second sending module 802.
[0106] It should be noted that the device connection device provided in the above embodiment only uses the division of the above functional modules as an example when executing the device connection method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device connection device provided in the above embodiment and the device connection method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.
[0107] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0108] The device connection device provided in this embodiment determines whether the identifier of the target type of device is stored in the first device, and if the first device has established a wireless connection with the target type of device, then sends a trigger message to the second device through the line input line, the trigger message is used to instruct the second device to send a connection request, the type of the second device is the target type, and according to the connection request sent by the second device, a wireless connection is established with the second device. In this scheme, since it is first determined whether the identifier of the target type of device is stored in the first device, and when it is determined that the first device has established a wireless connection with the target type of device, the second device is triggered to send a connection request to the first device, so as to achieve a back connection with the second device, the above process does not require manual operation, and can achieve automatic connection between the first device and the second device, so that the connection efficiency can be improved. In addition, the second device is connected to the first device through a linking method such as a line in line, so that when the second device and the first device have not established a wireless connection, the first device can send a trigger message to the second device through the line in line to trigger the second device to actively connect back to the first device. It can avoid the situation where the second device is in a hidden state and the first device sends a connection request to the second device, and the second device cannot receive it.
[0109] The present application also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor as described above. Figure 1-Figure 6 In the embodiment shown, the first device is the method step of the execution subject. For the specific execution process, please refer to Figure 1-Figure 6 The specific description of the embodiment shown is not repeated here. The device where the storage medium of this embodiment is located may be a smart interactive tablet.
[0110] The present application also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor as described above. Figure 1-Figure 6 In the embodiment shown, the second device is the method step of the execution subject. For the specific execution process, please refer to Figure 1-Figure 6 The specific description of the embodiment shown is not repeated here. The device where the storage medium of this embodiment is located may be a speaker.
[0111] See also Fig. 9 , which is a schematic diagram of the structure of a smart interactive tablet provided in the embodiment of the present application. Fig. 9 As shown, the smart interactive tablet 900 may include: at least one processor 901 , at least one network interface 904 , a user interface 903 , a memory 905 , and at least one communication bus 902 .
[0112] The communication bus 902 is used to realize the connection and communication between these components.
[0113] The user interface 903 may include a display screen (Display) and a camera (Camera), and the optional user interface 903 may also include a standard wired interface and a wireless interface.
[0114] The network interface 904 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0115] Among them, the processor 901 may include one or more processing cores. The processor 901 uses various interfaces and lines to connect the various parts of the entire intelligent interactive tablet 900, and executes various functions and processes data of the intelligent interactive tablet 900 by running or executing instructions, programs, code sets or instruction sets stored in the memory 905, and calling data stored in the memory 905. Optionally, the processor 901 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1001 can integrate one or more combinations of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 901, and it can be implemented separately through a chip.
[0116] Among them, the memory 905 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 905 includes a non-transitory computer-readable storage medium. The memory 905 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 905 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 905 may also be optionally at least one storage device located away from the aforementioned processor 901. As Fig. 9 As shown, the memory 905 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an operating application of the smart interactive tablet.
[0117] exist Fig. 9In the smart interactive tablet 900 shown, the user interface 903 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 901 can be used to call the operating application of the smart interactive tablet stored in the memory 905, and specifically execute the steps of the device connection method applied to the first device above.
[0118] Fig.10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.10 As shown, the electronic device 100 may include: a processor 1001 , a memory 1002 and a transceiver 1003 .
[0119] The processor 1001 executes the computer execution instructions stored in the memory, so that the processor 1001 executes the scheme in the above embodiment. The processor 1001 can be a general-purpose processor, including a central processing unit CPU, a network processor (network processor, NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0120] The memory 1002 is connected to the processor 1001 via a system bus and completes communication between them. The memory 1002 is used to store computer program instructions.
[0121] The transceiver 1003 may be used to send messages to other devices, or receive messages sent by other devices.
[0122] The system bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The transceiver is used to realize the communication between the database access device and other computers (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM) and may also include non-volatile memory.
[0123] The electronic device provided in the embodiment of the present application can be used to execute the technical solution of the device connection method in the above embodiment. Its implementation principle and technical effect are similar and will not be repeated here.
[0124] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0125] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0126] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0127] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0128] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0129] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0130] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0131] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0132] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A device connection method, characterized in that: Applied to a first device, the method includes: Determining whether the first device stores an identification of a device of the target type; If the first device stores an identifier of a device of the target type, trigger information is sent to the second device, the trigger information is used to trigger the second device to send a connection request, the type of the second device is the target type, and the second device is connected to the first device via a line input line; wherein the second device sends the connection request in a directed broadcast manner; receiving a connection request sent by the second device; Establishing a wireless connection with the second device according to the connection request; If the first device does not store the identifier of the device of the target type, sending preset information to the second device, where the preset information is used to trigger the second device to start discovery and pairing functions; A wireless connection is established with the second device through the discovery and pairing functions of the second device.
2. The method according to claim 1, characterized in that The determining whether the first device stores an identifier of a device of the target type includes: Acquire a storage list, where the storage list is used to store identifiers of devices that have established wireless connections with the first device; If the type indicated by the identifier of the device in the storage list is the target type, determining that the identifier of the device of the target type is stored in the first device; If the type indicated by the identifier of the device that does not exist in the storage list is the target type, it is determined that the identifier of the device of the target type is not stored in the first device.
3. The method according to claim 1, characterized in that The state of the second device is a hidden state.
4. The method according to claim 2, characterized in that: The method further comprises: The identifier of the second device connected this time is stored in the storage list.
5. The method according to claim 1, characterized in that The method further comprises: If the second device is also connected to at least one third device, communication is performed with the third device via the second device.
6. A device connection method, characterized in that: Applied to the second device, the method includes: receiving trigger information sent by a first device, wherein the trigger information is used to trigger the second device to send a connection request; the first device is connected to the second device via a line input line; Sending a connection request to the first device by way of directed broadcast according to the trigger information; Receiving preset information sent by the first device, where the preset information is used to trigger the second device to start a discovery and pairing function; According to the preset information, the discovery and pairing functions are enabled.
7. The method according to claim 6, characterized in that The method further comprises: The state of the second device is set to a hidden state.
8. The method according to claim 6 or 7, characterized in that: The method further comprises: If the second device is also connected to at least one third device, receiving the message from the first device and forwarding it to the third device; and / or, Receive a message from the third device, and forward the message to the first device.
9. A device connection device, characterized in that: include: A determination module, used to determine whether an identifier of a device of the target type is stored in the first device; The first device is connected to the second device via a line input line; A first sending module, configured to send trigger information to a second device if the first device stores an identifier of a device of the target type, wherein the trigger information is used to trigger the second device to send a connection request, the type of the second device is the target type, and the second device is connected to the first device via a line input line; wherein the second device sends the connection request in a directed broadcast manner; A first receiving module, configured to receive a connection request sent by the second device; A connection module, configured to establish a wireless connection with the second device according to the connection request; The first sending module is further configured to send preset information to the second device if the first device does not store the identifier of the device of the target type, wherein the preset information is used to trigger the second device to enable a discovery and pairing function; The connection module is further configured to establish a wireless connection with the second device through a discovery and pairing function of the second device.
10. The device according to claim 9, characterized in that The state of the second device is a hidden state.
11. The device according to claim 9, characterized in that The first sending module is further configured to send information to the third device through the second device if the second device is also connected to at least one third device; The first receiving module is further configured to receive information of the third device forwarded by the second device if the second device is also connected to at least one third device.
12. A device connection device, characterized in that: include: A second receiving module, used to receive trigger information sent by the first device, where the trigger information is used to trigger the first device to send a connection request; The first device is connected to the second device via a line input line; A second sending module, configured to send a connection request to the first device by way of directed broadcast according to the trigger information; The device further comprises: an opening module; The second receiving module is further used to receive preset information sent by the first device, where the preset information is used to trigger the second device to start a discovery and pairing function; The enabling module is further used to enable the discovery and pairing functions according to the preset information.
13. The device according to claim 12, characterized in that The device also includes: A setting module is configured to set the state of the second device to a hidden state.
14. The device according to claim 12 or 13, characterized in that The second receiving module is further configured to receive a message from the first device and forward the message to the third device through the second sending module if the second device is also connected to at least one third device; and / or, A message from the third device is received, and the message is forwarded to the first device through the second sending module.
15. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, which are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 5.
16. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, which are suitable for being loaded by a processor and executing the method steps according to any one of claims 6 to 8.
17. A smart interactive tablet, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 5.
18. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 6 to 8.
Citation Information
Patent Citations
System and method for secure pairing of bluetooth devices
CN105144826A
Equipment connection method and device, terminal and storage medium
CN110636477A
