CN108536626A - Channel bridging method, bridging device, computer equipment and computer program product - Google Patents
Channel bridging method, bridging device, computer equipment and computer program product Download PDFInfo
- Publication number
- CN108536626A CN108536626A CN201810263461.6A CN201810263461A CN108536626A CN 108536626 A CN108536626 A CN 108536626A CN 201810263461 A CN201810263461 A CN 201810263461A CN 108536626 A CN108536626 A CN 108536626A
- Authority
- CN
- China
- Prior art keywords
- terminal device
- bridging
- bridging device
- channel
- interface channel
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
- G06F13/387—Information transfer, e.g. on bus using universal interface adapter for adaptation of different data processing systems to different peripheral devices, e.g. protocol converters for incompatible systems, open system
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a kind of channel bridging method, bridging device, computer equipment and computer program products, the interface channel being directly connected to for providing fittings equipment and terminal device, can connection compatible with various terminal equipment using interface channel fittings equipment.Present invention method part includes:Bridging device determines whether interface has terminal device insertion;If bridging device determination has terminal device insertion, bridging device to determine the OS Type of terminal device;Bridging device establishes interface channel according to the OS Type of terminal device with terminal device.
Description
Technical field
The present invention relates to intelligent terminal fields more particularly to a kind of channel bridging method, bridging device, computer to set
Standby and computer program product.
Background technology
Intelligent terminal, such as mobile phone, tablet computer (such as ipad), have been increasingly becoming the one of people's Working Life
Part.More and more applications are all based on what above-mentioned terminal device was extended as platform.By taking mobile phone as an example, although mobile phone
Embedded sensor and each function module can meet many life requirements of people, such as network, and positioning images greatest service
Can module etc., but certain special applications and the demand sensor that needs other more rich or module could be completed, this
Sample has just derived Cellphone Accessories market.Such as earphone, infrared remote control, digital camera, keyboard, mouse and game console etc.,
Its purpose is exactly that mobile phone is coordinated to complete some application experience together.
In the prior art, general Cellphone Accessories are connect with mobile phone there are two types of connection type, respectively radio connection with
Wired direct-connected mode.Radio connection is typically wifi (wIreless-fIdelity) and bluetooth, wired connection mode then according to
There are different types of connection type, such as Android mobile phone generally use universal serial bus according to different terminal devices
(universal serial bus, USB) interface is attached.
But prior art haves the shortcomings that more, although radio connection is convenient, often it passes through wireless
The rate and stabilization for the data that connection type is transmitted can be with bandwidths, environmental disturbances, and distance shows larger difference, separately
Outside, because each cell phone manufacturer does not use unified interface or agreement and software protocol.The accessory of mobile phone is difficult to accomplish
With various handset compatibilities, that is to say, that direct-connected accessory cannot be compatible connected well with various terminal equipment.
Invention content
In view of the above technical problems, an embodiment of the present invention provides a kind of channel bridging method, bridging device, computers to set
Standby and computer program product, for solving the problem in above-mentioned background technology.
The first aspect of the embodiment of the present invention provides a kind of channel bridging method, and this method includes:
Bridging device determines whether interface has terminal device insertion;
If the bridging device determination has the terminal device to be inserted into, the bridging device determines the terminal device
OS Type;
The bridging device establishes interface channel according to the OS Type of the terminal device with the terminal device,
So that the terminal device is communicated using the interface channel with fittings equipment.
In conjunction with the embodiment of the present invention in a first aspect, in the first embodiment of first aspect present invention, the terminal is set
Standby is Android system equipment, OS Type and the terminal device of the bridging device according to the terminal device
Interface channel is established, including:
The bridging device is sent to the terminal device comprising AOA (android opens accessory agreement) configuration-direct
USB control packets, so that the terminal device is established according to the AOA configuration-directs of USB control packets with the bridging device
The interface channel.
In conjunction with the first embodiment mode of first aspect of the embodiment of the present invention, in the second embodiment party of first aspect present invention
In formula, after the bridging device establishes the interface channel with the terminal device, the method further includes:
In the bridging device to before the terminal device transmission data, the bridging device splits data to be transmitted
For N number of target data packet, wherein the data to be transmitted is 512*M bytes, and the N and M are positive integer, and the M is more than or waits
In 1, the N is greater than or equal to 2, at least one target data packet is less than 512 bytes in N number of target data packet;
The bridging device starts to send N number of target data packet in SOF to the terminal device in same a frame.
In conjunction with the embodiment of the present invention in a first aspect, in the third embodiment of first aspect present invention, the terminal is set
Standby is IOS system equipments, and the bridging device is established according to the OS Type of the terminal device with the terminal device
Interface channel, including:
The bridging device determines the iTunes protocol versions of the terminal device;
The bridging device sends handshake packet according to the iTunes protocol versions to the terminal device, so that the end
End equipment feedback response message;
When the bridging device receives the response message, the bridging device, which is sent, determines message to the terminal
Equipment is to establish the interface channel.
In conjunction with the third embodiment of first aspect of the embodiment of the present invention, in the 4th embodiment of first aspect present invention
In, after the bridging device and the terminal device establish the interface channel, the bridging device is by window size
(Window Size) is fixed as preset value, wherein the preset value is not zero, and the preset value is more than the terminal device
Default window size.
It is described in the 5th embodiment of the present invention in conjunction with the third embodiment of first aspect of the embodiment of the present invention
After bridging device establishes the interface channel with the terminal device, the method further includes:
When the bridging device and the terminal device are carried out data transmission using the interface channel, the bridge joint is set
The standby ACK (confirming character) that at least one terminal device feedback is received in a SOF.
In conjunction with above-mentioned in a first aspect, and in the various embodiments of first aspect, the bridging device has low-power consumption
Function, if the bridging device determines that no terminal device is inserted into, the bridging device enters low power consumpting state.
Second aspect of the embodiment of the present invention provides a kind of bridging device, which includes:
First determining module, for determining whether interface has terminal device insertion;
Second determining module, if determining that the bridging device has the terminal device to insert for first determining module
Enter, it is determined that the OS Type of the terminal device;
Module is established, the OS Type of the terminal device for being determined according to second determining module and institute
It states terminal device and establishes interface channel.
In conjunction with above-mentioned second aspect, in the first embodiment of second aspect of the embodiment of the present invention, the terminal device
For android system equipment, the module of establishing is specifically used for:
The USB that AOA configuration-directs are sent to the terminal device controls packet, so that the terminal device is according to
The AOA configuration-directs of USB control packets establish the interface channel with the bridging device.
In conjunction with the first embodiment of above-mentioned second aspect, in a kind of possible realization, the bridging device further includes
Split module and sending module;
Wherein, the fractionation module is used for:
In the bridging device to before the terminal device transmission data, data to be transmitted is split as N number of number of targets
According to packet, wherein the data to be transmitted is 512*M bytes, and the N and M are positive integer, and the M is greater than or equal to 1, and the N is big
In or be equal to 2, at least one target data packet is less than 512 bytes in N number of target data packet;
The sending module is set for starting to send N number of target data packet to the terminal in SOF in same a frame
It is standby.
In conjunction with above-mentioned second aspect, in the second embodiment of second aspect of the embodiment of the present invention, the terminal device
For IOS system equipments, the module of establishing is specifically used for:
Determine the iTunes protocol versions of the terminal device;
Handshake packet is sent to the terminal device according to the iTunes protocol versions, so that terminal device feedback is rung
Answer message;
When the bridging device receives the response message, sends and determine message to the terminal device to establish
State interface channel.
In conjunction with the second embodiment of second aspect of the embodiment of the present invention, in a kind of possible realization, when the bridge joint
After equipment establishes the interface channel with the terminal device, the bridging device is fixed by window size (Window Size)
For preset value, wherein the preset value is not zero, and the preset value is more than the default window size of the terminal device.
In conjunction with the second embodiment of second aspect of the embodiment of the present invention, in a kind of possible realization, the bridge joint is set
Standby further includes receiving module, and the receiving module is used for:
After the bridging device establishes the interface channel with the terminal device, when the bridging device and the terminal
When interface channel described in equipment utilization carries out data transmission, at least one terminal device feedback is received in a SOF
Confirm character (ACK).
In a kind of possible realization, the bridging device has the function of that low-power consumption, first determining module are also used
In:If first determining module determines that no terminal device is inserted into, the bridging device enters low power consumpting state.
The third aspect of the embodiment of the present invention provides a kind of computer equipment, the computer equipment include memory and
At least one processor, the memory are connected to the processor;The memory is stored with can be by least one place
The computer program performed by device is managed, the computer program is able to carry out when being executed by least one processor as aforementioned
In a first aspect, and the method described in any one of various embodiments of first aspect.
Fourth aspect of the embodiment of the present invention additionally provides a kind of computer program product, and the computer program product is located
When managing device execution, it can realize that execution such as any one of aforementioned first aspect and the various embodiments of first aspect mode institute is real
Existing function.
In view of the foregoing it is apparent that in technical solution provided in an embodiment of the present invention, a kind of channel bridging method is provided
And corresponding bridging device and computer equipment, computer program product.In channel bridging method provided by the invention
In, determine whether interface has terminal device insertion;If bridging device determination has terminal device insertion, bridging device to determine bridge joint
The OS Type of equipment;Bridging device according to the OS Type of terminal device and terminal device establish interface channel with
So that the terminal device is communicated using the interface channel with fittings equipment.It can therefore be seen that relative to existing skill
Art, the rate and stabilization of the data that radio connection is transmitted can be with bandwidth, under the conditions of environmental disturbances etc., using this hair
The channel bridging method that bright bridging device is provided can provide the connection that fittings equipment is directly connected to terminal device and lead to
Road, can connection compatible with various terminal equipment (such as mobile phone) using interface channel fittings equipment.
Description of the drawings
The technical solution provided to facilitate the understanding of the present invention, the also corresponding specification provided for reference of the present invention
Attached drawing, it should be noted that be based on following attached drawings, those skilled in the art can be combined with the description of specification, and to obtain other attached
Figure.
Fig. 1 is a kind of channel bridging method one embodiment flow diagram in the embodiment of the present invention;
Fig. 2 is a kind of another embodiment flow diagram of channel bridging method in the embodiment of the present invention;
Fig. 3 is a kind of bridging device one embodiment structural schematic diagram in the embodiment of the present invention;
Fig. 4 is a kind of another example structure schematic diagram of bridging device in the embodiment of the present invention;
Fig. 5 is a kind of another example structure schematic diagram of bridging device in the embodiment of the present invention;
Fig. 6 is a kind of another example structure schematic diagram of bridging device in the embodiment of the present invention.
Specific implementation mode
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 describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, the every other implementation that those skilled in the art are obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
Term " first " in description and claims of this specification and above-mentioned attached drawing, " second " are for distinguishing class
As object, without being used to describe specific sequence or precedence.It should be appreciated that the data used in this way are in appropriate situation
Under can be interchanged, so that the embodiments described herein can be real with the sequence other than the content for illustrating or describing herein
It applies.In addition, term " comprising " and " having " and their any deformation, it is intended that cover it is non-exclusive include, for example, packet
Contained series of steps or unit process, method, system, product or equipment those of be not necessarily limited to clearly to list step or
Unit, but may include not listing clearly or for the intrinsic other steps of these processes, method, product or equipment or
Unit.
In order to solve the problems, such as that background technology is above-mentioned, the present invention is intended to provide a kind of bridging device, which can be with
It is logical as the bridge between terminal device and fittings equipment, that is, by the connection that bridging device and terminal device are established
Road, fittings equipment can be attached using above-mentioned interface channel with terminal device.Wherein, it is notable that institute of the present invention
The bridging device of offer can be used as independent equipment, can also be used as a module and be integrated on fittings equipment, illustratively, this
As autonomous device, the embodiment of the present invention will carry out the provided bridging device of invention by taking bridging device is independent equipment as an example
Illustrate, does not limit herein specifically.
It should be noted that above-mentioned terminal device includes, but are not limited to the mobile phone using various operating system, puts down
Plate computer (such as iPad), smart machine, aforesaid operations system can refer to android system, IOS systems and other, example
Such as (SuSE) Linux OS, the specific present invention does not limit.It is further to note that refer to can for the fittings equipment in the present invention
Using as the application module or component independently of above-mentioned terminal device, illustratively, by taking mobile phone as an example, above-mentioned fittings equipment can be with
Include, but are not limited to earphone, infrared remote control, digital camera, keyboard, sound equipment, external camera and game console, specifically
It does not also limit herein.In order to make it easy to understand, being next described in detail to the embodiment of the present invention.
First, referring to Fig. 1, Fig. 1 is a kind of channel bridging method one embodiment flow diagram of the embodiment of the present invention,
Including:
101, bridging device determines whether interface has terminal device insertion, if so, thening follow the steps 102.
It should be understood that bridging device in the embodiment of the present invention has and a variety of are adapted to interface type general on the market and are used for
Connect terminal device, such as USB interface, lighting interfaces.In the present invention is implemented, bridging device can be real with embodiment
When determine whether terminal device equipment be inserted into, when having detected terminal device insertion, then follow the steps 102.
102, the bridging device determines the OS Type of the terminal device.
When bridging device determines that interface has terminal device insertion, bridging device determines the operation system of be inserted into terminal device
System type.
It should be understood that nowadays, there is various terminal devices, the operation of each terminal device installed on the market
System differs (such as android, IOS, Linux system), even also, operating system of the same race, the version of operating system
It is different, therefore in the embodiment of the present invention, bridging device need to determine the OS Type of be inserted into terminal device.
103, the bridging device is established with the terminal device according to the OS Type of the terminal device and is connected
Channel.
After bridging device determines the OS Type of terminal device, according to the OS Type of terminal device with
Terminal device establishes interface channel, so that the terminal device is communicated using the interface channel with fittings equipment.
It can therefore be seen that compared with the existing technology, it can be to avoid the number wirelessly under radio connection, being transmitted
According to rate and stabilization can with bandwidth, the influence of the factors such as environmental disturbances, meanwhile, what bridging device using the present invention was provided
Channel bridging method can provide the interface channel that fittings equipment is directly connected to terminal device, be set using interface channel accessory
It is standby compatible with various terminal equipment to connect.
Wherein, different OS Type, the method that bridging device of the present invention establishes interface channel is also different, in order to
It is easy to understand, the embodiment of the present invention is described in detail below.
200, bridging device initializes.
Wherein, in practical applications, bridging device has power up initialization process, is specifically not described in detail herein, generally
Initialization procedure can not specifically be limited at hundreds of milliseconds (such as 500ms).
201, bridging device determines whether interface has terminal device insertion, if so, thening follow the steps 202.
In embodiments of the present invention, the bridging device has the function of low-power consumption, after bridging device initialization, works as bridge joint
Equipment is determined in real time when having terminal device insertion, thens follow the steps 202;If the bridging device determines no terminal device
It is inserted into, then the bridging device enters low power consumpting state.
202, the bridging device determines the OS Type of the terminal device.
In embodiments of the present invention, the bridging device can according to the OS Type of the terminal device with it is described
Terminal device establishes interface channel.
Wherein, when the terminal device is Android system equipment, bridging device is according to described in step 202
The OS Type of terminal device establishes interface channel with the terminal device, includes the following steps:
2021, the bridging device sends the USB comprising AOA configuration-directs to the terminal device and controls packet, so that
The terminal device establishes the interface channel according to the AOA configuration-directs of USB control packets with the bridging device.
Wherein, AOA configuration-directs can make bridging device and terminal in this way for making terminal device carry out AOA patterns
Equipment establishes AOA connection modes.
Wherein, when the terminal device is IOS system equipments, bridging device described in step 202 is set according to the terminal
Standby OS Type establishes interface channel with the terminal device, includes the following steps:
2022, the bridging device determines the iTunes protocol versions of the terminal device.
It should be understood that when terminal device is IOS system equipments, since different IOS system versions are different, iTunes associations
View version would also vary from, and the protocol header for the data packet transmitted in different iTunes protocol versions also can be different, therefore, lead to
This step is crossed, first determines the iTunes protocol versions of terminal device.
2023, the bridging device sends handshake packet according to the iTunes protocol versions to the terminal device, so that
The terminal device feedback response message;
2024, determine whether to receive the response message, if thening follow the steps 2025;
2025, the bridging device, which is sent, determines that message establishes the interface channel to the terminal device.
It should be noted that when not receiving above-mentioned response message in preset duration, bridging device can be sent again
Above-mentioned handshake packet, specific preset duration can be configured according to practical situations, not limited here.Illustratively, in advance
If duration can be 10,20,5ms etc..
That is, bridging device can obtain iTunes protocol versions, TH_SYN is sent according to iTunes protocol versions
Handshake packet gives IOS system equipments, waits for the response of IOS system equipments, if returning to IOS system equipments returns to TH_RST, indicates IOS systems
Equipment of uniting refusal connection;If IOS system equipments return to TH_ACK, bridging device sends TH_ACK and confirms that packet is set to IOS systems
Standby, interface channel is successfully established at this time.
203, bridging device determines whether that fittings equipment is inserted into, if so, thening follow the steps 204.
Bridging device is also provided with other for the interface being connect with fittings equipment, such as audio interface, video interface, USB
Interface etc., does not limit specifically herein, can be configured according to the product form of practical bridging device.In the embodiment of the present invention
In, bridging device can determine whether that fittings equipment is inserted into real time, if thening follow the steps 204.
204, bridging device enumerates fittings equipment.
In embodiments of the present invention, bridging device can enumerate fittings equipment, and in other words, bridging device can detect more
A fittings equipment.In practical applications, terminal device user may have access to all fittings equipments that bridging device is enumerated.
It should be noted that above-mentioned steps 203- steps 204 have no time order and function relationship with abovementioned steps 201-202, have
Body does not limit herein.
205, terminal device is communicated by the interface channel with the fittings equipment.
After bridging device and terminal device establish above-mentioned interface channel, terminal device can by above-mentioned interface channel with
The fittings equipment is communicated.Illustratively, terminal device user can be by showing that screen selection communicates
Fittings equipment communicated;Illustratively, the embodiment of the present invention also provide with the mating application program of bridging device (APP),
The APP is mounted in the terminal device, and terminal device, can be by above-mentioned after establishing above-mentioned interface channel with bridging device
All fittings equipments of bridging device are inserted into APP displayings, and user can select some fittings equipment to lead to by APP at this time
Letter.
It should be noted that in embodiments of the present invention, for the terminal device of different operating system type, the also company of offer
Connect the optimal way in road.
It is described after the bridging device establishes the interface channel with the terminal device for Android system equipment
Method further includes:
In the bridging device to before the terminal device transmission data, the bridging device splits data to be transmitted
For N number of target data packet, wherein the data to be transmitted is 512*M bytes, and the N and M are positive integer, and the M is more than or waits
In 1, the N is greater than or equal to 2, at least one target data packet is less than 512 bytes in N number of target data packet;
The bridging device starts to send N number of target data packet in SOF to the terminal device in same a frame.
Illustratively, if bridging device will send 512Byte data and give android system equipment, bridging device can be with
The form that 512Byte is split as to 511Byte+1Byte is sent, and completes to send in the same SOF, not only not shadow
The transmission data for ringing data, also efficiently reduces the compatibility issue of different android system equipment USB ZLP.
It is illustrative again, give android system equipment as bridging device will send 1024Byte data, bridging device can be with
The form for being split into 512Byte+511Byte+1Byte is sent by 1024Byte, and completes hair in the same SOF
It send, likewise, not influencing the transmission data of data not only in this way, also efficiently reduces different android system equipment USB ZLP
Compatibility issue.
For IOS system equipments, after the bridging device establishes the interface channel with the terminal device, the bridge
It connects equipment and Window Size is fixed as preset value, wherein the preset value is not zero, and the preset value is more than the terminal
The default window size of equipment.
Illustratively, it is assumed that the default window size of terminal device is 258K, general bridging device Windows Size's
Default window size is 128K, and son promotes most 258K and remains unchanged through the embodiment of the present invention, avoids Windows Size
It is 0, occurs stopping equal situation, to improve IOS system equipment data transmission speeds.
For IOS system equipments, after the bridging device establishes the interface channel with the terminal device, the method
Further include:
When the bridging device and the terminal device are carried out data transmission using the interface channel, in a SOF
Interior at least one terminal device of reception feeds back symbol (ACK) of reading really.
It should be understood that since iTunes protocols are based on Transmission Control Protocol, in embodiments of the present invention, root in communication process
Different transmitting and receiving strategies is used according to Window Size, ACK, Sequence Number (serial number).The present invention is implemented can be with
Multiple USB Short Package (being generally less than 512Byte) are received in a SOF.So this method can be received quickly
Multiple continuous ACK packets improve bridging device end data transmission speed.
Illustratively, IOS system equipments in part, which often receive a data packet all, can return a corresponding ACK packet.If bridge
9 data packets can be received by meeting each SOF of equipment, and bridging device often sends 9 data packets, and IOS system equipments will return 9
If ACK packets can harvest 9 ACK packets using the method for the invention in a SOF;If not using implementation of the present invention
Example, then need 9 SOF times, therefore the embodiment of the present invention can save 8 SOF times, be effectively improved message transmission rate.
In conclusion compared with the existing technology, it can be to avoid the data wirelessly under radio connection, being transmitted
Rate and stabilization can with bandwidth, the influence of the factors such as environmental disturbances, meanwhile, the channel that bridging device using the present invention is provided
Bridging method can provide the interface channel that fittings equipment is directly connected to terminal device, can using interface channel fittings equipment
With connection compatible with various terminal equipment.
A kind of channel bridging method of the embodiment of the present invention is described above, the embodiment of the present invention additionally provide with it is upper
The corresponding bridging device of channel bridging method is stated, is described below.
Referring to Fig. 3, Fig. 3 is a kind of bridging device one embodiment structural schematic diagram of the embodiment of the present invention, which sets
It is standby to include:
First determining module 301, for determining whether interface has terminal device insertion;
Second determining module 302, if determining that the bridging device has the terminal to set for first determining module 301
It is standby to be inserted into, it is determined that the OS Type of the terminal device;
Module 303 is established, the operating system class of the terminal device for being determined according to second determining module 302
Type establishes interface channel with the terminal device, so that the terminal device is carried out using the interface channel and fittings equipment
Communication.
It can therefore be seen that the bridging device provided through the embodiment of the present invention, it can be to avoid wirelessly in wireless connection side
Under formula, the rate and stabilization of the data being transmitted can with bandwidth, the influence of the factors such as environmental disturbances, meanwhile, can provide and match
The interface channel that part equipment and terminal device are directly connected to, the interface channel provided using bridging device, fittings equipment can be with
Various terminal equipment compatibility connection.
In some embodiments of the invention, the terminal device is android system equipment, described to establish module 303
It is specifically used for:
To the terminal device send AOA configuration-directs so that the terminal device according to the AOA configuration-directs with
The bridging device establishes the interface channel.
In conjunction with Fig. 3, referring to Fig. 4, in some embodiments of the invention, the bridging device further includes sending module
304 and split module 305,
Wherein, the fractionation module 305 is used for:
In the bridging device to before the terminal device transmission data, data to be transmitted is split as N number of number of targets
According to packet, wherein the data to be transmitted is 512*M bytes, and the N and M are positive integer, and the M is greater than or equal to 1, and the N is big
In or be equal to 2, at least one target data packet is less than 512 bytes in N number of target data packet;
The sending module 304, for starting to send N number of target data packet in SOF to the terminal in same a frame
Equipment.
In some embodiments of the invention, the terminal device is IOS system equipments, described to establish module 303 specifically
For:
Determine the iTunes protocol versions of the terminal device;
Handshake packet is sent to the terminal device according to the iTunes protocol versions, so that terminal device feedback is rung
Answer message;
When the bridging device receives the response message, sends and determine message to the terminal device to establish
State interface channel.
In some embodiments of the invention, when the bridging device and the terminal device establish the interface channel
Afterwards, window size (Window Size) is fixed as preset value by the bridging device, wherein the preset value is not zero, described
Preset value is more than the default window size of the terminal device.
In conjunction with Fig. 4, referring to Fig. 5, in some embodiments of the invention, the bridging device further includes receiving module
306, the receiving module 306 is used for:
After the bridging device establishes the interface channel with the terminal device, when the bridging device and the terminal
When interface channel described in equipment utilization carries out data transmission, at least one terminal device feedback is received in a SOF
Confirm character (ACK).
In a kind of possible realization, the bridging device has the function of that low-power consumption, first determining module 301 are also used
In:If first determining module 301 determines that no terminal device is inserted into, the bridging device enters low-power consumption shape
State.
It should be noted that the bridging device and above-mentioned channel bridging method that are provided in above-described embodiment are based on identical
Inventive concept.Therefore, in the bridging method of channel the step of each specific embodiment can performed by corresponding bridging device,
Specific function can also have corresponding method and step in above-mentioned channel bridging method, and details are not described herein.
Fig. 6 is the hardware architecture diagram of computer equipment provided by the embodiments of the present application, which can be used for
Realize the function of above-mentioned bridging device, which includes:One or more processors 601 and memory 602.Fig. 6
In for one.Wherein, processor 601 and memory 602 can be connected by bus or other modes, in Fig. 6 with
For being connected by bus.
Memory 602 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey
Sequence, non-volatile computer executable program and module, such as the corresponding program instruction/mould of bridging device in the embodiment of the present invention
Block.Processor 601 is by running non-volatile software program, instruction and the module of storage in the memory 602, to execute
The function of bridging device in above method embodiment is realized in the various function application of bridging device and data processing.
Memory 602 may include storing program area and storage data field, wherein storing program area can store operation system
System, the required application program of at least one function;Storage data field can store bridging device and use received and dispatched data etc..This
Outside, memory 602 may include high-speed random access memory, can also include nonvolatile memory, for example, at least one
Disk memory, flush memory device or other non-volatile solid state memory parts.In some embodiments, memory 602 is optional
Include the memory remotely located relative to processor 601.The example of above-mentioned network includes but not limited to internet, enterprises
Net, LAN, mobile radio communication and combinations thereof.
Above computer equipment can perform the system or method that the embodiment of the present application is provided, and has and executes the system or side
The corresponding function module of method and advantageous effect.The not technical detail of detailed description in the present embodiment, reference can be made to the application is implemented
The bridging device or channel bridging method that example is provided.
Also, system embodiment described above is only schematical, illustrates as separating component wherein described
Unit may or may not be physically separated, and the component shown as unit may or may not be object
Manage unit, you can be located at a place, or may be distributed over multiple network units.It can select according to the actual needs
Some or all of module therein is selected to achieve the purpose of the solution of this embodiment.
Through the above description of the embodiments, those of ordinary skill in the art can be understood that each embodiment
The mode of general hardware platform can be added to realize by software, naturally it is also possible to pass through hardware.Based on this understanding, of the invention
Technical solution substantially all or part of the part that contributes to existing technology or the technical solution can be in other words
It is expressed in the form of software products, which is stored in a storage medium, including some instructions are used
So that a computer equipment (can be personal computer, server or the network equipment etc.) executes each reality of the present invention
Apply all or part of step of the method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory
(read-only memory, ROM), random access memory (random access memory, rAM), magnetic disc or CD
Etc. the various media that can store program code.
The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to the foregoing embodiments
Invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each implementation
Technical solution recorded in example is modified or equivalent replacement of some of the technical features;And these modification or
It replaces, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of channel bridging method, which is characterized in that including:
Bridging device determines whether interface has terminal device insertion;
If the bridging device determination has the terminal device to be inserted into, the bridging device determines the operation of the terminal device
System type;
The bridging device establishes interface channel according to the OS Type of the terminal device with the terminal device, so that
The terminal device is obtained to be communicated with fittings equipment using the interface channel.
2. channel bridging method according to claim 1, which is characterized in that the terminal device is Android android systems
System equipment, the bridging device establish interface channel according to the OS Type of the terminal device with the terminal device,
Including:
The bridging device sends the USB control packets that accessory agreement AOA configuration-directs are opened comprising Android to the terminal device,
Lead to so that the terminal device establishes the connection according to the AOA configuration-directs of USB control packets with the bridging device
Road.
3. channel bridging method according to claim 2, which is characterized in that the bridging device is built with the terminal device
After founding the interface channel, the method further includes:
In the bridging device to before the terminal device transmission data, data to be transmitted is split as N by the bridging device
A target data packet, wherein the data to be transmitted is 512*M bytes, and the N and M are positive integer, and the M is greater than or equal to
1, the N are greater than or equal to 2, at least one target data packet is less than 512 bytes in N number of target data packet;
The bridging device starts to send N number of target data packet in SOF to the terminal device in same a frame.
4. channel bridging method according to claim 1, which is characterized in that the terminal device is IOS system equipments, institute
It states bridging device and interface channel is established with the terminal device according to the OS Type of the terminal device, including:
The bridging device determines the iTunes protocol versions of the terminal device;
The bridging device sends handshake packet according to the iTunes protocol versions to the terminal device, so that the terminal is set
Standby feedback response message;
When the bridging device receives the response message, the bridging device, which is sent, determines message to the terminal device
To establish the interface channel.
5. channel bridging method according to claim 4, which is characterized in that when the bridging device and the terminal device
After establishing the interface channel, window size Window Size are fixed as preset value by the bridging device, wherein described pre-
If value is not zero, the preset value is more than the default window size of the terminal device.
6. channel bridging method according to claim 4, which is characterized in that the bridging device is built with the terminal device
After founding the interface channel, the method further includes:
When the bridging device and the terminal device are carried out data transmission using the interface channel, the bridging device exists
At least one terminal device is received in one SOF feeds back the symbol ACK that reads really.
7. the channel bridging method according to any one of claim 1-6, which is characterized in that the bridging device has low
Power consumption function, if the bridging device determines that no terminal device is inserted into, the bridging device enters low power consumpting state.
8. a kind of bridging device, which is characterized in that including:
First determining module, for determining whether interface has terminal device insertion;
Second determining module, if determining that the bridging device has the terminal device to be inserted into for first determining module,
Determine the OS Type of the terminal device;
Module is established, OS Type and the end of the terminal device for being determined according to second determining module
End equipment establishes interface channel, so that the terminal device is communicated using the interface channel with fittings equipment.
9. a kind of computer equipment, which is characterized in that the computer equipment includes memory and at least one processor, institute
Memory is stated to be connected to the processor;The memory is stored with can be by the computer performed by least one processor
Program, the computer program are able to carry out when being executed by least one processor as described in claim any one of 1-7
Method.
10. a kind of computer program product, which is characterized in that the computer program product can realize that perform claim requires 1-7
The function that any one method is realized.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810263461.6A CN108536626A (en) | 2018-03-28 | 2018-03-28 | Channel bridging method, bridging device, computer equipment and computer program product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810263461.6A CN108536626A (en) | 2018-03-28 | 2018-03-28 | Channel bridging method, bridging device, computer equipment and computer program product |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108536626A true CN108536626A (en) | 2018-09-14 |
Family
ID=63483776
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810263461.6A Pending CN108536626A (en) | 2018-03-28 | 2018-03-28 | Channel bridging method, bridging device, computer equipment and computer program product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108536626A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109298956A (en) * | 2018-10-09 | 2019-02-01 | Oppo广东移动通信有限公司 | Document transmission method, device and terminal device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070073893A1 (en) * | 2005-05-27 | 2007-03-29 | Flavio Gajo | Embedded protocol selection technique, related interface and computer program product |
CN101690125A (en) * | 2007-06-22 | 2010-03-31 | 苹果公司 | Via intermediate equipment transmission information between main process equipment and annex |
CN101916238A (en) * | 2010-08-26 | 2010-12-15 | 华为终端有限公司 | Method and device for data card to identify operating system and communication system |
CN102375784A (en) * | 2010-08-24 | 2012-03-14 | 巴比禄股份有限公司 | Connection apparatus, and method used in connection apparatus |
CN103092799A (en) * | 2012-12-28 | 2013-05-08 | 飞天诚信科技股份有限公司 | Universal serial bus (USB) device and method for recognition of host operating system |
CN103812746A (en) * | 2012-11-14 | 2014-05-21 | 深圳市共进电子股份有限公司 | Bridging device based on linux operation system and communication method thereof |
JP2016513326A (en) * | 2013-02-28 | 2016-05-12 | インテル・コーポレーション | Utilize one interconnect protocol enumeration and / or configuration mechanism for different interconnect protocols |
CN106796642A (en) * | 2016-12-22 | 2017-05-31 | 深圳前海达闼云端智能科技有限公司 | Device detection method and system, electronic device, cloud robot system and computer program product |
CN106844275A (en) * | 2016-12-30 | 2017-06-13 | 百度在线网络技术(北京)有限公司 | Data transmission method and device |
-
2018
- 2018-03-28 CN CN201810263461.6A patent/CN108536626A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070073893A1 (en) * | 2005-05-27 | 2007-03-29 | Flavio Gajo | Embedded protocol selection technique, related interface and computer program product |
CN101690125A (en) * | 2007-06-22 | 2010-03-31 | 苹果公司 | Via intermediate equipment transmission information between main process equipment and annex |
CN102375784A (en) * | 2010-08-24 | 2012-03-14 | 巴比禄股份有限公司 | Connection apparatus, and method used in connection apparatus |
CN101916238A (en) * | 2010-08-26 | 2010-12-15 | 华为终端有限公司 | Method and device for data card to identify operating system and communication system |
CN103812746A (en) * | 2012-11-14 | 2014-05-21 | 深圳市共进电子股份有限公司 | Bridging device based on linux operation system and communication method thereof |
CN103092799A (en) * | 2012-12-28 | 2013-05-08 | 飞天诚信科技股份有限公司 | Universal serial bus (USB) device and method for recognition of host operating system |
JP2016513326A (en) * | 2013-02-28 | 2016-05-12 | インテル・コーポレーション | Utilize one interconnect protocol enumeration and / or configuration mechanism for different interconnect protocols |
CN106796642A (en) * | 2016-12-22 | 2017-05-31 | 深圳前海达闼云端智能科技有限公司 | Device detection method and system, electronic device, cloud robot system and computer program product |
CN106844275A (en) * | 2016-12-30 | 2017-06-13 | 百度在线网络技术(北京)有限公司 | Data transmission method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109298956A (en) * | 2018-10-09 | 2019-02-01 | Oppo广东移动通信有限公司 | Document transmission method, device and terminal device |
CN109298956B (en) * | 2018-10-09 | 2020-07-28 | Oppo广东移动通信有限公司 | File transmission method and device and terminal equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8019867B1 (en) | System and method for two way communication and controlling a remote apparatus | |
US7213044B2 (en) | Point-to-point data communication implemented with multipoint network data communication components | |
CN103517110B (en) | A kind of multi-screen interaction communication system and method | |
CN103597805B (en) | For promoting the technology of the interactive operation between annex and multiple equipment | |
US10417061B2 (en) | Operating method of routing device, routing device, and terminal device | |
US8966138B2 (en) | Communication between a host device and an accessory using multiple-endpoint identification | |
CN109005532A (en) | A kind of Bluetooth connecting method, bluetooth master and Bluetooth slave devices | |
CN103957214A (en) | Computer network data package grabbing method for teaching | |
CN111315038B (en) | Data transmission method and device, electronic equipment and storage medium | |
CN105978606B (en) | Bluetooth equipment remote communication method, bluetooth equipment and client | |
CN109445806B (en) | Ble-based multi-device upgrading method, device, system and terminal | |
CN107465724B (en) | Method for downloading application program, user equipment and application server | |
CN108536626A (en) | Channel bridging method, bridging device, computer equipment and computer program product | |
US20150365279A1 (en) | Method for enabling point-to-point transmission and network connecting device | |
CN112787828A (en) | Application flow statistical method and device and mobile electronic device | |
CN104333872A (en) | Method and system for establishing session based on bidirectional forwarding detection technology | |
CN113825123A (en) | Communication method, communication device, electronic equipment and computer storage medium | |
CN109413626B (en) | Automatic back-connection compatible method for white list and non-white list of remote Bluetooth equipment | |
JP2009182458A (en) | Communication apparatus, communication system, communication method, and program | |
CN111475189A (en) | Upgrading method, head-mounted equipment, storage medium and electronic device | |
CN107257586B (en) | Mobile network connection method and system when intelligent terminal is connected with WiFi | |
CN102984811A (en) | Drive-free network processing method and drive-free network processing device | |
CN106331051A (en) | File transmission method and system, file receiving device and file transmission device | |
CN104065726A (en) | Client data updating method and system thereof | |
CN110096298B (en) | Device collaborative upgrading method and device for video conference system |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180914 |