CN101656796A - Method and device for forwarding PCM data by USB interface - Google Patents

Method and device for forwarding PCM data by USB interface Download PDF

Info

Publication number
CN101656796A
CN101656796A CN200910172958A CN200910172958A CN101656796A CN 101656796 A CN101656796 A CN 101656796A CN 200910172958 A CN200910172958 A CN 200910172958A CN 200910172958 A CN200910172958 A CN 200910172958A CN 101656796 A CN101656796 A CN 101656796A
Authority
CN
China
Prior art keywords
module
pcm data
slic
wireless communication
main control
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
Application number
CN200910172958A
Other languages
Chinese (zh)
Inventor
任斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN200910172958A priority Critical patent/CN101656796A/en
Publication of CN101656796A publication Critical patent/CN101656796A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The invention discloses a method and a device for forwarding PCM data by a USB interface. The method comprises the following steps: reading pulse code modulation (PCM) data input by a subscriber lineinterface circuit (SLIC) by a main control module; writing the PCM data into a wireless communication module by a universal serial bus between the main control module and the wireless communication module; reading the PCM data of the wireless communication module through the USB interface by the main control module and writing into the SLIC module. The method can enable the wireless communicationmodule without a PCM circuit to communicate with the SLIC module, thereby enlarging PCM voice business.

Description

