CN113114755A - Method and device for smooth switching between devices, electronic device and storage medium - Google Patents

Method and device for smooth switching between devices, electronic device and storage medium Download PDF

Info

Publication number
CN113114755A
CN113114755A CN202110378756.XA CN202110378756A CN113114755A CN 113114755 A CN113114755 A CN 113114755A CN 202110378756 A CN202110378756 A CN 202110378756A CN 113114755 A CN113114755 A CN 113114755A
Authority
CN
China
Prior art keywords
equipment
initial
information
communication protocol
accessory
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
CN202110378756.XA
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202110378756.XA priority Critical patent/CN113114755A/en
Publication of CN113114755A publication Critical patent/CN113114755A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to the technology of Internet of things, and discloses a smooth switching method between devices, which comprises the following steps: determining an initial communication protocol usable by the initial equipment and an auxiliary communication protocol usable by the auxiliary equipment according to the initial equipment information and the auxiliary equipment information; establishing communication connection between the initial equipment and the auxiliary equipment according to the initial communication protocol and the auxiliary communication protocol; acquiring user information in initial equipment by using communication connection, and storing the user information and the auxiliary equipment information in an associated manner as a user authorization certificate; and switching the initial equipment into preset target equipment according to the equipment switching instruction, and establishing communication connection between the auxiliary equipment and the target equipment according to the user authorization certificate. In addition, the invention also relates to a block chain technology, and the initial equipment information can be stored in the node of the block chain. The invention also provides a device for smoothly switching between the devices, the electronic device and a storage medium. The invention can solve the problem of low efficiency when the user switches the equipment connection.

Description

