Equipment screen projection method and device, equipment, storage medium and product
By collecting status information from nodes such as device identification, projection condition detection, video transmission chip status, and audio/video channel status in real time during the projection process, the problem of low fault detection efficiency in existing technologies is solved, and rapid fault location and efficient fault detection are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING CO WHEELS TECH CO LTD
- Filing Date
- 2024-10-30
- Publication Date
- 2026-05-01
AI Technical Summary
Existing vehicle projection technology lacks awareness of system status during fault handling, resulting in low fault detection efficiency, especially in the analysis of complex problems where fault location is difficult.
By collecting status information from nodes such as device identification, projection condition detection, video transmission chip status, and audio/video channel status in real time during the projection process, a device projection method and device are provided, including a device identification and projection condition detection module, a chip power-on and communication establishment module, an audio/video channel opening module, and a fault location module, thereby improving the operator's awareness of the system status.
By collecting status information at each node of the screen projection process, faults can be quickly located, improving the efficiency of fault detection, enhancing operators' awareness of the system status, and simplifying the troubleshooting process.
Smart Images

Figure CN121957518A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle technology, and in particular to a device projection method, apparatus, equipment, storage medium, and product. Background Technology
[0002] Car screen mirroring technology is a technology that projects information such as in-car navigation, music, and videos onto the car's display screen. This technology allows users to display content from their mobile phones, tablets, and other devices on the car's screen, making it more convenient to access information while driving.
[0003] In existing technologies, if problems occur during screen mirroring between vehicles and peripherals, a fault ticket is typically generated and then forwarded to the relevant base support personnel for further analysis. Base personnel need to carefully read the ticket content, analyze the described symptoms and phenomena, and, combining historical data and experience, gradually deduce the possible causes of the problem. After identifying the problem, base support personnel need to pinpoint the specific module or subsystem, and technicians need to use various tools and system logs to gradually narrow down the scope of the problem until the root cause is found.
[0004] Therefore, in existing screen projection methods, operators lack awareness of the system status, and fault handling requires operators to analyze and identify each work order one by one. In particular, the analysis of complex problems may involve multiple modules and systems, making fault location difficult and thus affecting the efficiency of fault detection. Summary of the Invention
[0005] This invention provides a device projection method, apparatus, equipment, storage medium, and product to improve the efficiency of fault detection when a fault occurs during the projection process.
[0006] According to one aspect of the present invention, a device screen mirroring method is provided, comprising:
[0007] In response to the peripheral device insertion information, the device identification and projection condition detection of the projection peripheral device are performed, and the device identification result and projection condition detection result are determined.
[0008] In response to the screen projection condition detection pass information, the video transmission chip is powered on and communication is established with the screen projection peripheral to determine the current chip status information of the video transmission chip;
[0009] In response to the handshake success message with the projection peripheral, the audio and video channel is opened, and the current audio and video channel status information is determined;
[0010] The audio and video data of the projection peripheral are obtained through the audio and video channel and then projected for playback.
[0011] Furthermore, the device identification result, the screen projection condition detection result, the current chip status information, and the current audio / video channel status information are aggregated into a designated detection application.
[0012] Furthermore, the method also includes:
[0013] If screen mirroring fails, the set detection application will locate the fault based on the device identification result, the screen mirroring condition detection result, the current chip status information, and the current audio and video channel status information.
[0014] Furthermore, in response to the peripheral insertion information, device identification of the projection peripheral is performed, including:
[0015] In response to peripheral insertion information, the device identifier and projection capability information of the projection peripheral are identified;
[0016] The device identifier and the screen projection capability information are used as the device identification result.
[0017] Further, determining the current chip status information of the video transmission chip includes:
[0018] Obtain the power-on status code and communication status code of the video transmission chip;
[0019] The power-on status code and the communication status code are determined as the current chip status information of the video transmission chip.
[0020] Furthermore, the audio and video channels are opened, and the current audio and video channel status information is determined, including:
[0021] Determine the image resolution and number of audio channels corresponding to the projection peripheral;
[0022] Based on the image resolution and the number of audio channels, the corresponding video and audio channels are opened, and the opening status of the video and audio channels is determined as the current audio and video channel status information.
[0023] According to another aspect of the present invention, a device projection apparatus is provided, comprising:
[0024] The device identification and projection condition detection module is used to identify the projection peripheral in response to the peripheral insertion information and perform projection condition detection, and determine the device identification result and the projection condition detection result.
[0025] The chip power-on and communication establishment module is used to power on the video transmission chip and establish communication with the projection peripheral in response to the screen projection condition detection pass information, and to determine the current chip status information of the video transmission chip.
[0026] The audio and video channel opening module is used to open the audio and video channel in response to the handshake success information with the projection peripheral, and to determine the current audio and video channel status information.
[0027] The screen casting playback module is used to acquire the audio and video data of the screen casting peripheral through the audio and video channel and perform screen casting playback.
[0028] Optionally, the device identification result, the screen projection condition detection result, the current chip status information, and the current audio / video channel status information are aggregated into a designated detection application.
[0029] Optionally, the device further includes a fault location module, used to locate the fault by means of the set detection application based on the device identification result, the screen projection condition detection result, the current chip status information and the current audio and video channel status information if the screen projection fails.
[0030] Optionally, the device identification and projection condition detection module is also used for:
[0031] In response to peripheral insertion information, the device identifier and projection capability information of the projection peripheral are identified;
[0032] The device identifier and the screen projection capability information are used as the device identification result.
[0033] Optionally, the chip power-on and communication establishment module is also used for:
[0034] Obtain the power-on status code and communication status code of the video transmission chip;
[0035] The power-on status code and the communication status code are determined as the current chip status information of the video transmission chip.
[0036] Optionally, the audio / video channel opening module is also used for:
[0037] Determine the image resolution and number of audio channels corresponding to the projection peripheral;
[0038] Based on the image resolution and the number of audio channels, the corresponding video and audio channels are opened, and the opening status of the video and audio channels is determined as the current audio and video channel status information.
[0039] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0040] At least one processor; and
[0041] A memory communicatively connected to the at least one processor; wherein,
[0042] The memory stores a computer program that can be executed by the at least one processor, which is then executed by the at least one processor to enable the at least one processor to perform the device projection method according to any embodiment of the present invention.
[0043] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions, the computer instructions being configured to cause a processor to execute and implement the device projection method according to any embodiment of the present invention.
[0044] According to another aspect of the present invention, a computer program product is provided, the computer program product comprising a computer program / instructions, which, when executed by a processor, implement the steps of the device projection method described in any embodiment of the present invention.
[0045] The device projection method disclosed in this invention first identifies the projection peripheral and performs projection condition detection in response to peripheral insertion information, determining the device identification result and projection condition detection result. Then, in response to projection condition detection success information, it powers on the video transmission chip and establishes communication with the projection peripheral, determining the current chip status information. Next, in response to a successful handshake with the projection peripheral, it opens the audio / video channel and determines the current audio / video channel status information. Finally, it acquires the audio / video data from the projection peripheral through the audio / video channel and performs projection playback. This device projection method, by collecting status information at each node of the projection process, improves the operator's perception of the system status. If a fault occurs, the information collected at each node can assist in fault location, improving fault detection efficiency.
[0046] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0047] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0048] Figure 1 This is a flowchart of a device screen projection method provided according to Embodiment 1 of the present invention;
[0049] Figure 2 This is a schematic diagram of a device projection process according to Embodiment 1 of the present invention;
[0050] Figure 3 This is a flowchart of a device screen projection method provided in Embodiment 2 of the present invention;
[0051] Figure 4 This is a schematic diagram of the structure of a device projection device according to Embodiment 3 of the present invention;
[0052] Figure 5 This is a schematic diagram of the structure of an electronic device that implements the device projection method of Embodiment 4 of the present invention. Detailed Implementation
[0053] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0054] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0055] Example 1
[0056] Figure 1 This is a flowchart of a device projection method provided in Embodiment 1 of the present invention. This embodiment is applicable to situations where the content of other devices is displayed on a car screen using projection technology. This method can be executed by a device projection device, which can be implemented in hardware and / or software and can be configured in an electronic device. Figure 1 As shown, the method includes:
[0057] S110. In response to the peripheral insertion information, the peripheral device for screen projection is identified and screen projection conditions are detected, and the device identification result and screen projection conditions detection result are determined.
[0058] In this context, a projection peripheral is an external vehicle device that shares the vehicle's screen using projection technology. Examples of projection peripherals include a Switch game console, VR devices, and mobile phones. Peripheral insertion information refers to the information indicating that the vehicle has detected the projection peripheral being inserted into its designated interface.
[0059] In this embodiment, when it is necessary to project the content from the projection peripheral onto the vehicle screen, the projection peripheral can be inserted into a pre-defined interface on the vehicle. When the vehicle detects that a peripheral has been inserted into the corresponding interface, it can initiate device identification of the projection peripheral based on the acquired peripheral insertion information and check whether the projection conditions are met. The device identification results and projection condition detection results can be collected and recorded through real-time monitoring of the nodes.
[0060] Furthermore, if the device fails to recognize the projection peripheral after it is inserted, or if the projection conditions are not met, the projection operation will be stopped, and the projection peripheral will only be charged.
[0061] S120: In response to the screen projection condition detection pass information, power on the video transmission chip and establish communication with the screen projection peripheral to determine the current chip status information of the video transmission chip.
[0062] The video transmission chip is used for audio and video data transmission in the vehicle, supporting data transmission between the projection peripheral and the vehicle during screen mirroring. The current chip status information indicates the current status of the video transmission chip, including whether it has successfully powered on and whether communication has been successfully established.
[0063] In this embodiment, if the projection peripheral successfully connects to the vehicle and the projection conditions are met, the video transmission chip can be powered on. After power-on, the video transmission chip can establish communication with the projection peripheral, communicating image resolution and audio channel count via a communication circuit. During this process, the status of the video transmission chip can be monitored in real time, and the current chip status information can be collected and recorded.
[0064] S130. In response to the handshake success message with the projection peripheral, open the audio and video channel and determine the current audio and video channel status information.
[0065] The handshake, performed after the communication circuit is established but before information transmission begins, is used to agree on parameters such as transmission rate, alphabet, parity check, interrupt procedures, and other protocol characteristics. The audio / video channel refers to the transmission channel for audio and video data involved in screen projection between the projection peripheral and the vehicle, including both audio and video channels. Audio / video channel status information indicates the open status of the audio / video channels, including whether they were successfully opened and the number of channels.
[0066] In this embodiment, after the vehicle and the projection peripheral successfully establish a handshake, the projection peripheral can communicate with the video transmission chip and report the resolution and number of audio channels. Then, it opens the corresponding audio and video channels based on the reported resolution and number of audio channels. During this process, the status of the audio and video channels can be monitored in real time, and the real-time audio and video channel status information can be collected and recorded.
[0067] Furthermore, if the vehicle fails to establish a handshake with the projection peripheral, the error information can be reported to the vehicle's infotainment system via the vehicle's QNX AIS Server. QNX AIS Server is an automotive service that processes data from various input sources and transmits this data to the appropriate applications or services.
[0068] S140. Obtain audio and video data from the projection peripheral through the audio and video channel, and perform projection playback.
[0069] The audio and video data includes the relevant audio and video data that need to be shared via screen mirroring.
[0070] In this embodiment, if the vehicle and the projection peripheral successfully communicate and the audio / video channel is successfully opened, the audio and video data of the projection peripheral can be projected onto the vehicle's screen through the audio / video channel.
[0071] Optionally, the device identification results, screen projection condition detection results, current chip status information, and current audio / video channel status information are aggregated into a set detection application.
[0072] Among them, the detection application is an application software for vehicle fault detection.
[0073] Specifically, at each stage of the device projection process, after acquiring the device recognition results, projection condition detection results, current chip status information, and current audio / video channel status information, the data can be aggregated into a designated testing application for analysis. For example, the designated testing application could be EOL (End of Line) testing. EOL applications are functional testing tools used before automotive electronic products leave the production line. They utilize dedicated EOL equipment infused with EOL testing software. Before the product leaves the production line, it is connected to this equipment for testing to confirm its functionality. By aggregating the device recognition results, projection condition detection results, current chip status information, and current audio / video channel status information acquired at each stage of the projection process using the EOL application, fault analysis during the projection process can be easily performed.
[0074] Furthermore, this method also includes: if screen mirroring fails, fault location is performed by setting a detection application based on the device recognition result, screen mirroring condition detection result, current chip status information and current audio and video channel status information.
[0075] Specifically, if screen mirroring fails, the detection application can quickly locate the fault node based on the summarized device identification results, screen mirroring condition detection results, current chip status information, and current audio / video channel status information. For example, if the device identification results and screen mirroring condition detection results are both normal, but the current chip status information shows a power-on failure message, the fault can be located at the point where the video transmission chip is powered on, and the problem can be solved by repairing the video transmission chip.
[0076] Figure 2 This is a schematic diagram of a device projection process provided by an embodiment of the present invention. As shown in the figure, the projection process begins with device identification and projection condition detection of the projection peripheral. If device identification or projection condition detection fails, only the projection peripheral is charged. If both succeed, the video transmission chip is powered on. After powering on, the video transmission chip establishes communication and performs a handshake with the projection peripheral. If the handshake fails and the resolution and number of audio channels cannot be communicated with the peripheral, an error reason is reported. If the handshake succeeds, the audio and video channels are opened, and projection playback is performed through the audio and video channels. In the above process, device identification results and projection condition detection results are collected at the device identification and projection condition detection nodes, respectively. At the node where the video transmission chip is powered on and establishes communication with the projection peripheral, the current chip status information of the video transmission chip is collected. After the handshake with the projection peripheral, the current audio and video channel status information is collected. By collecting information corresponding to each node, operators can grasp the status of each node of the projection process, monitor the projection process, and help troubleshoot problems when they occur, thus improving detection efficiency.
[0077] The device projection method provided in this invention first identifies the projection peripheral and performs projection condition detection in response to peripheral insertion information, determining the device identification result and projection condition detection result. Then, in response to projection condition detection pass information, it powers on the video transmission chip and establishes communication with the projection peripheral, determining the current chip status information. Next, in response to handshake success information with the projection peripheral, it opens the audio / video channel and determines the current audio / video channel status information. Finally, it acquires the audio / video data from the projection peripheral through the audio / video channel and performs projection playback. This device projection method, by collecting status information at each node of the projection process, improves the operator's perception of the system status. If a fault occurs, the information collected at each node can assist in fault location, improving fault detection efficiency.
[0078] Example 2
[0079] Figure 3 This is a flowchart of a device screen projection method provided in Embodiment 2 of the present invention. This embodiment is a refinement of the above embodiment, such as... Figure 3As shown, the method includes:
[0080] S210. In response to the peripheral insertion information, identify the device identifier and projection capability information of the projection peripheral, and use the device identifier and projection capability information as the device identification result.
[0081] Among them, the device identifier is a unique identifier corresponding to the screen casting device, and the screen casting capability information is information indicating whether the screen casting peripheral supports screen casting.
[0082] In this embodiment, when it is necessary to project the content on the projection peripheral onto the vehicle screen, the projection peripheral can be inserted into a pre-reserved interface on the vehicle. When the vehicle detects that a peripheral has been inserted into the corresponding interface, it can initiate device identification of the projection peripheral based on the obtained peripheral insertion information and detect whether the projection conditions are met.
[0083] Specifically, after the projection peripheral can be plugged into the designated interface on the vehicle, the chip connected to that interface can identify the projection peripheral. By polling the chip's registers, the device identifier (device ID) of the projection peripheral is obtained, and it is determined whether the projection peripheral supports projection. The device identifier and projection capability information are used as the device identification result. If the device identifier is successfully obtained and the projection peripheral is confirmed to support projection, an insertion event is reported to the vehicle's infotainment system; if the device identifier is not obtained or the current projection peripheral does not support projection, the control to enable projection is not triggered, and only the projection peripheral is charged.
[0084] S220. Perform screen projection condition detection to determine the device recognition result and screen projection condition detection result.
[0085] In this embodiment, if the device identifier is successfully obtained and it is confirmed that the projection peripheral supports projection, projection condition detection is performed, and both the device identification result and the projection condition detection result are collected and recorded.
[0086] Specifically, the vehicle can be pre-installed with screen projection software for vehicle screen projection control. After receiving the external device insertion information, the screen projection software can perform screen projection condition detection and confirm that the screen projection control switch in the screen projection software is in the on state.
[0087] Furthermore, the device identification results and screen projection condition detection results can be collected by the screen projection software and provided to the vehicle fault detection software, such as EOL (End of Line) testing, allowing EOL to monitor each node in the screen projection process. Preferably, the communication between the screen projection software and the detection software can be through a Content Provider component. The Content Provider is a fundamental component in the Android system, its main function being to enable data sharing between different applications. Through the Content Provider, the screen projection software can share the device identification results and screen projection condition detection results with the detection software while ensuring data security.
[0088] By collecting device identification results and screen projection condition detection results, when screen projection fails, it is possible to confirm whether the node has malfunctioned based on the device identification results and screen projection condition detection results. If the node has malfunctioned, the problem can be investigated for the node; otherwise, the next node can be checked, thereby improving the efficiency of fault identification and location.
[0089] S230, in response to the screen projection condition detection pass information, power on the video transmission chip and establish communication with the screen projection peripheral, and obtain the power-on status code and communication status code of the video transmission chip.
[0090] Among them, the power-on status code and the communication status code are identification codes used to indicate whether the video transmission chip is powered on and whether communication has been successfully established, respectively.
[0091] In this embodiment, if the projection peripheral successfully connects to the vehicle and the projection conditions are met, the video transmission chip can be powered on and establish communication with the projection peripheral. Then, the power-on status code and communication status code of the video transmission chip are used to determine whether the video transmission chip has been successfully powered on and whether communication has been successfully established.
[0092] Specifically, the video transmission chip can be the LT7911UXC. The chip can be powered on using screen mirroring software, and its power-on and communication status codes can then be obtained. These status codes are represented by the video transmission chip's Diagnostic Trouble Codes (DTCs). For the video transmission chip, both successful power-on and successful communication establishment are indicated by corresponding DTC codes. The specific content of the DTC code can determine whether the video transmission chip has been powered on and whether communication has been successfully established.
[0093] S240. Determine the power-on status code and communication status code as the current chip status information of the video transmission chip.
[0094] In this embodiment, after obtaining the power-on status code and communication status code of the video transmission chip, the power-on status code and communication status code can be determined as the current chip status information of the video transmission chip.
[0095] Preferably, the power-on status code and communication status code can be aggregated into the vehicle fault detection software, such as EOL.
[0096] By powering on the video transmission chip and establishing communication with the projection peripheral, the current chip status information is collected. When projection fails, the current chip status information can be used to confirm whether the node has failed. If the node has failed, the problem can be investigated. Otherwise, the next node can be checked, thereby improving the efficiency of fault identification and location.
[0097] S250: In response to the handshake success information with the projection peripheral, determine the image resolution and number of audio channels corresponding to the projection peripheral, open the corresponding video channel and audio channel according to the image resolution and number of audio channels, and determine the open status of the video channel and audio channel as the current audio and video channel status information.
[0098] In this embodiment, after the vehicle and the projection peripheral successfully establish a handshake, the projection peripheral can communicate with the video transmission chip and report the resolution and number of audio channels. Then, the vehicle's infotainment system opens the corresponding audio and video channels based on the reported resolution and number of audio channels.
[0099] Specifically, the audio and video channels include a video (camera) channel and an audio (audio) channel. When the vehicle's application layer receives information indicating that the screen projection condition detection has passed, it can initiate a request to power on the video transmission chip. After power-on, the video transmission chip establishes communication with the screen projection peripheral, simultaneously triggering communication regarding the resolution and number of audio channels. Furthermore, the screen projection software can use the open status of the video and audio channels as current audio and video channel status information and collect it for use in vehicle fault detection software, such as EOL (End of Line) testing. Preferably, the screen projection software can communicate with the detection software through a content provider component to inform whether the EOL video and audio channels have been successfully opened. Based on whether the video and audio channels have been successfully opened, it can be indirectly determined whether the vehicle and the screen projection peripheral have successfully established a connection.
[0100] By collecting the open status of the video and audio channels after handshaking with the projection peripheral, when projection fails, the open status of the video and audio channels can be used to determine whether the node is faulty. If the node is faulty, the problem can be investigated for the node; otherwise, the next node can be checked, thereby improving the efficiency of fault identification and location.
[0101] S260: Obtain audio and video data from the projection peripheral through the audio and video channel, and perform projection playback.
[0102] In this embodiment, if the vehicle and the projection peripheral successfully communicate and the audio / video channel is successfully opened, the audio and video data of the projection peripheral can be projected onto the vehicle's screen through the audio / video channel.
[0103] Specifically, after a successful handshake and the successful opening of the audio and video channels, the screen mirroring interface can be pulled up on the vehicle using screen mirroring software. The video stream is displayed through the video channel, and the sound is released through the audio channel.
[0104] The device projection method provided in this embodiment of the invention can monitor the projection process by collecting status information at each node throughout the projection process, thereby improving the operator's awareness of the system status. If a fault occurs, the information collected at each node can be used to assist in fault location, thus improving the efficiency of fault detection.
[0105] Example 3
[0106] Figure 4 This is a schematic diagram of the structure of a device projection device provided in Embodiment 3 of the present invention, as shown below. Figure 4 As shown, the device includes: a device identification and projection condition detection module 310, a chip power-on and communication establishment module 320, an audio and video channel opening module 330, and a projection playback module 340.
[0107] The device identification and projection condition detection module 310 is used to identify the projection peripheral and perform projection condition detection in response to the peripheral insertion information, and to determine the device identification result and the projection condition detection result.
[0108] The chip power-on and communication establishment module 320 is used to power on the video transmission chip and establish communication with the screen projection peripheral in response to the screen projection condition detection pass information, and to determine the current chip status information of the video transmission chip.
[0109] The audio / video channel opening module 330 is used to open the audio / video channel in response to the handshake success information with the projection peripheral and to determine the current audio / video channel status information.
[0110] The screen casting playback module 340 is used to acquire audio and video data from the screen casting peripheral through the audio and video channel and to perform screen casting playback.
[0111] Optionally, the device identification results, screen projection condition detection results, current chip status information, and current audio / video channel status information are aggregated into a set detection application.
[0112] Optionally, the device also includes a fault location module 350, which is used to locate the fault by setting a detection application based on the device identification result, the screen projection condition detection result, the current chip status information and the current audio and video channel status information if the screen projection fails.
[0113] Optionally, the device identification and projection condition detection module 310 is also used for:
[0114] In response to the insertion of peripheral devices, the device identifier and projection capability information of the projection peripheral device are identified; the device identifier and projection capability information are used as the device identification result.
[0115] Optionally, the chip power-on and communication establishment module 320 is also used for:
[0116] Obtain the power-on status code and communication status code of the video transmission chip; determine the power-on status code and communication status code as the current chip status information of the video transmission chip.
[0117] Optionally, the audio / video channel opening module 330 is also used for:
[0118] Determine the image resolution and number of audio channels corresponding to the projection peripheral; open the corresponding video and audio channels according to the image resolution and number of audio channels, and determine the open status of the video and audio channels as the current audio and video channel status information.
[0119] The device projection device provided in the embodiments of the present invention can execute the device projection method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method execution.
[0120] Example 4
[0121] Figure 5 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0122] like Figure 5As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0123] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0124] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as device projection methods.
[0125] In some embodiments, the device projection method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the device projection method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the device projection method by any other suitable means (e.g., by means of firmware).
[0126] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0127] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0128] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0129] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0130] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0131] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0132] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0133] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for projecting a device screen, characterized in that, include: In response to the peripheral device insertion information, the device identification and projection condition detection of the projection peripheral device are performed, and the device identification result and projection condition detection result are determined. In response to the screen projection condition detection pass information, the video transmission chip is powered on and communication is established with the screen projection peripheral to determine the current chip status information of the video transmission chip; In response to the handshake success message with the projection peripheral, the audio and video channel is opened, and the current audio and video channel status information is determined; The audio and video data of the projection peripheral are obtained through the audio and video channel and then projected for playback.
2. The method according to claim 1, characterized in that, The device identification result, the screen projection condition detection result, the current chip status information, and the current audio / video channel status information are summarized into a set detection application.
3. The method according to claim 2, characterized in that, The method further includes: If screen mirroring fails, the set detection application will locate the fault based on the device identification result, the screen mirroring condition detection result, the current chip status information, and the current audio and video channel status information.
4. The method according to claim 1, characterized in that, In response to peripheral insertion information, the device identification of the projection peripheral is performed, including: In response to peripheral insertion information, the device identifier and projection capability information of the projection peripheral are identified; The device identifier and the screen projection capability information are used as the device identification result.
5. The method according to claim 1, characterized in that, Determining the current chip status information of the video transmission chip includes: Obtain the power-on status code and communication status code of the video transmission chip; The power-on status code and the communication status code are determined as the current chip status information of the video transmission chip.
6. The method according to claim 1, characterized in that, Open the audio / video channel and determine the current audio / video channel status information, including: Determine the image resolution and number of audio channels corresponding to the projection peripheral; Based on the image resolution and the number of audio channels, the corresponding video and audio channels are opened, and the opening status of the video and audio channels is determined as the current audio and video channel status information.
7. A device projection apparatus, characterized in that, include: The device identification and projection condition detection module is used to identify the projection peripheral in response to the peripheral insertion information and perform projection condition detection, and determine the device identification result and the projection condition detection result. The chip power-on and communication establishment module is used to power on the video transmission chip and establish communication with the projection peripheral in response to the screen projection condition detection pass information, and to determine the current chip status information of the video transmission chip. The audio and video channel opening module is used to open the audio and video channel in response to the handshake success information with the projection peripheral, and to determine the current audio and video channel status information. The screen casting playback module is used to acquire the audio and video data of the screen casting peripheral through the audio and video channel and perform screen casting playback.
8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the device projection method according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that are used to cause a processor to execute the device projection method according to any one of claims 1-6.
10. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the device projection method as described in any one of claims 1-6.