WO2019192178A1 - Screen transmission method and apparatus, electronic device, and computer-readable storage medium - Google Patents

Screen transmission method and apparatus, electronic device, and computer-readable storage medium Download PDF

Info

Publication number
WO2019192178A1
WO2019192178A1 PCT/CN2018/114052 CN2018114052W WO2019192178A1 WO 2019192178 A1 WO2019192178 A1 WO 2019192178A1 CN 2018114052 W CN2018114052 W CN 2018114052W WO 2019192178 A1 WO2019192178 A1 WO 2019192178A1
Authority
WO
WIPO (PCT)
Prior art keywords
external device
screen
state
sharing
shared
Prior art date
Application number
PCT/CN2018/114052
Other languages
French (fr)
Chinese (zh)
Inventor
陈锡剑
Original Assignee
广州视源电子科技股份有限公司
广州视睿电子科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州视源电子科技股份有限公司, 广州视睿电子科技有限公司 filed Critical 广州视源电子科技股份有限公司
Publication of WO2019192178A1 publication Critical patent/WO2019192178A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2370/00Aspects of data communication
    • G09G2370/04Exchange of auxiliary data, i.e. other than image data, between monitor and graphics controller
    • G09G2370/042Exchange of auxiliary data, i.e. other than image data, between monitor and graphics controller for monitor identification
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2370/00Aspects of data communication
    • G09G2370/16Use of wireless transmission of display information