A kind of method and apparatus that carries out the PCM data forwarding by USB interface
Technical field
The present invention relates to the communications field, relate in particular to a kind of method and apparatus that carries out PCM (Pulse Code Modulation, pulse-code modulation) data forwarding by USB (Universal Serial Bus, USB) interface.
Background technology
Along with the high speed development of wireless communication field, and the raising of the development of electronic information technology and chip integration, the function of communication equipment is also to diversified development, and the design of communication equipment is also relatively flexibly.USB interface is to use a kind of very widely general-purpose interface, wireless communication module (being wireless modem, radio modem) adopt usually USB interface as with the interface of peripheral circuit.Wireless communication module is connected on and can utilizes the audio frequency apparatus of PC that speech business is provided on the PC by USB interface simultaneously transferring voice and data message.
Because present wireless communication module volume is very little, a module of Chang Zuowei embedded communication equipment is connected by USB interface with main control module.This embedded communication equipment adopts SLIC (Subscriber Line Interface Circuit usually, Subscriber Line Interface Circuit) module externally provides the RJ11 interface, external common phone, and at present a lot of wireless communication module does not possess the PCM circuit, can't with the direct communication of SLIC module.
Summary of the invention
The technical problem to be solved in the present invention is exactly to propose a kind ofly to carry out the method and apparatus of PCM data forwarding by USB interface, solves the wireless communication module that does not possess the PCM circuit in the prior art, can't with the problem of the direct communication of SLIC module.
In order to solve the problems of the technologies described above, the invention provides and a kind ofly carry out the method for PCM data forwarding by USB interface, comprising:
Main control module reads pulse-code modulation (PCM) data of Subscriber Line Interface Circuit (SLIC) module input, by the USB between main control module and the wireless communication module (USB) interface described PCM data is write wireless communication module; And,
Main control module reads the PCM data of wireless communication module by described USB interface, writes the SLIC module.
Further, said method also can have following characteristics:
Described main control module writes wireless communication module by USB interface with the PCM data, and, read the PCM data of wireless communication module by USB interface, specifically be meant:
Described main control module by with a logic interfacing of described USB interface as the PCM data channel, by described PCM data channel the PCM data are write wireless communication module, and, read the PCM data of wireless communication module by described PCM data channel.
Further, said method also can have following characteristics:
Described main control module reads the PCM data of SLIC module input, and the step that writes wireless communication module by the USB interface between main control module and the wireless communication module specifically comprises:
The SLIC driven element module of main control module reads the PCM data of the input of SLIC module, is cached in the sub module stored of main control module;
The USB driven element module of main control module writes wireless communication module with the PCM data of described SLIC driven element module buffer memory by USB interface from described sub module stored.
Further, said method also can have following characteristics:
Described main control module reads the PCM data of wireless communication module by described USB interface, and the step that writes the SLIC module specifically comprises:
The USB driven element module of main control module reads the PCM data of wireless communication module by described USB interface, is cached in the sub module stored;
The SLIC driven element module of main control module writes the SLIC module from described sub module stored with the PCM data of USB driven element module buffer memory.
Further, said method also can have following characteristics:
The SLIC driven element module of main control module read the SLIC module input the PCM data before, also carry out:
After the interruption that the SLIC module triggers began, SLIC driven element module notice USB driven element module was read the PCM data of wireless communication module.
In order to solve the problems of the technologies described above, the invention provides and a kind ofly carry out the device of PCM data forwarding by USB interface, comprise the wireless communication module, main control module and the SLIC module that link to each other successively,
Interface between described main control module and the wireless communication module is a USB interface, and described main control module is used to read the PCM data of SLIC module input, by described USB interface described PCM data is write wireless communication module; And described main control module is used for reading by described USB interface the PCM data of wireless communication module, writes the SLIC module.
Further, said apparatus also can have following characteristics:
Described main control module is further used for a logic interfacing with described USB interface as the PCM data channel, the PCM data is write wireless communication module or read the PCM data of wireless communication module by described PCM data channel.
Further, said apparatus also can have following characteristics:
Described main control module further comprises SLIC driven element module, USB driven element module and sub module stored;
Described SLIC driven element module is used to read the PCM data of the input of SLIC module, is cached in the sub module stored of main control module;
Described USB driven element module is used for from described sub module stored the PCM data of described SLIC driven element module buffer memory being write wireless communication module by USB interface;
Described sub module stored is used to store the PCM data of SLIC driven element module buffer memory.
Further, said apparatus also can have following characteristics:
Described USB driven element module is further used for reading by described USB interface the PCM data of wireless communication module, is cached in the sub module stored;
Described SLIC driven element module is further used for from described sub module stored the PCM data of USB driven element module buffer memory being write the SLIC module;
Described sub module stored is further used for storing the PCM data of USB driven element module buffer memory.
Further, said apparatus also can have following characteristics:
SLIC driven element module is further used for notifying described USB driven element module to read the PCM data of wireless communication module after the interruption that the SLIC module triggers begins.
The invention has the beneficial effects as follows:
(1) the present invention make do not possess the PCM circuit wireless communication module can with the SLIC module communication, expand the PCM speech business;
(2) concerning hardware designs, simplified interface between mainboard (main control module) and the wireless communication module, after removing the PCM circuit, only just can finish with USB interface, can use same hardware mainboard arbitrarily to change wireless communication module, so just can utilize different wireless communication modules and be combined into the equipment of identical function, shorten the construction cycle with a mainboard;
(3) though the wireless communication module that has self also has the PCM circuit, can be directly connected to the SLIC module, but can't allow main control module understand the operating state of SLIC module and the DTMF of generation (Dual Tone Multiple Frequency at any time like this, dual-tone multifrequency) incident, controllability is not fine, SLIC module of the present invention is by master control module controls, its state and control are all operated by main control module, controllability is fine, can obtain the state of external phone at any time, and can carry out corresponding prompt according to operation, such as in the process of making a phone call, dialling up on the telephone, converse at this time just can for prompting of user, can not dial, and various phonetic function can be provided, such as carrying out telephonograph etc. according to setting.
Description of drawings
Fig. 1 is the device schematic diagram of the embodiment of the invention;
Fig. 2 is the method flow diagram of the embodiment of the invention.
Embodiment
In the present invention, link to each other by USB interface between main control module and the wireless communication module, main control module reads the PCM data of SLIC module input, writes wireless communication module by this USB interface; And main control module reads the PCM data of wireless communication module by this USB interface, writes the SLIC module.
Particularly, the USB interface by physics between wireless communication module and the main control module fictionalizes a logic interfacing as the PCM data channel, reads or writes the PCM data by this PCM data channel.
The present invention is described in detail below in conjunction with drawings and the specific embodiments.
As shown in Figure 1, the device of the embodiment of the invention comprises wireless communication module, main control module and the SLIC module that links to each other successively,
Wherein, the interface between main control module and the wireless communication module is a USB interface, and main control module is used to read the PCM data of SLIC module input, writes wireless communication module by this USB interface; And main control module is used for reading by this USB interface the PCM data of wireless communication module, writes the SLIC module.
Wireless communication module is used to realize radio frequency and wireless communication protocol function.
The SLIC module is generally the SLIC chip, link to each other with the PCM passage of main control module, be used for the analog voice signal of subsets output is become the PCM speech data through code conversion, pass to main control module by the mode of interrupting, PCM data transaction with the main control module input becomes the voice signal of simulation to send telephone set to simultaneously, and it externally provides the RJ11 interface.
Can be between main control module and the wireless communication module by the virtual a plurality of logic interfacings of coming out of the USB interface of physics, it is general virtual that what come out is serial ports.Wherein, the logic interfacing of can be virtual coming out is used to read or write the PCM data as the PCM data channel.
Main control module also can comprise SLIC driven element module, USB driven element module and sub module stored,
Wherein, SLIC driven element module is used for after the interruption that the SLIC module triggers begins, notice USB driven element module is read the PCM data of wireless communication module, and read the PCM data of the input of SLIC module, be cached in the sub module stored, and, from sub module stored the PCM data of USB driven element module buffer memory are write the SLIC module;
After USB driven element module is used to receive the notice of SLIC driven element module, read the PCM data of wireless communication module by PCM data channel (being the logic interfacing of USB), be cached in the sub module stored, and, from sub module stored the PCM data of SLIC driven element module buffer memory are write wireless communication module by the PCM data channel;
Sub module stored is used to store the PCM data of SLIC driven element module and USB driven element module buffer memory.
Said apparatus can be positioned to have provides the wireless access of circuit domain speech business cartridge device, wireless access cartridge device that the Packet data service that inserts Internet also can be provided.
As shown in Figure 2, the method for the embodiment of the invention comprises the steps:
Step 201, after the interruption that the SLIC module triggers began, SLIC driven element module notice USB driven element module was read the PCM data of wireless communication module;
Wherein, in carrying out reading and writing data, (these two incidents should take place at the same instant) SLIC module can produce an interruption when the data of regular length are written into or receive, this interrupts by hardware trigger, the PCM data interruption of supposing every read-write 160 bytes here once, this time should be 20 milliseconds so;
Step 202, SLIC driven element module reads the PCM data of the input of SLIC module, is cached in the sub module stored; USB driven element module reads the PCM data of wireless communication module, is cached in the sub module stored;
Wherein, sub module stored can be divided into two or more zones, and the content of SLIC driven element module buffer memory and the content stores of USB driven element module are in the zones of different of sub module stored;
Sub module stored also can be an independent module, is a memory that is positioned at outside the main control module;
Step 203, SLIC driven element module writes the SLIC module from sub module stored with the PCM data of USB driven element module buffer memory; USB driven element module writes wireless communication module from sub module stored with the PCM data of SLIC driven element module buffer memory.
Wherein, above-mentioned steps is a preferred embodiment, SLIC driven element module and USB driven element module read and write data synchronously, certainly, the process of SLIC driven element module read-write PCM data can be asynchronous with the process of USB driven element module read-write PCM data, and promptly step 201 is an optional step, after the interruption that the SLIC module triggers begins, SLIC driven element module need not to notify USB driven element module to read the PCM data of wireless communication module, promptly begins to read the PCM data, writes the PCM data then; And USB driven element module also has the fixing PCM reading and writing data time interval of self, and certainly, like this, sub module stored needs enough big memory space.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and carry out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (10)