Method and device for smooth switching between devices, electronic device and storage medium
Technical Field
The invention relates to the technical field of internet of things, in particular to a method and a device for smooth switching between devices, electronic devices and a computer readable storage medium.
Background
With the development of the internet of things technology, interconnection between devices becomes a key point for managing multiple devices in the internet of things technology, and generally, in order to implement interconnection between devices, a uniform communication protocol needs to exist between the devices, or the same basic system needs to be used. There are a large number of devices on the market, produced by different manufacturers, and therefore, the interconnection of the devices can generally be achieved only with a uniform communication protocol.
Currently, most of device interconnections based on a unified communication protocol are point-to-point connections, and when a user wants to switch among multiple devices, the user needs to disconnect the original device and reestablish the connection with a new device. For example, when a user wants to switch the interconnection between the first device and the second device to the connection between the second device and the third device, the user needs to disconnect the first device from the second device and then establish the connection between the second device and the third device. The method causes the low efficiency of the user when the equipment connection is switched, and the smooth switching can not be realized.
Disclosure of Invention
The invention provides a method and a device for smooth switching between equipment and a computer readable storage medium, and mainly aims to solve the problem of low efficiency when a user performs equipment connection switching.
In order to achieve the above object, a method for smooth handover between devices provided by the present invention includes:
acquiring initial equipment information, and determining an initial communication protocol usable by the initial equipment according to the initial equipment information;
acquiring accessory equipment information, and determining an accessory communication protocol which can be used by accessory equipment according to the accessory equipment information;
establishing a communication connection between the initial device and the auxiliary device according to the initial communication protocol and the auxiliary communication protocol;
acquiring user information in the initial equipment by using the communication connection, and performing associated storage on the user information and the auxiliary equipment information to obtain a user authorization certificate;
when an equipment switching instruction is received, switching the initial equipment to preset target equipment according to the equipment switching instruction, and meanwhile, establishing communication connection between the auxiliary equipment and the target equipment according to the user authorization certificate.
Optionally, the determining, according to the initial device information, an initial communication protocol usable by the initial device includes:
extracting the equipment name and the equipment model in the initial equipment information;
and inquiring the initial communication protocol of the initial equipment according to the equipment name and the equipment model.
Optionally, the establishing, according to the initial communication protocol and the accessory communication protocol, a communication connection between the initial device and the accessory device includes:
traversing the initial communication protocol and the auxiliary communication protocol to acquire a common communication protocol of the initial communication protocol and the auxiliary communication protocol;
generating a communication request by utilizing the common communication protocol;
executing the communication request to establish a communication connection between the initiating device and the accessory device.
Optionally, the obtaining the user information in the initial device by using the communication connection includes:
acquiring a storage path of user information;
and capturing user information from the storage path by using the communication connection.
Optionally, the associating and storing the user information and the accessory device information to obtain a user authorization credential includes:
constructing a blank authorization table;
and taking the user information as a primary key value, and taking the auxiliary equipment information as an auxiliary field corresponding to the primary key value to be stored in the blank authorization table to obtain a user authorization certificate.
Optionally, the switching the initial device to a preset target device according to the device switching instruction includes:
acquiring user information in the initial equipment;
analyzing the equipment switching instruction to obtain a resource to be switched and target equipment;
packaging the band switching resources in the initial equipment to obtain a resource package;
and migrating the resource packet and the user information to the target equipment.
Optionally, the establishing a communication connection between the accessory device and the target device according to the user authorization credential includes:
when the initial equipment is monitored to be switched to the target equipment, comparing the user authorization certificate with the user information transferred to the target equipment;
if the user information is matched with the user authorization certificate, acquiring target equipment information of target equipment, and determining that the target equipment can use a target communication protocol according to the target equipment information;
and establishing the communication connection between the target device and the accessory device according to the target communication protocol and the accessory communication protocol.
In order to solve the above problem, the present invention further provides an inter-device smooth switching apparatus, including:
the first information acquisition module is used for acquiring initial equipment information and determining an initial communication protocol which can be used by initial equipment according to the initial equipment information;
the second information acquisition module is used for acquiring the information of the accessory equipment and determining an accessory communication protocol which can be used by the accessory equipment according to the information of the accessory equipment;
the communication connection establishing module is used for establishing communication connection between the initial equipment and the accessory equipment according to the initial communication protocol and the accessory communication protocol;
the associated storage module is used for acquiring the user information in the initial equipment by utilizing the communication connection, and performing associated storage on the user information and the auxiliary equipment information to obtain a user authorization certificate;
and the smooth switching module is used for switching the initial equipment into preset target equipment according to the equipment switching instruction when the equipment switching instruction is received, and meanwhile, establishing communication connection between the auxiliary equipment and the target equipment according to the user authorization certificate.
In order to solve the above problem, the present invention also provides an electronic device, including:
a memory storing at least one instruction; and
and the processor executes the instructions stored in the memory to realize the smooth switching method between the devices.
In order to solve the above problem, the present invention further provides a computer-readable storage medium, where at least one instruction is stored, and the at least one instruction is executed by a processor in an electronic device to implement the inter-device smooth handover method described above.
The embodiment of the invention determines the initial communication protocol and the auxiliary communication protocol according to the initial equipment information and the auxiliary equipment information, and establishes the communication connection between the initial equipment and the auxiliary equipment by using the initial communication protocol and the auxiliary communication protocol, thereby being beneficial to improving the success rate when the communication connection is established between the initial equipment and the auxiliary equipment; the user information and the auxiliary equipment information are stored in a correlation mode to generate a user authorization certificate, so that the auxiliary equipment can be authorized by using the user information in the initial equipment, and smooth switching of equipment connection can be realized subsequently; and establishing communication connection between the accessory equipment and the target equipment according to the user authorization certificate while switching the initial equipment to the target equipment according to the equipment switching instruction so as to realize smooth switching of the connection between the accessory equipment and the initial equipment to the target equipment. Therefore, the method and the device for smoothly switching between the devices, the electronic device and the computer readable storage medium provided by the invention can solve the problem of low efficiency when a user performs device connection switching, improve the device connection switching efficiency and realize the smooth switching of the device connection.
Drawings
Fig. 1 is a schematic flowchart of a method for smooth handover between devices according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of establishing a communication connection according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a user authorization credential according to an embodiment of the present invention;
FIG. 4 is a functional block diagram of an inter-device smooth switching apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device for implementing the method for smoothly switching between devices according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the application provides a method for smoothly switching between devices. The execution subject of the inter-device smooth handover method includes, but is not limited to, at least one of electronic devices that can be configured to execute the method provided by the embodiments of the present application, such as a server, a terminal, and the like. In other words, the inter-device smooth handover method may be performed by software or hardware installed in the terminal device or the server device, and the software may be a block chain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
Fig. 1 is a schematic flow chart of a method for smooth handover between devices according to an embodiment of the present invention. In this embodiment, the method for smooth handover between devices includes:
s1, acquiring initial equipment information, and determining an initial communication protocol usable by the initial equipment according to the initial equipment information.
In the embodiment of the present invention, the initial device information includes a device name, a device model, a manufacturer, and the like of the initial device. The initial device can be a mobile phone, a computer, a bluetooth headset, or other devices capable of connecting and communicating with an external computer or a computer cluster.
According to the embodiment of the invention, the prestored initial equipment information can be captured from the pre-constructed block link points through the python statement with the data capturing function, and the efficiency of acquiring the initial equipment information can be improved by utilizing the high throughput of the block link points to the data.
In the embodiment of the present invention, the initial communication protocol includes, but is not limited to, a wifi communication protocol, a bluetooth communication protocol, and the like. And analyzing the equipment information, and then confirming an initial communication protocol which can be used by the initial equipment according to the initial equipment information, wherein the initial communication protocol is used for establishing communication connection for data transmission between the equipment when the initial equipment is communicated with other equipment.
For example, the device name, the device model, the device serial number, and the like included in the initial device information are analyzed to uniquely determine the device information, and the usable initial communication protocol corresponding to the initial device information is queried from the internet or the like by using the analyzed information.
Or analyzing the initial equipment information to obtain an equipment data storage area contained in the initial equipment information, and capturing the communication protocol information of the initial equipment from the equipment data storage area of the initial equipment by a python statement with a data capturing function so as to confirm the communication protocol of the initial equipment.
In an embodiment of the present invention, the determining, according to the initial device information, an initial communication protocol usable by the initial device includes:
extracting the equipment name and the equipment model in the initial equipment information;
and inquiring the initial communication protocol of the initial equipment according to the equipment name and the equipment model.
In detail, the embodiment of the present invention may specifically analyze different types of initial devices to extract the device name and the device model in the initial device information. For example, when the initial device information is a text type, the initial device may be analyzed by using an intelligent model with a text analysis function, such as a regular expression or an NLP model, to extract a device name and a device model in the initial device information.
Alternatively, when the device information is in the form of an image (such as a PDF-type product specification), the initial device may be analyzed by an intelligent model with an image content recognition function, such as an OCR model, to extract the device name and the device model number in the initial device information.
The embodiment of the invention determines the usable initial communication protocol of the initial equipment according to the initial equipment information, and is beneficial to improving the success rate of the subsequent initial equipment and other equipment when establishing communication connection.
And S2, acquiring the accessory device information, and determining an accessory communication protocol which can be used by the accessory device according to the accessory device information.
In the embodiment of the present invention, the accessory device information includes a device name, a device model, a manufacturer, and the like of the accessory device. The accessory device can be a mobile phone, a computer, a Bluetooth headset or other devices which can be connected and communicated with an external computer or a computer cluster.
In detail, the accessory communication protocol includes, but is not limited to, wifi communication protocol, bluetooth communication protocol, and the like. The accessory communication protocol usable by the accessory device can be confirmed according to the accessory device information by analyzing the accessory device information, wherein the accessory communication protocol is used for establishing a communication connection for data transmission between devices when the accessory device communicates with other devices.
Further, the step of obtaining the accessory device information and determining the accessory communication protocol usable by the accessory device according to the accessory device information is consistent with the step of obtaining the initial device information in step S1 and determining the initial communication protocol usable by the initial device according to the initial device information, and is not described herein again.
And S3, establishing the communication connection between the initial device and the accessory device according to the initial communication protocol and the accessory communication protocol.
In an actual application scenario of the present invention, when different devices communicate with each other, the same communication protocol needs to be used to establish communication connection between the different devices and to implement communication between the devices, so that when communication connection between the initial device and the accessory device needs to be established, a common communication protocol between the initial device and the accessory device needs to be used.
In the embodiment of the invention, the common communication protocol shared between the initial communication protocol and the auxiliary communication protocol can be determined by analyzing the initial communication protocol and the auxiliary communication protocol, and the communication connection is established between the initial device and the auxiliary device by utilizing the common communication protocol.
In another embodiment of the present invention, the communication connection between the initiating device and the accessory device may be established by means of trying to connect, that is, a communication connection establishment request is sequentially sent to the accessory device by using a communication protocol in the initial communication protocol of the initiating device, when the accessory device receives the request, it is queried from the accessory communication request of the accessory device whether there is an accessory communication protocol that is the same as the initial communication protocol, and if so, a communication connection is established with the initiating device through the accessory communication protocol.
And if not, refusing to establish the communication connection through the initial communication request, and sending the communication connection establishment request to the accessory equipment by reusing another initial communication protocol in the initial communication protocol of the initial equipment until the accessory communication protocols in the initial equipment are refused or the communication connection establishment is successful.
In one embodiment of the present invention, referring to fig. 2, the establishing a communication connection between the initiating device and the accessory device according to the initiating communication protocol and the accessory communication protocol includes:
s21, traversing the initial communication protocol and the auxiliary communication protocol to acquire a common communication protocol of the initial communication protocol and the auxiliary communication protocol;
s22, generating a communication request by utilizing the common communication protocol;
and S23, executing the communication request to establish communication connection between the initial equipment and the auxiliary equipment.
For example, there are communication protocols available for the initial device as: protocol A, protocol B and protocol C, wherein available communication protocols of the accessory equipment are as follows: protocol A, protocol D and protocol F; it may be determined that the common communication protocol between the initiator device and the accessory device is the a protocol, and a communication request between the initiator device and the accessory device may be generated according to the a protocol and the generated communication request may be executed to establish a communication connection between the initiator device and the accessory device.
S4, obtaining the user information in the initial device by using the communication connection, and storing the user information and the accessory device information in a correlation manner to obtain a user authorization certificate.
In the embodiment of the invention, the user information comprises identity information, authorization information and the like of the user to the equipment. For example, if the user authorizes the device a, the user can log in directly without verifying the login authority when logging in the device a again after logging out of the device a. Wherein the authorization information may include authorization information of a user for a plurality of devices.
The embodiment of the invention can acquire the user information from the initial equipment through the communication connection, transmit the user information to the accessory equipment and perform associated storage with the accessory equipment information in the accessory equipment so as to realize the authorization of the accessory equipment and generate the user authorization certificate.
In detail, the user authorization credential may be in a form of a table, that is, after the user information and the accessory device information are stored in association, a table with authorization information is generated, and each time the accessory device is logged in, whether the accessory device is authorized by the user or not may be queried from the table.
Specifically, referring to fig. 3, fig. 3 is a schematic diagram of a user authorization credential according to an embodiment of the present invention. Wherein, user X authorizes accessory device a and accessory device b, user Y authorizes accessory device a and accessory device c, and user Z authorizes accessory device b and accessory device c.
In another embodiment of the present invention, the acquiring the user information in the initial device by using the communication connection includes:
acquiring a storage path of user information;
and capturing user information from the storage path by using the communication connection.
In detail, the storage path may be obtained from a preset document in which the storage path of the user is recorded after the authorization of the user. The user information in the storage path is captured through communication connection, so that the efficiency of capturing the user information is improved, and the user information and the accessory equipment information are conveniently and subsequently stored in an associated mode.
In another embodiment of the present invention, the associating and storing the user information and the accessory device information to obtain a user authorization credential includes:
constructing a blank authorization table;
and taking the user information as a primary key value, and taking the auxiliary equipment information as an auxiliary field corresponding to the primary key value to be stored in the blank authorization table to obtain a user authorization certificate.
In detail, a blank authorization table can be built through java sentences with a data table building function, or a blank data table which is built in advance is captured as the blank authorization table through java sentences with a data capture function point.
In the embodiment of the invention, the user information in the initial equipment is acquired, and the user information and the auxiliary equipment information are stored in a correlation manner to obtain the user authorization certificate, so that the authorization of the auxiliary equipment by using the user information in the initial equipment can be realized, and the smooth switching of equipment connection can be realized subsequently.
And S5, when receiving a device switching instruction, switching the initial device to a preset target device according to the device switching instruction, and meanwhile, establishing communication connection between the accessory device and the target device according to the user authorization certificate.
In this embodiment of the present invention, the device switching instruction may be an instruction for performing device switching input by a user. For example, the initial device is a mobile phone, the mobile phone plays a video, and after receiving a device switching instruction input by a user, the mobile phone switches the video being played by the initial device to a target device corresponding to the device switching instruction according to the device switching instruction to play the video.
In detail, the device switching instruction may establish a communication connection between the initiator and the target device according to a common communication protocol between the initiator and the accessory, so as to switch the initiator to the preset target device.
Meanwhile, the communication connection between the auxiliary device and the target device is established by utilizing the user authorization certificate generated in the auxiliary device, so that the communication connection between the auxiliary device and the initial device is smoothly switched into the communication connection between the auxiliary device and the target device.
For example, the original device is a mobile phone, the accessory device is a bluetooth headset, the target device is a television, the mobile phone plays video 1, a first communication connection is established between the mobile phone and the bluetooth headset through bluetooth, and audio generated when the mobile phone plays video 1 is transmitted to the bluetooth headset through the first communication connection for playing. After receiving the equipment switching instruction, the video 1 being played in the mobile phone is switched to the television to be played, and meanwhile, according to the user authorization certificate generated in the Bluetooth headset, the communication connection between the Bluetooth headset and the television is established, so that the smooth switching of the Bluetooth headset from the mobile phone to the television is realized.
In an embodiment of the present invention, the switching the initial device to a preset target device according to the device switching instruction includes:
acquiring user information in the initial equipment;
analyzing the equipment switching instruction to obtain a resource to be switched and target equipment;
packaging the band switching resources in the initial equipment to obtain a resource package;
and migrating the resource packet and the user information to the target equipment.
In detail, the preset parser may be used to parse the device switching instruction to obtain a resource to be switched (for example, video 1) that needs to be switched from the initial device to the target device in the device switching instruction, and switch the corresponding target device with the device.
Specifically, the OEM tool, the anysend tool and the like can be used for packaging the switching resources in the initial equipment, packaging the data and then transferring the data, so that the efficiency of data transfer is improved, and the efficiency of equipment switching is improved.
Further, the establishing a communication connection between the accessory device and the target device according to the user authorization credential includes:
when the initial equipment is monitored to be switched to the target equipment, comparing the user authorization certificate with the user information transferred to the target equipment;
if the user information is matched with the user authorization certificate, acquiring target equipment information of target equipment, and determining that the target equipment can use a target communication protocol according to the target equipment information;
and establishing the communication connection between the target device and the accessory device according to the target communication protocol and the accessory communication protocol.
Specifically, an algorithm with similarity determination may be used to compare the user authorization credential with the user information migrated to the target device, so as to determine whether the user information is matched with the user authorization credential. The algorithms include, but are not limited to: euclidean distance algorithm and cosine distance algorithm.
For example, vector conversion is performed on the user authorization credential and the user information, a distance value between the user authorization credential and a vector corresponding to the user information is calculated through an algorithm, when the distance value is smaller than a preset distance threshold value, it is determined that the user information is matched with the user authorization credential, and when the distance value is larger than or equal to the distance threshold value, it is determined that the user information is not matched with the user authorization credential.
In another embodiment of the present invention, a pre-installed monitor may be used to monitor an event that an initial device is switched to a target device, when the initial device is monitored to be switched to the target device, a user authorization credential is compared with user information, and if the user information is recorded in the user authorization credential, a communication connection is established between the target device and an accessory device, so as to implement communication between the target device and the accessory device.
The embodiment of the invention determines the initial communication protocol and the auxiliary communication protocol according to the initial equipment information and the auxiliary equipment information, and establishes the communication connection between the initial equipment and the auxiliary equipment by using the initial communication protocol and the auxiliary communication protocol, thereby being beneficial to improving the success rate when the communication connection is established between the initial equipment and the auxiliary equipment; the user information and the auxiliary equipment information are stored in a correlation mode to generate a user authorization certificate, so that the auxiliary equipment can be authorized by using the user information in the initial equipment, and smooth switching of equipment connection can be realized subsequently; and establishing communication connection between the accessory equipment and the target equipment according to the user authorization certificate while switching the initial equipment to the target equipment according to the equipment switching instruction so as to realize smooth switching of the connection between the accessory equipment and the initial equipment to the target equipment. Therefore, the method for smoothly switching between the devices can solve the problem of low efficiency when the user switches the device connection, improve the device connection switching efficiency and realize the smooth switching of the device connection.
Fig. 4 is a functional block diagram of an inter-device smooth switching apparatus according to an embodiment of the present invention.
The inter-device smooth switching apparatus 100 according to the present invention may be installed in an electronic device. According to the implemented functions, the inter-device smooth switching apparatus 100 may include a first information obtaining module 101, a second information obtaining module 102, a communication connection establishing module 103, an association storage module 104, and a smooth switching module 105. The module of the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
The first information obtaining module 101 is configured to obtain initial device information, and determine an initial communication protocol usable by an initial device according to the initial device information;
the second information obtaining module 102 is configured to obtain accessory device information, and determine, according to the accessory device information, an accessory communication protocol that can be used by an accessory device;
the communication connection establishing module 103 is configured to establish a communication connection between the initiating device and the accessory device according to the initiating communication protocol and the accessory communication protocol;
the association storage module 104 is configured to obtain user information in the initial device by using the communication connection, and perform association storage on the user information and the accessory device information to obtain a user authorization credential;
the smooth switching module 105 is configured to, when receiving a device switching instruction, switch the initial device to a preset target device according to the device switching instruction, and establish a communication connection between the accessory device and the target device according to the user authorization credential.
In detail, in the embodiment of the present application, each module in the inter-device smooth switching apparatus 100 adopts the same technical means as the inter-device smooth switching method described in fig. 1 to fig. 4, and can produce the same technical effect, and details are not described here.
The embodiment of the invention determines the initial communication protocol and the auxiliary communication protocol according to the initial equipment information and the auxiliary equipment information, and establishes the communication connection between the initial equipment and the auxiliary equipment by using the initial communication protocol and the auxiliary communication protocol, thereby being beneficial to improving the success rate when the communication connection is established between the initial equipment and the auxiliary equipment; the user information and the auxiliary equipment information are stored in a correlation mode to generate a user authorization certificate, so that the auxiliary equipment can be authorized by using the user information in the initial equipment, and smooth switching of equipment connection can be realized subsequently; and establishing communication connection between the accessory equipment and the target equipment according to the user authorization certificate while switching the initial equipment to the target equipment according to the equipment switching instruction so as to realize smooth switching of the connection between the accessory equipment and the initial equipment to the target equipment. Therefore, the device for smoothly switching between the devices can solve the problem of low efficiency when a user switches the device connection, improve the device connection switching efficiency and realize the smooth switching of the device connection.
Fig. 5 is a schematic structural diagram of an electronic device for implementing a method for smoothly switching between devices according to an embodiment of the present invention.
The electronic device 1 may comprise a processor 10, a memory 11 and a bus, and may further comprise a computer program, such as an inter-device smooth handover program 12, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, which includes flash memory, removable hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used to store not only application software installed in the electronic device 1 and various types of data, such as codes of the inter-device smooth switching program 12, but also temporarily store data that has been output or is to be output.
The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device 1 by running or executing programs or modules (e.g., inter-device smooth switching programs, etc.) stored in the memory 11 and calling data stored in the memory 11.
The bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
Fig. 5 only shows an electronic device with components, and it will be understood by a person skilled in the art that the structure shown in fig. 5 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or a combination of certain components, or a different arrangement of components.
For example, although not shown, the electronic device 1 may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so as to implement functions of charge management, discharge management, power consumption management, and the like through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device 1 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Further, the electronic device 1 may further include a network interface, and optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used for establishing a communication connection between the electronic device 1 and other electronic devices.
Optionally, the electronic device 1 may further comprise a user interface, which may be a Display (Display), an input unit (such as a Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the electronic device 1 and for displaying a visualized user interface, among other things.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The inter-device smooth handover program 12 stored in the memory 11 of the electronic device 1 is a combination of a plurality of instructions, which when executed in the processor 10, can implement:
acquiring initial equipment information, and determining an initial communication protocol usable by the initial equipment according to the initial equipment information;
acquiring accessory equipment information, and determining an accessory communication protocol which can be used by accessory equipment according to the accessory equipment information;
establishing a communication connection between the initial device and the auxiliary device according to the initial communication protocol and the auxiliary communication protocol;
acquiring user information in the initial equipment by using the communication connection, and performing associated storage on the user information and the auxiliary equipment information to obtain a user authorization certificate;
when an equipment switching instruction is received, switching the initial equipment to preset target equipment according to the equipment switching instruction, and meanwhile, establishing communication connection between the auxiliary equipment and the target equipment according to the user authorization certificate.
Specifically, the specific implementation method of the processor 10 for the instruction may refer to the description of the relevant steps in the embodiments corresponding to fig. 1 to fig. 5, which is not repeated herein.
Further, the integrated modules/units of the electronic device 1, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. The computer readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
The present invention also provides a computer-readable storage medium, storing a computer program which, when executed by a processor of an electronic device, may implement:
acquiring initial equipment information, and determining an initial communication protocol usable by the initial equipment according to the initial equipment information;
acquiring accessory equipment information, and determining an accessory communication protocol which can be used by accessory equipment according to the accessory equipment information;
establishing a communication connection between the initial device and the auxiliary device according to the initial communication protocol and the auxiliary communication protocol;
acquiring user information in the initial equipment by using the communication connection, and performing associated storage on the user information and the auxiliary equipment information to obtain a user authorization certificate;
when an equipment switching instruction is received, switching the initial equipment to preset target equipment according to the equipment switching instruction, and meanwhile, establishing communication connection between the auxiliary equipment and the target equipment according to the user authorization certificate.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. An inter-device smooth handover method, the method comprising:
acquiring initial equipment information, and determining an initial communication protocol usable by the initial equipment according to the initial equipment information;
acquiring accessory equipment information, and determining an accessory communication protocol which can be used by accessory equipment according to the accessory equipment information;
establishing a communication connection between the initial device and the auxiliary device according to the initial communication protocol and the auxiliary communication protocol;
acquiring user information in the initial equipment by using the communication connection, and performing associated storage on the user information and the auxiliary equipment information to obtain a user authorization certificate;
when an equipment switching instruction is received, switching the initial equipment to preset target equipment according to the equipment switching instruction, and meanwhile, establishing communication connection between the auxiliary equipment and the target equipment according to the user authorization certificate.
2. The method for smooth handover between devices of claim 1, wherein said determining an initial communication protocol usable by an initial device according to the initial device information comprises:
extracting the equipment name and the equipment model in the initial equipment information;
and inquiring the initial communication protocol of the initial equipment according to the equipment name and the equipment model.
3. The method for smooth handover between devices according to claim 1, wherein the establishing the communication connection between the initiating device and the accessory device according to the initiating communication protocol and the accessory communication protocol comprises:
traversing the initial communication protocol and the auxiliary communication protocol to acquire a common communication protocol of the initial communication protocol and the auxiliary communication protocol;
generating a communication request by utilizing the common communication protocol;
executing the communication request to establish a communication connection between the initiating device and the accessory device.
4. The method for smooth handover between devices of claim 1, wherein the obtaining the user information in the initial device using the communication connection comprises:
acquiring a storage path of user information;
and capturing user information from the storage path by using the communication connection.
5. The method for smooth handover between devices according to any one of claims 1 to 4, wherein the associating and storing the user information and the accessory device information to obtain a user authorization credential comprises:
constructing a blank authorization table;
and taking the user information as a primary key value, and taking the auxiliary equipment information as an auxiliary field corresponding to the primary key value to be stored in the blank authorization table to obtain a user authorization certificate.
6. The method for smooth inter-device handover according to claim 5, wherein the handing over the initial device to the preset target device according to the device handover command comprises:
acquiring user information in the initial equipment;
analyzing the equipment switching instruction to obtain a resource to be switched and target equipment;
packaging the band switching resources in the initial equipment to obtain a resource package;
and migrating the resource packet and the user information to the target equipment.
7. The method of claim 6, wherein the establishing the communication connection between the accessory device and the target device according to the user authorization credentials comprises:
when the initial equipment is monitored to be switched to the target equipment, comparing the user authorization certificate with the user information transferred to the target equipment;
if the user information is matched with the user authorization certificate, acquiring target equipment information of target equipment, and determining that the target equipment can use a target communication protocol according to the target equipment information;
and establishing the communication connection between the target device and the accessory device according to the target communication protocol and the accessory communication protocol.
8. An apparatus for smooth inter-device switching, the apparatus comprising:
the first information acquisition module is used for acquiring initial equipment information and determining an initial communication protocol which can be used by initial equipment according to the initial equipment information;
the second information acquisition module is used for acquiring the information of the accessory equipment and determining an accessory communication protocol which can be used by the accessory equipment according to the information of the accessory equipment;
the communication connection establishing module is used for establishing communication connection between the initial equipment and the accessory equipment according to the initial communication protocol and the accessory communication protocol;
the associated storage module is used for acquiring the user information in the initial equipment by utilizing the communication connection, and performing associated storage on the user information and the auxiliary equipment information to obtain a user authorization certificate;
and the smooth switching module is used for switching the initial equipment into preset target equipment according to the equipment switching instruction when the equipment switching instruction is received, and meanwhile, establishing communication connection between the auxiliary equipment and the target equipment according to the user authorization certificate.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the inter-device smooth handover method of any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the inter-device smooth handover method according to any one of claims 1 to 7.
CN202110378756.XA 2021-04-08 2021-04-08 Method and device for smooth switching between devices, electronic device and storage medium Pending CN113114755A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110378756.XA CN113114755A (en) 2021-04-08 2021-04-08 Method and device for smooth switching between devices, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110378756.XA CN113114755A (en) 2021-04-08 2021-04-08 Method and device for smooth switching between devices, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN113114755A true CN113114755A (en) 2021-07-13

Family

ID=76714619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110378756.XA Pending CN113114755A (en) 2021-04-08 2021-04-08 Method and device for smooth switching between devices, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN113114755A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114006885A (en) * 2021-11-17 2022-02-01 印象(山东)大数据有限公司 Data acquisition method and device based on intelligent equipment and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150146683A1 (en) * 2013-11-22 2015-05-28 Cellco Partnership D/B/A Verizon Wireless Call continuity using short-range communications handoff
CN106465442A (en) * 2014-03-26 2017-02-22 诺基亚技术有限公司 Apparatus, methods and computer programs for establishing wireless connections
CN110265037A (en) * 2019-06-13 2019-09-20 中信银行股份有限公司 Auth method, device, electronic equipment and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150146683A1 (en) * 2013-11-22 2015-05-28 Cellco Partnership D/B/A Verizon Wireless Call continuity using short-range communications handoff
CN106465442A (en) * 2014-03-26 2017-02-22 诺基亚技术有限公司 Apparatus, methods and computer programs for establishing wireless connections
CN110265037A (en) * 2019-06-13 2019-09-20 中信银行股份有限公司 Auth method, device, electronic equipment and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114006885A (en) * 2021-11-17 2022-02-01 印象(山东)大数据有限公司 Data acquisition method and device based on intelligent equipment and electronic equipment

Similar Documents

Publication Publication Date Title
US9560043B2 (en) Biometric-based wireless device association
CN111643907A (en) Game login method and device, storage medium and electronic equipment
CN113055380A (en) Message processing method and device, electronic equipment and medium
WO2014180392A1 (en) M2m-based information processing method and m2m service platform
CN107396283A (en) A kind of router wireless connection authentication method and system
US20180288112A1 (en) Control system, communication control method, and program product
CN113114755A (en) Method and device for smooth switching between devices, electronic device and storage medium
WO2022041888A1 (en) User terminal data acquisition method and apparatus, electronic device and storage medium
CN111131741B (en) Multi-party video call method, electronic equipment, device and computer readable storage medium
CN105812343A (en) Wearable service authentication method, cloud platform, wearable device and terminal
CN114125024B (en) Audio transmission method, electronic device and readable storage medium
CN104184804B (en) Cloud storage system and its offer and the system and method from its downloading data
CN107786308B (en) Data transmission method and terminal device
CN114513792A (en) Remote network control method and device based on eSIM card
CN111538899B (en) Resource information pushing method, equipment side and server side
CN114154182A (en) Information encryption method and device, storage medium and electronic device
WO2015078124A1 (en) Network data processing method and device
CN113127109A (en) Interface calling method and device, electronic equipment and readable storage medium
CN112637540A (en) Multi-client audio and video call connection method, device, equipment and storage medium
CN113179325A (en) Multi-terminal collaborative interaction method and device, gateway box and medium
CN113676899A (en) Equipment code matching method and device and electronic equipment
JP2002366528A (en) Security system for personal identification
CN114531486B (en) Industrial Internet data processing method, device, equipment and storage medium
CN113839784B (en) Secure call method and device, electronic equipment and storage medium
CN112261051B (en) User registration method, device and system

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