CN109890017B - Method, device and equipment for connecting with central equipment and readable storage medium - Google Patents

Method, device and equipment for connecting with central equipment and readable storage medium Download PDF

Info

Publication number
CN109890017B
CN109890017B CN201910081845.0A CN201910081845A CN109890017B CN 109890017 B CN109890017 B CN 109890017B CN 201910081845 A CN201910081845 A CN 201910081845A CN 109890017 B CN109890017 B CN 109890017B
Authority
CN
China
Prior art keywords
equipment
central
peripheral
target
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910081845.0A
Other languages
Chinese (zh)
Other versions
CN109890017A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201910081845.0A priority Critical patent/CN109890017B/en
Publication of CN109890017A publication Critical patent/CN109890017A/en
Application granted granted Critical
Publication of CN109890017B publication Critical patent/CN109890017B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The disclosure provides a method, a device, equipment and a readable storage medium for connecting with center equipment, wherein the method comprises the following steps: the peripheral equipment records the equipment information of the bound central equipment; the method comprises the steps that a peripheral device receives a switching instruction which is sent by a user and used for switching a connection device, and displays marks corresponding to recorded device information in a preset number according to the switching instruction; and the peripheral equipment receives the selection instruction sent by the user and is connected with the target equipment corresponding to the selection instruction according to the selection instruction. According to the method, the device, the equipment and the readable storage medium, after the peripheral equipment is bound with the central equipment, the equipment information of the central equipment can be recorded, so that when a user wants to switch the central equipment connected with the peripheral equipment, the recorded equipment information can be displayed for the user and connected with target equipment selected by the user, and the technical problem that the step for switching the central equipment connected with the peripheral equipment is complex in the prior art is solved.

Description

