WO2024114247A1 - 数据传输方法及其装置 - Google Patents
数据传输方法及其装置 Download PDFInfo
- Publication number
- WO2024114247A1 WO2024114247A1 PCT/CN2023/128341 CN2023128341W WO2024114247A1 WO 2024114247 A1 WO2024114247 A1 WO 2024114247A1 CN 2023128341 W CN2023128341 W CN 2023128341W WO 2024114247 A1 WO2024114247 A1 WO 2024114247A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- media data
- terminal device
- protocol format
- protocol
- Prior art date
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 223
- 238000000034 method Methods 0.000 title claims abstract description 71
- 238000012545 processing Methods 0.000 claims abstract description 45
- 238000006243 chemical reaction Methods 0.000 claims description 125
- 230000006854 communication Effects 0.000 claims description 25
- 238000004891 communication Methods 0.000 claims description 24
- 230000002452 interceptive effect Effects 0.000 description 29
- 230000004044 response Effects 0.000 description 10
- 230000008054 signal transmission Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 230000006835 compression Effects 0.000 description 4
- 238000007906 compression Methods 0.000 description 4
- 238000004590 computer program Methods 0.000 description 4
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 3
- 230000002035 prolonged effect Effects 0.000 description 3
- 239000002699 waste material Substances 0.000 description 3
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 2
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
Definitions
- the present application relates to the field of computers, and in particular to a data transmission method and device thereof.
- users can connect their computers to a screen transmitter to project the content displayed on the computer screen, such as PPT, onto a larger display, such as an interactive smart tablet or TV, making it easier for users to share content with participants.
- a screen transmitter to project the content displayed on the computer screen, such as PPT
- a larger display such as an interactive smart tablet or TV
- the embodiments of the present application provide a data transmission method and device thereof, which can improve the problems of cumbersome operation and time waste in the prior art.
- An embodiment of the present application provides a data transmission method, wherein the wireless screen transmitter includes a Type-C interface, and the wireless screen transmitter supports DP protocol and USB2.0 protocol communication; the method includes: when the Type-C interface is connected to a terminal device, starting to establish a handshake between the DP protocol and the USB2.0 protocol and the terminal device; when the DP protocol handshake is successful, determining whether media data in the DP protocol format is received within a preset time, and the media data in the DP protocol format is generated by processing the media data currently displayed on the screen of the terminal device based on the DP protocol; if the media data in the DP protocol format is not received, sending a switching instruction to the terminal device, and the switching instruction is used to enable the terminal device to take a screenshot and encode the currently displayed media data; receiving the media data in the USB2.0 protocol format sent by the terminal device, and the media data in the USB2.0 protocol format is generated by processing the media data after taking a screenshot and encoding the terminal device based on the USB2.0 protocol.
- the embodiment of the present application also provides a data transmission method, which is applied to a wireless screen transmitter, wherein the wireless screen transmitter comprises a Type-C interface, a first data conversion chip and a processor, wherein the Type-C interface is connected to the processor via the first data conversion chip, and the Type-C interface comprises a differential signal pin and a USB2.0 data pin;
- the method comprises:
- the first data conversion chip converts the media data in the DP protocol format into MIPI format data, obtains target parameters according to the media data in the DP protocol format, and sends the MIPI format data and the target parameters to the processor;
- the processor When the processor fails to receive the MIPI format data within a first preset time, or fails to obtain the target parameter within a second preset time, or determines within a third preset time that the first data conversion chip has not received the media data in the DP protocol format, the processor switches to receiving the media data in the USB2.0 protocol format through the USB2.0 data pin.
- the embodiment of the present application also provides a data transmission device, including a Type-C interface, a first data conversion chip, a processor, a memory and a wireless module, the Type-C interface including a first data pin and a second data pin, the first data pin is connected to the processor through the first data conversion chip, the second data pin is connected to the processor, and the processor is connected to the memory and the wireless module respectively;
- the first data pin is used to receive media data in a DP protocol format
- the second data pin is used to receive media data in a USB2.0 protocol format
- the first data conversion chip is used to receive the media data in the DP protocol format, convert the received media data in the DP protocol format into data in the MIPI format, obtain target parameters according to the media data in the DP protocol format, and send the data in the MIPI format and the target parameters to the processor;
- the processor is configured to determine the first preset time when the data in the MIPI format is not received within the first preset time, or when the target parameter is not obtained within the second preset time, or within the third preset time.
- a data conversion chip does not receive the media data in the DP protocol format, it receives the media data in the USB2.0 protocol format through the second data pin.
- the handshake process of establishing the DP protocol and the USB2.0 protocol with the terminal device can be started.
- the handshake is successful, it is determined whether the media data in the DP protocol format is received within the preset time, and the media data in the DP protocol format is generated by processing the media data currently displayed on the screen of the terminal device based on the DP protocol.
- a switching instruction is sent to the terminal device; wherein the switching instruction is used to make the terminal device take screenshots and encode the currently displayed media data; the wireless screen transmitter receives the media data in the USB2.0 protocol format sent by the terminal device, and the media data in the USB2.0 protocol format is generated by processing the media data after the terminal device is taken screenshots and encoded based on the USB2.0 protocol. If the media data in the DP protocol format cannot be received within the preset time, it means that the wireless screen transmitter cannot currently work normally in the DP transmission mode, so the wireless screen transmitter can use the USB2.0 transmission mode to transmit data with the terminal device to obtain the media data in the USB2.0 protocol format corresponding to the USB2.0 transmission mode.
- the above implementation can make the wireless screen transmitter automatically switch to USB2.0 transmission mode when it cannot work normally in DP transmission mode, thus avoiding the manual switching of the user, simplifying the operation and saving time. Since the wireless screen transmitter can quickly enter the normal working state when the DP transmission mode fails and the USB2.0 transmission mode is normal without the need for manual switching by the user, the problem of cumbersome operation and time-wasting in the prior art can be improved.
- the working efficiency of the wireless screen transmitter can be improved and time can be saved.
- FIG1 is a schematic diagram of a scene shown in an embodiment of the present application.
- FIG2 is a schematic diagram of the structure of an implementation of a wireless screen transmission device provided in an embodiment of the present application.
- FIG3 is a schematic diagram of a data transmission method according to an embodiment of the present application.
- FIG4 is a timing diagram of a data transmission method provided in an embodiment of the present application.
- FIG5 is a schematic flow chart of a data transmission method provided by another embodiment of the present application.
- FIG6 is a flow chart of a data transmission method provided by another embodiment of the present application.
- FIG7 is a schematic diagram of a structure of a data transmission virtual device provided by an embodiment of the present application.
- FIG8 is a schematic structural block diagram of a specific implementation of the wireless screen transmitter provided in an embodiment of the present application.
- FIG. 1 is a conference system provided in an embodiment of the present application, and the conference system includes a computer 1, a connecting line 2, a screen transmitter 3 and an interactive tablet 4. Among them,
- the screen transmitter 3 has the function of sharing desktop media data, such as PPT, video or audio, and can also be called a screen projection device, a wireless screen projection device or a screen transmitter.
- a connecting line 2 can be provided between the computer 1 and the screen transmitter 3 to connect to each other through wired communication.
- the connecting line 2 can be a Universal Serial Bus (USB) connecting line, a High Definition Multimedia Interface (HDMI) connecting line, a Type-C connecting line or a network cable.
- USB Universal Serial Bus
- HDMI High Definition Multimedia Interface
- Type-C connecting line or a network cable.
- the connecting line 2 and the screen transmitter 3 can be integrally formed or separately formed.
- the screen transmitter 3 and the Type-C connecting line of the embodiment of the present application are integrally formed.
- the user can connect computer 1 to screen transmitter 3 using connecting cable 2, and then transmit the image of the meeting document displayed on the screen of computer 1 to interactive white board 4 hung on the wall through screen transmitter 3 for display.
- the interactive tablet 4 can also be called an interactive smart tablet, an intelligent interactive tablet, an intelligent interactive whiteboard, a large-screen tablet, etc.
- the hardware part of the interactive tablet 4 is composed of a touch display module, an intelligent processing system (including a controller), etc., which are combined together by an overall structural part and are also supported by a dedicated software system.
- the touch display module includes a display screen, a touch component and a backlight component.
- the backlight component It is used to provide backlight source for the display screen.
- the display screen generally adopts a liquid crystal display device for displaying pictures.
- the touch component is set on the display screen or at the front end of the display screen to collect the user's touch operation data and send the collected touch operation data to the intelligent processing system for processing.
- Screen transmission can only be performed after the interactive tablet 4 and the screen transmission device 3 establish a data connection.
- Screen transmission refers to displaying the content of one screen on another screen, for example, displaying the content of the computer screen on the interactive tablet 4, or displaying the content of the mobile phone screen on the interactive tablet 4 or the TV screen.
- the screen transmission device 3 is the transmission medium between the two screens involved in the screen transmission process. It can establish a wired connection with the device where one of the screens is located through an interface, and establish a wireless connection with the devices where the two screens are located through a wireless module.
- the screen transmitter 3 and the interactive tablet 4 can be connected via wireless communication, which includes but is not limited to: Wi-Fi, Bluetooth or other short-range wireless communication methods.
- FIG. 2 is a structural diagram of an implementation of a wireless screen transmitter provided in an embodiment of the present application.
- the screen transmitter 3 may include a Type-C interface 11, a processor 12, a memory 13, and a wireless module 14.
- the processor 12 is connected to the Type-C interface 11, the memory 13, and the wireless module 14, respectively.
- the Type-C interface of some computers does not support the transmission of DP format or the DP channel of the screen transmitter fails, it is easy to cause the screen transmitter to be unable to directly transmit audio and video data in DP format.
- the general practice of the related technology is to equip the interactive tablet 4 with an interface adapter.
- the interface adapter such as the Type-C interface and USB2.0 interface adapter
- the screen transmitter 3 can be inserted into other interfaces of the computer 1 (such as the USB2.0 interface), or directly prompt the user to replace the new screen transmitter 3.
- the operation is cumbersome and the user experience is poor.
- the screen transmitter 3 has a Type-C interface 11, and the Type-C interface 11 of the screen transmitter 3 may include a bus power VBUS pin.
- the user can insert the Type-C interface 11 into the Type-C interface of the computer, and the computer can provide the screen transmitter 3 with a basic working voltage through the bus power VBUS pin of the Type-C interface 11, and the working voltage may be 5V or other voltages, and the screen transmitter 3 starts to work under the power supply of the basic voltage.
- USB-Type-C is a hardware interface specification of a universal serial bus (USB). It has a faster transmission speed (up to 10 Gbps) and more powerful power transmission (up to 100 W), and is compatible with USB2.0, USB3.0 and DP (DisplayPort).
- the differential signal transmission pins in the Type-C interface 11 can be used as a DP interface to transmit DP video data; the USB2.0 data transmission pins D+ and D- in the Type-C interface 11 can be connected to the corresponding pins in the terminal device by directly plugging in or connecting an interface converter to receive USB2.0 data output by the terminal device.
- the processor 12 is the control center of the wireless screen transmitter 3, which uses various interfaces and lines to connect the various parts of the entire wireless screen transmitter 3, and executes various functions of the wireless screen transmitter 3 and processes data by running or executing software programs and/or modules stored in the memory 13, and calling data stored in the memory 13, thereby monitoring the wireless screen transmitter 3 as a whole.
- the memory 13 is used to store an executable program, and the executable program is used to be executed by the first processor of the terminal device after being downloaded to the terminal device, so that the first processor compresses the audio and video data currently output by the first processor to the first display into media data in the USB2.0 protocol format, and outputs the media data in the USB2.0 protocol format from the Type-C socket of the terminal device.
- the Type-C interface 11 in the embodiment of the present application can receive both the audio and video data in the USB2.0 protocol format after encoding and compression by the terminal device, and the audio and video data in the DP protocol format that are not compressed by the terminal device.
- the wireless module 14 is a modular product realized by means of wireless communication technology, which can send the received signal to the wireless communication network in a wireless form, so that the signal can be captured by the network node in the wireless communication network.
- wireless communication technology for example, WiFi modules, Bluetooth modules or ZigBee modules are currently widely used in short-range local area network communications.
- the wireless module 14 provided in this embodiment can send the audio and video data obtained from the terminal device to other network nodes in the wireless communication network for displaying the video screen.
- the Type-C interface 11 on the wireless screen transmitter 3 is set as a plug, and the video signal interface on the terminal device is a socket.
- the technical solution is specifically explained by taking the interface of the terminal device as a socket and the interface of the wireless screen transmitter as a plug as an example.
- people can insert the Type-C interface 11 of the wireless screen transmitter 3 into the video signal interface of the personal computer.
- the network node module of the large-screen flat panel used for the conference is paired with the wireless module 14 of the wireless screen transmitter 3 in the same wireless communication network, and then the display of the personal computer can be displayed.
- the audio and video data corresponding to the device screen is transmitted to the large-screen flat panel for conference use, realizing wireless screen transmission without downloading the driver on the personal computer.
- the wireless screen transmitter of the embodiment of the present application may include a data conversion chip, which can be connected between the Type-C interface and the processor.
- the data conversion chip can perform data format conversion on the media data in the DP protocol format received by the Type-C interface of the wireless screen transmitter, and convert the media data in the DP protocol format into data in the MIPI format.
- the embodiment of the present application provides a data transmission method, as shown in FIG3, the data transmission method is applied to the screen transmitter 3 shown in FIG1, the screen transmitter 3 can be electrically connected to the computer 1 (i.e., the terminal device), and the computer 1 is used as an example for specific description.
- the specific process of the method may include the following steps 101 to 104, please refer to FIG3 and FIG4 for details:
- Type-C interface When the Type-C interface is connected to a terminal device, start establishing a handshake between the DP protocol and the USB2.0 protocol and the terminal device.
- the purpose of establishing a handshake between the DP protocol and the USB2.0 protocol and the terminal device is to obtain media data in the DP protocol format.
- the computer can send an inquiry data packet to the screen transmitter 3 through the CC pin of the Type-C interface.
- the inquiry data packet can be information customized by the supplier; after receiving the signal, the screen transmitter 3 sends a response message to the computer through its CC pin.
- the response information is used to describe the device properties of the screen transmitter 3, which may include the current working mode or supported working mode of the screen transmitter 3, the specific power supply range and other information, and the description that the device type of the screen transmitter 3 is an external storage device.
- the computer can set the power supply voltage for the screen transmitter 3 according to the power supply range information.
- run_mode can be recorded as the transmission mode number. If run_mode is set to 1, the wireless screen transmitter works in DP transmission mode; if run_mode is set to 0, the wireless screen transmitter works in USB2.0 transmission mode.
- DP transmission mode is a specific example of Type-C transmission mode
- USB2.0 transmission mode is a specific example of Type-A transmission mode.
- the response information sent by the screen transmitter 3 to the computer may include that the current working mode of the screen transmitter 3 is DP transmission mode.
- the Type-C interface of the computer can be set to work in DP transmission mode, and the DP driver pre-installed in the computer operating system can be called.
- the differential signal of the screen transmitter 3 can be transmitted through the differential pins in the Type-C interface of the computer.
- the input pin pair (as a DisplayPort interface) transmits media data in the DP protocol format including audio and video.
- step 103 determine whether media data in the DP protocol format is received within a preset time. If not, execute step 103.
- the media data in the DP protocol format is generated by processing the media data currently displayed on the screen of the terminal device based on the DP protocol.
- step 103 is executed.
- the computer can encode the media data to obtain the media data in the USB2.0 protocol format.
- the screen transmitter can transmit the media data in the USB2.0 protocol format through the USB2.0 data transmission pins D+ and D- in Type-C.
- the transmission mode is the Type-A transmission mode.
- the wireless screen transmitter can use the Type-A transmission mode to transmit data with the computer to obtain the corresponding media data in the USB2.0 protocol format.
- the above implementation can make the wireless screen transmitter automatically switch to the Type-A transmission mode when it cannot work normally in the Type-C transmission mode, avoiding the user's manual switching, simplifying the operation and saving time.
- the method provided in the embodiment of the present application may further include the following steps:
- media data in the DP protocol format is received, it is determined whether the target parameters are obtained within a preset time period, and the target parameters are obtained by identifying and processing the media data in the DP protocol format; if the target parameters are not obtained, a switching instruction is sent to the terminal device, and the switching instruction is used to enable the terminal device to take a screenshot and encode the currently displayed media data.
- the processor cannot process data based on the target parameters, resulting in the wireless screen transmitter failing to work properly.
- the target parameters are required for the wireless screen transmitter to work properly in the Type-C transmission mode.
- the target parameter is the target parameter, that is, the wireless screen transmitter can work normally in Type-C transmission mode only after obtaining the target parameter.
- the target parameter can be the resolution parameter of the terminal device, or other parameters.
- the specific parameter type of the target parameter should not be understood as a limitation to this application.
- the data conversion chip of the embodiment of the present application can also calculate the target parameters based on the data in the DP protocol format, and send the target parameters together with the data in the MIPI format to the processor, and the processor encodes the data in the MIPI format based on the target parameters.
- the data conversion chip and the processor are physically connected through an integrated circuit bus (Inter-Integrated Circuit, IIC or I2C) and a mobile industry processor interface (Mobile Industry Processor Interface, MIPI) signal line, wherein the integrated circuit bus is used to transmit control data, such as target parameters, and the mobile industry processor interface signal line is used to transmit video data, such as data in MIPI format.
- IIC or I2C Inter-Integrated Circuit
- MIPI Mobile Industry Processor Interface
- the processor receives the target parameters transmitted by the integrated circuit bus, it controls the data conversion chip to obtain video data through the mobile industry processor interface signal line.
- the media data in the DP protocol format can be sent to the data conversion chip.
- the media data in the DP protocol format can be calculated to obtain target parameters, such as resolution.
- the data conversion chip can also convert the media data in the DP protocol format to MIPI format data.
- the MIPI format data is a data format suitable for the processor.
- the data conversion chip can convert the video part of the media data into MIPI format data, and convert the audio part of the media data into I2S format data.
- the target parameters and the two formatted media data can be provided to the processor.
- the wireless screen transmitter does not obtain the target parameters within the preset time period, it means that the wireless screen transmitter cannot work normally in the Type-C transmission mode within the preset time period, and then a switching instruction is sent to the terminal device, and the switching instruction is used to enable the terminal device to take screenshots and encode the currently displayed media data.
- the step of "sending a switching instruction to the terminal device, wherein the switching instruction is used to cause the terminal device to take a screenshot and perform encoding processing on the currently displayed media data" may specifically include the following steps 121 to 123:
- the computer may receive a second application from the wireless screen transmission device.
- the second application is integrated with a screen transmission service program, and the screen transmission service program is used to automatically run the second application when the wireless screen transmission device is connected to the terminal device.
- the wireless screen transmitter When the computer has started the second application, if the wireless screen transmitter switches from Type-C transmission mode to Type-A transmission mode, it sends a mode switching instruction to the computer. After the computer receives the mode switching instruction, the computer automatically runs the second application and uses the second application to screenshot the computer's media data to obtain screen capture data.
- the second application can also encode the screen capture data to obtain media data in USB2.0 protocol format. It should be noted that the computer is not limited to the method of obtaining the second application. For example, the computer can also obtain and install the second application from other third-party devices or specific websites.
- the memory of the wireless screen transmission device may pre-store the second application.
- the operation process may be as follows:
- the computer can receive the response information sent by the wireless screen transmitter.
- the computer can also display the drive letter of the corresponding external storage device according to the description of its device type.
- the computer does not have the second application installed (such as the first time the computer is paired or connected with the wireless screen transmitter, or the computer installs the second application and then uninstalls the second application)
- the user needs to open the operation of the corresponding drive letter of the wireless screen transmitter on the computer side, and then display the content stored in the storage space of the wireless screen transmitter, that is, display the icon corresponding to the program stored in the wireless screen transmitter: such as the icon of the second application.
- the second application stored in the wireless screen transmitter is loaded into the computer's memory through the USB2.0 data transmission pins D+ and D- in the Type-C interface 11 for execution by the computer's processor.
- the wireless screen transmitter can send a pop-up instruction to the interactive tablet that is paired and connected to it, so that the interactive tablet pops up a prompt box to prompt the user to manually open the corresponding drive letter on the computer side and install the second application.
- the second application is integrated with a screen transmission service program for automatically running the second application.
- the screen transmission service program will run in the background of the computer, so that the second application will be automatically started when the computer is plugged into the wireless screen transmission device for the second time, without the need for manual operation by the user.
- the wireless screen sharing device When the computer has started the second application, if the wireless screen sharing device is in Type-C transmission mode Switching to Type-A transmission mode sends a switching instruction to the computer. After the computer receives the switching instruction, the computer will automatically run the second application and use the second application to take a screenshot of the computer's media data to obtain screen capture data.
- the second application can also encode the screen capture data to obtain media data in the USB2.0 protocol format.
- the method for the computer to obtain the second application is not limited to this.
- the computer can also obtain and install the second application from other third-party devices or specific websites.
- step 121 may specifically include the following steps: determining whether the terminal device has a second application installed;
- a pop-up instruction is sent to the display device paired with the wireless screen transmitter to instruct the user to install the second application.
- the wireless screen transmitter can first determine whether the terminal device has the second application installed. If it is installed, the wireless screen transmitter sends a switching instruction to the terminal device, thereby instructing the terminal device to run the second application, and then encode the media data through the second application; if it is not installed, a pop-up instruction is displayed on the display device paired with the wireless screen transmitter to instruct the user to install the second application.
- the terminal device can specifically implement the encoding of media data by running the second application stored in itself, which can improve the stability of the encoding process.
- the second application is integrated with a screen transmission service program, and the screen transmission service program is used to automatically run the second application when the wireless screen transmission device is connected to the terminal device.
- the wireless screen transmitter can also perform the following steps: run iptables routing rules to achieve switching of the screen transmitter network segment.
- the wireless screen transmitter When the wireless screen transmitter operates in Type-A transmission mode, the hardware interface connecting the wireless screen transmitter and the terminal device is virtualized as a wired network card, which has its own wired network segment; the wireless module in the wireless screen transmitter has its own wireless network segment.
- the transmission path of media data is: the hardware interface of the wireless screen transmitter (virtualized as a wired network card) - The processor of the wireless screen transmitter - the wireless module of the wireless screen transmitter - the display device. Therefore, the wireless screen transmitter can realize the switching from the wired network segment to the wireless network segment by running the iptables routing rules.
- the wireless screen transmitter receives media data in USB 2.0 protocol format sent by the terminal device through the USB 2.0 data transmission pins D+ and D- in the Type-C interface 11.
- the wireless screen transmitter After the wireless screen transmitter receives the media data in the USB2.0 protocol format sent by the terminal device, the wireless screen transmitter can transmit the media data in the USB2.0 protocol format to the display device through its own wireless module, such as the wireless module 14 shown in Figure 2, and the display device will display it.
- the wireless screen transmitter can transmit the media data in the USB2.0 protocol format to the display device through its own wireless module, such as the wireless module 14 shown in Figure 2, and the display device will display it.
- the wireless screen transmitter when the target parameters are not received within the preset time period, the wireless screen transmitter will automatically switch its own transmission mode, so that when one of the two transmission modes is in a faulty working state and the other is in a normal working state, it can quickly enter the normal working state without the need for manual switching by the user, thereby improving the problem of cumbersome operation and time-wasting of the prior art.
- the method provided in the embodiment of the present application may further include the following steps S1 to S3:
- the data conversion chip of the wireless screen transmitter can be connected between the Type-C interface and the processor.
- the data conversion chip can perform data format conversion on the media data in the DP protocol format received by the Type-C interface of the wireless screen transmitter, and convert the media data in the DP protocol format into data in the MIPI format.
- the media data in the DP protocol format can be sent to the data conversion chip.
- the format of the data can be converted to data in the MIPI format.
- the data in the MIPI format is a data format suitable for the processor.
- the data conversion chip can convert the video part of the media data into data in the MIPI format, and convert the audio part of the media data into data in the I2S format. After the format conversion of the data conversion chip, these two formatted media data can be provided to the processor.
- the data conversion chip of the wireless screen transmitter sends the data in MIPI format to the processor in the wireless screen transmitter. After receiving the data in MIPI format, the processor can compress and encode the data in MIPI format.
- step S2 includes the following steps S21 to S22:
- the memory of the wireless screen transmitter may pre-store a first application, the processor may obtain the first application from the memory and execute the first application, and the first application may compress and encode data in MIPI format.
- the wireless screen transmitter can implement encoding processing of media data by running the first application stored in itself.
- the first application stored in the wireless screen transmitter can be customized for the wireless screen transmitter without being compatible with other hardware, so the error rate is low and the stability is strong.
- the wireless screen transmitter can transmit the encoding result to the display device through the communication network through its own wireless module.
- the display device is the screen transmission receiving end, such as the interactive tablet 4 in Figure 1.
- the display device can receive the encoding result, decode the encoding result to obtain media data, and then display the media data.
- the display device can have a receiving box, which can be integrated with the display device or designed separately from the display device; the receiving box is used to receive the media data from the wireless screen transmitter and transmit it to the display device for display.
- step S3 can be a step executed after confirming that the screen transmission instruction has been received.
- the wireless screen transmitter can continue to work in Type-C transmission mode: collect media data from the terminal device, and encode the media data by the wireless screen transmitter to obtain the encoding result, and transmit the encoding result to the display device. If the wireless screen transmitter receives the target parameters within the preset time period, it can continue to transmit the screen in Type-C transmission mode, thereby increasing the speed of screen transmission.
- step 103 may specifically include the following steps 1031 to 1033:
- step 1031 determines whether the media data in the DP protocol format is not received. If so, execute step 1032; if not, execute step 1033.
- the second application is integrated with a screen transmission service program, and the screen transmission service program is used to automatically run the second application when the wireless screen transmission device is connected to the terminal equipment.
- the wireless screen transmitter can first determine whether the terminal device has the second application installed. If it is installed, the wireless screen transmitter sends a switching instruction to the terminal device, thereby instructing the terminal device to run the second application, and then encode the media data through the second application; if it is not installed, a pop-up instruction is displayed on the display device paired with the wireless screen transmitter to instruct the user to install the second application.
- the terminal device can specifically implement the encoding of media data by running the second application stored in itself, which can improve the stability of the encoding process.
- the wireless screen transmitter can send a pop-up command to the interactive tablet that is paired with it, so that the interactive tablet pops up a prompt box to prompt the user to manually open the corresponding drive letter on the computer and install the second application.
- the media data in the USB 2.0 protocol format is generated by processing the media data after screenshots and encoding of the terminal device based on the USB 2.0 protocol.
- the handshake process of establishing the DP protocol and the USB2.0 protocol with the terminal device can be started.
- the handshake is successful, it is determined whether the media data in the DP protocol format is received within the preset time, and the media data in the DP protocol format is generated by processing the media data currently displayed on the screen of the terminal device based on the DP protocol.
- a switching instruction is sent to the terminal device; wherein the switching instruction is used to make the terminal device take screenshots and encode the currently displayed media data; the wireless screen transmitter receives the media data in the USB2.0 protocol format sent by the terminal device, and the media data in the USB2.0 protocol format is generated by processing the media data after the terminal device is taken screenshots and encoded based on the USB2.0 protocol. If the media data in the DP protocol format cannot be received within the preset time, it means that the wireless screen transmitter cannot currently work normally in the Type-C transmission mode, so the wireless screen transmitter can use the Type-A transmission mode to transmit data with the terminal device to obtain the media data in the USB2.0 protocol format corresponding to the Type-A transmission mode.
- the above implementation can make the wireless screen transmitter automatically switch to Type-A transmission mode when it cannot work normally in Type-C transmission mode, thus avoiding the manual switching of the user, simplifying the operation and saving time. Since the wireless screen transmitter can quickly enter the normal working state when the Type-C transmission mode fails and the Type-A transmission mode is normal, without the need for manual switching by the user, the problem of cumbersome operation and time-wasting in the prior art can be improved.
- the working efficiency of the wireless screen transmitter can be improved and time can be saved.
- the method of the embodiment of the present application is described in detail by taking the target parameter being a resolution parameter as an example.
- step 202 Determine whether the resolution parameter is obtained within a preset time period. If so, execute step 203; if not, execute step 206.
- the initial transmission mode of the wireless screen transmitter is the Type-C mode (i.e., the mode in which the DP protocol and the USB2.0 protocol successfully handshake with the terminal device).
- the wireless screen transmitter maintains the Type-C mode or switches to the Type-A mode (i.e., the mode for transmitting media data in the USB2.0 protocol format) is determined based on whether the wireless screen transmitter obtains the resolution parameter within a preset time period.
- the wireless screen transmitter can encode the media data to obtain the encoding result; if it is switched to the Type-A mode, the terminal device can encode the media data to obtain the encoding result, and then send it to the wireless screen transmitter, and the wireless screen transmitter transmits the encoding result to the display device. Since the wireless screen transmitter can quickly enter the normal working state when the Type-C mode fails in the two transmission modes and the Type-A mode is normal, without the need for manual switching by the user, the problem of cumbersome operation and time waste in the prior art can be improved.
- FIG. 5 shows a method provided by another embodiment of the present application, which specifically includes the following steps A1 to A4:
- step A1 Detect whether the Type-C interface is connected to the terminal device. If so, execute step A2.
- A2 Use Type-C transmission mode to perform data transmission with the terminal device to obtain media data in DP protocol format.
- step A2 may specifically include the following steps A21 to A23:
- A21 Collect media data in the DP protocol format and convert it into data in MIPI format.
- A22 Encode the data in the MIPI format to obtain an encoding result.
- A23 Transmit the encoding result to the display device, so that the display device decodes and displays the media data corresponding to the encoding result.
- media data is collected from the terminal device, and the screen transmitter encodes the media data to obtain an encoding result, and transmits the encoding result to the display device.
- step A3 Determine whether the target parameters can be obtained according to the media data in the DP protocol format within a preset time. If not, execute step A4.
- step A4 may specifically include the following steps A41 to A43:
- A41 Switch the transmission mode from the Type-C transmission mode to the Type-A transmission mode, so that the terminal device encodes the media data to obtain the media data in the USB2.0 protocol format.
- step A41 may specifically include the following steps A411 to A413:
- A411 Determine whether the terminal device has a second application installed. If so, execute step A412; if not, execute step A413.
- A412. Send a switching instruction to the terminal device to instruct the terminal device to run the second application, and encode the media data through the second application to obtain the media data in the USB2.0 protocol format.
- A413. Send a pop-up instruction to the display device paired with the wireless screen transmitter to instruct the user to install the second application.
- the wireless screen transmitter can first determine whether the terminal device has the second application installed. If it is installed, the wireless screen transmitter sends a switching instruction to the terminal device, thereby instructing the terminal device to run the second application, and then encode the media data through the second application; if it is not installed, a pop-up instruction is displayed on the display device paired with the wireless screen transmitter to instruct the user to install the second application.
- the terminal device can specifically implement the encoding of media data by running the second application stored in itself, which can improve the stability of the encoding process.
- A42 Receive the media data in the USB2.0 protocol format sent by the terminal device.
- A43 Transmit the media data in the USB 2.0 protocol format to a display device, so that the display device decodes and displays the media data corresponding to the media data in the USB 2.0 protocol format.
- the encoding processing operation of the media data is performed by the terminal device. After the terminal device obtains the encoding result, it sends the encoding result to the screen transmitter, and the screen transmitter then transmits the encoding result to the display device.
- the Type-C transmission mode when the Type-C interface is connected to the terminal device, the Type-C transmission mode can be used to perform data transmission with the terminal device to obtain media data in the DP protocol format. Then determine whether the target parameters can be obtained according to the media data in the DP protocol format within the preset time; if it cannot be obtained, it means that the wireless screen transmitter cannot currently work normally in the Type-C transmission mode, so the wireless screen transmitter can use the Type-A transmission mode to perform data transmission with the terminal device to obtain media data in the USB2.0 protocol format corresponding to the Type-A transmission mode.
- the above implementation can enable the wireless screen transmitter to automatically switch to the Type-A transmission mode when it cannot work normally in the Type-C transmission mode, thereby avoiding manual switching by the user, simplifying the operation, and saving time.
- the method provided in the embodiment of the present application is applied to a wireless screen transmitter, wherein the wireless screen transmitter comprises a Type-C interface, a first data conversion chip and a processor, wherein the Type-C interface is connected to the processor via the first data conversion chip, and the Type-C interface comprises a differential signal pin and a USB2.0 data pin; the method comprises the following steps B1 to B4:
- the first data conversion chip converts the media data in the DP protocol format into MIPI format data, obtains target parameters according to the media data in the DP protocol format, and sends the MIPI format data and the target parameters to the processor;
- the first data conversion chip is connected to the processor via an ICC bus and a MIPI signal line respectively, and the first data conversion chip sends a notification instruction to the processor via the ICC bus, and the notification instruction is used to inform the processor whether the first data conversion chip has received media data in the DP protocol format within a preset time period; the first data conversion chip sends MIPI format data via the MIPI signal line.
- the wireless screen transmitter is pre-designed to be compatible with two transmission modes, namely, the Type-C transmission mode and the Type-A transmission mode, that is, the wireless screen transmitter can support the transmission of media data in the DP protocol format and the USB2.0 protocol format.
- the wireless screen transmitter may be pre-stored with a first code, a second code, and a third code, the first code being used to implement the Type-C transmission mode, thereby implementing the transmission of media data in the DP protocol format, the second code being used to implement the Type-A transmission mode, thereby implementing the transmission of media data in the USB2.0 protocol format, and the third code being used to implement the transmission mode switching of the wireless screen transmitter, namely, the switching between the Type-C transmission mode and the Type-A transmission mode.
- the first code, the second code, and the third code may be stored in a memory, and the processor may call and execute from the memory to implement the corresponding functions.
- the third code may include a transmission mode instruction run_mode.
- the first data conversion chip in the wireless screen transmitter will establish a communication process with the computer, including a handshake of the DP protocol and a handshake of the USB2.0 protocol.
- the coded data is sent to the wireless module, and the wireless module sends it to the interactive tablet through the wireless communication network, so that the wireless screen transmitter can work normally in Type-C transmission mode.
- the wireless screen transmitter waits for the target parameter indefinitely, the screen transmission process will be prolonged, causing a bad experience for the user. Therefore, in the embodiment of the present application, when the operating system of the processor is started, the timer is started to count, and if the target parameter is received within the second preset time, the wireless screen transmitter operates in the Type-C transmission mode as described above. In addition, the processor will generate a notification instruction to send to the second application installed on the computer, so that the second application does not perform tasks such as screenshots and encoding processing, thereby making it impossible for the computer to send media data in the USB2.0 protocol format to the wireless screen transmitter, thereby making the computer work in the Type-C transmission mode instead of the Type-A transmission mode.
- the processor then sends the received media data in the USB2.0 protocol format to the wireless module, and the wireless module then sends it to the interactive tablet through the wireless communication network.
- the processor then sends the received media data in the USB2.0 protocol format to the wireless module, and the wireless module sends it to the interactive tablet through the wireless communication network.
- the program enables the second application to take a screenshot and encode the current media data of the computer, obtain the media data in the USB2.0 protocol format, and send the media data in the USB2.0 protocol format to the processor through the USB2.0 data pin.
- the processor then sends the received media data in the USB2.0 protocol format to the wireless module, and the wireless module then sends it to the interactive tablet through the wireless communication network.
- the received media data in the DP protocol format cannot be converted into MIPI format data.
- the processor waits for the MIPI format data, the screen transmission process will be prolonged, which will cause a bad experience for the user. Therefore, in the embodiment of the present application, when the operating system of the processor is started, the timer is started to count.
- step B4 may specifically include the following steps B41 to B42:
- the processor fails to receive the MIPI format data within the first preset time, or fails to obtain the target parameters within the second preset time, or determines within the third preset time that the first data conversion chip has not received the media data in the DP protocol format
- the processor controls the acquisition of the second application from the memory and sends it to the terminal device through the USB2.0 data pin, so that the second application runs on the terminal device, and the second application is used to take a screenshot and encode the current media data of the terminal device to obtain media data in the USB2.0 protocol format.
- the processor controls the switching to receive the media data in the USB2.0 protocol format sent by the terminal device through the USB2.0 data pin.
- the Type-C interface receives the media data in the DP protocol format and sends the media data in the DP protocol format to the first data converter.
- the first data conversion chip converts the media data in the DP protocol format into the MIPI format data, and the first data conversion chip obtains the target parameters according to the media data in the DP protocol format.
- the first data conversion chip sends the MIPI format data and the target parameters to the processor.
- the processor When the processor fails to receive the MIPI format data within the first preset time, or fails to obtain the target parameters within the second preset time, or determines within the third preset time that the first data conversion chip has not received the media data in the DP protocol format, the processor switches to receiving the media data in the USB2.0 protocol format through the USB2.0 data pin.
- the above implementation mode can enable the processor of the wireless screen transmitter to automatically switch to a transmission mode for receiving media data in USB2.0 protocol format when it is unable to normally process MIPI format data and the target parameters, thereby avoiding manual switching by the user, simplifying the operation and saving time.
- the embodiment of the present application also provides a data transmission device, such as the Type-C type screen transmitter 3 shown in Figure 1, see Figure 8 for details, which may include a Type-C interface 11, a first data conversion chip 51, a processor 12 and a wireless module 14.
- the Type-C interface 11 includes a first data pin and a second data pin, the first data pin is connected to the processor 12 through the first data conversion chip 51, the second data pin is connected to the processor 12, and the processor 12 is connected to the memory 13 and the wireless module 14 respectively.
- the first data conversion chip 51 may be damaged, the communication path between the processor 12 and the first data conversion chip 51 or the communication module in the processor 12 may be damaged, or the terminal device may not support the transmission of media data in the DP protocol format, resulting in the first data conversion chip 51 not receiving the media data in the DP protocol format or other reasons causing the processor 12 to be unable to receive the MIPI format data sent by the first data conversion chip 51 within the preset time period, thereby causing the wireless screen transmission function to be unusable.
- the first data conversion chip 51 even if the first data conversion chip 51 receives the media data in the DP protocol format, if the first data conversion chip 51 cannot identify the media data in the DP protocol format and obtain the target parameters, the wireless screen transmission function will also be unusable.
- the first data pin and the second data pin in the embodiment of the present application can both be used to obtain the current media data of the terminal device (including the currently displayed video data, audio data, and control instructions, etc.), and the data formats of the media data obtained by the two are different.
- the first data pin is used to receive media data in the DP protocol format from the terminal device
- the second data pin is used to receive media data in the USB2.0 protocol format from the terminal device.
- the first data conversion chip 51 is used to receive the media data in the DP protocol format, And convert the received media data in DP protocol format into data in MIPI format, obtain target parameters based on the media data in DP protocol format, and send the data in MIPI format and target parameters to the processor 12; the processor 12 is used to receive the media data in USB2.0 protocol format through the second data pin when the processor 12 does not receive the MIPI format data sent by the first data conversion chip within a preset time period.
- the wireless screen transmitter in the embodiment of the present application has two data transmission links, namely the first data pin-first data conversion chip-processor and the second data pin-processor. If the processor does not receive data in MIPI format within a preset time period, it means that the wireless screen transmitter cannot directly use the first data pin-first data conversion chip-processor to work normally. At this time, it can switch to work through the second data pin-processor data transmission link, thereby avoiding the situation where the wireless screen transmitter cannot work due to the abnormality of the first data pin-first data conversion chip-processor data transmission link.
- the Type-C interface of the wireless screen transmitter has a total of 24 pins, including two rows of pins with the same function, and the two rows of pins with the same function support forward or reverse insertion.
- the TYPE-C interface includes two pairs of power pins (A9, B4, B9, A4), four pairs of TX/RX pins (A11 and B2, A10 and B3, A4 and B10, A2 and B11, i.e., the first data pins), two pairs of USB2.0 data pins, D+/D- pins (A6 and B7, A7 and B6, i.e., the second data pins) and the CC pin (A5) used for pairing communication when inserting pairing.
- TX+, TX-, RX+ and RX- in each group of pins are differential signal transmission pins, and each group of differential signal transmission pins supports working in USB mode or DP (DisplayPort) mode.
- DP DisplayPort
- the signal transmission pin pair transmits USB3.0 signals;
- the differential signal transmission pin pair works in DP mode, the signal transmission pin pair is used as a DP (DisplayPort) interface to transmit media data in DP protocol format.
- Each set of USB D+/D- pins supports working in USB2.0 mode and is used to transmit USB2.0 format data.
- the computer can power on the wireless screen transmitter through the VBUS pin in the Type-C interface of the wireless screen transmitter to provide the wireless screen transmitter with working voltage.
- the computer can send an inquiry data packet to the wireless screen transmitter through the CC pin of the Type-C interface.
- the inquiry data packet can be information customized by the supplier; after receiving the signal, the wireless screen transmitter sends a response message to the computer through its CC pin.
- the response message is used to describe the device properties of the wireless screen transmitter, specifically It may include information such as the current working mode or supported working mode of the wireless screen transmitter, the specific power supply range, and a description of the device type of the wireless screen transmitter as an external storage device.
- the response information sent by the wireless screen transmitter to the computer may include that the current working mode of the wireless screen transmitter is DP transmission mode.
- the computer's Type-C interface can be set to work in DP transmission mode, and the DP driver pre-installed in the computer operating system is called, and the media data in the DP protocol format including audio and video is transmitted to the differential signal transmission pin pair (i.e., the first data pin) of the wireless screen transmitter through the differential pin pair in the computer's Type-C interface.
- the differential signal transmission pin of the wireless screen transmitter is connected to the processor 12 through the first data conversion chip 51.
- the media data in the DP protocol format is sent to the first data conversion chip 51.
- the first data conversion chip 51 can convert the video part of the media data in the DP protocol format into MIPI format data, and convert the audio part of the media data in the DP protocol format into I2S format media data.
- the two formatted media data can be provided to the processor 12.
- the processor 12 is a hardware processor (such as an ARM processor), and the processor 12 can compress and encode the two formatted media data.
- the first data conversion chip 51 can also calculate the target parameters based on the received media data in the DP protocol format, and send the target parameters together with the converted MIPI format data to the processor, and the processor encodes the MIPI format data based on the target parameters.
- the data conversion chip and the processor are physically connected through an integrated circuit bus (Inter-Integrated Circuit, IIC or I2C) and a mobile industry processor interface (Mobile Industry Processor Interface, MIPI) signal line, wherein the integrated circuit bus is used to transmit control data, such as target parameters, and the mobile industry processor interface signal line is used to transmit video data, such as data in MIPI format.
- IIC or I2C Inter-Integrated Circuit
- MIPI Mobile Industry Processor Interface
- the processor receives the target parameters transmitted by the integrated circuit bus, it controls the data conversion chip to obtain video data through the mobile industry processor interface signal line.
- USB D+/D- pins Two pairs of USB D+/D- pins are directly connected to the processor 12, which can obtain media data in the USB2.0 protocol format from the computer side and send the obtained media data in the USB2.0 protocol format directly to the processor 12.
- the processor is configured to: when the data in the MIPI format is not received within a first preset time, or When the target parameter is not obtained within the second preset time, or when it is determined within the third preset time that the first data conversion chip has not received the media data in the DP protocol format, it switches to data transmission with the computer through the USB2.0 data pin to obtain media data in the USB2.0 protocol format.
- the wireless screen transmitter cannot work normally to transmit the wireless screen content to the display device.
- the processor 12 controls the acquisition of media data in the USB2.0 protocol format from the computer side through two pairs of USB D+/D- pins.
- the wireless screen transmitter also includes a memory 13, which can pre-store a second application program, and the second application program can be sent to a computer to run on the computer.
- a memory 13 can pre-store a second application program, and the second application program can be sent to a computer to run on the computer.
- the processor of the wireless screen transmitter has not received the data in the MIPI format within the first preset time, or has not obtained the target parameter within the second preset time, or has determined within the third preset time that the first data conversion chip has not received the media data in the DP protocol format
- a switching instruction can be sent to the computer.
- the second application program is automatically run, and the second application program is used to take a screenshot of the computer's media data to obtain screen capture data.
- the second application program can also encode the screen capture data to obtain media data in the USB2.0 protocol format, and transmit the screen capture data to the computer through the second application program.
- the USB D+/D- pin in the computer's Type-C interface sends the media data in the USB2.0 protocol format to the USB D+/D- pin in the Type-C interface of the wireless screen transmitter.
- the USB D+/D- pin in the Type-C interface sends it to the processor.
- the processor then sends the received media data in the USB2.0 protocol format to the wireless module 14.
- the wireless module 14 can send the media data in the USB2.0 protocol format obtained from the terminal device to other network nodes in the wireless communication network (such as the interactive tablet shown in Figure 1) for displaying the video screen.
- the user When the second application is not installed (such as the first time the computer is paired or connected with the wireless screen transmitter, or the computer has installed the second application and then uninstalled the second application), the user needs to open the drive letter corresponding to the wireless screen transmitter on the computer to display the contents stored in the storage space of the wireless screen transmitter, that is, to display the icon corresponding to the program stored in the wireless screen transmitter: such as the icon of the second application. At this time, the user needs to manually double-click or right-click the icon of the second application to run it, and the computer receives the second application.
- the second application stored in the wireless screen transmitter is loaded into the computer's memory through the USB2.0 data transmission pins D+ and D- in the Type-C interface 11 for execution by the computer's processor.
- the second application is integrated with a screen transmission service program for automatically starting the second application.
- the screen transmission service program will run in the background of the computer, so that the second application will be automatically started when the computer is plugged into the wireless screen transmission device for the second time, without the need for manual operation by the user.
- the wireless screen transmitter can send a pop-up command to the interactive tablet that is paired with it, so that the interactive tablet pops up a prompt box to prompt the user to manually open the corresponding drive letter on the computer and install the second application.
- the method for the computer to obtain the second application is not limited to this.
- the computer can also obtain the second application from other third-party devices or specific websites.
- the wireless screen transmitter before the terminal device runs the second application, can also perform the following steps: run iptables routing rules to achieve switching of the screen transmitter network segment.
- the Type-c interface connecting the wireless screen transmitter and the terminal device is virtualized as a wired network card.
- the wired network card has its own wired network segment
- the wireless module 14 of the wireless screen transmitter has its own wireless network segment.
- Running the iptables routing rules can convert the wired network segment of the wired network card virtualized by the Type-c interface into the wireless network segment of the wireless module 14, thereby realizing the conversion from the wired network segment to the wireless network segment, so that the wireless screen transmitter can send the received media data in the USB2.0 protocol format to the wireless network through the wireless module, and then send it to the corresponding display node through the wireless network.
- the transmission path of the media data is: the hardware interface of the wireless screen transmitter (virtualized as a wired network card)-the processor of the wireless screen transmitter-the wireless module of the wireless screen transmitter-the display node (such as an interactive tablet).
- the processor 12 After the processor 12 receives the data in MIPI format, it is necessary to perform compression encoding processing on the data in MIPI format. During the encoding process, it is necessary to obtain the target parameters and compress the data in MIPI format according to the target parameters. If the target parameters are not received, the processor 12 cannot perform compression encoding processing. At this time, if the processor 12 does not receive the target parameters within the second preset time, it can send a switching instruction to the computer. After the computer receives the switching instruction, the computer will automatically Run the second application, and use the second application to take a screenshot of the computer's media data to obtain screen capture data. The second application can also encode the screen capture data to obtain media data in USB2.0 protocol format.
- the computer can send the media data in USB2.0 protocol format to the processor 12 of the screen transmitter 3 through the second data pin.
- the processor 12 of the screen transmitter 3 receives the media data in USB2.0 protocol format through the second data pin and sends it to the wireless module 14.
- the wireless module 14 can send the media data in USB2.0 protocol format to other network nodes in the wireless communication network (such as the interactive tablet shown in Figure 1) for displaying the video screen.
- the wireless screen transmitter provided in the embodiment of the present application, it can automatically switch to the Type-A transmission mode when the Type-C transmission mode cannot be used normally, and quickly enter the normal working state without the need for manual switching by the user, thereby improving the problems of cumbersome operation and time-wasting of the prior art.
- the first data conversion chip is connected to the processor via an ICC bus and a MIPI signal line respectively, and the first data conversion chip sends a notification instruction to the processor via the ICC bus, and the notification instruction is used to inform the processor whether the first data conversion chip has received media data in the DP protocol format within a third preset time period.
- the first data conversion chip 51 is physically connected to the processor 12 through an integrated circuit bus (Inter-Integrated Circuit, IIC or I2C) and a mobile industry processor interface (Mobile Industry Processor Interface, MIPI) signal line, wherein the integrated circuit bus is used to transmit control data, such as target parameters, and the mobile industry processor interface signal line is used to transmit video data, such as data in MIPI format.
- the first data conversion chip 51 can send a notification instruction to the processor 12 through the integrated circuit bus, and the notification instruction can inform the processor 12 whether the first data conversion chip 51 has received media data in the DP protocol format within the third preset time period. If not, the processor controls the switch to obtain media data in the USB2.0 protocol format from the computer end through two pairs of USB D+/D- pins.
- the embodiment of the present application also provides a data transmission device, including a Type-C interface, a first data conversion chip, a processor, a memory and a wireless module, the Type-C interface including a first data pin and a second data pin, the first data pin is connected to the processor through the first data conversion chip, the second data pin is connected to the processor, and the processor is connected to the memory and the wireless module respectively;
- the first data pin is used to receive media data in a DP protocol format
- the second data pin is used to receive media data in a USB2.0 protocol format
- the first data conversion chip is used to receive the media data in the DP protocol format, convert the received media data in the DP protocol format into data in the MIPI format, obtain target parameters according to the media data in the DP protocol format, and send the data in the MIPI format and the target parameters to the processor;
- the processor is used to receive media data in USB2.0 protocol format through the second data pin when the MIPI format data is not received within a first preset time, or the target parameter is not obtained within a second preset time, or when it is determined within a third preset time that the first data conversion chip has not received the media data in the DP protocol format.
- the embodiment of the present application further provides a data transmission virtual device, which is applied to a wireless screen transmitter, and the wireless screen transmitter can be electrically connected to a terminal device;
- the device comprises:
- the start establishment unit 301 is used to start the establishment of the DP protocol and the USB2.0 protocol handshake with the terminal device when the Type-C interface is connected to the terminal device;
- a media data determination unit 302 configured to determine whether media data in a DP protocol format is received within a preset time when the DP protocol handshake succeeds, wherein the media data in the DP protocol format is generated by processing the media data currently displayed on the screen of the terminal device based on the DP protocol;
- the first instruction sending unit 303 is used to send a switching instruction to the terminal device when the media data in the DP protocol format is not received, and the switching instruction is used to enable the terminal device to take a screenshot and encode the currently displayed media data;
- the media data receiving unit 304 is used to receive media data in the USB 2.0 protocol format sent by the terminal device, wherein the media data in the USB 2.0 protocol format is generated by processing the media data after screenshot and encoding of the terminal device based on the USB 2.0 protocol.
- the device further comprises:
- a target parameter determination unit configured to determine whether a target parameter is acquired within a preset time period when receiving the media data in the DP protocol format, wherein the target parameter is obtained by identifying and processing the media data in the DP protocol format;
- the second instruction sending unit is used to send a switching instruction to the terminal device when the target parameter is not obtained, and the switching instruction is used to enable the terminal device to take a screenshot and encode the currently displayed media data.
- the device further comprises:
- a format conversion unit configured to convert the received media data in the DP protocol format into MIPI format data when the target parameter is received within the preset time period
- a coding processing unit used for performing coding processing on the MIPI format data to obtain a coding result
- the encoding transmission unit is used to transmit the encoding result to a display device, so that the display device decodes and displays the media data corresponding to the encoding result.
- the second instruction sending unit may specifically include:
- an application installation subunit for determining whether the terminal device has a second application installed when the media data in the DP protocol format is not received
- a switching instruction sending subunit configured to send a switching instruction to the terminal device when the terminal device has the second application installed, so as to instruct the terminal device to run the second application, and to take a screenshot and perform encoding processing on the currently displayed media data through the second application;
- the pop-up instruction subunit is used to send a pop-up instruction to the display device paired with the wireless screen transmitter to instruct the user to install the second application when the terminal device does not have the second application installed.
- the working efficiency of the wireless screen transmitter can be improved and time can be saved.
- a person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions, and the instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
- the embodiment of the present application provides a computer-readable storage medium, which stores multiple instructions, which can be loaded by a processor to execute the steps in any one of the data transmission methods provided in the embodiment of the present application.
- the instruction can execute the following steps: detect whether the Type-C interface is connected to the terminal device; if so, use the Type-C transmission mode to transmit data with the terminal device to obtain media data in the DP protocol format; determine whether the DP protocol format is received within a preset time. if not, the Type-A transmission mode is used to transmit data with the terminal device to obtain media data in USB2.0 protocol format.
- the storage medium may include: read-only memory (ROM), random access memory (RAM), disk or CD, etc.
- a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium.
- a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the various optional implementations provided in the above embodiments.
- the instructions stored in the storage medium can execute the steps in any one of the data transmission methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the data transmission methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本申请实施例公开一种数据传输方法及其装置;包括:当Type-C接口与终端设备连接时,启动建立DP协议和USB2.0协议与终端设备的握手;当DP协议握手成功,确定预设时间内是否接收到DP协议格式的媒体数据;若未收到DP协议格式的媒体数据,则向终端设备发送切换指令,切换指令用于使得终端设备对当前显示的媒体数据进行截屏及编码处理;接收终端设备发送的USB2.0协议格式的媒体数据,USB2.0协议格式的媒体数据为基于USB2.0协议对终端设备截屏及编码处理后的媒体数据进行处理生成。由于无线传屏器可以在未接收到DP协议格式的媒体数据的情况下,快速切换从而进入正常的工作状态,而无需用户的手动切换,可改善现有技术操作繁琐、浪费时间的问题。
Description
本申请要求于2022年11月28日提交中国专利局、申请号为202211505870.5、本申请名称为“数据传输方法及其装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及计算机领域,具体涉及一种数据传输方法及其装置。
在多人会议的场景下,用户可以通过将电脑连接传屏器,将电脑的显示屏展示的内容,例如,PPT,投射到更大的显示器上,例如,交互智能平板或电视等,从而令用户更方便地与与会者分享内容。
现有存在一种传屏器可以通过其Type-C接口与电脑的Type-C接口进行连接。然而,在实际使用过程中,当上述传屏器出现连接电脑后无法将电脑的内容传输给显示器时,常见的解决方案是需要用户手动切换电脑的连接接口,或者更换一个传屏器,导致操作繁琐及浪费时间。
本申请实施例提供一种数据传输方法及其装置,可以改善现有技术中操作繁琐、浪费时间的问题。
本申请实施例提供一种数据传输方法,所述无线传屏器包括Type-C接口,所述无线传屏器支持DP协议和USB2.0协议通信;所述方法包括:当所述Type-C接口与终端设备连接时,启动建立DP协议和USB2.0协议与终端设备的握手;当所述DP协议握手成功,确定预设时间内是否接收到DP协议格式的媒体数据,所述DP协议格式的媒体数据为基于所述DP协议对所述终端设备当前屏幕显示的媒体数据进行处理生成;若未收到所述DP协议格式的媒体数据,则向所述终端设备发送切换指令,所述切换指令用于使得所述终端设备对当前显示的媒体数据进行截屏及编码处理;接收所述终端设备发送的USB2.0协议格式的媒体数据,所述USB2.0协议格式的媒体数据为基于所述USB2.0协议对所述终端设备截屏及编码处理后的媒体数据进行处理生成。
本申请实施例还提供一种数据传输方法,应用于无线传屏器,所述无线传屏器包括Type-C接口、第一数据转换芯片和处理器,所述Type-C接口通过所述第一数据转换芯片与所述处理器连接,所述Type-C接口包括差分信号引脚和USB2.0数据引脚;
所述方法包括:
通过所述差分信号引脚接收终端设备发送的DP协议格式的媒体数据;
将所接收到的所述DP协议格式的媒体数据发送至所述第一数据转换芯片;
所述第一数据转换芯片将所述DP协议格式的媒体数据转换为MIPI格式数据,以及根据所述DP协议格式的媒体数据获得目标参数,并向所述处理器发送所述MIPI格式数据以及所述目标参数;
所述处理器在第一预设时间内未接收到所述MIPI格式数据时、或者在第二预设时间内未获得所述目标参数时、或者在第三预设时间内确定所述第一数据转换芯片未接收到所述DP协议格式的媒体数据时,切换为通过所述USB2.0数据引脚接收USB2.0协议格式的媒体数据。
本申请实施例还提供一种数据传输装置,包括Type-C接口、第一数据转换芯片、处理器、存储器和无线模组,Type-C接口包括第一数据引脚和第二数据引脚,所述第一数据引脚通过所述第一数据转换芯片与所述处理器连接,所述第二数据引脚与所述处理器连接,所述处理器分别与所述存储器和所述无线模组连接;
所述第一数据引脚用于接收DP协议格式的媒体数据,所述第二数据引脚用于接收USB2.0协议格式的媒体数据;
所述第一数据转换芯片用于接收所述DP协议格式的媒体数据,并将所接收到的DP协议格式的媒体数据转换为MIPI格式的数据,且根据所述DP协议格式的媒体数据获得目标参数,及向所述处理器发送所述MIPI格式的数据和所述目标参数;
所述处理器用于在第一预设时间内未接收到所述MIPI格式的数据时、或者在第二预设时间内未获得所述目标参数时、或者在第三预设时间内确定所述第
一数据转换芯片未接收到DP协议格式的媒体数据时,通过所述第二数据引脚接收USB2.0协议格式的媒体数据。
本申请实施例提供的数据传输方法中,当所述Type-C接口与终端设备连接时,可以启动建立DP协议和USB2.0协议与终端设备的握手过程。当握手成功时,确定预设时间内是否接收到DP协议格式的媒体数据,DP协议格式的媒体数据为基于DP协议对终端设备当前屏幕显示的媒体数据进行处理生成的。若未收到DP协议格式的媒体数据,则向终端设备发送切换指令;其中,切换指令用于令终端设备对当前显示的媒体数据进行截屏及编码处理;无线传屏器接收终端设备发送的USB2.0协议格式的媒体数据,USB2.0协议格式的媒体数据为基于USB2.0协议对终端设备截屏及编码处理后的媒体数据进行处理生成。若在预设时间内无法接收到DP协议格式的媒体数据,则说明无线传屏器当前无法正常工作在DP传输模式下,故无线传屏器可以采用USB2.0传输模式与终端设备进行数据传输,以获取USB2.0传输模式对应的USB2.0协议格式的媒体数据。上述实施方式可以令无线传屏器在无法正常工作于DP传输模式的情况下,自动切换为USB2.0传输模式,避免了用户的手动切换,简化了操作,节省了时间。由于无线传屏器可以在DP传输模式故障,且USB2.0传输模式正常的情况下,快速进入正常的工作状态,而无需用户的手动切换,从而可以改善现有技术操作繁琐、浪费时间的问题。
在本申请中,可以提高无线传屏器的工作效率,节约时间。
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例示出的场景示意图;
图2是本申请实施例提供的无线传屏器的一种实施方式的结构示意图;
图3是本申请实施例提供的数据传输方法的流程示意图;
图4是本申请实施例提供的数据传输方法的时序图;
图5是本申请另一实施例提供的数据传输方法的流程示意图;
图6是本申请又一实施例提供的数据传输方法的流程示意图;
图7是本申请一实施例提供的数据传输虚拟装置的一种结构示意图;
图8是本申请实施例提供的无线传屏器的一种具体实施方式的示意性结构框图。
本申请的实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
首先,对传屏器的使用场景进行说明,以传屏器在会议使用的场景为例进行说明,具体的,请参见图1。
如图1所示,图1为本申请实施例所提供的会议系统,会议系统包括电脑1、连接线2、传屏器3和交互平板4。其中,
传屏器3具有共享桌面媒体数据的功能,诸如PPT、视频或音频,其又可称为投屏设备、无线投屏器或者传屏器等。
电脑1与传屏器3之间能够进行数据通信,例如电脑1与传屏器3之间可以设置连接线2以通过有线通信方式相互连接。连接线2可以是通用串行总线(Universal Serial Bus,简称:USB)连接线、高清多媒体接口(High Definition Multimedia Interface,简称:HDMI)连接线、Type-C连接线或者网线等。其中连接线2和传屏器3可以一体成型,也可以分开成型。本申请实施例的传屏器3和Type-C连接线一体成型。
其中,以用户需要在会议上分享电脑1中会议文档的场景作为示例,由于电脑1屏幕大小的限制,用户可以将电脑1使用连接线2与传屏器3连接后,通过传屏器3将电脑1的屏幕中所显示的会议文档的画面传输给挂设在墙体上的交互平板(interactive white board)4进行显示。
交互平板4又可被称为交互智能平板、智能交互平板、智能交互白板、大屏幕平板等。交互平板4的硬件部分由触控显示模组、智能处理系统(包括控制器)等部分所构成,由整体结构件结合到一起,同时也由专用的软件系统作为支撑,其中触控显示模组包括显示屏、触控组件和背光灯组件,背光灯组件
用于为显示屏提供背光光源,显示屏一般采用液晶显示装置,用于进行画面展示,触控组件设置在显示屏上或者设置在显示屏前端,用于采集用户的触控操作数据,并将采集的触控操作数据发送到智能处理系统进行处理。
交互平板4和传屏器3建立数据连接之后才能进行传屏操作,传屏是指把一个屏幕上的内容显示到另一个屏幕上,例如,把电脑屏幕上的内容显示到交互平板4上,或者把手机屏幕上的内容显示到显示交互平板4上或者电视屏幕上。传屏器3是传屏过程中涉及的两个屏幕之间的传输媒介,可以通过接口与其中一个屏幕所在的设备建立有线连接,通过无线模块与两个屏幕所在的设备建立无线连接。
传屏器3与交互平板4可以通过无线通信方式连接,该无线通信方式包括但不限于:Wi-Fi、蓝牙或者其他短距离无线通信方式等。
其次,上述场景中,会出现传屏器连接电脑后无法将电脑的内容传输问题,具体的,结合图2进行分析。
如图2所示,图2是本申请实施例提供的无线传屏器的一种实施方式的结构示意图。传屏器3可以包括Type-C接口11、处理器12、存储器13和无线模组14。处理器12分别与Type-C接口11、存储器13和无线模组14连接。
例如,部分电脑的Type-C接口不支持传输DP格式或者传屏器的DP通道故障时,容易导致传屏器无法直接传输DP格式的音视频数据。相关技术的通用做法是配备接口转接头,当用户发现交互平板4迟迟未出现其投屏画面时,可以自行手动更换接口转接头(诸如Type-C接口与USB2.0接口转接头)以使得传屏器3可以插入电脑1的其他接口(诸如USB2.0接口),或者直接提示用户更换新的传屏器3,操作繁琐,用户体验较差。
如图2所示,传屏器3具有Type-C接口11,传屏器3的Type-C接口11可以包括总线电源VBUS引脚。用户可以将该Type-C接口11插入电脑的Type-C接口,电脑可以通过Type-C接口11的总线电源VBUS引脚给传屏器3提供基础工作电压,该工作电压可以为5V或者其它电压,传屏器3在基础电压的供电下开始工作。
其中,Type-C接口11即USB-Type-C,USB-Type-C是一种通用串行总线(USB)的硬件接口规范,其具有更快的传输速度(最高10Gbps)以及更强悍的电力传输(最高100W),并且兼容USB2.0、USB3.0以及DP(DisplayPort)。
Type-C接口11中的差分信号传输引脚可作为DP接口使用,传输DP视频数据;Type-C接口11中的USB2.0数据传输引脚D+和D-可以通过直接插接或连接接口转换器的方式实现连接终端设备中的相应引脚,用于接收终端设备输出的USB2.0数据。
其中,处理器12是该无线传屏器3的控制中心,利用各种接口和线路连接整个无线传屏器3的各个部分,通过运行或执行存储在存储器13内的软件程序和/或模块,以及调用存储在存储器13内的数据,执行无线传屏器3的各种功能和处理数据,从而对无线传屏器3进行整体监控。
存储器13用于存储可执行程序,所述可执行程序用于在被下载到终端设备后,被所述终端设备的第一处理器运行,以使第一处理器将所述第一处理器当前输出至第一显示器的音视频数据压缩为USB2.0协议格式的媒体数据,从所述终端设备的Type-C插座输出所述USB2.0协议格式的媒体数据。可以理解的是,本申请实施例中的Type-C接口11既可以接收经终端设备编码压缩后的USB2.0协议格式的的音视频数据,也可以接收到终端设备未经压缩的DP协议格式的音视频数据。
无线模组14是借助无线通信技术实现的模块化产品,可以将接收到的信号以无线形式发送到无线通信网络中,使信号被无线通信网络中的网络节点捕获。例如目前被广泛应用于短距离局域网通信的WiFi模块、蓝牙模块或ZigBee模块等。本实施例提供的无线模组14可以将从终端设备获取到的所述音视频数据发送到无线通信网络中的其他网络节点进行视频画面的显示。一般地,按照现有技术普遍的接口形态,无线传屏器3上的Type-C接口11设置为插头,终端设备上的视频信号接口为插座,为了便于描述和解释技术方案,在说明书中,均以终端设备的接口是插座,无线传屏器的接口是插头为例具体阐述技术方案。在会议场景里,人们可将该无线传屏器3的Type-C接口11插入个人计算机的视频信号接口,会议用的大屏幕平板的网络节点模块与无线传屏器3的无线模组14在同一无线通信网络中配对连接,则可以将个人计算机的显示
器画面对应的音视频数据传输到会议用大屏幕平板,实现无线传屏,而无需在个人计算机上下载驱动程序。
本申请实施例的无线传屏器可以包括数据转换芯片,数据转换芯片可以连接在Type-C接口和处理器之间,数据转换芯片可以对无线传屏器的Type-C接口所接收到的DP协议格式的媒体数据进行数据的格式转换,将DP协议格式的媒体数据转换为MIPI格式的数据。
基于此,本申请实施例提供了一种数据传输方法,如图3所示,该数据传输方法应用于如图1所示的传屏器3,传屏器3可与电脑1(即终端设备)电连接,以下电脑1以电脑为例进行具体说明。该方法的具体流程可以包括如下步骤101至步骤104,详情请参见图3和图4:
101、当所述Type-C接口与终端设备连接时,启动建立DP协议和USB2.0协议与终端设备的握手。
建立DP协议和USB2.0协议与终端设备的握手的目的是获取DP协议格式的媒体数据。在确认传屏器3与电脑连接后,电脑可以通过Type-C接口的CC引脚向传屏器3发送询问数据包,该询问数据包可以为供应商自定义的信息;传屏器3在接收到该信号后,通过其CC引脚对应向电脑发送应答信息,应答信息用于描述传屏器3的设备属性,具体可以包括该传屏器3当前的工作模式或支持的工作模式、具体的供电范围等信息,以及描述传屏器3的设备类型是外部存储设备。电脑可以根据供电范围信息,设置对传屏器3的供电电压。
例如,可以将run_mode记为传输模式编号,若run_mode置为1,则无线传屏器工作于DP传输模式;若run_mode置为0,则无线传屏器工作于USB2.0传输模式。其中,DP传输模式为Type-C传输模式中的一种具体示例,USB2.0传输模式为Type-A传输模式中的一种具体示例。
示例性的,传屏器3向电脑所发送的应答信息中可以包括该传屏器3当前的工作模式为DP传输模式。电脑收到传屏器3发送过来的应答信息后,当电脑确认传屏器3当前的工作模式为DP传输模式时,可设置电脑的Type-C接口工作在DP传输模式,并且调用电脑操作系统预装的DP驱动。例如,该电脑支持Type-C接口的情形下可通过电脑的Type-C接口中的差分引脚对向传屏器3差分信号传
输引脚对(作为DisplayPort接口)传输包含音视频在内的DP协议格式的媒体数据。
102、当所述DP协议握手成功,确定预设时间内是否接收到DP协议格式的媒体数据,若否,则执行步骤103。
其中,DP协议格式的媒体数据为基于所述DP协议对所述终端设备当前屏幕显示的媒体数据进行处理生成。
若在预设时间内未接收到DP协议格式的媒体数据,则说明无线传屏器当前无法正常工作在Type-C传输模式(即DP传输模式)下,故执行步骤103。
103、向所述终端设备发送切换指令,所述切换指令用于使得所述终端设备对当前显示的媒体数据进行截屏及编码处理。
电脑可以对媒体数据进行编码处理以得到USB2.0协议格式的媒体数据。传屏器可以通过Type-C中的USB2.0数据传输引脚D+和D-传输USB2.0协议格式的媒体数据。传屏器在传输USB2.0协议格式的媒体数据时,所处的传输模式为Type-A传输模式。
在上述的实施方式中,若在预设时间内无法接收到DP协议格式的媒体数据,则说明无线传屏器当前无法正常工作在Type-C传输模式下,故无线传屏器可以采用Type-A传输模式与电脑进行数据传输,以获取对应的USB2.0协议格式的媒体数据。上述实施方式可以令无线传屏器在无法正常工作于Type-C传输模式的情况下,自动切换为Type-A传输模式,避免了用户的手动切换,简化了操作,节省了时间。
可选地,在一种具体实施方式中,在步骤102之后,本申请实施例提供的方法还可以包括如下步骤:
若收到所述DP协议格式的媒体数据,确定预设时间段内是否获取到目标参数,所述目标参数为对所述DP协议格式的媒体数据进行识别处理得到;若未获取到所述目标参数,则向所述终端设备发送切换指令,所述切换指令用于使得所述终端设备对当前显示的媒体数据进行截屏及编码处理。
可选地,在产品的实际应用过程中,当数据转换芯片无法识别得到目标参数时,处理器无法基于目标参数进行数据处理,从而导致无线传屏器无法正常工作。可以理解的是,目标参数为无线传屏器正常工作于Type-C传输模式所需
要的参数,即:无线传屏器获取到目标参数之后,才能够正常工作于Type-C传输模式。目标参数可以为终端设备的分辨率参数,目标参数也可以为其他参数,目标参数的具体参数类型不应该理解为是对本申请的限制。
本申请实施例的数据转换芯片还可以根据DP协议格式的数据计算得到目标参数,并将该目标参数与MIPI格式的数据一同发送给处理器,处理器基于目标参数对MIPI格式的数据进行编码处理。
其中,数据转换芯片与处理器通过集成电路总线(Inter-Integrated Circuit,IIC或I2C)和移动产业处理器接口(Mobile Industry Processor Interface,MIPI)信号线物理连接,其中集成电路总线用于传输控制数据,比如目标参数,移动产业处理器接口信号线用于传输视频数据,比如MIPI格式的数据,处理器在接收到集成电路总线传输的目标参数时,控制从数据转换芯片通过移动产业处理器接口信号线获取视频数据。
示例性的,无线传屏器的Type-C接口接收到DP协议格式的媒体数据之后,可以将DP协议格式的媒体数据发送给数据转换芯片,数据转换芯片接收到DP协议格式的媒体数据之后可以对DP协议格式的媒体数据进行计算以得到目标参数,诸如分辨率。数据转换芯片还可以对该DP协议格式的媒体数据进行转换,以转换成MIPI格式的数据,MIPI格式的数据为适用于处理器的数据格式,比如数据转换芯片可以将媒体数据中的视频部分转换成MIPI格式的数据,并将媒体数据中的音频部分转换成I2S格式的数据。经过数据转换芯片的格式转换后可以向处理器提供目标参数以及这种两种格式化的媒体数据。若无线传屏器在预设时间段内未获取到目标参数,则表示无线传屏器在预设时间段内无法正常工作于Type-C传输模式,则向所述终端设备发送切换指令,所述切换指令用于使得所述终端设备对当前显示的媒体数据进行截屏及编码处理。
可选地,在一种具体实施方式中,步骤“向所述终端设备发送切换指令,所述切换指令用于使得所述终端设备对当前显示的媒体数据进行截屏及编码处理”具体可以包括如下步骤121至步骤123:
121、将传输模式由所述Type-C传输模式切换为Type-A传输模式,以使所述终端设备对媒体数据进行编码处理,得到USB2.0协议格式的媒体数据。
示例性的,电脑可以从无线传屏器接收第二应用程序。第二应用程序集成有传屏服务程序,所述传屏服务程序用于在所述无线传屏器与所述终端设备连接时自动运行所述第二应用程序。
当电脑已启动第二应用程序的情况下,若无线传屏器从Type-C传输模式切换到Type-A传输模式则向电脑发送模式切换指令,电脑接收到该模式切换指令后,电脑会自动运行第二应用程序,并通过第二应用程序对电脑的媒体数据进行截图处理以得到屏幕抓取数据,第二应用程序还可以对该屏幕抓取数据进行编码以得到USB2.0协议格式的媒体数据。需要说明的是,电脑获得第二应用程序的方式不限与此,比如电脑也可以从其他第三方设备或特定网站获得并安装第二应用程序。
具体的,无线传屏器的存储器可以预先存储有第二应用程序。电脑第一次从无线传屏器接收第二应用程序时,操作流程可以如下:
如上所述,电脑可以接收无线传屏器所发送的应答信息,当电脑收到无线传屏器发送过来的应答信息后,还可根据其设备类型的描述显示对应外部存储设备的盘符。当电脑未安装有第二应用程序(诸如电脑第一次与无线传屏器配对或连接、或者电脑安装第二应用程序后又卸载了第二应用程序)时,需要用户在电脑端打开无线传屏器对应盘符的操作,进而显示无线传屏器存储空间存储的内容,即显示在无线传屏器中存储程序对应的图标:如第二应用程序的图标。接收到针对第二应用程序图标的双击或右键运行操作时,将无线传屏器存储的第二应用程序通过Type-C接口11中的USB2.0数据传输引脚D+和D-加载到电脑的内存,以供电脑的处理器执行。在一些实施例中,当电脑未安装有第二应用程序时,无线传屏器可以发送弹窗指令给与其相互配对连接的交互平板,使得交互平板弹出提示框,以提示用户手动在电脑端打开对应盘符,并安装第二应用程序。
其中,第二应用程序集成有用于自动运行第二应用程序的传屏服务程序,当用户第一次安装好第二应用程序之后,传屏服务程序会常驻电脑后台运行,使得电脑第二次插入无线传屏器时自动启动第二应用程序,而无需用户手动操作。
当电脑已启动第二应用程序的情况下,若无线传屏器从Type-C传输模式
切换到Type-A传输模式则向电脑发送切换指令,电脑接收到该切换指令后,电脑会自动运行第二应用程序,并通过第二应用程序对电脑的媒体数据进行截图处理以得到屏幕抓取数据,第二应用程序还可以对该屏幕抓取数据进行编码以得到USB2.0协议格式的媒体数据。
需要说明的是,电脑获得第二应用程序的方式不限与此,比如电脑也可以从其他第三方设备或特定网站获得并安装第二应用程序。
可选地,在一些具体实施方式中,步骤121具体可以包括如下步骤:确定所述终端设备是否安装有第二应用程序;
若是,则向所述终端设备发送切换指令,以指示所述终端设备运行所述第二应用程序,并通过所述第二应用程序对所述媒体数据进行编码处理,得到所述USB2.0协议格式的媒体数据;
若否,则发送弹窗指令给与所述无线传屏器配对连接的显示设备,以指示用户安装所述第二应用程序。
在上述的实施方式中,无线传屏器可以先确定终端设备是否安装有第二应用程序,若安装,则无线传屏器向终端设备发送切换指令,从而指示终端设备运行第二应用程序,进而通过第二应用程序对媒体数据编码处理;若未安装,则在与无线传屏器配对连接的显示设备显示弹窗指令,以指示用户安装第二应用程序。终端设备在对媒体数据进行编码处理具体可以通过运行存储在自身的第二应用程序实现,该种方式可以提高编码处理的稳定性。
在一些实施例中,所述第二应用程序集成有传屏服务程序,所述传屏服务程序用于在所述无线传屏器与所述终端设备连接时自动运行所述第二应用程序。
可选地,在终端设备运行第二应用程序之前,无线传屏器还可以执行如下步骤:运行iptables路由规则,以实现传屏器网段的切换。
无线传屏器运行于Type-A传输模式时,无线传屏器与终端设备连接的硬件接口虚拟为有线网卡,该有线网卡具备自身的有线网段;无线传屏器中的无线模组具备自身的无线网段。当无线传屏器通过Type-A传输模式实现数据传输时,媒体数据的传输路径为:无线传屏器的硬件接口(虚拟为有线网卡)-
无线传屏器的处理器-无线传屏器的无线模组-显示设备。因此,无线传屏器可以通过运行iptables路由规则,以实现有线网段至无线网段的切换。
122、接收所述终端设备发送的所述USB2.0协议格式的媒体数据。
示例性的,无线传屏器通过Type-C接口11中的USB2.0数据传输引脚D+和D-接收终端设备所发送的USB2.0协议格式的媒体数据。
123、将所述USB2.0协议格式的媒体数据传输至所述显示设备,以使所述显示设备解码并显示所述USB2.0协议格式的媒体数据对应的所述媒体数据。
无线传屏器接收到终端设备所发送的USB2.0协议格式的媒体数据之后,无线传屏器可以通过自身具备的无线模块,诸如图2所示的无线模组14,将USB2.0协议格式的媒体数据传输至显示设备,由显示设备进行显示。
在上述的实施方式中,在预设时间段内未接收到目标参数时,无线传屏器便会自动切换自身的传输模式,从而可以在两种传输模式一种工作状态故障一种工作状态正常的情况下,快速进入正常的工作状态,而无需用户的手动切换,从而可以改善现有技术操作繁琐、浪费时间的问题。
可选地,在一种具体实施方式中,在步骤“确定预设时间段内是否获取到目标参数”之后,本申请实施例提供的方法还可以包括如下步骤S1至步骤S3:
S1、若在所述预设时间段内接收到目标参数,将所接收到的所述DP协议格式的媒体数据转换为MIPI格式数据。
如上所述,无线传屏器的数据转换芯片可以连接在Type-C接口和处理器之间,数据转换芯片可以对无线传屏器的Type-C接口所接收到的DP协议格式的媒体数据进行数据的格式转换,将DP协议格式的媒体数据转换为MIPI格式的数据。示例性的,无线传屏器的Type-C接口接收到DP协议格式的媒体数据之后,可以将DP协议格式的媒体数据发送给数据转换芯片,数据转换芯片接收到DP协议格式的媒体数据之后可以对该数据的格式进行转换,以转换成MIPI格式的数据,MIPI格式的数据为适用于处理器的数据格式,比如数据转换芯片可以将媒体数据中的视频部分转换成MIPI格式的数据,并将媒体数据中的音频部分转换成I2S格式的数据。经过数据转换芯片的格式转换后可以向处理器提供这种两种格式化的媒体数据。
S2、对所述MIPI格式数据进行编码处理,得到编码结果。
无线传屏器的数据转换芯片将MIPI格式的数据发送到无线传屏器中的处理器,处理器接收到MIPI格式的数据之后,可以对MIPI格式的数据进行压缩编码。
可选地,在一种具体实施方式中,无线传屏器存储有第一应用程序;相应的,步骤S2包括如下步骤S21至步骤S22:
S21、运行所述第一应用程序。
S22、通过所述第一应用程序对所述MIPI格式的数据进行编码处理,得到编码结果。
无线传屏器的存储器可以预先存储有第一应用程序,处理器可以从存储器中获取第一应用程序,并执行第一应用程序,第一应用程序可以对MIPI格式的数据进行压缩和编码处理。
在上述的实施方式中,无线传屏器可以通过运行自身存储的第一应用程序来实现对媒体数据的编码处理。无线传屏器内存储的第一应用程序可以针对无线传屏器定制,而无需兼容其他硬件,因此出错率较低,稳定性较强。
S3、将所述编码结果传输至显示设备,以使所述显示设备解码并显示所述编码结果对应的所述媒体数据。
无线传屏器可以通过自身具备的无线模组将编码结果通过通信网络传输至显示设备。显示设备为传屏接收端,如图1中的交互平板4,显示设备可以接收编码结果,并对编码结果进行解码得到媒体数据,随后再显示媒体数据。其中,显示设备可具有接收盒子,该接收盒子可与显示设备集成在一起,也可与显示设备为分体设计;该接收盒子用于接收来自无线传屏器的媒体数据,并将其传输给显示设备用于显示。
此外,需要说明的是:当无线传屏器的处理器接收到用户输出的传屏指令时,开始启动对接收到音频媒体数据和经过处理的视频媒体数据(或也可未经处理)进行压缩及编码;无线传屏器的处理器未接收到用户输出的传屏指令之前,此时虽然有媒体数据的接收,但是对接收到的音频和/或视频媒体数据进行丢弃,不进行压缩或传输处理,节省无线传屏器的处理器的资源,即步骤S3可以是确认接收到传屏指令后执行的步骤。
在上述的实施方式中,若无线传屏器处于Type-C传输模式,且在预设时间段内获取到目标参数,则无线传屏器可以一直工作于Type-C传输模式下:从终端设备采集媒体数据,并由无线传屏器对媒体数据进行编码处理,得到编码结果,并将编码结果传输至显示设备。若无线传屏器在预设时间段内接收到了目标参数,则可以以Type-C传输模式继续进行传屏工作,从而提高传屏的速度。
可选地,在一种具体实施方式中,步骤103具体可以包括如下步骤1031至步骤1033:
1031、若未收到所述DP协议格式的媒体数据,确定所述终端设备是否安装有第二应用程序,若是,执行步骤1032;若否,执行步骤1033。
第二应用程序集成有传屏服务程序,所述传屏服务程序用于在所述无线传屏器与所述终端设备连接时自动运行所述第二应用程序。
1032、向所述终端设备发送切换指令,以指示所述终端设备运行所述第二应用程序,并通过所述第二应用程序对当前显示的媒体数据进行截屏及编码处理。
1033、发送弹窗指令给与所述无线传屏器配对连接的显示设备,以指示用户安装所述第二应用程序。
在上述的实施方式中,无线传屏器可以先确定终端设备是否安装有第二应用程序,若安装,则无线传屏器向终端设备发送切换指令,从而指示终端设备运行第二应用程序,进而通过第二应用程序对媒体数据编码处理;若未安装,则在与无线传屏器配对连接的显示设备显示弹窗指令,以指示用户安装第二应用程序。终端设备在对媒体数据进行编码处理具体可以通过运行存储在自身的第二应用程序实现,该种方式可以提高编码处理的稳定性。
可选地,当电脑未安装有第二应用程序时,无线传屏器可以发送弹窗指令给与其相互配对连接的交互平板,使得交互平板弹出提示框,以提示用户手动在电脑端打开对应盘符,并安装第二应用程序。
104、接收所述终端设备发送的USB2.0协议格式的媒体数据。
所述USB2.0协议格式的媒体数据为基于所述USB2.0协议对所述终端设备截屏及编码处理后的媒体数据进行处理生成。
本申请实施例提供的数据传输方法中,当所述Type-C接口与终端设备连接时,可以启动建立DP协议和USB2.0协议与终端设备的握手过程。当握手成功时,确定预设时间内是否接收到DP协议格式的媒体数据,DP协议格式的媒体数据为基于DP协议对终端设备当前屏幕显示的媒体数据进行处理生成的。若未收到DP协议格式的媒体数据,则向终端设备发送切换指令;其中,切换指令用于令终端设备对当前显示的媒体数据进行截屏及编码处理;无线传屏器接收终端设备发送的USB2.0协议格式的媒体数据,USB2.0协议格式的媒体数据为基于USB2.0协议对终端设备截屏及编码处理后的媒体数据进行处理生成。若在预设时间内无法接收到DP协议格式的媒体数据,则说明无线传屏器当前无法正常工作在Type-C传输模式下,故无线传屏器可以采用Type-A传输模式与终端设备进行数据传输,以获取Type-A传输模式对应的USB2.0协议格式的媒体数据。上述实施方式可以令无线传屏器在无法正常工作于Type-C传输模式的情况下,自动切换为Type-A传输模式,避免了用户的手动切换,简化了操作,节省了时间。由于无线传屏器可以在Type-C传输模式故障,且Type-A传输模式正常的情况下,快速进入正常的工作状态,而无需用户的手动切换,从而可以改善现有技术操作繁琐、浪费时间的问题。
在本申请中,可以提高无线传屏器的工作效率,节约时间。
在本实施例中,将以目标参数是分辨率参数为例,对本申请实施例的方法进行详细说明。
如图6所示,一种数据传输方法具体流程如下:
201、当所述无线传屏器的Type-C接口与终端设备连接时,建立DP协议和USB2.0协议与终端设备的握手关系。
202、确定在预设时间段内是否获取到分辨率参数,若是,执行步骤203;若否,执行步骤206。
203、采集所述媒体数据。
204、运行存储在无线传屏器的第一应用程序,通过第一应用程序对媒体数据进行编码处理,得到编码结果。
205、将所述编码结果传输至所述显示设备,以使所述显示设备解码并显示所述编码结果对应的所述媒体数据。
206、向所述终端设备发送切换指令,所述切换指令用于使得所述终端设备对当前显示的媒体数据进行截屏及编码处理,得到编码结果。
207、接收所述终端设备发送的所述编码结果。
208、将所述编码结果传输至所述显示设备,以使所述显示设备解码并显示所述编码结果对应的USB2.0协议格式的媒体数据。由上可知,无线传屏器的初始传输模式为Type-C模式(即DP协议和USB2.0协议与终端设备的握手成功的模式),在此模式下根据无线传屏器是否在预设时间段内获取到分辨率参数来确定无线传屏器是维持Type-C模式,还是切换至Type-A模式(即传输USB2.0协议格式的媒体数据的模式),若维持在Type-C模式,则可以由无线传屏器对媒体数据进行编码处理得到编码结果;若切换为Type-A模式,则可以由终端设备对媒体数据进行编码处理得到编码结果,然后再发送给无线传屏器,并由无线传屏器将编码结果传输至显示设备。由于无线传屏器可以在两种传输模式Type-C模式故障、Type-A模式正常的情况下,快速进入正常的工作状态,而无需用户的手动切换,从而可以改善现有技术操作繁琐、浪费时间的问题。
在本申请中,可以提高无线传屏器的工作效率,节约时间。可选地,在一种具体实施方式中,详情请参见图5,图5示出了本申请另一实施例提供的方法,具体包括如下步骤A1至A4:
A1、检测所述Type-C接口是否与所述终端设备连接,若是,则执行步骤A2。
A2、采用Type-C传输模式与所述终端设备进行数据传输以获取DP协议格式的媒体数据。
可选地,在一种具体实施方式中,步骤A2具体可以包括如下步骤A21至步骤A23:
A21、采集所述DP协议格式的媒体数据,并将其转换为MIPI格式的数据。
A22、对所述MIPI格式的数据进行编码处理,得到编码结果。
A23、将所述编码结果传输至所述显示设备,以使所述显示设备解码并显示所述编码结果对应的所述媒体数据。
在上述的实施方式中,从终端设备采集媒体数据,并由传屏器对媒体数据进行编码处理,得到编码结果,并将编码结果传输至显示设备。
A3、确定预设时间内是否能够根据所述DP协议格式的媒体数据获取到所述目标参数,若否,则执行步骤A4。
A4、将传输模式由所述Type-C传输模式切换为Type-A传输模式,以获取USB2.0协议格式的媒体数据。
可选地,在一种具体实施方式中,步骤A4具体可以包括如下步骤A41至步骤A43:
A41、将传输模式由所述Type-C传输模式切换为Type-A传输模式,以使所述终端设备对媒体数据进行编码处理,得到USB2.0协议格式的媒体数据。
可选地,在一种具体实施方式中,步骤A41具体可以包括如下步骤A411至步骤A413:
A411、确定所述终端设备是否安装有第二应用程序,若是,执行步骤A412;若否,执行步骤A413。
A412、向所述终端设备发送切换指令,以指示所述终端设备运行所述第二应用程序,并通过所述第二应用程序对所述媒体数据进行编码处理,得到所述USB2.0协议格式的媒体数据。
A413、发送弹窗指令给与所述无线传屏器配对连接的显示设备,以指示用户安装所述第二应用程序。
在上述的实施方式中,无线传屏器可以先确定终端设备是否安装有第二应用程序,若安装,则无线传屏器向终端设备发送切换指令,从而指示终端设备运行第二应用程序,进而通过第二应用程序对媒体数据编码处理;若未安装,则在与无线传屏器配对连接的显示设备显示弹窗指令,以指示用户安装第二应用程序。终端设备在对媒体数据进行编码处理具体可以通过运行存储在自身的第二应用程序实现,该种方式可以提高编码处理的稳定性。
A42、接收所述终端设备发送的所述USB2.0协议格式的媒体数据。
A43、将所述USB2.0协议格式的媒体数据传输至显示设备,以使所述显示设备解码并显示所述USB2.0协议格式的媒体数据对应的所述媒体数据。
在上述的实施方式中,在Type-A传输模式下,媒体数据的编码处理操作由终端设备执行,终端设备执行得到编码结果之后,将编码结果发送给传屏器,传屏器再将编码结果传输至显示设备。
在上述的实施方式中,在Type-C接口与终端设备连接的情况下,可以先采用Type-C传输模式与终端设备进行数据传输,以获取DP协议格式的媒体数据。然后再确定预设时间内是否能够根据所述DP协议格式的媒体数据获取到所述目标参数;若不能获取到,则说明无线传屏器当前无法正常工作在Type-C传输模式下,故无线传屏器可以采用Type-A传输模式与终端设备进行数据传输,以获取Type-A传输模式对应的USB2.0协议格式的媒体数据。上述实施方式可以令无线传屏器在无法正常工作于Type-C传输模式的情况下,自动切换为Type-A传输模式,避免了用户的手动切换,简化了操作,节省了时间。
可选地,详情请参见图8,在一种实施方式中,本申请实施例提供的方法应用于无线传屏器,所述无线传屏器包括Type-C接口、第一数据转换芯片和处理器,所述Type-C接口通过所述第一数据转换芯片与所述处理器连接,所述Type-C接口包括差分信号引脚和USB2.0数据引脚;该方法包括如下步骤B1至步骤B4:
B1、通过所述差分信号引脚接收终端设备发送的DP协议格式的媒体数据;
B2、将所接收到的所述DP协议格式的媒体数据发送至所述第一数据转换芯片;
B3、所述第一数据转换芯片将所述DP协议格式的媒体数据转换为MIPI格式数据,以及根据所述DP协议格式的媒体数据获得目标参数,并向所述处理器发送所述MIPI格式数据以及所述目标参数;
可选地,所述第一数据转换芯片分别通过ICC总线和MIPI信号线与所述处理器连接,所述第一数据转换芯片通过所述ICC总线向所述处理器发送通知指令,所述通知指令用于告知所述处理器所述第一数据转换芯片在预设时间段内是否有接收到所述DP协议格式的媒体数据;所述第一数据转换芯片通过所述MIPI信号线发送MIPI格式数据。
B4、所述处理器在第一预设时间内未接收到所述MIPI格式数据时、或者在第二预设时间内未获得所述目标参数时、或者在第三预设时间内确定所述第
一数据转换芯片未接收到所述DP协议格式的媒体数据时,切换为通过所述USB2.0数据引脚接收USB2.0协议格式的媒体数据。
本申请实施例中,无线传屏器预先设计成兼容Type-C传输模式和Type-A传输模式等两种传输模式,即无线传屏器可支持DP协议格式的媒体数据和USB2.0协议格式的媒体数据这两种格式的媒体数据的传输。具体的,无线传屏器内部可以预先存储有第一代码、第二代码和第三代码,第一代码用于实现Type-C传输模式,从而实现DP协议格式的媒体数据的传输,第二代码用于实现Type-A传输模式,从而实现USB2.0协议格式的媒体数据的传输,第三代码用于实现无线传屏器的传输模式切换,即Type-C传输模式和Type-A传输模式的切换。第一代码、第二代码和第三代码可以存储在存储器中,由处理器从存储器中调用执行实现对应的功能。其中,第三代码可以包括传输模式指令run_mode,无线传屏器通过传输模式指令run_mode的赋值从而实现对当前数据传输模式的控制,比如可以将run_mode=1时设定为采用Type-C传输模式进行数据传输,run_mode=0时设定为采用Type-A传输模式进行数据传输,以下对其传输过程进行具体说明。
示例性的,当将无线传屏器的Type-C接口插入至电脑的Type-C接口时,无线传屏器中的第一数据转换芯片会与电脑建立通讯过程,包括DP协议的握手以及USB2.0协议的握手。当第一数据转换芯片与电脑之间的DP协议握手成功后,第一数据转换芯片将传屏模式指令run_mode的值置为1,并将传屏模式指令run_mode=1的结果发送给处理器。而且当第一数据转换芯片与电脑之间的DP协议握手成功后,第一数据转换芯片会接收电脑传输的DP协议格式的媒体数据,并对所接收到的DP协议格式的媒体数据进行数据格式转换以得到MIPI格式的媒体数据以及识别以获得目标参数,诸如分辨率参数,并将MIPI格式的媒体数据以及目标参数发送给处理器。由于第一数据转换芯片对DP协议格式的媒体数据进行识别需要花费一定的时间,所以处理器会先接收到传屏模式指令的结果(run_mode=1),一定时间后才会接收到目标参数,而且处理器在接收到run_mode=1、MIPI格式的媒体数据以及目标参数之后,根据目标参数对MIPI格式的媒体数据进行压缩编码处理,以得到编码处理后的数据,并将编
码处理后的数据发送给无线模组,无线模组通过无线通信网络发送给交互平板,以使得无线传屏器可正常工作在Type-C传输模式。
然而,如果无线传屏器不限时间地等待目标参数,会使得传屏过程拉长,给用户造成不好的体验。因此,本申请实施例在处理器的操作系统启动时则启动计时器进行计时,如果在第二预设时间内收到目标参数,则无线传屏器按如上所述的以Type-C传输模式运行。此外,处理器会生成告知指令发送给电脑所安装的第二应用程序,以使得第二应用程序不进行截图与编码处理等工作,从而使得电脑无法发送USB2.0协议格式的媒体数据给无线传屏器,进而使得电脑工作在Type-C传输模式,而不工作在Type-A传输模式。
如果处理器未在第二预设时间收到目标参数,则处理器将传屏模式指令run_mode的值置为0,并将run_mode=0的结果发送给电脑的第二应用程序,以使得第二应用程序对电脑当前的媒体数据进行截图与编码处理,获得USB2.0协议格式的媒体数据,并将USB2.0协议格式的媒体数据通过USB2.0数据引脚发送给处理器,处理器再将接收到USB2.0协议格式的媒体数据发送给无线模组,无线模组再将其通过无线通信网络发送给交互平板。
在一些实施例中,当第一数据转换芯片与电脑之间的DP协议没有握手成功时,第一数据转换芯片会将传屏模式指令run_mode的值置为0,并将run_mode=0发送给处理器。处理器收到run_mode=0时,将run_mode=0的结果发送给的电脑的第二应用程序,以使得第二应用程序对电脑当前的媒体数据进行截图与编码处理,获得USB2.0协议格式的媒体数据,并将USB2.0协议格式的媒体数据通过USB2.0数据引脚发送给处理器,处理器再将接收到USB2.0协议格式的媒体数据发送给无线模组,无线模组再将其通过无线通信网络发送给交互平板。如果是因为第一数据转换芯片故障从而导致无法与电脑的DP协议握手成功,则其也无法将run_mode的值置为0,并将其发送给处理器,然而处理器若等第一数据转换芯片的反馈,会使得传屏过程拉长,给用户造成不好的体验。因此,本申请实施例在处理器的操作系统启动时则启动计时器进行计时,如果未在第三预设时间内接收到第一数据转换芯片的任何反馈时,则确定第一数据转换芯片未接收到DP协议格式的媒体数据,此时处理器会将传屏模式指令run_mode的值置为0,并将run_mode=0的结果发送给的电脑的第二应用程
序,以使得第二应用程序对电脑当前的媒体数据进行截图与编码处理,获得USB2.0协议格式的媒体数据,并将USB2.0协议格式的媒体数据通过USB2.0数据引脚发送给处理器,处理器再将接收到USB2.0协议格式的媒体数据发送给无线模组,无线模组再将其通过无线通信网络发送给交互平板。
在一些实施例中,当第一数据转换芯片与电脑之间的DP协议握手成功时,第一数据转换芯片会将传屏模式指令run_mode的值置为1,并将run_mode=1的结果发送给处理器,以告知处理器:与电脑之间的DP协议握手成功。但是由于第一数据转换芯片故障而导致的无法将所接收到的DP协议格式的媒体数据转换为MIPI格式数据时,然而处理器若死等MIPI格式数据,会使得传屏过程拉长,给用户造成不好的体验。因此,本申请实施例在处理器的操作系统启动时则启动计时器进行计时,如果未在第一预设时间内收到MIPI格式数据时,处理器会将传屏模式指令run_mode的值修改为0,并将run_mode=0的结果发送给的电脑的第二应用程序,以使得第二应用程序对电脑当前的媒体数据进行截图与编码处理,获得USB2.0协议格式的媒体数据,并将USB2.0协议格式的媒体数据通过USB2.0数据引脚发送给处理器,处理器再将接收到USB2.0协议格式的媒体数据发送给无线模组,无线模组再将其通过无线通信网络发送给交互平板。
可选地,在一种具体实施方式中,步骤B4具体可以包括如下步骤B41至步骤B42:
B41、所述处理器在第一预设时间内未接收到所述MIPI格式数据时、或者在第二预设时间内未获得所述目标参数时、或者在第三预设时间内确定所述第一数据转换芯片未接收到所述DP协议格式的媒体数据时,所述处理器控制从所述存储器获取所述第二应用程序,并通过所述USB2.0数据引脚发送至所述终端设备,以使得在所述终端设备运行所述第二应用程序,所述第二应用程序用于对所述终端设备当前的媒体数据进行截图与编码处理以得到USB2.0协议格式的媒体数据。
B42、所述处理器控制切换为通过所述USB2.0数据引脚接收所述终端设备发送的所述USB2.0协议格式的媒体数据。在上述的实施方式中,Type-C接口接收DP协议格式的媒体数据,并将DP协议格式的媒体数据发送至第一数据转
换芯片。第一数据转换芯片将DP协议格式的媒体数据转换为MIPI格式数据,并且第一数据转换芯片根据所述DP协议格式的媒体数据获得目标参数。第一数据转换芯片向所述处理器发送所述MIPI格式数据以及所述目标参数。所述处理器在第一预设时间内未接收到所述MIPI格式数据时、或者在第二预设时间内未获得所述目标参数时、或者在第三预设时间内确定所述第一数据转换芯片未接收到所述DP协议格式的媒体数据时,切换为通过所述USB2.0数据引脚接收USB2.0协议格式的媒体数据。
上述实施方式可以令无线传屏器的处理器在无法工作于对MIPI格式数据以及所述目标参数进行正常处理的情况下,自动切换为接收USB2.0协议格式的媒体数据的传输模式,避免了用户的手动切换,简化了操作,节省了时间。
为了更好地实施以上方法,本申请实施例还提供一种数据传输装置,诸如图1所示Type-C类型的传屏器3,详情请参见图8,其可以包括Type-C接口11、第一数据转换芯片51、处理器12和无线模组14。Type-C接口11包括第一数据引脚和第二数据引脚,所述第一数据引脚通过所述第一数据转换芯片51与所述处理器12连接,所述第二数据引脚与所述处理器12连接,所述处理器12分别与所述存储器13和所述无线模组14连接。
在无线传屏器的实际使用过程中,可能会出现第一数据转换芯片51损坏、处理器12与第一数据转换芯片51的通信路径或处理器12内的通信模块损坏、终端设备不支持DP协议格式的媒体数据的发送,导致第一数据转换芯片51未接收到DP协议格式的媒体数据或其他原因而导致处理器12无法在预设时间段内接收到第一数据转换芯片51所发送的MIPI格式的数据,从而导致无线传屏功能无法使用。此外,就算第一数据转换芯片51接收到了DP协议格式的媒体数据,若第一数据转换芯片51无法对DP协议格式的媒体数据进行识别仪得到目标参数时,也会导致无线传屏功能无法使用。
基于此,本申请实施例中的第一数据引脚和第二数据引脚都可以用来获取终端设备当前的媒体数据(包括当前显示的视频数据、音频数据以及控制指令等),两者所获取的媒体数据的数据格式不同。第一数据引脚用于从终端设备接收DP协议格式的媒体数据,第二数据引脚用于从终端设备接收USB2.0协议格式的媒体数据。第一数据转换芯片51用于接收所述DP协议格式的媒体数据,
并将所接收到的DP协议格式的媒体数据转换为MIPI格式的数据,且根据所述DP协议格式的媒体数据获得目标参数,及向处理器12发送所述MIPI格式的数据和目标参数;所述处理器12用于在预设时间段内未接收到所述第一数据转换芯片所发送的MIPI格式的数据时,通过所述第二数据引脚接收USB2.0协议格式的媒体数据。
可以理解的是,本申请实施例中无线传屏器具有第一数据引脚-第一数据转换芯片-处理器和第二数据引脚-处理器等两条数据传输链路,若处理器在预设时间段内没有接收到MIPI格式的数据,则说明无线传屏器无法直接采用第一数据引脚-第一数据转换芯片-处理器这一条数据传输链路正常工作,此时可切换成通过第二数据引脚-处理器这一条数据传输链路工作,从而避免由于第一数据引脚-第一数据转换芯片-处理器这一数据传输链路异常而导致无线传屏器无法工作的情况。
示例性的,无线传屏器的Type-C接口共有24个引脚,包括两行相同功能的引脚,两行相同功能的引脚支持正插或反插。TYPE-C接口包括两对电源引脚(A9、B4、B9、A4)、四对TX/RX引脚(A11和B2、A10和B3、A4和B10、A2和B11,即第一数据引脚)、两对USB2.0数据引脚,D+/D-引脚(A6和B7、A7和B6,即第二数据引脚)以及用于插入配对时候用于配对通讯的CC脚(A5)。其中,每一组引脚中的TX+、TX-、RX+和RX-是差分信号传输引脚,每一组差分信号传输引脚均支持工作在USB模式或者DP(DisplayPort)模式。当差分信号传输引脚对工作在USB模式下时,该信号传输引脚对传输USB3.0信号;当差分信号传输引脚对工作在DP模式下时,该信号传输引脚对作为DP(DisplayPort)接口使用,用于传输DP协议格式的媒体数据。每一组USB D+/D-引脚支持工作在USB2.0模式,用于传输USB2.0格式数据。
当用户将无线传屏器的Type-C接口插终端设备(以下以电脑为例进行具体说明)的Type-C接口后,电脑可以通过无线传屏器的Type-C接口中的VBUS引脚给无线传屏器上电,以为无线传屏器提供工作电压。确认连接成功之后,电脑可以通过Type-C接口的CC引脚向无线传屏器发送询问数据包,该询问数据包可以为供应商自定义的信息;无线传屏器在接收到该信号后,通过其CC引脚对应向电脑发送应答信息,应答信息用于描述无线传屏器的设备属性,具体
可以包括该无线传屏器当前的工作模式或支持的工作模式、具体的供电范围等信息,以及描述无线传屏器的设备类型是外部存储设备。
无线传屏器向电脑所发送的应答信息中可以包括该无线传屏器当前的工作模式为DP传输模式。电脑收到无线传屏器发送过来的应答信息后,当电脑确认无线传屏器当前的工作模式为DP传输模式时,可设置电脑的Type-C接口工作在DP传输模式,并且调用电脑操作系统预装的DP驱动,并通过电脑的Type-C接口中的差分引脚对向无线传屏器差分信号传输引脚对(即第一数据引脚)传输包含音视频在内的DP协议格式的媒体数据。
无线传屏器差分信号传输引脚通过第一数据转换芯片51与处理器12连接,第一数据引脚接收到DP协议格式的媒体数据后,将DP协议格式的媒体数据发送给第一数据转换芯片51,第一数据转换芯片51可以将DP协议格式的媒体数据中视频部分转换成MIPI格式的数据,并将DP协议格式的媒体数据中的音频部分转换成I2S格式的媒体数据。经过第一数据转换芯片51的格式转换后可以向处理器12提供这种两种格式化的媒体数据。可选的,处理器12为硬件处理器(如ARM处理器),处理器12可以对两种格式化的媒体数据进行压缩、编码。
此外,第一数据转换芯片51还可以根据所接收到的DP协议格式的媒体数据计算得到目标参数,并将该目标参数与转换得到的MIPI格式的数据一同发送给处理器,处理器基于目标参数对MIPI格式的数据进行编码处理。
其中,数据转换芯片与处理器通过集成电路总线(Inter-Integrated Circuit,IIC或I2C)和移动产业处理器接口(Mobile Industry Processor Interface,MIPI)信号线物理连接,其中集成电路总线用于传输控制数据,比如目标参数,移动产业处理器接口信号线用于传输视频数据,比如MIPI格式的数据,处理器在接收到集成电路总线传输的目标参数时,控制从数据转换芯片通过移动产业处理器接口信号线获取视频数据。
两对USB D+/D-引脚直接与处理器12连接,其可以从电脑端获取USB2.0协议格式的媒体数据,并将获取到的USB2.0协议格式的媒体数据直接发送给处理器12。
处理器被配置为在第一预设时间内未接收到所述MIPI格式的数据时、或者
在第二预设时间内未获得所述目标参数时、或者在第三预设时间内确定所述第一数据转换芯片未接收到所述DP协议格式的媒体数据时,切换为通过USB2.0数据引脚与电脑进行数据传输,以获得USB2.0协议格式的媒体数据。
可以理解的是,当在第一预设时间内未接收到所述MIPI格式的数据时、或者在第二预设时间内未获得所述目标参数时、或者在第三预设时间内确定所述第一数据转换芯片未接收到所述DP协议格式的媒体数据时,无线传屏器则无法正常工作以传输无线传屏内容至显示设备,此时处理器12控制通过两对USB D+/D-引脚从电脑端获取USB2.0协议格式的媒体数据。
以下对该过程进行具体说明:
无线传屏器还包括存储器13,存储器13可以预先存储有第二应用程序,第二应用程序可以发送给电脑,以在电脑上运行。当电脑已启动第二应用程序的情况下,若无线传屏器的处理器在第一预设时间内未接收到所述MIPI格式的数据时、或者在第二预设时间内未获得所述目标参数时、或者在第三预设时间内确定所述第一数据转换芯片未接收到所述DP协议格式的媒体数据时,则可以发送切换指令给电脑,电脑接收到该切换指令之后,自动运行第二应用程序,并通过第二应用程序对电脑的媒体数据进行截图处理以得到屏幕抓取数据,第二应用程序还可以对该屏幕抓取数据进行编码以得到USB2.0协议格式的媒体数据,并通过电脑Type-C接口中的USB D+/D-引脚将USB2.0协议格式的媒体数据发送至无线传屏器Type-C接口中的USB D+/D-引脚,Type-C接口中的USB D+/D-引脚接收到该USB2.0协议格式的媒体数据之后,将其发送至处理器,处理器再将接收后到USB2.0协议格式的媒体数据发送至无线模组14,无线模组14可以将从终端设备获取到的USB2.0协议格式的媒体数据发送到无线通信网络中的其他网络节点(诸如图1所示的交互平板)进行视频画面的显示。
在未安装有第二应用程序(诸如电脑第一次与无线传屏器配对或连接、或者电脑安装第二应用程序后又卸载了第二应用程序)时,需要用户在电脑端打开无线传屏器对应盘符的操作,进而显示无线传屏器存储空间存储的内容,即显示在无线传屏器中存储程序对应的图标:如第二应用程序的图标。此时需要用户针对第二应用程序的图标手动双击或右键运行,电脑接收到针对第二应用
程序图标的双击或右键运行操作时,将无线传屏器存储的第二应用程序通过Type-C接口11中的USB2.0数据传输引脚D+和D-加载到电脑的内存,以供电脑的处理器执行。
其中,第二应用程序集成有用于自动启动第二应用程序的传屏服务程序,当用户第一次安装好第二应用程序之后,传屏服务程序会常驻电脑后台运行,使得电脑第二次插入无线传屏器时自动启动第二应用程序,而无需用户手动操作。
在一些实施例中,当电脑未安装有第二应用程序时,无线传屏器可以发送弹窗指令给与其相互配对连接的交互平板,使得交互平板弹出提示框,以提示用户手动在电脑端打开对应盘符,并安装第二应用程序。
需要说明的是,电脑获得第二应用程序的方式不限与此,比如电脑也可以从其他第三方设备或特定网站获得第二应用程序。
本申请实施例中,在终端设备运行第二应用程序之前,无线传屏器还可以执行如下步骤:运行iptables路由规则,以实现传屏器网段的切换。
当无线传屏器接收到切换指令时,无线传屏器与终端设备连接的Type-c接口虚拟为有线网卡,该有线网卡具备自身的有线网段,而无线传屏器的无线模组14具备自身的无线网段,运行iptables路由规则可以将Type-c接口所虚拟出来的有线网卡的有线网段转换为无线模组14的无线网段,从而实现有线网段至无线网段的转换,以使得无线传屏器可以通过无线模组将所接收到的USB2.0协议格式的媒体数据发送至无线网络中,再通过无线网络发送至对应的显示节点。
可以理解的是,当无线传屏器通过第二数据引脚实现数据传输时,媒体数据的传输路径为:无线传屏器的硬件接口(虚拟为有线网卡)-无线传屏器的处理器-无线传屏器的无线模组-显示节点(比如交互平板)。
本申请实施例中,当处理器12接收到MIPI格式的数据之后,需要对MIPI格式的数据进行压缩编码处理,在进行编码处理的过程中,需要获取目标参数,根据目标参数对MIPI格式的数据进行压缩编码,若接收不到目标参数,处理器12则无法进行压缩编码处理,此时处理器12若在第二预设时间内未接到目标参数,则可以发送向电脑发送切换指令,电脑接收到该切换指令后,电脑会自动
运行第二应用程序,并通过第二应用程序对电脑的媒体数据进行截图处理以得到屏幕抓取数据,第二应用程序还可以对该屏幕抓取数据进行编码以得到USB2.0协议格式的媒体数据,电脑可以将USB2.0协议格式的媒体数据通过第二数据引脚发送至传屏器3的处理器12,传屏器3的处理器12通过第二数据引脚接收到USB2.0协议格式的媒体数据后发送给无线模组14,无线模组14可以将USB2.0协议格式的媒体数据发送到无线通信网络中的其他网络节点(诸如图1所示的交互平板)进行视频画面的显示。
本申请实施例提供的无线传屏器中,可以在Type-C传输模式无法正常使用时自动切换至Type-A传输模式,快速进入正常的工作状态,而无需用户的手动切换,从而可以改善现有技术操作繁琐、浪费时间的问题。
可选的,第一数据转换芯片分别通过ICC总线和MIPI信号线与所述处理器连接,所述第一数据转换芯片通过所述ICC总线向所述处理器发送通知指令,所述通知指令用于告知所述处理器所述第一数据转换芯片在第三预设时间段内是否有接收到所述DP协议格式的媒体数据。
可以理解的是,第一数据转换芯片51与处理器12之间通过集成电路总线(Inter-Integrated Circuit,IIC或I2C)和移动产业处理器接口(Mobile Industry Processor Interface,MIPI)信号线物理连接,其中集成电路总线用于传输控制数据,比如目标参数,移动产业处理器接口信号线用于传输视频数据,比如MIPI格式的数据。第一数据转换芯片51可以通过集成电路总线向处理器12发送通知指令,该通知指令可以告知处理器12,第一数据转换芯片51在第三预设时间段内是否有接收到DP协议格式的媒体数据,若没有处理器则控制切换为通过两对USB D+/D-引脚从电脑端获取USB2.0协议格式的媒体数据。
本申请实施例还提供一种数据传输装置,包括Type-C接口、第一数据转换芯片、处理器、存储器和无线模组,Type-C接口包括第一数据引脚和第二数据引脚,所述第一数据引脚通过所述第一数据转换芯片与所述处理器连接,所述第二数据引脚与所述处理器连接,所述处理器分别与所述存储器和所述无线模组连接;
所述第一数据引脚用于接收DP协议格式的媒体数据,所述第二数据引脚用于接收USB2.0协议格式的媒体数据;
所述第一数据转换芯片用于接收所述DP协议格式的媒体数据,并将所接收到的DP协议格式的媒体数据转换为MIPI格式的数据,且根据所述DP协议格式的媒体数据获得目标参数,及发送所述MIPI格式的数据和所述目标参数至所述处理器;
所述处理器用于在第一预设时间内未接收到所述MIPI格式的数据时、或者在第二预设时间内未获得所述目标参数时、或者在第三预设时间内确定所述第一数据转换芯片未接收到所述DP协议格式的媒体数据时,通过所述第二数据引脚接收USB2.0协议格式的媒体数据。
上述步骤具体实现方式参考如上申请实施例所述内容,在此不再赘述。
详情请参见图7,本申请实施例还提供了一种数据传输虚拟装置,应用于无线传屏器,所述无线传屏器可与终端设备电连接;
所述装置包括:
启动建立单元301,用于当所述Type-C接口与终端设备连接时,启动建立DP协议和USB2.0协议与终端设备的握手;
媒体数据确定单元302,用于当所述DP协议握手成功时,确定预设时间内是否接收到DP协议格式的媒体数据,所述DP协议格式的媒体数据为基于所述DP协议对所述终端设备当前屏幕显示的媒体数据进行处理生成;
第一指令发送单元303,用于当未收到所述DP协议格式的媒体数据时,向所述终端设备发送切换指令,所述切换指令用于使得所述终端设备对当前显示的媒体数据进行截屏及编码处理;
媒体数据接收单元304,用于接收所述终端设备发送的USB2.0协议格式的媒体数据,所述USB2.0协议格式的媒体数据为基于所述USB2.0协议对所述终端设备截屏及编码处理后的媒体数据进行处理生成。
在一种具体实施方式中,所述装置还包括:
目标参数确定单元,用于当收到所述DP协议格式的媒体数据时,确定预设时间段内是否获取到目标参数,所述目标参数为对所述DP协议格式的媒体数据进行识别处理得到;
第二指令发送单元,用于当未获取到所述目标参数时,向所述终端设备发送切换指令,所述切换指令用于使得所述终端设备对当前显示的媒体数据进行截屏及编码处理。
在一种具体实施方式中,所述装置还包括:
格式转换单元,用于当在所述预设时间段内接收到目标参数时,将所接收到的所述DP协议格式的媒体数据转换为MIPI格式数据;
编码处理单元,用于对所述MIPI格式数据进行编码处理,得到编码结果;
编码传输单元,用于将所述编码结果传输至显示设备,以使所述显示设备解码并显示所述编码结果对应的所述媒体数据。
在一种具体实施方式中,第二指令发送单元,具体可以包括:
应用安装子单元,用于当未收到所述DP协议格式的媒体数据时,确定所述终端设备是否安装有第二应用程序;
切换指令发送子单元,用于当所述终端设备安装有所述第二应用程序时,向所述终端设备发送切换指令,以指示所述终端设备运行所述第二应用程序,并通过所述第二应用程序对当前显示的媒体数据进行截屏及编码处理;
弹窗指令子单元,用于当所述终端设备未安装有所述第二应用程序时,发送弹窗指令给与所述无线传屏器配对连接的显示设备,以指示用户安装所述第二应用程序。
上述装置具体实现方式参考如上申请实施例所述内容,在此不再赘述。
在本申请中,可以提高无线传屏器的工作效率,节约时间。本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。
为此,本申请实施例提供一种计算机可读存储介质,其中存储有多条指令,该指令能够被处理器进行加载,以执行本申请实施例所提供的任一种数据传输方法中的步骤。例如,该指令可以执行如下步骤:检测所述Type-C接口是否与所述终端设备连接;若是,采用Type-C传输模式与所述终端设备进行数据传输以获取DP协议格式的媒体数据;确定预设时间内是否接收到所述DP协议格式
的媒体数据;若否,则采用Type-A传输模式与所述终端设备进行数据传输以获取USB2.0协议格式的媒体数据。
确定在预设时间段内是否获取到目标参数其中,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。
根据本申请的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述实施例中提供的各种可选实现方式中提供的方法。
由于该存储介质中所存储的指令,可以执行本申请实施例所提供的任一种数据传输方法中的步骤,因此,可以实现本申请实施例所提供的任一种数据传输方法所能实现的有益效果,详见前面的实施例,在此不再赘述。
以上对本申请实施例所提供的一种数据传输方法、装置和计算机可读存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。
Claims (20)
- 一种数据传输方法,其中,应用于无线传屏器,所述无线传屏器包括Type-C接口,所述无线传屏器支持DP协议和USB2.0协议通信;所述方法包括:当所述Type-C接口与终端设备连接时,启动建立DP协议和USB2.0协议与终端设备的握手;当所述DP协议握手成功,确定预设时间内是否接收到DP协议格式的媒体数据,所述DP协议格式的媒体数据为基于所述DP协议对所述终端设备当前屏幕显示的媒体数据进行处理生成;若未收到所述DP协议格式的媒体数据,则向所述终端设备发送切换指令,所述切换指令用于使得所述终端设备对当前显示的媒体数据进行截屏及编码处理;接收所述终端设备发送的USB2.0协议格式的媒体数据,所述USB2.0协议格式的媒体数据为基于所述USB2.0协议对所述终端设备截屏及编码处理后的媒体数据进行处理生成。
- 根据权利要求1所述的数据传输方法,其中,当所述DP协议握手成功,确定预设时间内是否接收到DP协议格式的媒体数据,所述DP协议格式的媒体数据为基于所述DP协议对所述终端设备当前屏幕显示的媒体数据进行处理生成之后,所述方法还包括:若收到所述DP协议格式的媒体数据,确定预设时间段内是否获取到目标参数,所述目标参数为对所述DP协议格式的媒体数据进行识别处理得到;若未获取到所述目标参数,则向所述终端设备发送切换指令,所述切换指令用于使得所述终端设备对当前显示的媒体数据进行截屏及编码处理。
- 如权利要求2所述的方法,其中,在所述若收到所述DP协议格式的媒体数据,确定预设时间段内是否获取到目标参数,所述目标参数为对所述DP协议格式的媒体数据进行识别处理得到之后,所述方法还包括:若在所述预设时间段内接收到目标参数,将所接收到的所述DP协议格式的媒体数据转换为MIPI格式数据;对所述MIPI格式数据进行编码处理,得到编码结果;将所述编码结果传输至显示设备,以使所述显示设备解码并显示所述编码结果对应的所述媒体数据。
- 如权利要求3所述的方法,其中,若未收到所述DP协议格式的媒体数据,则向所述终端设备发送切换指令,所述切换指令用于使得所述终端设备对当前显示的媒体数据进行截屏及编码处理,包括:若未收到所述DP协议格式的媒体数据,确定所述终端设备是否安装有第二应用程序;若所述终端设备安装有所述第二应用程序,则向所述终端设备发送切换指令,以指示所述终端设备运行所述第二应用程序,并通过所述第二应用程序对当前显示的媒体数据进行截屏及编码处理;若所述终端设备未安装有所述第二应用程序,则发送弹窗指令给与所述无线传屏器配对连接的显示设备,以指示用户安装所述第二应用程序。
- 如权利要求4所述的方法,其中,所述第二应用程序集成有传屏服务程序,所述传屏服务程序用于在所述无线传屏器与所述终端设备连接时自动运行所述第二应用程序。
- 一种数据传输方法,其中,应用于无线传屏器,所述无线传屏器包括Type-C接口、第一数据转换芯片和处理器,所述Type-C接口通过所述第一数据转换芯片与所述处理器连接,所述Type-C接口包括差分信号引脚和USB2.0数据引脚;所述方法包括:通过所述差分信号引脚接收终端设备发送的DP协议格式的媒体数据;将所接收到的所述DP协议格式的媒体数据发送至所述第一数据转换芯片;所述第一数据转换芯片将所述DP协议格式的媒体数据转换为MIPI格式数据,以及根据所述DP协议格式的媒体数据获得目标参数,并向所述处理器发送所述MIPI格式数据以及所述目标参数;所述处理器在第一预设时间内未接收到所述MIPI格式数据时、或者在第二预设时间内未获得所述目标参数时、或者在第三预设时间内确定所述第一数据 转换芯片未接收到所述DP协议格式的媒体数据时,切换为通过所述USB2.0数据引脚接收USB2.0协议格式的媒体数据。
- 根据权利要求6所述的数据传输方法,其中,所述第一数据转换芯片分别通过ICC总线和MIPI信号线与所述处理器连接,所述第一数据转换芯片通过所述ICC总线向所述处理器发送通知指令,所述通知指令用于告知所述处理器所述第一数据转换芯片在预设时间段内是否有接收到所述DP协议格式的媒体数据;所述第一数据转换芯片通过所述MIPI信号线发送MIPI格式数据。
- 根据权利要求6所述的数据传输方法,其中,所述无线传屏器还包括存储器,所述存储器存储有第二应用程序;所述处理器在预设时间内未接收到所述MIPI格式数据时、或者在预设时间内未获得所述目标参数时、或者在预设时间内确定所述第一数据转换芯片未接收到所述DP协议格式的媒体数据时,控制切换为通过所述USB2.0数据引脚接收USB2.0协议格式的媒体数据,包括:通过所述处理器在第一预设时间内未接收到所述MIPI格式数据时、或者在第二预设时间内未获得所述目标参数时、或者在第三预设时间内确定所述第一数据转换芯片未接收到所述DP协议格式的媒体数据时,所述处理器控制从所述存储器获取所述第二应用程序,并通过所述USB2.0数据引脚发送至所述终端设备,以使得在所述终端设备运行所述第二应用程序,所述第二应用程序用于对所述终端设备当前的媒体数据进行截图与编码处理以得到USB2.0协议格式的媒体数据;所述处理器控制切换为通过所述USB2.0数据引脚接收所述终端设备发送的所述USB2.0协议格式的媒体数据。
- 根据权利要求7所述的数据传输方法,其中,所述无线传屏器还包括存储器,所述存储器存储有第二应用程序;所述处理器在预设时间内未接收到所述MIPI格式数据时、或者在预设时间内未获得所述目标参数时、或者在预设时间内确定所述第一数据转换芯片未接收到所述DP协议格式的媒体数据时,控制切换为通过所述USB2.0数据引脚接收USB2.0协议格式的媒体数据,包括:通过所述处理器在第一预设时间内未接收到所述MIPI格式数据时、或者在第二预设时间内未获得所述目标参数时、或者在第三预设时间内确定所述第一数据转换芯片未接收到所述DP协议格式的媒体数据时,所述处理器控制从所述存储器获取所述第二应用程序,并通过所述USB2.0数据引脚发送至所述终端设备,以使得在所述终端设备运行所述第二应用程序,所述第二应用程序用于对所述终端设备当前的媒体数据进行截图与编码处理以得到USB2.0协议格式的媒体数据;所述处理器控制切换为通过所述USB2.0数据引脚接收所述终端设备发送的所述USB2.0协议格式的媒体数据。
- 一种数据传输装置,其中,包括Type-C接口、第一数据转换芯片、处理器、存储器和无线模组,Type-C接口包括第一数据引脚和第二数据引脚,所述第一数据引脚通过所述第一数据转换芯片与所述处理器连接,所述第二数据引脚与所述处理器连接,所述处理器分别与所述存储器和所述无线模组连接;所述第一数据引脚用于接收DP协议格式的媒体数据,所述第二数据引脚用于接收USB2.0协议格式的媒体数据;所述第一数据转换芯片用于接收所述DP协议格式的媒体数据,并将所接收到的DP协议格式的媒体数据转换为MIPI格式的数据,且根据所述DP协议格式的媒体数据获得目标参数,及向所述处理器发送所述MIPI格式的数据和所述目标参数;所述处理器用于在第一预设时间内未接收到所述MIPI格式的数据时、或者在第二预设时间内未获得所述目标参数时、或者在第三预设时间内确定所述第一数据转换芯片未接收到DP协议格式的媒体数据时,通过所述第二数据引脚接收USB2.0协议格式的媒体数据。
- 一种数据传输装置,其中,包括处理器和存储器,所述存储器存储有多条指令;所述数据传输装置包括Type-C接口,所述无线传屏器支持DP协议和USB2.0协议通信,所述处理器从所述存储器中加载指令,以执行如下步骤:当所述Type-C接口与终端设备连接时,启动建立DP协议和USB2.0协议与终端设备的握手;当所述DP协议握手成功,确定预设时间内是否接收到DP协议格式的媒体数据,所述DP协议格式的媒体数据为基于所述DP协议对所述终端设备当前屏幕显示的媒体数据进行处理生成;若未收到所述DP协议格式的媒体数据,则向所述终端设备发送切换指令,所述切换指令用于使得所述终端设备对当前显示的媒体数据进行截屏及编码处理;接收所述终端设备发送的USB2.0协议格式的媒体数据,所述USB2.0协议格式的媒体数据为基于所述USB2.0协议对所述终端设备截屏及编码处理后的媒体数据进行处理生成。
- 根据权利要求11所述的数据传输装置,其中,所述基于所述的数据传输装置执行所述当所述DP协议握手成功,确定预设时间内是否接收到DP协议格式的媒体数据,所述DP协议格式的媒体数据为基于所述DP协议对所述终端设备当前屏幕显示的媒体数据进行处理生成之后,还包括执行:若收到所述DP协议格式的媒体数据,确定预设时间段内是否获取到目标参数,所述目标参数为对所述DP协议格式的媒体数据进行识别处理得到;若未获取到所述目标参数,则向所述终端设备发送切换指令,所述切换指令用于使得所述终端设备对当前显示的媒体数据进行截屏及编码处理。
- 根据权利要求12所述的数据传输装置,其中,所述基于所述的数据传输装置执行所述若收到所述DP协议格式的媒体数据,确定预设时间段内是否获取到目标参数,所述目标参数为对所述DP协议格式的媒体数据进行识别处理得到之后,还包括执行:若在所述预设时间段内接收到目标参数,将所接收到的所述DP协议格式的媒体数据转换为MIPI格式数据;对所述MIPI格式数据进行编码处理,得到编码结果;将所述编码结果传输至显示设备,以使所述显示设备解码并显示所述编码结果对应的所述媒体数据。
- 根据权利要求13所述的数据传输装置,其中,所述基于所述的数据传输装置执行所述若未收到所述DP协议格式的媒体数据,则向所述终端设备发 送切换指令,所述切换指令用于使得所述终端设备对当前显示的媒体数据进行截屏及编码处理,具体包括执行:若未收到所述DP协议格式的媒体数据,确定所述终端设备是否安装有第二应用程序;若所述终端设备安装有所述第二应用程序,则向所述终端设备发送切换指令,以指示所述终端设备运行所述第二应用程序,并通过所述第二应用程序对当前显示的媒体数据进行截屏及编码处理;若所述终端设备未安装有所述第二应用程序,则发送弹窗指令给与所述无线传屏器配对连接的显示设备,以指示用户安装所述第二应用程序。
- 根据权利要求14所述的数据传输装置,其中,所述第二应用程序集成有传屏服务程序,所述传屏服务程序用于在所述无线传屏器与所述终端设备连接时自动运行所述第二应用程序。
- 一种数据传输装置,其中,包括处理器和存储器,包括Type-C接口、第一数据转换芯片和处理器,所述Type-C接口通过所述第一数据转换芯片与所述处理器连接,所述Type-C接口包括差分信号引脚和USB2.0数据引脚;所述存储器存储有多条指令;所述处理器从所述存储器中加载指令,以执行如下步骤:通过所述差分信号引脚接收终端设备发送的DP协议格式的媒体数据;将所接收到的所述DP协议格式的媒体数据发送至所述第一数据转换芯片;所述第一数据转换芯片将所述DP协议格式的媒体数据转换为MIPI格式数据,以及根据所述DP协议格式的媒体数据获得目标参数,并向所述处理器发送所述MIPI格式数据以及所述目标参数;所述处理器在第一预设时间内未接收到所述MIPI格式数据时、或者在第二预设时间内未获得所述目标参数时、或者在第三预设时间内确定所述第一数据转换芯片未接收到所述DP协议格式的媒体数据时,切换为通过所述USB2.0数据引脚接收USB2.0协议格式的媒体数据。
- 根据权利要求16所述的数据传输装置,其中,所述第一数据转换芯片分别通过ICC总线和MIPI信号线与所述处理器连接,所述第一数据转换芯片通 过所述ICC总线向所述处理器发送通知指令,所述通知指令用于告知所述处理器所述第一数据转换芯片在预设时间段内是否有接收到所述DP协议格式的媒体数据;所述第一数据转换芯片通过所述MIPI信号线发送MIPI格式数据。
- 根据权利要求16所述的数据传输装置,其中,所述存储器存储有第二应用程序;所述处理器在预设时间内未接收到所述MIPI格式数据时、或者在预设时间内未获得所述目标参数时、或者在预设时间内确定所述第一数据转换芯片未接收到所述DP协议格式的媒体数据时,控制切换为通过所述USB2.0数据引脚接收USB2.0协议格式的媒体数据,包括:通过所述处理器在第一预设时间内未接收到所述MIPI格式数据时、或者在第二预设时间内未获得所述目标参数时、或者在第三预设时间内确定所述第一数据转换芯片未接收到所述DP协议格式的媒体数据时,所述处理器控制从所述存储器获取所述第二应用程序,并通过所述USB2.0数据引脚发送至所述终端设备,以使得在所述终端设备运行所述第二应用程序,所述第二应用程序用于对所述终端设备当前的媒体数据进行截图与编码处理以得到USB2.0协议格式的媒体数据;所述处理器控制切换为通过所述USB2.0数据引脚接收所述终端设备发送的所述USB2.0协议格式的媒体数据。
- 一种数据传输虚拟装置,其中,数据传输虚拟装置,应用于无线传屏器,所述无线传屏器可与终端设备电连接;所述装置包括:启动建立单元,用于当所述Type-C接口与终端设备连接时,启动建立DP协议和USB2.0协议与终端设备的握手;媒体数据确定单元,用于当所述DP协议握手成功时,确定预设时间内是否接收到DP协议格式的媒体数据,所述DP协议格式的媒体数据为基于所述DP协议对所述终端设备当前屏幕显示的媒体数据进行处理生成;第一指令发送单元,用于当未收到所述DP协议格式的媒体数据时,向所述终端设备发送切换指令,所述切换指令用于使得所述终端设备对当前显示的 媒体数据进行截屏及编码处理;媒体数据接收单元,用于接收所述终端设备发送的USB2.0协议格式的媒体数据,所述USB2.0协议格式的媒体数据为基于所述USB2.0协议对所述终端设备截屏及编码处理后的媒体数据进行处理生成。
- 一种计算机可读存储介质,其中,存储有多条指令,该指令能够被处理器进行加载,以执行本申请实施例所提供的以下步骤:检测所述Type-C接口是否与所述终端设备连接;若是,采用Type-C传输模式与所述终端设备进行数据传输以获取DP协议格式的媒体数据;确定预设时间内是否接收到所述DP协议格式的媒体数据;若否,则采用Type-A传输模式与所述终端设备进行数据传输以获取USB2.0协议格式的媒体数据。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211505870.5 | 2022-11-28 | ||
CN202211505870.5A CN115878537A (zh) | 2022-11-28 | 2022-11-28 | 数据传输方法及其装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024114247A1 true WO2024114247A1 (zh) | 2024-06-06 |
Family
ID=85764467
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/128341 WO2024114247A1 (zh) | 2022-11-28 | 2023-10-31 | 数据传输方法及其装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115878537A (zh) |
WO (1) | WO2024114247A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115878537A (zh) * | 2022-11-28 | 2023-03-31 | 广州视臻信息科技有限公司 | 数据传输方法及其装置 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111316224A (zh) * | 2018-03-19 | 2020-06-19 | 广州视源电子科技股份有限公司 | 数据传输装置以及数据传输方法 |
US10797885B1 (en) * | 2018-04-18 | 2020-10-06 | Wells Fargo Bank, N.A. | Systems and methods for privacy preserving distributed ledger consensus |
CN113038200A (zh) * | 2019-12-25 | 2021-06-25 | 杭州海康威视数字技术股份有限公司 | 一种实现无线投屏的装置、系统及方法 |
CN115878537A (zh) * | 2022-11-28 | 2023-03-31 | 广州视臻信息科技有限公司 | 数据传输方法及其装置 |
-
2022
- 2022-11-28 CN CN202211505870.5A patent/CN115878537A/zh active Pending
-
2023
- 2023-10-31 WO PCT/CN2023/128341 patent/WO2024114247A1/zh unknown
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111316224A (zh) * | 2018-03-19 | 2020-06-19 | 广州视源电子科技股份有限公司 | 数据传输装置以及数据传输方法 |
US10797885B1 (en) * | 2018-04-18 | 2020-10-06 | Wells Fargo Bank, N.A. | Systems and methods for privacy preserving distributed ledger consensus |
CN113038200A (zh) * | 2019-12-25 | 2021-06-25 | 杭州海康威视数字技术股份有限公司 | 一种实现无线投屏的装置、系统及方法 |
CN115878537A (zh) * | 2022-11-28 | 2023-03-31 | 广州视臻信息科技有限公司 | 数据传输方法及其装置 |
Also Published As
Publication number | Publication date |
---|---|
CN115878537A (zh) | 2023-03-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2019239357B2 (en) | Data transmission device, and data transmission method | |
WO2024114247A1 (zh) | 数据传输方法及其装置 | |
US20200357359A1 (en) | Data transmission device and data transmission method | |
CN109346014B (zh) | 一种虚拟现实设备及其屏幕控制方法 | |
CN113965799B (zh) | 实现有线传屏的方法及装置 | |
US11797470B2 (en) | Electronic device and control method thereof | |
CN101262582A (zh) | 用连接器控制外部数据传送设备的图像显示装置及其方法 | |
CN107948565B (zh) | 实现有线传屏的方法及装置 | |
CN114116571B (zh) | 行动装置桥接平台 | |
WO2024078172A1 (zh) | 一种屏幕显示方法、装置、设备及可读存储介质 | |
CN115802096B (zh) | 一种多路hdmi协同控制方法及系统 | |
WO2024020980A1 (zh) | 数据传输方法、装置、会议系统、无线传屏器和存储介质 | |
WO2022166698A1 (zh) | 充电控制方法、装置、电子设备及充电器 | |
CN217335723U (zh) | 一种用于多视频源切换的桌面控制装置 | |
CN112306435A (zh) | 无线投屏方法、无线投屏器以及会议系统 | |
JP2017097603A (ja) | アダプター及びその制御方法、並びに情報処理装置 | |
WO2022021482A1 (zh) | 多接口的无线同屏装置及无线同屏方法 | |
CN110232934B (zh) | 显示装置及其控制方法 | |
WO2024082278A1 (zh) | 数据传输方法和数据传输设备 | |
CN217932706U (zh) | 数据展示系统及数据获取设备 | |
WO2020220969A1 (zh) | 智能交互设备及其控制方法 | |
TWI737173B (zh) | 擴充座及其控制方法 | |
US20240201739A1 (en) | Novel Computer Architecture System and Control Method Therefor | |
EP4141644A1 (en) | Data transmission method and data transmission device | |
CN215932831U (zh) | 数据传输设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23896401 Country of ref document: EP Kind code of ref document: A1 |