A screen projection information processing method, device, equipment and storage medium
By utilizing the time difference screening mechanism of device identification and historical search table during the screen projection process between mobile phones and car computers, the problems of tedious manual operations and repeated notifications during the screen projection process are solved, and efficient and accurate screen projection operations are achieved.
Patent Information
- Application Number
- CN202110438417.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-22
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2041-04-22
AI Technical Summary
During the screen projection process between mobile phones and car computers, manual operations are cumbersome and repeated notifications lead to waste of resources. How to efficiently output projection messages and reduce resource waste?
By obtaining the current device ID and historical search table, it is determined whether the time difference is greater than the preset threshold, the device ID is added to the screen projection candidate table, and devices are filtered according to signal strength to reduce duplicate notifications.
The number of repeated notifications of screen projection messages is reduced, resources are saved, and the efficiency and accuracy of screen projection are improved.
Smart Images

Figure CN115237360B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of automobiles, and in particular to a screen projection information processing method and device, an equipment and a storage medium. BACKGROUND
[0002] Automobiles are important means of transportation in modern society. When using an automobile to travel, a user often projects a mobile phone onto a car machine to better use the applications on the mobile phone, increase the safety and convenience of driving, and take advantage of the large screen and convenient operation of the car machine. For example, the car machine can display the interface of the navigation software in the mobile phone more clearly, or use the music, telephone and other applications in the mobile phone more conveniently after screen projection.
[0003] The mobile phone can search for the signal of the car machine by using Bluetooth and the like, and then establish a connection with the car machine for screen projection. At present, the process of manually projecting the mobile phone onto the car machine is relatively cumbersome, and automatically outputting a screen projection message after detecting the Bluetooth signal of the car machine will cause repeated notifications and waste of resources. Therefore, how to efficiently output the screen projection message while reducing resource waste to guide the user to project the screen has become a problem to be solved. SUMMARY
[0004] One purpose of the present application is to provide a screen projection information processing method, device, equipment and storage medium. In a case where it is determined that the time difference between the current searched device and the search time of the historical searched device is greater than a preset threshold, the device identifier is added to the screen projection candidate table, and the screen projection message is output. The advantage is that in the case where the rejection screen projection instruction for the device is received, and the signal of the device is searched again within a short time (less than the preset threshold), the screen projection message can not be output repeatedly, the number of repeated notifications is reduced, and the occupied resources are saved.
[0005] Another purpose of the present application is to provide a screen projection information processing method, system, device and storage medium. The device identifier of the device with a signal strength greater than a signal strength threshold is added to the screen projection candidate table. The advantage is that the searched device is screened by using the signal strength, and only the device identifier of the device with strong signal strength is stored, so that the storage resources can be saved.
[0006] Another purpose of the present application is to provide a screen projection information processing method, device, equipment and storage medium. The target screen projection object is determined from the screen projection candidate table according to the matching result of the historical screen projection table and the screen projection candidate table. The advantage is that the target screen projection object can be automatically determined from the screen projection candidate table, the screen projection message is output, manual operation is avoided, the time required for outputting the screen projection message is reduced, and the screen projection efficiency is improved.
[0007] To achieve the above object, in a first aspect, the application provides a screen projection information processing method, comprising the following steps: obtaining a first device identifier of a first device searched currently and a first search time; obtaining a historical search table, the historical search table being used for recording device identifiers of devices searched historically; judging whether a second device identifier matched with the first device identifier exists in the historical search table; if yes, obtaining a second search time corresponding to the second device identifier, and judging whether a time difference between the first search time and the second search time is greater than a preset threshold; if yes, adding the first device identifier of the first device to a screen projection candidate table; determining a target screen projection device according to the screen projection candidate table, and outputting a screen projection message.
[0008] In a second aspect, the application provides a screen projection information processing device, comprising: a communication unit; a display unit; one or more processors, the display unit, the communication unit and the one or more processors being communicatively connected; and a memory configured to store instructions, when the instructions are executed by the one or more processors, causing the one or more processors to perform steps, the steps comprising: receiving a first device identifier of a first device searched currently by the communication unit and a first search time; obtaining a historical search table, the historical search table being used for recording device identifiers of devices searched historically; judging whether a second device identifier matched with the first device identifier exists in the historical search table; if yes, obtaining a second search time corresponding to the second device identifier, and judging whether a time difference between the first search time and the second search time is greater than a preset threshold; if yes, adding the first device identifier of the first device to a screen projection candidate table; determining a target screen projection device according to the screen projection candidate table, and outputting a screen projection message to the display unit.
[0009] In a third aspect, the application provides a screen projection information processing device, comprising: a first obtaining unit, used for obtaining a first device identifier of a first device searched currently and a first search time; a second obtaining unit, used for obtaining a historical search table, the historical search table being used for recording device identifiers of devices searched historically; a first judging unit, used for judging whether a second device identifier matched with the first device identifier exists in the historical search table; a third obtaining unit, used for obtaining a second search time corresponding to the second device identifier if the second device identifier exists; a second judging unit, used for judging whether a time difference between the first search time and the second search time is greater than a preset threshold; an adding unit, used for adding the first device identifier of the first device to a screen projection candidate table if the time difference is greater than the preset threshold; a determining unit, used for determining a target screen projection device according to the screen projection candidate table; and an output unit, used for outputting a screen projection message.
[0010] In a fourth aspect, the present application provides an electronic device, comprising: a memory, a processor, wherein the memory and the processor are communicatively connected with each other; wherein the memory stores program instructions; the program instructions are executed by the processor, so that the processor executes the steps of the method described in the first aspect and any possible implementation manner of the first aspect.
[0011] In a fifth aspect, the present application provides a computer readable storage medium, the computer readable storage medium stores a computer program; when the computer program runs on one or more processors, executes the steps of the method described in the first aspect and any possible implementation manner of the first aspect.
[0012] In a sixth aspect, the present application provides a computer program product comprising instructions which, when the computer program product is run on a terminal device, cause the terminal device to execute the steps of the method described in the first aspect and any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF DRAWINGS
[0013] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly introduced as follows.
[0014] Figure 1 A flow chart of a screen projection information processing method provided by the embodiments of the present application;
[0015] Figure 2 A scene schematic diagram provided by the embodiments of the present application;
[0016] Figure 3 A schematic diagram of a screen projection information processing device provided by the embodiments of the present application;
[0017] Figure 4 A schematic diagram of another screen projection information processing device provided by the embodiments of the present application;
[0018] Figure 5 A schematic diagram of an electronic device provided by the embodiments of the present application. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solutions and advantages of the present application more clear, the present application will be further described in detail with reference to the drawings.
[0020] The terms "first" and "second" and the like in the description, claims, and drawings of the application merely mean different objects and do not imply a particular order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device, etc. including a series of steps or units is not limited to the listed steps or units, but can optionally include other steps or units not listed or inherent to the process, method, product, or device, etc.
[0021] Reference herein to "embodiments" means that a particular feature, structure, or characteristic described in connection with an embodiment can be included in at least one embodiment of the application. The presence of the above phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it necessarily exclude alternative or additional embodiments. Those skilled in the art will understand explicitly and implicitly that the embodiments described herein can be combined with other embodiments.
[0022] In this application, "at least one" means one or more, "multiple" means two or more, "at least two" means two or three and more, and "and / or" is used to describe the relationship between the associated objects, indicating that there can be three relationships, for example, "A and / or B" can mean: only A, only B, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects. "At least one of the following" or similar expressions means any combination of these items. For example, at least one of a, b, or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c".
[0023] The embodiments of the present application provide a screen projection information processing method, system, device and storage medium. In order to more clearly describe the scheme of the present application, the method provided by the present application will be introduced below in combination with the drawings. Please refer to Figure 1 , Figure 1 A flowchart of a screen projection information processing method provided by an embodiment of the present application. As shown in Figure 1 , the method includes but is not limited to the following steps:
[0024] Step 110, obtaining a first device identifier of a first device searched currently and a first search time;
[0025] The step can be performed by a terminal of a user, which can be a mobile phone, a tablet computer, or the like portable device. The first device can be a car machine of a vehicle, or the like. The terminal and the first device both open Bluetooth functions, the terminal searches for a Bluetooth signal existing around, and the first device sends a Bluetooth signal and can be searched. The first device can be any one of one or more than one device searched by the terminal. After the terminal searches for the Bluetooth signal sent by the first device, a first device identifier of the first device is acquired, and a first search time when the first device is searched is acquired. Specifically, the first device identifier can be a Bluetooth device name of the first device. For example, if a brand of a vehicle where the first device is located is A brand, the first device identifier can be "CAR A".
[0026] In step 120, a historical search table is acquired, which is used to record device identifiers of devices searched historically.
[0027] The terminal has recorded and stored the device identifiers of the devices searched historically in the historical search table before a current time. After the first device is searched currently, the historical search table is acquired. As shown in Table 1, the historical search table can record the device identifiers of the devices searched historically by the terminal and corresponding historical search times.
[0028] Table 1
[0029] Device ID Historical search time Device ID 1 Historical search time 1 Device ID 2 Historical search time 2 "CAR B" 20201103 8:25:41 … …
[0030] In step 130, it is judged whether a second device identifier matching the first device identifier exists in the historical search table.
[0031] The terminal compares the device identifier in the historical search table with the first device identifier, judges whether the second device identifier matching the first device identifier exists in the historical search table, that is, judges whether the first device is a device searched historically by the terminal.
[0032] In step 140, if the second device identifier exists, a second search time corresponding to the second device identifier is acquired, and it is judged whether a time difference between the first search time and the second search time is greater than a preset threshold.
[0033] Specifically, when the second device identifier matching the first device identifier exists in the historical search table, the second search time corresponding to the second device identifier is obtained from the historical search table. Then, it is judged whether the time difference between the first search time and the second search time is greater than a preset threshold. That is, when it is determined that the first device is a device searched by the terminal in history, the time when the first device is searched by the terminal currently and in history is compared, and it is judged whether the time difference is greater than the preset threshold. The preset threshold can be preset, and the preset threshold can be set to be greater than the search time interval of the terminal for signal searching. For example, the terminal searches every 10 seconds, the search time interval is 10 seconds, the preset threshold can be set to 5 minutes, or can be set to other values greater than 10 seconds, which is not limited in the present application.
[0034] Further, after obtaining the second search time corresponding to the second device identifier, the second search time corresponding to the second device identifier in the historical search table can also be updated to the first search time. That is, the historical search time corresponding to the device identifier in the historical search table is updated, so as to ensure that the historical search time saved in the historical search table is the time when the device is searched last time from the current time. In this way, when the terminal and the device both start Bluetooth, if the terminal searches the signal of the device at a fixed time interval, the time difference between the search time when the device is searched this time and the search time when the device is searched last time is a fixed value, which is equal to the search time interval of the terminal, and the time difference is less than the preset threshold, the device identifier of the device will not be added to the screen projection candidate table, that is, the terminal will not output the screen projection message for indicating projecting the display interface of the terminal to the display of the device. Or, the time difference between the search time when the device is searched this time and the search time when the device is searched last time is not a fixed value, but the time difference is still less than or equal to the preset threshold, so the device identifier of the device will not be added to the screen projection candidate table, that is, the terminal will not output the screen projection message. In this way, if the screen projection message has been output once and the rejection of screen projection instruction is received when driving, the terminal searches the signal emitted by the device again after a certain time interval (the time interval is less than the preset threshold), and the screen projection message is no longer output repeatedly, thereby reducing the number of repeated output of the notification and saving the occupied resources.
[0035] Step 150, if greater, the first device identifier of the first device is added to the screen projection candidate table;
[0036] Specifically, if the time difference between the first search time and the second search time is greater than the preset threshold, the first device identifier of the first device is added to the screen projection candidate table. The screen projection candidate table is used to record the device identifier of the candidate device, and one of the candidate devices can be projected to display the display interface of the terminal.
[0037] Furthermore, if the time difference between the first search time and the second search time is less than or equal to a preset threshold, the first device identifier of the first device will not be added to the screen projection candidate table, that is, for the same device that is searched multiple times in a short period of time (within the preset threshold duration), repeated output of screen projection messages for the device is avoided.
[0038] Optionally, if there is no second device identifier that matches the first device identifier in the historical search table, that is, the first device is searched for the first time by the terminal, then the first device identifier of the first device can also be added to the screen projection candidate table as a candidate device. If the terminal only searches for the signal of the first device, then the device can be determined as the target screen projection device, and the screen projection message can be automatically output, so that after the vehicle-related signal is searched for the first time, the screen projection message can be automatically output to avoid manual operation, so as to guide the user to perform screen projection, thereby improving the efficiency of screen projection. Furthermore, when the first device identifier is added to the screen projection candidate table, the historical search table can also be updated, that is, the first device identifier and the search time for the first device are added to the historical search table, and the search record of the first device is saved, so as to avoid repeated output of the screen projection message for the device when the device is searched again within a short time (within the preset threshold time).
[0039] Optionally, adding the first device identifier of the first device to the screen projection candidate table includes: obtaining the signal strength of the first device; when the signal strength is greater than the signal strength threshold, adding the first device identifier and the signal strength to the screen projection candidate table. The greater the signal strength of the first device, the closer it is to the location of the terminal. At this time, the greater the possibility that the first device will become a candidate device, and the first device identifier and signal strength can be added to the screen projection candidate table. When the signal strength of the first device is small (less than or equal to the signal strength threshold), the first device identifier and signal strength are not added to the screen projection candidate table, that is, the device identifier and signal strength information of the device with smaller signal strength do not need to be saved, which can save resources. Among them, the signal strength threshold can be pre-set according to the distance. For example, the signal strength value of the device within 2 meters of the terminal can be determined as the signal strength threshold, and this application does not impose any restrictions on this. As shown in Table 2, the device identifier and corresponding signal strength of the candidate device can be recorded in the screen projection candidate table, wherein the signal strength recorded in the table is greater than the signal strength threshold.
[0040] Table 2
[0041] Device ID Signal strength Device ID 3 Signal strength 1 Device ID 4 Signal strength 2 "CAR C" -60 dBm … …
[0042] Step 160: Determine the target screen projection device according to the screen projection candidate table and output the screen projection message.
[0043] The screen projection message output by the terminal is used to indicate whether the display interface of the terminal is allowed to be projected to the target screen projection device, and thus the target screen projection device is one of the candidate devices, and the target screen projection device can be determined from the screen projection candidate table.
[0044] Specifically, the process of determining the target screen projection device according to the screen projection candidate table can include: obtaining a historical screen projection table, the historical screen projection table being used to record device identifiers of historical screen projection devices.
[0045] The screen projection candidate table is matched with the historical screen projection table, that is, it is determined whether the candidate devices in the screen projection candidate table are historical screen projection devices.
[0046] In a case where there is a matched device identifier between the screen projection candidate table and the historical screen projection table, the target screen projection device is determined according to the number of the matched device identifiers, that is, there is a historical screen projection device in the candidate devices, and thus the device is more likely to be the target screen projection device, and the number of the historical screen projection devices in the candidate devices can be one or more than one, and the manner of determining the target screen projection device can be different in the case where the number is different.
[0047] Further, the process of determining the target screen projection device according to the number of the matched device identifiers can include:
[0048] In a case where the number of the matched device identifiers is one, the device indicated by the matched device identifier is determined as the target screen projection device, that is, there is only one historical screen projection device in the candidate devices, and thus the device is more likely to be the target screen projection device, and the device can be determined as the target screen projection device. In this way, when a plurality of device signals are searched, the only historical screen projection device in the plurality of devices can be determined as the target screen projection device, that is, the vehicle of the user can be accurately found among the vehicles corresponding to the plurality of devices (the vehicle of the user is more likely to be the historical screen projection device compared with other vehicles), the user is quickly guided to perform screen projection, and the screen projection efficiency is improved.
[0049] In a case where the number of the matched device identifiers is greater than 1, a device indicated by a third device identifier in the matched device identifiers is determined as the target screen projection device, the third device identifier being a device identifier corresponding to the largest historical screen projection time in the matched device identifiers. That is, in a case where there is more than one device in the candidate devices that has a historical screen projection, the device with the largest historical screen projection time, i.e., the device that has performed screen projection most recently, is more likely to be the target screen projection device, and the device can be determined as the target screen projection device. In this way, in a case where signals of multiple devices are searched, and at least two devices in the multiple devices have historical screen projection, the device with the most recent historical screen projection can be determined as the target screen projection device, i.e., in the multiple devices, the vehicle corresponding to the device with the most recent historical screen projection can be accurately found (compared with a vehicle corresponding to a device that is not frequently used recently, the vehicle corresponding to the device that is used recently has a historical screen projection time closer to the current time), and the user is quickly guided to perform screen projection, thereby improving the screen projection efficiency. As shown in Table 3, the historical screen projection table can record the device identifier of the device with historical screen projection and the corresponding historical screen projection time.
[0050] Table 3
[0051] Device ID Historical casting time Device ID 5 Historical casting time 1 Device ID 6 Historical casting time 2 "CAR D" 20201103 8:26:05 … …
[0052] Optionally, in a case where the screen projection candidate table and the historical screen projection table do not have matched device identifiers, a device indicated by a fourth device identifier in the screen projection candidate table is determined as the target screen projection device, the fourth device identifier being a device identifier corresponding to the largest signal strength in the screen projection candidate table. That is, in a case where none of the candidate devices has historical screen projection, the device with the largest signal strength is generally closest to the location of the terminal, and the device is more likely to be the target screen projection device, and the device can be determined as the target screen projection device.
[0053] After the target screen projection device is determined and the screen projection message is output, the terminal receives a feedback instruction of the user for the screen projection message, and the feedback instruction includes one of an allow screen projection instruction and a reject screen projection instruction. If the allow screen projection instruction is received, the terminal projects the display interface to the target screen projection device, and updates the historical screen projection table. The process of updating the historical screen projection table can include: in a case where the device identifier of the target screen projection device does not exist in the historical screen projection table, the device identifier of the target screen projection device and the screen projection time are added to the historical screen projection table. In a case where the device identifier of the target screen projection device exists in the historical screen projection table, the historical screen projection time corresponding to the device identifier of the target screen projection device in the historical screen projection table is updated to the screen projection time. In this way, the historical screen projection time recorded in the historical screen projection table is always the latest, thereby improving the accuracy of finding the target screen projection device, and further improving the screen projection efficiency. If the reject screen projection instruction is received, the terminal closes the screen projection message display window and does not perform screen projection.
[0054] The following takes a specific application scenario as an example to introduce the specific process of implementing the screen projection information processing method provided in the application embodiment.
[0055] After the user gets into the car and ignites, the car machine in the user's car is turned on with Bluetooth, and the user's terminal is also turned on with Bluetooth. The terminal automatically starts searching for the Bluetooth signals emitted by the car machines around. In this scenario, the car machines of other cars around the user's car also emit Bluetooth signals. Then, the terminal acquires the device identifier M of the car machine of the user's car and the device identifier N of the car machine of the other car, as well as the current time P, and acquires the historical search table to determine whether there are device identifiers matching the device identifiers M and N in the historical search table. Next, in different situations, corresponding operations are performed. The following introduces two possible situations:
[0056] 1) In one situation, there is the device identifier M in the historical search table, but there is no device identifier N. Then, the historical search time Q corresponding to the device identifier M is acquired, and it is determined whether the time difference between the current time P and the historical search time Q is greater than a preset threshold. If it is determined that the time difference is greater than the preset threshold, the device identifier M is added to the screen projection candidate table, and the device identifier N is also added to the screen projection candidate table. Then, the historical screen projection table is acquired, and the screen projection candidate table is matched with the historical screen projection table. It is determined that there is a device identifier matching the device identifier M in the historical screen projection table, but there is no device identifier matching the device identifier N. Then, the device indicated by the device identifier M, i.e., the car machine in the user's car, is determined as the target screen projection device, and a screen projection message is output to prompt the user whether to allow the display interface of the terminal to be projected to the display of the car machine in the user's car.
[0057] 2) In another situation, there are both the device identifier M and the device identifier N in the historical search table. Then, the historical search time Q corresponding to the device identifier M and the historical search time R corresponding to the device identifier N are acquired. It is determined whether the time difference between the current time and the historical search time is greater than a preset threshold. If it is determined that the time difference between P and Q is greater than the preset threshold, and the time difference between P and R is also greater than the preset threshold, the device identifier M is added to the screen projection candidate table, and the device identifier N is also added to the screen projection candidate table. The historical screen projection table is acquired, and the screen projection candidate table is matched with the historical screen projection table. It is determined that there are device identifiers matching the device identifiers M and N in the historical screen projection table. Then, the historical screen projection times corresponding to the device identifiers M and N are acquired. If the historical screen projection time corresponding to the device identifier M is greater, the device indicated by the device identifier M, i.e., the car machine in the user's car, is determined as the target screen projection device, and a screen projection message is output to prompt the user whether to allow the display interface of the terminal to be projected to the display of the car machine in the user's car.
[0058] In the above two situations or other possible situations, the terminal determines the target screen projection device and outputs a screen projection message to guide the user to cast the screen. However, if a screen projection rejection instruction is received, it means that the user does not need to project the terminal's display interface to the car display in his car at this time. Then, after the terminal searches for the signal of the device again at a fixed search time interval, it determines that this device is a historically searched device, obtains the time when the device was searched this time and the time when the device was searched historically, and determines whether the time difference between the two is greater than a preset threshold. Since this time difference is equal to the search time interval, it can be determined that the time difference is less than the preset interval, and this device will not be added to the screen projection candidate table, so the screen projection message for the device will not be output. That is, after receiving the screen projection rejection instruction for the previously output screen projection message, the terminal continuously searches for the signal sent by the car display in the car. Implementing the screen projection information processing method provided in the embodiment of the present application can reduce the number of times screen projection messages are output and save occupied resources. As Figure 2 As shown, Figure 2 This is a schematic diagram of the scenario, where terminal 210 is the user's terminal and device 220 is the target projection device.
[0059] See also Figure 3 , Figure 3 This is a schematic diagram of a screen projection information processing device provided in an embodiment of the present application. Figure 3 The screen projection information processing device shown includes: a communication unit 310; a display unit 320; one or more processors 330, and a memory 340, wherein the memory 340 is configured to store instructions. When the instructions are executed by the processor 330, the processor 330 executes steps, and the steps include: receiving the first device identifier and the first search time of the first device currently searched by the communication unit 310; obtaining a historical search table, the historical search table being used to record the device identifiers of devices historically searched; judging whether there is a second device identifier matching the first device identifier in the historical search table; if so, obtaining the second search time corresponding to the second device identifier; judging whether the time difference between the first search time and the second search time is greater than a preset threshold; if the time difference is greater than the preset threshold, adding the first device identifier of the first device to the screen projection candidate table; determining the target screen projection device according to the screen projection candidate table; and outputting a screen projection message to the display unit 320.
[0060] See also Figure 4 , Figure 4 This is a schematic diagram of another screen projection information processing device provided in an embodiment of the present application. Figure 4 The screen projection information processing device shown includes:
[0061] A first acquiring unit 11 is configured to acquire a first device identifier and a first search time of a currently searched first device;
[0062] A second acquiring unit 12 is configured to acquire a history search table, wherein the history search table is configured to record device identifiers of devices that have been historically searched;
[0063] A first determining unit 13 is configured to determine whether a second device identifier matching the first device identifier exists in the history search table;
[0064] A third acquiring unit 14 is configured to acquire a second search time corresponding to the second device identifier, if any;
[0065] A second determining unit 15 is configured to determine whether a time difference between the first search time and the second search time is greater than a preset threshold;
[0066] an adding unit 16, configured to add the first device identifier of the first device to a screen projection candidate list if the time difference is greater than a preset threshold;
[0067] A determination unit 17 is configured to determine a target screen projection device according to the screen projection candidate table;
[0068] The output unit 18 is used to output the screen projection message.
[0069] See also Figure 5 , Figure 5 A schematic diagram of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the electronic device includes: a display screen, a touch sensor, a memory, one or more processors, multiple applications, and one or more programs; wherein the one or more programs are stored in the memory 510; wherein the memory 510 and the processor 520 are communicatively connected to each other; the memory 510 can be used to store software programs and modules, and the processor 520 executes the software programs and modules stored in the memory 510 to perform the following operations. Figure 1 as well as Figure 2 The steps of the method shown. The memory 510 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device (such as audio data, a phone book, etc.), etc. The processor 520 is the control center of the electronic device, which uses various interfaces and lines to connect various parts of the entire electronic device, and executes software programs and / or modules stored in the memory 510, and calls data stored in the memory 510, to perform operations such as Figure 1 as well as Figure 2The steps of the method shown are performed to monitor the electronic device as a whole. Optionally, the processor 520 may include one or more processing units; preferably, the processor 520 may integrate an application processor and a modem processor, wherein the application processor primarily processes the operating system, user interface, and application programs, and the modem processor primarily processes wireless communications. It is understood that the modem processor may not be integrated into the processor 520. Although not shown, the electronic device may also include an input unit, a display unit, a power supply, etc., which will not be detailed here.
[0070] The present application also provides a computer-readable storage medium having a computer program stored therein. When the computer program is run on one or more processors, the computer program can be used to implement Figure 1 as well as Figure 2 The steps of the screen projection information processing method shown.
[0071] According to the method provided in the embodiment of the present application, the present application also provides a computer program product, which includes: computer program code, when the computer program code is run on a computer, it enables the computer to execute the steps of the method in the aforementioned method embodiment.
[0072] As used in the embodiments, the term “when” may be interpreted to mean “if” or “after” or “in response to determining” or “in response to detecting”, depending on the context. Similarly, the phrases “upon determining” or “if (stated condition or event) is detected” may be interpreted to mean “if determining” or “in response to determining” or “upon detecting (stated condition or event)” or “in response to detecting (stated condition or event)”, depending on the context.
[0073] In the embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium, (such as a floppy disk, hard disk, tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state hard disk), etc.
[0074] Those skilled in the art will appreciate that all or part of the process steps in the method embodiments described above can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps of the various method embodiments described above. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
Claims
1. A method for processing screen projection information, characterized in that: The method comprises: Obtaining a first device identifier and a first search time of a first device currently searched; Obtain a historical search table, wherein the historical search table is used to record device identifiers of devices that have been historically searched; Determine whether there is a second device identifier matching the first device identifier in the history search table; If so, obtaining a second search time corresponding to the second device identifier, and determining whether a time difference between the first search time and the second search time is greater than a preset threshold, where the preset threshold is greater than a search time interval for the terminal to perform signal search; If it is greater than, the first device identifier of the first device is added to the screen projection candidate table; if the time difference is less than or equal to the preset threshold, the first device identifier will not be added to the screen projection candidate table; Determine the target screen projection device according to the screen projection candidate table and output the screen projection message.
2. The method according to claim 1, wherein After acquiring the second search time corresponding to the second device identifier, the method further includes: The second search time corresponding to the second device identifier in the historical search table is updated to the first search time.
3. The method according to claim 2, wherein After determining whether there is a second device identifier matching the first device identifier in the history search table, the method further includes: If it does not exist, the first device identifier of the first device is added to the screen projection candidate table.
4. The method according to claim 1 or 3, wherein: The adding the first device identifier of the first device to the screen projection candidate table includes: Obtaining the signal strength of the first device; When it is determined that the signal strength is greater than the signal strength threshold, the first device identifier and the signal strength are added to the screen projection candidate table.
5. The method according to any one of claims 1 to 3, wherein The determining the target screen projection device according to the screen projection candidate table includes: Obtain a historical screen projection table, where the historical screen projection table is used to record the device identifier of the device that has historically projected the screen; Matching the screen projection candidate table with the historical screen projection table; In the case where there are matching device identifiers between the screen projection candidate table and the historical screen projection table, the target screen projection device is determined based on the number of matching device identifiers.
6. The method according to claim 5, wherein The determining the target screen projection device according to the number of the matched device identifiers includes: When the number of the matched device identifiers is 1, the device indicated by the matched device identifier is determined as the target screen projection device; When the number of the matched device identifiers is greater than 1, the device indicated by the third device identifier among the matched device identifiers is determined as the target screen projection device, and the third device identifier is the device identifier with the largest corresponding historical screen projection time among the matched device identifiers.
7. The method according to claim 5, wherein The method further comprises: When it is determined that there is no matching device identifier between the screen projection candidate table and the historical screen projection table, the device indicated by the fourth device identifier in the screen projection candidate table is determined as the target screen projection device, and the fourth device identifier is the device identifier with the largest corresponding signal strength in the screen projection candidate table.
8. A screen projection information processing device, characterized in that: include: Communication unit; Display unit; One or more processors, the display unit and the communication unit are communicatively connected to the one or more processors; as well as a memory configured to store instructions that, when executed by the one or more processors, cause the one or more processors to perform steps comprising: receiving a first device identifier and a first search time of a first device currently searched by the communication unit; Obtain a historical search table, wherein the historical search table is used to record device identifiers of devices that have been historically searched; Determine whether there is a second device identifier matching the first device identifier in the history search table; If so, obtaining a second search time corresponding to the second device identifier, and determining whether a time difference between the first search time and the second search time is greater than a preset threshold, where the preset threshold is greater than a search time interval for the terminal to perform signal search; If it is greater than, the first device identifier of the first device is added to the screen projection candidate table; if the time difference is less than or equal to the preset threshold, the first device identifier will not be added to the screen projection candidate table; Determine the target screen projection device according to the screen projection candidate table, and output the screen projection message to the display unit.
9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other; wherein the memory stores program instructions; and when the program instructions are executed by the processor, the processor executes the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program; when the computer program is run on one or more processors, the steps of the method according to any one of claims 1 to 7 are executed.
Citation Information
Patent Citations
Screen projection pairing method and device, storage medium and screen projector
CN110321093A
Screen projection method and device
CN112242980A