A method, device and system for same-screen display

By identifying and setting the device identity, and recording the screen according to the resolution and frame rate of the secondary screen device, it solves the problem of large delay in the existing same-screen method, achieves fast and simple same-screen display, and reduces data processing volume and improved synchronization efficiency.

CN113934396BActive Publication Date: 2024-08-30SHANGHAI SUMI TECH CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111295943.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-03
Publication Date
2024-08-30
Estimated Expiration
2041-11-03

AI Technical Summary

Technical Problem

Due to the large amount of data, the existing same-screen method results in large delays and cannot meet the needs of rapid information synchronization between devices.

Method used

By obtaining the unique identification code of the wired communication module between the main screen device and the secondary screen device, the identity of the device is determined, and the screen recording service of the main screen device is set according to the resolution and frame rate of the secondary screen device to achieve screen recording with minimum useful data. and compressed transmission to reduce delays.

Benefits of technology

It realizes the same-screen display from the main device to the secondary screen, simplifies the operation, reduces the special requirements for the main Android device, and solves the problem of same-screen delay by minimizing the amount of data processing and compressed transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113934396B
    Figure CN113934396B
Patent Text Reader

Abstract

The present invention belongs to the field of electronic Internet of Things. The present invention provides a same-screen display method, device and system, including: obtaining a unique identification code of a wired communication module in a device that establishes wired communication with a main screen device; when the unique identification code of the wired communication module is a preset identification code, determining that the device is a secondary screen device; obtaining the resolution and frame rate of the secondary screen device, and setting the resolution of the screen recording service of the main screen device based on the resolution of the secondary screen device, and setting the frame rate of the screen recording service of the main screen device based on the frame rate of the secondary screen device to perform screen recording; when a frame of screen recording is completed, sending screen recording data to the secondary screen device, so that the secondary screen device performs same-screen display. Installing the screen recording service on the main device and connecting a USB secondary screen can realize the same screen from the main device display end to the secondary screen. This method is convenient and simple to implement, and has no special requirements for the main Android device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic Internet of Things, and in particular to a same-screen display method, device and system. Background Art

[0002] With the development of the Internet of Things in recent years, the interconnection between devices has become more and more widely used, and there are more and more scenarios for delivering or synchronizing information from one device to another. Therefore, a convenient same-screen method and device are particularly necessary.

[0003] The current common screen sharing methods or screen sharing devices all use the existing screen sharing protocol to transmit and project the screen. Due to the need to adapt to the universality of the target screen, the amount of data transmitted and processed is relatively large, and the delay generated is relatively large. Therefore, it is necessary to propose a screen sharing method that reduces the delay. Summary of the invention

[0004] The present invention provides a same-screen display method, device and system to solve the above-mentioned problem.

[0005] The technical solution provided by the present invention is as follows:

[0006] A same-screen display method, comprising:

[0007] Obtain a unique identification code of a wired communication module in a device that establishes wired communication with the main screen device;

[0008] When the unique identification code of the wired communication module is a preset identification code, determining that the device is a secondary screen device;

[0009] Retrieve the resolution and frame rate of the secondary screen device, and set the resolution of the screen recording service of the primary screen device based on the resolution of the secondary screen device, and set the frame rate of the screen recording service of the primary screen device based on the frame rate of the secondary screen device to perform screen recording;

[0010] When the screen recording for the preset time is completed, the screen recording data is sent to the secondary screen device so that the secondary screen device can display it on the same screen.

[0011] Further preferably, before acquiring the unique identification code of the wired communication module in the device that establishes wired communication with the main screen device, the method further includes:

[0012] The USB service module of the main screen device is set to a VCP virtual serial port, and the identification code of the VCP virtual serial port is set to a preset identification code.

[0013] Further preferably, the screen recording based on the resolution and frame rate of the secondary screen device includes:

[0014] Based on the resolution and the frame rate, the MediaCodeC library is called on the main screen device, and an image of the area of ​​the resolution is captured on the current main screen of the main screen device at an interval of the reciprocal of the frame rate.

