CN116801425A - Device connection method and apparatus, electronic device, and readable storage medium - Google Patents

Device connection method and apparatus, electronic device, and readable storage medium Download PDF

Info

Publication number
CN116801425A
CN116801425A CN202311036306.8A CN202311036306A CN116801425A CN 116801425 A CN116801425 A CN 116801425A CN 202311036306 A CN202311036306 A CN 202311036306A CN 116801425 A CN116801425 A CN 116801425A
Authority
CN
China
Prior art keywords
equipment
connection
communication connection
condition
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.)
Pending
Application number
CN202311036306.8A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202311036306.8A priority Critical patent/CN116801425A/en
Publication of CN116801425A publication Critical patent/CN116801425A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a device connection method and device, electronic equipment and a readable storage medium, and belongs to the technical field of communication. The device connection method comprises the following steps: acquiring equipment state information of at least one second equipment under the condition that the first equipment corresponds to a target user account, wherein the target user account is an equipment login account or an application login account; a communication connection is established with the at least one second device based on the device status information of the at least one second device.

Description

Device connection method and apparatus, electronic device, and readable storage medium
Technical Field
The application belongs to the technical field of communication, and particularly relates to a device connection method and device, electronic equipment and a readable storage medium.
Background
At present, communication connection is established between devices mainly through modes such as manual code scanning connection, search connection, bluetooth matching connection and USB connection of a user, the above connection modes all require manual operation of the user, and an operation link is long, so that the operation is complicated.
Disclosure of Invention
The embodiment of the application aims to provide a device connection method and device, electronic equipment and a readable storage medium, which can avoid the tedious operation of manually establishing communication connection between devices by a user.
In a first aspect, an embodiment of the present application provides a device connection method, where the device connection method includes: acquiring equipment state information of at least one second equipment under the condition that the first equipment corresponds to a target user account; a communication connection is established with the at least one second device based on the device status information of the at least one second device.
In a second aspect, an embodiment of the present application provides a device connection apparatus, including: the device comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is used for acquiring device state information of at least one second device under the condition that the first device corresponds to a target user account; and the processing unit is used for establishing communication connection with the at least one second device according to the device state information of the at least one second device.
In a third aspect, an embodiment of the present application provides an electronic device including a processor and a memory storing a program or instructions executable on the processor, the program or instructions implementing the steps of the device connection method as in the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the device connection method as in the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being configured to execute programs or instructions for implementing the steps of the device connection method as in the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executed by at least one processor to carry out the steps of the device connection method as in the first aspect.
In the device connection method provided by the embodiment of the application, under the condition that the first device corresponds to the target user account, device state information of at least one second device is obtained; the second device corresponds to the target user account; the target user account is a device login account or an application login account; a communication connection is established with the at least one second device based on the device status information of the at least one second device. In this way, the communication connection can be quickly established with the first equipment by logging in the same equipment account number, or the second equipment by logging in the same application account number with the application program installed on the first equipment, so that the complicated operation of manually establishing the communication connection between the equipment by a user is avoided.
Drawings
Fig. 1 is a schematic flow chart of a device connection method according to an embodiment of the present application;
FIG. 2 is a block flow diagram of a device connection method according to an embodiment of the present application;
FIG. 3 is a block diagram of a device connection apparatus according to an embodiment of the present application;
fig. 4 is a block diagram of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or otherwise described herein, and that the objects identified by "first," "second," etc. are generally of a type not limited to the number of objects, for example, the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The device connection method provided by the embodiment of the application is described in detail below through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
As shown in fig. 1, an embodiment of the present application provides a device connection method, which may include the following S102 and S104:
s102: acquiring equipment state information of at least one second equipment under the condition that the first equipment corresponds to a target user account; the target user account is a device login account or an application login account.
The device connection method provided by the embodiment of the application is executed by the first device, and the first device can be specifically an intelligent electronic device such as a smart phone, a tablet computer, a notebook computer, an intelligent earphone, an intelligent watch and the like, and is not particularly limited.
The target user account may specifically be a device login account or an application login account. In the actual application process, the application login account may specifically be a login account of office software, a login account of instant messaging software, and the like, which is not limited herein.
Further, the target user account can be logged in on the first device and the second device at the same time.
Further, the second device corresponds to the target user account. In the practical application process, the second device may specifically be an intelligent electronic device such as a smart phone, a tablet computer, a notebook computer, an intelligent earphone, and an intelligent watch, which are logged in with the target user account, which is not limited herein.
Further, the device status information includes operation status information and communication status information of the second device.
The operation state information is used for indicating the working state of the second device, and the working state can specifically include an operation state and a shutdown state, wherein the operation state indicates that the second device is in an on state, and the shutdown state indicates that the second device is in an off state or a dormant state.
Further, the communication status information is used to indicate a communication network connection condition of the second device. The above-mentioned connection situation of the communication network may specifically include a connection situation of the second device to a communication network such as bluetooth, a wireless network, a local area network, and VPN (Virtual Private Network ).
S104: a communication connection is established with the at least one second device based on the device status information of the at least one second device.
Wherein the device state information includes operation state information and communication state information of the second device. The operation state information is used for indicating the working state of the second equipment. The communication status information is used to indicate the connection condition of the communication network of the second device and the quality of the communication network.
Specifically, in the device connection method provided by the embodiment of the present application, when a user logs in a target user account through a first device, the first device detects a second device logged in with the target user account based on account authentication capability, and obtains device state information of the second device, that is, operation state information and communication state information of the second device. On the basis, the first equipment judges whether the second equipment accords with the condition of communication connection with the first equipment according to the equipment state information of the second equipment, and the communication connection is actively established with the second equipment under the condition that the second equipment accords with the condition of communication connection with the first equipment so as to realize the communication functions of data flow, equipment mutual control and the like between the first equipment and the second equipment. In this way, the account authentication capability and the equipment state information are combined to automatically connect equipment, so that the operation steps of a user are reduced, and the equipment connection efficiency is improved.
According to the device connection method provided by the embodiment of the application, under the condition that the first device corresponds to the target user account, device state information of at least one second device is obtained; the second device corresponds to the target user account; the target user account is a device login account or an application login account; a communication connection is established with the at least one second device based on the device status information of the at least one second device. In this way, the communication connection can be quickly established with the first equipment by logging in the same equipment account number, or the second equipment by logging in the same application account number with the application program installed on the first equipment, so that the complicated operation of manually establishing the communication connection between the equipment by a user is avoided.
In the embodiment of the present application, the S104 may specifically include the following S104a to S104c:
s104a: and if the first device does not establish communication connection with any device or the first device establishes communication connection with the third device under the condition that the device state information of one of the second devices meets the device connection condition, establishing communication connection with the second device.
Wherein the device state information includes operation state information and communication state information of the second device.
The operation state information is used for indicating the working state of the second device, and the working state can specifically include an operation state and a shutdown state, wherein the operation state indicates that the second device is in an on state, and the shutdown state indicates that the second device is in an off state or a dormant state.
Further, the communication status information is used to indicate a communication network connection condition of the second device. The connection condition of the communication network may specifically include a connection condition of the second device to a communication network such as bluetooth, a wireless network, a local area network, and VPN.
On this basis, the communication status information may specifically include bluetooth connection information and network connection information of the second device.
The bluetooth connection information is used to indicate the connection condition of the second device to bluetooth, and the bluetooth connection information may specifically include information such as bluetooth switch information, bluetooth matching information, bluetooth name information of the second device, and the like, which is not limited herein.
Further, the network connection information is used to indicate the connection condition of the second device to the wireless network, the local area network, the VPN, etc., and the network connection information may specifically include information such as network switch information of the second device, name information of the connected network, network quality information, etc., which is not limited herein.
Further, the above device connection conditions may specifically be: the operating state information of the second device indicates that the second device is operating, and the communication state information indicates that the second device does not open a VPN and that the second device is connected to the same bluetooth, wireless network, or local area network as the first device.
Further, the third device and the second device belong to different device types. For example, in the case where the second device is a mobile phone, the third device may be a tablet computer, a notebook computer, or the like.
Specifically, in the device connection method provided by the embodiment of the present application, after the first device obtains the device state information of the second device, the first device determines, according to the device state information of the second device, whether the second device meets the device connection condition for performing communication connection with the first device. On the basis, under the condition that only the equipment state information of one second equipment indicates that the second equipment meets the equipment connection conditions, if the first equipment does not establish communication connection with any equipment or the first equipment establishes communication connection with the third equipment, the first equipment actively establishes communication connection with one second equipment meeting the equipment connection conditions so as to realize the communication functions of data flow, equipment mutual control and the like between the first equipment and the second equipment.
S104b: and if the first equipment and the fourth equipment are in communication connection, outputting prompt information.
Wherein the fourth device and the second device belong to the same device type. For example, in the case where the second device is a mobile phone, the fourth device is also a mobile phone.
Further, the prompting message is used for prompting whether to establish a communication connection with the second device.
Specifically, in the device connection method provided in the embodiment of the present application, after the first device obtains the device state information of the second device, if only one device state information of the second device indicates that the second device meets the device connection condition, the first device outputs a prompt message to prompt the user whether to establish a communication connection between the first device and the second device through the prompt message if the first device has established a communication connection with the fourth device. On the basis, the first equipment continuously maintains the communication connection between the first equipment and the fourth equipment according to the selection of a user, or the first equipment disconnects the communication connection between the first equipment and the fourth equipment according to the selection of the user and establishes communication connection with one second equipment meeting the equipment connection condition so as to realize the communication functions of data flow, equipment mutual control and the like between the first equipment and the second equipment.
S104c: and if the first equipment and the fifth equipment are in communication connection, outputting prompt information.
The prompting information is used for prompting whether to establish communication connection with the second equipment.
Further, the fifth device does not correspond to the target user account.
Specifically, in the device connection method provided in the embodiment of the present application, after the first device obtains the device state information of the second device, if only one device state information of the second device indicates that the second device meets the device connection condition, the first device outputs a prompting message to prompt the user whether to establish a communication connection between the first device and the second device through the prompting message if the first device has established a communication connection with a fifth device that does not log in the target user account. On the basis, the first equipment continuously maintains the communication connection between the first equipment and the fourth equipment according to the selection of a user, or the first equipment breaks the communication connection with the fourth equipment and establishes communication connection with a second equipment meeting the equipment connection condition so as to realize the communication functions of data circulation, equipment mutual control and the like between the first equipment and the second equipment.
In the above embodiment of the present application, if the device status information of one of the second devices satisfies the device connection condition, if the first device does not establish a communication connection with any device, or if the first device establishes a communication connection with the third device, then the first device establishes a communication connection with the second device; the third device and the second device belong to different device types; if the first equipment and the fourth equipment are in communication connection, outputting prompt information, wherein the prompt information is used for prompting whether to establish communication connection with the second equipment; the fourth device and the second device belong to the same device type; if the first equipment and the fifth equipment are in communication connection, outputting prompt information; the fifth device does not correspond to the target user account. In this way, by combining the account authentication capability and the device state information, the communication connection can be quickly established with the first device to log in the same device account or the second device to log in the same application account with the application installed on the first device, so that the complicated operation of manually establishing the communication connection between the devices by a user is avoided.
In the embodiment of the present application, the above S104 may specifically include the following S104d and S104e:
s104d: and if the first equipment does not establish communication connection with any equipment under the condition that the equipment state information of the at least two second equipment meets the equipment connection condition, establishing communication connection with the second equipment meeting the first condition in the at least two second equipment.
The device connection conditions may specifically be: the operating state information of the second device indicates that the second device is operating, and the communication state information indicates that the second device does not open a VPN and that the second device is connected to the same bluetooth, wireless network, or local area network as the first device.
Further, the first condition may specifically be: the second device selected by the user, the second device of the target type, the second device preferentially detected, the second device closer to or the historically connected second device.
Specifically, in the device connection method provided by the embodiment of the present application, after the first device obtains the device state information of the second device, the first device determines, according to the device state information of the second device, whether the second device meets the device connection condition for performing communication connection with the first device. On the basis, when at least two second devices meet the device connection conditions and the first device does not establish communication connection with any device, the first device can receive user input and further establish communication connection with the second device selected by the user in response to the user input. Or the first device directly establishes communication connection with a second device with the device type being the target type in the at least two second devices.
Or the first device selects the first detected second device from at least two second devices meeting the device connection conditions according to the sequence of the detected time of each second device, and establishes communication connection with the first detected second device.
Or the first device selects a second device nearest to the first device from at least two second devices meeting the device connection conditions according to the sequence of the distance between the first device and each second device, and establishes communication connection with the second device.
Or the first device judges whether the history connection device which is successfully connected with the first device exists in at least two second devices meeting the device connection conditions according to the history connection information of the connection device, for example, judges whether the history connection device which is successfully connected with the first device last time exists in the at least two second devices. In the case where the history connection apparatus is present, the first apparatus establishes a communication connection directly with the history connection apparatus.
S104e: and if the first device establishes communication connection with the sixth device, establishing communication connection with the second device meeting the second condition.
The second condition may specifically be: a second device selected by the user, or a second device of a different device type than the sixth device.
Specifically, in the device connection method provided by the embodiment of the present application, after the first device obtains the device state information of the second device, the first device determines, according to the device state information of the second device, whether the second device meets the device connection condition for performing communication connection with the first device. On the basis, in the case that at least two second devices meet the device connection conditions and the first device has established a communication connection with the sixth device, the first device may receive a user input, and in response to the user input, establish a communication connection with the second device selected by the user. Or the first device establishes communication connection with a second device with a device type different from that of the sixth device in the at least two second devices.
In addition, in the practical application process, the first device may perform pre-judgment on the second devices capable of performing communication connection with the first device based on the device connection conditions, and implement pre-connection between the first device and at least one second device that meets the device connection conditions. On the basis, the first device selects one second device from at least one second device which establishes pre-connection with the first device according to the set connection rule, and actively establishes formal communication connection with the second device.
In the above embodiment of the present application, if the device state information of at least two second devices satisfies the device connection condition, if the first device does not establish a communication connection with any device, then the first device establishes a communication connection with a second device satisfying the first condition among the at least two second devices; the first condition is: the second device selected by the user, the second device of the target type, the second device preferentially detected, the second device closer to or the historically connected second device. If the first equipment and the sixth equipment establish communication connection, establishing communication connection with second equipment meeting second conditions; the second condition is: a second device selected by the user, or a second device of a different device type than the sixth device. In this way, by combining the account authentication capability and the device state information, the communication connection can be quickly established with the first device to log in the same device account or the second device to log in the same application account with the application installed on the first device, so that the complicated operation of manually establishing the communication connection between the devices by a user is avoided.
In the embodiment of the present application, the above S104 may specifically include the following S104f:
s104f: and establishing communication connection with the second device in the case that the device state information of the second device meets the device connection condition.
The device connection conditions may specifically be: the device state information of the second device indicates that the second device is in an operational state, the second device does not open the VPN, and the second device is connected to the same bluetooth, wireless network, or local area network as the first device.
Specifically, in the device connection method provided by the embodiment of the present application, after the first device obtains the device state information of the second device, the first device determines, according to the device state information of the second device, whether the second device meets the device connection condition for performing communication connection with the first device. On the basis, under the condition that the equipment state information of the second equipment is detected to meet the equipment connection condition, the first equipment directly establishes communication connection with the second equipment so as to realize the communication functions of data flow, equipment mutual control and the like between the first equipment and the second equipment.
In the above embodiment of the present application, when the device status information of the second device satisfies the device connection condition, a communication connection is established with the second device. In this way, the account authentication capability and the equipment state information are combined to automatically connect equipment, so that the operation steps of a user are reduced, and the equipment connection efficiency is improved.
In the embodiment of the present application, the above device connection method may specifically further include the following S106:
s106: and displaying the device connection interface according to the device state information of the at least one second device.
The device connection interface comprises at least one device identifier and a device connection state identifier of the second device.
Wherein the device identifier is used for indicating the device type and the device model of the second device.
Further, the device connection status identifier is used to describe the device connection status of the second device. In an actual application process, the device connection state may specifically indicate that the first device and the second device are in a connected state, a pre-connected state, or an unconnected state, which is not limited herein.
Specifically, in the device connection method provided by the embodiment of the application, after the first device attempts to perform communication connection with the second device based on the device state information of the second device, the first device displays a device connection interface, displays the device identifier of each second device in the device connection interface, and displays the device connection state identifier of the first device and each second device according to the communication connection condition of the first device and each second device, so that a user intuitively acquires the communication connection condition of the first device and the second device.
According to the embodiment, the device connection interface is displayed according to the device state information of at least one second device; the device connection interface includes a device identification of at least one second device and a device connection status identification describing a device connection status of the second device. Therefore, based on the equipment state information of the second equipment, the equipment connection state of the first equipment and the second equipment is displayed, so that a user can intuitively know the communication connection condition of the first equipment and the second equipment.
In the embodiment of the present application, the running state information includes screen state information of the second device, and the device connection condition includes: the screen state information indicates that the second device is in a screen unlocked state.
The operation state information is used for indicating the working state of the second device, and the working state can specifically include an operation state and a shutdown state, wherein the operation state indicates that the second device is in an on state, and the shutdown state indicates that the second device is in an off state or a dormant state.
Further, the running state information may specifically include screen state information of the second device, where the screen state information is used to indicate unlocking and locking conditions of a screen of the second device.
On this basis, the above device connection conditions may specifically further include: the screen state information of the second device indicates that the second device is in a screen unlocked state.
Specifically, in the device connection method provided by the embodiment of the present application, after the first device obtains the operation state information and the communication state information of the second device, the first device determines, according to the operation state information and the communication state information of the second device, whether the second device meets a device connection condition for performing communication connection with the first device. On the basis, when the second equipment is in a screen unlocking state, the second equipment does not open VPN and is connected with the first equipment to the same Bluetooth, wireless network or local area network, the first equipment judges that the second equipment meets the equipment connection conditions and actively establishes communication connection with at least one corresponding second equipment so as to realize the communication functions of data flow, equipment mutual control and the like between the first equipment and the second equipment.
In an actual application process, the first device may perform pre-determination on the second device capable of performing communication connection with the first device based on the device connection condition, and implement pre-connection between the first device and at least one second device that meets the device connection condition. On the basis, the first device selects one second device from at least one second device which establishes pre-connection with the first device according to the set connection rule, and actively establishes formal communication connection with the second device.
Wherein, when the first device and the second device are pre-connected, the first device should satisfy: the first device starts Bluetooth and/or network, and the first device logs in a target user account; the second device should satisfy: the second device is logged in with the same target user account number as the first device, the second device is in an unlocking and bright screen state, the second device does not open the VPN, the second device and the first device are connected to the same network and/or Bluetooth is opened, and the suite version of the second device supports a pre-connection function. On the basis, when the first device unlocks the screen, opens the Bluetooth switch, opens the network switch, connects the network or switches the network, the pre-connection is established with the second device meeting the device connection condition.
The above embodiment of the present application provides that the operation state information includes screen state information of the second device, device connection conditions: the screen state information is included to indicate that the second device is in a screen unlock state. Therefore, when the screen of the second device is in an unlocking state, namely, when the user uses the second device, communication connection between the first device and the second device is established, connection between the first device and the idle second device is avoided, accuracy of device connection is guaranteed, and safety and privacy of device data are guaranteed.
In the embodiment of the present application, the above device connection method may specifically further include the following S108:
s108: and displaying the reason why the second device is not connectable in the case that the device connection state of one of the second devices is the non-connectable state.
Specifically, in the device connection method provided by the embodiment of the application, after the first device attempts to perform communication connection with the second devices based on the device state information of the second devices, the first device also determines the communication connection condition of the first device and each second device. On the basis, in the case that the first equipment and the second equipment are connected in a failure mode or in the case that the connection is interrupted after the first equipment and the second equipment are connected successfully, the first equipment displays the reason that the first equipment and the second equipment cannot be connected to each other to inform the user of the reason that the first equipment and the second equipment are not connected successfully.
In addition, in the actual application process, the first device also displays guide information to the user according to the unconnectable reason of the second device, so that the user is guided to operate through the guide information, the problem of unsuccessful connection between the first device and the second device is solved, and successful connection between the first device and the second device is realized.
In the actual application process, the reasons for unsuccessful connection between the first device and the second device may specifically include at least one of the following: the second device is not connected to the same network as the first device, the second device does not turn on the bluetooth switch, the second device does not turn on the network switch, the first device does not turn on the bluetooth switch, the second device does not keep unlocking the bright screen, the first device does not turn off the VPN, and the like, which are not particularly limited herein.
On this basis, the above-mentioned guidance information may specifically include the following: the method is not particularly limited herein, and includes determining whether the second device and the first device are connected to the same network, determining whether the second device should turn on the bluetooth switch, determining whether the second device turns on the network switch, determining whether the first device turns on the bluetooth switch, determining whether the second device keeps unlocking the bright screen, determining whether the first device turns off the VPN, and the like.
In the above embodiment provided by the present application, in the case where the device connection state of one of the second devices is the unconnectable state, the unconnectable reason of the second device is displayed. Therefore, under the condition that the first equipment and the second equipment are connected in failure or are disconnected, the user is timely informed of the reason of the connection failure, and the equipment connection efficiency is improved.
In the embodiment of the present application, the above device connection method may specifically further include the following S110:
s110: and displaying the connection control corresponding to the second device according to the unconnectable reason of the second device under the condition that the device connection state of one of the second devices is the unconnectable state.
Wherein the connection control comprises at least one of: network control, bluetooth control, screen unlocking control, virtual private network closing control.
The network control is used for controlling the switching of the network of the second device to the first network, and the first network is the network connected with the first device.
Further, the Bluetooth control is used for controlling to turn on Bluetooth of the second device.
Further, the screen unlocking control is used for controlling unlocking of the screen of the second device.
Further, the virtual private network shutdown control is for shutting down the virtual private network of the second device.
Specifically, in the device connection method provided by the embodiment of the present application, in the case that the device connection state of one of the second devices is an unconnectable state, the first device may display, according to the unconnectable reason of the second device, a connection control such as a network control, a bluetooth control, a screen unlocking control, or a virtual private network closing control corresponding to the second device. On the basis, the user can realize interactive control on the second equipment through touch input of the connection control, so that the problem that the first equipment is not successfully connected with the second equipment is solved, and successful connection of the first equipment and the second equipment is realized.
For example, in the case that the first device and the second device are not successfully connected because the second device does not turn on the network switch, the first device may display a network control corresponding to the second device, and the user may switch the network of the second device to the first network connected to the first device through the touch input of the network control, so as to solve the problem that the first device and the second device are not successfully connected.
According to the embodiment of the application, when the equipment connection state of one of the second equipment is the unconnected state, the connection control corresponding to the second equipment is displayed according to the unconnected reason of the second equipment; the connection control comprises at least one of the following: network control, bluetooth control, screen unlocking control and virtual private network closing control; the network control is used for controlling the switching of the network of the second device to a first network, and the first network is a network connected with the first device; the Bluetooth control is used for controlling to start Bluetooth of the second device; the screen unlocking control is used for controlling unlocking of a screen of the second device; the virtual private network shutdown control is for shutting down the virtual private network of the second device. Therefore, under the condition that the connection between the first equipment and the second equipment fails or is interrupted, the user is guided to solve the problem in time, and the success rate of equipment connection is improved.
In the embodiment of the present application, before S104, the device connection method may specifically further include S112 described below, and on this basis, S104 may specifically include S104g described below:
s116: and acquiring timing connection information.
The timing connection information is timing information of connection between the first device and the second device, which is set by a user. In the actual application process, the timing connection information may specifically be timing sending information of the file sent by the first device to the second device set by the user, which is not limited herein.
S104g: and establishing a communication connection with at least one second device according to the timing connection information.
Specifically, in the device connection method provided by the embodiment of the application, the user can set the second device connected with the first device at regular time according to actual requirements, for example, the user can send a file to the second device by setting the first device at regular time, and the first device is set to be connected with the second device at regular time. On the basis, the first device establishes communication connection with the corresponding second device at the set time according to the timing connection information, so that the first device and the second device can perform interactive communication at the set time.
In addition, in the actual application process, under the condition that the first device detects that the first device does not establish communication connection with the set second device in the set time, the first device can display prompt information to the user so as to inform the user of the reason that the first device and the second device are not successfully connected, and prompt the user to realize communication operation on the second device through the first device, for example prompt the user to send a file to the second device through the first device.
According to the embodiment of the application, before the communication connection is established with the at least one second device according to the device state information of the at least one second device, the first device also acquires the timing connection information, and further establishes the communication connection with the at least one second device according to the timing connection information. Thus, the accuracy of equipment connection is improved, and the punctuality of equipment connection and equipment interaction is ensured.
In summary, according to the device connection method provided by the embodiment of the application, account authentication and near field connection capability are combined, when a user logs in the same user account at multiple device ends, pre-connection, automatic connection and connection diagnosis can be performed on devices under the same user account, and three states of connected, pre-connected and unconnected devices are provided for the user based on judging conditions such as network, bluetooth and screen unlocking. Wherein, for the connected equipment, the function of data transfer and equipment mutual control can be realized; for pre-connection equipment, an active connection mechanism can be realized, and equipment connection is initiated rapidly; for unconnected devices, connection diagnosis results can be provided to prompt the reasons of unsuccessful connection of the devices and guide the users to solve the problems.
That is, the device connection method provided by the embodiment of the application realizes the pre-connection function and the connection diagnosis function in the device connection process, and after different devices log in the same user account, the first device can acquire the device state information of the second device logging in the same user account in advance, and actively establishes the pre-connection, thereby reducing the steps of manual connection of the user and improving the connection efficiency. And specific reasons and guide information are provided for the first equipment aiming at different connection failure and connection abnormality scenes, so that the connection success rate is improved. Therefore, the interactive flow of equipment connection is simplified, the high efficiency and fluency of cross-equipment connection are improved, and the safety and privacy of data under the user personal equipment are also ensured.
Specifically, in the device connection method provided by the embodiment of the present application, as shown in fig. 2, in the case that the first device does not log in the target user account, the current device connection situation is kept unchanged by the first device. And under the condition that the first equipment logs in the target user account, the first equipment detects and displays at least one second equipment which is also logged in with the target user account, and obtains the running state information and the communication state information of each second equipment, and further judges whether the second equipment meets the connection condition of communication connection with the first equipment or not through the running state information and the communication state information of the second equipment. On the basis, in the case that the second device does not meet the connection condition of the communication connection with the first device, the first device can display guiding information to guide the user to perform operations, such as guiding the user to start the network and Bluetooth of the second device, so that the second device can meet the connection condition of the communication connection with the first device. And under the condition that the second equipment meets the connection condition of communication connection with the first equipment, executing different operations according to the equipment connection condition before the first equipment logs in the target user account. Specifically, under the condition that the third device is connected before the first device logs in the target user account, judging whether the third device logs in the target user account, if so, directly displaying the device connection state of the first device and the third device, and if not, prompting the user whether to disconnect the first device and the third device.
Further, under the condition that no device is connected before the first device logs in the target user account, the first device performs device connection operation according to the set connection rule. Specifically, in the case where only one second device is detected to satisfy the connection condition of the communication connection with the first device, the first device establishes a communication connection directly with the second device; in the case that the plurality of second devices are detected to satisfy the connection condition of the communication connection with the first device, the first device may establish the communication connection with the second device successfully connected last time based on the history connection information, or the first device may establish the communication connection with the second device selected by the user in response to the user input. Further, if the plurality of second devices are detected to meet the connection condition of the communication connection with the first device, the first device can also establish communication connection with the second device nearest to the plurality of second devices if the plurality of second devices are detected at the same time, and the first device establishes communication connection with the first detected second device if the plurality of second devices are detected successively.
According to the device connection method provided by the embodiment of the application, the execution main body can be a device connection device. In the embodiment of the present application, the device connection device executes the device connection method as an example, and the device connection device provided in the embodiment of the present application is described.
As shown in fig. 3, an embodiment of the present application provides a device connection apparatus 300, which is applied to a first device, and the device connection apparatus 300 may include an acquisition unit 302 and a processing unit 304 described below.
An obtaining unit 302, configured to obtain device state information of at least one second device in a case that the first device corresponds to the target user account;
a processing unit 304, configured to establish a communication connection with at least one second device according to the device status information of the at least one second device;
the second device corresponds to the target user account; the target user account is a device login account or an application login account.
In the device connection apparatus 300 provided in the embodiment of the present application, device status information of at least one second device is obtained when the first device corresponds to the target user account; the second device corresponds to the target user account; the target user account is a device login account or an application login account; a communication connection is established with the at least one second device based on the device status information of the at least one second device. Through the device connection apparatus 300, device state information of the second device logged in to the same user account as the first device is obtained, and the first device actively establishes communication connection with the second device based on the device state information. In this way, the communication connection can be quickly established with the first equipment by logging in the same equipment account number, or the second equipment by logging in the same application account number with the application program installed on the first equipment, so that the complicated operation of manually establishing the communication connection between the equipment by a user is avoided.
In the embodiment of the present application, the processing unit 304 is specifically configured to: if the first equipment does not establish communication connection with any equipment or the first equipment establishes communication connection with the third equipment under the condition that the equipment state information of one second equipment meets the equipment connection condition, establishing communication connection with the second equipment; the third device and the second device belong to different device types; if the first equipment and the fourth equipment are in communication connection, outputting prompt information, wherein the prompt information is used for prompting whether to establish communication connection with the second equipment; the fourth device and the second device belong to the same device type; if the first equipment and the fifth equipment are in communication connection, outputting prompt information; the fifth device does not correspond to the target user account.
In the above embodiment of the present application, if the device status information of one of the second devices satisfies the device connection condition, if the first device does not establish a communication connection with any device, or if the first device establishes a communication connection with the third device, then the first device establishes a communication connection with the second device; the third device and the second device belong to different device types; if the first equipment and the fourth equipment are in communication connection, outputting prompt information, wherein the prompt information is used for prompting whether to establish communication connection with the second equipment; the fourth device and the second device belong to the same device type; if the first equipment and the fifth equipment are in communication connection, outputting prompt information; the fifth device does not correspond to the target user account. In this way, by combining the account authentication capability and the device state information, the communication connection can be quickly established with the first device to log in the same device account or the second device to log in the same application account with the application installed on the first device, so that the complicated operation of manually establishing the communication connection between the devices by a user is avoided.
In the embodiment of the present application, the processing unit 304 is specifically configured to: if the first equipment does not establish communication connection with any one of the equipment under the condition that the equipment state information of the at least two second equipment meets the equipment connection condition, establishing communication connection with the second equipment meeting the first condition in the at least two second equipment; the first condition is: a second device selected by the user, a second device of the target type, a second device preferentially detected, a second device closer to the user, or a historically connected second device; if the first equipment and the sixth equipment establish communication connection, establishing communication connection with second equipment meeting second conditions; the second condition is: a second device selected by the user, or a second device of a different device type than the sixth device.
In the above embodiment of the present application, if the device state information of at least two second devices satisfies the device connection condition, if the first device does not establish a communication connection with any device, then the first device establishes a communication connection with a second device satisfying the first condition among the at least two second devices; the first condition is: the second device selected by the user, the second device of the target type, the second device preferentially detected, the second device closer to or the historically connected second device. If the first equipment and the sixth equipment establish communication connection, establishing communication connection with second equipment meeting second conditions; the second condition is: a second device selected by the user, or a second device of a different device type than the sixth device. In this way, by combining the account authentication capability and the device state information, the communication connection can be quickly established with the first device to log in the same device account or the second device to log in the same application account with the application installed on the first device, so that the complicated operation of manually establishing the communication connection between the devices by a user is avoided.
In the embodiment of the present application, the processing unit 304 is specifically configured to: and establishing communication connection with the second device in the case that the device state information of the second device meets the device connection condition.
In the above embodiment of the present application, when the device status information of the second device satisfies the device connection condition, a communication connection is established with the second device. In this way, the account authentication capability and the equipment state information are combined to automatically connect equipment, so that the operation steps of a user are reduced, and the equipment connection efficiency is improved.
In an embodiment of the present application, the device connection apparatus 300 further includes: a display unit 306 for displaying a device connection interface according to the device status information of at least one second device; the device connection interface includes a device identification of at least one second device and a device connection status identification describing a device connection status of the second device.
According to the embodiment, the device connection interface is displayed according to the device state information of at least one second device; the device connection interface includes a device identification of at least one second device and a device connection status identification describing a device connection status of the second device. Therefore, based on the equipment state information of the second equipment, the equipment connection state of the first equipment and the second equipment is displayed, so that a user can intuitively know the communication connection condition of the first equipment and the second equipment.
In the embodiment of the present application, the running state information includes screen state information of the second device, and the device connection condition includes: the screen state information indicates that the second device is in a screen unlocked state.
In the above embodiment provided by the present application, the operation state information includes screen state information of the second device, and the device connection condition includes: the screen state information indicates that the second device is in a screen unlocked state. Therefore, when the screen of the second device is in an unlocking state, namely, when the user uses the second device, communication connection between the first device and the second device is established, connection between the first device and the idle second device is avoided, accuracy of device connection is guaranteed, and safety and privacy of device data are guaranteed.
In an embodiment of the present application, the display unit 306 is further configured to: and displaying the reason why the second device is not connectable in the case that the device connection state of one of the second devices is the non-connectable state.
In the above embodiment provided by the present application, in the case where the device connection state of one of the second devices is the unconnectable state, the unconnectable reason of the second device is displayed. Therefore, under the condition that the first equipment and the second equipment are connected in failure or are disconnected, the user is timely informed of the reason of the connection failure, and the equipment connection efficiency is improved.
In an embodiment of the present application, the display unit 306 is further configured to: displaying a connection control corresponding to the second equipment according to the unconnected reason of the second equipment under the condition that the equipment connection state of one of the second equipment is the unconnected state; the connection control comprises at least one of the following: network control, bluetooth control, screen unlocking control and virtual private network closing control; the network control is used for controlling the switching of the network of the second device to a first network, and the first network is a network connected with the first device; the Bluetooth control is used for controlling to start Bluetooth of the second device; the screen unlocking control is used for controlling unlocking of a screen of the second device; the virtual private network shutdown control is for shutting down the virtual private network of the second device.
According to the embodiment of the application, when the equipment connection state of one of the second equipment is the unconnected state, the connection control corresponding to the second equipment is displayed according to the unconnected reason of the second equipment; the connection control comprises at least one of the following: network control, bluetooth control, screen unlocking control and virtual private network closing control; the network control is used for controlling the switching of the network of the second device to a first network, and the first network is a network connected with the first device; the Bluetooth control is used for controlling to start Bluetooth of the second device; the screen unlocking control is used for controlling unlocking of a screen of the second device; the virtual private network shutdown control is for shutting down the virtual private network of the second device. Therefore, under the condition that the connection between the first equipment and the second equipment fails or is interrupted, the user is guided to solve the problem in time, and the success rate of equipment connection is improved.
In the embodiment of the present application, the obtaining unit 302 is further configured to: acquiring timing connection information; the processing unit 304 is specifically configured to: and establishing a communication connection with at least one second device according to the timing connection information.
According to the embodiment of the application, before the communication connection is established with the at least one second device according to the device state information of the at least one second device, the first device also acquires the timing connection information, and further establishes the communication connection with the at least one second device according to the timing connection information. Thus, the accuracy of equipment connection is improved, and the punctuality of equipment connection and equipment interaction is ensured.
The device connection apparatus 300 in the embodiment of the present application may be an electronic device, or may be a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The device connection apparatus 300 in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The device connection apparatus 300 provided in the embodiment of the present application can implement each process implemented by the method embodiment of fig. 1, and in order to avoid repetition, a description is omitted here.
Optionally, as shown in fig. 4, the embodiment of the present application further provides an electronic device 400, including a processor 402 and a memory 404, where the memory 404 stores a program or an instruction that can be executed on the processor 402, and the program or the instruction implements each step of the above device connection method embodiment when executed by the processor 402, and the steps achieve the same technical effects, so that repetition is avoided, and no redundant description is provided herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 5 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 500 includes, but is not limited to: radio frequency unit 501, network module 502, audio output unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, and processor 510.
Those skilled in the art will appreciate that the electronic device 500 may further include a power source (e.g., a battery) for powering the various components, and that the power source may be logically coupled to the processor 510 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The processor 510 is configured to obtain device status information of at least one second device when the first device corresponds to the target user account; the second device corresponds to the target user account; the target user account is a device login account or an application login account.
The processor 510 is further configured to establish a communication connection with the at least one second device based on the device status information of the at least one second device.
In the embodiment of the application, under the condition that the first equipment corresponds to the target user account, equipment state information of at least one second equipment is acquired; the second device corresponds to the target user account; the target user account is a device login account or an application login account; a communication connection is established with the at least one second device based on the device status information of the at least one second device. In the embodiment of the application, the equipment state information of the second equipment which logs in the same user account as the first equipment is acquired, and the first equipment further actively establishes communication connection with the second equipment based on the equipment state information. In this way, the communication connection can be quickly established with the first equipment by logging in the same equipment account number, or the second equipment by logging in the same application account number with the application program installed on the first equipment, so that the complicated operation of manually establishing the communication connection between the equipment by a user is avoided.
Optionally, the processor 510 is specifically configured to: if the first equipment does not establish communication connection with any equipment or the first equipment establishes communication connection with the third equipment under the condition that the equipment state information of one second equipment meets the equipment connection condition, establishing communication connection with the second equipment; the third device and the second device belong to different device types; if the first equipment and the fourth equipment are in communication connection, outputting prompt information, wherein the prompt information is used for prompting whether to establish communication connection with the second equipment; the fourth device and the second device belong to the same device type; if the first equipment and the fifth equipment are in communication connection, outputting prompt information; the fifth device does not correspond to the target user account.
In the above embodiment of the present application, if the device status information of one of the second devices satisfies the device connection condition, if the first device does not establish a communication connection with any device, or if the first device establishes a communication connection with the third device, then the first device establishes a communication connection with the second device; the third device and the second device belong to different device types; if the first equipment and the fourth equipment are in communication connection, outputting prompt information, wherein the prompt information is used for prompting whether to establish communication connection with the second equipment; the fourth device and the second device belong to the same device type; if the first equipment and the fifth equipment are in communication connection, outputting prompt information; the fifth device does not correspond to the target user account. In this way, by combining the account authentication capability and the device state information, the communication connection can be quickly established with the first device to log in the same device account or the second device to log in the same application account with the application installed on the first device, so that the complicated operation of manually establishing the communication connection between the devices by a user is avoided.
Optionally, the processor 510 is specifically configured to: if the first equipment does not establish communication connection with any one of the equipment under the condition that the equipment state information of the at least two second equipment meets the equipment connection condition, establishing communication connection with the second equipment meeting the first condition in the at least two second equipment; the first condition is: a second device selected by the user, a second device of the target type, a second device preferentially detected, a second device closer to the user, or a historically connected second device; if the first equipment and the sixth equipment establish communication connection, establishing communication connection with second equipment meeting second conditions; the second condition is: a second device selected by the user, or a second device of a different device type than the sixth device.
In the above embodiment of the present application, if the device state information of at least two second devices satisfies the device connection condition, if the first device does not establish a communication connection with any device, then the first device establishes a communication connection with a second device satisfying the first condition among the at least two second devices; the first condition is: the second device selected by the user, the second device of the target type, the second device preferentially detected, the second device closer to or the historically connected second device. If the first equipment and the sixth equipment establish communication connection, establishing communication connection with second equipment meeting second conditions; the second condition is: a second device selected by the user, or a second device of a different device type than the sixth device. In this way, by combining the account authentication capability and the device state information, the communication connection can be quickly established with the first device to log in the same device account or the second device to log in the same application account with the application installed on the first device, so that the complicated operation of manually establishing the communication connection between the devices by a user is avoided.
Optionally, the processor 510 is specifically configured to: and establishing communication connection with the second device in the case that the device state information of the second device meets the device connection condition.
In the above embodiment of the present application, when the device status information of the second device satisfies the device connection condition, a communication connection is established with the second device. In this way, the account authentication capability and the equipment state information are combined to automatically connect equipment, so that the operation steps of a user are reduced, and the equipment connection efficiency is improved.
Optionally, the display unit 506 is configured to display a device connection interface according to device status information of at least one second device; the device connection interface includes a device identification of at least one second device and a device connection status identification describing a device connection status of the second device.
According to the embodiment, the device connection interface is displayed according to the device state information of at least one second device; the device connection interface includes a device identification of at least one second device and a device connection status identification describing a device connection status of the second device. Therefore, based on the equipment state information of the second equipment, the equipment connection state of the first equipment and the second equipment is displayed, so that a user can intuitively know the communication connection condition of the first equipment and the second equipment.
Optionally, the operation state information includes screen state information of the second device, and the device connection condition includes: the screen state information indicates that the second device is in a screen unlocked state.
In the above embodiment provided by the present application, the operation state information includes screen state information of the second device, and the device connection condition includes: the screen state information indicates that the second device is in a screen unlocked state. Therefore, when the screen of the second device is in an unlocking state, namely, when the user uses the second device, communication connection between the first device and the second device is established, connection between the first device and the idle second device is avoided, accuracy of device connection is guaranteed, and safety and privacy of device data are guaranteed.
Optionally, the display unit 506 is further configured to: and displaying the reason why the second device is not connectable in the case that the device connection state of one of the second devices is the non-connectable state.
In the above embodiment provided by the present application, in the case where the device connection state of one of the second devices is the unconnectable state, the unconnectable reason of the second device is displayed. Therefore, under the condition that the first equipment and the second equipment are connected in failure or are disconnected, the user is timely informed of the reason of the connection failure, and the equipment connection efficiency is improved.
Optionally, the display unit 506 is further configured to: displaying a connection control corresponding to the second equipment according to the unconnected reason of the second equipment under the condition that the equipment connection state of one of the second equipment is the unconnected state; the connection control comprises at least one of the following: network control, bluetooth control, screen unlocking control and virtual private network closing control; the network control is used for controlling the switching of the network of the second device to a first network, and the first network is a network connected with the first device; the Bluetooth control is used for controlling to start Bluetooth of the second device; the screen unlocking control is used for controlling unlocking of a screen of the second device; the virtual private network shutdown control is for shutting down the virtual private network of the second device.
According to the embodiment of the application, when the equipment connection state of one of the second equipment is the unconnected state, the connection control corresponding to the second equipment is displayed according to the unconnected reason of the second equipment; the connection control comprises at least one of the following: network control, bluetooth control, screen unlocking control and virtual private network closing control; the network control is used for controlling the switching of the network of the second device to a first network, and the first network is a network connected with the first device; the Bluetooth control is used for controlling to start Bluetooth of the second device; the screen unlocking control is used for controlling unlocking of a screen of the second device; the virtual private network shutdown control is for shutting down the virtual private network of the second device. Therefore, under the condition that the connection between the first equipment and the second equipment fails or is interrupted, the user is guided to solve the problem in time, and the success rate of equipment connection is improved.
Optionally, the processor 510 is specifically configured to: acquiring timing connection information; and establishing a communication connection with at least one second device according to the timing connection information.
According to the embodiment of the application, before the communication connection is established with the at least one second device according to the device state information of the at least one second device, the first device also acquires the timing connection information, and further establishes the communication connection with the at least one second device according to the timing connection information. Thus, the accuracy of equipment connection is improved, and the punctuality of equipment connection and equipment interaction is ensured.
It should be appreciated that in embodiments of the present application, the input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042, the graphics processor 5041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 507 includes at least one of a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen. Touch panel 5071 may include two parts, a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 509 may include volatile memory or nonvolatile memory, or the memory 509 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 509 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 510 may include one or more processing units; optionally, the processor 510 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, etc., and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 510.
The embodiment of the application also provides a readable storage medium, and the readable storage medium stores a program or an instruction, which when executed by a processor, implements each process of the above device connection method embodiment, and can achieve the same technical effects, so that repetition is avoided, and no further description is provided herein.
The processor is a processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as computer readable memory ROM, random access memory RAM, magnetic or optical disks, and the like.
The embodiment of the application further provides a chip, the chip comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions, the processes of the embodiment of the device connection method can be realized, the same technical effects can be achieved, and the repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
Embodiments of the present application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the respective processes of the above-described device connection method embodiments, and achieve the same technical effects, and are not described herein in detail to avoid repetition.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in part in the form of a computer software product stored on a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (10)

