Information source switching method and device, medium and equipment
By generating source icons composed of peripheral device port identifiers and main identifiers on the source switching interface of the terminal device, users can simplify the operation process, solve the cumbersome problem of source switching in the existing technology, and improve the user experience.
Patent Information
- Application Number
- CN202411833430.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2025-03-21
AI Technical Summary
In the prior art, when a user switches the peripheral device connected to the TV, he or she needs to frequently operate the source switching, resulting in poor user experience. Especially for users who are not familiar with the input port type, the operation is cumbersome and requires help from others.
A source switching method is provided. By generating a source icon composed of peripheral device port identifier and body identifier on the source switching interface of the terminal device, the user can select and switch the source according to the icon to simplify the operation process.
This method simplifies the source switching process. Users do not need to remember the source type to which the peripheral device belongs. They just need to select the corresponding icon on the source switching interface to complete the switching, improving the user experience.
Smart Images

Figure CN119676516A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to the field of information source switching technology, and in particular to an information source switching method, device, medium and equipment. Background Art
[0002] Nowadays, TV sets in households are generally connected to multiple peripheral devices, such as set-top boxes, game consoles, TV boxes, DVDs, and other devices. When in use, the TV set is used as a display terminal, and the audio and video signals of these peripheral devices need to be connected to different input ports of the TV set. When using a certain device, it is necessary to switch the signal source of the TV set (such as HDMI, SPD, AV, etc.) to the corresponding input interface of the device, and find the remote control of the device to control the device. Each time a new peripheral device is switched, the above steps need to be repeated. When you can't remember which signal source the peripheral device is connected to the TV set, you need to check the actual input port or try and confirm by manually switching the input signal source of the TV. For users who are not familiar with the input port type, they need to seek help from others. These operations are not only cumbersome but also bring users a poor product experience. Summary of the invention
[0003] The embodiment of the present application provides a method, device, medium and equipment for switching information sources. The method for switching information sources provided by the embodiment of the present application is used to solve the problem of poor user experience in the current method for switching information sources.
[0004] On the one hand, an embodiment of the present application provides a method for switching a signal source, which is applied to a terminal device, wherein at least one peripheral device is connected to the terminal device, including:
[0005] When a source icon selection operation is detected on the source switching interface provided by the terminal device, determining a currently selected target source icon according to the source icon selection operation, wherein the target source icon includes a peripheral device port identifier and a peripheral device body identifier;
[0006] According to the peripheral device main body identifier, determining a target peripheral device corresponding to the peripheral device main body identifier;
[0007] According to the peripheral device port identifier, determining a target information source corresponding to the peripheral device port identifier;
[0008] Switch the current information source of the terminal device to the target information source.
[0009] Accordingly, another aspect of the embodiment of the present application further provides a signal source switching device, which is applied to a terminal device, and the terminal device is connected to at least one peripheral device, including:
[0010] An icon determination module, configured to determine a currently selected target source icon according to the source icon selection operation when a source icon selection operation is detected on the source switching interface provided by the terminal device, wherein the target source icon includes a peripheral device port identifier and a peripheral device body identifier;
[0011] A device determination module, used to determine a target peripheral device corresponding to the peripheral device main body identifier according to the peripheral device main body identifier;
[0012] An information source determination module, used to determine a target information source corresponding to the peripheral device port identifier according to the peripheral device port identifier;
[0013] The information source switching module is used to switch the current information source of the terminal device to the target information source.
[0014] Correspondingly, another aspect of the embodiment of the present application further provides a storage medium, wherein the storage medium stores a plurality of instructions, wherein the instructions are suitable for loading by a processor to execute the information source switching method as described above.
[0015] Correspondingly, another aspect of an embodiment of the present application further provides an electronic device, including a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the source switching method as described above.
[0016] The embodiment of the present application provides a source switching method, device, medium and equipment. The method determines the currently selected target source icon according to the source icon selection operation when detecting a source icon selection operation on the source switching interface provided by the terminal device, wherein the target source icon includes a peripheral device port identifier and a peripheral device body identifier; determines the target peripheral device corresponding to the peripheral device body identifier according to the peripheral device body identifier; determines the target source corresponding to the peripheral device port identifier according to the peripheral device port identifier; and switches the current source of the terminal device to the target source. Using the source switching method provided by the embodiment of the present application, the user can connect the peripheral device to the terminal device in advance, and then generate a source icon composed of the peripheral device port identifier and the peripheral device body identifier on the source switching interface provided by the terminal device, so that when many peripheral devices are connected to the terminal device, there is no need to remember the source type of the peripheral device. When using the specified peripheral device, you only need to find and select the source icon corresponding to the peripheral device on the source switching interface to complete the source switching. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work.
[0018] Figure 1 A flowchart of a signal source switching method provided in an embodiment of the present application.
[0019] Figure 2 A schematic diagram of the structure of a signal source switching device provided in an embodiment of the present application.
[0020] Figure 3 Another structural schematic diagram of the signal source switching device provided in an embodiment of the present application.
[0021] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0023] An embodiment of the present application provides a signal source switching method, by which a user can connect a peripheral device to a terminal device in advance, and then generate a signal source icon consisting of a peripheral device port identifier and a peripheral device body identifier on a signal source switching interface provided by the terminal device. This allows the user to complete the signal source switching by not having to remember the signal source type of each peripheral device after a number of peripheral devices are connected to the terminal device. The user only needs to find and select the signal source icon corresponding to the peripheral device on the signal source switching interface when using the specified peripheral device.
[0024] The term "and / or" in this application can be a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.
[0025] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable in appropriate circumstances, so that the embodiments described here can be implemented in a sequence other than the content illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, the process, method, system, product or television set comprising a series of steps or modules need not be limited to the steps or modules clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products or television sets. The naming or numbering of the steps in the present application does not mean that the steps in the method flow must be performed in the time / logic sequence indicated by the naming or numbering, and the process steps that have been named or numbered can change the execution order according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved. The division of modules in this application is a logical division. There may be other division methods when it is implemented in actual applications. For example, multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection between modules can be electrical or other similar forms, which are not limited in this application. In addition, the modules or submodules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed in multiple circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purpose of the present application.
[0026] The source switching method involved in the embodiment of the present application is mainly applied to electronic devices, which may be televisions, smart phones, tablet computers, laptops, desktop computers, smart home appliances and servers, etc., which are not limited here. Optionally, the server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or an IoT cloud (Internet of Things cloud) that provides the ability to store, process and manage data generated by an IoT television, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platforms, which are not limited here.
[0027] For ease of understanding, the specific process in the embodiments of the present application is described below. Figure 1 , Figure 1A flow chart of an embodiment of a method for switching a signal source provided in an embodiment of the present application.
[0028] exist Figure 1 In the illustrated embodiment, the method can be applied to a terminal device, to which at least one peripheral device is connected, such as a set-top box, a game console, a TV box, a DVD, and the like. In use, a terminal device such as a TV is used as a display terminal, and the audio and video signals of the peripheral device need to be connected to different input ports of the terminal device. When a peripheral device is used, it is necessary to switch the signal source (such as HDMI, SPD, AV, etc.) of the terminal device to the corresponding input interface of the peripheral device, and find the remote control of the peripheral device to control the peripheral device to achieve the switching of the signal source. The method specifically includes the following steps:
[0029] S101, when a source icon selection operation is detected on a source switching interface provided by the terminal device, a currently selected target source icon is determined according to the source icon selection operation, wherein the target source icon includes a peripheral device port identifier and a peripheral device body identifier.
[0030] In this embodiment, after the peripheral devices (such as set-top boxes, game consoles, TV boxes, DVDs) are connected to the terminal devices (such as TVs or computer monitors) in advance, a source icon consisting of a peripheral device port identifier and a peripheral device body identifier is generated on the source switching interface provided by the terminal device. This allows the user to avoid having to remember the source type of the peripheral devices after many peripheral devices are connected to the terminal device. When using a specified peripheral device, the user only needs to find and select the source icon corresponding to the peripheral device on the source switching interface to complete the source (such as HDMI, SPD, AV, etc.) switching.
[0031] It should be explained that the peripheral device port identification and the peripheral device body identification can be in the form of pictures or texts, and they only need to be highly recognizable, and the specific form is not limited here. For users who are not familiar with the input port type, they only need to have the ability to recognize pictures and texts to find the source icon corresponding to the peripheral device currently needed to be used on the source switching interface without seeking help from others. Compared with the traditional source switching method, the source switching method provided by this solution is simple and convenient to operate, and can enhance the user experience.
[0032] S102: Determine, according to the peripheral device main body identifier, a target peripheral device corresponding to the peripheral device main body identifier.
[0033] In this embodiment, since the peripheral device body identifier can be obtained from the selected target source icon, that is, the peripheral device body identifier is known, the target peripheral device corresponding to the peripheral device body identifier can be searched from the local database or the cloud database to determine the target peripheral device currently selected by the user.
[0034] S103: Determine, according to the peripheral device port identifier, a target information source corresponding to the peripheral device port identifier.
[0035] In this embodiment, since the peripheral device port identifier can also be obtained from the selected target source icon, that is, the peripheral device port identifier is also known, the target source corresponding to the peripheral device port identifier can be searched from the local database or the cloud database to determine the target source currently selected by the user.
[0036] S104: Switch the current information source of the terminal device to the target information source.
[0037] In this embodiment, since the target peripheral device and the target source have been determined, the current source of the terminal device can be switched to the target source according to the target peripheral device and the target source. For example, if the current source is HDMI, after detecting the source icon selection operation, the current source is switched to the target source such as SPD.
[0038] In some embodiments, after switching the current information source of the terminal device to the target information source, the method further includes:
[0039] Acquire target attribute parameters corresponding to the target information source icon;
[0040] Attribute parameters are configured for the target peripheral device according to the target attribute parameters.
[0041] It should be explained that display configuration parameters refer to technical indicators used in terminal devices to describe their performance and characteristics, and may include the following parameters:
[0042] Resolution: refers to the number of pixels that can be displayed on the screen, usually expressed in the form of "horizontal pixels x vertical pixels", such as 1920x1080. The higher the resolution, the richer the details of the images and text on the screen, and the clearer the display effect.
[0043] Screen brightness: Indicates the light intensity emitted by the screen under normal viewing conditions, usually measured in "nits". The higher the brightness, the better the screen's visibility in bright environments.
[0044] Contrast: refers to the brightness ratio between the brightest and darkest parts of the screen. The higher the contrast, the better the image layering and details.
[0045] Refresh rate: refers to the number of times the screen can refresh an image per second, measured in Hertz (Hz). A high refresh rate can reduce motion blur and improve the smoothness of dynamic images, making it particularly suitable for watching videos and playing games.
[0046] Color gamut: refers to the range of colors that a screen can display, usually associated with color gamut standards such as sRGB, NTSC, Adobe RGB, etc. The wider the color gamut, the more colors the screen can display.
[0047] Color temperature: refers to the color of the light emitted by the screen, usually measured in Kelvin (K). Different color temperatures give people different visual experiences, such as cool colors tend to be bluish and warm colors tend to be yellowish.
[0048] Response time: refers to the time it takes for pixels on the screen to change from one color to another, usually measured in milliseconds (ms). The shorter the response time, the less ghosting the screen will have when displaying fast-moving images.
[0049] Time when the HPD event is triggered: HPD is the abbreviation of Hot Plug Detect, which means hot plug detection of devices. In specific signal sources such as HDMI, when the user inserts or removes a peripheral device while the system is running, an HPD event will be triggered to detect changes in the device connection status.
[0050] Since different peripheral devices require different display configuration parameters when connected to a terminal device, in this embodiment, target attribute parameters corresponding to the target source icon are obtained (the specific acquisition method can be obtained through a local database or a cloud database), and attribute parameters are configured for the target peripheral device according to the target attribute parameters, so that the terminal device can adaptively adjust the corresponding target attribute parameters according to different types of peripheral devices to obtain the best device operation performance.
[0051] In some embodiments, when a source icon selection operation is detected on the source switching interface provided by the terminal device, before determining the currently selected target source icon according to the source icon selection operation, the method further includes:
[0052] In response to the triggering of the attribute parameter entry operation, obtaining a peripheral device port image and a peripheral device body image of a target peripheral device to be connected to the terminal device;
[0053] Analyze the peripheral device port picture and the peripheral device main body picture, extract the peripheral device port identifier in the peripheral device port picture and the peripheral device main body identifier in the peripheral device main body picture, respectively, and construct an identifier combination including the peripheral device port identifier and the peripheral device main body identifier;
[0054] Determine the attribute parameter identifier corresponding to the identifier combination, and obtain the target attribute parameter corresponding to the attribute parameter identifier;
[0055] Attribute parameters are configured for the target peripheral device on the terminal device according to the target attribute parameters.
[0056] It should be noted that the common property parameter configuration schemes at present are mostly to first connect the peripheral device to the terminal device, and then the terminal device identifies the model of the peripheral device port and the model of the peripheral device body through the data transmission protocol, and then obtains the corresponding EDID (Extended Display Identification Data, which is data information used to declare the performance characteristics of the device itself) to configure the property parameters. And most equipment manufacturers do not write the model information into the data transmission protocol, so that the terminal device can only use polling to determine the EDID suitable for the current device in turn. However, all known methods are time-consuming.
[0057] In this embodiment, before connecting the target peripheral device to the terminal device, the user can first align the peripheral device body and the peripheral device port of the target peripheral device with the camera provided by the terminal device, obtain the peripheral device port image and the peripheral device body image of the target peripheral device through the camera, and then analyze the peripheral device port image and the peripheral device body image to extract the peripheral device port identifier in the peripheral device port image and the peripheral device body identifier in the peripheral device body image, and construct an identification combination including the peripheral device port identifier and the peripheral device body identifier. When the identification combination is known, the corresponding attribute parameter identifier (i.e., EDID) is determined through the identification combination, and the target attribute parameters corresponding to the attribute parameter identifier are obtained. According to the target attribute parameters, attribute parameters (such as image resolution, screen brightness, etc.) are configured for the target peripheral device on the terminal device in advance. When the user connects the target peripheral device to the terminal device, the system can set the target attribute parameters adapted to the target peripheral device by utilizing the idle time of connecting the target peripheral device. This can not only reduce the waiting time for the user, but also does not require the user to configure by themselves, thereby reducing the difficulty of operation.
[0058] In another embodiment, in addition to obtaining peripheral device port images and peripheral device body images through the camera provided by the terminal device, peripheral device port images and peripheral device body images can also be obtained through a mobile phone or other shooting device and uploaded to the terminal device.
[0059] In some embodiments, the analyzing the peripheral device port picture and the peripheral device main body picture to respectively extract the peripheral device port identifier in the peripheral device port picture and the peripheral device main body identifier in the peripheral device main body picture includes:
[0060] The peripheral device port picture and the peripheral device main body picture are respectively input into a pre-trained type recognition model for type recognition, and the peripheral device port identifier in the peripheral device port picture and the peripheral device main body identifier in the peripheral device main body picture are respectively obtained.
[0061] It should be explained that the type recognition model can be obtained based on conventional neural network training, such as convolutional neural network. The specific training process will not be described here.
[0062] In some embodiments, after determining the attribute parameter identification information corresponding to the identification combination and acquiring the target attribute parameter corresponding to the attribute parameter identification information, the method further includes:
[0063] Acquire a target information source corresponding to the peripheral device port identifier, and establish a first mapping relationship between the peripheral device port identifier and the target information source;
[0064] The step of determining a target information source corresponding to the peripheral device port identifier according to the peripheral device port identifier includes:
[0065] According to the peripheral device port identifier and the first mapping relationship, a target information source corresponding to the peripheral device port identifier is determined.
[0066] In this embodiment, by obtaining the target information source corresponding to the peripheral device port identifier, a first mapping relationship is established between the peripheral device port identifier and the target information source, so that when the information source is switched, the target information source corresponding to the peripheral device port identifier can be determined according to the peripheral device port identifier and the first mapping relationship to perform the information source switching.
[0067] In some embodiments, after determining the attribute parameter identification information corresponding to the identification combination and acquiring the target attribute parameter corresponding to the attribute parameter identification information, the method further includes:
[0068] Acquire a terminal device port picture of a terminal device port to be connected to the target peripheral device on the terminal device, and extract a terminal device port identifier from the terminal device port picture;
[0069] Acquire a target information source corresponding to the terminal device port identifier, and establish a second mapping relationship between the peripheral device port identifier and the target information source;
[0070] The step of determining a target information source corresponding to the peripheral device port identifier according to the peripheral device port identifier includes:
[0071] According to the peripheral device port identifier and the second mapping relationship, a target information source corresponding to the peripheral device port identifier is determined.
[0072] Since different peripheral devices are generally applicable to the same type of peripheral device ports, such as HDMI, if no distinction is made, it will affect the identification result of the target signal source. However, considering that the workload of distinguishing peripheral device ports is large, as new peripheral devices are connected, it is necessary to continuously add new identifiers to distinguish peripheral device ports, such as HDMI1, HDMI2, etc. However, the number of terminal device ports of the terminal device is fixed, so the terminal device port of the terminal device can be used instead of the peripheral device port for distinction. By obtaining a terminal device port image of the terminal device port to be connected to the target peripheral device on the terminal device, extracting the terminal device port identifier in the terminal device port image, and then obtaining the target signal source corresponding to the terminal device port identifier, a second mapping relationship is established between the peripheral device port identifier and the target signal source, so that when switching the signal source, the target signal source corresponding to the peripheral device port identifier can be determined according to the peripheral device port identifier and the second mapping relationship to perform signal source switching.
[0073] In some embodiments, after constructing the identification combination including the peripheral device port identification and the peripheral device body identification, the method further includes:
[0074] A signal source icon is generated according to the identification combination, and the signal source icon is added to a signal source switching interface provided by the terminal device.
[0075] In this embodiment, a source icon is generated by using an identifier combination, and the source icon is added to a source switching interface provided by the terminal device, so that the user can connect the peripheral device to the terminal device in advance, and then a source icon consisting of a peripheral device port identifier and a peripheral device body identifier is generated on the source switching interface provided by the terminal device. After many peripheral devices are connected to the terminal device, there is no need to remember the source type of the peripheral devices. When using a specified peripheral device, you only need to find and select the source icon corresponding to the peripheral device on the source switching interface to complete the source switching.
[0076] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0077] In specific implementation, the present application is not limited by the execution order of the various steps described. If no conflict occurs, some steps can be performed in other orders or simultaneously.
[0078] As can be seen from the above, the source switching method provided by the embodiment of the present application determines the currently selected target source icon according to the source icon selection operation when detecting a source icon selection operation on the source switching interface provided by the terminal device, wherein the target source icon includes a peripheral device port identifier and a peripheral device body identifier; determines the target peripheral device corresponding to the peripheral device body identifier according to the peripheral device body identifier; determines the target source corresponding to the peripheral device port identifier according to the peripheral device port identifier; and switches the current source of the terminal device to the target source. Using the source switching method provided by the embodiment of the present application, the user can connect the peripheral device to the terminal device in advance, and then generate a source icon composed of the peripheral device port identifier and the peripheral device body identifier on the source switching interface provided by the terminal device, so that when many peripheral devices are connected to the terminal device, there is no need to remember the source type to which the peripheral device belongs. When using the specified peripheral device, you only need to find and select the source icon corresponding to the peripheral device on the source switching interface to complete the source switching.
[0079] An embodiment of the present application further provides a signal source switching device, which can be integrated into an electronic device.
[0080] See also Figure 2 , Figure 2 A schematic diagram of the structure of a signal source switching device provided in an embodiment of the present application. The signal source switching device 30 may include:
[0081] An icon determination module 31 is used to determine a currently selected target source icon according to the source icon selection operation when a source icon selection operation is detected on the source switching interface provided by the terminal device, wherein the target source icon includes a peripheral device port identifier and a peripheral device body identifier;
[0082] A device determination module 32, configured to determine a target peripheral device corresponding to the peripheral device main body identifier according to the peripheral device main body identifier;
[0083] An information source determination module 33, configured to determine a target information source corresponding to the peripheral device port identifier according to the peripheral device port identifier;
[0084] The information source switching module 34 is used to switch the current information source of the terminal device to the target information source.
[0085] In some embodiments, the apparatus further includes a parameter acquisition module, configured to acquire target attribute parameters corresponding to the target information source icon; and configure attribute parameters for the target peripheral device according to the target attribute parameters.
[0086] In some embodiments, the device also includes a preconfiguration module for obtaining a peripheral device port picture and a peripheral device body picture of a target peripheral device to be connected to the terminal device in response to the triggering of an attribute parameter entry operation; analyzing the peripheral device port picture and the peripheral device body picture, respectively extracting the peripheral device port identifier in the peripheral device port picture and the peripheral device body identifier in the peripheral device body picture, and constructing an identifier combination including the peripheral device port identifier and the peripheral device body identifier; determining an attribute parameter identifier corresponding to the identifier combination, and obtaining a target attribute parameter corresponding to the attribute parameter identifier; and configuring attribute parameters for the target peripheral device on the terminal device according to the target attribute parameters.
[0087] In some embodiments, the preconfiguration module is used to input the peripheral device port image and the peripheral device body image into a pre-trained type recognition model for type recognition, respectively, to obtain the peripheral device port identifier in the peripheral device port image and the peripheral device body identifier in the peripheral device body image.
[0088] In some embodiments, the device also includes a first establishment module, which is used to obtain the target information source corresponding to the peripheral device port identifier and establish a first mapping relationship between the peripheral device port identifier and the target information source; the information source determination module 33 is used to determine the target information source corresponding to the peripheral device port identifier based on the peripheral device port identifier and the first mapping relationship.
[0089] In some embodiments, the device also includes a second establishment module, which is used to obtain a terminal device port picture of the terminal device port to be connected to the target peripheral device on the terminal device, and extract the terminal device port identifier in the terminal device port picture; obtain the target information source corresponding to the terminal device port identifier, and establish a second mapping relationship between the peripheral device port identifier and the target information source; the information source determination module 33 is used to determine the target information source corresponding to the peripheral device port identifier based on the peripheral device port identifier and the first mapping relationship.
[0090] In some embodiments, the apparatus further comprises an adding module for generating a signal source icon according to the identification combination, and adding the signal source icon to a signal source switching interface provided by the terminal device.
[0091] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same entity or several entities.
[0092] As can be seen from the above, the source switching device 30 provided in the embodiment of the present application, wherein the icon determination module 31 is used to determine the currently selected target source icon according to the source icon selection operation when a source icon selection operation is detected on the source switching interface provided by the terminal device, wherein the target source icon includes a peripheral device port identifier and a peripheral device body identifier; the device determination module 32 is used to determine the target peripheral device corresponding to the peripheral device body identifier according to the peripheral device body identifier; the source determination module 33 is used to determine the target source corresponding to the peripheral device port identifier according to the peripheral device port identifier; the source switching module 34 is used to switch the current source of the terminal device to the target source.
[0093] An embodiment of the present application further provides a signal source switching device, which can be integrated into an electronic device.
[0094] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same entity or several entities.
[0095] See also Figure 3 , Figure 3 Another structural diagram of a source switching device provided in an embodiment of the present application, the source switching device 30 includes a memory 120, one or more processors 180, and one or more applications, wherein the one or more applications are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 may include an icon determination module 31, a device determination module 32, a source determination module 33, and a source switching module 34. For example, the structure and connection relationship of the above components may be as follows:
[0096] The memory 120 can be used to store applications and data. The applications stored in the memory 120 include executable codes. The applications can be composed of various functional modules. The processor 180 executes various functional applications and data processing by running the applications stored in the memory 120. In addition, the memory 120 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 120 may also include a memory controller to provide the processor 180 with access to the memory 120.
[0097] The processor 180 is the control center of the device, and uses various interfaces and lines to connect various parts of the entire terminal, and executes various functions of the device and processes data by running or executing applications stored in the memory 120, and calling data stored in the memory 120, so as to monitor the device as a whole. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs.
[0098] Specifically in this embodiment, the processor 180 will load the executable code corresponding to the process of one or more applications into the memory 120 according to the following instructions, and the processor 180 will run the application stored in the memory 120 to implement various functions:
[0099] An icon determination instruction is used to determine a currently selected target source icon according to the source icon selection operation when a source icon selection operation is detected on the source switching interface provided by the terminal device, wherein the target source icon includes a peripheral device port identifier and a peripheral device body identifier;
[0100] A device determination instruction, used to determine a target peripheral device corresponding to the peripheral device main body identifier according to the peripheral device main body identifier;
[0101] An information source determination instruction, used to determine a target information source corresponding to the peripheral device port identifier according to the peripheral device port identifier;
[0102] The information source switching instruction is used to switch the current information source of the terminal device to the target information source.
[0103] In some embodiments, the program further includes a parameter acquisition instruction for acquiring target attribute parameters corresponding to the target information source icon; and configuring attribute parameters for the target peripheral device according to the target attribute parameters.
[0104] In some embodiments, the program also includes pre-configuration instructions for obtaining, in response to the triggering of an attribute parameter entry operation, a peripheral device port picture and a peripheral device body picture of a target peripheral device to be connected to the terminal device; analyzing the peripheral device port picture and the peripheral device body picture, respectively extracting the peripheral device port identifier in the peripheral device port picture and the peripheral device body identifier in the peripheral device body picture, and constructing an identification combination including the peripheral device port identifier and the peripheral device body identifier; determining an attribute parameter identifier corresponding to the identification combination, and obtaining a target attribute parameter corresponding to the attribute parameter identifier; and configuring attribute parameters for the target peripheral device on the terminal device according to the target attribute parameters.
[0105] In some embodiments, the pre-configuration instruction is used to input the peripheral device port image and the peripheral device body image into a pre-trained type recognition model for type recognition, respectively, to obtain the peripheral device port identifier in the peripheral device port image and the peripheral device body identifier in the peripheral device body image.
[0106] In some embodiments, the program also includes a first establishment instruction for obtaining a target information source corresponding to the peripheral device port identifier and establishing a first mapping relationship between the peripheral device port identifier and the target information source; the information source determination instruction is used to determine the target information source corresponding to the peripheral device port identifier based on the peripheral device port identifier and the first mapping relationship.
[0107] In some embodiments, the program also includes a second establishment instruction, which is used to obtain a terminal device port picture of the terminal device port on the terminal device to which the target peripheral device is to be connected, and extract the terminal device port identifier in the terminal device port picture; obtain a target information source corresponding to the terminal device port identifier, and establish a second mapping relationship between the peripheral device port identifier and the target information source; the information source determination instruction is used to determine the target information source corresponding to the peripheral device port identifier based on the peripheral device port identifier and the second mapping relationship.
[0108] In some embodiments, the program further includes adding instructions for generating a signal source icon according to the identification combination, and adding the signal source icon to a signal source switching interface provided by the terminal device.
[0109] The present application also provides an electronic device. Figure 4 , Figure 4 The electronic device 1200 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, and the electronic device can be used to implement the signal source switching method provided in the above embodiment. The electronic device 1200 can be a television, a smart phone, or a tablet computer.
[0110] like Figure 4 As shown, the electronic device 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one is shown in the figure) computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more (only one is shown in the figure) processing cores, and a power supply 190. Those skilled in the art will understand that Figure 4 The structure of the electronic device 1200 shown in the figure does not constitute a limitation on the electronic device 1200, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0111] The RF circuit 110 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other televisions. The RF circuit 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a user identity module (SIM) card, a memory, etc. The RF circuit 110 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other televisions via a wireless network.
[0112] The memory 120 can be used to store software programs and modules, such as the program instructions / modules corresponding to the source switching method in the above embodiment. The processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120. The vibration reminder mode can be automatically selected to switch the source according to the current scene of the electronic device, which can not only ensure that scenes such as meetings are not disturbed, but also ensure that users can perceive incoming calls, thereby improving the intelligence of the electronic device. The memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 120 may further include a memory remotely arranged relative to the processor 180, and these remote memories may be connected to the electronic device 1200 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0113] The input unit 130 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 130 may include a touch-sensitive surface 131 and other input devices 132. The touch-sensitive surface 131, also known as a touch display screen or touch pad, can collect user touch operations on or near it (such as operations performed by users using fingers, styluses, or any other suitable objects or accessories on or near the touch-sensitive surface 131), and drive corresponding connection devices according to a pre-set program. Optionally, the touch-sensitive surface 131 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch-sensitive surface 131 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 131, the input unit 130 may further include other input devices 132. Specifically, the other input devices 132 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.
[0114] The display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device 1200, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 140 may include a display panel 141. Optionally, the display panel 141 may be configured in the form of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc. Further, the touch-sensitive surface 131 may cover the display panel 141. When the touch-sensitive surface 131 detects a touch operation on or near it, it is transmitted to the processor 180 to determine the type of touch event. Subsequently, the processor 180 provides corresponding visual output on the display panel 141 according to the type of touch event. Although in Figure 4 In the embodiment, the touch-sensitive surface 131 and the display panel 141 are implemented as two independent components to implement input and output functions. However, in some embodiments, the touch-sensitive surface 131 and the display panel 141 can be integrated to implement input and output functions.
[0115] The electronic device 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 141 and / or the backlight when the electronic device 1200 is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured in the electronic device 1200, they will not be repeated here.
[0116] The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the electronic device 1200. The audio circuit 160 can transmit the received audio data to the speaker 161 after converting the received audio data into an electrical signal, which is converted into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, and then the audio data is processed by the output processor 180, and then sent to another terminal through the RF circuit 110, or the audio data is output to the memory 120 for further processing. The audio circuit 160 may also include an earplug jack to provide communication between an external headset and the electronic device 1200.
[0117] The electronic device 1200 can help users send and receive emails, browse web pages, and access streaming media through the transmission module 170 (such as a Wi-Fi module), which provides users with wireless broadband Internet access. Figure 4 The transmission module 170 is shown, but it is understandable that it is not an essential component of the electronic device 1200 and can be omitted as needed without changing the essence of the invention.
[0118] The processor 180 is the control center of the electronic device 1200. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 120, and calling data stored in the memory 120, it executes various functions of the electronic device 1200 and processes data, thereby monitoring the mobile phone as a whole. Optionally, the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 180.
[0119] The electronic device 1200 also includes a power supply 190 for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 180 through a power management system, so that the power management system can realize functions such as managing discharge and power consumption. The power supply 190 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0120] Although not shown, the electronic device 1200 may also include a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the display unit 140 of the electronic device 1200 is a touch screen display, and the electronic device 1200 also includes a memory 120, and one or more programs, wherein one or more programs are stored in the memory 120, and are configured to be executed by one or more processors 180. One or more programs include instructions for performing the following operations:
[0121] An icon determination instruction is used to determine a currently selected target source icon according to the source icon selection operation when a source icon selection operation is detected on the source switching interface provided by the terminal device, wherein the target source icon includes a peripheral device port identifier and a peripheral device body identifier;
[0122] A device determination instruction, used to determine a target peripheral device corresponding to the peripheral device main body identifier according to the peripheral device main body identifier;
[0123] An information source determination instruction, used to determine a target information source corresponding to the peripheral device port identifier according to the peripheral device port identifier;
[0124] The information source switching instruction is used to switch the current information source of the terminal device to the target information source.
[0125] In some embodiments, the program further includes a parameter acquisition instruction for acquiring target attribute parameters corresponding to the target information source icon; and configuring attribute parameters for the target peripheral device according to the target attribute parameters.
[0126] In some embodiments, the program also includes pre-configuration instructions for obtaining, in response to the triggering of an attribute parameter entry operation, a peripheral device port picture and a peripheral device body picture of a target peripheral device to be connected to the terminal device; analyzing the peripheral device port picture and the peripheral device body picture, respectively extracting the peripheral device port identifier in the peripheral device port picture and the peripheral device body identifier in the peripheral device body picture, and constructing an identification combination including the peripheral device port identifier and the peripheral device body identifier; determining an attribute parameter identifier corresponding to the identification combination, and obtaining a target attribute parameter corresponding to the attribute parameter identifier; and configuring attribute parameters for the target peripheral device on the terminal device according to the target attribute parameters.
[0127] In some embodiments, the pre-configuration instruction is used to input the peripheral device port image and the peripheral device body image into a pre-trained type recognition model for type recognition, respectively, to obtain the peripheral device port identifier in the peripheral device port image and the peripheral device body identifier in the peripheral device body image.
[0128] In some embodiments, the program also includes a first establishment instruction for obtaining a target information source corresponding to the peripheral device port identifier and establishing a first mapping relationship between the peripheral device port identifier and the target information source; the information source determination instruction is used to determine the target information source corresponding to the peripheral device port identifier based on the peripheral device port identifier and the first mapping relationship.
[0129] In some embodiments, the program also includes a second establishment instruction, which is used to obtain a terminal device port picture of the terminal device port on the terminal device to which the target peripheral device is to be connected, and extract the terminal device port identifier in the terminal device port picture; obtain a target information source corresponding to the terminal device port identifier, and establish a second mapping relationship between the peripheral device port identifier and the target information source; the information source determination instruction is used to determine the target information source corresponding to the peripheral device port identifier based on the peripheral device port identifier and the second mapping relationship.
[0130] In some embodiments, the program further includes adding instructions for generating a signal source icon according to the identification combination, and adding the signal source icon to a signal source switching interface provided by the terminal device.
[0131] The embodiment of the present application also provides an electronic device, which may be a smart phone, a television, a computer, or other device.
[0132] As can be seen from the above, the embodiment of the present application provides an electronic device 1200, and the electronic device 1200 performs the following steps:
[0133] When a source icon selection operation is detected on the source switching interface provided by the terminal device, determining a currently selected target source icon according to the source icon selection operation, wherein the target source icon includes a peripheral device port identifier and a peripheral device body identifier;
[0134] According to the peripheral device main body identifier, determining a target peripheral device corresponding to the peripheral device main body identifier;
[0135] According to the peripheral device port identifier, determining a target information source corresponding to the peripheral device port identifier;
[0136] Switch the current information source of the terminal device to the target information source.
[0137] An embodiment of the present application further provides a storage medium, wherein a computer program is stored in the storage medium. When the computer program is executed on a computer, the computer executes the information source switching method described in any of the above embodiments.
[0138] It should be noted that, for the information source switching method described in the present application, ordinary testers in the field can understand that all or part of the process of implementing the information source switching method described in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, such as stored in the memory of an electronic device, and executed by at least one processor in the electronic device, and the execution process may include the process of the embodiment of the information source switching method. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM, ReadOnly Memory), a random access memory (RAM, Random Access Memory), etc.
[0139] For the source switching device of the embodiment of the present application, each functional module can be integrated into a processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk.
[0140] The above is a detailed introduction to the information source switching method, device, medium and equipment provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application; at the same time, for those skilled in the art, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present application.
Claims
1. A source switching method, applied to a terminal device, wherein at least one peripheral device is connected to the terminal device, characterized in that: include: When a source icon selection operation is detected on the source switching interface provided by the terminal device, determining a currently selected target source icon according to the source icon selection operation, wherein the target source icon includes a peripheral device port identifier and a peripheral device body identifier; According to the peripheral device main body identifier, determining a target peripheral device corresponding to the peripheral device main body identifier; According to the peripheral device port identifier, determining a target information source corresponding to the peripheral device port identifier; Switch the current information source of the terminal device to the target information source.
2. The information source switching method according to claim 1, characterized in that: After switching the current information source of the terminal device to the target information source, the method further includes: Acquire target attribute parameters corresponding to the target information source icon; Attribute parameters are configured for the target peripheral device according to the target attribute parameters.
3. The information source switching method according to claim 1, characterized in that: When a source icon selection operation is detected on the source switching interface provided by the terminal device, before determining the currently selected target source icon according to the source icon selection operation, the method further includes: In response to the triggering of the attribute parameter entry operation, obtaining a peripheral device port image and a peripheral device body image of a target peripheral device to be connected to the terminal device; Analyze the peripheral device port picture and the peripheral device main body picture, extract the peripheral device port identifier in the peripheral device port picture and the peripheral device main body identifier in the peripheral device main body picture, respectively, and construct an identifier combination including the peripheral device port identifier and the peripheral device main body identifier; Determine the attribute parameter identifier corresponding to the identifier combination, and obtain the target attribute parameter corresponding to the attribute parameter identifier; Attribute parameters are configured for the target peripheral device on the terminal device according to the target attribute parameters.
4. The information source switching method according to claim 3, characterized in that: The analyzing the peripheral device port picture and the peripheral device main body picture to respectively extract the peripheral device port identifier in the peripheral device port picture and the peripheral device main body identifier in the peripheral device main body picture includes: The peripheral device port picture and the peripheral device main body picture are respectively input into a pre-trained type recognition model for type recognition, and the peripheral device port identifier in the peripheral device port picture and the peripheral device main body identifier in the peripheral device main body picture are respectively obtained.
5. The information source switching method according to claim 3, characterized in that: After determining the attribute parameter identification information corresponding to the identification combination and acquiring the target attribute parameter corresponding to the attribute parameter identification information, the method further includes: Acquire a target information source corresponding to the peripheral device port identifier, and establish a first mapping relationship between the peripheral device port identifier and the target information source; The step of determining a target information source corresponding to the peripheral device port identifier according to the peripheral device port identifier includes: According to the peripheral device port identifier and the first mapping relationship, a target information source corresponding to the peripheral device port identifier is determined.
6. The information source switching method according to claim 3, characterized in that: After determining the attribute parameter identification information corresponding to the identification combination and acquiring the target attribute parameter corresponding to the attribute parameter identification information, the method further includes: Acquire a terminal device port picture of a terminal device port to be connected to the target peripheral device on the terminal device, and extract a terminal device port identifier from the terminal device port picture; Acquire a target information source corresponding to the terminal device port identifier, and establish a second mapping relationship between the peripheral device port identifier and the target information source; The step of determining a target information source corresponding to the peripheral device port identifier according to the peripheral device port identifier includes: According to the peripheral device port identifier and the second mapping relationship, a target information source corresponding to the peripheral device port identifier is determined.
7. The information source switching method according to claim 3, characterized in that: After constructing the identification combination including the peripheral device port identification and the peripheral device body identification, the method further includes: A signal source icon is generated according to the identification combination, and the signal source icon is added to a signal source switching interface provided by the terminal device.
8. A signal source switching device, applied to a terminal device, the terminal device being connected to at least one peripheral device, characterized in that: The information source switching device comprises: An icon determination module, configured to determine a currently selected target source icon according to the source icon selection operation when a source icon selection operation is detected on the source switching interface provided by the terminal device, wherein the target source icon includes a peripheral device port identifier and a peripheral device body identifier; A device determination module, used to determine a target peripheral device corresponding to the peripheral device main body identifier according to the peripheral device main body identifier; An information source determination module, used to determine a target information source corresponding to the peripheral device port identifier according to the peripheral device port identifier; The information source switching module is used to switch the current information source of the terminal device to the target information source.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the information source switching method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the information source switching method according to any one of claims 1 to 7.