[0015] Further preferably, before acquiring the unique identification code of the wired communication module in the device that establishes wired communication with the main screen device, the method further includes:

[0016] Based on the unique identification code of the wired communication module and the preset identification code, it is determined whether the device is a secondary screen device.

[0017] A same-screen display device, comprising:

[0018] A USB service module, used to obtain a unique identification code of a wired communication module in a device that establishes wired communication with a main screen device;

[0019] The USB service module is used to determine that the device is a secondary screen device when the unique identification code of the wired communication module is a preset identification code;

[0020] A screen recording service module, used to retrieve the resolution and frame rate of the secondary screen device, and set the resolution of the screen recording service of the primary screen device based on the resolution of the secondary screen device, and set the frame rate of the screen recording service of the primary screen device based on the frame rate of the secondary screen device, so as to perform screen recording;

[0021] The USB service module is used to send the screen recording data to the secondary screen device when the screen recording of the preset time is completed, so that the secondary screen device can display on the same screen.

[0022] More preferably, it also includes:

[0023] The setting module is used to set the USB service module of the main screen device to a VCP virtual serial port, and set the identification code of the VCP virtual serial port to a preset identification code.

[0024] Further preferably, the USB service module is also used for:

[0025] Sending the screen recording data to the secondary screen device through the main screen device;

[0026] Decompressing the screen recording data and restoring the image frames by using the secondary screen device to obtain image frame data;

[0027] The image frame data is converted into a corresponding format based on the resolution and frame rate by the secondary screen device, and is displayed on the same screen.

[0028] A same-screen display system, comprising: a main screen device and a secondary screen device;

[0029] The main screen device comprises: a USB service module, which is used to detect the unique identification code of the wired communication module in the device connected to the USB service module; when the unique identification code of the wired communication module in the device is a preset identification code, marking the device as the secondary screen device;

[0030] The main screen device also includes: a screen recording service module, which is used to retrieve the resolution and frame rate of the secondary screen device and record the screen according to the resolution and frame rate of the secondary screen device;

[0031] The USB service module is used to transmit the screen recording data to the wired communication module after completing the screen recording for a preset time;

[0032] The secondary screen device includes: a same-screen display module, which is used to receive the screen recording data and convert the screen recording data into a target format that meets the resolution and frame rate of the secondary screen device for same-screen display.

[0033] Further preferably:

[0034] The secondary screen device comprises: a data decoding module, which is used to decompress the screen recording data and restore the image frame to obtain image frame data;

[0035] The secondary screen device also includes: a data conversion and display module, which is used to convert the image frame data into a corresponding format based on the resolution and frame rate, and display it on the same screen.

[0036] Further preferably:

[0037] The data conversion and display module is also used to convert the image frame data into a corresponding format based on the resolution and frame rate after receiving the screen recording data, and push it to an external port for use by an external device.

[0038] The present invention provides a same-screen display method, device and system, which have at least the following beneficial effects:

[0039] 1) Install the screen recording service on the main device and connect the USB secondary screen to achieve the same screen from the main device display to the secondary screen. This method is convenient and simple to implement, and has no special requirements for the main Android device.

[0040] 2) Since the screen recording service records the screen according to the resolution and frame rate requirements of the secondary screen, the data generated is not wasted and is the minimum useful data. After compression and transmission, the USB secondary screen can process the minimum amount of data and refresh the screen in time, solving the delay problem caused by excessive data processing on the same screen. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments:

[0042] Figure 1 It is a flowchart of an embodiment of a same-screen display method in the present invention;

[0043] Figure 2 is a schematic diagram of a same-screen display device in the present invention;

[0044] Figure 3 is a schematic diagram of an embodiment of a same-screen display method in the present invention;

[0045] Figure 4 is a schematic diagram of an embodiment of a same-screen display device in the present invention;