Method, device and equipment for connecting with central equipment and readable storage medium
Technical Field
The present disclosure relates to bluetooth connection technologies, and in particular, to a method, an apparatus, a device and a readable storage medium for connecting to a central device, and belongs to the field.
Background
At present, there are many peripheral devices capable of connecting with the central device by bluetooth technology, and these peripheral devices can implement bluetooth low energy connection with the central device based on gatt (generic Attribute profile). The peripheral device may be, for example, a wearable device such as an electronic bracelet, and the central device may be, for example, a smartphone.
In the prior art, a user who owns a peripheral device may own a plurality of central devices at the same time. When the peripheral device is connected with the central device, the central device and the peripheral device can be bound in a mode of scanning the two-dimensional code of the peripheral device by using the central device, so that the central device and the peripheral device are connected.
However, when the user wants to replace the center device connected to the peripheral device, the user needs to unbundle the binding relationship between the peripheral device and the currently connected center device, disconnect the two devices, and scan the two-dimensional code of the peripheral device using the other center device, thereby connecting the two devices. Therefore, in the solutions in the prior art, each time a peripheral device is reconnected to a central device, the previous device needs to be unbound, which brings more inconvenience to the user.
Disclosure of Invention
The disclosure provides a method, a device, equipment and a readable storage medium for connecting with a central device, which are used for solving the problem that in the prior art, the operation of a process of switching the central device connected with a peripheral device is complex.
A first aspect of the present disclosure is to provide a method of connecting with a center apparatus, including:
the peripheral equipment records the equipment information of the bound central equipment;
the peripheral equipment receives a switching instruction which is sent by a user and used for switching the connected equipment, and displays the recorded identifications corresponding to the equipment information in a preset number according to the switching instruction;
and the peripheral equipment receives a selection instruction sent by a user and is connected with target equipment corresponding to the selection instruction according to the selection instruction.
Another aspect of the present disclosure is to provide an apparatus connected to a center device, including:
the recording module is used for recording the equipment information of the bound central equipment;
the receiving module is used for receiving a switching instruction which is sent by a user and used for switching the connection equipment;
the display module is used for displaying the recorded identifications corresponding to the equipment information in a preset number according to the switching instruction;
the receiving module is also used for receiving a selection instruction sent by a user;
and the connection module is used for connecting the target equipment corresponding to the selection instruction according to the selection instruction.
Yet another aspect of the present disclosure is to provide an apparatus connected with a center apparatus, including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of interfacing with a central device as described in the first aspect above.
Yet another aspect of the present disclosure is to provide a computer-readable storage medium having stored thereon a computer program, which is executed by a processor to implement the method of connecting with a center apparatus as described in the first aspect above.
The method, the device, the equipment and the readable storage medium for connecting with the central equipment have the technical effects that:
the method, the device, the equipment and the readable storage medium for connecting with the center equipment, which are provided by the disclosure, comprise the following steps: the peripheral equipment records the equipment information of the bound central equipment; the method comprises the steps that a peripheral device receives a switching instruction which is sent by a user and used for switching a connection device, and displays marks corresponding to recorded device information in a preset number according to the switching instruction; and the peripheral equipment receives the selection instruction sent by the user and is connected with the target equipment corresponding to the selection instruction according to the selection instruction. According to the method, the device, the equipment and the readable storage medium, after the peripheral equipment is bound with the central equipment, the equipment information of the central equipment can be recorded, so that when a user wants to switch the central equipment connected with the peripheral equipment, the recorded equipment information can be displayed for the user and connected with target equipment selected by the user, and the technical problem that the step for switching the central equipment connected with the peripheral equipment is complex in the prior art is solved.
Drawings
FIG. 1 is a flow chart illustrating a method of interfacing with a central facility in accordance with an exemplary embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method of interfacing with a central facility in accordance with another exemplary embodiment of the present invention;
fig. 2A is a schematic diagram illustrating a to-be-bound state of a peripheral device according to an exemplary embodiment of the present invention;
fig. 2B is a diagram illustrating authentication information according to an exemplary embodiment of the present invention;
fig. 2C is a schematic diagram illustrating a peripheral device and a central device after successfully binding according to an exemplary embodiment of the present invention;
fig. 2D is a schematic diagram illustrating an identifier corresponding to device information displayed by a peripheral device according to an exemplary embodiment of the present invention;
FIG. 3 is a block diagram illustrating an apparatus connected to a central facility in accordance with an exemplary embodiment of the present invention;
fig. 4 is a block diagram illustrating an apparatus connected to a center device according to another exemplary embodiment of the present invention;
fig. 5 is a block diagram illustrating a device connected to a center device according to an exemplary embodiment of the present invention.
Detailed Description
At present, peripheral equipment on the market can only be connected with one central equipment at a time, for example, a sports bracelet can only be connected with one mobile phone at a time. If the user has a plurality of central devices, when switching the central device connected with the peripheral device, the user needs to unbind the central device currently bound with the peripheral device and then scan and bind the peripheral device with other central devices, and then can reconnect the two devices.
According to the scheme provided by the embodiment, after the peripheral equipment and the central equipment are successfully bound for the first time, the peripheral equipment stores the information of the central equipment bound with the peripheral equipment, and when a user needs to switch the central equipment connected with the peripheral equipment, the stored equipment information can be directly selected, so that the peripheral equipment is directly connected with the central equipment selected by the user, and the technical problem that the step for switching the central equipment connected with the peripheral equipment is complicated is solved.
Fig. 1 is a flowchart illustrating a method of connecting to a center device according to an exemplary embodiment of the present invention.
As shown in fig. 1, the method for connecting to a central device provided in this embodiment includes:
step 101, the peripheral device records the device information of the bound central device.
The peripheral device and the central device may be connected by a Bluetooth Low Energy (BLE) technology, the peripheral device may receive a notification message of the central device, and the peripheral device may also send acquired data to the central device. For example, the sports bracelet can be connected with the smart phone through bluetooth and send the sports data of the user to the smart phone, and some smart bracelets can also receive notification messages sent by the smart phone, such as battery level, current time, telephone, short messages and the like.
The method provided by the present embodiment may be executed by a peripheral device, and the method provided by the present embodiment may be set in the peripheral device in the form of software, so that it can execute the method provided by the present embodiment. In the peripheral device, a functional module capable of executing the method provided by this embodiment may be provided, for example, a processor may be provided for executing the method provided by this embodiment, and a communication module for connecting with the central device may also be provided, where the communication module may specifically refer to a module having a bluetooth connection function.
Specifically, the user can open the peripheral device and the central device, and start the bluetooth connection function of the central device. The peripheral device may send a broadcast to enable the central device to scan for and connect with the peripheral device. For example, a user may operate a smartphone, enabling the smartphone to scan a sports bracelet.
Furthermore, the peripheral device can also display a two-dimensional code or a bar code, and the central device can be used for scanning the two-dimensional code or the bar code of the peripheral device, so that the central device can sense the peripheral device.
In actual application, after the central device scans or senses the existence of the peripheral device, the user can operate the central device to connect the central device with the scanned peripheral device. For example, the user may select a scanned sports bracelet in a smartphone. For either the peripheral device or the central device, the bluetooth name of the device may be displayed when the device is discovered by bluetooth technology. For example, "xx bracelets" are displayed in smartphones. The user can select the "xx bracelet" and thus send an instruction to the smartphone to connect with the "xx bracelet" device.
Wherein, the central device can be connected according to the peripheral device selected by the user. The BLE has a security function, and a long-term set of security keys is given to the other party when the two devices are allowed to be paired. This mechanism is referred to as binding. Allowing two devices to reconnect allows new encryption and authentication without the need to pair again as long as they have stored this security key.
After the two are bound, the peripheral device can record the device information of the central device bound with the peripheral device. If the peripheral device is bound with the central device for the first time, the peripheral device can store information such as a Bluetooth mac address (media access control address) and a Bluetooth name of the central device, and can also store a timestamp of binding time.
The peripheral equipment can store the information of the central equipment in a database management mode so as to avoid equipment information loss. During the storage process, since the bluetooth mac address is a unique address, the bluetooth mac address can be used as a main key, and the storage content corresponding to the main key can include a bluetooth name and a binding timestamp.
Specifically, if the peripheral device is reconnected with the central device, the peripheral device may update its binding timestamp according to the bluetooth mac address of the central device, that is, only the timestamp corresponding to the central device may be recorded. For example, the peripheral device is bound and connected with the central device for the first time in 12/1/2018, and then when the peripheral device is bound with the central device again in 1/21/2019, the peripheral device only needs to update the recorded binding timestamp corresponding to the central device. If the bluetooth name of the central device changes, the peripheral device may also update its bluetooth name, that is, the bluetooth name of the central device may also be recorded, for example, the user may change the bluetooth name of the mobile phone by setting on the smart phone.
Further, if the peripheral device records device information of a plurality of central devices, the peripheral device may also sort the recorded device information according to the binding time, and if the recorded device information is excessive, may also clear part of the device information with earlier binding time. For example, the peripheral device may record 10 pieces of device information, and if a new device is bound to the peripheral device after the peripheral device has recorded 10 pieces of device information, the peripheral device may clear the device information with the earliest binding time.
And 102, the peripheral equipment receives a switching instruction which is sent by a user and used for switching the connected equipment, and displays the identifiers corresponding to the recorded equipment information in the preset number according to the switching instruction.
In practical application, after the peripheral device and the central device are bound, the peripheral device and the central device can be in normal communication connection. For various reasons, the connection may be broken, but the binding relationship is not released. At this time, if the user wishes to connect the peripheral device with another central device, a switching instruction may be sent to the peripheral device for switching the central device bound to the peripheral device.
If the peripheral device is bound with the central device, the information of the current bound device can be displayed in a display screen of the peripheral device, and a key for switching the bound device is displayed in the screen. For example, keys such as "unbind", "switch connected device", etc. may be displayed on the screen, and when the user clicks these keys, the peripheral device may be able to release the current binding relationship and display the identifier corresponding to the recorded device information, where the identifier may be a device identifier included in the device information or an identifier corresponding to the device information stored in the peripheral device, for example, terminal 1, terminal 2, etc.
Specifically, the preset number may be preset, and after the peripheral device receives the switching instruction, the preset number of pieces of information may be selected from the recorded device information, and the identifier corresponding to the device information is displayed, where the indication may also specifically refer to a bluetooth name included in the device information. For example, the preset number may be set to 3, and the preset number may be a factory-set value, and the user may also set the peripheral device, and adjust the value, for example, the peripheral device may be directly operated to modify, or the peripheral device may be modified by the central device connected thereto.
Further, the peripheral device may sort the device information, for example, by bluetooth name, by binding timestamp, determine a preset number of device information according to the sorting result, and display the device information. In addition, the peripheral device may be configured to display all keys that the user may click to display all recorded device information.
In practical application, the above keys may be virtual keys or physical keys.
And 103, the peripheral equipment receives the selection instruction sent by the user and is connected with the target equipment corresponding to the selection instruction according to the selection instruction.
After the peripheral device displays the identifier, the user can operate the peripheral device to designate a target device therein. For example, a user may operate a touch screen of a peripheral device to select a target device; the user may also operate a physical key of the peripheral device to select a target device among the plurality of identifiers, thereby sending a selection instruction to the user device.
Specifically, after receiving a selection instruction sent by a user, the peripheral device may connect with a target device corresponding to the selection instruction according to the selection instruction.
Further, the peripheral device may determine device information corresponding to the target device according to a selection instruction of the user, and bind with the target device according to the device information. Generally, if the user selects the target device, it may be considered that the user wants the peripheral device to connect to the target device, and it may be considered that the user turns on the bluetooth function of the target device in advance.
In practical application, the peripheral device can obtain the Bluetooth mac address corresponding to the target device and send a connection request to the target device, so that the peripheral device and the target device are bound, and after the binding is successful, the peripheral device can be connected with the target device. In the connection process, the terminal type of the device may also be determined according to the device information, if the device is an ios terminal, an ANCS (application Notification Center) protocol may be used to connect with the target device, and if the device is an Android terminal, a GATT (Generic Attribute protocol) protocol may be used to connect with the target device.
The peripheral equipment can also store authentication information bound with the central equipment, so that the peripheral equipment can be directly and automatically bound with the target equipment without authentication so as to be connected.
The method provided by the present embodiment is used for connecting a peripheral device with a central device, and is performed by a device provided with the method provided by the present embodiment, and the device is generally implemented in a hardware and/or software manner.
The method for connecting with the center device provided by the embodiment comprises the following steps: the peripheral equipment records the equipment information of the bound central equipment; the method comprises the steps that a peripheral device receives a switching instruction which is sent by a user and used for switching a connection device, and displays marks corresponding to recorded device information in a preset number according to the switching instruction; and the peripheral equipment receives the selection instruction sent by the user and is connected with the target equipment corresponding to the selection instruction according to the selection instruction. According to the method provided by the embodiment, after the peripheral equipment is bound with the central equipment, the equipment information of the central equipment can be recorded, so that when a user wants to switch the central equipment connected with the peripheral equipment, the recorded equipment information can be displayed for the user and the user can connect with the target equipment selected by the user.
Fig. 2 is a flowchart illustrating a method of connecting with a center device according to another exemplary embodiment of the present invention.
As shown in fig. 2, the method for connecting to a central device according to this embodiment includes:
step 201, the peripheral device receives a binding request of the central device and binds with the central device according to the binding instruction.
Before recording the device information of the central device, the peripheral device needs to be bound with the central device first, so as to interact with the central device, and then the device information of the central device can be acquired.
Specifically, the user can turn on the peripheral device and turn on the bluetooth connection function of the center device, and make the distance between the two within the range of the bluetooth scannable area. The peripheral device may send a broadcast so that the central device may scan to the peripheral device. The central device may scan the surrounding bluetooth devices, and after the central device scans the peripheral devices, the user may operate the central device, thereby causing the central device to send a binding request to the peripheral devices.
Fig. 2A is a schematic diagram illustrating a to-be-bound state of a peripheral device according to an exemplary embodiment of the present invention.
Further, as shown in fig. 2A, when the peripheral device is not bound to the central device, a two-dimensional code as shown in fig. 2A may be displayed on the display interface, and the user may scan the two-dimensional code using the central device, so that the central device sends a binding request to the peripheral device.
In practical application, the two-dimensional code displayed by the peripheral equipment contains identification information of the peripheral equipment, and the central equipment can determine the address of the peripheral equipment to be connected by scanning the two-dimensional code, so that the binding request is directly sent to the peripheral equipment.
After receiving the binding request, the peripheral device can also display a message of whether to bind the central device, and the user can select yes or no, so that the user sends a binding instruction to the peripheral device.
In addition, the peripheral equipment can also be directly bound with the central equipment according to the binding instruction without inquiring the opinion of the user.
Specifically, the peripheral device may be bound with the central device after receiving a binding instruction sent by a user or receiving a binding request sent by the central device. The recording may be made in the bluetooth protocol of the peripheral device, thereby binding the peripheral device to the bluetooth firmware of the central device.
Step 202, the peripheral device stores the authentication information bound with the central device.
Furthermore, the peripheral device may generate authentication information during the binding process with the central device, and the peripheral device may store the authentication information generated during the binding process with the central device. Therefore, when the central equipment is connected again, the connection can be directly carried out without authentication.
Fig. 2B is a diagram illustrating authentication information according to an exemplary embodiment of the present invention.
As shown in fig. 2B, authentication information stored for the peripheral device.
Fig. 2C is a schematic diagram illustrating a peripheral device and a central device after successfully binding according to an exemplary embodiment of the present invention.
As shown in fig. 2C, after the peripheral device and the central device are successfully bound, information of the currently bound central device may be displayed, specifically, a type of the central device, such as "mobile phone," may be displayed, and a bluetooth name of the central device, such as "AGM X3," may also be displayed.
In step 203, the peripheral device records the device information of the bound central device.
Step 203 is similar to the specific principle and implementation manner of step 101, and is not described herein again.
Wherein the device information includes at least one of: device identification, device name, binding time. The device identification is a unique identifier of the central device, and thus, the device identification can enable the peripheral device to identify different central devices. The device name may be an initialization name of the center device when the center device leaves the factory, or may be a name of the center device set by the user. The binding time refers to the time when the peripheral device is bound with the central device for the last time, for example, if the peripheral device is bound with the central device for the first time, the binding time of the current time is recorded, and if the peripheral device is bound with the central device for multiple times, the binding time of the last time is recorded.
In particular, since the central device and the peripheral device are connected via bluetooth, the device identifier may specifically be a bluetooth identifier, and/or the device name may be a bluetooth name in the device.
And 204, the peripheral equipment receives a switching instruction which is sent by a user and used for switching the connected equipment, and displays the identifiers corresponding to the recorded equipment information in the preset number according to the switching instruction.
Fig. 2D is a schematic diagram illustrating an identifier corresponding to device information displayed by a peripheral device according to an exemplary embodiment of the present invention.
As shown in fig. 2D, the identities of the three once-recorded central devices may be displayed on the peripheral device.
The specific principle and implementation of step 204 are similar to those of step 102, and are not described here again.
In step 205, the peripheral device receives a selection instruction sent by the user.
Further, after the peripheral device displays the identifiers corresponding to the pieces of device information, the user may select one identifier from the identifiers, so as to send a selection instruction to the peripheral device, and the specific principle and implementation manner are similar to the receiving of the selection instruction sent by the user in step 103, and are not described again.
And step 206, the peripheral equipment acquires the equipment information of the target equipment according to the selection instruction.
In actual application, because the authentication information of the bound central device is stored in the peripheral device, the peripheral device does not need to be bound with the central device again, and the peripheral device and the central device (namely, the target device) selected by the user can be in a bound state by using the authentication information stored before.
The peripheral device may obtain, from the recorded device information according to a selection instruction of the user, device information of a target device corresponding to the selection instruction. The device information may include information such as an identifier, a name, and a binding timestamp of the device.
Specifically, when the device information is recorded, the bluetooth mac address of the central device may be used as a main key, and other information may be used as information corresponding to the main key, so that when the device information is obtained, the bluetooth mac address of the target device may be determined according to the user selection instruction, and then the bluetooth mac address and the device information corresponding to the bluetooth mac address may be obtained.
Further, the peripheral device may initiate a connection to the target device based on the device information after obtaining the device information of the target device, for example, the peripheral device may call a connectGatt () method to initiate a connection to the target device. Thereafter, the peripheral device may wait for the status information fed back by the target device, and specifically may wait for callback information of bluetooth gattcallback.
Step 207, the peripheral device determines the operating system of the target device according to the device information of the target device.
In one embodiment, the peripheral device may determine its operating system based on the device information of the target device; in another embodiment, the peripheral device may also determine its operating system according to the status information fed back by the target device.
In actual application, device identifiers corresponding to different operating systems may be different, and therefore, the peripheral device may determine the operating system of the target device based on the device identifier. In addition, uuid information of the device may also be included in the device information, and at this time, the peripheral device may determine the operating system of the target device based on uuid information in the device information.
And step 208, the peripheral equipment determines a target connection process according to the operating system and is connected with the target equipment according to the target connection process.
Currently, a mainstream central device operating system includes an Android system and an IOS system, and bluetooth connection protocols of the two operating systems are different, so that bluetooth connection procedures are also different. Android is a Linux-based operating system with free and open source codes, which is mainly used in mobile devices such as smart phones and tablet computers, and is led and developed by Google corporation and the open mobile alliance. iOS is a mobile operating system developed by apple inc.
In the method provided by this embodiment, a specific connection procedure may be determined based on the operating system of the target device, so that the peripheral device may be connected to the central device of the Android system and the ios system.
If the operating system of the target device is an IOS system, the target connection process may include:
the peripheral equipment sends broadcast so that the target equipment is actively connected with the peripheral equipment;
the peripheral device connects the target device in reverse and waits to receive the notification message sent by the target device.
If the user selects the target device, the user may think that the user wants the peripheral device to connect to the target device, and the user may turn on the bluetooth function of the target device in advance and make the bluetooth function and the target device located in a connectable area range.
Specifically, after the user selects the target device, the peripheral device may send a broadcast, and the target device may scan through the bluetooth function and actively connect to the peripheral device. The target device may be operated by the user to actively connect to the peripheral device, for example, the user may select a peripheral device in the bluetooth scan list of the target device to actively connect to the peripheral device.
Further, after the peripheral device finds that the target device connects the peripheral device, the peripheral device can reversely connect the target device, so that the connection of the two devices is realized.
In practical application, if the peripheral device is successfully connected to the target device in the reverse direction, the peripheral device may wait to receive the notification message sent by the target device, and when the operating system of the target device is the IOS system, the notification message sent by the target device is in the ANCS format.
Wherein, the peripheral device can also set related fields to wait for the connection message. For example, enable may be set, and specifically, two descriptors, Notification Source and Control Point, may be written into bluetooth gateway Descriptor. A Notification Source may also be obtained, and a Notification obtained from an onCharacteriodicalChanged.
Specifically, if the operating system of the target device is an Android system, the target connection process includes:
the peripheral equipment sends broadcast so that the target equipment is actively connected with the peripheral equipment;
the peripheral device waits for a notification message sent by the target device.
Further, in the method provided in this embodiment, the peripheral device may be of an Android system, so that when the peripheral device is connected to a target terminal of the Android system, a conventional bluetooth connection function may be directly employed, and when the peripheral device is connected to a target terminal of the IOS operating system, the peripheral device needs to be reversely connected to the target terminal, and the peripheral device can receive the notification message sent by the target terminal.
Fig. 3 is a block diagram illustrating an apparatus connected to a center device according to an exemplary embodiment of the present invention.
As shown in fig. 3, the apparatus connected to the center device provided in this embodiment includes:
a recording module 31, configured to record device information of the bound central device;
a receiving module 32, configured to receive a switching instruction sent by a user and used for switching a connected device;
the display module 33 is configured to display, according to the switching instruction, a preset number of identifiers corresponding to the recorded device information;
the receiving module 32 is further configured to receive a selection instruction sent by a user;
and the connection module 34 is configured to connect with the target device corresponding to the selection instruction according to the selection instruction.
The device connected with the center equipment provided by the embodiment comprises: the recording module is used for recording the equipment information of the bound central equipment; the receiving module is used for receiving a switching instruction which is sent by a user and used for switching the connection equipment; the display module is used for displaying the identifiers corresponding to the recorded equipment information in the preset number according to the switching instruction; the receiving module is also used for receiving a selection instruction sent by a user; and the connection module is used for connecting the target equipment corresponding to the selection instruction according to the selection instruction.
The specific principle and implementation of the apparatus connected to the central device provided in this embodiment are similar to those of the embodiment shown in fig. 1, and are not described herein again.
Fig. 4 is a block diagram illustrating an apparatus connected to a center device according to another exemplary embodiment of the present invention.
As shown in fig. 4, on the basis of the above embodiment, the present embodiment provides an apparatus connected to a central device, where the device information includes at least one of the following:
device identification, device name, binding time.
Optionally, the device identifier is a bluetooth identifier, and/or the device name is a bluetooth name.
The apparatus further comprises a binding module 35 for:
and receiving a binding request of the central equipment, and binding the central equipment according to the binding request.
The device further comprises a storage module 36, configured to store, after being bound with the central device, authentication information used when being bound with the central device.
The connection module 34 is specifically configured to:
acquiring equipment information of the target equipment according to the selection instruction;
determining an operating system of the target device according to the device information of the target device;
and determining a target connection process according to the operating system, and connecting with the target equipment according to the target connection process.
If the operating system of the target device is an IOS system, the connection module 34 is specifically configured to:
sending a broadcast to cause the target device to actively connect with the peripheral device;
and reversely connecting the target equipment and waiting for receiving the notification message sent by the target equipment.
The specific principle and implementation of the apparatus connected to the central device provided in this embodiment are similar to those of the embodiment shown in fig. 2, and are not described herein again.
Fig. 5 is a block diagram illustrating a device connected to a center device according to an exemplary embodiment of the present invention.
As shown in fig. 5, the apparatus connected to the center apparatus provided in this embodiment includes:
a memory 51;
a processor 52;
a display 53; and
a computer program;
wherein said computer program is stored in said memory 51 and configured to be executed by said processor 52 to implement any of the methods of interfacing with a central device as described above.
The display 53 may be configured to display identifiers corresponding to a preset number of recorded device information.
The present embodiments also provide a computer-readable storage medium, having stored thereon a computer program,
the computer program is executed by a processor to implement any of the methods described above for interfacing with a central facility.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A method of interfacing with a central facility, comprising:
the peripheral equipment receives the binding request of the central equipment and binds with the central equipment according to the binding request;
the peripheral equipment records the equipment information of the bound central equipment;
the peripheral equipment receives a switching instruction which is sent by a user and used for switching the connected equipment, and displays the recorded identifications corresponding to the equipment information in a preset number according to the switching instruction;
and the peripheral equipment receives a selection instruction sent by a user and is connected with target equipment corresponding to the selection instruction according to the selection instruction.
2. The method of claim 1, wherein the device information comprises at least one of:
device identification, device name, binding time.
3. The method according to claim 2, wherein the device identity is a bluetooth identity and/or the device name is a bluetooth name.
4. The method of claim 1, after binding with the central device, further comprising:
and the peripheral equipment stores authentication information bound with the central equipment.
5. The method according to claim 4, wherein the connecting with the target device corresponding to the selection instruction according to the selection instruction comprises:
the peripheral equipment acquires equipment information of the target equipment according to the selection instruction;
the peripheral equipment determines an operating system of the target equipment according to the equipment information of the target equipment;
and the peripheral equipment determines a target connection process according to the operating system and is connected with the target equipment according to the target connection process.
6. The method of claim 5, wherein if the operating system of the target device is an IOS system, the target connection process comprises:
the peripheral equipment sends broadcast so that the target equipment is actively connected with the peripheral equipment;
and the peripheral equipment is reversely connected with the target equipment and waits for receiving the notification message sent by the target equipment.
7. An apparatus for interfacing with a central facility, comprising:
the recording module is used for recording the equipment information of the bound central equipment;
the receiving module is used for receiving a switching instruction which is sent by a user and used for switching the connection equipment;
the display module is used for displaying the recorded identifications corresponding to the equipment information in a preset number according to the switching instruction;
the receiving module is also used for receiving a selection instruction sent by a user;
the connection module is used for connecting the target equipment corresponding to the selection instruction according to the selection instruction;
the apparatus further comprises a binding module configured to:
and receiving a binding request of the central equipment, and binding the central equipment according to the binding request.
8. An apparatus for connection to a central facility, comprising:
a memory;
a processor;
a display; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any of claims 1-6;
the display is used for displaying the marks corresponding to the recorded equipment information in the preset number.
9. A computer-readable storage medium, having stored thereon a computer program,
the computer program is executed by a processor to implement the method according to any one of claims 1-6.
CN201910081845.0A 2019-01-28 2019-01-28 Method, device and equipment for connecting with central equipment and readable storage medium Active CN109890017B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910081845.0A CN109890017B (en) 2019-01-28 2019-01-28 Method, device and equipment for connecting with central equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910081845.0A CN109890017B (en) 2019-01-28 2019-01-28 Method, device and equipment for connecting with central equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN109890017A CN109890017A (en) 2019-06-14
CN109890017B true CN109890017B (en) 2022-03-01

