CN114816788A - Equipment control method and device, electronic equipment and storage medium - Google Patents

Equipment control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114816788A
CN114816788A CN202210248540.6A CN202210248540A CN114816788A CN 114816788 A CN114816788 A CN 114816788A CN 202210248540 A CN202210248540 A CN 202210248540A CN 114816788 A CN114816788 A CN 114816788A
Authority
CN
China
Prior art keywords
function module
target function
target
electronic equipment
connection channel
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
CN202210248540.6A
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202210248540.6A priority Critical patent/CN114816788A/en
Publication of CN114816788A publication Critical patent/CN114816788A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus

Abstract

The embodiment of the application discloses a device control method, a device, electronic equipment and a storage medium, which are applied to first electronic equipment, wherein the method comprises the following steps: acquiring operation of establishing connection with second electronic equipment; responding to the operation, and establishing a connection channel with the second electronic equipment; acquiring a target function module identifier; the target function module identification is used for representing a target function module of the first electronic equipment; the target function module belongs to one of a plurality of function modules of the first electronic equipment; the plurality of functional modules are related to a scene of data interaction with the second electronic equipment; configuring the connecting channel to be in a target working mode based on the target function module identification, wherein the target working mode belongs to one of a plurality of working modes of the connecting channel; the plurality of working modes are related to a mode of data interaction of the second electronic equipment; and enabling the target function module based on the target function module identification so that the target function module communicates through the connection channel in the target working mode.

Description