Definitions

  • the present invention relates to the field of screen transmission technologies, and in particular, to a screen transmission method, apparatus, electronic device, and computer readable storage medium.
  • the screen transmission technology mainly refers to the technology of displaying the content displayed on the screen of the source device such as a mobile phone, a computer, and the played sound through a screen device to a display device such as a projector, a television, a conference tablet, and the like.
  • a display device such as a projector, a television, a conference tablet, and the like.
  • Mobile phones, computers and other devices have the advantages of convenient operation and strong processing capability.
  • the display devices such as conference tablets have the advantages of large screen and good sound effects. Through the screen transmission technology, the advantages of the two can be combined and are used in meetings and other scenarios. Use a lot.
  • the current solution usually includes: 1. Switching the channel on the conference tablet to Display the desktop data of the computer that needs to be screened; 2. Remove the screen device on other computers, and access the screen device on the computer that needs to transmit the screen.
  • the user needs to repeatedly insert and remove the screen device, or frequently go to the conference tablet and click to switch the screen channel, so that the above two types of switching screens are inconvenient to use.
  • the present invention provides a screen transmission method, apparatus, electronic device, and computer readable storage medium, which are intended to solve the problem of inconvenient use in the manner of plugging or unplugging a screen at a conference tablet.
  • a method of screen transmission comprising the following steps:
  • Receiving the screen state is the desktop data sent by the external device in the sharing.
  • the screen state further includes:
  • the method further includes:
  • the screen state of the external device is set to be preempted.
  • the screen state further includes:
  • the step of acquiring the state switching signal sent by the external device further includes:
  • the screen state of the screen device is set to be shared.
  • the method further includes:
  • the target external device is selected from the external device to be preempted according to the preset rule, and the screen state of the target external device is set to be shared.
  • the preset rule includes:
  • the external device When there is only one external device whose screen state is to be preempted, the external device is targeted to the external device;
  • the external device to be preempted is the target external device with the oldest or most recently accessed screen state.
  • the method before the step of setting the screen state of the target external device to the sharing step, the method further includes:
  • the external device to be shared is unbound from the driver, and the screen state is set to be preempted, and the target external device is bound to the driver.
  • an external device access event of each communication interface is monitored
  • the preset access rule includes:
  • the screen state of the newly accessed external device is set to be preempted.
  • the preset access rule further includes:
  • the screen state of the newly accessed external device is set to be preempted.
  • the preset access rule further includes:
  • the screen state of the newly accessed external device is set to be shared.
  • the step of setting the screen state of the newly accessed external device to the sharing includes:
  • the screen state of the external device to be shared is set to be preempted, and the screen state of the newly accessed external device is set to be shared.
  • the method before the step of setting the screen state of the newly accessed external device to the sharing, the method further includes:
  • the external device to be shared is unbound from the driver, and the newly accessed external device is bound to the driver.
  • the invention also discloses a screen transmission device, comprising:
  • the acquiring module is configured to: when receiving a state switching signal sent by the external device, acquire a screen state of the external device; where the screen state includes: sharing, used to indicate that the external device is in a state of transmitting desktop data;
  • a setting module configured to set a screen state of the external device to be shared if the screen state of the external device is not shared;
  • the receiving module is configured to receive the desktop data sent by the external device in the sharing state.
  • the invention also discloses an electronic device, comprising:
  • a memory for storing processor executable instructions
  • the processor is configured to perform the screen transmission method according to any of the preceding claims.
  • the invention also discloses a computer readable storage medium having stored thereon a computer program, the program being executed by the processor to implement the screen transmission method according to any of the preceding claims.
  • the invention provides a screen state for the external device, the screen state includes: sharing; when receiving the state switching signal sent by the external device connected to the communication interface, acquiring the screen state of the external device; when the external device transmits When the screen status is not sharing, the screen status of the screen device is set to be shared; the screen status is the desktop data sent by the external device in the sharing.
  • the conference tablet can only receive the desktop data sent by an external device at a certain moment.
  • the present invention changes the screen state of the external device by binding or unbinding the driver of the conference panel to the external device, and receives the state.
  • the screen state is the desktop data sent by the external device in the sharing, and only one external device is bound to the driver at a certain time, that is, only the screen state of one external device is shared, and the user can transmit the state switching signal. Preemptive screen transmission, so that there is no need to repeatedly insert and drop the screen device or go to the conference tablet and click to switch the screen channel.
  • the switching mode of the screen device is simple and convenient.
  • FIG. 1a is a flowchart of a screen transmission method according to an exemplary embodiment of the present invention
  • FIG. 1b is a schematic diagram showing access to two external devices according to an exemplary embodiment of the present invention.
  • FIG. 1c is a schematic diagram of a screen in a conference tablet according to an exemplary embodiment of the present invention.
  • FIG. 1d is a diagram of a screen frame in a conference tablet according to an exemplary embodiment of the present invention.
  • 2a is a screen frame diagram of an existing conference tablet
  • 2b is a schematic diagram of switching an external device by plugging and unplugging
  • FIG. 3 is a flowchart of a screen transmission method according to an exemplary embodiment of the present invention.
  • FIG. 4 is a flowchart of a screen transmission method according to an exemplary embodiment of the present invention.
  • FIG. 5a is a logic diagram of a state machine according to an exemplary embodiment of the present invention.
  • FIG. 5b is a logic diagram of a state machine according to an exemplary embodiment of the present invention.
  • FIG. 6 is a logic block diagram of a screen device according to an exemplary embodiment of the present invention.
  • FIG. 7 is a logic block diagram of an electronic device according to an exemplary embodiment of the invention.
  • first, second, third, etc. may be used to describe various information in the present invention, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as the second information without departing from the scope of the invention.
  • second information may also be referred to as the first information.
  • word "if” as used herein may be interpreted as "when” or “when” or “in response to a determination.”
  • the screen transmission technology mainly refers to the technology of displaying the content displayed on the screen of the source device such as a mobile phone, a computer, and the played sound (desktop data) to a display device such as a projector, a television, a conference tablet, etc. through a screen device.
  • a display device such as a projector, a television, a conference tablet, etc.
  • Mobile phones, computers and other devices have the advantages of convenient operation and strong processing capability.
  • the display devices such as conference tablets have the advantages of large screen and good sound effects. Through the screen transmission technology, the advantages of the two can be combined and are used in meetings and other scenarios. Use a lot.
  • the current solution usually includes: 1. Switching the channel on the conference tablet to Display the desktop data of the computer that needs to be screened; 2. Remove the screen device on other computers, and access the screen device on the computer that needs to transmit the screen.
  • the user needs to repeatedly insert and remove the screen device, or frequently go to the conference tablet and click to switch the screen channel, so that the above two types of switching screens are inconvenient to use.
  • the present invention provides a screen transmission method, as shown in FIG. 1a, comprising the following steps:
  • Step S110 Acquire a screen state of the external device when receiving the state switching signal sent by the external device, where the screen state includes: in the sharing, used to indicate that the external device is in the state of transmitting desktop data;
  • the wireless communication screen, the conference tablet and the screen transmission device communicate data through the network, so that the driver and the screen device in the conference tablet operating system are not required to be adapted, so that there is no binding or unbinding driver.
  • the manner of modifying the screen state is modified. Therefore, an embodiment of the method is applied to a wired screen.
  • the current process of transmitting a screen through a wired screen device is as follows: one end of the screen device and the USB of the source device (notebook, etc.) The interface is connected, and the other end is connected to the USB interface of the conference panel.
  • the source device supplies power to the screen device, so that the screen device is in the startup state.
  • the conference panel enumerates the information of the device accessed by each interface when the USB interface is connected to the device.
  • the driver is bound to the screen device, so that the desktop data of the source device captured by the screen device can be received, and the conference tablet parses and renders the desktop data on the screen, thereby realizing Screen.
  • the conference tablet 200 detects the VID (Vendor ID, Vendor ID) and/or PID (Product ID) of the connected device through information driving. And the identity information, when the device that is accessed is the screen device 100, the screen driver is bound to the screen device 100, so that the desktop data sent by the screen device 100 can be received (the desktop data is a screen device) 100 is grabbed from the source device 301).
  • the user can also stop/turn the screen by pressing the button 101 on the screen device 100, which means that the screen device 100 does not send the desktop data to the conference tablet 200.
  • the screen device can be connected to the source device that needs to be screened.
  • the screen device 100 in FIG. 2b is from the source device. After the 302 is removed, the screen device 100 is inserted into the USB interface of the source device 301.
  • the source device 301 is connected to the conference tablet 200 through the screen device 111, and the source device 302 is connected to the conference panel 200 through the screen device 112.
  • the information driver can recognize the screen device 111, 112, there is only one screen driver, and a screen driver can only be bound to a screen device, and usually does not unbind after binding, unless tied The fixed screen device is removed and so on.
  • the existing wired transmission mode cannot conveniently and quickly switch between multiple source devices 301 and 302.
  • the present invention is an external device (which can be understood as a screen device 111, 112, and of course, the screen device and its connected source device as a whole as an external device) can be set to a screen state
  • FIG. 1c shows that the main difference from FIG. 2b is that the adaptation drive 1 and the adaptation drive 2 are added, wherein the adaptation drive 1 is one, and the number of the adaptation drive 2 can be set as needed, not limited to the figure.
  • the picture shows that the main difference from FIG. 2b is that the adaptation drive 1 and the adaptation drive 2 are added, wherein the adaptation drive 1 is one, and the number of the adaptation drive 2 can be set as needed, not limited to the figure.
  • the adaptation drive 1 is one
  • the number of the adaptation drive 2 can be set as needed, not limited to the figure.
  • the adaptation driver of the present invention is an underlying architecture of the operating system, and can report communication messages to the upper layer application, and the screen driver can report the multimedia file (desktop data) to the upper layer application, and the screen application can obtain the transmission through the system call.
  • the desktop data reported by the screen driver is an underlying architecture of the operating system, and can report communication messages to the upper layer application, and the screen driver can report the multimedia file (desktop data) to the upper layer application, and the screen application can obtain the transmission through the system call.
  • the desktop data reported by the screen driver.
  • the invention can adapt a plurality of external devices by setting the adaptation drive 1 and the adaptation drive 2, and only the adaptation drive 1 can be bound to the screen drive, and the desktop data of the external device can be sent to the adaptation drive 1, Then, the adaptation driver 1 sends the transmission to the screen driver, so that the screen application can obtain the desktop data through the system call.
  • the external device is in the state of transmitting the desktop data, that is, the external device is in the state of transmitting the desktop data; in combination with the foregoing, the external device in the sharing state is adapted to the adaptation driver 1; for example, in FIG. 1b
  • the transmission status of the source device 301 is shared, and the transmission status of the source device 302 is obviously not shared (only one source device can be in the sharing state at the same time), that is, the source device 301 and
  • the adaptation drive 1 is adapted and the source device 302 is adapted to the adaptation drive 2.
  • the button 102 on the screen device 112 can be pressed, so that the screen device 112 sends a state switching signal to the conference tablet 200, and the adaptation driver 2 is used for listening.
  • Step S120 If the screen state of the external device is not in the sharing, set the screen state of the screen device to be shared;
  • the purpose of the present invention is to enable different external devices to "grab" the opportunity of the screen (which can be considered as "preemptive screen”). For this reason, different rules can be set for the preemption screen, for example, receiving the screen state.
  • the screen state of the screen device can be set to be shared; of course, other rules can be added, for example, the current screen state can be waited for the shared external device.
  • the screen status of the external device to be preempted is set to be medium.
  • the conference tablet 200 can only receive and display the desktop data of one source device at the same time, that is, the screen state is only one of the source devices in the sharing state, and if there is a state switching signal, the existing data is already transmitted. If the status of the screen is the source device in the sharing, you need to switch the screen status of the source device from sharing to not sharing.
  • an embodiment of the present invention refers to a screen-on state of an external device that is adapted to the adaptation driver 2, and is to be preempted, and is used to characterize that the external device is in a state of waiting to transmit desktop data.
  • the screen state is the shared external device
  • the screen state of the external device is set to be preempted, and then the screen state of the external device that preempts the screen is set to Sharing.
  • the adaptation driver 2 As mentioned before, there is only one adaptation driver 1, and if it is necessary to send desktop data to the screen application, the external device must be adapted to the driver 1, as shown in FIG. 1b and FIG. 1c, the screen is transmitted at the source device 301.
  • the state is sharing, and when the user sends a state switching signal (key event) by pressing the button of the screen device 102 to preempt the screen, the adaptation driver 2 generates a thread according to the state switching signal, so that the driver 1 and the screen driver are adapted.
  • the interface device 101 is unbundled, the adaptation driver 2 is unbundled with the screen device 102, and the adaptation driver 1 is bound to the screen driver and the screen device 102, and the adaptation driver 2 is bound to the screen device 101.
  • the adaptation driver 2 reports the button event to the screen application, and the screen application controls the binding and unbinding process.
  • the present invention does not limit the control subject and process of binding and unbinding.
  • Step S130 Receive the screen data status as desktop data sent by the external device in the sharing.
  • the present invention achieves the purpose of switching the screen state by controlling the binding and/or unbinding of the driver to the external device by setting the screen state for the external device and receiving the state switching signal sent by the external device, since the same time is the most Only the screen status of one external device is sharing, and the conference tablet 200 only receives and displays the desktop data sent by the external device in the sharing state.
  • the invention does not need to repeatedly insert and remove the screen transmission device or go to the conference tablet and click to switch the screen transmission channel.
  • the user can switch the desktop data received by the conference panel by controlling the screen transmission device to send the state switching signal, and the switching mode of the screen transmission device is simple and convenient. .
  • an embodiment of the present invention also proposes the following method:
  • the step of acquiring the state switching signal sent by the external device further includes:
  • the screen state of the screen device is set to be shared.
  • the screen state also includes:
  • the state switching signal is not only that the screen state is not transmitted by the external device in the sharing, but also that the external device in the sharing state can also be transmitted.
  • the status of the screen is a status switch signal sent by the external device in the sharing
  • the user usually wants to pause the display of the desktop data of the source device on the conference tablet 200.
  • the screen device pauses to transmit the desktop data to the conference tablet 200.
  • the screen device pauses to grab desktop data from the source device.
  • the status of the external device in this case is called to be shared, and the status of the external device is in the state of aborting the transmission of the desktop data.
  • the screen state is converted into an external device to be shared, which is still adapted to the adaptation driver 1, which is still bound to the screen driver.
  • the foregoing method of "grabbing" the state of the screen in the sharing state by the transmission state switching signal may be referred to as a preemptive preemptive screen.
  • it may also be a preemptive screen for passive preemption.
  • the screen state is sharing.
  • the external device can "give" the sharing status of the screen to other external devices by exiting the screen, and can also achieve the purpose of switching the screen device.
  • the step of the screen device is set to be shared, when the screen is in the sharing state, as shown in FIG. 3, :
  • Step S310 detecting whether there is an external device that is in a screen state to be preempted
  • step S320 if yes, the target external device is selected from the external device to be preempted according to the preset rule, and the screen state of the target external device is set to be shared.
  • each participant can “preempt” the opportunity of the screen by pressing the button of the screen device.
  • the person who is transmitting the screen “exit” by pressing the button of the screen device. the upcoming screen opportunity will let other people.
  • the screen state of the newly accessed external device can be set to be preempted.
  • the screen sharing state is that the sharing screen device is configured to suspend the sharing of the desktop by sending a state switching signal
  • the conference tablet 200 is also connected to other external devices (that is, the external device to be preempted is present)
  • the rule selects the target external device from the external device to be preempted from the screen state, and sets the screen state of the target external device to be shared.
  • the preset rules may have different forms and may be set according to actual requirements.
  • the present invention provides a preset rule, including:
  • the external device When there is only one external device whose screen state is to be preempted, the external device is targeted to the external device;
  • the external device to be preempted is the target external device with the oldest or most recently accessed broadcast state.
  • the source device 301 is connected to the conference tablet 200 through the screen device 111, and the source device 302 is connected to the conference tablet 200 through the screen device 112, and the desktop data of the source device 301 is transmitted to the screen.
  • the screen transmission state of the screen device 111 is shared, that is, the adaptation driver 1 is adapted to the screen device 111 and is bound to the screen driver.
  • the adaptation driver 2 is adapted to the screen device 112, and the screen transmission state of the screen device 112 is to be preempted.
  • the desktop data is to be transmitted to the conference tablet 200, it must be driven by the screen, and the adaptation driver 1 is the only adaptive driver that can be matched with the screen driver. Therefore, when the screen device 112 wants to seize the screen opportunity (that is, the screen state becomes sharing), the following operations are required:
  • the method further includes:
  • the external device to be shared is unbound from the driver, and the screen state is set to be preempted, and the target external device is bound to the driver.
  • the binding relationship between the screen driving device and the screen device 111 is first released, and the screen state of the screen device 111 is set to be preempted, and the adaptation driver 2 and the screen device 111 can also be adapted.
  • the screen device 112 as the target external device is adapted to the adaptation driver 1, and the adaptation driver 1 is bound to the screen driver, so that the screen state of the screen device 112 is shared.
  • the descriptions of the unbundling, rebinding, and screen state settings are for the preemptive screen capture of passive preemption, but the unbundling, rebinding, and screen state are also present during the preemptive preemption screen transmission.
  • the specific process is similar to the above method and will not be described here.
  • the method of an embodiment of the present invention further includes the following steps:
  • Step S410 Listening to an external device access event of each communication interface
  • Step S420 Set a screen transmission state for the accessed external device according to the preset access rule.
  • the preset access rule includes:
  • the screen state of the newly accessed external device is set to be preempted.
  • the conference tablet 200 will enumerate the VID/PID and other identity information of the newly accessed device through the USB driver.
  • the information driver is used to obtain the identity information.
  • the device that is accessed is identified as the screen device, it is determined whether the screen is currently present.
  • the status is the external device in the sharing (ie, whether there is an external device bound to the adaptation driver 1). If it does not exist, for example, this is currently the only one of the screen devices connected to the conference tablet 200. Of course, it may be before Although a plurality of external devices are connected, the external device that is shared or to be shared is removed, but other external devices do not preempt the screen and become the external device in the sharing state; Set the screen status of the newly accessed external device to shared.
  • the screen state of the newly accessed external device is set to be preempted, that is, the screen state is the same as the adaptation relationship between the external device in the sharing and the adaptation driver 1.
  • the newly accessed external device and the adaptation driver 2 (the plurality of adaptation drivers 2 can be generated according to the number of external devices adapted to the adaptation driver 2), so that the newly accessed external device does not interrupt the current
  • the screen display shows that if the newly accessed external device needs to preempt the screen, it can preempt the screen by pressing the button to send the status switching signal.
  • the preset access rule may also have other methods. For example, if the user newly inserts an external device, the new external device is used to transmit the screen, so that when the access to the external device is detected, the newly accessed external device is about to be newly accessed.
  • the screen status is set to be shared, and if the external device that has been "robbed" of the screen opportunity still needs to transmit the screen, the screen switching opportunity can be retrieved by pressing the button to send the status switching signal.
  • the preset access rule can be set according to the actual use requirement, which is not limited by the present invention.
  • the preset access rule may further include:
  • the screen state of the newly accessed external device is set to be shared.
  • the external device to be shared (hereinafter referred to as the external device) is still bound to the adaptation driver 1, as shown in FIG. 1d.
  • the newly accessed external device (hereinafter referred to as the following)
  • the B external device is adapted to the adaptation driver 3, and the screen transmission state is to be preempted.
  • the adaptation driver 3 can generate a thread to control the adaptation driver 1 to unbundle the screen driver and the external device, and the adaptation driver 3 is unbundled with the B external device; and then the adaptive driver 1 and the screen driver and the B external device are controlled.
  • Device binding, adaptation driver 2 is bound to an external device.
  • the conference tablet can receive and display the desktop data sent by the external device B.
  • the new access device is an access event for the adaptation driver 3, so that the adaptation driver 3 can also report the access event to the screen application, and the screen application controls the binding and unbinding process.
  • the present invention does not limit the control subject and process of binding and unbinding.
  • the preset access rules may also include:
  • the screen state of the newly accessed external device is set to be preempted.
  • the system architecture of the conference tablet can be as shown in FIG. 1c, and the type of the adaptation driver can be only the adaptation driver 1 and the (several) adaptation driver 2, and the newly accessed external device and the screen transmission state are the external to be preempted.
  • the device can be adapted to the adaptation driver 2, and the adaptation driver 2 is configured to listen for the button event.
  • the binding device is unbundled and bound, so that the screen state of the external device that generates the button event is changed.
  • the specific process is similar to the process of unbinding and binding, and will not be described here.
  • the first external device when a new device (hereinafter referred to as the first external device) is newly accessed, it is determined whether there is currently an external device whose sharing state is the shared S or the A to be shared. If not, the first device is An external device can directly transmit the screen, thereby adapting the first external device to the adaptation driver 1 (D-A1), and the adaptation driver 1 is bound to the screen driver.
  • D-A1 adaptation driver 1
  • the screen is in the state of sharing the external device of S, and the sharing of the desktop can be paused by pressing a button, thereby setting the screen state to be shared A; and the screen state is the external device to be shared A, by pressing a button Start sharing the desktop to set the screen status to Share S.
  • the external device switches the screen state between the sharing S and the to-be-shared A by pressing a button, the external device is always adapted to the adaptation driver 1 (D-A1), and the adaptation driver 1 is always transmitted. Screen driver binding.
  • the second external device When a new device (hereinafter referred to as a second external device) is newly accessed, and an external device (the first external device) whose screen state is the shared S is already present in the external device connected to the conference tablet, the second external device needs to be set.
  • the screen is preempted by the button to send the state switching signal.
  • the adaptation driver 2 (D-A2) is adapted to preempt the external device of the screen by pressing a button.
  • the second external device is adapted to the adaptation driver 2 (D-A2), and its screen state is to be preempted by W.
  • the adaptation driver 2 is configured to listen to a state switching signal sent by an external device. When the adaptation driver 2 detects the state switching signal (key event) sent by the second external device, the adaptation driver 2 can cause the adaptation driver 1 to be unbundled with the screen driver and the first external device by generating a thread.
  • the matching driver 2 is unbundled with the second external device; the adaptive driving driver 1 is further bound to the screen driving driver and the second external device, and the adaptation driver 2 is bound to the first external device. Therefore, the screen state of the first external device changes from the S in the sharing to the W to be preempted; the state of the second external device changes from the to-be-preempted W to the shared S.
  • the adaptation driver 2 can also make a decision by the screen application by notifying the button application of the button event: unbinding the adaptation driver 1 with the first external device and the screen driver, and adapting the driver 2 and the second The external device is unbundled; the adaptation driver 1 is bound to the screen driver and the second external device, and the screen state of the second external device is changed from the to-be-preempted W to the shared S; the adapted driver 2 and the first external device are Adaptation, the screen state of the first external device changes from S in the sharing to W to be preempted.
  • the third external setting is set.
  • the device preempts the screen by inserting the device.
  • the external device that preempts the screen can be pre-empted by the adaptation driver 3 (D-A3).
  • the third external device is adapted to the adaptation driver 3 (D-A3), and its screen state is to be preempted by W.
  • the adaptation driver 3 can generate the thread, so that the adaptation driver 1 is unbundled with the screen driver and the first external device, and the adaptation driver 3 is unbundled with the third external device; and then the adaptation driver 1 and the screen driver are controlled.
  • the third external device is bound, and the adaptation driver 2 is bound to the first external device. Therefore, the screen state of the first external device changes from the A to be shared to the W to be preempted; and the screen state of the second external device changes from the to-be-preempted W to the shared S.
  • the driver 3 can also be notified of the screen application, and the screen application can make a decision: the adapter driver 1 is unbundled with the first external device and the screen driver, and the adapter driver 3 is unbundled with the third external device. Binding the adaptation driver 1 to the screen driver and the third external device, the screen state of the third external device is changed from the to-be-preempted W to the sharing S; the adaptation driver 2 is adapted to the first external device, The screen state of an external device changes from to be shared A to be preempted.
  • the first external device when a new external device (hereinafter referred to as the first external device) is newly accessed, it is determined whether there is currently an external device whose sharing state is the shared S or the A to be shared. If not, the first device is An external device can directly transmit the screen, thereby adapting the first external device to the adaptation driver 1 (D-A1), and the adaptation driver 1 is bound to the screen driver.
  • D-A1 adaptation driver 1
  • the screen is in the state of sharing the external device of S, and the sharing of the desktop can be paused by pressing a button, thereby setting the screen state to be shared A; and the screen state is the external device to be shared A, by pressing a button Start sharing the desktop to set the screen status to Share S.
  • the external device switches the screen state between the sharing S and the to-be-shared A by pressing a button, the external device is always adapted to the adaptation driver 1 (D-A1), and the adaptation driver 1 is always transmitted. Screen driver binding.
  • the adapter When the external device (hereinafter referred to as the second external device) is newly connected, and the external device (the first external device) whose sharing state is the sharing S or the A to be shared is already present in the external device connected to the conference tablet, the adapter is adapted.
  • the driver 1 is already occupied by the first external device, and the second external device can only be taken over by the adaptation driver 2, and its screen state is to be preempted by W. Then, the second external device needs to preempt the screen by pressing the button to send the state switching signal.
  • the adaptation driver 2 is configured to listen to a state switching signal sent by an external device.
  • the adaptation driver 2 detects the state switching signal (key event) sent by the second external device
  • the adaptation driver 2 can cause the adaptation driver 1 to be unbundled with the screen driver and the first external device by generating a thread.
  • the matching driver 2 is unbundled with the second external device; the adaptive driving driver 1 is further bound to the screen driving driver and the second external device, and the adaptation driver 2 is bound to the first external device. Therefore, the screen state of the first external device changes from the S in the sharing to the W to be preempted; the state of the second external device changes from the to-be-preempted W to the shared S.
  • the adaptation driver 2 can also make a decision by the screen application by notifying the button application of the button event: unbinding the adaptation driver 1 with the first external device and the screen driver, and adapting the driver 2 and the second The external device is unbundled; the adaptation driver 1 is bound to the screen driver and the second external device, and the screen state of the second external device is changed from the to-be-preempted W to the shared S; the adapted driver 2 and the first external device are Adaptation, the screen state of the first external device changes from S in the sharing to W to be preempted.
  • the screen state "not connected N" described in Figures 5a and 5b is mainly for the logic machine to be complete. In fact, after the external device is pulled out, the driver is not required to be adapted.
  • the present invention also provides an embodiment of the screen device.
  • Embodiments of the screen device of the present invention can be applied to a conference tablet.
  • the device embodiment may be implemented by software, or may be implemented by hardware or a combination of hardware and software.
  • the processor of the conference tablet is configured to read the corresponding computer program instructions in the non-volatile memory into the memory.
  • FIG. 7 a hardware structure diagram of a conference tablet in which the screen device of the present invention is located, except for the processor, the memory, the network interface, and the non-volatile memory shown in FIG.
  • the conference tablet in which the device is located in the embodiment may be further included in other hardware according to the actual function of the conference tablet, and details are not described herein again.
  • a screen device includes:
  • the acquiring module is configured to: when receiving a state switching signal sent by the external device, acquire a screen state of the external device; where the screen state includes: sharing, used to indicate that the external device is in a state of transmitting desktop data;
  • a setting module configured to set a screen state of the external device to be shared if the screen state of the external device is not in the sharing;
  • the receiving module is configured to receive the desktop data sent by the external device in the sharing state.
  • the device embodiment since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solution of the present invention. Those of ordinary skill in the art can understand and implement without any creative effort.
  • an electronic device including:
  • a memory for storing processor executable instructions
  • the processor is configured to perform the screen transmission method according to any of the preceding claims.
  • the present invention provides a computer readable storage medium having stored thereon a computer program, the program being executed by a processor to implement the screen method according to any of the preceding claims.
  • Embodiments of the invention may take the form of a computer program product embodied on one or more readable media (including but not limited to disk storage, CD-ROM, optical storage, etc.) in which program code is embodied.
  • Computer-readable readable media include both permanent and non-persistent, removable and non-removable media, and information storage can be implemented by any method or technology.
  • the information can be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer readable media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only Memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage
  • PRAM phase change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • ROM read only Memory
  • EEPROM electrically erasable programmable read only memory
  • flash memory or other memory technology
  • CD-ROM compact disc
  • DVD digital versatile disc

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Digital Computer Display Output (AREA)

Abstract

A screen transmission method and apparatus, an electronic device, and a computer-readable storage medium, the method comprising: when receiving a state switching signal that is sent by an external device, acquiring a screen transmission state of the external device, wherein the screen transmission state comprises: sharing, which is used to characterize the external device being in a state of transmitting desktop data (S110); if the screen transmission state of the external device is not sharing, configuring the screen transmission state of the external device to be sharing (S120); and receiving desktop data that is sent by the external device the screen transmission state of which is sharing (S130). When the state switching signal is received, the screen transmission state of the external device is changed by means of controlling a driver of a conference tablet to bind with or unbind from the external device, and desktop data that is sent by the external device the screen transmission state of which is sharing is received, and thus a user may perform preemptive screen transmission by means of sending a state switching signal, and the manner of switching for a screen transmission device is simple and convenient.

Description

传屏方法、装置、电子设备及计算机可读存储介质Screening method, device, electronic device and computer readable storage medium 技术领域Technical field
本发明涉及传屏技术领域,尤其涉及一种传屏方法、装置、电子设备及计算机可读存储介质。The present invention relates to the field of screen transmission technologies, and in particular, to a screen transmission method, apparatus, electronic device, and computer readable storage medium.
背景技术Background technique
传屏技术主要是指将手机、电脑等源端设备的屏幕上显示的内容和播放的声音通过传屏设备同步到投影仪、电视机、会议平板等显示设备进行展示的技术。手机、电脑等设备具有操作方便、处理能力强等优势,而会议平板等显示设备具有屏幕大、音效好等优势,通过传屏技术就可以将两者具备的优势结合,在会议等场景下被大量使用。The screen transmission technology mainly refers to the technology of displaying the content displayed on the screen of the source device such as a mobile phone, a computer, and the played sound through a screen device to a display device such as a projector, a television, a conference tablet, and the like. Mobile phones, computers and other devices have the advantages of convenient operation and strong processing capability. The display devices such as conference tablets have the advantages of large screen and good sound effects. Through the screen transmission technology, the advantages of the two can be combined and are used in meetings and other scenarios. Use a lot.
以会议场景为例,开会时,可能有多个参会人员需要将自己电脑上的数据传屏到会议平板上展示,目前的解决方式通常包括:1、在会议平板上切换传屏通道,以显示需要传屏的电脑的桌面数据;2、移除其他电脑上的传屏设备、在需要传屏的电脑上接入传屏设备。特别是需要频繁切换传屏的场景下,用户需要反复插拔传屏设备,或者频繁的走到会议平板处点击切换传屏通道,从而上述2种切换传屏的方式使用均不方便。Taking a conference scenario as an example, during a meeting, there may be multiple participants who need to transfer the data on their computer to the conference tablet. The current solution usually includes: 1. Switching the channel on the conference tablet to Display the desktop data of the computer that needs to be screened; 2. Remove the screen device on other computers, and access the screen device on the computer that needs to transmit the screen. In particular, in a scenario where the screen is frequently switched, the user needs to repeatedly insert and remove the screen device, or frequently go to the conference tablet and click to switch the screen channel, so that the above two types of switching screens are inconvenient to use.
发明内容Summary of the invention
有鉴于此,本发明提供一种传屏方法、装置、电子设备及计算机可读存储介质,旨在解决现有插拔或在会议平板处点击切换传屏的方式使用不方便的问题。In view of this, the present invention provides a screen transmission method, apparatus, electronic device, and computer readable storage medium, which are intended to solve the problem of inconvenient use in the manner of plugging or unplugging a screen at a conference tablet.
具体地,本发明是通过如下技术方案实现的:Specifically, the present invention is achieved by the following technical solutions:
一种传屏方法,包括以下步骤:A method of screen transmission, comprising the following steps:
当接收到外部设备发送的状态切换信号时,获取该外部设备的传屏 状态;其中,传屏状态包括:分享中,用于表征外部设备处于传输桌面数据的状态;Obtaining a screen state of the external device when receiving the state switching signal sent by the external device; wherein the screen state includes: sharing, indicating that the external device is in a state of transmitting desktop data;
如果该外部设备的传屏状态不是分享中,将该外部设备的传屏状态设置为分享中;If the screen status of the external device is not shared, set the screen status of the external device to be shared;
接收该传屏状态为分享中的外部设备发送的桌面数据。Receiving the screen state is the desktop data sent by the external device in the sharing.
一个实施例中,所述传屏状态还包括:In an embodiment, the screen state further includes:
待抢占,用于表征外部设备处于等待传输桌面数据的状态;To be preempted, used to characterize the state in which the external device is waiting to transmit desktop data;
所述将该传屏设备的传屏状态设置为分享中的步骤之前,还包括:Before the step of setting the screen state of the screen device to the sharing, the method further includes:
如果存在传屏状态为分享中的外部设备,则将该外部设备的传屏状态设置为待抢占。If there is an external device in the sharing state, the screen state of the external device is set to be preempted.
一个实施例中,所述传屏状态还包括:In an embodiment, the screen state further includes:
待分享,用于表征外部设备处于中止传输桌面数据的状态;To be shared, used to characterize that the external device is in a state of aborting the transmission of desktop data;
所述当接收到外部设备发送的状态切换信号时,获取该外部设备的传屏状态的步骤之后,还包括:After the step of acquiring the state of the screen of the external device, the step of acquiring the state switching signal sent by the external device further includes:
当该外部设备的传屏状态为分享中时,将该传屏设备的传屏状态设置为待分享。When the screen state of the external device is sharing, the screen state of the screen device is set to be shared.
一个实施例中,所述当该外部设备的传屏状态为分享中时,将该传屏设备的传屏状态设置为待分享的步骤之后,还包括:In an embodiment, after the step of setting the screen state of the screen device to be shared, when the screen is in the sharing state, the method further includes:
检测是否存在传屏状态为待抢占的外部设备;Detect whether there is an external device whose screen state is to be preempted;
若存在,则根据预设规则从传屏状态为待抢占的外部设备中选取目标外部设备,并将该目标外部设备的传屏状态设置为分享中。If yes, the target external device is selected from the external device to be preempted according to the preset rule, and the screen state of the target external device is set to be shared.
一个实施例中,所述预设规则包括:In an embodiment, the preset rule includes:
当仅存在一个传屏状态为待抢占的外部设备时,以该外部设备为目标外部设备;When there is only one external device whose screen state is to be preempted, the external device is targeted to the external device;
当存在多个传屏状态为待抢占的外部设备时,以最早或最近接入的传屏状态为待抢占的外部设备为目标外部设备。When there are multiple external devices to be preempted, the external device to be preempted is the target external device with the oldest or most recently accessed screen state.
一个实施例中,所述将该目标外部设备的传屏状态设置为分享中的 步骤之前,还包括:In an embodiment, before the step of setting the screen state of the target external device to the sharing step, the method further includes:
将该传屏状态为待分享的外部设备与驱动解除绑定、并将传屏状态设置为待抢占,将目标外部设备与驱动绑定。The external device to be shared is unbound from the driver, and the screen state is set to be preempted, and the target external device is bound to the driver.
一个实施例中,监听各通信接口的外部设备接入事件;In one embodiment, an external device access event of each communication interface is monitored;
根据预设接入规则为接入的外部设备设置传屏状态;Setting a screen state for the accessed external device according to a preset access rule;
所述预设接入规则包括:The preset access rule includes:
当存在传屏状态为分享中的外部设备时,将新接入的外部设备的传屏状态设置为待抢占。When there is an external device in the sharing state, the screen state of the newly accessed external device is set to be preempted.
一个实施例中,所述预设接入规则还包括:In an embodiment, the preset access rule further includes:
当存在传屏状态为待分享的外部设备时,将新接入的外部设备的传屏状态设置为待抢占。When there is an external device to be shared, the screen state of the newly accessed external device is set to be preempted.
一个实施例中,所述预设接入规则还包括:In an embodiment, the preset access rule further includes:
当存在传屏状态为待分享的外部设备时,将新接入的外部设备的传屏状态设置为分享中。When there is an external device whose screen state is to be shared, the screen state of the newly accessed external device is set to be shared.
一个实施例中,所述当存在传屏状态为待分享的外部设备时,将新接入的外部设备的传屏状态设置为分享中的步骤,包括:In an embodiment, when there is an external device to be shared, the step of setting the screen state of the newly accessed external device to the sharing, includes:
将该传屏状态为待分享的外部设备的传屏状态设置为待抢占,将新接入的外部设备的传屏状态设置为分享中。The screen state of the external device to be shared is set to be preempted, and the screen state of the newly accessed external device is set to be shared.
一个实施例中,所述将新接入的外部设备的传屏状态设置为分享中的步骤之前,还包括:In an embodiment, before the step of setting the screen state of the newly accessed external device to the sharing, the method further includes:
将该传屏状态为待分享的外部设备与驱动解除绑定,将该新接入的外部设备与驱动绑定。The external device to be shared is unbound from the driver, and the newly accessed external device is bound to the driver.
本发明还公开了一种传屏装置,包括:The invention also discloses a screen transmission device, comprising:
获取模块,用于当接收到外部设备发送的状态切换信号时,获取该外部设备的传屏状态;其中,传屏状态包括:分享中,用于表征外部设备处于传输桌面数据的状态;The acquiring module is configured to: when receiving a state switching signal sent by the external device, acquire a screen state of the external device; where the screen state includes: sharing, used to indicate that the external device is in a state of transmitting desktop data;
设置模块,用于如果该外部设备的传屏状态不是分享中,将该外部 设备的传屏状态设置为分享中;a setting module, configured to set a screen state of the external device to be shared if the screen state of the external device is not shared;
接收模块,用于该接收传屏状态为分享中的外部设备发送的桌面数据。The receiving module is configured to receive the desktop data sent by the external device in the sharing state.
本发明还公开了一种电子设备,包括:The invention also discloses an electronic device, comprising:
处理器;processor;
用于存储处理器可执行指令的存储器;a memory for storing processor executable instructions;
其中,所述处理器被配置为执行如前任意一项所述的传屏方法。The processor is configured to perform the screen transmission method according to any of the preceding claims.
本发明还公开了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如前任意一项所述的传屏方法。The invention also discloses a computer readable storage medium having stored thereon a computer program, the program being executed by the processor to implement the screen transmission method according to any of the preceding claims.
本发明为外部设备设置了传屏状态,传屏状态包括:分享中;当接收到通信接口相连的外部设备发送的状态切换信号时,获取该外部设备的传屏状态;当该外部设备的传屏状态不是分享中时,将该传屏设备的传屏状态设置为分享中;接收传屏状态为分享中的外部设备发送的桌面数据。会议平板某一时刻仅能接收一个外部设备发送的桌面数据,本发明在接收到状态切换信号时,通过控制会议平板的驱动与外部设备绑定或解绑改变外部设备的传屏状态,并接收传屏状态为分享中的外部设备发送的桌面数据,而某一时刻仅有一个外部设备与驱动绑定,即仅有一个外部设备的传屏状态为分享中,而用户能够通过发送状态切换信号进行抢占传屏,从而不需要反复插拔传屏设备或走到会议平板处点击切换传屏通道,传屏设备的切换方式简单、方便。The invention provides a screen state for the external device, the screen state includes: sharing; when receiving the state switching signal sent by the external device connected to the communication interface, acquiring the screen state of the external device; when the external device transmits When the screen status is not sharing, the screen status of the screen device is set to be shared; the screen status is the desktop data sent by the external device in the sharing. The conference tablet can only receive the desktop data sent by an external device at a certain moment. When receiving the state switching signal, the present invention changes the screen state of the external device by binding or unbinding the driver of the conference panel to the external device, and receives the state. The screen state is the desktop data sent by the external device in the sharing, and only one external device is bound to the driver at a certain time, that is, only the screen state of one external device is shared, and the user can transmit the state switching signal. Preemptive screen transmission, so that there is no need to repeatedly insert and drop the screen device or go to the conference tablet and click to switch the screen channel. The switching mode of the screen device is simple and convenient.
附图说明DRAWINGS
图1a是本发明一示例性实施例示出的一种传屏方法的流程图;FIG. 1a is a flowchart of a screen transmission method according to an exemplary embodiment of the present invention; FIG.
图1b是本发明一示例性实施例示出的接入两个外部设备的示意图;FIG. 1b is a schematic diagram showing access to two external devices according to an exemplary embodiment of the present invention; FIG.
图1c是本发明一示例性实施例示出的会议平板中的传屏框架图;FIG. 1c is a schematic diagram of a screen in a conference tablet according to an exemplary embodiment of the present invention; FIG.
图1d是本发明一示例性实施例示出的会议平板中的传屏框架图;FIG. 1d is a diagram of a screen frame in a conference tablet according to an exemplary embodiment of the present invention; FIG.
图2a是现有的会议平板中的传屏框架图;2a is a screen frame diagram of an existing conference tablet;
图2b是通过插拔方式切换外部设备的示意图;2b is a schematic diagram of switching an external device by plugging and unplugging;
图3是本发明一示例性实施例示出的一种传屏方法的流程图;FIG. 3 is a flowchart of a screen transmission method according to an exemplary embodiment of the present invention; FIG.
图4是本发明一示例性实施例示出的一种传屏方法的流程图;FIG. 4 is a flowchart of a screen transmission method according to an exemplary embodiment of the present invention; FIG.
图5a是本发明一示例性实施例示出的一种状态机逻辑图;FIG. 5a is a logic diagram of a state machine according to an exemplary embodiment of the present invention; FIG.
图5b是本发明一示例性实施例示出的一种状态机逻辑图;FIG. 5b is a logic diagram of a state machine according to an exemplary embodiment of the present invention; FIG.
图6是本发明一示例性实施例示出的一种传屏装置的逻辑框图;FIG. 6 is a logic block diagram of a screen device according to an exemplary embodiment of the present invention; FIG.
图7是本发明一示例性实施例示出的一种电子设备的逻辑框图。FIG. 7 is a logic block diagram of an electronic device according to an exemplary embodiment of the invention.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. The following description refers to the same or similar elements in the different figures unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with aspects of the invention as detailed in the appended claims.
在本发明使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in the present invention is for the purpose of describing particular embodiments, and is not intended to limit the invention. The singular forms "a", "the" and "the" It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本发明可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本发明范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used to describe various information in the present invention, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, the first information may also be referred to as the second information without departing from the scope of the invention. Similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "when" or "in response to a determination."
传屏技术主要是指将手机、电脑等源端设备的屏幕上显示的内容和播放的声音(桌面数据)通过传屏设备同步到投影仪、电视机、会议平板等 显示设备进行展示的技术。手机、电脑等设备具有操作方便、处理能力强等优势,而会议平板等显示设备具有屏幕大、音效好等优势,通过传屏技术就可以将两者具备的优势结合,在会议等场景下被大量使用。The screen transmission technology mainly refers to the technology of displaying the content displayed on the screen of the source device such as a mobile phone, a computer, and the played sound (desktop data) to a display device such as a projector, a television, a conference tablet, etc. through a screen device. Mobile phones, computers and other devices have the advantages of convenient operation and strong processing capability. The display devices such as conference tablets have the advantages of large screen and good sound effects. Through the screen transmission technology, the advantages of the two can be combined and are used in meetings and other scenarios. Use a lot.
以会议场景为例,开会时,可能有多个参会人员需要将自己电脑上的数据传屏到会议平板上展示,目前的解决方式通常包括:1、在会议平板上切换传屏通道,以显示需要传屏的电脑的桌面数据;2、移除其他电脑上的传屏设备、在需要传屏的电脑上接入传屏设备。特别是需要频繁切换传屏的场景下,用户需要反复插拔传屏设备,或者频繁的走到会议平板处点击切换传屏通道,从而上述2种切换传屏的方式使用均不方便。针对上述问题,本发明提出了一种传屏方法,如图1a所示,包括以下步骤:Taking a conference scenario as an example, during a meeting, there may be multiple participants who need to transfer the data on their computer to the conference tablet. The current solution usually includes: 1. Switching the channel on the conference tablet to Display the desktop data of the computer that needs to be screened; 2. Remove the screen device on other computers, and access the screen device on the computer that needs to transmit the screen. In particular, in a scenario where the screen is frequently switched, the user needs to repeatedly insert and remove the screen device, or frequently go to the conference tablet and click to switch the screen channel, so that the above two types of switching screens are inconvenient to use. In view of the above problems, the present invention provides a screen transmission method, as shown in FIG. 1a, comprising the following steps:
步骤S110:当接收到外部设备发送的状态切换信号时,获取该外部设备的传屏状态;其中,传屏状态包括:分享中,用于表征外部设备处于传输桌面数据的状态;Step S110: Acquire a screen state of the external device when receiving the state switching signal sent by the external device, where the screen state includes: in the sharing, used to indicate that the external device is in the state of transmitting desktop data;
由于无线传屏时,会议平板与传屏设备是通过网络进行数据通信的,因此可以不需要会议平板操作***中的驱动与传屏设备适配的环节,从而不存在通过绑定或解绑驱动的方式修改传屏状态,因此,本方法的一个实施例应用于有线传屏中,目前通过有线传屏设备进行传屏的过程如下:传屏设备的一端与源端设备(笔记本等)的USB接口相连、另一端与会议平板的USB接口相连,源端设备为传屏设备供电,从而传屏设备处于启动状态,会议平板在USB接口接入设备时会枚举各接口接入的设备的信息,当识别该设备为传屏设备时,将驱动与传屏设备绑定,从而能够接收传屏设备抓取的源端设备的桌面数据,会议平板将桌面数据解析并渲染在屏幕上,从而实现传屏。Because the wireless communication screen, the conference tablet and the screen transmission device communicate data through the network, so that the driver and the screen device in the conference tablet operating system are not required to be adapted, so that there is no binding or unbinding driver. The manner of modifying the screen state is modified. Therefore, an embodiment of the method is applied to a wired screen. The current process of transmitting a screen through a wired screen device is as follows: one end of the screen device and the USB of the source device (notebook, etc.) The interface is connected, and the other end is connected to the USB interface of the conference panel. The source device supplies power to the screen device, so that the screen device is in the startup state. The conference panel enumerates the information of the device accessed by each interface when the USB interface is connected to the device. When the device is identified as a screen device, the driver is bound to the screen device, so that the desktop data of the source device captured by the screen device can be received, and the conference tablet parses and renders the desktop data on the screen, thereby realizing Screen.
但是,目前的有线传屏方法,如图2a、图2b所示,会议平板200通过信息驱动检测连接的设备的VID(Vendor ID,供应商识别码)和/或PID(Product ID,产品识别码)等身份信息,当识别出接入的设备为传屏设备100时,将传屏驱动与传屏设备100绑定,从而能够接收传屏设备100发送 的桌面数据(该桌面数据是传屏设备100从源端设备301中抓取的)。当然,用户也可以通过按传屏设备100上的按键101停止/开启传屏,所述停止传屏是指传屏设备100不向会议平板200发送桌面数据。显然,当其他源端设备需要向会议平板发送桌面数据时,可以通过将该传屏设备与需要传屏的源端设备连接即可,例如,图2b中的将传屏设备100从源端设备302中拔除,再将传屏设备100***源端设备301的USB接口中。However, the current wired screen method, as shown in FIG. 2a and FIG. 2b, the conference tablet 200 detects the VID (Vendor ID, Vendor ID) and/or PID (Product ID) of the connected device through information driving. And the identity information, when the device that is accessed is the screen device 100, the screen driver is bound to the screen device 100, so that the desktop data sent by the screen device 100 can be received (the desktop data is a screen device) 100 is grabbed from the source device 301). Of course, the user can also stop/turn the screen by pressing the button 101 on the screen device 100, which means that the screen device 100 does not send the desktop data to the conference tablet 200. Obviously, when other source devices need to send desktop data to the conference tablet, the screen device can be connected to the source device that needs to be screened. For example, the screen device 100 in FIG. 2b is from the source device. After the 302 is removed, the screen device 100 is inserted into the USB interface of the source device 301.
当然,也可以如图1b所示,将源端设备301通过传屏设备111与会议平板200相连,将源端设备302通过传屏设备112与会议平板200相连,但是,如图2a所示,虽然信息驱动可以识别传屏设备111、112,但是,传屏驱动仅有一个,而一个传屏驱动仅能与一个传屏设备绑定,且,绑定之后通常不会解除绑定,除非绑定的传屏设备被拔除等。显然,现有的有线传屏方式无法方便快捷的在多个源端设备301、302间切换传屏。Of course, as shown in FIG. 1b, the source device 301 is connected to the conference tablet 200 through the screen device 111, and the source device 302 is connected to the conference panel 200 through the screen device 112. However, as shown in FIG. 2a, Although the information driver can recognize the screen device 111, 112, there is only one screen driver, and a screen driver can only be bound to a screen device, and usually does not unbind after binding, unless tied The fixed screen device is removed and so on. Obviously, the existing wired transmission mode cannot conveniently and quickly switch between multiple source devices 301 and 302.
为此,本发明为外部设备(可以理解为传屏设备111、112,当然,也可以将传屏设备及其相连的源端设备作为一个整个看成是外部设备)设置传屏状态,并如图1c所示,其与图2b的主要区别在于,增加了适配驱动1和适配驱动2,其中,适配驱动1为一个,适配驱动2的数量可以根据需要设定,不限于图中所示的一个。To this end, the present invention is an external device (which can be understood as a screen device 111, 112, and of course, the screen device and its connected source device as a whole as an external device) can be set to a screen state, and FIG. 1c shows that the main difference from FIG. 2b is that the adaptation drive 1 and the adaptation drive 2 are added, wherein the adaptation drive 1 is one, and the number of the adaptation drive 2 can be set as needed, not limited to the figure. One shown in the picture.
本发明的适配驱动作为操作***底层的架构,可以向上层应用上报通信消息,而传屏驱动能够将多媒体文件(桌面数据)上报至上层应用,传屏应用可以通过***调用的方式获取到传屏驱动上报的桌面数据。The adaptation driver of the present invention is an underlying architecture of the operating system, and can report communication messages to the upper layer application, and the screen driver can report the multimedia file (desktop data) to the upper layer application, and the screen application can obtain the transmission through the system call. The desktop data reported by the screen driver.
本发明通过设置适配驱动1及适配驱动2从而能够适配多个外部设备,且仅设置适配驱动1能够与传屏驱动绑定,外部设备的桌面数据能够发送给适配驱动1,再由适配驱动1发送给传屏驱动,从而传屏应用就可以通过***调用的方式获取到桌面数据。The invention can adapt a plurality of external devices by setting the adaptation drive 1 and the adaptation drive 2, and only the adaptation drive 1 can be bound to the screen drive, and the desktop data of the external device can be sent to the adaptation drive 1, Then, the adaptation driver 1 sends the transmission to the screen driver, so that the screen application can obtain the desktop data through the system call.
由于外部设备的传屏状态为分享中,即外部设备处于传输桌面数据的状态;结合前面所述,即传屏状态为分享中的外部设备与适配驱动1适配;例如,图1b中的源端设备301的传屏状态为分享中,而源端设备302的传 屏状态显然不是分享中(同一时间只能有一个源端设备的传屏状态为分享中),即源端设备301与适配驱动1适配,源端设备302与适配驱动2适配。The external device is in the state of transmitting the desktop data, that is, the external device is in the state of transmitting the desktop data; in combination with the foregoing, the external device in the sharing state is adapted to the adaptation driver 1; for example, in FIG. 1b The transmission status of the source device 301 is shared, and the transmission status of the source device 302 is obviously not shared (only one source device can be in the sharing state at the same time), that is, the source device 301 and The adaptation drive 1 is adapted and the source device 302 is adapted to the adaptation drive 2.
当用户希望源端设备302变成传屏状态时,可以按传屏设备112上的按键102,从而,传屏设备112会向会议平板200发送状态切换信号,而适配驱动2用于侦听与其适配的外部设备发送的状态切换信号(按键事件),显然,与适配驱动2适配的外部设备的传屏状态不是分享中。When the user wants the source device 302 to become a screen state, the button 102 on the screen device 112 can be pressed, so that the screen device 112 sends a state switching signal to the conference tablet 200, and the adaptation driver 2 is used for listening. The state switching signal (key event) sent by the external device adapted thereto, obviously, the screen state of the external device adapted to the adaptation driver 2 is not shared.
步骤S120:如果该外部设备的传屏状态不是分享中,将该传屏设备的传屏状态设置为分享中;Step S120: If the screen state of the external device is not in the sharing, set the screen state of the screen device to be shared;
本发明的目的是让不同的外部设备能够“抢到”传屏的机会(可以认为是“抢占传屏”),为此,可以对抢占传屏设置不同的规则,例如,接收到传屏状态不是分享中的外部设备发送的状态切换信号时,可以将该传屏设备的传屏状态设置为分享中;当然,还可以增加其他规则,例如,可以等到当前传屏状态为分享中的外部设备发送状态切换信号后,再将要抢占传屏的外部设备的传屏状态设置为分享中等。The purpose of the present invention is to enable different external devices to "grab" the opportunity of the screen (which can be considered as "preemptive screen"). For this reason, different rules can be set for the preemption screen, for example, receiving the screen state. When the state switching signal sent by the external device is not shared, the screen state of the screen device can be set to be shared; of course, other rules can be added, for example, the current screen state can be waited for the shared external device. After the status switching signal is sent, the screen status of the external device to be preempted is set to be medium.
当然,由于同一时间会议平板200只能接收并显示一个源端设备的桌面数据,即,传屏状态为分享中的源端设备只能有一个,如果在接收到状态切换信号时,已经存在传屏状态为分享中的源端设备,则需要先将该源端设备的传屏状态从分享中切换成不是分享中。Certainly, the conference tablet 200 can only receive and display the desktop data of one source device at the same time, that is, the screen state is only one of the source devices in the sharing state, and if there is a state switching signal, the existing data is already transmitted. If the status of the screen is the source device in the sharing, you need to switch the screen status of the source device from sharing to not sharing.
为了便于描述,本发明一实施例将与适配驱动2适配的外部设备的传屏状态称为待抢占,待抢占用于表征外部设备处于等待传输桌面数据的状态。则在抢占传屏的过程中,如果之前存在传屏状态为分享中的外部设备,则将该外部设备的传屏状态设置为待抢占,再将抢占传屏的外部设备的传屏状态设置为分享中。For convenience of description, an embodiment of the present invention refers to a screen-on state of an external device that is adapted to the adaptation driver 2, and is to be preempted, and is used to characterize that the external device is in a state of waiting to transmit desktop data. In the process of preempting the screen, if the screen state is the shared external device, the screen state of the external device is set to be preempted, and then the screen state of the external device that preempts the screen is set to Sharing.
如前所述,适配驱动1仅一个,且要想发送桌面数据给传屏应用,外部设备必需与适配驱动1,则如图1b及图1c所示,在源端设备301的传屏状态为分享中,而用户通过按传屏设备102的按键发送状态切换信号(按 键事件)以抢占传屏时,适配驱动2根据该状态切换信号产生线程,使得适配驱动1与传屏驱动及传屏设备101解绑,适配驱动2与传屏设备102解绑;再控制适配驱动1与传屏驱动及传屏设备102绑定,适配驱动2与传屏设备101绑定。当然,也可以是适配驱动2将按键事件上报给传屏应用,由传屏应用控制上述绑定与解绑的过程。本发明对绑定与解绑的控制主体及过程不作限定。As mentioned before, there is only one adaptation driver 1, and if it is necessary to send desktop data to the screen application, the external device must be adapted to the driver 1, as shown in FIG. 1b and FIG. 1c, the screen is transmitted at the source device 301. The state is sharing, and when the user sends a state switching signal (key event) by pressing the button of the screen device 102 to preempt the screen, the adaptation driver 2 generates a thread according to the state switching signal, so that the driver 1 and the screen driver are adapted. The interface device 101 is unbundled, the adaptation driver 2 is unbundled with the screen device 102, and the adaptation driver 1 is bound to the screen driver and the screen device 102, and the adaptation driver 2 is bound to the screen device 101. Of course, it is also possible that the adaptation driver 2 reports the button event to the screen application, and the screen application controls the binding and unbinding process. The present invention does not limit the control subject and process of binding and unbinding.
步骤S130:接收该传屏状态为分享中的外部设备发送的桌面数据。Step S130: Receive the screen data status as desktop data sent by the external device in the sharing.
本发明通过为外部设备设置了传屏状态,并在接收到外部设备发送的状态切换信号时通过控制驱动与外部设备的绑定和/或解绑达到切换传屏状态的目的,由于同一时刻最多仅有一个外部设备的传屏状态为分享中,而会议平板200仅接收并显示传屏状态为分享中的外部设备发送的桌面数据。本发明不需要反复插拔传屏设备或走到会议平板处点击切换传屏通道,用户可以通过控制传屏设备发送状态切换信号切换会议平板接收的桌面数据,传屏设备的切换方式简单、方便。The present invention achieves the purpose of switching the screen state by controlling the binding and/or unbinding of the driver to the external device by setting the screen state for the external device and receiving the state switching signal sent by the external device, since the same time is the most Only the screen status of one external device is sharing, and the conference tablet 200 only receives and displays the desktop data sent by the external device in the sharing state. The invention does not need to repeatedly insert and remove the screen transmission device or go to the conference tablet and click to switch the screen transmission channel. The user can switch the desktop data received by the conference panel by controlling the screen transmission device to send the state switching signal, and the switching mode of the screen transmission device is simple and convenient. .
源端设备将桌面数据发送到会议平板200显示的过程中,用户可能暂时不想在会议平板200显示源端设备桌面数据,但又不想使用拔掉传屏设备这种复杂方式。为此,本发明一实施例还提出了如下方法:During the process in which the source device sends the desktop data to the conference tablet 200, the user may not want to display the desktop data of the source device on the conference tablet 200 temporarily, but does not want to use the complicated manner of unplugging the screen device. To this end, an embodiment of the present invention also proposes the following method:
所述当接收到外部设备发送的状态切换信号时,获取该外部设备的传屏状态的步骤之后,还包括:After the step of acquiring the state of the screen of the external device, the step of acquiring the state switching signal sent by the external device further includes:
当该外部设备的传屏状态为分享中时,将该传屏设备的传屏状态设置为待分享。When the screen state of the external device is sharing, the screen state of the screen device is set to be shared.
所述传屏状态还包括:The screen state also includes:
待分享,表征外部设备处于中止传输桌面数据的状态。To be shared, characterizes that the external device is in a state of aborting the transfer of desktop data.
状态切换信号不仅是传屏状态不是分享中的外部设备可以发送,传屏状态是分享中的外部设备也可以发送。当传屏状态为分享中的外部设备发送状态切换信号时,通常来说,是用户希望暂停在会议平板200显示源端设备桌面数据,此时,传屏设备暂停向会议平板200传输桌面数据,当然, 也有可能是传屏设备暂停从源端设备抓取桌面数据。由于此时该外部设备的传屏状态不是分享中,为了便于区别,将外部设备此种情况下的传屏状态称为待分享,待分享用于表征外部设备处于中止传输桌面数据的状态。传屏状态转换成待分享的外部设备,其仍与适配驱动1适配,适配驱动1仍与传屏驱动绑定。The state switching signal is not only that the screen state is not transmitted by the external device in the sharing, but also that the external device in the sharing state can also be transmitted. When the status of the screen is a status switch signal sent by the external device in the sharing, the user usually wants to pause the display of the desktop data of the source device on the conference tablet 200. At this time, the screen device pauses to transmit the desktop data to the conference tablet 200. Of course, it is also possible that the screen device pauses to grab desktop data from the source device. The status of the external device in this case is called to be shared, and the status of the external device is in the state of aborting the transmission of the desktop data. The screen state is converted into an external device to be shared, which is still adapted to the adaptation driver 1, which is still bound to the screen driver.
前述的通过发送状态切换信号“抢”到分享中的传屏状态的方式可以称之为主动抢占的抢占传屏,当然,还可以是被动抢占的抢占传屏,例如,传屏状态为分享中的外部设备可以通过退出传屏的方式,将分享中的传屏状态“让位”给其他外部设备,也能达到切换传屏设备的目的。为此,本发明一实施例,在所述当该外部设备的传屏状态为分享中时,将该传屏设备的传屏状态设置为待分享的步骤之后,如图3所示,还包括:The foregoing method of "grabbing" the state of the screen in the sharing state by the transmission state switching signal may be referred to as a preemptive preemptive screen. For example, it may also be a preemptive screen for passive preemption. For example, the screen state is sharing. The external device can "give" the sharing status of the screen to other external devices by exiting the screen, and can also achieve the purpose of switching the screen device. To this end, in an embodiment of the present invention, after the step of the screen device is set to be shared, when the screen is in the sharing state, as shown in FIG. 3, :
步骤S310:检测是否存在传屏状态为待抢占的外部设备;Step S310: detecting whether there is an external device that is in a screen state to be preempted;
步骤S320:若存在,则根据预设规则从传屏状态为待抢占的外部设备中选取目标外部设备,并将该目标外部设备的传屏状态设置为分享中。In step S320, if yes, the target external device is selected from the external device to be preempted according to the preset rule, and the screen state of the target external device is set to be shared.
在多人会议中,各参会者可以通过按传屏设备的按键的方式“抢占”传屏的机会,当然,也可以是正在传屏的人通过按传屏设备的按键的方式“退出”,即将传屏机会让会其他人。例如,存在传屏状态为分享中或待分享的外部设备时,新接入的外部设备的传屏状态可以设置为待抢占。当传屏状态为分享中的传屏设备通过发送状态切换信号暂停分享桌面时,若会议平板200还与其他外部设备相连(即存在传屏状态为待抢占的外部设备),则可以根据预设规则从传屏状态为待抢占的外部设备中选取目标外部设备,并将该目标外部设备的传屏状态设置为分享中。In a multi-person conference, each participant can “preempt” the opportunity of the screen by pressing the button of the screen device. Of course, the person who is transmitting the screen “exit” by pressing the button of the screen device. , the upcoming screen opportunity will let other people. For example, when there is an external device that is in the sharing state or to be shared, the screen state of the newly accessed external device can be set to be preempted. When the screen sharing state is that the sharing screen device is configured to suspend the sharing of the desktop by sending a state switching signal, if the conference tablet 200 is also connected to other external devices (that is, the external device to be preempted is present), The rule selects the target external device from the external device to be preempted from the screen state, and sets the screen state of the target external device to be shared.
预设规则可以有不同的形式,可以根据实际需求设置,作为一实施例,本发明提供了一种预设规则,包括:The preset rules may have different forms and may be set according to actual requirements. As an embodiment, the present invention provides a preset rule, including:
当仅存在一个传屏状态为待抢占的外部设备时,以该外部设备为目标外部设备;When there is only one external device whose screen state is to be preempted, the external device is targeted to the external device;
当存在多个传屏状态为待抢占的外部设备时,以最早或最近接入的传 屏状态为待抢占的外部设备为目标外部设备。When there are multiple external devices to be preempted, the external device to be preempted is the target external device with the oldest or most recently accessed broadcast state.
如图1b及图1c所示,源端设备301通过传屏设备111与会议平板200相连,源端设备302通过传屏设备112与会议平板200相连,且源端设备301的桌面数据传屏到了会议平板200中,从而传屏设备111的传屏状态为分享中,即适配驱动1与传屏设备111适配,并与传屏驱动绑定。而适配驱动2与传屏设备112适配,传屏设备112的传屏状态为待抢占。本实施例中,桌面数据要想传给会议平板200,一定要经过传屏驱动,而适配驱动1是唯一可以与传屏驱动匹配的适配驱动。从而,当传屏设备112想要抢占到传屏机会(即传屏状态变成分享中),需要先经过如下操作:As shown in FIG. 1b and FIG. 1c, the source device 301 is connected to the conference tablet 200 through the screen device 111, and the source device 302 is connected to the conference tablet 200 through the screen device 112, and the desktop data of the source device 301 is transmitted to the screen. In the conference tablet 200, the screen transmission state of the screen device 111 is shared, that is, the adaptation driver 1 is adapted to the screen device 111 and is bound to the screen driver. The adaptation driver 2 is adapted to the screen device 112, and the screen transmission state of the screen device 112 is to be preempted. In this embodiment, if the desktop data is to be transmitted to the conference tablet 200, it must be driven by the screen, and the adaptation driver 1 is the only adaptive driver that can be matched with the screen driver. Therefore, when the screen device 112 wants to seize the screen opportunity (that is, the screen state becomes sharing), the following operations are required:
所述将该目标外部设备的传屏状态设置为分享中的步骤之前,还包括:Before the step of setting the screen state of the target external device to the sharing, the method further includes:
将该传屏状态为待分享的外部设备与驱动解除绑定、并将传屏状态设置为待抢占,将目标外部设备与驱动绑定。The external device to be shared is unbound from the driver, and the screen state is set to be preempted, and the target external device is bound to the driver.
在图1b中,即需要先将传屏驱动与传屏设备111的绑定关系解除,将传屏设备111的传屏状态设置为待抢占,还可以将适配驱动2与传屏设备111适配。作为目标外部设备的传屏设备112与适配驱动1适配,适配驱动1与传屏驱动绑定,从而传屏设备112的传屏状态为分享中。In FIG. 1b, the binding relationship between the screen driving device and the screen device 111 is first released, and the screen state of the screen device 111 is set to be preempted, and the adaptation driver 2 and the screen device 111 can also be adapted. Match. The screen device 112 as the target external device is adapted to the adaptation driver 1, and the adaptation driver 1 is bound to the screen driver, so that the screen state of the screen device 112 is shared.
此处对于解绑、重新绑定及传屏状态设置的描述虽然是针对被动抢占的抢占传屏而言的,但主动抢占的抢占传屏过程中也存在解绑、重新绑定及传屏状态的设置,具体过程与上述方式类似,此处不予赘述。Here, the descriptions of the unbundling, rebinding, and screen state settings are for the preemptive screen capture of passive preemption, but the unbundling, rebinding, and screen state are also present during the preemptive preemption screen transmission. The specific process is similar to the above method and will not be described here.
上述描述虽然是针对会议平板200已经接入多个外部设备后抢占传屏的过程而言的,但显然,传屏设备通常不是同时与会议平板200连接的(即便是同时插,也还是会存在一定的时间差);当然,还有些情况下,用户是在需要传屏时才接入新的外部设备。而本发明是通过为不同的外部设备设置不同的传屏状态,从而有效的管理各外部设备间切换传屏的相关事宜,显然,在外部设备接入时,即需要为其设置相应的传屏状态。为此,如图4所示,本发明一实施例的方法还包括如下步骤:Although the foregoing description is directed to the process of preempting the screen after the conference tablet 200 has accessed multiple external devices, it is obvious that the screen device is usually not connected to the conference tablet 200 at the same time (even if it is inserted at the same time, it still exists. Certain time difference); Of course, there are cases where the user accesses the new external device when the screen is needed. However, the present invention effectively manages the related matters of switching screens between external devices by setting different screen states for different external devices. Obviously, when an external device is accessed, it is required to set a corresponding screen. status. To this end, as shown in FIG. 4, the method of an embodiment of the present invention further includes the following steps:
步骤S410:监听各通信接口的外部设备接入事件;Step S410: Listening to an external device access event of each communication interface;
步骤S420:根据预设接入规则为接入的外部设备设置传屏状态;Step S420: Set a screen transmission state for the accessed external device according to the preset access rule.
所述预设接入规则包括:The preset access rule includes:
当存在传屏状态为分享中的外部设备时,将新接入的外部设备的传屏状态设置为待抢占。When there is an external device in the sharing state, the screen state of the newly accessed external device is set to be preempted.
会议平板200会通过USB驱动枚举新接入的设备的VID/PID等身份信息,信息驱动用于获取该身份信息,当识别出接入的设备为传屏设备时,判断当前是否存在传屏状态为分享中的外部设备(即是否存在与适配驱动1绑定的外部设备),如果不存在,例如,这是当前唯一一个与会议平板200连接的传屏设备,当然,也可能是之前虽然接了多个外部设备,但是,其中传屏状态为分享中或待分享的外部设备移除了,但是其他外部设备没有抢占传屏变成传屏状态为分享中的外部设备;则可以直接将新接入的外部设备的传屏状态设置为分享中。The conference tablet 200 will enumerate the VID/PID and other identity information of the newly accessed device through the USB driver. The information driver is used to obtain the identity information. When the device that is accessed is identified as the screen device, it is determined whether the screen is currently present. The status is the external device in the sharing (ie, whether there is an external device bound to the adaptation driver 1). If it does not exist, for example, this is currently the only one of the screen devices connected to the conference tablet 200. Of course, it may be before Although a plurality of external devices are connected, the external device that is shared or to be shared is removed, but other external devices do not preempt the screen and become the external device in the sharing state; Set the screen status of the newly accessed external device to shared.
当存在传屏状态为分享中的外部设备时,将新接入的外部设备的传屏状态设置为待抢占,即传屏状态为分享中的外部设备与适配驱动1的适配关系不变,新接入的外部设备与适配驱动2(可以根据需要与适配驱动2适配的外部设备的数量生成多个适配驱动2),从而,新接入的外部设备不会打断当前的投屏显示,而新接入的外部设备若需要抢占传屏,可以通过按按键发送状态切换信号的方式抢占传屏。When there is an external device in the sharing state, the screen state of the newly accessed external device is set to be preempted, that is, the screen state is the same as the adaptation relationship between the external device in the sharing and the adaptation driver 1. The newly accessed external device and the adaptation driver 2 (the plurality of adaptation drivers 2 can be generated according to the number of external devices adapted to the adaptation driver 2), so that the newly accessed external device does not interrupt the current The screen display shows that if the newly accessed external device needs to preempt the screen, it can preempt the screen by pressing the button to send the status switching signal.
当然,预设接入规则也可以有其他方式,例如,用户新***一个外部设备就是要用这个新外部设备传屏,从而可以在检测到接入外部设备时,即将新接入的外部设备的传屏状态设置为分享中,而被“抢走了”传屏机会的外部设备若仍需要传屏,则可以通过按按键发送状态切换信号的方式抢回传屏机会。可以根据实际使用需求设置预设接入规则,本发明对此不作限定。Of course, the preset access rule may also have other methods. For example, if the user newly inserts an external device, the new external device is used to transmit the screen, so that when the access to the external device is detected, the newly accessed external device is about to be newly accessed. The screen status is set to be shared, and if the external device that has been "robbed" of the screen opportunity still needs to transmit the screen, the screen switching opportunity can be retrieved by pressing the button to send the status switching signal. The preset access rule can be set according to the actual use requirement, which is not limited by the present invention.
如前所述,即便不存在传屏状态为分享中的外部设备,但还可能存在传屏状态为待分享的传屏设备,而传屏状态为分享中及待分享的传屏设备都是与适配驱动1处于适配状态并与传屏驱动绑定的,若与适配驱动1适 配的传屏设备的传屏状态为待分享,也可以认为该用户当前不想传屏。因此,进一步地,本发明一实施例中,所述预设接入规则还可以包括:As mentioned above, even if there is no external device in the sharing state, there may be a screen device in which the screen state is to be shared, and the screen device is in the sharing mode and the screen device to be shared is The adaptation driver 1 is in the adaptation state and is bound to the screen driver. If the screen transmission status of the screen device adapted to the adaptation driver 1 is to be shared, the user may not be considered to be currently screened. Therefore, in an embodiment of the present invention, the preset access rule may further include:
当存在传屏状态为待分享的外部设备时,将新接入的外部设备的传屏状态设置为分享中。When there is an external device whose screen state is to be shared, the screen state of the newly accessed external device is set to be shared.
如前所述,传屏状态为待分享的外部设备(以下简称甲外部设备)仍与适配驱动1绑定,如图1d所示,此时,可以将新接入的外部设备(以下简称乙外部设备)与适配驱动3适配,其传屏状态为待抢占。适配驱动3可以通过产生线程,以控制适配驱动1与传屏驱动及甲外部设备解绑,适配驱动3与乙外部设备解绑;再控制适配驱动1与传屏驱动及乙外部设备绑定,适配驱动2与甲外部设备绑定。从而会议平板可以接收并显示乙外部设备发送的桌面数据。新接入外部设备对适配驱动3而言是一个接入事件,从而,适配驱动3也可以将接入事件上报给传屏应用,由传屏应用控制上述绑定与解绑的过程。本发明对绑定与解绑的控制主体及过程不作限定。As described above, the external device to be shared (hereinafter referred to as the external device) is still bound to the adaptation driver 1, as shown in FIG. 1d. At this time, the newly accessed external device (hereinafter referred to as the following) The B external device is adapted to the adaptation driver 3, and the screen transmission state is to be preempted. The adaptation driver 3 can generate a thread to control the adaptation driver 1 to unbundle the screen driver and the external device, and the adaptation driver 3 is unbundled with the B external device; and then the adaptive driver 1 and the screen driver and the B external device are controlled. Device binding, adaptation driver 2 is bound to an external device. Thus, the conference tablet can receive and display the desktop data sent by the external device B. The new access device is an access event for the adaptation driver 3, so that the adaptation driver 3 can also report the access event to the screen application, and the screen application controls the binding and unbinding process. The present invention does not limit the control subject and process of binding and unbinding.
***新设备时,虽然可以触发驱动与外部设备间的绑定和/或解绑,甚至抢占传屏机会,但是,新***一个外部设备会议平板显示的画面就要跳变成新接入的外部设备的桌面,从用户使用习惯来说,存在唐突感;且,即便***新的外部设备确实是要抢占传屏,按一下按键发送状态切换信号再抢占传屏操作也很简单,因此,所述预设接入规则还可以包括:When a new device is inserted, although the binding and/or unbinding between the driver and the external device can be triggered, and even the screen opportunity is preempted, the newly inserted image of the external device conference tablet is hopped into the external part of the new access. The desktop of the device has a sense of abruptness from the user's usage habits; and even if a new external device is inserted, it is necessary to preempt the screen. Pressing the button to send the state switching signal and then preempting the screen is simple. The preset access rules may also include:
当存在传屏状态为待分享的外部设备时,将新接入的外部设备的传屏状态设置为待抢占。When there is an external device to be shared, the screen state of the newly accessed external device is set to be preempted.
此时会议平板的***架构可以如图1c所示,适配驱动的类型可以只有适配驱动1和(若干个)适配驱动2,新接入的外部设备及传屏状态为待抢占的外部设备均可以与适配驱动2适配,适配驱动2用于侦听按键事件,当侦听到按键事件时,通过解绑与绑定,使得产生该按键事件的外部设备的传屏状态变成分享中,具体过程与前述解绑与绑定的过程类似,此处不再赘述。At this time, the system architecture of the conference tablet can be as shown in FIG. 1c, and the type of the adaptation driver can be only the adaptation driver 1 and the (several) adaptation driver 2, and the newly accessed external device and the screen transmission state are the external to be preempted. The device can be adapted to the adaptation driver 2, and the adaptation driver 2 is configured to listen for the button event. When the button event is detected, the binding device is unbundled and bound, so that the screen state of the external device that generates the button event is changed. In the process of sharing, the specific process is similar to the process of unbinding and binding, and will not be described here.
为了更好地说明上述抢占传屏的方案,以下将通过二个实例进行具体解释。In order to better explain the above scheme for preempting the screen, the following will be specifically explained by two examples.
实例一:Example 1:
如图5a及图1d所示,在新接入外部设备(以下简称第一外部设备)时,判断当前是否存在传屏状态为分享中S或待分享A的外部设备,如果不存在,即第一外部设备可以直接传屏,从而将第一外部设备与适配驱动1(D-A1)适配,且适配驱动1与传屏驱动绑定。As shown in FIG. 5a and FIG. 1d, when a new device (hereinafter referred to as the first external device) is newly accessed, it is determined whether there is currently an external device whose sharing state is the shared S or the A to be shared. If not, the first device is An external device can directly transmit the screen, thereby adapting the first external device to the adaptation driver 1 (D-A1), and the adaptation driver 1 is bound to the screen driver.
传屏状态为分享中S的外部设备,可以通过按按键的方式暂停分享桌面,从而将传屏状态设置为待分享A;而传屏状态为待分享A的外部设备,可以通过按按键的方式开始分享桌面,从而将传屏状态设置为分享中S。虽然外部设备通过按按键的方式将传屏状态在分享中S与待分享A间进行切换,但该外部设备始终与适配驱动1(D-A1)适配,且适配驱动1一直与传屏驱动绑定。The screen is in the state of sharing the external device of S, and the sharing of the desktop can be paused by pressing a button, thereby setting the screen state to be shared A; and the screen state is the external device to be shared A, by pressing a button Start sharing the desktop to set the screen status to Share S. Although the external device switches the screen state between the sharing S and the to-be-shared A by pressing a button, the external device is always adapted to the adaptation driver 1 (D-A1), and the adaptation driver 1 is always transmitted. Screen driver binding.
当新接入外部设备(以下简称第二外部设备),而会议平板连接的外部设备中已经存在传屏状态为分享中S的外部设备(第一外部设备)时,设定第二外部设备需要以按按键发送状态切换信号的方式抢占传屏,本发明一实施例以适配驱动2(D-A2)适配需要通过按按键才能抢占传屏的外部设备。When a new device (hereinafter referred to as a second external device) is newly accessed, and an external device (the first external device) whose screen state is the shared S is already present in the external device connected to the conference tablet, the second external device needs to be set. The screen is preempted by the button to send the state switching signal. In an embodiment of the present invention, the adaptation driver 2 (D-A2) is adapted to preempt the external device of the screen by pressing a button.
将第二外部设备与适配驱动2(D-A2)适配,其传屏状态为待抢占W。适配驱动2用于侦听外部设备发送的状态切换信号。当适配驱动2侦听到第二外部设备发送的状态切换信号(按键事件)时,适配驱动2可以通过产生线程,使得适配驱动1与传屏驱动及第一外部设备解绑,适配驱动2与第二外部设备解绑;再控制适配驱动1与传屏驱动及第二外部设备绑定,适配驱动2与第一外部设备绑定。从而第一外部设备的传屏状态由分享中S变成待抢占W;第二外部设备的传屏状态由待抢占W变成分享中S。The second external device is adapted to the adaptation driver 2 (D-A2), and its screen state is to be preempted by W. The adaptation driver 2 is configured to listen to a state switching signal sent by an external device. When the adaptation driver 2 detects the state switching signal (key event) sent by the second external device, the adaptation driver 2 can cause the adaptation driver 1 to be unbundled with the screen driver and the first external device by generating a thread. The matching driver 2 is unbundled with the second external device; the adaptive driving driver 1 is further bound to the screen driving driver and the second external device, and the adaptation driver 2 is bound to the first external device. Therefore, the screen state of the first external device changes from the S in the sharing to the W to be preempted; the state of the second external device changes from the to-be-preempted W to the shared S.
当然,适配驱动2也可以通过将该按键事件通知传屏应用,由传屏应用作决策:将适配驱动1与第一外部设备及传屏驱动解绑,将适配驱动2 与第二外部设备解绑;将适配驱动1与传屏驱动及第二外部设备绑定,第二外部设备的传屏状态由待抢占W变成分享中S;将适配驱动2与第一外部设备适配,第一外部设备的传屏状态由分享中S变成待抢占W。Of course, the adaptation driver 2 can also make a decision by the screen application by notifying the button application of the button event: unbinding the adaptation driver 1 with the first external device and the screen driver, and adapting the driver 2 and the second The external device is unbundled; the adaptation driver 1 is bound to the screen driver and the second external device, and the screen state of the second external device is changed from the to-be-preempted W to the shared S; the adapted driver 2 and the first external device are Adaptation, the screen state of the first external device changes from S in the sharing to W to be preempted.
或者,当新接入外部设备(以下简称第三外部设备),而会议平板连接的外部设备中已经存在传屏状态为待分享A的外部设备(第一外部设备)时,设定第三外部设备通过***设备的方式抢占传屏,本发明一实施例以适配驱动3(D-A3)适配通过***就能抢占传屏的外部设备。Alternatively, when a new device (hereinafter referred to as a third external device) is newly accessed, and an external device (first external device) whose screen state is to be shared A already exists in the external device connected to the conference tablet, the third external setting is set. The device preempts the screen by inserting the device. In an embodiment of the present invention, the external device that preempts the screen can be pre-empted by the adaptation driver 3 (D-A3).
将第三外部设备与适配驱动3(D-A3)适配,其传屏状态为待抢占W。适配驱动3可以通过产生线程,使得适配驱动1与传屏驱动及第一外部设备解绑,适配驱动3与第三外部设备解绑;再控制适配驱动1与传屏驱动及第三外部设备绑定,适配驱动2与第一外部设备绑定。从而第一外部设备的传屏状态由待分享A变成待抢占W;第二外部设备的传屏状态由待抢占W变成分享中S。The third external device is adapted to the adaptation driver 3 (D-A3), and its screen state is to be preempted by W. The adaptation driver 3 can generate the thread, so that the adaptation driver 1 is unbundled with the screen driver and the first external device, and the adaptation driver 3 is unbundled with the third external device; and then the adaptation driver 1 and the screen driver are controlled. The third external device is bound, and the adaptation driver 2 is bound to the first external device. Therefore, the screen state of the first external device changes from the A to be shared to the W to be preempted; and the screen state of the second external device changes from the to-be-preempted W to the shared S.
当然,也适配驱动3也可以通知传屏应用,由传屏应用作决策:将适配驱动1与第一外部设备及传屏驱动解绑,将适配驱动3与第三外部设备解绑;将适配驱动1与传屏驱动及第三外部设备绑定,第三外部设备的传屏状态由待抢占W变成分享中S;将适配驱动2与第一外部设备适配,第一外部设备的传屏状态由待分享A变成待抢占W。Of course, the driver 3 can also be notified of the screen application, and the screen application can make a decision: the adapter driver 1 is unbundled with the first external device and the screen driver, and the adapter driver 3 is unbundled with the third external device. Binding the adaptation driver 1 to the screen driver and the third external device, the screen state of the third external device is changed from the to-be-preempted W to the sharing S; the adaptation driver 2 is adapted to the first external device, The screen state of an external device changes from to be shared A to be preempted.
实例二:Example 2:
如图5b及图1c所示,在新接入外部设备(以下简称第一外部设备)时,判断当前是否存在传屏状态为分享中S或待分享A的外部设备,如果不存在,即第一外部设备可以直接传屏,从而将第一外部设备与适配驱动1(D-A1)适配,且适配驱动1与传屏驱动绑定。As shown in FIG. 5b and FIG. 1c, when a new external device (hereinafter referred to as the first external device) is newly accessed, it is determined whether there is currently an external device whose sharing state is the shared S or the A to be shared. If not, the first device is An external device can directly transmit the screen, thereby adapting the first external device to the adaptation driver 1 (D-A1), and the adaptation driver 1 is bound to the screen driver.
传屏状态为分享中S的外部设备,可以通过按按键的方式暂停分享桌面,从而将传屏状态设置为待分享A;而传屏状态为待分享A的外部设备,可以通过按按键的方式开始分享桌面,从而将传屏状态设置为分享中S。虽然外部设备通过按按键的方式将传屏状态在分享中S与待分享A间进行切 换,但该外部设备始终与适配驱动1(D-A1)适配,且适配驱动1一直与传屏驱动绑定。The screen is in the state of sharing the external device of S, and the sharing of the desktop can be paused by pressing a button, thereby setting the screen state to be shared A; and the screen state is the external device to be shared A, by pressing a button Start sharing the desktop to set the screen status to Share S. Although the external device switches the screen state between the sharing S and the to-be-shared A by pressing a button, the external device is always adapted to the adaptation driver 1 (D-A1), and the adaptation driver 1 is always transmitted. Screen driver binding.
当新接入外部设备(以下简称第二外部设备),而会议平板连接的外部设备中已经存在传屏状态为分享中S或待分享A的外部设备(第一外部设备)时,即适配驱动1已被第一外部设备占用,则第二外部设备只能由适配驱动2接管,其传屏状态为待抢占W。则第二外部设备需要以按按键发送状态切换信号的方式抢占传屏。When the external device (hereinafter referred to as the second external device) is newly connected, and the external device (the first external device) whose sharing state is the sharing S or the A to be shared is already present in the external device connected to the conference tablet, the adapter is adapted. The driver 1 is already occupied by the first external device, and the second external device can only be taken over by the adaptation driver 2, and its screen state is to be preempted by W. Then, the second external device needs to preempt the screen by pressing the button to send the state switching signal.
适配驱动2用于侦听外部设备发送的状态切换信号。当适配驱动2侦听到第二外部设备发送的状态切换信号(按键事件)时,适配驱动2可以通过产生线程,使得适配驱动1与传屏驱动及第一外部设备解绑,适配驱动2与第二外部设备解绑;再控制适配驱动1与传屏驱动及第二外部设备绑定,适配驱动2与第一外部设备绑定。从而第一外部设备的传屏状态由分享中S变成待抢占W;第二外部设备的传屏状态由待抢占W变成分享中S。The adaptation driver 2 is configured to listen to a state switching signal sent by an external device. When the adaptation driver 2 detects the state switching signal (key event) sent by the second external device, the adaptation driver 2 can cause the adaptation driver 1 to be unbundled with the screen driver and the first external device by generating a thread. The matching driver 2 is unbundled with the second external device; the adaptive driving driver 1 is further bound to the screen driving driver and the second external device, and the adaptation driver 2 is bound to the first external device. Therefore, the screen state of the first external device changes from the S in the sharing to the W to be preempted; the state of the second external device changes from the to-be-preempted W to the shared S.
当然,适配驱动2也可以通过将该按键事件通知传屏应用,由传屏应用作决策:将适配驱动1与第一外部设备及传屏驱动解绑,将适配驱动2与第二外部设备解绑;将适配驱动1与传屏驱动及第二外部设备绑定,第二外部设备的传屏状态由待抢占W变成分享中S;将适配驱动2与第一外部设备适配,第一外部设备的传屏状态由分享中S变成待抢占W。Of course, the adaptation driver 2 can also make a decision by the screen application by notifying the button application of the button event: unbinding the adaptation driver 1 with the first external device and the screen driver, and adapting the driver 2 and the second The external device is unbundled; the adaptation driver 1 is bound to the screen driver and the second external device, and the screen state of the second external device is changed from the to-be-preempted W to the shared S; the adapted driver 2 and the first external device are Adaptation, the screen state of the first external device changes from S in the sharing to W to be preempted.
图5a及图5b中描述的传屏状态“未连接N”主要是为了让状态机逻辑完整,实际上,外部设备拔出后,就不需要驱动与其适配了。The screen state "not connected N" described in Figures 5a and 5b is mainly for the logic machine to be complete. In fact, after the external device is pulled out, the driver is not required to be adapted.
上述描述虽然看似仅涉及接入一两个外部设备的状态,但是,当存在更多个外部设备时,图5a及图5b所示的状态机逻辑仍适用。当然,图5a及图5b的状态机逻辑仅示出了基本功能,还可以根据具体情况修改状态机逻辑,例如增加或删除部分规则,前文中提供了部分修改状态机逻辑的思路,当然还可能存在其他方式,本发明对此不作限定。Although the above description appears to relate only to the state of accessing one or two external devices, the state machine logic shown in Figures 5a and 5b still applies when there are more external devices. Of course, the state machine logic of FIG. 5a and FIG. 5b only shows the basic functions, and the state machine logic can be modified according to specific conditions, for example, adding or deleting some rules. In the foregoing, some ideas for modifying the state machine logic are provided, and of course, There are other ways, and the invention is not limited thereto.
上述实施例在不冲突的情况下可以任意组合,本发明对此不作限定。The above embodiments can be arbitrarily combined without conflict, and the present invention does not limit this.
与前述传屏方法的实施例相对应,本发明还提供了传屏装置的实施例。Corresponding to the embodiment of the aforementioned screen method, the present invention also provides an embodiment of the screen device.
本发明传屏装置的实施例可以应用在会议平板上。装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在会议平板的处理器将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,如图7所示,为本发明传屏装置所在会议平板的一种硬件结构图,除了图7所示的处理器、内存、网络接口、以及非易失性存储器之外,实施例中装置所在的会议平板通常根据该会议平板的实际功能,还可以包括其他硬件,对此不再赘述。Embodiments of the screen device of the present invention can be applied to a conference tablet. The device embodiment may be implemented by software, or may be implemented by hardware or a combination of hardware and software. Taking the software implementation as an example, as a logical device, the processor of the conference tablet is configured to read the corresponding computer program instructions in the non-volatile memory into the memory. From a hardware level, as shown in FIG. 7, a hardware structure diagram of a conference tablet in which the screen device of the present invention is located, except for the processor, the memory, the network interface, and the non-volatile memory shown in FIG. The conference tablet in which the device is located in the embodiment may be further included in other hardware according to the actual function of the conference tablet, and details are not described herein again.
请参考图6,一种传屏装置,包括:Referring to FIG. 6, a screen device includes:
获取模块,用于当接收到外部设备发送的状态切换信号时,获取该外部设备的传屏状态;其中,传屏状态包括:分享中,用于表征外部设备处于传输桌面数据的状态;The acquiring module is configured to: when receiving a state switching signal sent by the external device, acquire a screen state of the external device; where the screen state includes: sharing, used to indicate that the external device is in a state of transmitting desktop data;
设置模块,用于如果该外部设备的传屏状态不是分享中,将该外部设备的传屏状态设置为分享中;a setting module, configured to set a screen state of the external device to be shared if the screen state of the external device is not in the sharing;
接收模块,用于该接收传屏状态为分享中的外部设备发送的桌面数据。The receiving module is configured to receive the desktop data sent by the external device in the sharing state.
上述装置中各个模块的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。For details of the implementation process of the functions and functions of the modules in the foregoing devices, refer to the implementation process of the corresponding steps in the foregoing methods, and details are not described herein again.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本发明方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。For the device embodiment, since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment. The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solution of the present invention. Those of ordinary skill in the art can understand and implement without any creative effort.
请参考图7,一种电子设备,包括:Please refer to FIG. 7, an electronic device including:
处理器;processor;
用于存储处理器可执行指令的存储器;a memory for storing processor executable instructions;
其中,所述处理器被配置为执行如前任意一项所述的传屏方法。The processor is configured to perform the screen transmission method according to any of the preceding claims.
进一步地,本发明还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如前任意一项所述的传屏方法。Further, the present invention provides a computer readable storage medium having stored thereon a computer program, the program being executed by a processor to implement the screen method according to any of the preceding claims.
本发明实施例可采用在一个或多个其中包含有程序代码的可读介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机可用可读介质包括永久性和非永久性、可移动和非可移动媒体,可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的可读介质的例子包括但不限于:相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。Embodiments of the invention may take the form of a computer program product embodied on one or more readable media (including but not limited to disk storage, CD-ROM, optical storage, etc.) in which program code is embodied. Computer-readable readable media include both permanent and non-persistent, removable and non-removable media, and information storage can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other data. Examples of computer readable media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only Memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage A magnetic tape cartridge, magnetic tape storage or other magnetic storage device or any other non-transporting medium that can be used to store information that can be accessed by a computing device.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalents, improvements, etc., which are made within the spirit and principles of the present invention, should be included in the present invention. Within the scope of protection.