1, a kind ofly carry out the method for PCM data forwarding, comprising by USB interface:
Main control module reads pulse-code modulation (PCM) data of Subscriber Line Interface Circuit (SLIC) module input, by the USB between main control module and the wireless communication module (USB) interface described PCM data is write wireless communication module; And,
Main control module reads the PCM data of wireless communication module by described USB interface, writes the SLIC module.
2, the method for claim 1 is characterized in that,
Described main control module writes wireless communication module by USB interface with the PCM data, and, read the PCM data of wireless communication module by USB interface, specifically be meant:
Described main control module by with a logic interfacing of described USB interface as the PCM data channel, by described PCM data channel the PCM data are write wireless communication module, and, read the PCM data of wireless communication module by described PCM data channel.
3, method as claimed in claim 1 or 2 is characterized in that,
Described main control module reads the PCM data of SLIC module input, and the step that writes wireless communication module by the USB interface between main control module and the wireless communication module specifically comprises:
The SLIC driven element module of main control module reads the PCM data of the input of SLIC module, is cached in the sub module stored of main control module;
The USB driven element module of main control module writes wireless communication module with the PCM data of described SLIC driven element module buffer memory by USB interface from described sub module stored.
4, method as claimed in claim 3 is characterized in that,
Described main control module reads the PCM data of wireless communication module by described USB interface, and the step that writes the SLIC module specifically comprises:
The USB driven element module of main control module reads the PCM data of wireless communication module by described USB interface, is cached in the sub module stored;
The SLIC driven element module of main control module writes the SLIC module from described sub module stored with the PCM data of USB driven element module buffer memory.
5, method as claimed in claim 3 is characterized in that,
The SLIC driven element module of main control module read the SLIC module input the PCM data before, also carry out:
After the interruption that the SLIC module triggers began, SLIC driven element module notice USB driven element module was read the PCM data of wireless communication module.
6, a kind ofly carry out the device of PCM data forwarding, comprise the wireless communication module, main control module and the SLIC module that link to each other successively, it is characterized in that by USB interface,
Interface between described main control module and the wireless communication module is a USB interface, and described main control module is used to read the PCM data of SLIC module input, by described USB interface described PCM data is write wireless communication module; And described main control module is used for reading by described USB interface the PCM data of wireless communication module, writes the SLIC module.
7, device as claimed in claim 6 is characterized in that,
Described main control module is further used for a logic interfacing with described USB interface as the PCM data channel, the PCM data is write wireless communication module or read the PCM data of wireless communication module by described PCM data channel.
8, as claim 6 or 7 described devices, it is characterized in that,
Described main control module further comprises SLIC driven element module, USB driven element module and sub module stored;
Described SLIC driven element module is used to read the PCM data of the input of SLIC module, is cached in the sub module stored of main control module;
Described USB driven element module is used for from described sub module stored the PCM data of described SLIC driven element module buffer memory being write wireless communication module by USB interface;
Described sub module stored is used to store the PCM data of SLIC driven element module buffer memory.
9, device as claimed in claim 8 is characterized in that,
Described USB driven element module is further used for reading by described USB interface the PCM data of wireless communication module, is cached in the sub module stored;
Described SLIC driven element module is further used for from described sub module stored the PCM data of USB driven element module buffer memory being write the SLIC module;
Described sub module stored is further used for storing the PCM data of USB driven element module buffer memory.
10, device as claimed in claim 8 is characterized in that,
SLIC driven element module is further used for notifying described USB driven element module to read the PCM data of wireless communication module after the interruption that the SLIC module triggers begins.
CN200910172958A 2009-09-11 2009-09-11 Method and device for forwarding PCM data by USB interface Pending CN101656796A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910172958A CN101656796A (en) 2009-09-11 2009-09-11 Method and device for forwarding PCM data by USB interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910172958A CN101656796A (en) 2009-09-11 2009-09-11 Method and device for forwarding PCM data by USB interface