Equipment control method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of electronic device technologies, and relates to, but is not limited to, a device control method and apparatus, an electronic device, and a storage medium.
Background
In daily life, a user needs to connect one electronic device to another electronic device or multiple electronic devices for multiple times, however, each time the electronic device is connected, a connection mode needs to be set, and the operation is complex. The related art provides a function of setting a default connection mode. However, after selecting a default connection mode, connecting each PC will use the connection mode, which affects the user's need to set up a personalized connection mode for each PC.
Disclosure of Invention
The embodiment of the application provides a device control method and device, electronic equipment and a storage medium.
The technical scheme of the embodiment of the application is realized as follows:
in one aspect, an embodiment of the present application provides an apparatus control method, where the method includes:
acquiring operation of establishing connection with second electronic equipment;
establishing a connection channel with the second electronic device in response to the operation;
acquiring a target function module identifier; the target function module identification is used for representing a target function module of the first electronic equipment; the target function module belongs to one of a plurality of function modules of the first electronic equipment; the plurality of functional modules are related to a scene of data interaction with the second electronic equipment;
configuring the connection channel to be in a target working mode based on the target function module identification, wherein the target working mode belongs to one of a plurality of working modes of the connection channel; the plurality of working modes are related to a mode of data interaction of the second electronic equipment;
enabling the target function module based on the target function module identification so that the target function module communicates through the connection channel in the target working mode.
In another aspect, an embodiment of the present application provides an apparatus for controlling a device, where the apparatus includes:
the first acquisition module is used for acquiring the operation of establishing connection with the second electronic equipment;
a connection module for establishing a connection channel with the second electronic device in response to the operation;
the second acquisition module is used for acquiring the target function module identification; the target function module identification is used for representing a target function module of the first electronic equipment; the target function module belongs to one of a plurality of function modules of the first electronic equipment; the plurality of functional modules are related to a scene of data interaction with the second electronic equipment;
a first configuration module, configured to configure the connection channel to be in a target working mode based on the target function module identifier, where the target working mode belongs to one of a plurality of working modes of the connection channel; the plurality of working modes are related to a mode of data interaction of the second electronic equipment;
the first communication module is used for enabling the target function module based on the target function module identification so that the target function module can communicate through the connection channel in the target working mode.
In yet another aspect, an embodiment of the present application provides an electronic device, which includes a memory and a processor, where the memory stores a computer program that can be executed on the processor, and the processor implements the above method when executing the program.
In yet another aspect, embodiments of the present application provide a computer storage medium storing executable instructions for causing a processor to implement the above method when executed.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
in the above embodiment, the target function module identifier is obtained; the target function module identification is used for representing a target function module of the first electronic equipment; the target function module belongs to one of a plurality of function modules of the first electronic equipment; the plurality of functional modules are related to a scene of data interaction with the second electronic equipment; configuring the connecting channel to be in a target working mode based on the target function module identification; the target working mode belongs to one of a plurality of working modes of the connecting channel; the plurality of working modes are related to a mode of data interaction of the second electronic equipment; enabling the target function module based on the target function module identification. Therefore, when the first electronic device is connected with the second electronic device, the target function module identification is determined from the plurality of target function module identifications, the target function module corresponding to the target function module identification is started, and information transmission between the two electronic devices is realized through the connecting channel in the target working mode, so that the user can set an individualized connecting mode for the second electronic device, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without inventive efforts, wherein:
fig. 1 is a schematic flowchart of an apparatus control method according to an embodiment of the present disclosure;
fig. 2A is a schematic flowchart of an apparatus control method according to an embodiment of the present disclosure;
fig. 2B is a schematic flowchart of an apparatus control method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of an apparatus control method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of an apparatus control method according to an embodiment of the present application;
fig. 5A is a schematic view of an application scenario of a device control method according to an embodiment of the present application;
fig. 5B is a schematic view of an application scenario of a device control method according to an embodiment of the present application;
fig. 6 is a schematic view of an application scenario of a device control method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a device control apparatus according to an embodiment of the present disclosure;
fig. 8 is a hardware entity diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The following examples are intended to illustrate the present application but are not intended to limit the scope of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
It should be noted that the terms "first \ second \ third" referred to in the embodiments of the present application are only used for distinguishing similar objects and do not represent a specific ordering for the objects, and it should be understood that "first \ second \ third" may be interchanged under specific ordering or sequence if allowed, so that the embodiments of the present application described herein can be implemented in other orders than illustrated or described herein.
It will be understood by those within the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which embodiments of the present application belong. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The present application provides an apparatus control method, which is applied to a first electronic apparatus, and fig. 1 is a schematic flowchart of an apparatus control method provided in an embodiment of the present application, and as shown in fig. 1, the method at least includes the following steps:
step S101, acquiring operation of establishing connection with second electronic equipment;
here, the first electronic device may be: tablet computers and mobile phones; the second electronic device may be a Personal Computer (PC).
Here, in an implementation manner, an application program for controlling the device is installed on the first electronic device and the second electronic device, where the application program may be preset in a factory of the device, and may also be downloaded from an application center after the factory of the device, and the application program includes a plurality of functional module identifiers. Each function module identifier in the first electronic device is used for starting a function module, and the function module is a function of an upper layer of the first electronic device. The second electronic device comprises a function module identifier which is the same as the first electronic device and a function module corresponding to the function module identifier, and is used for synchronously starting the function corresponding to the function module when the first electronic device starts one function module.
In another implementation manner, an application program for performing device control is installed on the first electronic device, and an application program for driving the first electronic device is installed on the second electronic device. Under the condition that an application program in the first electronic equipment selects a target function module identifier, the first electronic equipment starts a target function module corresponding to the target function module identifier, and the second electronic equipment detects that the running state of the first electronic equipment changes and synchronously starts hardware equipment corresponding to the target function module.
Illustratively, the first electronic device is a mobile phone, the second electronic device is a personal computer, and as shown in fig. 5A and 5B, each device identifier 51 includes a default target function module identifier 511 in a menu of an application program controlled by the device in the mobile phone; each device identification 51 comprises a plurality of function module identifications 512. The method comprises the steps that a screen-projecting function module identifier is selected from a plurality of function module identifiers 512, the mobile phone starts the screen-projecting function module and is used for projecting a screen of the mobile phone on a personal computer, and after an application program controlled by equipment in the personal computer detects the switching of the function modules of the mobile phone, the screen-projecting function can be synchronously started, and an interface of the mobile phone is displayed.
Illustratively, the first electronic device is a mobile phone, the second electronic device is a personal computer, an application program controlled by the device in the mobile phone obtains a function module identifier of a network camera selected by a user, the mobile phone starts a camera function, and the personal computer displays a picture obtained by the mobile phone camera after detecting the switching of the function module of the mobile phone through a driver.
Here, the operation of establishing the connection may be: voice operation, key operation, and touch operation.
In one implementation, the voice operation may be: the method comprises the steps that a first electronic device obtains operation of establishing connection in a mode of receiving voice information of a user; the key operation may be: the method comprises the steps that a first electronic device obtains connection establishment operation in a mode of detecting signals generated when a user presses a key; the touch operation may be: the first electronic device obtains the operation of establishing connection by detecting that a user touches a touch sensing area of the first electronic device.
Exemplarily, a user sends voice information of 'establishing connection with a computer' to a mobile phone within an effective distance of voice receiving, the mobile phone detects the voice information, analyzes keywords included in the voice information, and acquires voice operation; or the user presses a shortcut key for establishing connection, and the mobile phone detects a signal of the shortcut key to acquire key operation; and then, the user touches a touch sensing area of the mobile phone frame or a touch sensing area of the mobile phone screen to acquire touch operation.
Step S102, responding to the operation, and establishing a connection channel with the second electronic equipment;
here, the connection channel may include at least one of: a WIFI connection channel, a bluetooth connection channel, and a Universal Serial Bus (USB) connection channel. The connection channel can transmit data in two electronic devices which are connected mutually.
Exemplarily, after voice operation/key operation/touch operation of a user is acquired, a mobile phone starts a WIFI connection module, and is connected with a computer identified by target equipment through WIFI to establish a WIFI data connection channel; or the mobile phone detects a Bluetooth identifier of the computer and performs Bluetooth connection with the computer through the Bluetooth identifier; or, the mobile phone and the computer establish a connecting channel through a USB connecting line.
Step S103, acquiring a target function module identifier; the target function module identification is used for representing a target function module of the first electronic equipment; the target function module belongs to one of a plurality of function modules of the first electronic equipment; the plurality of functional modules are related to a scene of data interaction of the second electronic equipment;
here, the target function module identification may include one of: screen projection, network camera, file transmission, USB internet surfing, photo transmission and charging; correspondingly, the target function module may be corresponding to the target function module identifier: screen projection, network camera, file transmission, USB internet, photo transmission and charging.
Here, a plurality of functional modules such as screen projection, a network camera, file transfer, USB internet access, photo transfer, and charging are related to the second electronic device in an interactive scene of voice data, image data, and video data.
Exemplarily, in a scene that a mobile phone interface needs to be projected to a computer, selecting a screen projection function module; in a scene that a mobile phone is required to be used as an external camera of a computer, a functional module of the network camera is selected.
Step S104, configuring the connecting channel to be in a target working mode based on the target function module identification, wherein the target working mode belongs to one of a plurality of working modes of the connecting channel; the plurality of working modes are related to a mode of data interaction of the second electronic equipment;
here, under the condition that the target function module identifier is determined, the first electronic device starts the target function module corresponding to the target function module identifier, and determines a data interaction mode according to the target function module, so as to determine a working mode of the connection channel;
here, before data transmission is performed between two electronic devices, the connection channel needs to be switched to an operation mode for transmitting the data. Illustratively, in an interaction scene of the network camera, the data interaction mode is a real-time video data transmission mode, and the working mode of the connection channel is a video data transmission mode.
Step S105, based on the target function module identification, enabling the target function module to enable the target function module to communicate through the connection channel in the target working mode.
In one implementation, after the configuration of the working mode of the connection channel is completed, the target function module is started, and data transmission is performed between the two electronic devices through the connection channel in the target working mode. Illustratively, after the connection channel is configured to be in a video data transmission mode, the network camera functional module is started, and video data collected by the mobile phone is transmitted to the computer through the connection channel.
In the above embodiment, the target function module identifier is obtained; the target function module identification is used for representing a target function module of the first electronic equipment; the target function module belongs to one of a plurality of function modules of the first electronic equipment; the plurality of functional modules are related to a scene of data interaction with the second electronic equipment; configuring the connecting channel to be in a target working mode based on the target function module identification; the target working mode belongs to one of a plurality of working modes of the connecting channel; the plurality of working modes are related to the mode of data interaction of the second electronic equipment; enabling the target function module based on the target function module identification. Therefore, when the first electronic device is connected with the second electronic device, the target function module identification is determined from the plurality of target function module identifications, the target function module corresponding to the target function module identification is started, and information transmission between the two electronic devices is realized through the connecting channel in the target working mode, so that the user can set an individualized connecting mode for the second electronic device, and the user experience is improved.
The present application provides an apparatus control method applied to a first electronic apparatus, and fig. 2A is a schematic flowchart of an apparatus control method provided in an embodiment of the present application, as shown in fig. 2A, the method at least includes the following steps:
step S201, acquiring an operation of establishing connection with a second electronic device;
step S202, responding to the operation, and establishing a connection channel with the second electronic equipment;
step S203, acquiring the device information of the second electronic device;
here, the device information may include at least one of: a device identification of the second electronic device, hardware information in the second electronic device.
For example, in the case that the second electronic device is a PC, the device information may include an account name of the PC, and may further include hardware information in a device manager of the PC: and displaying the name of a display in the adapter and the name of equipment in the audio and video controller.
Step S204, determining at least one function module identifier based on the equipment information;
exemplarily, in a case that the second electronic device is a PC1, the hardware information includes: audio equipment 1, display 1; determining that the PC1 can realize a screen projection function and a network camera function, wherein displaying the function identifier of the PC1 in the mobile phone at least comprises the following steps: a screen projection function and a network camera function.
Step S205, determining the target function module identification from at least one function module identification; the target function module identification is used for representing a function module of the first electronic equipment; the target function module belongs to one of a plurality of function modules of the first electronic equipment; the plurality of functional modules are related to a scene of data interaction with the second electronic equipment;
step S206, configuring the connection channel to be in a target working mode based on the target function module identifier, wherein the target working mode belongs to one of a plurality of working modes of the connection channel; the plurality of working modes are related to a mode of data interaction of the second electronic equipment;
step S207, based on the target function module identifier, enabling the target function module to enable the target function module to communicate through the connection channel in the target working mode.
In the above embodiment, the device information of the second electronic device is acquired; determining at least one function module identification based on the device information; determining the target function module identification from at least one of the function module identifications. Therefore, different function module identifications can be provided according to different connecting devices, available function modules are provided for the connection of the first electronic device and the second electronic device, and the reliability of data transmission is improved.
In a possible implementation manner, fig. 2B is a schematic flowchart of a device control method provided in the embodiment of the present application, and as shown in fig. 2B, after step S207, the method further includes:
step S208, storing the device identifier of the second electronic device, the target function module identifier and the working mode of the connection channel;
here, the target function module identifier may be an identifier corresponding to a target function module for the first electronic device to successfully establish a connection with the second electronic device; the operation mode of the connection channel may be an operation mode for transmitting a target data type in a case where the target function module is operated.
Step S209, under the condition that the device identifier of the electronic device to be connected is detected as the device identifier of the second electronic device, configuring the target working mode of the connection channel established with the electronic device to be connected as the stored working mode of the connection channel based on the stored target function module identifier;
in an implementation manner, the connection between the second electronic device and the stored target function module identifier may be established, so as to implement data transmission between the two electronic devices; in another implementation manner, a connection may be established with the second electronic device through the stored operation mode of the connection channel, so as to implement data transmission between the two electronic devices.
Step S210, enabling a target function module based on the stored target function module identifier, so that the target function module communicates through the connection channel in the target working mode.
In the above embodiment, the device identifier of the second electronic device, the target function module identifier, and the operating mode of the connection channel are stored; and under the condition that the device identification of the electronic device to be connected is detected to be the device identification of the second electronic device, configuring the target working mode of the connecting channel established with the electronic device to be connected into the stored working mode of the connecting channel based on the stored target function module identification. Therefore, the second electronic equipment can be directly connected through the stored connection mode, the setting in the process of connecting the second electronic equipment is simplified, and the use convenience of a user is improved.
The present application provides an apparatus control method applied to a first electronic apparatus, and fig. 3 is a flowchart illustrating the apparatus control method provided in an embodiment of the present application, as shown in fig. 3, the method at least includes the following steps:
step S301, acquiring an operation of establishing connection with a second electronic device;
step S302, responding to the operation, and establishing a connection channel with the second electronic equipment;
step S303, acquiring a target function module identifier; the target function module identification is used for representing a target function module of the first electronic equipment; the target function module belongs to one of a plurality of function modules of the first electronic equipment; the plurality of functional modules are related to a scene of data interaction with the second electronic equipment;
step S304, determining the data transmission type of the target function module identifier;
step S305, configuring the connection channel to be in a target working mode based on the data transmission type, wherein the target working mode belongs to one of a plurality of working modes of the connection channel; the plurality of working modes are related to a mode of data interaction of the second electronic equipment;
in one possible implementation, the data transmission type includes: transmitting video and voice data types in real time, and configuring the connection channel to be in a target working mode based on the data transmission type in step S305, including: and under the condition that the data transmission type is a real-time video and voice transmission data type, configuring the connection channel into a real-time video and voice transmission mode.
Illustratively, in the case that the target function module is identified as the network camera, the type of data transmission is determined as real-time video data transmission, and the target working mode of the connection channel is determined as the mode of video data transmission. Illustratively, in the case where the target function module is identified as screen-shot, the type of data transmission is determined as a mode for transmitting image data and voice data, and the target operation mode of the connection channel is determined as a mode for transmitting image and voice.
Step S306, enabling the target function module based on the target function module identifier, so that the target function module communicates through the connection channel in the target working mode.
In one possible implementation, the method further includes: and transmitting real-time video and voice data to second electronic equipment based on the connecting channel in the real-time video and voice transmission mode so as to display the video and voice collected by the first electronic equipment through hardware of the second electronic equipment.
Illustratively, the hardware information of the PC includes: the audio device 1 and the display 1 transmit the information collected in the mobile phone to the PC through a connection channel for transmitting video and voice modes in real time, and after the PC receives the transmitted information, the received information is displayed and played to the user through the audio device 1 and the display 1.
In the above embodiment, based on the connection channel in the real-time video and voice transmission mode, real-time video and voice data are transmitted to the second electronic device, so that the video and voice collected by the first electronic device are displayed through hardware of the second electronic device. Therefore, the information of the first electronic equipment can be displayed through the hardware of the second electronic equipment through the connecting channel, the requirements of multi-screen interconnection and equipment function expansion of a user can be met, and the use experience of the user is improved.
The present application provides an apparatus control method, which is applied to a first electronic apparatus, and fig. 4 is a schematic flowchart of an apparatus control method provided in an embodiment of the present application, and as shown in fig. 4, the method at least includes the following steps:
step S401, acquiring operation of establishing connection with second electronic equipment;
step S402, responding to the operation, and establishing a connection channel with the second electronic equipment;
step S403, acquiring an application scene of the second electronic device;
step S404, determining the target function module identification based on the application scene; the target function module identification is used for representing a target function module of the first electronic equipment; the target function module belongs to one of a plurality of function modules of the first electronic equipment; the plurality of functional modules are related to a scene of data interaction with the second electronic equipment;
illustratively, the connection mode is dynamically switched according to the application scene of the PC. Under the condition that the PC enters an application scene of a video conference, the target function module is switched to a camera mode, and the identification of the target function module is the identification corresponding to the camera mode; and under the condition that the PC enters an application scene of the resource manager, the target function module is switched to a file transmission mode, and the identifier of the target function module is an identifier corresponding to the file transmission mode.
Step S405, configuring the connection channel to be in a target working mode based on the target function module identifier, wherein the target working mode belongs to one of a plurality of working modes of the connection channel; the plurality of working modes are related to a mode of data interaction of the second electronic equipment;
step S406, based on the target function module identifier, enabling the target function module, so that the target function module performs communication through the connection channel in the target working mode.
In the foregoing embodiment, step S403 and step S404 are one possible implementation manner of obtaining the target function module identifier, and in another possible implementation manner, the obtaining the target function module identifier includes: acquiring historical target function module identification; determining the use frequency of each historical target function module identification; determining the target function module identification based on the frequency of use.
Illustratively, as shown in fig. 6, when a PC is connected to use the same mode for a plurality of times without setting the default target function module identifier, a prompt message 61 is displayed, and the function module identifier of the common mode is set as the target function module identifier.
In the above embodiment, by acquiring an application scenario of the second electronic device; determining the target function module identification based on the application scene; or acquiring historical target function module identification; determining the use frequency of each historical target function module identification; determining the target function module identification based on the frequency of use. Therefore, the target function module identification can be set according to the use conditions of different users, the setting process in the equipment connection process is reduced, the user setting steps are simplified, meanwhile, the function module meeting the use habits of the users can be set according to the use frequency and the historical target function module identification, and the personalized requirements of the users when the users use the electronic equipment are met.
In one implementation, the method further includes: acquiring operation of establishing connection with a plurality of second electronic devices; responding to each operation, and establishing a connection channel with each second electronic device; and determining the target function module identification corresponding to each second electronic device.
Illustratively, one handset may connect with a plurality of PCs and configure a target operation mode of a target function module and a connection channel simultaneously for each PC, so that communication is performed with each PC through the connection channel in the target operation mode while the target function modules of the plurality of PCs are enabled.
In the above embodiment, the operation of establishing connection with the plurality of second electronic devices is acquired; responding to each operation, and establishing a connection channel with each second electronic device; and determining the target function module identification corresponding to each second electronic device. Therefore, different target function module identifications can be set for different second electronic devices, different target working modes of the connecting channel are configured for each second electronic device, the complexity of connection establishment with the second electronic devices is reduced, and user experience is improved.
The above-described apparatus control method is described below with reference to an embodiment, but it should be noted that the embodiment is provided for better explanation of the present application and should not be construed as an undue limitation on the present application.
In the embodiment of the present application, a mobile phone is taken as a first electronic device, a Personal Computer (PC) is taken as a second electronic device, and a USB connection channel is taken as an example for description.
In daily life, a user needs to connect one mobile phone to one or more personal computers many times, however, each time the user connects to a personal computer, the user needs to set a connection mode (a target working mode of an established connection channel), and the operation is complicated. For example, when connecting a home PC1 and an office PC2 by one mobile phone a plurality of times, it is necessary to select a connection mode for each connection. The related art provides a function of setting a default connection mode. However, after selecting a default connection mode, connecting each PC will use the connection mode, which affects the user's need to set up a personalized connection mode for each PC.
In order to solve the above problem, the present application provides an apparatus control method, where the method at least includes one of the following implementation manners:
the first method is as follows: as shown in fig. 5A and 5B, device identifiers 51 are added to the menu of the mobile phone, and each device identifier 51 includes a default target function module identifier 511; each device identification 51 comprises a plurality of function module identifications 512.
The second method comprises the following steps: as shown in fig. 6, when a PC is connected to use the same mode for multiple times without setting the default target function module identifier, it is determined whether the common mode needs to be set as the connection mode by popping up the query box.
The third method comprises the following steps: and dynamically switching the connection mode according to the application scene of the PC. For example, when a PC enters an application scene of a video conference, a target function module is switched to a camera mode, and an identifier of the target function module is an identifier corresponding to the camera mode; and under the condition that the PC enters an application scene of the resource manager, the target function module is switched to a file transmission mode, and the identifier of the target function module is an identifier corresponding to the file transmission mode.
In the above embodiment, on one hand, by adding the device identifier and determining the target function module identifier for each device identifier, the mobile phone can start the target function module corresponding to the target function module identifier when connecting to the PC corresponding to the device identifier, so as to realize information transmission between the two electronic devices, thereby enabling the user to set an individualized connection mode for each PC, and improving user experience.
On the other hand, under the condition that the default target function module identification is not set, when one PC is connected and the same mode is used for multiple times, whether the common mode needs to be set as the connection mode is determined in a mode of popping up an inquiry box, so that when the mobile phone is connected with different PCs through the USB, the most common USB mode can be directly entered according to the use frequency, and the steps of setting the mode each time are reduced.
Based on the foregoing embodiments, an apparatus control device is further provided in an embodiment of the present application, where the apparatus control device includes each included module, each sub-module included in each module, and each unit included in each sub-module, and may be implemented by a processor in an electronic apparatus; of course, the implementation can also be realized through a specific logic circuit; in the implementation process, the Processor may be a Central Processing Unit (CPU), a microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 7 is a schematic structural diagram of a device control apparatus according to an embodiment of the present application, and as shown in fig. 7, the apparatus 700 includes: a first obtaining module 710, a connecting module 720, a second obtaining module 730, a first configuring module 740, and a first communicating module 750, wherein:
a first obtaining module 710, configured to obtain an operation of establishing a connection with a second electronic device;
a connection module 720, configured to establish a connection channel with the second electronic device in response to the operation;
a second obtaining module 730, configured to obtain a target function module identifier; the target function module identification is used for representing a target function module of the first electronic equipment; the target function module belongs to one of a plurality of function modules of the first electronic equipment; the plurality of functional modules are related to a scene of data interaction with the second electronic equipment;
a first configuring module 740, configured to configure the connection channel to be in a target working mode based on the target function module identifier, where the target working mode belongs to one of multiple working modes of the connection channel; the plurality of working modes are related to a mode of data interaction of the second electronic equipment;
a first communication module 750, configured to enable the target function module based on the target function module identifier, so that the target function module communicates through the connection channel in the target operation mode.
In some possible embodiments, the second obtaining module 730 includes: a first obtaining submodule, a first determining submodule and a second determining submodule, wherein: the first obtaining submodule is used for obtaining the equipment information of the second electronic equipment; a first determining submodule, configured to determine at least one function module identifier based on the device information; a second determining submodule, configured to determine the target function module identifier from at least one function module identifier.
In some possible embodiments, the apparatus 700 further comprises: the device comprises a storage module, a second configuration module and a second communication module, wherein: the storage module is used for storing the equipment identifier of the second electronic equipment, the target function module identifier and the working mode of the connecting channel; the second configuration module is used for configuring a target working mode of a connection channel established with the electronic equipment to be connected into a stored working mode of the connection channel based on the stored target function module identification under the condition that the equipment identification of the electronic equipment to be connected is detected as the equipment identification of the second electronic equipment; and the second communication module is used for enabling the target function module based on the stored target function module identification so as to enable the target function module to communicate through the connection channel in the target working mode.
In some possible embodiments, the first configuration module 740 includes: a third determination submodule and a configuration submodule, wherein: the third determining submodule is used for determining the data transmission type of the target function module identifier; and the configuration submodule is used for configuring the connecting channel to be in a target working mode based on the data transmission type.
In some possible embodiments, the data transmission type includes: transmitting video and voice data types in real time, the configuration sub-module being configured to: and under the condition that the data transmission type is a real-time video and voice transmission data type, configuring the connection channel into a real-time video and voice transmission mode.
In some possible embodiments, the apparatus 700 further comprises: and the acquisition module is used for transmitting real-time video and voice data to second electronic equipment based on the connecting channel in the real-time video and voice transmission mode so as to display the video and voice acquired by the first electronic equipment through hardware of the second electronic equipment.
In some possible embodiments, the second obtaining module 730 includes: a second obtaining submodule and a fourth determining submodule, wherein: the second obtaining submodule is used for obtaining an application scene of the second electronic equipment; and the fourth determining submodule is used for determining the target function module identification based on the application scene.
In some possible embodiments, the second obtaining module 730 further includes: the third acquisition submodule is used for acquiring historical target function module identification; a fifth determining submodule, configured to determine a frequency of use of each historical target function module identifier; a sixth determining submodule, configured to determine the target function module identifier based on the usage frequency.
In some possible embodiments, the first obtaining module 710 is further configured to: acquiring operation of establishing connection with a plurality of second electronic devices; the connection module 720 is further configured to: responding to each operation, and establishing a connection channel with each second electronic device; the second obtaining module 730 is further configured to: and determining the target function module identification corresponding to each second electronic device.
Here, it should be noted that: the above description of the apparatus embodiments, similar to the above description of the method embodiments, has similar beneficial effects as the method embodiments. For technical details not disclosed in the embodiments of the apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
It should be noted that, in the embodiment of the present application, if the device control method is implemented in the form of a software functional module and sold or used as an independent product, the method may also be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device (which may be a smartphone with a camera, a tablet computer, etc.) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
Correspondingly, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps in the device control method in any of the above embodiments.
Correspondingly, in an embodiment of the present application, a chip is further provided, where the chip includes a programmable logic circuit and/or program instructions, and when the chip runs, the chip is configured to implement the steps in the device control method in any of the foregoing embodiments.
Correspondingly, in the embodiment of the present application, there is also provided a computer program product, which is used to implement the steps in the device control method in any of the above embodiments when the computer program product is executed by a processor of an electronic device.
Based on the same technical concept, embodiments of the present application provide an electronic device, which is used for implementing the device control method described in the above method embodiments. Fig. 8 is a hardware entity diagram of an electronic device according to an embodiment of the present application, as shown in fig. 8, the electronic device 800 includes a memory 810 and a processor 820, the memory 810 stores a computer program that can be executed on the processor 820, and the processor 820 executes the computer program to implement steps in a device control method according to any embodiment of the present application.
The Memory 810 is configured to store instructions and applications executable by the processor 820, and may also buffer data (e.g., image data, audio data, voice communication data, and video communication data) to be processed or already processed by the processor 820 and modules in the electronic device, and may be implemented by a FLASH Memory (FLASH) or a Random Access Memory (RAM).
The processor 820 implements the steps in the device control method of any one of the above when executing the program. The processor 820 generally controls the overall operation of the electronic device 800.
The Processor may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It is understood that the electronic device implementing the above-mentioned processor function may be other electronic devices, and the embodiments of the present application are not particularly limited.
The computer storage medium/Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM), etc.; and may be various electronic devices such as mobile phones, computers, tablet devices, personal digital assistants, etc., including one or any combination of the above-mentioned memories.
Here, it should be noted that: the above description of the storage medium and device embodiments is similar to the description of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present application.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be 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 unit.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing an automatic test line of a device to perform all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A device control method is applied to a first electronic device, and comprises the following steps:
acquiring operation of establishing connection with second electronic equipment;
establishing a connection channel with the second electronic device in response to the operation;
acquiring a target function module identifier; the target function module identification is used for representing a target function module of the first electronic equipment; the target function module belongs to one of a plurality of function modules of the first electronic equipment; the plurality of functional modules are related to a scene of data interaction with the second electronic equipment;
configuring the connection channel to be in a target working mode based on the target function module identification, wherein the target working mode belongs to one of a plurality of working modes of the connection channel; the plurality of working modes are related to a mode of data interaction of the second electronic equipment;
enabling the target function module based on the target function module identification so that the target function module communicates through the connection channel in the target working mode.
2. The method of claim 1, wherein obtaining the target function module identification comprises:
acquiring equipment information of the second electronic equipment;
determining at least one functional module identification based on the device information;
determining the target function module identification from at least one of the function module identifications.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
storing the device identification, the target function module identification and the working mode of the connecting channel of the second electronic device;
under the condition that the device identification of the electronic device to be connected is detected to be the device identification of the second electronic device, configuring a target working mode of a connection channel established with the electronic device to be connected into a stored working mode of the connection channel based on the stored target function module identification;
enabling a target function module based on the stored target function module identification so that the target function module communicates through the connection channel in the target working mode.
4. The method of claim 1, wherein configuring the connection channel to be in a target operating mode based on the target function module identification comprises:
determining the data transmission type of the target function module identifier;
and configuring the connection channel to be in a target working mode based on the data transmission type.
5. The method of claim 4, wherein the data transmission type comprises: transmitting video and voice data types in real time, wherein the configuring of the connection channel in a target working mode based on the data transmission types comprises:
and under the condition that the data transmission type is a real-time video and voice transmission data type, configuring the connection channel into a real-time video and voice transmission mode.
6. The method of claim 5, further comprising:
and transmitting real-time video and voice data to second electronic equipment based on the connecting channel in the real-time video and voice transmission mode so as to display the video and voice collected by the first electronic equipment through hardware of the second electronic equipment.
7. The method of claim 1, wherein obtaining the target function module identification comprises:
acquiring an application scene of the second electronic equipment;
and determining the target function module identification based on the application scene.
8. The method of claim 1, wherein obtaining the target function module identification comprises:
acquiring historical target function module identification;
determining the use frequency of each historical target function module identification;
determining the target function module identification based on the frequency of use.
9. The method of claim 1, further comprising:
acquiring operation of establishing connection with a plurality of second electronic devices;
responding to each operation, and establishing a connection channel with each second electronic device;
and determining the target function module identification corresponding to each second electronic device.
10. An electronic device comprising a memory and a processor, the memory storing a computer program operable on the processor, the processor implementing the steps of the method of any one of claims 1 to 9 when executing the program.
CN202210248540.6A 2022-03-14 2022-03-14 Equipment control method and device, electronic equipment and storage medium Pending CN114816788A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210248540.6A CN114816788A (en) 2022-03-14 2022-03-14 Equipment control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210248540.6A CN114816788A (en) 2022-03-14 2022-03-14 Equipment control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114816788A true CN114816788A (en) 2022-07-29