Family

ID=66927116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910081845.0A Active CN109890017B (en) 2019-01-28 2019-01-28 Method, device and equipment for connecting with central equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN109890017B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112437500A (en) * 2020-11-03 2021-03-02 北京海林智能科技有限公司 Intelligent switch panel connection method, system, terminal and readable storage medium
CN112423240B (en) * 2020-11-11 2022-06-28 珠海优特智厨科技有限公司 Method and device for binding cookware and cooker and computer equipment
CN114422639B (en) * 2022-03-16 2022-09-06 荣耀终端有限公司 Information display method and wearable device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104348524A (en) * 2013-07-26 2015-02-11 施耐德电气(澳大利亚)有限公司 Binding method, center equipment and peripheral equipment
CN104539324A (en) * 2014-12-25 2015-04-22 惠州Tcl移动通信有限公司 Bluetooth low-power-consumption networking interconnecting method and system
CN105722249A (en) * 2016-01-29 2016-06-29 宇龙计算机通信科技(深圳)有限公司 Connection switching method and device and terminal
EP3229549A1 (en) * 2016-04-08 2017-10-11 Panasonic Intellectual Property Corporation of America Procedures for grouping wearable devices with lte master ues
CN108696851A (en) * 2018-05-18 2018-10-23 西安蜂语信息科技有限公司 Control the method and device of smart machine linking objective equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3326331B1 (en) * 2015-07-17 2021-03-17 Vitir AS A centralized controlling system controlling interactions and cooperation between radio-operated devices operating in a mesh network supporting multiple radio communication protocols
CN108961489A (en) * 2018-05-30 2018-12-07 努比亚技术有限公司 A kind of equipment wearing control method, terminal and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104348524A (en) * 2013-07-26 2015-02-11 施耐德电气(澳大利亚)有限公司 Binding method, center equipment and peripheral equipment
CN104539324A (en) * 2014-12-25 2015-04-22 惠州Tcl移动通信有限公司 Bluetooth low-power-consumption networking interconnecting method and system
CN105722249A (en) * 2016-01-29 2016-06-29 宇龙计算机通信科技(深圳)有限公司 Connection switching method and device and terminal
EP3229549A1 (en) * 2016-04-08 2017-10-11 Panasonic Intellectual Property Corporation of America Procedures for grouping wearable devices with lte master ues
CN108696851A (en) * 2018-05-18 2018-10-23 西安蜂语信息科技有限公司 Control the method and device of smart machine linking objective equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于低功耗蓝牙技术的室内环境监测系统的设计;何佳;《中国优秀硕士学位论文全文数据库》;20180515;全文 *