[0046] Figure 5 This is a functional block diagram of the USB secondary screen device in the present invention;

[0047] Figure 6 It is a schematic diagram of the USB secondary screen connection in the desktop cash register system of the present invention. DETAILED DESCRIPTION

[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0049] In order to simplify the drawings, only the parts related to the present invention are schematically shown in each figure, and they do not represent the actual structure of the product. In addition, in order to simplify the drawings and facilitate understanding, in some figures, only one of the parts with the same structure or function is schematically drawn or marked. In this article, "one" not only means "only one", but also means "more than one".

[0050] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0051] In this document, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0052] In addition, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0053] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings and other implementation methods can be obtained based on these drawings without creative work.

[0054] The present invention provides an embodiment of a same-screen display method, such as Figure 1 As shown, specifically including:

[0055] S100 obtains a unique identification code of a wired communication module in a device that establishes wired communication with a main screen device.

[0056] S200: When the unique identification code of the wired communication module is a preset identification code, determining that the device is a secondary screen device.

[0057] Specifically, the main screen device includes an Android-based mobile device, a terminal device, etc. In the field of cash register devices, a device connected to the main screen device through a wired communication module is not necessarily a secondary screen device. If it is not a secondary screen device, there is a security problem of confidential information leakage.

[0058] Therefore, the present application stores a unique identification code in the wired communication module of the secondary screen device. When the main screen device establishes a connection with it, it can directly and quickly identify whether this device is a secondary screen device by identifying the unique identification code.

[0059] Since the existing same-screen protocol transmission and projection needs to adapt to the universality of the target screen, the amount of data transmitted and processed is relatively large, and the delay generated is relatively large. This application proposes to establish secure communication between two devices through a wired communication module. Compared with the two devices transmitting and projecting through the existing same-screen protocol, it reduces the delay and thus the transmission speed is faster, while taking into account security.

[0060] S300 retrieves the resolution and frame rate of the secondary screen device, and sets the resolution of the screen recording service of the main screen device based on the resolution of the secondary screen device, and sets the reading frequency of the screen recording service of the main screen device based on the frame rate of the secondary screen device to perform screen recording.

[0061] In this embodiment, the wired communication module, namely the USB data transmission module, realizes data transmission and storage of the secondary screen resolution and frame rate.

[0062] The secondary screen resolution and frame rate parameters are obtained through the main screen device. The method for obtaining the secondary screen resolution is: through the above-mentioned USB serial port, read the resolution and frame rate supported by the secondary screen stored in the specific memory location of the secondary screen module. This parameter is written according to the secondary screen hardware parameters during factory production, and the screen recording is started according to the parameters.

[0063] Among them, the specific scheme of screen recording includes: when the obtained resolution parameter is AxB and the frame rate is Z, the MediaCodeC library is called on the Andorid main screen to grab the JPG picture of the AxB area of ​​the current screen, and the screen is recorded at intervals of 1 / Z seconds.

[0064] S400 sends the screen recording data to the secondary screen device when the screen recording for the preset time is completed, so that the secondary screen device can display the screen on the same screen.

[0065] Specifically, when the main screen device completes screen recording, the screen recording data is compressed and transmitted to the secondary screen device via a USB data cable. After decompression and image frame restoration by the data decoding module of the secondary screen device, each image is cached, and after the image frame is converted into a display target format by the data conversion and display module of the secondary screen device, it is pushed to the corresponding external port or display screen for display, thereby realizing synchronization of the display content of the main device to the secondary screen.

[0066] Among them, the display target format means: when the secondary screen device gets the data stream, it needs to restore the image with the resolution A*B as the target image size, decode it into RGB data, and send it to the buffer FramBuffer corresponding to the secondary screen for display.

[0067] Among them, the preset time is about 6mS, which is roughly 0.006 seconds.

[0068] In this embodiment, the insertion of the USB slave device is detected by a service deployed on the Android main device, and the resolution and frame rate parameters of the secondary screen are obtained. The main device service is started to record the screen according to the parameters, and the data stream is compressed and transmitted to the secondary screen. The secondary screen decodes the data and pushes it to the main screen and the external interface to realize the same-screen function.