Family

ID=82529177

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210248540.6A Pending CN114816788A (en) 2022-03-14 2022-03-14 Equipment control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114816788A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117420808A (en) * 2023-12-18 2024-01-19 中国科学院近代物理研究所 Modular control method and system, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117420808A (en) * 2023-12-18 2024-01-19 中国科学院近代物理研究所 Modular control method and system, electronic equipment and storage medium
CN117420808B (en) * 2023-12-18 2024-03-08 中国科学院近代物理研究所 Modular control method and system, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
EP2804393B1 (en) Remote control method, intelligent terminal and intelligent remote control system
EP4013003A1 (en) Communication protocol switching method, apparatus and system
EP3203755B1 (en) Audio processing device and audio processing method
CN107346115B (en) Control method and control terminal of intelligent device and intelligent device
EP3142006A2 (en) Device control method and apparatus
US20140125464A1 (en) Smart remote control
CN105224494A (en) Method for handover control and device
CN113552808A (en) Network distribution method for electronic home equipment, electronic home equipment and mobile terminal
CN114816788A (en) Equipment control method and device, electronic equipment and storage medium
JP6163788B2 (en) Communication terminal, communication method, and program
CN112188449B (en) TWS earphone box and pairing method of TWS earphones
KR20210017030A (en) Electronic device for reducing power consumption and operating method thereof
CN111526192B (en) Remote control method and device of terminal, terminal and computer readable storage medium
CN111726848B (en) Equipment binding method, target starting device, fixed terminal and storage medium
CN114339966B (en) Interface control method and device for data transmission, medium and electronic equipment
KR20070094167A (en) Method and apparatus for starting multiple operating system using external memory in a mobile station
CN115348644A (en) Bluetooth multi-device network access method and device, electronic device and storage medium
KR20200089984A (en) Apparatus and mehtod for providing work environment for application program between electronic device and external server
CN106502809B (en) A kind of multi-platform application program adaptation method, device and terminal device
CN106412703B (en) Information processing method, device, system and storage medium
CN115168062A (en) Control method, device, equipment and storage medium
CN112954760A (en) Connection method and device of Bluetooth equipment and electronic equipment
CN109933297B (en) Electronic device and control method of signal source thereof
KR20180006777A (en) Apparatus and methof for transmitting personal information
CN110933772A (en) Connection method of wireless device, mobile terminal and computer 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