Electronic equipment and control method and system
By receiving the parameters of the input device in the electronic device and matching functions, the problem of adapting the input device to the electronic device functions is solved, and effective control and satisfaction of user needs are achieved.
Patent Information
- Application Number
- CN202411985904.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-05-23
AI Technical Summary
In the prior art, the functional adaptation of the input device and the electronic device cannot be achieved, resulting in the problem of control failure.
The electronic device receives the parameters sent by the input device and matches the functions in the preset correspondence relationship. The user can configure the correspondence relationship according to the needs, so that the function matching each parameter corresponds to the functions supported by the electronic device.
The adaptation of input parameters is realized to ensure that the input device can effectively control the electronic device and meet the actual needs of users.
Smart Images

Figure CN120029472A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of control technology, and in particular to an electronic device, a control method and a system. Background Art
[0002] As an important karaoke tool, the microphone is no longer just used as a sound recording tool. Instead, it is equipped with a variety of buttons on the microphone to provide functions corresponding to different buttons to enhance the user's karaoke experience.
[0003] In the related art, after the user operates a button on the microphone, the microphone can match the corresponding function for the operated button, and report the function to the electronic device connected to the microphone in the form of an operation instruction. When the electronic device is configured with the corresponding function, the electronic device can execute the corresponding function. However, when the electronic device is not configured with the corresponding function, it cannot respond to the function, and the functions corresponding to some buttons on the microphone are invalid, so that the microphone cannot be fully adapted to the electronic device. Summary of the invention
[0004] The present application provides an electronic device, a control method and a system, which can solve the problem of control failure caused by the inability to adapt the functions of an input device and an electronic device.
[0005] In a first aspect, an electronic device is provided, wherein the electronic device is communicatively connected to an input device, the input device is used to control the electronic device, and the electronic device includes:
[0006] Memory;
[0007] The controller is configured as:
[0008] receiving a first parameter, the first parameter including: a key value corresponding to a first operation, the first operation being an operation of an input device by a user;
[0009] Determine whether the first corresponding relationship includes a first function that has a corresponding relationship with the first parameter, the first corresponding relationship is a corresponding relationship between the first target parameter and the first target function, the first target function is a function supported by the electronic device, the first target parameter includes a key value corresponding to a target operation performed on the input device, and the target function includes the first function;
[0010] When the first correspondence includes a first function that has a correspondence with the first parameter, the first function is executed.
[0011] In a second aspect, a control method is provided, which is applied to an electronic device, where the electronic device is communicatively connected to an input device, and the control method includes:
[0012] receiving a first parameter, the first parameter including: a key value corresponding to a first operation, the first operation being an operation of an input device by a user;
[0013] Determine whether the first corresponding relationship includes a first function that has a corresponding relationship with the first parameter, the first corresponding relationship is a corresponding relationship between the first target parameter and the first target function, the first target function is a function supported by the electronic device, the first target parameter includes a key value corresponding to a target operation performed on the input device, and the target function includes the first function;
[0014] When the first correspondence includes a first function that has a correspondence with the first parameter, the first function is executed.
[0015] In a third aspect, a control system is provided, which includes: an electronic device and an input device, wherein the electronic device includes a memory, a controller, and a computer program stored in the memory and executable on the controller, and when the controller executes the computer program, the control method described in the second aspect is implemented.
[0016] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by an electronic device, the electronic device executes the control method described in the second aspect.
[0017] In a fifth aspect, a computer program product is provided, the computer program product comprising: a computer program, when the computer program is executed by an electronic device, the electronic device executes the control method described in the second aspect.
[0018] It can be seen from the above technical scheme that the electronic device, control method and system provided in the embodiment of the present application receive the first parameter sent by the input device through the electronic device, and match the first function corresponding to the first parameter in the first correspondence relationship. Since the first correspondence relationship is the correspondence between the first target parameter and the first target function, the user can configure the first correspondence corresponding to the function of the electronic device for the electronic device according to actual needs. The first target function is a function supported by the electronic device. The first target parameter includes the corresponding key value when the target operation is performed on the input device. In this way, the function matched by each parameter corresponds to the function supported by the electronic device, so that the input first parameter can adapt to the function on the electronic device and better meet the needs of the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 is a schematic diagram of an operation scenario between a display device and a control device applicable to an embodiment of the present application;
[0020] Figure 2 is a configuration block diagram of a control device applicable to an embodiment of the present application;
[0021] Figure 3 is a schematic diagram of a hardware configuration of a display device applicable to an embodiment of the present application;
[0022] Figure 4 is a schematic diagram of software configuration of a display device applicable to an embodiment of the present application;
[0023] Figure 5 is a timing diagram of interaction between an electronic device and an input device applicable to an embodiment of the present application;
[0024] Figure 6 A schematic diagram of a process for an electronic device in an embodiment of the present application to determine a first function that has a corresponding relationship with a first parameter;
[0025] Figure 7 is another flowchart of an electronic device applicable to an embodiment of the present application determining a first function that has a corresponding relationship with a first parameter;
[0026] Figure 8 is a schematic diagram of an input device key function editing interface applicable to an embodiment of the present application;
[0027] Fig. 9 is another flowchart of an electronic device determining a first function corresponding to a first parameter applicable to an embodiment of the present application;
[0028] Fig.10 is a schematic diagram of the architecture of a control system applicable to an embodiment of the present application;
[0029] Fig.11 It is a flow chart of a control method suitable for actual application scenarios of the embodiments of the present application. DETAILED DESCRIPTION
[0030] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0031] In the following, the terms "first", "second", and "third" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", and "third" may explicitly or implicitly include one or more of the features.
[0032] For the purpose of illustration rather than limitation, specific details such as specific system structures, technologies, etc. are provided to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0033] The electronic device provided in the embodiments of the present application may be a display device. The display device provided in the embodiments of the present application may have various implementation forms, for example, it may be a television, a smart television, a laser projection device, a monitor, an electronic bulletin board, an electronic table, etc. Figure 1 and Figure 2 This is a specific implementation of the display device of the present application.
[0034] Figure 1 FIG. 1 is a schematic diagram of an operation scenario between a display device and a control device according to an embodiment. Figure 1 As shown, the user can operate the display device 200 through the smart device 300 or the control apparatus 100 .
[0035] In some embodiments, the control device 100 may be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication or Bluetooth protocol communication, and other short-range communication methods, and the display device 200 is controlled wirelessly or wired. The user may control the display device 200 by inputting user commands through buttons on the remote controller, voice input, control panel input, etc.
[0036] In some embodiments, a smart device 300 (such as a mobile terminal, a tablet computer, a computer, a laptop computer, etc.) may also be used to control the display device 200. For example, the display device 200 is controlled using an application running on the smart device.
[0037] In some embodiments, the display device 200 may not use the above-mentioned smart device 300 or the control apparatus 100 to receive instructions, but may receive user control through touch or gestures.
[0038] In some embodiments, the display device 200 can also be controlled in a manner other than the control device 100 and the smart device 300. For example, the user's voice command control can be directly received through a module for obtaining voice commands configured inside the display device 200, or the user's voice command control can be received through a voice control device set outside the display device 200.
[0039] In some embodiments, the display device 200 also communicates data with the server 400. The display device 200 may be allowed to communicate via a local area network (LAN), a wireless local area network (WLAN), and other networks. The server 400 may provide various content and interactions to the display device 200. The server 400 may be one cluster or multiple clusters, and may include one or more types of servers.
[0040] Figure 2 Schematically shows a block diagram of a configuration of the control device 100 according to an exemplary embodiment. Figure 2 As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface 140, a memory, and a power supply. The control device 100 can receive input operation instructions from the user, and convert the operation instructions into instructions that the display device 200 can recognize and respond to, playing the role of an interactive intermediary between the user and the display device 200.
[0041] like Figure 3 The display device 200 includes at least one of a tuner and demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface.
[0042] In some embodiments, the controller includes a processor, a video processor, an audio processor, a graphics processor, a RAM, a ROM, and a first interface to an nth interface for input / output.
[0043] The display 260 includes a display screen component for presenting images, and a driving component for driving image display, which is used to receive image signals output from the controller, and display video content, image content, and menu control interface components and user control UI interface.
[0044] The display 260 may be a liquid crystal display, an OLED display, or a projection display, and may also be a projection device and a projection screen.
[0045] The communicator 220 is a component for communicating with an external device or server according to various communication protocol types. For example, the communicator may include at least one of a Wifi module, a Bluetooth module, a wired Ethernet module, and other network communication protocol chips or near field communication protocol chips, and an infrared receiver. The display device 200 can establish transmission and reception of control signals and data signals with the control device 100 or the server 400 through the communicator 220.
[0046] The user interface can be used to receive control signals from the control device 100 (such as an infrared remote controller, etc.).
[0047] The detector 230 is used to collect signals from the external environment or the external interaction. For example, the detector 230 includes a light receiver, a sensor for collecting the intensity of ambient light; or, the detector 230 includes an image collector, such as a camera, which can be used to collect external environment scenes, user attributes or user interaction gestures; or, the detector 230 includes a sound collector, such as a microphone, etc., for receiving external sounds.
[0048] The external device interface 240 may include, but is not limited to, any one or more of the following interfaces: a high-definition multimedia interface (HDMI), an analog or digital high-definition component input interface (component), a composite video input interface (CVBS), a USB input interface (USB), an RGB port, etc. It may also be a composite input / output interface formed by the above multiple interfaces.
[0049] The tuner-demodulator 210 receives broadcast television signals via wired or wireless reception, and demodulates audio and video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals.
[0050] In some embodiments, the controller 250 and the tuner-demodulator 210 may be located in different separate devices, that is, the tuner-demodulator 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.
[0051] The controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in the memory. The controller 250 controls the overall operation of the display device 200. For example, in response to receiving a user command for selecting a UI object to be displayed on the display 260, the controller 250 can perform operations related to the object selected by the user command.
[0052] In some embodiments, the controller includes a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), RAM Random Access Memory (RAM), ROM (Read-Only Memory, ROM), a first interface to an nth interface for input / output, a communication bus (Bus), etc.
[0053] The user may input a user command through a graphical user interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the graphical user interface (GUI). Alternatively, the user may input a user command through a specific sound or gesture, and the user input interface recognizes the sound or gesture through a sensor to receive the user input command.
[0054] "User interface" is the medium interface for interaction and information exchange between applications or operating systems and users. It realizes the conversion between the internal form of information and the form acceptable to users. The commonly used form of user interface is the Graphical User Interface (GUI), which refers to the user interface related to computer operation displayed in a graphical way. It can be an interface element such as an icon, window, control, etc. displayed on the display screen of an electronic device, where the control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc.
[0055] like Figure 4 In some embodiments, the system is divided into four layers, from top to bottom, namely, the application layer (Applications) layer (referred to as "application layer"), the application framework layer (Application Framework) layer (referred to as "framework layer"), the Android runtime (Android runtime) and system library layer (referred to as "system runtime library layer"), and the kernel layer.
[0056] In some embodiments, at least one application is running in the application layer, and these applications can be window programs, system settings programs, clock programs, etc. provided by the operating system, or applications developed by third-party developers. In specific implementations, the application packages in the application layer are not limited to the above examples.
[0057] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications. The application framework layer includes some predefined functions. The application framework layer is equivalent to a processing center that determines the actions that applications in the application layer take. Through the API interface, applications can access system resources and obtain system services during execution.
[0058] like Figure 4As shown, in the embodiment of the present application, the application framework layer includes managers, content providers, etc., wherein the manager includes at least one of the following modules: an activity manager (ActivityManager) is used to interact with all activities running in the system; a location manager (Location Manager) is used to provide system services or applications with access to system location services; a package manager (Package Manager) is used to retrieve various information related to the application package currently installed on the device; a notification manager (NotificationManager) is used to control the display and clearing of notification messages; a window manager (Window Manager) is used to manage icons, windows, toolbars, wallpapers, and desktop components on the user interface.
[0059] In some embodiments, the activity manager is used to manage the life cycle of each application and the common navigation back function, such as controlling the exit, opening, and back of the application. The window manager is used to manage all window programs, such as obtaining the display screen size, determining whether there is a status bar, locking the screen, capturing the screen, and controlling the display window changes (for example, reducing the display window, shaking the display, distorting the display, etc.).
[0060] In some embodiments, the system runtime layer provides support for the upper layer, namely the framework layer. When the framework layer is used, the Android operating system will run the C / C++ library contained in the system runtime layer to implement the functions to be implemented by the framework layer.
[0061] In some embodiments, the kernel layer is a layer between hardware and software. Figure 4 As shown, the kernel layer includes at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver, etc.
[0062] In the related technology, with the popularity of karaoke services, more and more display devices support karaoke functions, such as home TVs, projectors, new display devices, and even tablets and car-mounted devices; and the microphone, as an important karaoke tool, is no longer just used as a sound receiving tool, but is equipped with a variety of buttons to provide different button functions to enhance the user's karaoke experience. Press the volume +, volume -, song switching and other buttons on the microphone. The buttons in the microphone have corresponding key values, and the corresponding relationship between the key value and the function is stored in the microphone. When the microphone receives the user operating the button on the microphone, it can determine the target function corresponding to the operation button according to the corresponding relationship between the key value and the function stored in the microphone, and report the target function to the display device connected to the microphone. If the display device is configured with the target function, the display device can implement the function. If the display device is not configured with the target function, the key value is an empty key value, and there is no response to the key value.
[0063] In order to make the input device more adaptable to the electronic device, the embodiment of the present application provides an electronic device, a control method and a system, wherein the electronic device receives the first parameter sent by the input device, matches the first function corresponding to the first parameter in the first corresponding relationship, and since the first corresponding relationship is the corresponding relationship between the first target parameter and the first target function, the user can configure the electronic device according to the actual needs. The first target function is a function supported by the electronic device, and the first target parameter includes a key value corresponding to the target operation of the input device. In this way, the function matched by each parameter corresponds to the function supported by the electronic device, so that the input first parameter can adapt to the function on the electronic device, and it is more in line with the needs of the user. In order to facilitate further understanding of the technical solutions in some embodiments of the present application, the technical solutions of the display device and the control method, as well as how the technical solutions solve the above-mentioned technical problems are described in detail below in combination with some specific embodiments and drawings. The embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of them.
[0064] The embodiment of the present application is described by taking the input device as a microphone and the electronic device as a display device as an example, but this does not constitute a limitation on the embodiment of the present application. The input device in the embodiment of the present application can also be the control device described above, and the electronic device can be the display device described above. Figure 5 FIG. 1 shows a schematic diagram of the interaction timing between the electronic device and the input device in some embodiments of the present application. Figure 5 As shown, the electronic device performs the following steps:
[0065] S501, receiving a first parameter.
[0066] The first parameter includes: a key value corresponding to a first operation. The first operation is an operation of the input device by a user. The key value refers to data corresponding to a key identifier, for example: a numerical value or other value corresponding to a key identifier.
[0067] Exemplarily, when the input device is in communication connection with the electronic device, the user's operation on the input device is at least one operation of the user on at least one key on the input device, and different actions may be performed on the same key. The user's operation on the input device may generate a corresponding key value, and the input device sends a first parameter including the key value to the electronic device, which receives the first parameter. For example: single-clicking a key, single-clicking two or more keys, double-clicking a key, long pressing two or more keys, etc. Different operations of the user on the input device may correspond to different key values, and different operations correspond to different key values.
[0068] It can be understood that the above-mentioned buttons can be physical buttons or virtual buttons.
[0069] S502: Determine whether the first corresponding relationship includes a first function that has a corresponding relationship with the first parameter.
[0070] The first corresponding relationship is a corresponding relationship between the first target parameter and the first target function. The first corresponding relationship is a preset corresponding relationship, which can be set on the electronic device by a user of the electronic device according to the user's actual needs, or can be pre-stored on the electronic device by the manufacturer of the electronic device according to existing electronic devices and input devices.
[0071] In some embodiments, according to the first parameter, the number of correspondences between the first target parameter and the first target function in the first correspondence is traversed, and when a first target parameter consistent with the first parameter is found, the function matched by the first target parameter is determined as the first function. It can be understood that when a target parameter consistent with the first parameter is found in each of the multiple first target parameters in the first correspondence, the search task can be stopped.
[0072] In some embodiments, based on the first parameter, the correspondence between the first parameter and the first function matching the first parameter is screened out from the first correspondence, and based on the correspondence between the first parameter, the first parameter and the function matching the first parameter, the first function matching the first parameter is determined.
[0073] The corresponding relationship between the multiple parameters in the first corresponding relationship and the function matched by each parameter may be stored in a table, or in a database or a file in a specific format (JSON, XML, etc.).
[0074] Table 1 shows different target operations according to the embodiment of the present application, and a list of functions to which the key value corresponding to each operation can match.
[0075] Table 1
[0076] Target Operation Target function Short press button a Function A Double-click button a Function AA Long press button a Function AAA Long press button b Function B Short press buttons a and b at the same time Function AB Press and hold buttons a and b at the same time Function AABB
[0077] It should be noted that the first operations and the functions of the first operations in Table 1 are merely examples, and an actual electronic device may include more first operations, and the functions may also be changed as needed.
[0078] S503: When the first corresponding relationship includes a first function that corresponds to the first parameter, execute the first function that matches the first parameter.
[0079] Exemplarily, when determining that the first corresponding relationship includes the first function matching the first parameter, the electronic device executes the first function matching the first parameter to complete the control of the electronic device by the input device.
[0080] In one possible implementation, when the target parameters do not include the first parameter, and when it is determined based on the first parameter and the first correspondence that the first function that has a correspondence with the first parameter is not included in the first correspondence, the electronic device does not respond to the received first parameter.
[0081] For the electronic device provided in the embodiment of the present application, since the first corresponding relationship is the corresponding relationship between the first target parameter and the first target function, the first target function is a function supported by the electronic device, and the first target parameter includes a key value corresponding to a target operation performed on an input device, a user can configure the first corresponding relationship corresponding to the function supported by the electronic device for the electronic device according to actual needs. In this way, each function matched by each parameter corresponds to the function supported by the electronic device, so that the input first parameter can adapt to the function on the electronic device and better meet the needs of the user.
[0082] Optionally, the first target parameter of the first correspondence may include the first parameter or may not include the first parameter. The following specifically describes how to determine the implementation process of the first function matching the first parameter when the first target parameter of the first correspondence in the embodiment of the present application does not include the first parameter.
[0083] In some embodiments, reference Figure 6 The flowchart of an electronic device determining a first function corresponding to a first parameter is shown, and the controller in the electronic device is configured to execute step S502, specifically configured to execute S601 to S603, wherein:
[0084] S601: Determine that the first target parameter in the first corresponding relationship does not include the first parameter.
[0085] Exemplarily, according to the first parameter, each parameter in the different first target parameters in the first corresponding relationship is traversed, and when each parameter in the first target parameter is inconsistent with the first parameter, it is determined that the first target parameters in the first corresponding relationship do not include the first parameter.
[0086] If the first target parameter in the first corresponding relationship does not include the first parameter, it indicates that the electronic device does not store a corresponding relationship between the first parameter and the first function matching the first parameter.
[0087] S602: Acquire a target corresponding relationship corresponding to the first device parameter according to the first device parameter.
[0088] The first device parameter includes: an identifier of the electronic device and an identifier of the input device. For example, the identifier in the embodiment of the present application may be a unique code of the device, including but not limited to: a serial number, a barcode or a QR code, a MAC address, a UUID, etc.
[0089] The target correspondence is a correspondence between the second parameter and the functions supported by the electronic device matched with different second parameters. The second parameter in the target correspondence includes the first parameter.
[0090] In one example, the target correspondence relationship adds a correspondence relationship between the first parameter and the first function compared to the first correspondence relationship.
[0091] In another example, the target correspondence is completely different from the first correspondence, and different parameters from those in the first correspondence can be matched for each function of the electronic device in the target correspondence, that is, when the same first parameter is received, different functions are matched using the target correspondence and the first correspondence.
[0092] According to the target relationship corresponding to the first device parameter obtained by the first device parameter, the first function matched by the first parameter received by the electronic device from the input device can be fully adapted to the electronic device.
[0093] In some embodiments, the first device parameter may also include a service version number, which is used to uniquely identify the name of the current version of the service. For example, the service version number may be: V1.0.0. Each subsequent version change may be modified based on the updated content to accurately reflect the current status of the service.
[0094] S603: Determine a first function that has a corresponding relationship with the first parameter in the target corresponding relationship, and execute the first function.
[0095] The implementation method of determining the first function that corresponds to the first parameter in the target correspondence relationship is similar to the implementation method of determining the first function that corresponds to the first parameter in the first correspondence relationship in the previous text, and the embodiments of the present application are not repeated here.
[0096] In an embodiment of the present application, when the first target parameter of the first correspondence does not include the first parameter, the function corresponding to the first parameter cannot be matched from the first correspondence, and other means are required to determine the function corresponding to the first parameter. According to the first device parameter, the target correspondence corresponding to the first device parameter is obtained. Since the target correspondence is obtained based on the identification of the electronic device and the identification of the input device, such a target correspondence is completely matched with the electronic device and the input device, and is a correspondence that enables the input device to control the electronic device. If the second parameter in the target correspondence includes the first parameter, the first function corresponding to the first parameter can be determined in the target correspondence, so that the electronic device gets a response to the first parameter received from the input device, thereby improving the adaptability of the input device to the electronic device.
[0097] In other embodiments, referring to Figure 7 As shown in the flowchart of another electronic device determining a first function corresponding to a first parameter, the controller in the electronic device is configured to execute step S502, specifically configured to execute S701 to S703, wherein:
[0098] S701: Determine that the first target parameter in the first corresponding relationship does not include the first parameter.
[0099] S702: Acquire a target corresponding relationship corresponding to the first device parameter according to the first device parameter.
[0100] The first device parameter includes: an identifier of the electronic device and an identifier of the input device, the target corresponding relationship is the second parameter, and the corresponding relationship between functions supported by the electronic device matched with different second parameters.
[0101] The implementation of S701 and S702 is similar to that of S601 and S602, and will not be described in detail in the embodiment of the present application.
[0102] S703: When the target corresponding relationship does not include the first function corresponding to the first parameter, receive and execute the first function set by the user and matching the first parameter.
[0103] In some embodiments, although the electronic device obtains the target correspondence according to the first device parameter, the target correspondence does not include the correspondence between the first parameter and the first function matching the first parameter, so the first function cannot be matched in the target correspondence. In order to enable the input device to better control and adapt the electronic device, when the second parameter in the target correspondence does not include the first parameter, the user's customization of the function corresponding to the first parameter can be received, and the first function supported by the electronic device can be set for the first parameter.
[0104] Specifically, when the second parameter in the target corresponding relationship does not include the first parameter, the electronic device is triggered to display the input device key function editing interface to the user, such as Figure 8 As shown, the user can set the first function that matches the first parameter in the input device key function editing interface, and receive the corresponding relationship between the first parameter set by the user and the first function that matches the first parameter. Figure 8 , receiving the operation of "add button function" in the input device button function editing interface, the operation of the input button and the action performed by the user on the button, and receiving the operation of "save button function" in the input device button function editing interface, so that the electronic device receives the correspondence between the first parameter set by the user and the first function matching the first parameter.
[0105] In the embodiment of the present application, although the target correspondence relationship corresponding to the first device parameter is obtained according to the first device parameter, the first parameter is not included in the multiple parameters in the target correspondence relationship. Therefore, the function matching the first parameter cannot be obtained from the target correspondence relationship. In order to enable the electronic device to respond to the parameters received from the input device and improve the adaptability of the input device to the electronic device, the user's setting of the first parameter can be accepted, and the correspondence relationship between the first parameter and the first function is added in the electronic device, so that the user's control of the electronic device through the input device is more in line with the user's actual needs.
[0106] In some embodiments, the electronic device may add the correspondence between the first parameter and the first function to the target correspondence.
[0107] Since the target correspondence in S703 does not include the first function that has a correspondence with the first parameter, in other words, the target correspondence does not include the correspondence between the first parameter and the first function, after the user sets the first function that matches the first parameter, the correspondence between the first parameter and the first function can be added to the target correspondence, and the target correspondence can be updated, so that the updated target correspondence includes the correspondence between the first parameter and the first function, thereby improving the updated target correspondence.
[0108] In the embodiment of the present application, although the target correspondence relationship corresponding to the first device parameter is obtained according to the first device parameter, the first parameter is not included in the multiple parameters in the target correspondence relationship. Therefore, the function matching the first parameter cannot be obtained from the target correspondence relationship. In order to enable the electronic device to respond to the parameters received from the input device and improve the adaptability of the input device to the electronic device, the user's setting of the first parameter can be accepted, and the correspondence relationship between the first parameter and the first function is added in the electronic device, so that the user's control of the electronic device through the input device is more in line with the user's actual needs.
[0109] Optionally, the first correspondence may also be updated according to the target correspondence. Specifically, each parameter in the target correspondence is traversed to check whether the same parameter exists in the first correspondence. If the first correspondence has the same parameter as the target correspondence, the function matching the parameter in the first correspondence is updated. If the parameter does not exist in the first correspondence, the correspondence between the parameter and the function matching the parameter is added to the first correspondence, and the updated first correspondence is saved. Furthermore, in order to save storage space, the target correspondence in the electronic device may be deleted.
[0110] In some other embodiments, reference Fig. 9 The flowchart of another electronic device determining a first function corresponding to a first parameter is shown, and the controller in the electronic device is configured to execute step S502, specifically configured to execute S801 to S802, wherein:
[0111] S801: Determine that the first target parameter in the first corresponding relationship does not include the first parameter.
[0112] S802: When a target correspondence relationship corresponding to the first device parameter is not obtained according to the first device parameter: receiving a first function matched with the first parameter set by a user, and executing the first function.
[0113] The target correspondence is the second parameter and the correspondence between the functions supported by the electronic device that match different second parameters, and the second parameter includes different key values corresponding to different operations on the input device. The first correspondence stored in the electronic device is not changed, and still does not include the first function that has a correspondence with the first parameter. At this time, the user can set the first parameter to obtain the first function that matches the first parameter and execute the first function.
[0114] Optionally, after receiving the first function set by the user that matches the first parameter, the first correspondence stored in the electronic device can be updated, and the correspondence between the first parameter and the first function is added to the first correspondence, so that the updated first correspondence includes the correspondence between the first parameter and the first function.
[0115] In the embodiment of the present application, the electronic device does not obtain the target correspondence based on the first device parameter, and the correspondence in the electronic device does not change, that is, the function matched by the first parameter cannot be determined from the electronic device. In order to enable the electronic device to respond to the parameters received from the input device, the adaptability of the input device to the electronic device is improved, and the user's setting of the first parameter can be accepted. The correspondence between the first parameter and the first function is added in the electronic device, so that the user's control of the electronic device through the input device is more in line with the user's actual needs.
[0116] Corresponding to the electronic device embodiment, the embodiment of the present application further provides a control method. The control method provided in the embodiment of the present application is applied to the electronic device, and the electronic device is communicatively connected with the input device. The control method includes:
[0117] S901, receiving a first parameter.
[0118] The first parameter includes: a key value corresponding to a first operation, where the first operation is an operation performed by a user on an input device;
[0119] S902: Determine whether the first corresponding relationship includes a first function that has a corresponding relationship with the first parameter.
[0120] The first corresponding relationship is a corresponding relationship between a first target parameter and a first target function. The first target function is a function supported by the electronic device. The first target parameter includes a key value corresponding to a target operation performed on the input device. The first target function includes the first function.
[0121] S903: When the first corresponding relationship includes a first function that has a corresponding relationship with the first parameter, execute the first function.
[0122] Optionally, when the first target parameter does not include the first parameter, the control method includes:
[0123] According to the first device parameter, a target correspondence relationship corresponding to the first device parameter is acquired, the first device parameter includes: an identifier of the electronic device and an identifier of the input device, the target correspondence relationship is a second parameter and a correspondence relationship between functions supported by the electronic device matching different second parameters, the second parameter includes different key values corresponding to different operations on the input device, and the second parameter includes the first parameter;
[0124] A first function corresponding to the first parameter is determined in the target corresponding relationship, and the first function is executed.
[0125] Optionally, when the first target parameter does not include the first parameter, the control method includes:
[0126] According to the first device parameter, a target correspondence relationship corresponding to the first device parameter is acquired, the first device parameter includes: an identifier of the electronic device and an identifier of the input device, the target correspondence relationship is a second parameter, and a correspondence relationship between functions supported by the electronic device matched with different second parameters, the second parameter includes different key values corresponding to different operations on the input device, and the second parameter does not include the first parameter;
[0127] In the case that the target corresponding relationship does not include the first function that has a corresponding relationship with the first parameter, the first function matched with the first parameter and set by the user is received, and the first function is executed.
[0128] Optionally, when the first target parameter does not include the first parameter, the control method includes:
[0129] According to the first device parameter, if the target corresponding relationship corresponding to the first device parameter is not obtained: receiving a first function set by a user and matching the first parameter, and executing the first function;
[0130] The target correspondence is the second parameter and the correspondence between the functions supported by the electronic device matching different second parameters, and the second parameter includes different key values corresponding to different operations performed on the input device.
[0131] Optionally, the control method includes: adding a correspondence between the first parameter and the first function to the first correspondence.
[0132] Optionally, the electronic device includes a display device, and the input device includes a microphone.
[0133] In the control method provided in the embodiment of the present application, since the first corresponding relationship is the corresponding relationship between the first target parameter and the function supported by the electronic device matched by the first target parameter, the user can configure the first corresponding relationship corresponding to the function of the electronic device for the electronic device according to actual needs. In this way, each parameter-matched function can correspond to the function supported by the electronic device, so that the input first parameter can adapt to the function on the electronic device and better meet the needs of the user.
[0134] Corresponding to the electronic device embodiment, the embodiment of the present application also provides a control system, the control system includes: an electronic device and an input device, the electronic device includes a memory, a controller, and a computer program stored in the memory and executable on the controller, and the controller implements the control method provided in the embodiment of the present application when executing the computer program.
[0135] Optional, such as Fig.10 As shown, Fig.10 The figure shows a schematic diagram of the architecture of a control system provided in an embodiment of the present application. The control system also includes a cloud server, which is communicatively connected to the electronic device.
[0136] The cloud server stores a first correspondence and / or at least one of multiple second correspondences, wherein the multiple second correspondences include a target correspondence, which is a second parameter, and a correspondence between functions supported by electronic devices matched with different second parameters, wherein the second parameter includes different key values corresponding to different operations performed on the input device.
[0137] The cloud server is used to: determine a target corresponding relationship corresponding to the first device parameter from a plurality of second corresponding relationships according to the first device parameter, and send the target corresponding relationship to the electronic device, where different second corresponding relationships correspond to different device parameters; or,
[0138] The cloud server is used to send the multiple second corresponding relationships to the electronic device or the first corresponding relationship to the electronic device.
[0139] In some embodiments, the first correspondence relationship and the plurality of second correspondence relationships stored in the cloud server may be maintained by the operation and maintenance personnel of the electronic device manufacturer, or the user may modify the correspondence relationship corresponding to the electronic device in the cloud server through the electronic device. The plurality of second correspondence relationships may be correspondence relationships between the same electronic device and different input devices, correspondence relationships between different electronic devices and the same input device, or correspondence relationships between different electronic devices and different input devices.
[0140] It is understandable that when the system of an electronic device is updated, the functions supported by the electronic device will change. At this time, a second correspondence different from the first correspondence can be set for the electronic device after the system is updated. Of course, the first correspondence and the second correspondence may have overlapping parameters and correspondences that match the parameters.
[0141] In some embodiments, the electronic device sends the first device parameter to the cloud server. Upon receiving the first device parameter, the cloud server matches a target correspondence relationship corresponding to the first device parameter among multiple second correspondence relationships based on the first device parameter, and sends the target correspondence relationship corresponding to the first device parameter to the electronic device, so that the electronic device can obtain the second correspondence relationship.
[0142] In other embodiments, different contents may be sent to the electronic device according to different requests of the electronic device. If the electronic device requests to obtain the preset correspondence relationship of the electronic device, the first correspondence relationship may be sent to the electronic device. If the electronic device requests to obtain an updated correspondence relationship, the cloud server acts as a storage server and sends multiple second correspondence relationships related to the electronic device to the electronic device, so that the electronic device can search for the currently required correspondence relationship from the multiple second correspondence relationships.
[0143] Below, an exemplary application of the embodiment of the present application in an actual application scenario will be described, but this does not constitute a limitation on the embodiment of the present application. Fig.11 As shown, Fig.11 A flow chart of a control method in an actual application scenario is provided for an embodiment of the present application.
[0144] In the actual application scenario, the electronic device is a complete machine service device, which refers to a device that has the function of parsing function codes and realizing the functions corresponding to function codes. The input device is a microphone. It can be understood that the complete machine service device needs to establish a communication connection with the microphone, and the complete machine service device is communicated with the cloud server.
[0145] Exemplarily, the whole machine service device and the microphone can establish a wired communication connection or a wireless communication connection. Among them, the wired communication connection includes but is not limited to: audio cable connection, HDMI cable connection, USB connection, USB HID communication connection. The USB HID (Human Interface Device) communication protocol is a communication protocol for connecting computer devices and external human-computer interaction devices, wherein the external human-computer interaction devices include keyboards, mice, remote controls, microphones, etc. Therefore, preferably, the whole machine service device and the microphone communicate via USB HID. Wireless connection methods include but are not limited to: Bluetooth connection, Wi-Fi connection, etc. The whole machine service device and the cloud server are connected via HTTP (HyperText Transfer Protocol).
[0146] In the embodiment of the present application, the whole machine service device establishes a communication connection with the microphone when the authentication is successful. If the authentication is unsuccessful, the whole machine service device and the microphone cannot establish a communication connection. In this way, the security and stability of the communication connection between devices can be ensured, and illegal devices are prevented from attacking and accessing the whole machine service device, thereby improving the security of data transmission.
[0147] The following is a detailed description of the authentication process between the whole service device and the microphone in the embodiment of the present application.
[0148] S1001, the whole machine service device sends a device identification acquisition request to the microphone.
[0149] Among them, the device identifier can uniquely and unchangeably identify a device. The device identifier can be the unique identification code of the microphone (also called: unique code), such as: MAC address, serial number, etc., or it can be parameters such as Internet Protocol address (IP address), device attributes, device name, device version number, or any combination of the above parameters. It can also be a character string or code value generated by the microphone according to a preset algorithm and a unique identification code. This application is not limited here.
[0150] It can be understood that in some embodiments, the whole machine service device continuously monitors whether the microphone is plugged in or requests a connection. When the microphone is plugged in or requests a connection, the whole machine service device starts to perform the authentication process from S1001.
[0151] S1002: The microphone sends a microphone identifier to the whole machine service device in response to the acquisition request.
[0152] S1003, the whole machine service device sends a handshake password to the microphone.
[0153] The handshake password is obtained by encrypting the microphone identifier.
[0154] In some embodiments, the handshake password is used to verify the device identity of the microphone, and the handshake password can be obtained by encrypting the microphone identification at least once.
[0155] In some embodiments, the handshake password can be obtained by encrypting the microphone identifier using a symmetric encryption method or an asymmetric confidential method. Among them, the symmetric encryption method is to use the same key for encryption and decryption in the whole machine service device and the microphone. The algorithm of the symmetric encryption method includes but is not limited to: Advanced Encryption Standard (Advanced Encryption Standard, AES) algorithm, Data Encryption Standard (Data Encryption Standard, DES) algorithm and Triple Data Encryption Standard (Triple Data Encryption Standard, 3DES) algorithm, etc. The asymmetric encryption method is to use the public key to encrypt on the whole machine service device and use the private key to decrypt on the microphone line. The algorithm of the asymmetric encryption method includes but is not limited to: RSA (Rivest-Shamir-Adleman) algorithm and Elliptic Curve Cryptography (Elliptic Curve Cryptography, ECC) algorithm, etc.
[0156] It should be noted that if the microphone identifier is encrypted multiple times, the encryption method for each of the multiple encryptions can be the same or different, and this application does not limit this.
[0157] S1004, the microphone parses the handshake password and extracts the target password from the handshake password.
[0158] In some embodiments, in the algorithm of symmetric encryption, the microphone uses the same encryption algorithm as that used in S1003 to parse the handshake password; in the algorithm of asymmetric encryption, the microphone uses its own private key to parse the handshake password.
[0159] S1005, the microphone returns the target password to the whole machine service device.
[0160] S1006, the whole machine service device verifies the target password.
[0161] In the case where the target password verification is successful, the whole machine service device and the microphone establish a communication connection. In the case where the target password verification fails, the whole machine service device and the microphone do not establish a communication connection.
[0162] Specifically, the target password is compared with the password stored in the whole machine service device. If the password stored in the whole machine service device includes the target password, it means that the target password verification is successful; if the password stored in the whole machine service device does not include the target password, it means that the target password verification fails.
[0163] When the target password verification is successful, the whole machine service device may further send a handshake success notification to the microphone, where the handshake success notification is used to enable the microphone to determine that the microphone can establish a communication connection with the whole machine service device.
[0164] If the target password is stored in the whole machine service device, it means that the whole machine service device has successfully authenticated the microphone, and the whole machine service device can communicate with the microphone; if the target password is not stored in the whole machine service device, it means that the whole machine service device has failed to authenticate the microphone, the microphone is an unavailable microphone or the microphone is not in the adaptation list of the device in the whole machine service device, and the whole machine service device cannot communicate with the microphone;
[0165] In the embodiment of the present application, when the target verification code is successfully verified, the USB HID communication function between the whole machine service device and the microphone is turned on, and the whole machine service device and the microphone communicate through the USB HID communication protocol, so that the microphone can report the key value and action of the microphone button to the whole machine service device. In the case of target password verification failure, the whole machine service device and the microphone use the basic communication method, that is, the whole machine service device receives and executes the operation instructions reported by the microphone, and the microphone does not send data to the whole machine service device. Among them, USB HID (Universal SerialBus-Human Interface Device) refers to a device that directly interacts with people, such as: remote control, microphone, keyboard, mouse, game controller, etc.
[0166] In some embodiments, the whole machine service device receives a message that complies with the USB HID communication protocol, parses the message, parses the key value reported by the microphone, checks the local configuration or the configuration in the cloud server, and thus determines the function corresponding to the key value.
[0167] S1007: When the target verification is passed, the whole machine service device sends a handshake success notification to the microphone.
[0168] The handshake notifies the microphone to establish a communication connection with the whole machine service device.
[0169] S1008, the whole machine service device requests a function code from the cloud server.
[0170] It should be noted that the function code in S1008 is the first corresponding relationship or the second corresponding relationship in the aforementioned embodiment.
[0171] S1009, the cloud server sends a corresponding function code to the electronic device according to the requested function code.
[0172] S1010: The whole machine service device parses and saves the function code.
[0173] S1011, the whole machine service device sends a control command to the microphone.
[0174] The control command instructs the microphone not to report the function according to the corresponding relationship stored in the microphone itself, but to directly report the key value corresponding to the user operation, that is, the first parameter.
[0175] S1012: The microphone reports a first parameter.
[0176] S1013, the whole machine service device determines the function corresponding to the first parameter according to the function code, and implements the function.
[0177] It should be understood that Fig.11 For details on the various steps in Figures 5 to 10 The implementation method of similar steps in the present application embodiment will not be repeated here.
[0178] The same and similar parts between the various embodiments in this specification can be referenced to each other and will not be described again here.
[0179] like Figure 1 , Figure 2 As shown, the display device 200 can be used to implement the control method described in the above method embodiment.
[0180] The display device 200 may include one or more memories on which programs are stored. The programs can be executed by the controller 250 to generate instructions, so that the controller 250 executes the control method described in the above method embodiment according to the instructions.
[0181] Optionally, data may be stored in the memory. Optionally, the controller 250 may read data stored in the memory, and the data may be stored in the same storage address as the program, or may be stored in a different storage address than the program.
[0182] The controller 250 and the memory may be provided separately or integrated together; for example, integrated on a system on chip (SOC) of the terminal device.
[0183] The present application also provides a computer program product, which, when executed by the controller 250, implements the control method of any method embodiment in the present application.
[0184] The computer program product may be stored in a memory, for example, a program, which is finally converted into an executable target file that can be executed by the controller 250 after preprocessing, compiling, assembling and linking.
[0185] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a computer, the control method of any method embodiment of the present application is implemented. The computer program can be a high-level language program or an executable target program.
[0186] The computer-readable storage medium is, for example, a memory. The memory may be a volatile memory or a nonvolatile memory, or the memory may include both a volatile memory and a nonvolatile memory. Among them, the nonvolatile 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), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0187] In this application, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0188] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0189] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0190] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0191] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic; for example, the division of units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0192] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0193] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0194] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An electronic device, characterized in that: The electronic device is communicatively connected with an input device, the input device is used to control the electronic device, and the electronic device includes: Memory; The controller is configured as: receiving a first parameter, wherein the first parameter includes: a key value corresponding to a first operation, wherein the first operation is an operation performed by a user on the input device; determining whether a first corresponding relationship includes a first function that has a corresponding relationship with the first parameter, the first corresponding relationship being a corresponding relationship between a first target parameter and a first target function, the first target function being a function supported by the electronic device, the first target parameter including a key value corresponding to a target operation performed on the input device, and the first target function including a first function; When the first correspondence includes a first function corresponding to the first parameter, the first function is executed.
2. The electronic device according to claim 1, characterized in that: When the first target parameter does not include the first parameter, the controller is further configured to: According to a first device parameter, a target correspondence relationship corresponding to the first device parameter is acquired, the first device parameter including: an identifier of the electronic device and an identifier of the input device, the target correspondence relationship is a second parameter and a correspondence relationship between functions supported by the electronic device that match different second parameters, the second parameter including different key values corresponding to different operations performed on the input device, and the second parameter including the first parameter; A first function corresponding to the first parameter is determined in the target corresponding relationship, and the first function is executed.
3. The electronic device according to claim 1, characterized in that: In a case where the first target parameter does not include the first parameter, the controller is further configured to: According to a first device parameter, a target correspondence relationship corresponding to the first device parameter is acquired, the first device parameter including: an identifier of the electronic device and an identifier of the input device, the target correspondence relationship is a second parameter and a correspondence relationship between functions supported by the electronic device matched with different second parameters, the second parameter including different key values corresponding to different operations performed on the input device, and the second parameter does not include the first parameter; In a case where the target corresponding relationship does not include the first function corresponding to the first parameter, the first function matched with the first parameter and set by the user is received, and the first function is executed.
4. The electronic device according to claim 1, characterized in that: When the first target parameter does not include the first parameter, the controller is configured to: According to the first device parameter, if the target corresponding relationship corresponding to the first device parameter is not obtained: receiving the first function matched with the first parameter set by the user, and executing the first function; The target correspondence is a second parameter and a correspondence between functions supported by the electronic device that match different second parameters, and the second parameter includes different key values corresponding to different operations performed on the input device.
5. The electronic device according to claim 3 or 4, characterized in that: The controller is configured to: The correspondence between the first parameter and the first function is added to the first correspondence.
6. The electronic device according to claim 1, characterized in that: The electronic device includes a display device, and the input device includes a microphone.
7. A control method, characterized in that: The method is applied to an electronic device, the electronic device is communicatively connected with an input device, and the method comprises: receiving a first parameter, wherein the first parameter includes: a key value corresponding to a first operation, wherein the first operation is an operation performed by a user on the input device; determining whether a first corresponding relationship includes a first function that has a corresponding relationship with the first parameter, the first corresponding relationship being a corresponding relationship between a first target parameter and a first target function, the first target function being a function supported by the electronic device, the first target parameter including a key value corresponding to a target operation performed on the input device, and the first target function including a first function; When the first correspondence includes a first function corresponding to the first parameter, the first function is executed.
8. A control system, characterized in that: The control system includes: an electronic device and an input device, the electronic device includes a memory, a controller, and a computer program stored in the memory and executable on the controller, and the controller implements the method as claimed in claim 7 when executing the computer program.
9. The control system according to claim 8, characterized in that: The control system further comprises a cloud server, and the cloud server is communicatively connected with the electronic device; The cloud server stores the first correspondence and / or at least one of a plurality of second correspondences, wherein the plurality of second correspondences include a target correspondence, wherein the target correspondence is a second parameter, and a correspondence between functions supported by the electronic device matched with different second parameters, wherein the second parameter includes different key values corresponding to different operations performed on the input device; The cloud server is used to: when it is determined that the plurality of second correspondences include a target correspondence corresponding to the first device parameter, send the target correspondence to the electronic device, and different second correspondences correspond to different device parameters; or The cloud server is used to send the multiple second corresponding relationships to the electronic device or send the first corresponding relationship to the electronic device.
10. A computer program product, characterized in that The invention comprises a computer program which, when executed, causes the method as claimed in claim 7 to be performed.