[0069] Based on the above embodiment, the parts in this embodiment that are the same as those in the above embodiment will not be described one by one. This embodiment provides another embodiment of a same-screen display method, such as Figure 2 , 3 As shown, specifically including:

[0070] Before obtaining the unique identification code of the wired communication module in the device that establishes wired communication with the main screen device in step S100, the method further includes:

[0071] The USB service module of the main screen device is set to a VCP virtual serial port, and the identification code of the VCP virtual serial port is set to a preset identification code.

[0072] In a preferred embodiment, before acquiring the unique identification code of the wired communication module in the device that establishes wired communication with the main screen device, the method further includes:

[0073] Based on the unique identification code of the wired communication module and the preset identification code, it is determined whether the device is a secondary screen device.

[0074] Specifically, whether to start screen recording is determined by detecting whether it is a secondary screen device; whether it is a secondary screen device is determined based on the idVendor (manufacturer ID) and idProduct (product ID) of the USB. The frame rate and resolution are the size and frequency of capturing the main screen image data after starting screen recording to form a data stream.

[0075] In a preferred implementation, the step S300 of recording the screen based on the resolution and frame rate of the secondary screen device includes:

[0076] Based on the resolution and the frame rate, the MediaCodeC library is called on the main screen device, and an image of the area of ​​the resolution is captured on the current main screen of the main screen device at an interval of the reciprocal of the frame rate.

[0077] For example, Figure 2 , 3 As shown, a method for sharing screens in a USB mode for Android devices includes: installing a screen recording service module on an Android main device; deploying a USB data transmission module in the embedded software of a secondary screen device; deploying a data decoding module in the embedded software of the secondary screen device; deploying a data conversion display module in the embedded software of the secondary screen device;

[0078] Among them, the screen recording service module realizes the detection of USB insertion of the secondary screen device, the screen recording of the main device, data compression and data transmission functions.

[0079] The secondary screen is embedded in the software, and the USB data transmission module realizes data transmission and storage of the secondary screen resolution and frame rate; the data decoding module realizes decompression of compressed data transmitted to the main screen and restoration and buffer storage of image frames; the data conversion and display module realizes conversion of image frames in buffer storage into the format to be displayed, and controls the secondary screen to display or push it to the corresponding interface.

[0080] In the above, the screen recording service module is installed on the main screen device and is connected to the USB data transmission module on the secondary screen via a USB data cable; the USB data transmission module on the secondary screen is connected to the data decoding module; and the data decoding module on the secondary screen is connected to the data conversion and display module.

[0081] To summarize, the screen recording service module on the main device detects the insertion of the secondary screen USB data transmission module through the USB service module.

[0082] The method for detecting USB insertion is as follows: the USB Dev terminal is set to the VCP virtual serial port function in the USB CDC class, and the manufacturer ID is set to a specific unique identifier.

[0083] For example, idVendor is 0x7799 and idProduct is 0x2011. When the USB port of the main screen detects that a USB slave device is inserted and obtains idVendor as 0x7799, it is determined that the device is a device of this manufacturer, and when idProduct is 0x2011, it is a secondary screen device of this manufacturer.

[0084] Therefore, in this embodiment, two aspects of verification are required. The first is the manufacturer verification of the device. The first verification can exclude devices that are not from this manufacturer, thereby improving the safety of the detection. The second verification is to verify the specific identification code of the device to verify whether a secondary screen device can be used on the same screen.

[0085] The main screen device obtains the secondary screen resolution and frame rate parameters. The method for obtaining the secondary screen resolution is: through the above serial port, read the resolution and frame rate supported by the secondary screen stored in the specific memory location of the secondary screen module. This parameter is written according to the secondary screen hardware parameters during factory production.

