Summary of the invention
The method that the object of the present invention is to provide a kind of data communication between fixed network terminals to connect, with in the technical solution because asynchronous system transmission data, the technological deficiency that audio frequency and video are smooth inadequately.
For addressing the above problem, the invention discloses the method that a kind of data communication between fixed network terminals connects, be used to have the fixed network terminal of multimedia function, carry out data communication so that send fixed network terminal and receive between the fixed network terminal, may further comprise the steps:
(1) after setting up the simulation talking state between two fixed network terminals, each fixed network terminal carries out the data communication setting to the modulator-demodulator of local terminal separately: the modulator-demodulator with local terminal enters figure pattern earlier, then V.80 modulator-demodulator is provided with, so that both sides can obtain bandwidth information after consulting to finish, be arranged so that by agreement V.8bis the modulator-demodulator of local terminal can receive the CI sign indicating number subsequently; At last modulator-demodulator being carried out off-hook handles;
(2) modulator-demodulator that sends fixed network terminal is initiated digital connection request by the CI sign indicating number;
(3) modulator-demodulator that receives fixed network terminal is discerned the CI sign indicating number, carries out the data connection request and replys;
(4) after transmission fixed network terminal and reception fixed network terminal have been consulted, enter the frame subpattern, to carry out the data communication of two terminals.
Step comprises in (2): when wherein a fixed network terminal receives the visual request of Client-initiated, the CI sign indicating number that just sends the digital connection request of expression is to another fixed network terminal, and the fixed network terminal of initiating request is for sending fixed network terminal, and the other end is for receiving fixed network terminal.
Step (2) also comprises: before sending the CI sign indicating number, detect whether receive the CI sign indicating number earlier, if then this fixed network terminal is the reception fixed network terminal, and the other end is for sending fixed network terminal.
Send fixed network terminal in the step (4) and receive fixed network terminal and consult to be specially: send fixed network terminal and receive fixed network terminal and consult the employed reception bandwidth in two ends and send bandwidth, conform to bandwidth so that can control the data traffic that sends with receiving.
Compared with prior art, the present invention has the following advantages: the present invention is in order to solve the contradiction between the synchrodata and asynchronous interface in the prior art, introduce the V.80 agreement of announcing in March, 1996, so that set up method of synchronization transmission data between two fixed network terminals, reach the more stable more reliable effect of transmission with this.
Embodiment
Below in conjunction with accompanying drawing, specify the present invention.
See also Fig. 2, it is the system principle structural representation that two terminals communicate.Support the fixed network terminal of multimedia function to establish a communications link for two, to carry out data communication by the PSTN network.Fixed network terminal can be picture-phone or the video telephone that adopts Fig. 1 structure or similar this structure.
Basic principle in images on the PSTN is as follows: each self-contained modulator-demodulator of agreement V.34 between two fixed network terminals, modulator-demodulator enters the digital operation mode through ovennodulation, then just can be between common telephone wire transmission of digital signals.Two fixed network terminals are held consultation according to the H.324 agreement of ITU-T, if audio frequency is consistent with the image coding and decoding mode, just can solve audio frequency, image and other data that the other side is transmitted mutually, thereby make both sides can hear its sound, can see its people again, greatly expand the function of present analog telephone, also made full use of existing telephone wire resource.
See also Fig. 3, the schematic flow sheet of the method that it connects for a kind of data communication between fixed network terminals of the present invention.It may further comprise the steps:
At first carry out step S110: after setting up the simulation talking state between two fixed network terminals, each fixed network terminal carries out the data communication setting to the modulator-demodulator of local terminal separately: the modulator-demodulator with local terminal enters figure pattern earlier, then V.80 modulator-demodulator is provided with, so that both sides can obtain bandwidth information after consulting to finish, be arranged so that by agreement V.8bis the modulator-demodulator of local terminal can receive the CI sign indicating number subsequently; At last modulator-demodulator being carried out off-hook handles;
Carry out step S120 then: the modulator-demodulator that sends fixed network terminal is initiated digital connection request by the CI sign indicating number;
Carry out step S130 subsequently: receive the modulator-demodulator identification CI sign indicating number of fixed network terminal, carry out the data connection request and reply;
Carry out step S140 at last: after transmission fixed network terminal and reception fixed network terminal have been consulted, enter the frame subpattern, to carry out the data communication of two terminals.
The present invention introduces the V.80 agreement of announcing in March, 1996 in order to solve the contradiction between the synchrodata and asynchronous interface in the prior art, so that set up method of synchronization transmission data between two fixed network terminals, reaches the more stable more reliable effect of transmission with this.
In the method that data communication between fixed network terminals connects, at first set up simulation conversation connection between two fixed network terminals.Can be that the fixed network terminal that sends view data is dialed the fixed network terminal that receives view data, also can be that the fixed network terminal that receives view data is dialed the fixed network terminal that sends view data.
When two fixed network terminals are set up the conversation connection, the calling both sides fixed network terminal when calling out and replying as can be known both sides whether be that video telephone or picture-phone are if will change the Image Communication mode over to, then need side's fixed network terminal to initiate digital connection request, another fixed network network termination responds after the request of receiving.This process also is that two modulator-demodulators are held consultation, and sets up the process of digital channel.In picture-phone/video telephone, when how to guarantee that a side initiates digital connection request, another can be accurately, detect timely, thereby make corresponding behave, is a very the key link for setting up digital channel.In the patent of Siemens, the control method after the digital communication is finished and entered to the modem negotiation of describing two fixed network terminals in detail, makes it to receive CI sign indicating number and unexposed but how two terminals be provided with MODEM.The applicant discloses following (Fig. 4) in detail.
At first: each fixed network terminal carries out the data communication setting to the modulator-demodulator of local terminal separately:
A: the modulator-demodulator of local terminal is entered figure pattern.After modulator-demodulator carried out initialization, modulator-demodulator entered figure pattern.The present invention adopts and supports the V.34 modulator-demodulator of standard, and this modulator-demodulator is operated in the acquiescence mode of operation that data mode (figure pattern) is it.The initialization of the modulator-demodulator of saying here refers to by sending AT instruction " ATZ " and makes modem self carry out software initialization.Because the step of this software initialization is a prescribed by standard V.34, is not therefore just giving unnecessary details at this.
B: carry out the V.80 setting of agreement, so that follow-up both sides can obtain bandwidth information when consulting.For the modulator-demodulator that adopts above-mentioned agreement, the master control chip only needs to send the AT instruction to it
“AT+ES=6,,8;AT+ESA=0,0,0,,0,0,255”
Be provided with V.80.V.80 agreement provides H.324 standard interface between the application program and modulator-demodulator.So that the control chip of this terminal can very clearly be known the bandwidth under the different line conditions, thereby the raising system is to the adaptive capacity of line conditions.Bandwidth comprises maximum transmission bandwidth and the maximum bandwidth that receives that this terminal is supported, so that the data of transmitting when data communication are consistent with bandwidth;
C: carry out the V.8bis setting of agreement, so that the modulator-demodulator of local terminal can receive the CI sign indicating number during follow-up consult.V.8bis the master control chip is provided with by instruction " AT+A8E=6,5,21 ".By above-mentioned flow process as can be known, phone is intended in always first molding during use, and then forwards digital communication to.V.8bis, a kind of mode of analog-to-digital is provided, after the setting V.8bis, when a side initiates digital connection request, can have sent the CI sign indicating number to the other side; And after V.8bis the other side also only be provided with, just can receive the CI sign indicating number, and then start digital negotiation;
D: modulator-demodulator carries out off-hook and handles (ATH1).In this scheme, if modulator-demodulator off-hook not, when sending digital request, the other side can not receive the CI sign indicating number, and in addition, off-hook sends AT instruction " ATH1 " modem to modem will off-hook.If modem is interpreted as and an analog telephone and another phone of connecing, then the modem off-hook just is equivalent to also off-hook of extension set.
After carrying out above-mentioned four preparations, set up the modulator-demodulator of two terminals of simulation conversation and just can receive that the other side sends the CI sign indicating number.
Then, the modulator-demodulator that sends fixed network terminal is initiated digital connection request by the CI sign indicating number, and the modulator-demodulator that receives fixed network terminal carries out request-reply;
When wherein a fixed network terminal received the visual request of Client-initiated, the CI sign indicating number that just sends the digital connection request of expression was to another fixed network terminal, and the fixed network terminal of initiating request is for sending fixed network terminal, and the other end is for receiving fixed network terminal.That is, either party of two fixed network terminals can initiate the CI sign indicating number of expression data connection request to another fixed network terminal after receiving the visual request instruction that the user sends.
The user presses " visual " key and is the instruction of transmission data connection request in the present embodiment.Control chip detects the user when pressing " visual " key, send an AT instruction " ATD " to modem at once, modem just can send request to the other side, after the other side modem is provided with correctly according to above-mentioned steps, just the CI sign indicating number can will be received, thereby learn the connection request that the other side sends, so that reply.
Subsequently, two processes that modem just begins to consult.Before the negotiation, the initiator sends the CI sign indicating number and initiates request, and answer party sends the ATA repeat-back after receiving the CI sign indicating number.Pass through the time about about 20s then, consult to finish.Briefly, the negotiation between the modem is exactly that two modem carry out a series of shaking hands, and sees that whether can set up numeral connects, the transmitting-receiving bandwidth be what etc.After negotiation was finished, modem can return information such as " OK " or " busy ", " no dialtone ", consults successfully if " OK " just shows.
When digital communication had just been set up, both sides' fixed network terminal can obtain bandwidth information " 19 BE 2D 2D ", and wherein, " 19 BE " expression is ensuing to be bandwidth information, and previous " 2D " expression sends bandwidth, and back one " 2D " expression receives bandwidth.Bandwidth can be different under the different line conditions, and that consult out such as some circuit is " 2A 2B " etc.The corresponding relation of these bandwidth symbols and actual bandwidth is as shown in table 1.
Table 1
The Modem negotiation result | Corresponding bandwidth value (bps) |
2E | 33600 |
2D | 31200 |
2C | 28800 |
2B | 26400 |
2A | 24000 |
29 (guaranteeing the minimum bandwidth of video call) | 21600 |
24 (guaranteeing the minimum bandwidth of voice data) | 2400 |
Since can access bandwidth information, just can control the data transfer throughput on the PSTN, make it to conform to, in order to avoid waste bandwidth or the excessive defectives such as data transmission fault that cause of flow occur with bandwidth.
At last, after consulting successfully, ensuing work makes modulator-demodulator enter frame subpattern (send 16 " 19 B1 " modem continuously for modem and promptly enter this mode of operation) after successful connection by agreement V.80 exactly, is H.324 to consult then, and the process of setting up of digital communication has just been finished.(modem follows V.80 a kind of mode of operation of agreement, and V.80 agreement has a detailed description in the frame subpattern.Send 16 " 19 B1 " modem continuously after successful connection, in the software modem and promptly enter this mode of operation.
In said method, just need the modulator-demodulator off-hook during simulation conversation, can divide one part of current owing to modulator-demodulator behind the off-hook, thereby the unexpected step-down of volume that makes the simulation conversation may not feel well the user.For addressing this problem, modulator-demodulator is used another set-up mode, need not off-hook and just can make answer party receive the CI sign indicating number.See also Fig. 4, it is the method that the another kind of data communication between fixed network terminals of the present invention connects, and it may further comprise the steps:
Step S210: after setting up the simulation talking state between two fixed network terminals, each fixed network terminal carries out the data communication setting to the modulator-demodulator of local terminal separately: the modulator-demodulator with local terminal enters speech pattern earlier, then V.80 modulator-demodulator is provided with, so that both sides can obtain bandwidth information after consulting to finish, subsequently modulator-demodulator is carried out V.8bis agreement, the phone expanded function is set at last, voice enabled line sniffing pattern;
Step S220: the modulator-demodulator that sends fixed network terminal carries out the data communication setting again: the modulator-demodulator with local terminal enters figure pattern earlier, then V.80 modulator-demodulator is provided with, so that both sides can obtain bandwidth information after consulting to finish, be arranged so that by agreement V.8bis the modulator-demodulator of local terminal can receive the CI sign indicating number subsequently; At last modulator-demodulator being carried out off-hook handles;
Step S230: the modulator-demodulator that sends fixed network terminal is initiated digital connection request by the CI sign indicating number;
Step S240: receive the modulator-demodulator identification CI sign indicating number of fixed network terminal, forbid the phone expanded function, the line data connection request of going forward side by side is replied;
Step S250: after transmission fixed network terminal and reception fixed network terminal have been consulted, enter the frame subpattern, to carry out the data communication of two terminals.
In the above-mentioned flow process with the disclosed flow process of Fig. 3 in identical step do not repeat them here.Maximum difference be fixed network terminal to the modulator-demodulator of local terminal carry out data communication be provided with in modulator-demodulator enter speech pattern, control chip sends AT+FLASS=8 to modulator-demodulator, so that modulator-demodulator enters speech pattern.And after carrying out V.80, V.8bis being provided with, the phone expanded function is set, the setting of voice enabled line sniffing pattern (send AT-STE=7 ,+VLS=20 instructs to modem).
After doing the work of above-mentioned steps S210 and S220, the CI sign indicating number just can be received by the fixed terminal side of communicating pair.Send corresponding C I sign indicating number to receiving fixed network terminal when sending fixed network terminal.After the reception fixed network terminal is received CI, forbid phone expanded function (AT-STE=0) earlier, send ATA again and reply.
If two parties is all pressed " visual ", both sides modem does not reply as the calling party, will cause and consult failure.For solving this contradiction, sending instruction " ATD " before, detect CI again twice, if detect, the other side is described as the calling party, so local terminal changes transmission " ATA " into, promptly reply as answer party.So just, solve the user and pressed the conflict of " visual " simultaneously.
With above-mentioned two kinds of schemes, all can successfully realize the negotiation of two terminal modems, thereby open up road for the transmission of digital signal.More than disclosed only be several specific embodiment of the present invention, but those skilled in the art can think variation all should drop in protection scope of the present invention.Protection scope of the present invention should be as the criterion with claim.