Claims (14)

  1. 一种传屏方法,其特征在于,包括以下步骤:A screen transmission method, comprising the steps of:
    当接收到外部设备发送的状态切换信号时,获取该外部设备的传屏状态;其中,传屏状态包括:分享中,用于表征外部设备处于传输桌面数据的状态;Obtaining a screen state of the external device when receiving the state switching signal sent by the external device; where the screen state includes: sharing, indicating that the external device is in a state of transmitting desktop data;
    如果该外部设备的传屏状态不是分享中,将该外部设备的传屏状态设置为分享中;If the screen status of the external device is not shared, set the screen status of the external device to be shared;
    接收该传屏状态为分享中的外部设备发送的桌面数据。Receiving the screen state is the desktop data sent by the external device in the sharing.
  2. 如权利要求1所述的传屏方法,其特征在于,所述传屏状态还包括:The screen transmission method according to claim 1, wherein the screen state further comprises:
    待抢占,用于表征外部设备处于等待传输桌面数据的状态;To be preempted, used to characterize the state in which the external device is waiting to transmit desktop data;
    所述将该传屏设备的传屏状态设置为分享中的步骤之前,还包括:Before the step of setting the screen state of the screen device to the sharing, the method further includes:
    如果存在传屏状态为分享中的外部设备,则将该外部设备的传屏状态设置为待抢占。If there is an external device in the sharing state, the screen state of the external device is set to be preempted.
  3. 如权利要求2所述的传屏方法,其特征在于,所述传屏状态还包括:The screen transmission method according to claim 2, wherein the screen state further comprises:
    待分享,用于表征外部设备处于中止传输桌面数据的状态;To be shared, used to characterize that the external device is in a state of aborting the transmission of desktop data;
    所述当接收到外部设备发送的状态切换信号时,获取该外部设备的传屏状态的步骤之后,还包括:After the step of acquiring the state of the screen of the external device, the step of acquiring the state switching signal sent by the external device further includes:
    当该外部设备的传屏状态为分享中时,将该传屏设备的传屏状态设置为待分享。When the screen state of the external device is sharing, the screen state of the screen device is set to be shared.
  4. 如权利要求3所述的传屏方法,其特征在于,所述当该外部设备的传屏状态为分享中时,将该传屏设备的传屏状态设置为待分享的步骤之后,还包括:The method of claim 3, wherein the step of setting the screen state of the screen device to the share to be shared when the screen is in the sharing state, the method further includes:
    检测是否存在传屏状态为待抢占的外部设备;Detect whether there is an external device whose screen state is to be preempted;
    若存在,则根据预设规则从传屏状态为待抢占的外部设备中选取目标外部设备,并将该目标外部设备的传屏状态设置为分享中。If yes, the target external device is selected from the external device to be preempted according to the preset rule, and the screen state of the target external device is set to be shared.
  5. 如权利要求4所述的传屏方法,其特征在于,所述预设规则包括:The screen transmission method according to claim 4, wherein the preset rule comprises:
    当仅存在一个传屏状态为待抢占的外部设备时,以该外部设备为目标外部设备;When there is only one external device whose screen state is to be preempted, the external device is targeted to the external device;
    当存在多个传屏状态为待抢占的外部设备时,以最早或最近接入的传屏状态为待抢占的外部设备为目标外部设备。When there are multiple external devices to be preempted, the external device to be preempted is the target external device with the oldest or most recently accessed screen state.
  6. 如权利要求4所述的传屏方法,其特征在于,所述将该目标外部设备的传屏状态设置为分享中的步骤之前,还包括:The method of claim 4, wherein the step of setting the screen state of the target external device to the step of sharing further comprises:
    将该传屏状态为待分享的外部设备与驱动解除绑定、并将传屏状态设置为待抢占,将目标外部设备与驱动绑定。The external device to be shared is unbound from the driver, and the screen state is set to be preempted, and the target external device is bound to the driver.
  7. 如权利要求3所述的传屏方法,其特征在于,所述方法还包括:The method of claim 3, wherein the method further comprises:
    监听各通信接口的外部设备接入事件;Listening to external device access events of each communication interface;
    根据预设接入规则为接入的外部设备设置传屏状态;Setting a screen state for the accessed external device according to a preset access rule;
    所述预设接入规则包括:The preset access rule includes:
    当存在传屏状态为分享中的外部设备时,将新接入的外部设备的传屏状态设置为待抢占。When there is an external device in the sharing state, the screen state of the newly accessed external device is set to be preempted.
  8. 如权利要求7所述的传屏方法,其特征在于,所述预设接入规则还包括:The method for transmitting a screen according to claim 7, wherein the preset access rule further comprises:
    当存在传屏状态为待分享的外部设备时,将新接入的外部设备的传屏状态设置为待抢占。When there is an external device to be shared, the screen state of the newly accessed external device is set to be preempted.
  9. 如权利要求7所述的传屏方法,其特征在于,所述预设接入规则还包括:The method for transmitting a screen according to claim 7, wherein the preset access rule further comprises:
    当存在传屏状态为待分享的外部设备时,将新接入的外部设备的传屏状态设置为分享中。When there is an external device whose screen state is to be shared, the screen state of the newly accessed external device is set to be shared.
  10. 如权利要求9所述的传屏方法,其特征在于,所述当存在传屏状态为待分享的外部设备时,将新接入的外部设备的传屏状态设置为分享中的步骤,包括:The method of claim 9, wherein the step of setting the screen state of the newly accessed external device to the sharing when the screen state is the external device to be shared includes:
    将该传屏状态为待分享的外部设备的传屏状态设置为待抢占,将新 接入的外部设备的传屏状态设置为分享中。Set the screen status of the external device to be shared to be preempted, and set the screen status of the newly accessed external device to be shared.
  11. 如权利要求10所述的传屏方法,其特征在于,所述将新接入的外部设备的传屏状态设置为分享中的步骤之前,还包括:The method of claim 10, wherein the step of setting the screen state of the newly accessed external device to the step of sharing further comprises:
    将该传屏状态为待分享的外部设备与驱动解除绑定,将该新接入的外部设备与驱动绑定。The external device to be shared is unbound from the driver, and the newly accessed external device is bound to the driver.
  12. 一种传屏装置,其特征在于,包括:A screen device, comprising:
    获取模块,用于当接收到外部设备发送的状态切换信号时,获取该外部设备的传屏状态;其中,传屏状态包括:分享中,用于表征外部设备处于传输桌面数据的状态;The acquiring module is configured to: when receiving a state switching signal sent by the external device, acquire a screen state of the external device; where the screen state includes: sharing, used to indicate that the external device is in a state of transmitting desktop data;
    设置模块,用于如果该外部设备的传屏状态不是分享中,将该外部设备的传屏状态设置为分享中;a setting module, configured to set a screen state of the external device to be shared if the screen state of the external device is not in the sharing;
    接收模块,用于该接收传屏状态为分享中的外部设备发送的桌面数据。The receiving module is configured to receive the desktop data sent by the external device in the sharing state.
  13. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    处理器;processor;
    用于存储处理器可执行指令的存储器;a memory for storing processor executable instructions;
    其中,所述处理器被配置为执行所述权利要求1-11中任意一项所述的传屏方法。The processor is configured to perform the screen transmission method according to any one of claims 1-11.
  14. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-11中任意一项所述的传屏方法。A computer readable storage medium having stored thereon a computer program, wherein the program is executed by a processor to implement the screen method of any one of claims 1-11.