Publications (1)

Publication Number Publication Date
CN101656796A true CN101656796A (en) 2010-02-24

Family

ID=41710875

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910172958A Pending CN101656796A (en) 2009-09-11 2009-09-11 Method and device for forwarding PCM data by USB interface

Country Status (1)

Country Link
CN (1) CN101656796A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938846A (en) * 2010-08-25 2011-01-05 中兴通讯股份有限公司 Voice transmission method and device
CN109963037A (en) * 2019-03-05 2019-07-02 网经科技(苏州)有限公司 The Cascading Methods of IP PBX line module based on the virtualization port SLIC

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072177A (en) * 2007-06-19 2007-11-14 中兴通讯股份有限公司 Method for transmitting voice
CN101094206A (en) * 2007-08-02 2007-12-26 中兴通讯股份有限公司 Data transmission device
CN101159790A (en) * 2007-07-26 2008-04-09 深圳市共进电子有限公司 Voice recording method and method thereof of ADSL broadband router
JP2008209578A (en) * 2007-02-26 2008-09-11 Kenwood Corp Recording device, digital data recording method, and program
JP2008250460A (en) * 2007-03-29 2008-10-16 Kyocera Corp Radio communication terminal, radio communication system, and radio communication program
CN101494916A (en) * 2009-03-09 2009-07-29 中兴通讯股份有限公司 System and method for supporting VOIP and CS telephone

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008209578A (en) * 2007-02-26 2008-09-11 Kenwood Corp Recording device, digital data recording method, and program
JP2008250460A (en) * 2007-03-29 2008-10-16 Kyocera Corp Radio communication terminal, radio communication system, and radio communication program
CN101072177A (en) * 2007-06-19 2007-11-14 中兴通讯股份有限公司 Method for transmitting voice
CN101159790A (en) * 2007-07-26 2008-04-09 深圳市共进电子有限公司 Voice recording method and method thereof of ADSL broadband router
CN101094206A (en) * 2007-08-02 2007-12-26 中兴通讯股份有限公司 Data transmission device
CN101494916A (en) * 2009-03-09 2009-07-29 中兴通讯股份有限公司 System and method for supporting VOIP and CS telephone

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938846A (en) * 2010-08-25 2011-01-05 中兴通讯股份有限公司 Voice transmission method and device
CN109963037A (en) * 2019-03-05 2019-07-02 网经科技(苏州)有限公司 The Cascading Methods of IP PBX line module based on the virtualization port SLIC
CN109963037B (en) * 2019-03-05 2021-01-08 网经科技(苏州)有限公司 IP PBX user module cascading method based on virtualized SLIC port