[0086] The main screen device starts screen recording according to the parameters, compresses the data and transmits it to the secondary screen via the USB data cable. After decompression and image frame restoration by the data decoding module, each image is cached. After the image frame is converted into the display target format by the data conversion and display module, it is pushed to the corresponding external port or display screen for display, thereby realizing the synchronization of the display content of the main device to the secondary screen.

[0087] Among them, the specific scheme of screen recording includes: when the obtained resolution parameter is A*B and the frame rate is Z, the MediaCodeC library is called on the Android main screen to grab the JPG image of the area where the resolution parameter is A*B in the current screen, and the interval is 1 / Z seconds.

[0088] For example, in the prior art, the same-screen protocol DLNA is generally used for screen sharing. This embodiment specifically has a screen recording module for displaying content from the main screen to the secondary screen.

[0089] The existing original dual-screen mode requires dual-screen driver to be implemented in ROM. When changing a single screen to dual-screen, the underlying firmware needs to be modified, which is difficult to modify.

[0090] In this embodiment, if a single screen is used for double stitching, only a screen recording service module apk needs to be installed under the main screen system, and ordinary users can install and operate it without the intervention of professionals. Generally, it is from a large screen to a small screen.

[0091] Based on the above embodiments, the parts in this embodiment that are the same as those in the above embodiments will not be described one by one. This embodiment provides an embodiment of a same-screen display device, such as Figure 4 As shown, specifically including:

[0092] The USB service module 401 is used to obtain a unique identification code of a wired communication module in a device that establishes wired communication with the main screen device.

[0093] The USB service module is used to determine that the device is a secondary screen device when the unique identification code of the wired communication module is a preset identification code.

[0094] The screen recording service module 402 is used to retrieve the resolution and frame rate of the secondary screen device, and to set the resolution of the screen recording service of the main screen device based on the resolution of the secondary screen device, and to set the reading frequency of the screen recording service of the main screen device based on the frame rate of the secondary screen device to perform screen recording.

[0095] The USB service module is used to send the screen recording data to the secondary screen device when the screen recording of the preset time is completed, so that the secondary screen device can display on the same screen.

[0096] In another preferred embodiment, it also includes:

[0097] The setting module is used to set the USB service module of the main screen device to a VCP virtual serial port, and set the identification code of the VCP virtual serial port to a preset identification code.

[0098] In another preferred embodiment, the USB service module is used to:

[0099] The screen recording data is sent to the secondary screen device through the main screen device; the screen recording data is decompressed and the image frame is restored by the secondary screen device to obtain image frame data; the image frame data is converted into a corresponding format based on the resolution and frame rate by the secondary screen device, and displayed on the same screen.

[0100] Based on the above embodiment, the parts in this embodiment that are the same as those in the above embodiment will not be described one by one. This embodiment provides a same-screen display system, such as Figures 4 to 6 As shown, it includes: a main screen device and a secondary screen device.

[0101] The main screen device includes: a USB service module, which is used to detect the unique identification code of the wired communication module in the device connected to the USB service module; when the unique identification code of the wired communication module in the device is a preset identification code, marking the device as the secondary screen device.

[0102] The main screen device also includes: a screen recording service module, which is used to retrieve the resolution and frame rate of the secondary screen device and record the screen according to the resolution and frame rate of the secondary screen device.

[0103] The USB service module is used to transmit the screen recording data to the wired communication module after completing the screen recording for a preset time.

[0104] The secondary screen device includes: a same-screen display module, which is used to receive the screen recording data and convert the screen recording data into a target format that meets the resolution and frame rate of the secondary screen device for same-screen display.

[0105] In another preferred embodiment, the secondary screen device includes: a data decoding module, which is used to decompress the screen recording data and restore the image frames to obtain image frame data.

[0106] The secondary screen device also includes: a data conversion and display module, which is used to convert the image frame data into a corresponding format based on the resolution and frame rate, and display it on the same screen.