PCT/CN2018/114052 2018-04-02 2018-11-06 Screen transmission method and apparatus, electronic device, and computer-readable storage medium WO2019192178A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810283045.2A CN108664229B (en) 2018-04-02 2018-04-02 Screen transmission method and device, electronic equipment and computer readable storage medium
CN201810283045.2 2018-04-02

Publications (1)

Publication Number Publication Date
WO2019192178A1 true WO2019192178A1 (en) 2019-10-10

Family

ID=63782960

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/114052 WO2019192178A1 (en) 2018-04-02 2018-11-06 Screen transmission method and apparatus, electronic device, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN108664229B (en)
WO (1) WO2019192178A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108664229B (en) * 2018-04-02 2020-10-02 广州视源电子科技股份有限公司 Screen transmission method and device, electronic equipment and computer readable storage medium
CN110505516A (en) * 2019-05-15 2019-11-26 中海油信息科技有限公司 A kind of throwing screen control method, device and system
CN110442366B (en) * 2019-08-09 2021-06-15 广州视源电子科技股份有限公司 Screen transmission processing method, device, equipment and storage medium
CN113360108B (en) * 2020-03-05 2022-09-09 荣耀终端有限公司 Screen projection connection control method and electronic equipment
CN115220670A (en) * 2021-04-16 2022-10-21 广州视源电子科技股份有限公司 Screen projection control method, storage medium and communication equipment
CN114007035B (en) * 2021-09-24 2023-12-26 深圳壹秘科技有限公司 Conference data sharing system and method
CN114501120B (en) * 2022-01-11 2023-06-09 烽火通信科技股份有限公司 Multi-terminal wireless screen switching method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572578A (en) * 2011-12-30 2012-07-11 Tcl王牌电器(惠州)有限公司 Method for displaying pictures of mobile terminal on television screen and screen-transmitting system
CN103812904A (en) * 2012-11-13 2014-05-21 联想(北京)有限公司 Resource sharing method, resource sharing request method, electronic device and mobile terminal
CN104202677A (en) * 2014-09-12 2014-12-10 三星电子(中国)研发中心 Multi-screen display and control method and multi-screen display and control device supportive to multi-window applications
CN105262974A (en) * 2015-08-12 2016-01-20 北京恒泰实达科技股份有限公司 Method for realizing wireless screen sharing of multiple users
CN105376617A (en) * 2015-11-13 2016-03-02 播思通讯技术(北京)有限公司 Wireless mapping interaction processing method
CN108664229A (en) * 2018-04-02 2018-10-16 广州视源电子科技股份有限公司 Screen transmission method, device, electronic equipment and computer readable storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3338825B2 (en) * 2000-08-22 2002-10-28 エヌイーシービューテクノロジー株式会社 Electronic presentation method and system
KR20040079341A (en) * 2004-04-28 2004-09-14 (주)신엠 Screen sharing method and service method thereof
CN103345855B (en) * 2013-07-11 2015-06-10 北京信息科技大学 Projection switching system and projection switching method for teaching
CN104572285B (en) * 2015-01-29 2018-10-26 深圳酷派技术有限公司 Screen prjection method, projection arrangement and the terminal of terminal
CN105045548B (en) * 2015-06-16 2018-12-25 广州视睿电子科技有限公司 A kind of wireless screen transmission method, expansion equipment and wireless screen transmission system
CN107517459A (en) * 2017-09-18 2017-12-26 广州视源电子科技股份有限公司 The method, apparatus, system and storage medium of connection are established in a kind of wireless screen transmission
CN107707972B (en) * 2017-09-27 2020-12-25 三星电子(中国)研发中心 Data processing method, device and system for screen sharing and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572578A (en) * 2011-12-30 2012-07-11 Tcl王牌电器(惠州)有限公司 Method for displaying pictures of mobile terminal on television screen and screen-transmitting system
CN103812904A (en) * 2012-11-13 2014-05-21 联想(北京)有限公司 Resource sharing method, resource sharing request method, electronic device and mobile terminal
CN104202677A (en) * 2014-09-12 2014-12-10 三星电子(中国)研发中心 Multi-screen display and control method and multi-screen display and control device supportive to multi-window applications
CN105262974A (en) * 2015-08-12 2016-01-20 北京恒泰实达科技股份有限公司 Method for realizing wireless screen sharing of multiple users
CN105376617A (en) * 2015-11-13 2016-03-02 播思通讯技术(北京)有限公司 Wireless mapping interaction processing method
CN108664229A (en) * 2018-04-02 2018-10-16 广州视源电子科技股份有限公司 Screen transmission method, device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN108664229B (en) 2020-10-02
CN108664229A (en) 2018-10-16