1. A device connection method, characterized in that the device connection method comprises:
acquiring equipment state information of at least one second equipment under the condition that the first equipment corresponds to a target user account; the second device corresponds to the target user account; the target user account is a device login account or an application login account;
and establishing communication connection with at least one second device according to the device state information of the at least one second device.
2. The device connection method according to claim 1, wherein the establishing a communication connection with at least one of the second devices according to the device status information of the at least one of the second devices includes:
if the first equipment does not establish communication connection with any equipment or the first equipment establishes communication connection with third equipment under the condition that the equipment state information of one second equipment meets the equipment connection condition, establishing communication connection with the second equipment; the third device and the second device belong to different device types;
if the first equipment and the fourth equipment are in communication connection, outputting prompt information, wherein the prompt information is used for prompting whether to establish communication connection with the second equipment; the fourth device and the second device belong to the same device type;
If the first equipment and the fifth equipment are in communication connection, outputting the prompt information; the fifth device does not correspond to the target user account.
3. The device connection method according to claim 1, wherein the establishing a communication connection with at least one of the second devices according to the device status information of the at least one of the second devices includes:
if the first equipment does not establish communication connection with any equipment under the condition that the equipment state information of at least two second equipment meets the equipment connection condition, establishing communication connection with the second equipment meeting the first condition in the at least two second equipment; the first condition is: a second device selected by the user, a second device of the target type, a second device preferentially detected, a second device closer to the user, or a historically connected second device;
if the first equipment and the sixth equipment establish communication connection, establishing communication connection with second equipment meeting second conditions; the second condition is: a second device selected by the user, or a second device of a different device type than the sixth device.
4. The device connection method according to claim 1, characterized in that the method further comprises:
Displaying a device connection interface according to the device status information of the at least one second device; the device connection interface includes a device identifier of the at least one second device and a device connection status identifier, the device connection status identifier describing a device connection status of the second device.
5. The device connection method according to claim 4, characterized in that the method further comprises:
and displaying the non-connectable reason of the second equipment under the condition that the equipment connection state of one second equipment is the non-connectable state.
6. The device connection method according to claim 4, characterized in that the method further comprises:
displaying a connection control corresponding to one second device according to the unconnected reason of the second device under the condition that the device connection state of one second device is the unconnected state; the connection control comprises at least one of the following: network control, bluetooth control, screen unlocking control and virtual private network closing control; the network control is used for controlling the network of the second equipment to be switched to a first network, and the first network is a network connected with the first equipment; the Bluetooth control is used for controlling to start Bluetooth of the second equipment; the screen unlocking control is used for controlling unlocking of a screen of the second device; the virtual private network closing control is used for closing the virtual private network of the second device.
7. The device connection method according to any one of claims 1 to 6, characterized in that before the communication connection is established with at least one of the second devices according to the device status information of the at least one second device, the method further comprises:
acquiring timing connection information;
the establishing a communication connection with at least one second device according to the device state information of the at least one second device comprises:
and establishing communication connection with at least one second device according to the timing connection information.
8. A device connection apparatus, characterized in that the device connection apparatus comprises:
the device comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is used for acquiring device state information of at least one second device under the condition that the first device corresponds to a target user account; the second device corresponds to the target user account; the target user account is a device login account or an application login account;
and the processing unit is used for establishing communication connection with at least one second device according to the device state information of the at least one second device.
9. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the device connection method of any one of claims 1 to 7.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the device connection method according to any of claims 1 to 7.
CN202311036306.8A 2023-08-17 2023-08-17 Device connection method and apparatus, electronic device, and readable storage medium Pending CN116801425A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311036306.8A CN116801425A (en) 2023-08-17 2023-08-17 Device connection method and apparatus, electronic device, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311036306.8A CN116801425A (en) 2023-08-17 2023-08-17 Device connection method and apparatus, electronic device, and readable storage medium