Similar Documents

Publication Publication Date Title
CN104380254A (en) A method and a terminal for quick start of an application service
CN201608742U (en) Intelligent fixed phone
EP3726924A1 (en) Method for implementing video call with bluetooh-based headset and video communication terminal for the same
CN101616415B (en) Information directly-interactive method and support equipment for mobile communication subscriber identification card
CN101478717A (en) Call recording method, system and mobile communication terminal
CN101656796A (en) Method and device for forwarding PCM data by USB interface
CN102035907A (en) Intelligent fixed-line telephone
CN101291489A (en) Time managing method and system for terminal, and mobile terminal
CN101355601B (en) Network official telephone for digital microwave system and implementing method thereof
CN201584994U (en) PC telephone device
CN102932960A (en) Exchange system and exchange method for electronic business cards
CN200941675Y (en) Radio switch-in station
CN108347660A (en) A kind of analog junction access device
CN2914510Y (en) Telephone system realizing one number connecting function
CN201332429Y (en) System fusing GSM access with analog switch
CN101771777A (en) Device and system for recording phone voice and fax
CN204697141U (en) A kind of phone recording system
CN201515424U (en) Embedded phone system playing voice according to keystroke
CN201414155Y (en) Multifunctional telephone having Bluetooth function
CN203289442U (en) Time switching automatic mode telephone system based on optical fiber communication
CN103095887A (en) Method of achieving voice call message by terminal
CN103688524B (en) Multi-path speech signal multiplexing circuit, equipment and method
CN215420402U (en) Telephone system
CN202121654U (en) Telephone device capable of realizing wireless dialing via PC
CN208656880U (en) A kind of telephonograph unit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20100224