Screen projection method and device, storage medium, display equipment and system
By automatically acquiring terminal device information and installing a screen mirroring program on the display device, and utilizing wireless communication and configuration data stored on the server, the screen mirroring problems of poor user experience and unstable connection are solved, thus simplifying the process and improving the user-friendly screen mirroring experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2026-03-27
AI Technical Summary
In existing technologies, users need to download screen mirroring software and perform settings when they perform screen mirroring for the first time. This process is cumbersome, results in a poor user experience, and also suffers from unstable connections and latency issues.
By setting a universal interface on the display device, the device information of the terminal device is automatically obtained and the screen mirroring program is installed. The screen mirroring process is simplified and the user experience is improved by using the wireless communication module and the screen mirroring configuration data stored on the server.
It enables automatic installation and data transfer of the screen mirroring program without manual user intervention, improving screen mirroring stability and user-friendliness, simplifying the process, and enhancing data transfer efficiency.
Smart Images

Figure CN121742783A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of screen projection, and in particular to a screen projection method, device, storage medium, display device and system. BACKGROUND
[0002] In related technologies, a user can project a video played by a terminal device to a display device with a larger screen size through a screen projection function, so as to watch the video of the terminal device on the display device and obtain a better visual experience.
[0003] When a user performs a screen projection operation for the first time, the user often needs to download screen projection software, install the software and perform screen projection settings, which is tedious and has a poor user experience. SUMMARY
[0004] Embodiments of the present application provide a screen projection method, device, storage medium, display device and system, which can simplify the screen projection process and improve the user experience.
[0005] In a first aspect, embodiments of the present application provide a screen projection method applied to a display device, the display device comprising a general interface, and the method comprising the following steps:
[0006] In response to terminal device access information of the general interface, obtaining device information of the accessed terminal device;
[0007] Obtaining screen projection configuration data corresponding to the device information; the screen projection configuration data comprising screen projection program data;
[0008] According to the screen projection program data, installing a screen projection program on the terminal device, so that the terminal device generates screen projection data through the screen projection program;
[0009] Obtaining the screen projection data;
[0010] Displaying a screen projection picture according to the screen projection data.
[0011] Optionally, before obtaining the device information of the accessed terminal device, the method comprises:
[0012] Sending authorization prompt data to the terminal device, so that the terminal device displays authorization prompt information according to the authorization prompt data; the authorization prompt information is used to prompt the terminal device to grant the display device information obtaining permission and program installation permission;
[0013] Obtaining the device information of the accessed terminal device comprises:
[0014] In response to an authorization instruction of the terminal device to the information obtaining permission, obtaining the device information of the accessed terminal device;
[0015] installing a screen projection program according to the screen projection program data, comprising:
[0016] installing a screen projection program according to the screen projection program data in response to the authorization instruction of the terminal device on the program installation permission.
[0017] In the embodiments of the present application, the terminal device is prompted to display authorization prompt information by sending authorization prompt data to the terminal device, and the information acquisition permission and the program installation permission in the authorization prompt information are authorized, so that the display device can obtain device information from the terminal device after obtaining the information acquisition permission, and the display device can automatically install a screen projection program on the terminal device after obtaining the program installation permission, thereby simplifying the screen projection process and improving the user-friendliness and user experience of screen projection while ensuring the security of the terminal device.
[0018] Optionally, the display device further comprises a wireless communication module, and the obtaining of the screen projection data comprises:
[0019] when the general interface is not disconnected from the terminal device, the screen projection data is obtained through the general interface;
[0020] when the general interface is disconnected from the terminal device, a wireless communication connection is established between the display device and the terminal device through the wireless communication module, and the screen projection data is obtained through the wireless communication connection.
[0021] In the embodiments of the present application, two screen projection data transmission modes are provided. When the general interface and the terminal device are not disconnected, the screen projection data is obtained through the general interface, which can stably and quickly transmit the screen projection data, avoid connection instability, disconnection or delay caused by network problems, and improve the screen projection data transmission efficiency and user experience. When the general interface and the terminal device are disconnected, a wireless communication connection is established between the display device and the terminal device through the wireless communication module, and the screen projection data is obtained through the wireless communication connection. The terminal device does not need to be connected to the general interface by wire, and the use is more convenient. The embodiments of the present application can meet the screen projection needs of different scenes and improve the user experience.
[0022] Optionally, the establishment of the wireless communication connection between the display device and the terminal device through the wireless communication module comprises:
[0023] obtaining a wireless network identifier and a wireless network password of a wireless network to which the display device is connected, and generating a network connection instruction according to the wireless network identifier and the wireless network password;
[0024] sending the network connection instruction to the terminal device, so that the terminal device connects the wireless network according to the wireless network identifier and the wireless network password in response to the network connection instruction.
[0025] In the embodiment of the present application, the wireless network identifier and the wireless network password of the wireless network to which the display device is connected are acquired, the network connection instruction is generated according to the wireless network identifier and the wireless network password, the network connection instruction is sent to the terminal device, and the terminal device automatically performs the connection of the wireless network in response to the network connection instruction, so that the user does not need to manually input and connect the wireless network, the wireless network connection efficiency is improved, and the projection data transmission efficiency is improved after the wireless network is connected.
[0026] Optionally, the display device is in communication connection with a server, and the server stores projection configuration data of different terminal devices.
[0027] The device information is sent to the server, so that the server confirms the projection configuration data corresponding to the device information according to the device information.
[0028] The projection configuration data corresponding to the terminal device returned by the server is received.
[0029] In the embodiment of the present application, the device information is sent to the server, and the corresponding projection configuration data is acquired from the database by the server according to the device information, the memory pressure of the display device is reduced by storing and matching the projection configuration data by the server, the server can provide more computing resources to centrally manage and update the projection configuration data, the projection configuration data is more suitable for the configuration of the terminal device, and the projection stability is improved.
[0030] In a second aspect, the embodiment of the present application provides a projection device applied to a display device, the display device comprising a universal interface, and the device comprising:
[0031] A device information acquisition module is configured to acquire device information of the terminal device connected to the universal interface.
[0032] A configuration data acquisition module is configured to acquire projection configuration data corresponding to the device information, and the projection configuration data comprises projection program data.
[0033] A projection program installation module is configured to install a projection program on the terminal device according to the projection program data, so that the terminal device generates projection data through the projection program.
[0034] A projection data acquisition module is configured to acquire the projection data.
[0035] A projection picture display module is configured to display a projection picture according to the projection data.
[0036] In a third aspect, the embodiments of the present application provide a computer readable storage medium, which stores a computer program. The computer program is executed by a processor to implement the steps of the screen projection method according to any one of the above aspects.
[0037] In a fourth aspect, the embodiments of the present application provide a display device, which comprises a general interface, a memory, a processor, and a computer program stored in the memory and executable by the processor.
[0038] The processor implements the steps of the screen projection method according to any one of the above aspects when executing the computer program.
[0039] In a fifth aspect, the embodiments of the present application provide a screen projection system, which comprises the display device and the terminal device according to the above aspects. The terminal device is connected to the display device through the general interface.
[0040] Optionally, the screen projection system further comprises a server, which is connected to the display device in communication. The server receives the device information sent by the display device, confirms the screen projection configuration data corresponding to the device information according to the device information, and sends the screen projection configuration data to the display device.
[0041] In the embodiments of the present application, the device information of the terminal device accessed in response to the terminal device access operation of the general interface is acquired, the screen projection configuration data corresponding to the device information is acquired, the screen projection program data in the screen projection configuration data is used to install the screen projection program in the terminal device, the terminal device generates the screen projection data through the screen projection program, the screen projection data of the terminal device is acquired through the general interface when the general interface is connected to the terminal device, and the screen projection picture is displayed according to the screen projection data. The present application only needs to connect the terminal device to the general interface, and can automatically perform the screen projection program download, the screen projection data transmission, and the screen projection picture display. The screen projection setting and operation are not needed, the screen projection process is simplified, and the user's screen projection experience is improved.
[0042] For better understanding and implementation, the present application is described in detail below with reference to the drawings. BRIEF DESCRIPTION OF DRAWINGS
[0043] Figure 1 A flowchart of a screen projection method in an embodiment of the present application;
[0044] Figure 2 A flowchart of a screen projection method in another embodiment of the present application;
[0045] Figure 3 A flowchart of step S120 in an embodiment of the present application;
[0046] Figure 4 A structural schematic diagram of a screen projection device in an embodiment of the present application;
[0047] Figure 5 FIG. 1 is a structural schematic diagram of a display device according to an embodiment of the present application;
[0048] Figure 6 FIG. 2 is a structural schematic diagram of a projection system according to an embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical scheme and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the drawings.
[0050] It should be clear that the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the scope of protection of the present application.
[0051] The terms used in the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "an" and "the" used in the present application and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein means and includes any or all possible combinations of one or more associated listed items.
[0052] The following description refers to the accompanying drawings. In the following description, identical or similar elements in different drawings are designated with the same reference numerals, unless otherwise indicated. The implementations described in the following exemplary embodiments are not meant to represent all implementations consistent with the present application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the present application as detailed in the appended claims. In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are used only to distinguish similar objects, and do not necessarily indicate a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.
[0053] In addition, in the description of the present application, "several" means two or more, unless otherwise stated. "And / or" describes the corresponding relationship between the associated objects, which means that there can be three relationships, for example, A and / or B can mean that A exists alone, A and B exist together, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after it.
[0054] Screen projection refers to projecting the screen of a terminal device such as a smart phone or a computer onto a display, a television or other display device for display, and watching the video of the terminal device on the display device to obtain a better visual experience.
[0055] When the terminal device performs a screen projection operation for the first time, or when the terminal device is connected to an external display device for the first time, such as a hotel television or a conference tablet, the user often needs to download and install a screen projection software, and perform a setting operation on the screen projection software to realize screen projection of the terminal device, which is complicated and not user-friendly, and the user experience is poor.
[0056] In addition, due to different performances of different terminal devices, there may be certain compatibility problems between the terminal device and the screen projection software, which can easily cause unstable connection, disconnection or delay in the screen projection process, and affect the user experience.
[0057] Therefore, in view of the above problems, the embodiments of the present application provide a screen projection method, which can be applied in the scenario that a terminal device is connected to a general interface of a display device for the first time. When the terminal device is connected to the general interface, device information of the terminal device is automatically acquired, and screen projection program data corresponding to the device information is acquired. The screen projection program is automatically installed on the terminal device according to the screen projection program data. The installed screen projection program is matched with the terminal device, which can avoid unstable connection, disconnection or delay in the screen projection process caused by incompatibility, improve the stability of screen projection, and automatically acquire screen projection data of the terminal device through the general interface. The screen projection data is used to display a screen projection picture on the display device, without the need for screen projection setting and operation, simplifying the screen projection process and improving the user experience.
[0058] The screen projection method of the present application can be applied on a display device to realize screen projection of a terminal device onto the display device, so as to watch the screen of the terminal device on the display device and improve the visual experience.
[0059] The display device of the present application can have various implementation forms, for example, it can be a television, a laser projection device, a display, an electronic whiteboard, a smart interactive tablet, etc. The specific type of the display device is not limited in the embodiments of the present application
[0060] The display device of the embodiments of the present application includes a general interface, which can be connected to a terminal device to be projected through a data line. The general interface can be used to realize transmission of data between the display device and the terminal device.
[0061] Preferably, in order to improve the data transmission efficiency, the universal interface can adopt a high-speed parallel interface, the high-speed parallel interface includes a plurality of data channels for transmitting data independently, and the plurality of data channels can perform data transmission in parallel, so as to reduce the waiting time of data transmission, reduce the delay, and improve the data transmission efficiency. The high-speed parallel interface can adopt a common high-speed parallel interface such as PCI Express (PCIe), SATA, USB 3.x, and the like.
[0062] Referring to Figure 1 , the method comprises:
[0063] S110: In response to terminal device access information of the universal interface, obtaining device information of the accessed terminal device;
[0064] The terminal device access information can be information generated when the terminal device is connected to the universal interface, and the terminal device access information is used to determine that the terminal device is connected to the universal interface.
[0065] Specifically, a monitoring program can be set on the display device, the monitoring program is used to monitor the connection state of the universal interface in real time, and the monitoring program generates the terminal device access information when the universal interface has the terminal device access, so that the display device can respond in time when the universal interface has the terminal device access.
[0066] Preferably, the monitoring program can be set in the system directory of the display device, and the monitoring program is set to start automatically after the display device starts, so as to facilitate the monitoring program to detect the terminal access of the universal interface in time.
[0067] Specifically, the start of the monitoring program can be realized by modifying the system file of the display device. When the system of the display device is an Android system, the start of the monitoring program can be realized by modifying the init.rc file of the Android system.
[0068] The device information can include the manufacturer, product ID, serial number, system type and version, and the like of the terminal device.
[0069] S120: Obtain the screen projection configuration data corresponding to the device information; the screen projection configuration data includes screen projection program data;
[0070] The screen projection configuration data is used to configure the screen projection environment of the terminal device, so that the terminal device can realize the screen projection operation.
[0071] The screen projection program data is used to install the screen projection program on the terminal device, and the screen projection program data can include a screen projection program installation package and the like.
[0072] S130: installing a screen projection program according to the screen projection program data on the terminal device, so that the terminal device generates screen projection data through the screen projection program;
[0073] The screen projection program can be used to collect screen data of the terminal device and generate screen projection data. The screen projection program can be a program used by the terminal device when performing screen projection. The screen projection program can include a screen projection application and / or a driver.
[0074] S140: obtaining the screen projection data;
[0075] Specifically, the screen projection data of the terminal device can be obtained through a general interface.
[0076] S150: displaying a screen projection picture according to the screen projection data.
[0077] The screen projection picture can be a picture displayed on the screen of the terminal device.
[0078] In the embodiments of the present application, by responding to the terminal device access operation of the general interface, the device information of the accessed terminal device is obtained, the screen projection configuration data corresponding to the device information is obtained, the screen projection program data in the screen projection configuration data is used to install a screen projection program on the terminal device, the terminal device generates screen projection data through the screen projection program, when the general interface is connected with the terminal device, the screen projection data of the terminal device is obtained through the general interface, and a screen projection picture is displayed according to the screen projection data. The present application only needs to connect the terminal device to the general interface, and can automatically perform screen projection program downloading, screen projection data transmission, and display of the picture of the terminal device on the display device. No screen projection setting and operation are needed, the screen projection process is simplified, and the user's screen projection experience is improved.
[0079] In step S110, when the device information is obtained, the terminal device needs to grant the display device the information obtaining permission, so that the display device can obtain the device information.
[0080] Specifically, in one embodiment, before obtaining the device information of the accessed terminal device, the following steps are included:
[0081] authorization prompt data is sent to the terminal device, so that the terminal device displays authorization prompt information according to the authorization prompt data. The authorization prompt information is used to prompt the terminal device to grant the display device the information obtaining permission and the program installation permission.
[0082] The device information of the accessed terminal device is obtained, including:
[0083] The device information of the accessed terminal device is obtained in response to the authorization instruction of the terminal device to the information obtaining permission.
[0084] In step S130, the terminal device installs the screen projection program according to the screen projection program data, including:
[0085] In response to the authorization instruction of the terminal device on the program installation permission, the screen projection program is installed on the terminal device according to the screen projection program data.
[0086] The information acquisition permission is used for the display device to access the terminal device and acquire the device information of the terminal device.
[0087] The program installation permission is used for the display device to install the screen projection program on the terminal device.
[0088] The authorization instruction of the information acquisition permission is used to authorize the display device to acquire the device information of the terminal device. When not authorized, the display device cannot acquire the device information of the terminal device, thereby ensuring the operation safety of the terminal device. The user can generate the authorization instruction of the information acquisition permission by performing a confirmation operation on the information acquisition permission in the authorization prompt information.
[0089] The authorization instruction of the program installation permission is used to authorize the display device to install the screen projection program on the terminal device. After being authorized, the display device can install the screen projection program on the terminal device by using a pre-stored installation tool. For example, when the terminal device is an Android device, the installation tool can be an ADB (Android debug bridge) tool and an am (application manager) tool used for program installation of the Android device.
[0090] When not authorized, the display device cannot install the screen projection program on the terminal device, thereby ensuring the operation safety of the terminal device. The user can generate the authorization instruction of the program installation permission by performing a confirmation operation on the program installation permission in the authorization prompt information.
[0091] In the embodiments of the present application, the terminal device displays the authorization prompt information by sending the authorization prompt data to the terminal device. The information acquisition permission and the program installation permission in the authorization prompt information are authorized, so that the display device can acquire the device information from the terminal device after obtaining the information acquisition permission, and the display device can automatically install the screen projection program on the terminal device after obtaining the program installation permission. Therefore, the screen projection process can be simplified, and the user friendliness and user experience of screen projection can be improved while ensuring the safety of the terminal device.
[0092] In one embodiment, the display device further includes a wireless communication module, and the obtaining of the screen projection data includes:
[0093] The screen projection data is obtained through the universal interface when the universal interface is not disconnected from the terminal device.
[0094] When the universal interface is disconnected from the terminal device, a wireless communication connection is established between the display device and the terminal device through the wireless communication module, and the screen projection data is acquired through the wireless communication connection.
[0095] The wireless communication module can be a commonly used wireless communication module such as a wireless network module or a Bluetooth module. Through the wireless communication module, the display device and the terminal device can establish a wireless communication connection through a wireless communication connection mode such as a wireless network or Bluetooth.
[0096] Specifically, whether the universal interface is disconnected from the terminal device can be determined by continuously monitoring the connection state of the universal interface through a monitoring program.
[0097] Preferably, when the screen projection data is acquired through the wireless network, the transmission efficiency of the screen projection data can be dynamically adjusted according to the network environment and data load of the current wireless network, so as to avoid data loss and ensure the stability and reliability of the screen projection data transmission. The corresponding relationship among the network environment, the data load, and the transmission efficiency can be set according to actual application scenarios.
[0098] In the embodiments of the present application, two screen projection data transmission modes are provided. When the universal interface and the terminal device are not disconnected, the screen projection data can be stably and quickly transmitted through the universal interface, avoiding connection instability, disconnection, or delay caused by network problems, and improving the screen projection data transmission efficiency and user experience. When the universal interface and the terminal device are disconnected, a wireless communication connection is established between the display device and the terminal device through the wireless communication module, and the screen projection data is acquired through the wireless communication connection. The terminal device does not need to be wiredly connected to the universal interface, and the use is more convenient. The embodiments of the present application can meet the screen projection needs of different scenarios and improve the user experience.
[0099] As shown in FIG. 10, in one embodiment, the wireless communication connection established between the display device and the terminal device through the wireless communication module includes the following steps. Figure 2 S210: acquiring a wireless network identifier and a wireless network password of a wireless network to which the display device is connected, and generating a network connection instruction according to the wireless network identifier and the wireless network password;
[0100] S220: sending the network connection instruction to the terminal device, so that the terminal device connects the wireless network according to the wireless network identifier and the wireless network password in response to the network connection instruction.
[0101] The network connection instruction can be an instruction generated based on a Wi-Fi protocol stack.
[0102] The Wi-Fi protocol stack includes a physical layer (PHY), a media access control layer (MAC), a logical link control layer (LLC), a subnetwork access protocol extension layer (SNAP), an encryption and security protocol layer, an authentication protocol layer, a network layer, a transport layer, and an application layer. The physical layer defines different wireless transmission rates and frequency bands (such as 2.4 GHz and 5 GHz), is responsible for the transmission and reception of wireless signals, and includes functions such as modulation and demodulation, encoding and decoding, signal amplification and filtering, etc. The media access control layer is used to manage how devices access the wireless medium, is responsible for the transmission and reception of data packets, and includes functions such as frame assembly and disassembly, collision avoidance and channel access control (such as CSMA / CA, carrier sense multiple access / collision avoidance), and management of power management (power saving mode) and association / authentication processes. The logical link control layer provides logical communication and link management, is responsible for the establishment, maintenance, and termination of data links, and handles frame ordering and flow control. The subnetwork access protocol extension layer is used to provide bridging between the MAC layer and the network layer, and supports multiple network protocols; the encryption and security protocol layer includes WEP (Wired Equivalent Privacy) protocol, WPA (Wi-Fi Protected Access) protocol, WPA2 protocol, and WPA3 protocol; the authentication protocol layer includes 802.1X authentication protocol and EAP (Extensible Authentication Protocol) authentication framework; the network layer is responsible for routing data packets from the source address to the destination address, and typically uses IP protocol (IPv4 or IPv6); the transport layer is responsible for providing reliable data transmission between the network layer and the application layer, and the main protocols are TCP (Transmission Control Protocol) and UDP (User Datagram Protocol); the application layer includes all high-level network application programs such as HTTP, FTP, SMTP, etc., and is responsible for handling user requests and the final transmission of data. The Wi-Fi protocol stack ensures that different devices can communicate effectively through the Wi-Fi network through the cooperation of each layer, and works seamlessly together.
[0103] In the embodiments of the present application, the wireless network to which the terminal device is connected is the wireless network to which the display device is connected. After obtaining the wireless network identifier and the corresponding wireless network password of the display device, a network connection instruction is generated based on the Wi-Fi protocol stack, so as to configure the network connection of the terminal device according to the network connection instruction. The wireless network identifier and the wireless network password of the wireless network to which the display device is connected can be obtained by reading the network connection information of the display device.
[0104] The wireless network identifier corresponds to the wireless network one-to-one, and the wireless network identifier can be used to determine the wireless network to be connected. The wireless network identifier can be the name of the wireless network.
[0105] In this embodiment, by obtaining the wireless network identifier and password of the wireless network to which the display device is connected, a network connection command is generated based on the wireless network identifier and password, and the network connection command is sent to the terminal device. This allows the terminal device to automatically connect to the wireless network in response to the network connection command, eliminating the need for the user to manually input and connect to the wireless network, thus improving the efficiency of wireless network connection. At the same time, after connecting to the wireless network, the screen projection data is obtained based on the wireless network, improving the efficiency of screen projection data transmission.
[0106] In one embodiment, the screen mirroring configuration data may also include communication protocol information.
[0107] Communication protocol information is used to determine the target communication protocol for data exchange and communication between the display device and the terminal device. The target communication protocol can be a communication protocol that matches the terminal device, obtained based on device information, thereby avoiding abnormal issues such as unstable screen projection caused by device incompatibility and improving the user experience.
[0108] The communication protocol information may include information such as the name or identifier of the target communication protocol. Based on the communication protocol information, the terminal device and the display device can determine the target communication protocol for data exchange and communication between the display device and the terminal device.
[0109] In step S130, the projection data can be data encoded using the target communication protocol in the communication protocol information.
[0110] In step S150, after obtaining the projection data, the projection data can be decoded according to the target communication protocol, and then the projection screen can be displayed according to the decoded projection data.
[0111] In this embodiment, by obtaining a communication protocol that matches the terminal device based on device information, screen mirroring abnormalities caused by incompatibility are avoided, thereby improving the user experience.
[0112] To save memory space on display devices, the screen mirroring configuration data can be data pre-stored on a server.
[0113] like Figure 3 As shown, in one embodiment, the display device is communicatively connected to a server, and the server stores screen projection configuration data for different terminal devices. Obtaining the screen projection configuration data corresponding to the device information includes:
[0114] S121: The device information is sent to the server so that the server can confirm the screen projection configuration data corresponding to the device information based on the device information;
[0115] S122: Receive the screen projection configuration data corresponding to the terminal device returned by the server.
[0116] The screen projection configuration data can be obtained by the server through a crawler technology from data collected from the Internet and pre-stored in the database. For example, for the screen projection program data, the data published by the program publishing website can be obtained through a crawler technology.
[0117] In the embodiments of the present application, the device information is sent to the server, and the server obtains the corresponding screen projection configuration data from the database according to the device information. By using the server to store and match the screen projection configuration data, the memory pressure of the display device can be reduced, and the server can provide more computing resources for centralized management and update iteration of the screen projection configuration data, so that the screen projection configuration data is more suitable for the configuration of the terminal device, and the screen projection stability is improved.
[0118] After the server crawls multiple screen projection configuration data of the same terminal device, the multiple data can be preliminarily screened by using data processing tools such as Apache Hive, Apache Pig or Apache Storm, and the screen projection configuration data most suitable for the terminal device can be selected from the screened multiple data through a pre-trained data screening model. By discarding useless data, the amount of data in the database is reduced. The data screening model can be constructed based on existing machine learning algorithms such as scikit-learn and TensorFlow, and the model obtained after pre-training a large number of screen projection configuration data samples.
[0119] Optionally, the database can be a distributed database, and the data in the distributed database has multiple independent database nodes. The multiple database nodes can be arranged on different sub-servers. In the embodiments of the present application, the server receiving the device information and returning the screen projection configuration data can be a master server, and the master server can obtain the screen projection configuration data through the sub-servers to improve the availability. The data and query load can be distributed among multiple nodes to optimize performance and response time, and the load is more balanced.
[0120] Optionally, the storage and management of the screen projection configuration data can be performed by a relational database management system.
[0121] The relational database management system can store the screen projection configuration data in the form of tables, each table is composed of multiple rows and columns, each row represents a data item, and each column represents an attribute of the data item, thereby structuring the data to facilitate querying and operating the data through a structured query language (SQL). The relational database management system can support various constraints (such as primary keys, foreign keys, unique constraints, etc.), support atomicity, consistency, isolation, and durability (ACID properties), ensure the accuracy and consistency of the data, and support an indexing mechanism, so that the data can be quickly located through the index to improve the query efficiency. The relational database management system can use a two-phase commit protocol (2PC) or a multi-version concurrency control (MVCC) to ensure the consistency and atomicity of transactions in the database system, and to improve the concurrency performance in a single database system, thereby meeting the database transaction management requirements of different scenarios.
[0122] Optionally, the screen projection configuration data in the database can be periodically backed up in the target storage area of the server, and the backup period can be set according to application requirements.
[0123] During backup, cold backup, hot backup, snapshot technology, or other data backup methods can be used for data backup.
[0124] By periodically backing up the screen projection configuration data in the database, data recovery can be performed in a timely manner when the database abnormally occurs, and data loss in the database can be prevented.
[0125] In the embodiment of the application, when the screen projection configuration data is acquired, a query statement for querying the screen projection configuration data corresponding to the device information is generated through the SQL language, and the database is queried through the query statement to acquire the screen projection configuration data corresponding to the device information.
[0126] Optionally, the server can use HikariCP or other high-performance connection pool libraries to speed up the connection with the database, reduce the connection waiting time, and improve the data acquisition efficiency.
[0127] Optionally, data encryption, access permission control, SQL injection protection, and other methods can be used to improve the security of the data in the database.
[0128] SQL injection is an attack in which an attacker inserts malicious SQL code into a user input field of a web application to deceive the database into executing these commands, thereby stealing, tampering with, or destroying sensitive data. SQL injection protection can include strict verification and filtering of inputs, limiting database access and operation capabilities, and other protection measures.
[0129] Optionally, a database performance analyzer such as SolarWinds Database Performance Analyzer can be used to monitor the performance of the database. The database performance analyzer can be used to monitor, diagnose and resolve database performance problems. For example, the database performance analyzer can focus on the longest waiting queries, drill down into the most problematic parts of the queries, and provide suggestions (including code) to improve the queries. The database performance data monitored by the database performance analyzer can be displayed on a user interface, so that the user can understand the database performance data and optimize the query performance in a timely manner, and improve the database use experience.
[0130] As shown in Figure 4 The application further provides a screen projection device applied to a display device, and the device comprises:
[0131] The device information acquisition module 110 is configured to acquire device information of the terminal device accessed in response to terminal device access information of a universal interface.
[0132] The configuration data acquisition module 120 is configured to acquire screen projection configuration data corresponding to the device information; the screen projection configuration data comprises screen projection program data.
[0133] The screen projection program installation module 130 is configured to install a screen projection program on the terminal device according to the screen projection program data, so that the terminal device generates screen projection data through the screen projection program.
[0134] The screen projection data acquisition module 140 is configured to acquire the screen projection data.
[0135] The screen projection picture display module 150 is configured to display a screen projection picture according to the screen projection data.
[0136] Optionally, the screen projection device comprises:
[0137] The authorization prompt information display module is configured to send authorization prompt data to the terminal device, so that the terminal device displays authorization prompt information according to the authorization prompt data; the authorization prompt information is used to prompt the terminal device to grant the display device information acquisition permission and the program installation permission.
[0138] The device information acquisition module 110 comprises:
[0139] The device information acquisition unit is configured to acquire device information of the terminal device accessed in response to an authorization instruction of the terminal device to the information acquisition permission.
[0140] The screen projection program installation module 130 comprises:
[0141] The program installation unit is configured to install a screen projection program on the terminal device according to the screen projection program data in response to an authorization instruction of the terminal device on the program installation permission.
[0142] Optionally, the display device further comprises a wireless communication module, and the screen projection data acquisition module 140 comprises:
[0143] The first screen projection data acquisition unit is configured to acquire the screen projection data through the universal interface when the universal interface is not disconnected from the terminal device.
[0144] The second screen projection data acquisition unit is configured to establish a wireless communication connection with the terminal device through the wireless communication module when the universal interface is disconnected from the terminal device, and acquire the screen projection data through the wireless communication connection.
[0145] Optionally, the second screen projection data acquisition unit comprises:
[0146] The network connection instruction sending unit is configured to acquire a wireless network identifier and a wireless network password of a wireless network to which the display device is connected, and generate a network connection instruction according to the wireless network identifier and the wireless network password.
[0147] The wireless network connection unit is configured to send the network connection instruction to the terminal device, so that the terminal device connects the wireless network according to the wireless network identifier and the wireless network password in response to the network connection instruction.
[0148] Optionally, the display device is in communication connection with a server, and the server stores screen projection configuration data of different terminal devices.
[0149] The device information sending unit is configured to send the device information to the server, so that the server confirms the screen projection configuration data corresponding to the device information according to the device information.
[0150] The screen projection configuration data receiving unit is configured to receive the screen projection configuration data corresponding to the terminal device returned by the server.
[0151] It should be noted that the screen projection device provided in the above embodiments is only used as an example to illustrate the division of the above functional modules in the execution of the screen projection method. In actual applications, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the screen projection device provided in the above embodiments and the screen projection method of the above embodiments belong to the same concept, and the implementation process is detailed in the method embodiments. Therefore, it is not repeated here.
[0152] The embodiment of the present application further provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the steps of the screen projection method according to any one of the above.
[0153] The embodiment of the present application can adopt the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program codes. The computer readable storage medium includes permanent and non-permanent, removable and non-removable media, and can be realized by any method or technology. Information storage. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
[0154] As shown in Figure 5 The embodiment of the present application further provides a display device 200, which comprises a general interface 210, a memory 220, a processor 230 and a computer program stored in the memory 220 and executable by the processor 230.
[0155] The processor 230 executes the computer program to realize the steps of the screen projection method according to any one of the above.
[0156] The memory 220 includes read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.
[0157] The processor 230 is the control unit of the display device 200. It connects to various components of the display device 200 via various interfaces and lines. By running or executing programs or modules stored in the memory 220, and by calling data stored in the memory 220, it performs various functions of the display device 200 and processes data. For example, when the processor 230 executes the computer program stored in the memory 220, it implements all or part of the steps of the screen projection method described in this application embodiment; or it implements all or part of the functions of the screen projection device. The processor 230 can be composed of integrated circuits, such as a single packaged integrated circuit, or multiple integrated circuits with the same or different functions, including combinations of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips.
[0158] like Figure 6 As shown, this application embodiment also provides a screen projection system 300, including a display device 200 and a terminal device 310 as described above, wherein the terminal device 310 is connected to the display device 200 through a universal interface.
[0159] Optionally, the screen projection system further includes a server 320, which is communicatively connected to the display device 200. The server 320 is used to receive device information sent by the display device 200, confirm the screen projection configuration data corresponding to the device information based on the device information, and send the screen projection configuration data to the display device 200.
[0160] It should also be noted that the terms "comprising," "including," or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises a... " does not, without more constraints, exclude the existence of additional identical elements in the process, method, article, or apparatus that comprises the element.
[0161] The above embodiments of the present application are only used to illustrate the technical solutions of the present application and not intended to limit the present application. Although the present application is illustrated in detail, those skilled in the art should understand that the present application can make various modifications and changes without departing from the spirit and scope of the present application. Any modification, equivalent replacement, improvement, and the like made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A screen projection method, characterized in that, When applied to a display device, which includes a universal interface, the method includes the following steps: In response to the terminal device access information of the general interface, obtain the device information of the accessing terminal device; Obtain the screen mirroring configuration data corresponding to the device information; the screen mirroring configuration data includes screen mirroring program data; Install a screen mirroring program on the terminal device according to the screen mirroring program data, so that the terminal device generates screen mirroring data through the screen mirroring program; Obtain the screen projection data; The screen projection data displays the projected image.
2. The screen projection method according to claim 1, characterized in that, Before obtaining the device information of the accessing terminal device, the following steps are included: The terminal device is sent authorization prompt data, which causes the terminal device to display authorization prompt information based on the authorization prompt data; the authorization prompt information is used to prompt the terminal device to grant the display device information access permission and program installation permission; Obtain device information of the accessing terminal devices, including: In response to the terminal device's authorization instruction for obtaining the information, the device information of the accessing terminal device is obtained; Installing a screen mirroring program on the terminal device according to the screen mirroring program data includes: In response to the terminal device's authorization instruction for the program installation permission, the screen mirroring program is installed on the terminal device according to the screen mirroring program data.
3. The screen projection method according to claim 1, characterized in that, The display device further includes a wireless communication module, and acquiring the projection data includes: When the general interface is not disconnected from the terminal device, the screen projection data is obtained through the general interface; When the general interface is disconnected from the terminal device, a wireless communication connection is established with the terminal device through the wireless communication module, and the screen projection data is obtained through the wireless communication connection.
4. The screen projection method according to claim 3, characterized in that, Establishing a wireless communication connection with the terminal device via the wireless communication module includes: Obtain the wireless network identifier and wireless network password of the wireless network to which the display device is connected, and generate a network connection command based on the wireless network identifier and the wireless network password; The network connection command is sent to the terminal device, causing the terminal device to respond to the network connection command and connect to the wireless network according to the wireless network identifier and the wireless network password.
5. The screen projection method according to claim 1, characterized in that, The display device is communicatively connected to the server, and the server stores screen projection configuration data for different terminal devices. Obtaining the screen projection configuration data corresponding to the device information includes: The device information is sent to the server so that the server can confirm the screen projection configuration data corresponding to the device information. Receive the screen mirroring configuration data corresponding to the terminal device returned by the server.
6. A screen projection device, characterized in that, Applied to a display device, the display device including a universal interface, the device includes: The device information acquisition module is used to acquire the device information of the accessed terminal device in response to the terminal device access information of the general interface; The configuration data acquisition module is used to acquire screen projection configuration data corresponding to the device information; the screen projection configuration data includes screen projection program data. A screen mirroring program installation module is used to install a screen mirroring program on the terminal device according to the screen mirroring program data, so that the terminal device generates screen mirroring data through the screen mirroring program; A screen projection data acquisition module is used to acquire the screen projection data; The screen projection display module is used to display the screen projection image based on the screen projection data.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, it implements the steps of the screen projection method as described in any one of claims 1-5.
8. A display device, characterized in that, It includes a general interface, memory, processor, and a computer program stored in the memory and executable by the processor; When the processor executes the computer program, it implements the steps of the screen projection method as described in any one of claims 1-5.
9. A screen projection system, characterized in that, It includes the display device and terminal device as described in claim 8, wherein the terminal device is connected to the display device via a universal interface.
10. The screen projection system according to claim 9, characterized in that, It also includes a server, which is communicatively connected to the display device; the server is used to receive device information sent by the display device, confirm the projection configuration data corresponding to the device information according to the device information, and send the projection configuration data to the display device.