Publications (1)

Publication Number Publication Date
CN116801425A true CN116801425A (en) 2023-09-22

Family

ID=88046159

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311036306.8A Pending CN116801425A (en) 2023-08-17 2023-08-17 Device connection method and apparatus, electronic device, and readable storage medium

Country Status (1)

Country Link
CN (1) CN116801425A (en)

Similar Documents

Publication Publication Date Title
CN111880870B (en) Method and device for controlling electronic equipment and electronic equipment
CN111857500B (en) Message display method and device, electronic equipment and storage medium
CN103228059B (en) Method and device for processing bluetooth pairing information
US20190340348A1 (en) Security verification method and device
CN113364668B (en) Message reminding method and device and electronic equipment
CN111866885A (en) Verification information sharing method and device and electronic equipment
CN110417723B (en) Application login method, device, terminal and storage medium
CN112016068A (en) Account control method, device, equipment and computer readable storage medium
CN104914806B (en) Via mobile messaging transmission secret/security intermediary system connection people and things
CN113141294B (en) Message prompting method and device and electronic equipment
CN112511412B (en) Information sending method and device, electronic equipment and readable storage medium
CN112417421A (en) Scanning method, scanning device, electronic equipment and readable storage medium
CN106228364A (en) A kind of information demonstrating method and present device
CN111884908A (en) Contact person identification display method and device and electronic equipment
CN115567901A (en) Method, device, equipment and storage medium for operating user identity identification card
CN112235412B (en) Message processing method and device
CN112637195B (en) Method and device for controlling electronic equipment and electronic equipment
CN113138702B (en) Information processing method, device, electronic equipment and storage medium
CN104699535B (en) A kind of information processing method and electronic equipment
CN112888026A (en) Redirection failure processing method and device, electronic equipment and readable storage medium
CN113138786A (en) Application updating method and device
CN112486387A (en) Application program control method and device
CN112147964A (en) Device management method, device, electronic device and medium
CN115061609B (en) Group chat operation processing method, processing device, electronic equipment and storage medium
CN116801425A (en) Device connection method and apparatus, electronic device, and readable storage medium

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