Background technology
Facsimile is a kind of means of communication of transmitting text information; It is through the wired or wireless communication circuit; Being transferred to another place from a place such as static informations such as literal, figure, photo, original handwritings; And can record on the facsimile machine of receiving terminal, thereby obtain the duplicate the same with original copy, have that the information transmitted kind is many, information transfer rate is fast, simple operation and other advantages.
Traditional facsimile machine sends through traditional PSTN (Public Switched Telephone Network, Public Switched Telephony Network) and receives faxes.In facsimile, using more facsimile terminal at present is that Group 3 Facsimile Equipment is the G3 analog facsimile; The G3 analog facsimile is a kind of communication equipment that adopts Digital Signal Processing; Picture signal is after inside is through the digitized processing compression; Become analog signal through modulator-demodulator, be input in the PSTN switch through ordinary telephone line then.
The process of a real-time fax can be divided into following 5 stages:
1) facsimile call establishment stage.The similar process that this stage and call are set up, difference are to send and comprise the fax single-tone that identifies transmission/receiving terminal;
2) process stage before the message transmissions.The negotiation of the ability of mainly faxing and training;
3) the message transmissions stage.According to rules transmitting facsimile message T.4, and carry out message transmissions control (message synchronously, Error detection and error correction, path monitoring);
4) process stage after the message transmissions.The control operation such as confirmation, ENMES, multipage supervention of message mainly is provided;
5) facsimile call dispose procedure.Finish facsimile call.
In today of mobile communication high development, the voice on the wireless terminal, short message service be comparative maturity.The G3 analog facsimile service is as the important means of transmitting paper information; Be of wide application, at some large area regions remote or that have strategically located and difficult of access landform, because the circuit of traditional public switched telephone network is laid in inconvenience; If can carry out the reception and the transmission of data through the transmission means of wireless network by wireless terminal; To bring great convenience to the application of these regional G3 facsimile services, but because G3 analog facsimile service itself is realized more complicated, design, debugging difficulty is very big; If this business function is integrated on the wireless terminal product, on technology realizes, be a bottleneck.For example, in the CDMA of Qualcomm (QUALCOMM) (Code-Division Multiple Access, code division multiple access) serial nest plate and the software kit, functions such as voice, note, data are provided basically all, G3 analog facsimile service function only all is not provided.This just makes many wireless terminals manufacturer has on wireless terminal, abandon the realization of G3 analog facsimile service.Therefore, now problem demanding prompt solution is how not rely on CDMA series nest plate and software kit, for wireless terminal manufacturer and user provide a kind of technical threshold the lower solution of realization G3 analog facsimile service in wireless network.
Summary of the invention
The technical problem that the present invention will solve is, a kind of method of sending and receiving and device of realizing the wireless G 3 analog facsimile service is provided, and overcomes the defective that can not on wireless terminal, realize the wireless G 3 analog facsimile service in the prior art.
The technical scheme that the present invention adopts is that the device of said realization wireless G 3 analog facsimile service comprises: common interface module, main processing block, fax MODEM module, user interface circuit module and memory module,
Main processing block; Be used for fax MODEM module, user interface circuit module and memory module are carried out control and management; And carry out data interaction through common interface module and wireless terminal, through wireless terminal set up and far-end recipient or transmit leg between the facsimile data passage;
Fax MODEM module is used for confidential reception of local G3 analogue simulation and the facsimile data that sends are resolved and data transaction, obtains current FAX mode through the keyword that parses;
The user interface circuit module is used for the transmitting facsimile call signal, and between fax MODEM module and local G3 analog facsimile, sets up the facsimile data passage;
Memory module is used to the facsimile data of storing the confidential reception of local G3 analogue simulation and sending.
The device of said realization wireless G 3 analog facsimile service further comprises the telephony interface module, is used to fax MODEM module and with the user interface circuit module interface that is connected with local G3 analog facsimile is provided.
Consider from software function, said main processing block comprise again the master control submodule, with the mutual submodule of fax MODEM, with the mutual submodule of wireless terminal, facsimile data analyzing sub-module and facsimile data management submodule,
The master control submodule, be used for to fax MODEM mutual submodule, carry out integral body with the mutual submodule of wireless terminal, facsimile data analyzing sub-module and facsimile data management submodule and dispatch;
With the mutual submodule of wireless terminal, be used for through the facsimile data passage between wireless terminal foundation and far-end recipient or the transmit leg;
With the mutual submodule of fax MODEM, be used for module initialization to fax MODEM, and the facsimile data of controlling the local confidential reception of G3 analogue simulation of fax MODEM resume module and sending;
The facsimile data analyzing sub-module is used to control fax MODEM module confidential reception of local G3 analogue simulation and the facsimile data that sends is resolved, and obtains current FAX mode through the keyword that parses;
The facsimile data management submodule is used in memory module access being carried out in confidential reception of local G3 analogue simulation and the facsimile data that sends.
Said fax MODEM module is carried out data transaction to the confidential reception of local G3 analogue simulation and the facsimile data that sends and comprised: the facsimile data to the confidential reception of local G3 analogue simulation carries out digital-to-analogue conversion, and the confidential facsimile data that sends of local G3 analogue simulation is carried out analog-to-digital conversion.
Said user interface circuit module transmitting facsimile call signal comprises transmitting facsimile incoming information, fax dialing information and fax tone signal.
The facsimile data that said memory module is further used for the confidential reception of buffer memory G3 analogue simulation and sends.
The device of said realization wireless G 3 analog facsimile service further comprises power management module, is used for obtaining stable power through common interface module from wireless terminal and offers main processing block, fax MODEM module, user interface circuit module and memory module power supply.
The present invention also provides a kind of sending method that realizes the wireless G 3 analog facsimile service, comprising:
Local G3 analog facsimile is to the far-end recipient dialing of faxing, and sends to main processing block through the user interface circuit module dialing information of will faxing;
Main processing block is set up the facsimile data passage between local G3 analog facsimile and the fax MODEM module to fax MODEM module initialization, sets up the facsimile data passage between main processing block and the far-end recipient then;
Fax MODEM module receives the facsimile data from local G3 analog facsimile, and through being stored in memory module after analog-to-digital conversion and the dissection process, main processing block sends to the far-end recipient with the facsimile data in the memory module through wireless terminal simultaneously.
The sending method of said realization wireless G 3 analog facsimile service further comprises:
When fax MODEM module finishes to the facsimile data reception from local G3 analog facsimile; Break off the facsimile data passage between local G3 analog facsimile and the fax MODEM module; When main processing block sends the facsimile data in the memory module when finishing to the far-end recipient; Break off the facsimile data passage between main processing block and the far-end recipient, the facsimile data transmission flow finishes.
The present invention also provides a kind of method of reseptance of realizing the wireless G 3 analog facsimile service, comprising:
Main processing block is received the fax incoming information that the far-end transmit leg is sent through wireless terminal, sends to local G3 analog facsimile through the user interface circuit module incoming information of will faxing;
Main processing block is set up the facsimile data passage between main processing block and the far-end transmit leg to fax MODEM module initialization, sets up the facsimile data passage between local G3 analog facsimile and the fax MODEM module then;
Main processing block receives the facsimile data from the far-end transmit leg through wireless terminal; Be stored in the memory module through after the dissection process, simultaneously the facsimile data in the memory module carried out sending to local G3 analog facsimile after the digital-to-analogue conversion through fax MODEM module.
The method of reseptance of said realization wireless G 3 analog facsimile service further comprises:
When main processing block finishes to the facsimile data reception from the far-end transmit leg; Break off the facsimile data passage between main processing block and the far-end transmit leg; When fax MODEM module is sent the facsimile data in the memory module when finishing to local G3 analog facsimile; Break off the facsimile data passage between local G3 analog facsimile and the fax MODEM module, facsimile data is sent out and is received the flow process end.
Adopt technique scheme, the present invention has advantage at least:
The method of sending and receiving and the device of realization wireless G 3 analog facsimile service according to the invention; The loaded down with trivial details concrete realization details owing to mask G3 analog facsimile service complicacy; Separate the platform specific of G3 analog facsimile service and wireless terminal; And this device externally provides common interface module, makes only to support PC (Personal Computer, PC) digital fax and do not support the wireless terminal of G3 analogue simulation; As long as be connected with this device through common interface module, also can realize the G3 analog facsimile service.Adopt technical scheme of the present invention; With the accessory of this device as common wireless fixed terminal; This all can bring very big facility to manufacturer terminal and end user: on the one hand; Platform to wireless terminal itself does not have special demands, can shorten the construction cycle of wireless terminal manufacturer to wireless product G3 facsimile function greatly; On the other hand, concerning the user, the selection of hommization more is provided; When the user buys the terminal, like needs G3 facsimile function, as long as select this accessory; That's all, thereby can be user flexibility and customize out wireless terminal, and it is lower to implement technical threshold with G3 analogue simulation function.
In addition, common interface module is on the one hand as data exchange interface, between this device and the wireless terminal data channel being provided; On the other hand, directly obtain power supply from wireless terminal, saved external power supply through common interface module; This had both reduced cost, was user-friendly to again.
Embodiment
Reach technological means and the effect that predetermined purpose is taked for further setting forth the present invention, below in conjunction with accompanying drawing and preferred embodiment, the method for sending and receiving and the device of the said realization wireless G 3 analog facsimile service that the present invention is proposed, specify as after.
First embodiment of the invention; As shown in Figure 1; Under wireless network environments such as CDMA; The device of realizing the wireless G 3 analog facsimile service connects wireless terminal and local G3 analog facsimile, and the cdma wireless network at wireless terminal place can be realized communicating by letter with the PSTN network, and the G3 analog facsimile of far-end is connected in the PSTN network through the RJ11 interface through telephone wire.
As shown in Figure 2, the device of said realization wireless G 3 analog facsimile service comprises main processing block, fax MODEM module, common interface module, telephony interface module, user interface circuit module, power management module and memory module.
Fax MODEM module; Through URAT (Universal Asynchronous Receiver/Transmitter; Universal asynchronous reception/dispensing device) links to each other with main processing block; UART is the chip that a parallel input becomes serial output, is integrated in usually on the main process chip at main processing block place, and most URAT adopt the 16550AFN chip.Because the inner parallel data that adopts of main processing block; Can not directly be dealt into fax MODEM module to data; Must just can carry out asynchronous transmission through the UART arrangement; Its process is: main processing block is put into the data of preparing to write serial device in the register of UART earlier, is sent on the serial device fax MODEM module through FIFO (First Input First Output, First Input First Output) again; Be the common technology means that connect modulator-demodulator and CPU primary processor in this area, so locate not detail here.Fax MODEM module mainly is responsible for the analog-to-digital conversion of facsimile data: on the one hand, and the digital signal that becomes analog signal conversion wireless network such as CDMA can transmit from the G3 analog facsimile; On the other hand, the digital signal of receiving wireless terminal from wireless networks such as CDMA converts the discernible analog signal of G3 analog facsimile to.Wireless terminal can be CDMA fixed station, Vehicle mounted station, mobile phone etc.Because the signal that the G3 analog facsimile sends, receives is the analog signal through ovennodulation; So; The device of realization wireless G 3 analog facsimile service according to the invention needs through fax MODEM module facsimile signal to be carried out data transaction earlier when receiving or sending facsimile signal.In addition, main processing block is resolved confidential reception of local G3 analogue simulation and the facsimile data that sends, obtains current FAX mode through the keyword that parses.
Common interface module can the selection standard USB interface, because its highly versatile can be used as data exchange interface on the one hand, utilizes two differential data line of D+ and D-, for reliable data channel is provided between main processing block and the wireless terminal; On the other hand, utilizing the VCC pin of standard USB interface to obtain the input of stable power as power management module from wireless terminal, is main processing block, fax MODEM module, user interface circuit module and memory module power supply by power management module.
The telephony interface module; Can adopt DAA (Direct Access Arrangement, the direct access means of telephone plant), its effect is externally to provide the RJ11 line interface to link to each other with the G3 analog facsimile; Internally be connected, and the over-current detection function is provided with fax MODEM module.Optional; Adopt capacitance to connect telephony interface module and fax MODEM module in the device of the said realization wireless G 3 analog of present embodiment facsimile service; Prevent of the damage of the big electric current of generation when the G3 analog facsimile inserts, as a kind of overcurrent protection measure to fax MODEM module.
The user interface circuit module adopts SLIC (Subscriber Line Interface Circuit; SLIC) chip; Four line caps of SLIC chip are through PCM (Pulse Code Modulation; Pulse-code modulation) bus links to each other with main processing block, and pcm bus both can provide the private line service of the numerical data from 2M to 155M speed, and other business such as speech, image transmission, remote teaching also can be provided; Be specially adapted to the transfer of data rate requirement higherly, need the more situation of high bandwidth.In the present invention; When the user interface circuit module is used for the transmitting facsimile call signal; During such as transmitting facsimile incoming information, fax dialing information and fax tone signal; The user interface circuit module is utilized the speech transmitting function of pcm bus, the dialing tone when transmitting the dialing of G3 analog facsimile, from the incoming call sound and the fax tone signal of far-end transmit leg.
Simultaneously, it is built-in with the telephony interface module user interface circuit module, externally provides the RJ11 line interface to link to each other with the G3 analog facsimile, and local G3 analog facsimile is that A Wire/B Wire inserts the RJ11 line interface through telephone wire.In addition, when the G3 analog facsimile service need be set up, the user interface circuit module also was used to set up between fax MODEM module and the local G3 analog facsimile facsimile data passage in logic.
Memory module can adopt the FLASH flash memory, in the medium of FLASH flash memory, so just can realize facsimile service to the facsimile data fixed storage through store-and-forward mode.In addition; Utilize the RAM data buffering in the FLASH flash memory; The device of the said realization wireless G 3 analog of present embodiment facsimile service and the interactive speed at G3 analog facsimile and cdma wireless terminal can be accelerated, the facsimile data transmission problem of unstable that CDMA circuit type data service time delay causes can be solved.Link to each other through SPI interface (Serial Peripheral interface, Serial Peripheral Interface) between memory module and the main processing block.
Optional, this device also comprises power management module, be used for through the VCC pin on the standard USB interface can be stable from the wireless terminal obtain required power supply.Required voltage is provided for then main processing block, fax MODEM module, user interface circuit module, FLASH flash memory module etc., has saved external power supply, this had both reduced cost, was user-friendly to again.
Main processing block operates on the main process chip, and the main management of being responsible for above-mentioned each module coordinate the running of whole system, so it is the control centre of whole device each several part.As shown in Figure 3, the software submodules that said main processing block comprises has: the master control submodule, with fax MODEM mutual submodule, with the mutual submodule of wireless terminal, facsimile data analyzing sub-module and facsimile data management submodule,
With the mutual submodule of wireless terminal; Be equivalent to a DTE (Data Terminal Equipment; Data terminal equipment) this DCE of role and wireless terminal (Data Communication Equipment, data communications equipment) carries out alternately, and the software interface between the two is followed standard A T (Attention) order; On the fax flow process, follow PC fax standard interface, this submodule is responsible for through the facsimile data passage between wireless terminal foundation and far-end recipient or the transmit leg;
With fax MODEM mutual submodule, the role who is equivalent to a DTE carries out alternately with this DCE of fax MODEM module, and the software interface between the two is followed standard AT command, on the flow process of faxing, follows T.30, standard T.31.This submodule mainly is responsible for the module initialization to fax MODEM, and the facsimile data of controlling the local confidential reception of G3 analogue simulation of fax MODEM resume module and sending, and processed content comprises data transaction;
The facsimile data analyzing sub-module is used to control fax MODEM module confidential reception of local G3 analogue simulation and the facsimile data that sends is resolved, and obtains current FAX mode through the keyword that parses, such as whether also having down one page etc.;
The facsimile data management submodule is used in memory module to the confidential reception of local G3 analogue simulation with the facsimile data that sends is stored, read and operation such as deletion.
The master control submodule is used for above-mentioned and the mutual submodule of fax MODEM, carries out the integral body scheduling with the mutual submodule of wireless terminal, facsimile data analyzing sub-module and facsimile data management submodule.
Second embodiment of the invention, as shown in Figure 4, following is example with the process of sending a fax, and is described in detail in the process of sending a fax the cooperating process and the operating process of each module in the device of realization wireless G 3 analog facsimile service according to the invention.The step of the transmission facsimile posting of one whole is following:
Step 401: the dialing of local G3 analog facsimile, sending the fax operation, send to main processing block through the user interface circuit module dialing information of will faxing;
Step 402: the master control submodule in the main processing block is received the fax dialing information, after affirmation will be sent fax, and notice and the mutual submodule of fax MODEM, the initialization of the MODEM module of faxing;
Step 403: set up the facsimile data passage between local G3 analog facsimile and the fax MODEM module; Then through and the mutual submodule of wireless terminal is set up and the far-end recipient between the facsimile data passage; The process of setting up the facsimile data passage is exactly the process of interacting message; When the fax tone signal of local terminal and far-end G3 analog facsimile all send mutually finish after, above-mentioned facsimile data passage has just been set up successively;
Step 404: receive facsimile data with the mutual submodule of fax MODEM, and carry out analog-to-digital conversion process through fax MODEM module from local G3 analog facsimile;
Step 405: the facsimile data analyzing sub-module is resolved facsimile data, obtains current FAX mode through the keyword that parses;
Step 406: the facsimile data management submodule is cached to memory module with facsimile data, with the mutual submodule of wireless terminal the facsimile data in the memory module is sent to the far-end recipient through wireless terminal simultaneously;
Step 407: after facsimile data receives and to finish, through and the mutual software submodules of fax chip break off the facsimile data passage between fax chip and the facsimile machine;
Step 408: after facsimile data sends and to finish, through and wireless fixed terminal interactive software submodule breaks off and the far-end recipient between the facsimile data passage;
Step 409: whole facsimile transmission process finishes.
Third embodiment of the invention, as shown in Figure 5, following is example with the process of receiving faxes, and is described in detail in the process of receiving faxes the cooperating process and the operating process of each module in the device of realization wireless G 3 analog facsimile service according to the invention.The step of the process of receiving faxes of one whole is following:
Step 501: receive the fax incoming information of far-end transmit leg with the mutual submodule of wireless terminal, send to local G3 analog facsimile through the user interface circuit module incoming information of will faxing;
Step 502: through and the mutual submodule of wireless terminal is set up and the far-end transmit leg between the facsimile data passage; Set up the facsimile data passage between local G3 analog facsimile and the fax MODEM module then; The process of setting up the facsimile data passage is exactly the process of interacting message; When the fax tone signal of local terminal and far-end G3 analog facsimile all send mutually finish after, above-mentioned facsimile data passage has just been set up successively;
Step 503: and after the facsimile data passage between the far-end transmit leg sets up successfully, receive facsimile data from the far-end transmit leg with the mutual submodule of wireless terminal;
Step 504: the facsimile data analyzing sub-module makes facsimile data resolve through fax MODEM module, from the keyword that parses, obtains current FAX mode;
Step 505: facsimile data management software submodule with dissection process after facsimile data be cached to memory module, simultaneously the facsimile data in the memory module is carried out sending to local G3 analog facsimile after the digital-to-analogue conversion through fax MODEM module with the mutual submodule of fax MODEM;
Step 506: after facsimile data receives and finishes,, tell the facsimile data passage between wireless terminal disconnection and the far-end transmit leg through sending the AT order with the mutual submodule of wireless terminal;
Step 507: after facsimile data sends and to finish, through and the mutual submodule of fax MODEM break off the facsimile data passage between fax MODEM module and the G3 analog facsimile;
Step 508: whole fax receiving course finishes.
The method of sending and receiving and the device of realization wireless G 3 analog facsimile service according to the invention; The loaded down with trivial details concrete realization details owing to mask G3 analog facsimile service complicacy; Separate the platform specific of G3 analog facsimile service and wireless terminal, and this device externally provides common interface module, make and only support the PC digital fax and do not support the wireless terminal of G3 analogue simulation; As long as be connected with this device through common interface module, also can realize the G3 analog facsimile service.Adopt technical scheme of the present invention; With the accessory of this device as common wireless fixed terminal; This all can bring very big facility to manufacturer terminal and end user: on the one hand; Platform to wireless terminal itself does not have special demands, can shorten the construction cycle of wireless terminal manufacturer to wireless product G3 facsimile function greatly; On the other hand, concerning the user, the selection of hommization more is provided; When the user buys the terminal, like needs G3 facsimile function, as long as select this accessory; That's all, thereby can be user flexibility and customize out wireless terminal, and it is lower to implement technical threshold with G3 analogue simulation function.
In addition, common interface module is on the one hand as data exchange interface, between this device and the wireless terminal data channel being provided; On the other hand, directly obtain power supply from wireless terminal, saved external power supply through common interface module; This had both reduced cost, was user-friendly to again.
Through the explanation of embodiment, should be to reach technological means and the effect that predetermined purpose takes to be able to more deeply and concrete understanding to the present invention, yet appended diagram only provide the usefulness of reference and explanation, is not to be used for the present invention is limited.