Also Published As

Publication number Publication date
CN109890017A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
US10178215B2 (en) Communication systems and methods
CN107483715B (en) Method and system for communication between terminal and equipment, terminal and storage medium
TWI512489B (en) Multi-screen interactive method, center equipment, terminal equipment and systems
RU2572615C2 (en) Method for wireless communication in local domain and terminal supporting same
CN101541105B (en) Methods for processing apparatus originated communication request and communication apparatuses utilizing the same
CN109890017B (en) Method, device and equipment for connecting with central equipment and readable storage medium
CN102255887B (en) Method and system for providing online services corresponding to multiple mobile devices
CN104936304A (en) Intelligent equipment binding method, intelligent equipment, and server
CN102821150B (en) Based on application management method and the Cloud Server of cloud service
CN108810123B (en) Method and apparatus for provisioning mobile cellular network services
CN109005532B (en) Bluetooth connection method, Bluetooth master device and Bluetooth slave device
US10887745B2 (en) Method and device for sharing file between different terminals
CN106713418B (en) Reset result confirmation method, device, server and mobile terminal
CN104394600A (en) Method and device for transmitting files
CN103597805A (en) Techniques for facilitating interoperation between an accessory and multiple devices
CN111371657A (en) Network configuration method and system of intelligent household appliance and intelligent household appliance
US9628567B2 (en) Methods and systems for efficient discovery of devices in a peer-to-peer network
EP3718292B1 (en) Electronic device for managing embedded subscriber identification module and method for same
CN107548054B (en) Master-slave equipment switching method of eSIM card, slave equipment and eSIM card management server
WO2014153912A1 (en) Method and device for displaying and processing application name of multimode card of mobile terminal
CN109511118B (en) Wireless local area network access exception handling method, mobile terminal and USIM card
CN110049360B (en) Cross-platform content control method, device, terminal, server and storage medium
CN105704705A (en) Method for switching terminals with shared eSIM information, terminal and server
CN108282783B (en) Public wifi authentication method, device, user terminal and storage medium
CN104735643A (en) Information processing method and data server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder