CN109889887A - A kind of two-way interaction method and system - Google Patents
A kind of two-way interaction method and system Download PDFInfo
- Publication number
- CN109889887A CN109889887A CN201910285298.8A CN201910285298A CN109889887A CN 109889887 A CN109889887 A CN 109889887A CN 201910285298 A CN201910285298 A CN 201910285298A CN 109889887 A CN109889887 A CN 109889887A
- Authority
- CN
- China
- Prior art keywords
- equipment
- control display
- touch control
- data
- parameter
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Abstract
The present invention provides a kind of two-way interaction method and system, two-way interaction method includes: that touch control display monitors connection message, and connection message is for judging whether the USB interface of touch control display has equipment connection;USB link when listening to USB interface has equipment connection, between touch control display creation and equipment;Touch control display carries out exchanging for parameter with equipment by USB link, so that parameter processing data of the transmitting terminal in touch control display and equipment according to receiving end;And touch control display and equipment carry out the transmitted in both directions of data, solve the problems, such as that throw screen does not support the USB interface of USB Type-C Alternative mode agreement to be unable to bi-directional transfer of data in the process, improves user experience.
Description
Technical field
The present invention relates to throw to shield technical field, and in particular to a kind of two-way interaction method and system.
Background technique
Currently, more and more users like interacting using double screen, by connecting one between both devices
Type-C connecting line replaces agreement (USB Type-C using the USB Type-C that USB Type-C interface is supported
Alternative mode agreement) Lai Shixian, however have some equipment not installation for example some early stage equipment of Type-C interface
Even if the Micro USB interface of upper installation or some equipment are equipped with Type-C interface, USB may not be supported
Type-C Alternative mode agreement does not support USB Type-C Alternative mode agreement to cannot achieve
Equipment room data interaction, and then cannot achieve two-screen Interactive, bring inconvenience for user.
Summary of the invention
In view of this, solving existing throwing screen technology the embodiment of the invention provides a kind of two-way interaction method and system
In the problem of not supporting the USB interface of USB Type-C Alternative mode agreement to be unable to bi-directional transfer of data, improve
User experience.
According to a first aspect of the embodiments of the present invention, a kind of two-way interaction method is provided, comprising: touch control display, which is monitored, to be connected
Message is connect, connection message is for judging whether the USB interface of touch control display has equipment connection;It is set when listening to USB interface
USB link when standby connection, between touch control display creation and equipment;Touch control display is joined by USB link and equipment
Several exchange, so that the parameter processing data of transmitting terminal in the touch control display and the equipment according to receiving end;
And touch control display and equipment carry out the transmitted in both directions of data.
In one embodiment of the invention, above-mentioned data include audio data, video data or touch data.
In one embodiment of the invention, above-mentioned parameter includes audio coding decoding parameter, passes through USB in touch control display
Link and equipment carry out after the exchanging of parameter, further includes: touch control display sends itself bluetooth configuration parameter by USB link
To equipment, to assist device configuration bluetooth, and the Bluetooth link between equipment is created, above-mentioned touch control display and equipment carry out
The transmitted in both directions of data, comprising: touch control display carries out the transmitted in both directions of audio data by Bluetooth link and equipment.
In one embodiment of the invention, parameter includes coding and decoding video parameter.Above-mentioned touch control display and equipment into
The transmitted in both directions of row data, comprising: touch control display carries out the transmitted in both directions of video data by USB link and equipment.
In one embodiment of the invention, above-mentioned touch control display carries out video data by USB link and equipment
Transmitted in both directions, comprising: the coding and decoding video parameter that touch control display utilizes equipment to send initializes MediaCodec class;Pass through
Virtual Display class is created to obtain video data;Compressed encoding is carried out to video data by MediaCodec class, and
Equipment is transmitted to by USB link;And equipment calls MediaCodec class is decoded video data, and passes through
SurfaceView class shows video data.
In one embodiment of the invention, above-mentioned parameter includes touch parameter.Above-mentioned touch control display and equipment carry out
The transmitted in both directions of data, comprising: touch control display creates HID MultiTouch equipment using touch parameter;And touch-control is shown
Device sends touch data to equipment using HID MultiTouch equipment and by USB link.
In one embodiment of the invention, above-mentioned touch control display using HID MultiTouch equipment and passes through USB
Link sends touch data to equipment, comprising: touch control display is obtained by the event sniffer registered on SurfaceView
Touch data;And touch control display utilizes HID MultiTouch equipment by touch data with the said shank of HID Report
Equipment is sent to by USB link afterwards.
In one embodiment of the invention, above-mentioned connection message includes: ACTION_USB_DEVICE_ATTACHED meaning
Figure message.
According to a second aspect of the embodiments of the present invention, a kind of duplex interactive system is provided, comprising: module is monitored, for supervising
Connection message is listened, connection message is for judging whether the USB interface of touch control display has equipment connection;Creation module, for working as
USB link when listening to USB interface has equipment connection, between creation and equipment;Sending module is received, for passing through USB chain
Road carries out exchanging for parameter with equipment, so that the transmitting terminal in the touch control display and the equipment is according to receiving end
Parameter processing data;And transmission module, for carrying out the transmitted in both directions of data with equipment.
According to a third aspect of the embodiments of the present invention, a kind of computer readable storage medium is provided, calculating is stored thereon with
Machine executable instruction, the executable instruction realize two-way interaction method as described above when being executed by processor.
The technical solution provided according to embodiments of the present invention monitors connection message by touch control display;When listening to USB
When interface has equipment connection, touch control display creates the USB link between equipment, and is joined by USB link and equipment
Several exchanges, so that the parameter processing data of transmitting terminal in touch control display and equipment according to receiving end, to meet receiving end
Data format requirement, to realize the transmitted in both directions of data between touch control display and equipment, solve throwing screen during not
The problem of supporting the USB interface of USB Type-C Alternative mode agreement to be unable to bi-directional transfer of data, improves user
Experience.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 show the flow diagram of the two-way interaction method of one embodiment of the invention offer.
Fig. 2 show another embodiment of the present invention provides two-way interaction method flow diagram.
Fig. 3 show another embodiment of the present invention provides two-way interaction method flow diagram.
Fig. 4 show another embodiment of the present invention provides two-way interaction method flow diagram.
Fig. 5 show the block diagram of the duplex interactive system of one embodiment of the invention offer.
Fig. 6 show another embodiment of the present invention provides duplex interactive system block diagram.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that the described embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Based on this
Embodiment in invention, every other reality obtained by those of ordinary skill in the art without making creative efforts
Example is applied, shall fall within the protection scope of the present invention.
Fig. 1 show the flow diagram of the two-way interaction method of one embodiment of the invention offer.This method can be by counting
Machine equipment (for example, touch control display) is calculated to execute.As shown in Figure 1, this method includes following content.
S110: touch control display monitors connection message.
For judging whether the USB interface of touch control display has equipment connection, which includes but is not limited to connection message
Mobile terminal, such as mobile phone, tablet computer etc..For example, the connection message can be ACTION_USB_ for Android system
DEVICE_ATTACHED is intended to (intent) message.The embodiment of the present invention is not limited to this, should for different operating system
The message that connection message can be for realizing similar functions.Certainly, which is also possible to for realizing similar functions
Specific messages.
S120: the USB link when listening to USB interface has equipment connection, between touch control display creation and equipment.
USB interface can be USB Type-A interface, USB Type-B interface or USB Type-C interface, and the present invention is to this
It is not construed as limiting.Specifically, when equipment connects mobile phone by USB interface, touch control display, which can listen to, this time to be connected, and benefit
With the USB link between the creation of USB Manager class and equipment.
S130: touch control display carries out exchanging for parameter with equipment by USB link.
Touch control display carries out parameter with equipment and exchanges, and the transmitting terminal in touch control display and equipment can be made according to reception
The relevant parameter at end carries out data processing, to meet the data format requirement of receiving end, so as to realize touch control display with
The transmitted in both directions of data between equipment.Specifically, while touch control display creates and opens USB link, equipment can be received
The ACTION_USB_ACCESSORY_ATTACHED Intent message that touch control display is sent, and mutually handed over touch control display
The parameter of needs is changed, is ready for data transmission.It should be appreciated that parameter may include audio/video encoding/decoding parameter, touch-control ginseng
Several or bluetooth configuration parameter etc., data may include audio data, video data or touch data etc., and the present invention does not make this to have
Body limits.
For example, touch control display, as transmitting terminal, equipment passes through USB link as receiving end, touch control display and equipment
After exchanging audio/video encoding/decoding parameter, touch control display compiles audio, video data according to the audio/video encoding/decoding parameter of equipment
Code is further processed after receiving audio, video data convenient for equipment.
S140: the transmitted in both directions of touch control display and equipment progress data.
Touch control display and equipment are utilized respectively the parameter logistic that receives according to being handled, and are sent to receiving end.It answers
Work as understanding, can be carried out data transmission by modes such as USB link, Bluetooth links, the present invention does not limit data transfer mode
It is fixed.Such as audio data etc., this hair can be transmitted by Bluetooth link by USB link transmitting video data and touch data
It is bright that this is not construed as limiting.
The technical solution provided according to embodiments of the present invention monitors connection message by touch control display;When listening to USB
When interface has equipment connection, touch control display creates the USB link between equipment, and is joined by USB link and equipment
Several exchanges, so that the parameter processing data of transmitting terminal in touch control display and equipment according to receiving end, to meet receiving end
Data format requirement, to realize the transmitted in both directions of data between touch control display and equipment, solve throwing screen during not
The problem of supporting the USB interface of USB Type-C Alternative mode agreement to be unable to bi-directional transfer of data, it is various types of
Bi-directional transfer of data may be implemented in USB interface, improves user experience.
Fig. 2 show another embodiment of the present invention provides two-way interaction method flow diagram.This method can be by
Computer equipment (for example, touch control display) executes.As shown in Fig. 2, this method includes following content.
S210: touch control display monitors connection message.
S220: when listening to USB interface has mobile terminal connection, between touch control display creation and mobile terminal
USB link.
S230: touch control display carries out exchanging for audio coding decoding parameter with mobile terminal by USB link.
S240: touch control display sends itself bluetooth configuration parameter to mobile terminal, to assist movement eventually by USB link
End configuration bluetooth, and create the Bluetooth link between mobile terminal.
Specifically, after touch control display and mobile terminal exchange audio coding decoding parameter by USB link, touch-control is shown
Device also passes through USB link and sends itself bluetooth configuration parameter to mobile terminal, to assist mobile terminal configuration bluetooth, mobile terminal
After bluetooth configuration, Bluetooth link just creates completion.
S250: touch control display carries out the transmitted in both directions of audio data by Bluetooth link and mobile terminal.
Specifically, the transmitting terminal in touch control display and mobile terminal is according to the audio coding decoding parameter of receiving end to audio
Data are encoded, and are played by Bluetooth transmission to receiving end.When starting receiving end microphone, audio data can pass through indigo plant
Tooth microphone is back to transmitting terminal.
The technical solution provided according to embodiments of the present invention, by monitoring connection message;There is movement when listening to USB interface
When terminal connects, touch control display creates the USB link between mobile terminal, and is carried out by USB link and mobile terminal
The exchange of audio coding decoding parameter;Create the Bluetooth link between mobile terminal, and by Bluetooth link and mobile terminal into
The transmitted in both directions of row audio data, the audio that may be implemented between double screen or even multi-screen are mutually broadcast, and user experience is improved.Separately
Outside, Audio Sink and Audio can be supported by modifying Audio Flinger and the Audio Framework of Android system
Source function avoids the drawbacks of existing throwing screen technology is without Audio Source function.
Fig. 3 show another embodiment of the present invention provides two-way interaction method flow diagram.This method can be by
Computer equipment (for example, touch control display) executes.As shown in figure 3, this method includes following content.
S310: touch control display monitors connection message.
S320: when listening to USB interface has mobile terminal connection, between touch control display creation and mobile terminal
USB link.
S330: touch control display carries out exchanging for coding and decoding video parameter with mobile terminal by USB link.
S340: the coding and decoding video parameter that touch control display utilizes mobile terminal to send initializes MediaCodec class;It is logical
Creation Virtual Display class is crossed to obtain video data;Compressed encoding is carried out to video data by MediaCodec class.
Specifically, video data can be obtained by the MediaProjection api interface of Android system.Pass through first
The example that activity included getSystemService () method obtains MediaProjectionManager class, and lead to
It crosses MediaProjectionManager class and obtains MediaProjection example;Secondly, passing through MediaProjection reality
Example creation Virtual Display example is called createSurface () method creation surface object and is passed to
Virtual Display class obtains the data of present physical screen.
S350: touch control display passes through USB link transmitting video data to mobile terminal.
S360: mobile terminal calls MediaCodec class to be decoded video data, and aobvious by SurfaceView class
Show video data.
The technical solution provided according to embodiments of the present invention, by monitoring connection message;There is movement when listening to USB interface
When terminal connects, touch control display creates the USB link between mobile terminal, and is carried out by USB link and mobile terminal
The exchange of coding and decoding video parameter;The coding and decoding video parameter that touch control display utilizes mobile terminal to send, initialization
MediaCodec class obtains video data by creation Virtual Display class, by MediaCodec class to video counts
The mobile terminal of all models can be enabled equal to mobile terminal according to progress compressed encoding, and by USB link transmitting video data
It realizes that video is mutually thrown, avoids the movement for only supporting the type c interface of USB Type-C Alternative mode agreement
The drawbacks of terminal just can be with video transmitted in both directions, make touch control display can matched mobile terminal model it is richer, improve simultaneously
Video projection quality and user experience.
In another embodiment of the present invention, mobile terminal can use the coding and decoding video ginseng of touch control display transmission
Number initializes MediaCodec class;Video data is obtained by creation Virtual Display class;Pass through MediaCodec
Class carries out compressed encoding to video data, and is transmitted to touch control display by USB link;And touch control display calls
MediaCodec class is decoded video data, and shows video data by SurfaceView class.
Fig. 4 show another embodiment of the present invention provides two-way interaction method flow diagram.This method can be by
Computer equipment (for example, touch control display) executes.As shown in figure 4, this method includes following content.
S410: touch control display monitors connection message.
S420: when listening to USB interface has mobile terminal connection, between touch control display creation and mobile terminal
USB link.
S430: touch control display carries out exchanging for touch parameter with mobile terminal by USB link.
S440: touch control display creates HID MultiTouch equipment using touch parameter.
Specifically, in conjunction with the touch parameter of mobile terminal and touch control display, touch control display constructs HID Report
Descriptor is simultaneously sent to mobile terminal by USB link, completes HID device statement.
S450: touch control display obtains touch data by the event sniffer registered on SurfaceView.
Specifically, View.OnTouchListener () example is registered on SurfaceView control, passes through ontouch
() function captures touch event, to extract touch data.Touch data includes touch-control points, coordinate and timestamp etc.,
This is not limited by the present invention.
S460: touch control display is by HID MultiTouch equipment by touch data with the said shank of HID Report
Mobile terminal is sent to by USB link afterwards.
Specifically, according to touch parameter, touch data is packaged into HID Report and movement is transmitted to by USB link
Terminal.
The technical solution provided according to embodiments of the present invention, by monitoring connection message;There is movement when listening to USB interface
When terminal connects, touch control display creates the USB link between mobile terminal, and is carried out by USB link and mobile terminal
The exchange of touch parameter;Touch control display creates HID MultiTouch equipment using touch parameter, infuses on SurfaceView
The event sniffer of volume obtains touch data, and passes through HID MultiTouch equipment for touch data with the lattice of HID Report
Mobile terminal is sent to by USB link after formula coding, HID MultiTouch equipment can be simulated by software to realize touching
Control countercharge, various types of USB interfaces may be implemented the transmitted in both directions of touch data, and then realize double screen or even multi-screen
Two-way interaction improves user experience.
All the above alternatives can form alternative embodiment of the invention using any combination, herein no longer
It repeats one by one.
Following is apparatus of the present invention embodiment, can be used for executing embodiment of the present invention method.For apparatus of the present invention reality
Undisclosed details in example is applied, embodiment of the present invention method is please referred to.
Fig. 5 show the block diagram of the duplex interactive system of one embodiment of the invention offer.As shown in figure 5, the two-way interaction
System 500 includes:
Monitor module 510, for monitoring connection message, connection message be used to judge touch control display USB interface whether
There is equipment connection;
Creation module 520, for the USB link when listening to USB interface has equipment connection, between creation and equipment;
Receive sending module 530, for carrying out exchanging for parameter by USB link and equipment so that touch control display with
Transmitting terminal in equipment is according to the parameter processing data of receiving end.
Transmission module 540, for carrying out the transmitted in both directions of data with equipment.
The technical solution provided according to embodiments of the present invention monitors connection message by touch control display;When listening to USB
When interface has equipment connection, touch control display creates the USB link between equipment, and is joined by USB link and equipment
Several exchanges, so that the parameter processing data of transmitting terminal in touch control display and equipment according to receiving end, to meet receiving end
Data format requirement, to realize the transmitted in both directions of data between touch control display and equipment, solve throwing screen during not
The problem of supporting the USB interface of USB Type-C Alternative mode agreement to be unable to bi-directional transfer of data, it is various types of
Bi-directional transfer of data may be implemented in USB interface, improves user experience.
In another embodiment of the present invention, above-mentioned data include audio data, video data or touch data.
In another embodiment of the present invention, above-mentioned parameter includes audio coding decoding parameter, receives sending module 530 also
For sending itself bluetooth configuration parameter to equipment by USB link, to assist device configuration bluetooth, creation module 520 is also used
Bluetooth link between creation and equipment, transmission module 540 are also used to carry out audio data by Bluetooth link and equipment
Transmitted in both directions.
In another embodiment of the present invention, above-mentioned parameter includes coding and decoding video parameter, and transmission module 540 is also used to
The transmitted in both directions of video data is carried out by USB link and equipment.
In another embodiment of the present invention, above-mentioned duplex interactive system further includes initialization module 550, for utilizing
The coding and decoding video parameter that equipment is sent, initializes MediaCodec class, and creation module 520 is also used to by creating Virtual
Display class obtains video data;Coding/decoding module 560, for being compressed by MediaCodec class to video data
Coding, transmission module 540 are also used to through USB link transmitting video data to equipment.
In another embodiment of the present invention, above-mentioned parameter includes touch parameter, and creation module 520 is also used to utilize touching
It controls parameter and creates HID MultiTouch equipment;Sending module 530 is received to be used for using HID MultiTouch equipment and pass through
USB link sends touch data to equipment.
In another embodiment of the present invention, above-mentioned duplex interactive system further include obtain module 570, for by
The event sniffer registered on SurfaceView obtains touch data;Sending module 530 is received to be also used to utilize HID
MultiTouch equipment is by touch data to be sent to equipment by USB link after the said shank of HID Report.
In another embodiment of the present invention, connection message includes that ACTION_USB_DEVICE_ATTACHED intention disappears
Breath.
The function of modules and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
Fig. 6 show another embodiment of the present invention provides duplex interactive system 600 block diagram.
Referring to Fig. 6, it further comprises one or more processors, and by depositing that system 600, which includes processing component 610,
Memory resource representated by reservoir 620, can be by the instruction of the execution of processing component 610, such as application program for storing.It deposits
The application program stored in reservoir 620 may include it is one or more each correspond to one group of instruction module.This
Outside, processing component 610 is configured as executing instruction, to execute above-mentioned two-way interaction method.
System 600 can also include that a power supply module be configured as the power management of execution system 600, one it is wired or
Radio network interface is configured as system 600 being connected to network and input and output (I/O) interface.System 600 can be grasped
Make based on the operating system for being stored in memory 620, such as Windows ServerTM, Mac OS XTM, UnixTM,
LinuxTM, FreeBSDTM or similar.
A kind of non-transitorycomputer readable storage medium, when the instruction in storage medium is by the processing of above system 600
When device executes, so that above system 600 is able to carry out a kind of two-way interaction method, comprising: touch control display monitors connection message,
Connection message is for judging whether the USB interface of touch control display has equipment connection;There is equipment connection when listening to USB interface
When, the USB link between touch control display creation and equipment;Touch control display carries out the friendship of parameter by USB link and equipment
It changes, so that parameter processing data of the transmitting terminal in touch control display and equipment according to receiving end;Touch control display and equipment into
The transmitted in both directions of row data.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), arbitrary access are deposited
The various media that can store program ver-ify code such as reservoir (Random Access Memory, RAM), magnetic or disk.
In addition, it should also be noted that, institute in the combination of each technical characteristic and unlimited this case claim in this case
Combination documented by the combination or specific embodiment of record, all technical characteristics documented by this case can be to appoint
Where formula is freely combined or is combined, unless generating contradiction between each other.
It should be noted that the above list is only specific embodiments of the present invention, it is clear that the present invention is not limited to above real
Example is applied, there are many similar variations therewith.If those skilled in the art directly exported from present disclosure or
All deformations associated, are within the scope of protection of the invention.
The above is merely preferred embodiments of the present invention, it is not intended to limit the scope of the present invention.It is all in this hair
Within bright spirit and principle, any modification, equivalent replacement, improvement and so on should be included in protection scope of the present invention
Within.
Claims (10)
1. a kind of two-way interaction method characterized by comprising
Touch control display monitors connection message, and the connection message is for judging whether the USB interface of the touch control display has
Equipment connection;
USB chain when listening to the USB interface has equipment connection, between the touch control display creation and the equipment
Road;
The touch control display carries out exchanging for parameter with the equipment by the USB link, so that the touch control display
With the transmitting terminal in the equipment according to the parameter processing data of receiving end;
The touch control display and the equipment carry out the transmitted in both directions of data.
2. two-way interaction method as described in claim 1, which is characterized in that the data include audio data, video data
Or touch data.
3. two-way interaction method as claimed in claim 2, which is characterized in that the parameter includes audio coding decoding parameter,
In, after the touch control display carries out by the USB link and the equipment the exchanging of parameter, further includes:
The touch control display sends itself bluetooth configuration parameter to the equipment, to set described in assistance by the USB link
Standby configuration bluetooth, and the Bluetooth link between the equipment is created,
Wherein, the touch control display and the equipment carry out the transmitted in both directions of data, comprising:
The touch control display carries out the transmitted in both directions of the audio data by the Bluetooth link and the equipment.
4. two-way interaction method as claimed in claim 2, which is characterized in that the parameter includes coding and decoding video parameter,
In, the transmitted in both directions of the touch control display and equipment progress data, comprising:
The touch control display carries out the transmitted in both directions of the video data by the USB link and the equipment.
5. two-way interaction method as claimed in claim 4, which is characterized in that the touch control display passes through the USB link
The transmitted in both directions of the video data is carried out with the equipment, comprising:
The coding and decoding video parameter that the touch control display utilizes the equipment to send initializes MediaCodec class;It is logical
Creation Virtual Display class is crossed to obtain the video data;The video data is carried out by MediaCodec class
Compressed encoding, and the equipment is transmitted to by the USB link;
The equipment calls MediaCodec class is decoded the video data, and shows institute by SurfaceView class
State video data.
6. two-way interaction method as claimed in claim 2, which is characterized in that the parameter includes touch parameter, wherein described
Touch control display and the equipment carry out the transmitted in both directions of data, comprising:
The touch control display creates HID MultiTouch equipment using the touch parameter;And
The touch control display sends the touch data using the HID MultiTouch equipment and by the USB link
To the equipment.
7. two-way interaction method as claimed in claim 6, which is characterized in that the touch control display utilizes the HID
MultiTouch equipment simultaneously sends the touch data to the equipment by the USB link, comprising:
The touch control display obtains the touch data by the event sniffer registered on SurfaceView;And
The touch control display is using the HID MultiTouch equipment by the touch data with the format of HID Report
The equipment is sent to by the USB link after coding.
8. the two-way interaction method as described in any one of claims 1 to 7, which is characterized in that the connection message includes:
ACTION_USB_DEVICE_ATTACHED is intended to message.
9. a kind of duplex interactive system characterized by comprising
Module is monitored, for monitoring connection message, the connection message is for judging whether the USB interface of touch control display sets
Standby connection;
Creation module, for the USB link when listening to the USB interface has equipment connection, between creation and the equipment;
Sending module is received, for carrying out exchanging for parameter with the equipment by the USB link, so that the touch-control is shown
Transmitting terminal in device and the equipment is according to the parameter processing data of receiving end;And
Transmission module, for carrying out the transmitted in both directions of data with the equipment.
10. a kind of computer readable storage medium, is stored thereon with computer executable instructions, which is characterized in that described to hold
Row instruction realizes such as two-way interaction method described in any item of the claim 1 to 8 when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910285298.8A CN109889887A (en) | 2019-04-10 | 2019-04-10 | A kind of two-way interaction method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910285298.8A CN109889887A (en) | 2019-04-10 | 2019-04-10 | A kind of two-way interaction method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109889887A true CN109889887A (en) | 2019-06-14 |
Family
ID=66936782
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910285298.8A Pending CN109889887A (en) | 2019-04-10 | 2019-04-10 | A kind of two-way interaction method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109889887A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111629239A (en) * | 2020-04-29 | 2020-09-04 | 腾讯科技(深圳)有限公司 | Screen projection processing method, device, equipment and computer readable storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020087333A1 (en) * | 2000-12-29 | 2002-07-04 | Reng-Sho Chen | Portable presentation device |
CN103176765A (en) * | 2013-02-05 | 2013-06-26 | 海信集团有限公司 | Screen transmitting method and electronic equipment |
US8531613B1 (en) * | 2005-08-19 | 2013-09-10 | Nongqiang Fan | Method of controlling computer using television screen |
CN105045548A (en) * | 2015-06-16 | 2015-11-11 | 广州视睿电子科技有限公司 | Wireless screen transmission method, extension device and wireless screen transmission system |
CN105516905A (en) * | 2015-12-25 | 2016-04-20 | 百度在线网络技术(北京)有限公司 | Connection method and device of Bluetooth devices |
CN107027064A (en) * | 2017-04-20 | 2017-08-08 | 广州视源电子科技股份有限公司 | The processing method and processing device of video file in wireless screen transmission |
CN107493484A (en) * | 2017-08-18 | 2017-12-19 | 三星电子(中国)研发中心 | System, method and apparatus for projection screen |
CN107948568A (en) * | 2016-10-12 | 2018-04-20 | 广州视源电子科技股份有限公司 | Realize the method and device of wired biography screen |
CN109218731A (en) * | 2017-06-30 | 2019-01-15 | 腾讯科技(深圳)有限公司 | The throwing screen method, apparatus and system of mobile device |
CN109344101A (en) * | 2018-11-01 | 2019-02-15 | 北京硬壳科技有限公司 | Data processing system and method |
-
2019
- 2019-04-10 CN CN201910285298.8A patent/CN109889887A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020087333A1 (en) * | 2000-12-29 | 2002-07-04 | Reng-Sho Chen | Portable presentation device |
US8531613B1 (en) * | 2005-08-19 | 2013-09-10 | Nongqiang Fan | Method of controlling computer using television screen |
CN103176765A (en) * | 2013-02-05 | 2013-06-26 | 海信集团有限公司 | Screen transmitting method and electronic equipment |
CN105045548A (en) * | 2015-06-16 | 2015-11-11 | 广州视睿电子科技有限公司 | Wireless screen transmission method, extension device and wireless screen transmission system |
CN105516905A (en) * | 2015-12-25 | 2016-04-20 | 百度在线网络技术(北京)有限公司 | Connection method and device of Bluetooth devices |
CN107948568A (en) * | 2016-10-12 | 2018-04-20 | 广州视源电子科技股份有限公司 | Realize the method and device of wired biography screen |
CN107027064A (en) * | 2017-04-20 | 2017-08-08 | 广州视源电子科技股份有限公司 | The processing method and processing device of video file in wireless screen transmission |
CN109218731A (en) * | 2017-06-30 | 2019-01-15 | 腾讯科技(深圳)有限公司 | The throwing screen method, apparatus and system of mobile device |
CN107493484A (en) * | 2017-08-18 | 2017-12-19 | 三星电子(中国)研发中心 | System, method and apparatus for projection screen |
CN109344101A (en) * | 2018-11-01 | 2019-02-15 | 北京硬壳科技有限公司 | Data processing system and method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111629239A (en) * | 2020-04-29 | 2020-09-04 | 腾讯科技(深圳)有限公司 | Screen projection processing method, device, equipment and computer readable storage medium |
CN111629239B (en) * | 2020-04-29 | 2022-01-25 | 腾讯科技(深圳)有限公司 | Screen projection processing method, device, equipment and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109347934B (en) | Message pushing method and system, server, storage medium and electronic device | |
CN103150132A (en) | Screen transmission method and electronic equipment | |
CN108184164A (en) | Audio frequency playing method, smart television and computer readable storage medium | |
CN106464510A (en) | Efficiently mixing voip data | |
CN104205998A (en) | Method and apparatus for relaying data communications in a bluetooth network | |
CN108738008A (en) | Bluetooth pairing methods and system | |
CN109274747A (en) | Market gateway system and its processing method | |
US20180063481A1 (en) | Human interface device (hid) based control of video data conversion at docking station | |
WO2019237668A1 (en) | Receiving device and wireless screen transmission system | |
WO2013026410A1 (en) | Method, terminal and system for a mobile intelligent terminal to participate in teleconference | |
CN110166193A (en) | A kind of method and terminal of System Information reception | |
CN105453576B (en) | Paired device | |
CN107770255A (en) | Terminal device data sharing master control device and method for collaborative work | |
CN104955168A (en) | Audio data transmitting method, receiving method and device | |
CN108989381A (en) | A kind of remote interaction method and system | |
CN110224981A (en) | A kind of method and apparatus for connecting equipment with target for VR all-in-one machine and being interconnected | |
CN110049362A (en) | Display, the wireless system and method for throwing screen | |
CN105511961B (en) | A kind of data transmission method for uplink and terminal | |
CN109005107A (en) | The means of communication, intelligent terminal and the device with store function | |
CN109889887A (en) | A kind of two-way interaction method and system | |
CN102016818A (en) | Communication between scheduled and in progress event attendees | |
US20200162524A1 (en) | Control method of multimedia conference terminal and multimedia conference server | |
CN111866440B (en) | Method, device and equipment for pushing video data and storage medium | |
CN104038642B (en) | A kind of method and device responding incoming call | |
CN104683728B (en) | Establish the method and system of video communication |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190614 |
|
RJ01 | Rejection of invention patent application after publication |