Similar Documents

Publication Publication Date Title
WO2019192178A1 (en) Screen transmission method and apparatus, electronic device, and computer-readable storage medium
CN109168021B (en) Plug flow method and device
US20100045567A1 (en) Systems and methods for facilitating presentation
US9287706B2 (en) Intelligent power strip connecting master and slave peripheral device(s) wherein the master can be detected when connected to any outlet of the power strip
US9600152B2 (en) Providing feedback for screen sharing
TW201516698A (en) Remote play system and method
US9031378B2 (en) Method of managing multiple wireless video traffic and electronic device thereof
US20160070421A1 (en) Information Processing Method And Electronic Apparatus
EP4054198A1 (en) Live broadcast method and apparatus, electronic device, and storage medium
WO2023020008A1 (en) Method for controlling screen projection, and electronic device and computer-readable storage medium
WO2022142619A1 (en) Method and device for private audio or video call
US20120170904A1 (en) Operation assistance apparatus and operation assistance method
KR20160021449A (en) Control method, device and system for video playing
CN113050910B (en) Voice interaction method, device, equipment and storage medium
JP2007258984A (en) Radio communication system and radio communication method
JP2015188204A (en) Information processing apparatus, information processing method, and its program
WO2018214837A1 (en) Method and device for displaying message notification, electronic apparatus, and storage medium
WO2019000191A1 (en) System message receiving method and system message receiving device
JP2015162040A (en) Electronic apparatus
WO2023284498A1 (en) Video playing method and apparatus, and storage medium
CN108282720B (en) Audio data stream transmission method and device
KR100690852B1 (en) Method and mobile terminal for controlling usage of resource
CN114564214A (en) Display device, application installation method, and storage medium
CN113282362A (en) Application program management method, device, storage medium and terminal
CN108984074B (en) Sidebar operation method, device and system, terminal equipment and server

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: 18913601

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 24.11.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18913601

Country of ref document: EP

Kind code of ref document: A1