[0107] In another preferred embodiment, the data conversion and display module is also used to convert the image frame data into a corresponding format based on the resolution and frame rate after receiving the screen recording data, and push it to an external port for use by an external device.

[0108] Exemplarily, a device for implementing the same screen method in USB mode for Android devices includes: in a USB secondary screen device in a desktop cash register system, including:

[0109] 1) Deploy a Linux operating system on the RK3036 CPU;

[0110] 2) Implement a USB device function and mark the device type as a secondary screen device;

[0111] 3) Realize the storage of secondary screen resolution and frame rate parameters;

[0112] 4) Decompress the data from USB;

[0113] 5) The decompressed data is restored by combining image frames and cached to a specified location;

[0114] 6) After reading from the cache by image frame and converting to the target format, the display screen is controlled to display the image frame by frame.

[0115] In summary, through the implementation of the functions in the above steps, the data received by the USB secondary screen device is displayed on the secondary screen.

[0116] For example, Figure 6 As shown, in the corresponding desktop cash register system, the application of the same screen display from the main screen to the secondary screen is:

[0117] 1) Install the screen recording application service in this method on the main screen Android device;

[0118] 2) The USB secondary screen is connected to the main screen via a USB data cable;

[0119] 3) After the screen recording service in the main screen Android device detects that the USB secondary screen device is plugged in, it first reads the secondary screen device resolution S1 and frame rate parameter F1;

[0120] 4) The screen recording service sets the screen recording resolution according to the secondary screen resolution S1, sets the screen recording reading frequency according to the secondary screen frame rate F1, and starts the screen recording function;

[0121] 5) The recorded data is compressed in a specific A format and sent to the USB port;

[0122] 6) The USB secondary screen receives the data from the USB port, decompresses and restores the data, and finally displays it on the secondary screen;

[0123] In summary, the same-screen process from the main device display to the USB sub-screen is realized in the desktop cash register system.

[0124] The application of USB sub-screen in the desktop cash register system has the following effects:

[0125] 1) Install the screen recording service on the main device and connect the USB secondary screen to achieve the same screen from the main device display to the secondary screen, which shows that this method is convenient and simple to implement and has no special requirements for the main Android device.

[0126] 2) Since the screen recording service records the screen according to the resolution and frame rate requirements of the secondary screen, the data generated is not wasted and is the minimum useful data. After compression and transmission, the USB secondary screen can process the minimum amount of data and refresh the screen in time, solving the delay problem caused by excessive data processing on the same screen.

[0127] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0128] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed with hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0129] In the embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. Exemplarily, the system embodiments described above are merely schematic. Exemplarily, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation. Exemplarily, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0130] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0131] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0132] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. It should be noted that the content contained in the storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electrical carrier signals and telecommunication signals.

[0133] It should be noted that the above embodiments can be freely combined as needed. The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered as the protection scope of the present invention.

Claims

1. A same-screen display method, characterized in that: include: Obtaining a unique identification code of a wired communication module in a device that establishes wired communication with the main screen device; When the unique identification code of the wired communication module is a preset identification code, the device is determined to be a secondary screen device; the wired communication module stores the unique identification code, the resolution and frame rate of the secondary screen device; Retrieve the resolution and frame rate of the secondary screen device, and set the resolution of the screen recording service of the primary screen device based on the resolution of the secondary screen device, and set the frame rate of the screen recording service of the primary screen device based on the frame rate of the secondary screen device to start the screen recording service; When the main screen device completes screen recording for a preset time, it sends the screen recording data to the secondary screen device so that the secondary screen device can display the screen on the same screen. The screen recording data is the minimum useful data, so that the secondary screen device can minimize the amount of processing of the screen recording data after the screen recording data is compressed and transmitted.

2. The same-screen display method according to claim 1, characterized in that: Before the step of obtaining the unique identification code of the wired communication module in the device that establishes wired communication with the main screen device, the step further includes: The USB service module of the main screen device is set to a VCP virtual serial port, and the identification code of the device to be connected to the VCP virtual serial port is set to a preset identification code.

3. The same-screen display method according to claim 1, characterized in that: The recording of the screen based on the resolution and frame rate of the secondary screen device includes: Based on the resolution and the frame rate, the MediaCodeC library is called on the main screen device, and an image of the area of ​​the resolution is captured on the current main screen of the main screen device at an interval of the reciprocal of the frame rate.

4. The same-screen display method according to any one of claims 1 to 3, characterized in that: Before acquiring the unique identification code of the wired communication module in the device that establishes wired communication with the main screen device, the method further includes: Based on the unique identification code of the wired communication module and the preset identification code, it is determined whether the device is a secondary screen device.

5. A same-screen display device, characterized in that: include: A USB service module, used to obtain a unique identification code of a wired communication module in a device that establishes wired communication with a main screen device; The USB service module is used to determine that the device is a secondary screen device when the unique identification code of the wired communication module is a preset identification code; the USB service module stores the unique identification code, the resolution and frame rate of the secondary screen device; A screen recording service module, used to retrieve the resolution and frame rate of the secondary screen device, and set the resolution of the screen recording service of the primary screen device based on the resolution of the secondary screen device, and set the reading frequency of the screen recording service of the primary screen device based on the frame rate of the secondary screen device, so as to start screen recording; The USB service module is used to send screen recording data to the secondary screen device when the preset time of screen recording is completed, so that the secondary screen device can display it on the same screen. The screen recording data is the minimum useful data, so that the secondary screen device can minimize the amount of processing of the screen recording data after the screen recording data is compressed and transmitted.

6. The same-screen display device according to claim 5, characterized in that: Also includes: The setting module is used to set the USB service module of the main screen device to a VCP virtual serial port, and set the identification code of the device to be connected to the VCP virtual serial port to a preset identification code.

7. The same-screen display device according to any one of claims 5 to 6, characterized in that: The USB service module is further used for: Sending the screen recording data to the secondary screen device through the main screen device; Decompressing the screen recording data and restoring the image frames by using the secondary screen device to obtain image frame data; The image frame data is converted into a corresponding format based on the resolution and frame rate by the secondary screen device, and is displayed on the same screen.

8. A same-screen display system, characterized in that: include: Main screen device and secondary screen device; The main screen device comprises: a USB service module, which is used to detect the unique identification code of the wired communication module in the device connected to the USB service module; when the unique identification code of the wired communication module in the device is a preset identification code, marking the device as the secondary screen device; the USB service module stores the unique identification code, the resolution and frame rate of the secondary screen device; The main screen device also includes: a screen recording service module, which is used to retrieve the resolution and frame rate of the secondary screen device, and start screen recording according to the resolution and frame rate of the secondary screen device; The USB service module is used to transmit the screen recording data to the wired communication module after completing the screen recording for a preset time; The secondary screen device includes: a same-screen display module, which is used to receive the screen recording data, and convert the screen recording data into a target format that meets the resolution and frame rate of the secondary screen device for same-screen display. The screen recording data is the minimum useful data, so that the secondary screen device can minimize the amount of processing of the screen recording data after the screen recording data is compressed and transmitted.

9. The same-screen display system according to claim 8, characterized in that: The secondary screen device comprises: a data decoding module, which is used to decompress the screen recording data and restore the image frame to obtain image frame data; The secondary screen device also includes: a data conversion and display module, which is used to convert the image frame data into a corresponding format based on the resolution and frame rate, and display it on the same screen.

10. The same-screen display system according to claim 9, characterized in that: The data conversion and display module is also used to convert the image frame data into a corresponding format based on the resolution and frame rate after receiving the screen recording data, and push it to an external port for use by an external device.

Citation Information

Patent Citations

  • An electronic device and method for displaying on the same screen using a mobile device and a display device

    CN109308175A

  • Office conference intelligence method, device and system, storage medium and server

    CN110138738A

  • Multi-terminal same-screen teaching system and teaching method

    CN110874959A