CN102065396A - System and method for converting GSM (Global System for Mobile Communications) 610 data into PCM (Pulse-Code Modulation) data - Google Patents

System and method for converting GSM (Global System for Mobile Communications) 610 data into PCM (Pulse-Code Modulation) data Download PDF

Info

Publication number
CN102065396A
CN102065396A CN2010105150666A CN201010515066A CN102065396A CN 102065396 A CN102065396 A CN 102065396A CN 2010105150666 A CN2010105150666 A CN 2010105150666A CN 201010515066 A CN201010515066 A CN 201010515066A CN 102065396 A CN102065396 A CN 102065396A
Authority
CN
China
Prior art keywords
data
gsm610
pcm
packets
length
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.)
Granted
Application number
CN2010105150666A
Other languages
Chinese (zh)
Other versions
CN102065396B (en
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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Dongguan Yulong Telecommunication Technology Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Dongguan Yulong Telecommunication Technology Co Ltd
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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd, Dongguan Yulong Telecommunication Technology Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201010515066.6A priority Critical patent/CN102065396B/en
Publication of CN102065396A publication Critical patent/CN102065396A/en
Application granted granted Critical
Publication of CN102065396B publication Critical patent/CN102065396B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method for converting GSM (Global System for Mobile Communications) 610 data into PCM (Pulse-Code Modulation) data. The method comprises the following steps of: cutting received GSM 610 data into a plurality of data packets; and transcoding the cut data packets into PCM data packets; and generating PCM data by using the plurality of PCM data packets. The invention also provides a system for converting the GSM610 data into the PCM data. By the method and the system, GSM 610 data received by an Android platform can be converted into the PCM data, and the Android platform can directly use the PCM data obtained after conversion.

Description

The GSM610 data are converted to the system and method for PCM data
[technical field]
The present invention relates to moving communicating field, relate in particular to the system and method that a kind of GSM610 data are converted to the PCM data.
[background technology]
Android is a kind of mobile phone operating system of increasing income based on the Linux platform, use the mobile phone of Android platform to transmit speech data with the GSM610 form, GSM610 is that european telecommunications standards institute is the voice compression coding standard of first generation GSM (Global System for Mobile Communications, global system for mobile communications) appointment.And spendable speech data is PCM (PulseCode Modulation, pulse-code modulation) data in the Android platform, and the GSM610 data are sent to the mobile phone that uses the Android platform, must could use in the Android platform through behind the transcoding.
[summary of the invention]
Based on this, be necessary to provide a kind of system that the GSM610 data can be converted to the PCM data.
A kind of GSM610 data are converted to the system of PCM data, comprising:
The data cutting module, the GSM610 data that are used for receiving are cut into a plurality of packets;
The transcoding module, being used for the packet transcoding after the cutting is the PCM packet;
Data generation module is used for a plurality of PCM packets are generated the PCM data.
Preferably, system also comprises the judge module that is used to judge that the GSM610 data that receive are whether legal.
Preferably, judge module is used for resolving the head part of GSM610 data, divide the data length that obtains the GSM610 data from the head, calculate the length of GSM610 data, the length that calculates is compared with dividing the data length that obtains from the head, if identical, the GSM610 data that then receive are legal, otherwise illegal.
Preferably, the data cutting module is used for according to default regular length the GSM610 data that receive being cut into a plurality of packets.
Preferably, data generation module also is used for generating data packet head according to a plurality of PCM packets, obtains the data inclusion from the PCM packet, generates the PCM data according to data packet head and data inclusion.
In addition, also be necessary to provide a kind of method that the GSM610 data can be converted to the PCM data.
A kind of GSM610 data are converted to the method for PCM data, may further comprise the steps:
The GSM610 data that receive are cut into a plurality of packets;
With the packet transcoding after the cutting is the PCM packet;
A plurality of PCM packets are generated the PCM data.
Preferably, before being cut into the step of a plurality of packets, the GSM610 data that will receive also comprise the step of judging that the GSM610 data that receive are whether legal.
Preferably, judge whether legal step is the GSM610 data that receive:
Resolve the head part in the GSM610 data, divide the data length that obtains the GSM610 data from the head;
Calculate the length of GSM610 data;
The length that calculates is compared with dividing the data length that obtains from the head;
Judge the length calculate and divide the data length that obtains whether identical from the head, if the GSM610 data that then receive are legal, otherwise illegally.
Preferably, the step that the GSM610 data that receive is cut into a plurality of packets specifically: according to default regular length the GSM610 data that receive are cut into a plurality of packets.
Preferably, the step with a plurality of PCM packets generation PCM data is:
Generate data packet head according to a plurality of PCM packets, from the PCM packet, obtain the data inclusion, generate the PCM data according to data packet head and data inclusion.
Said GSM 610 data are converted to the system and method for PCM data, the GSM610 data that receive are cut, obtain a plurality of packets, with these packet transcodings is the PCM packet, then a plurality of PCM packets are generated the PCM data, can realize the GSM610 data are converted to the PCM data, be converted to and can be the Android platform after the PCM data and directly use.
[description of drawings]
Fig. 1 is the block diagram that the GSM610 data are converted to the system of PCM data among the embodiment;
Fig. 2 is converted to the block diagram of the system of PCM data for GSM610 data among another embodiment;
Fig. 3 is the flow chart that the GSM610 data are converted to the method for PCM data among the embodiment;
Fig. 4 is converted to the flow chart of the method for PCM data for GSM610 data among another embodiment;
The method flow diagram of Fig. 5 for judging that the GSM610 data that receive are whether legal among Fig. 4.
[embodiment]
As shown in Figure 1, a kind of GSM610 data are converted to the system of PCM data, comprise data cutting module 10, transcoding module 20 and data generation module 30, and wherein: the GSM610 data that data cutting module 10 is used for receiving are cut into a plurality of packets; It is the PCM packet that transcoding module 20 is used for the packet transcoding after the cutting; Data generation module 30 is used for a plurality of described PCM packets are generated the PCM data.
As shown in Figure 2, in one embodiment, the GSM610 data are converted to the system of PCM data except comprising above-mentioned data cutting module 10, transcoding module 20 and data generation module 30, also comprise judge module 40, are used to judge whether the GSM610 data that receive are legal.In one embodiment, JAVA uses and to receive the GSM610 data, pass to JNI interface (JAVA Native Interface, JAVA local programming interface) after, the JNI interface is transferred to judge module 40 and is carried out legitimacy and judge.Judge module 40 is at first resolved the head part in the GSM610 data, separately win the flag bit of the length of fetching data from the head, obtain the data length of GSM610 data, calculate the length of GSM610 data simultaneously, length that calculates and the data length that obtains are from the head compared,, judge that then the GSM610 data that receive are legal if both are identical, otherwise be illegal, do not process.
Among this embodiment, data cutting module 10 is used for according to default regular length (for example 320 bytes) the GSM610 data being cut, and obtains a plurality of packets after the cutting.Packet transcoding after transcoding module 20 is used to adopt the RPL-LTP decompression algorithm to cut is the PCM packet.Data generation module 30 is used for generating a data packet header according to a plurality of PCM packets, specifically be that normal structure according to the PCM data generates a data packet header, the data inclusion then directly directly obtains the PCM packet behind transcoding, can generate the PCM data according to data packet head and data inclusion.
Should be noted that above-mentioned judge module 40, data cutting module 10, transcoding module 20 and data generation module 30 all are to carry out corresponding function in basic subrack rack-layer (being the C layer),, can improve the efficient of carrying out with respect to carrying out at the JAVA layer.
As shown in Figure 3, a kind of the GSM610 data are converted to the method for PCM data, may further comprise the steps:
Step S10 is cut into a plurality of packets with the GSM610 data that receive.
Step S20 is the PCM packet with the packet transcoding after the cutting.
Step S30 generates the PCM data with a plurality of described PCM packets.
In one embodiment, as shown in Figure 4, the GSM610 transcoded data is that the detailed process of method of PCM data is as follows:
Step S100 judges whether the GSM610 data are legal, if then enter step S200, otherwise finish.In one embodiment, JAVA uses and to receive the GSM610 data, pass to JNI interface (JAVANative Interface, JAVA local programming interface) after, carry out legitimacy and judge.In one embodiment, as shown in Figure 5, the detailed process of step S100 is:
Step S110 resolves the head part in the GSM610 data, obtains data length.The head part of GSM610 data has write down the data length of GSM610, can get access to data length by the flag bit in the head part.
Step S120, the length of calculating GSM610 data.
Step S130 compares the length that calculates with dividing the data length that obtains from the head.
Step S140 judges whether both are identical, if, then enter step S150, otherwise, step S160 entered.Specifically be to judge whether the length calculate is identical with the data length that from the beginning obtains in partly.
Step S150 judges that the GSM610 data are legal.After judging that the GSM610 data are legal, then can cut, enter step S200 the GSM610 data.
Step S160 judges that the GSM610 data are illegal.After judging that the GSM610 data are illegal, process ends does not process.
Step S200 is cut into a plurality of packets with the GSM610 data that receive.Among this embodiment, the GSM610 data are cut according to default regular length (for example 320 bytes).
Step S300 is the PCM packet with the packet transcoding after the cutting.Among this embodiment, the packet transcoding after can adopting the RPL-LTP decompression algorithm to cut is the PCM packet.
Step S400 generates the PCM data with a plurality of PCM packets.Among this embodiment, can generate a data packet header according to a plurality of PCM packets earlier, specifically the normal structure according to the PCM data generates data packet head, and the data inclusion then directly directly obtains the PCM packet behind transcoding, can generate the PCM data according to data packet head and data inclusion.
Should be noted that, the method that said GSM 610 data are converted to the PCM data is after receiving the GSM610 data by the JAVA application, forward data to basic subrack rack-layer (being the C layer) by the JNI interface and carry out, traditional relatively carries out at the JAVA layer, can improve and carry out efficient.
Said GSM 610 data are converted to the system and method for PCM data, the GSM610 data that receive are cut, obtain a plurality of packets, with these packet transcodings is the PCM packet, then a plurality of PCM packets are generated the PCM data, can realize the GSM610 data are converted to the PCM data, be converted to and can be the Android platform after the PCM data and directly use.
The above embodiment has only expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.

Claims (10)

1. GSM610 data are converted to the system of PCM data, it is characterized in that, comprising:
The data cutting module, the GSM610 data that are used for receiving are cut into a plurality of packets;
The transcoding module, being used for the packet transcoding after the cutting is the PCM packet;
Data generation module is used for a plurality of described PCM packets are generated the PCM data.
2. GSM610 data according to claim 1 are converted to the system of PCM data, it is characterized in that, also comprise the judge module that is used to judge that the described GSM610 data that receive are whether legal.
3. GSM610 data according to claim 2 are converted to the system of PCM data, it is characterized in that, described judge module is used for resolving the head part of described GSM610 data, obtain the data length of GSM610 data from described head part, calculate the length of described GSM610 data, length and the described data length that obtains that divides from the head that calculates compared, if identical, the GSM610 data that then receive are legal, otherwise illegal.
4. GSM610 data according to claim 1 are converted to the system of PCM data, it is characterized in that, described data cutting module is used for according to default regular length the GSM610 data that receive being cut into a plurality of packets.
5. GSM610 data according to claim 1 are converted to the system of PCM data, it is characterized in that, described data generation module also is used for generating data packet head according to described a plurality of PCM packets, from described PCM packet, obtain the data inclusion, generate the PCM data according to described data packet head and data inclusion.
6. GSM610 data are converted to the method for PCM data, may further comprise the steps:
The GSM610 data that receive are cut into a plurality of packets;
With the packet transcoding after the cutting is the PCM packet;
A plurality of described PCM packets are generated the PCM data.
7. GSM610 data according to claim 6 are converted to the method for PCM data, it is characterized in that, also comprise the step of judging that the GSM610 data that receive are whether legal before the described step that the GSM610 data that receive is cut into a plurality of packets.
8. GSM610 data according to claim 7 are converted to the method for PCM data, it is characterized in that, whether legal step is the GSM610 data that described judgement receives:
Resolve the head part in the described GSM610 data, obtain the data length of GSM610 data from described head part;
Calculate the length of described GSM610 data;
The length and the described data length that obtains that divides from the head that calculate are compared;
Judge whether the length that calculates is identical with the described data length that obtains that divides from the head, if the GSM610 data that then receive are legal, otherwise illegal.
9. GSM610 data according to claim 6 are converted to the method for PCM data, it is characterized in that, the described step that the GSM610 data that receive are cut into a plurality of packets specifically: according to default regular length the GSM610 data that receive are cut into a plurality of packets.
10. GSM610 data according to claim 6 are converted to the method for PCM data, it is characterized in that, described step with a plurality of PCM packets generation PCM data is:
Generate data packet head according to described a plurality of PCM packets, from described PCM packet, obtain the data inclusion, generate the PCM data according to described data packet head and data inclusion.
CN201010515066.6A 2010-10-20 2010-10-20 System and method for converting GSM (Global System for Mobile Communications) 610 data into PCM (Pulse-Code Modulation) data Active CN102065396B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010515066.6A CN102065396B (en) 2010-10-20 2010-10-20 System and method for converting GSM (Global System for Mobile Communications) 610 data into PCM (Pulse-Code Modulation) data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010515066.6A CN102065396B (en) 2010-10-20 2010-10-20 System and method for converting GSM (Global System for Mobile Communications) 610 data into PCM (Pulse-Code Modulation) data

Publications (2)

Publication Number Publication Date
CN102065396A true CN102065396A (en) 2011-05-18
CN102065396B CN102065396B (en) 2014-05-07

Family

ID=44000450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010515066.6A Active CN102065396B (en) 2010-10-20 2010-10-20 System and method for converting GSM (Global System for Mobile Communications) 610 data into PCM (Pulse-Code Modulation) data

Country Status (1)

Country Link
CN (1) CN102065396B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004006595A1 (en) * 2002-07-09 2004-01-15 Qualcomm Incorporated Short message conversion between different formats for wireless communication systems
CN1838771A (en) * 2005-03-22 2006-09-27 联发科技股份有限公司 Systems and methods for stream format conversion and digital TV recording device
CN101098483A (en) * 2007-07-19 2008-01-02 上海交通大学 Video cluster transcoding system using image group structure as parallel processing element
CN101662438A (en) * 2008-08-28 2010-03-03 华为技术有限公司 Wireless communication method, sending method, receiving and decoding method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004006595A1 (en) * 2002-07-09 2004-01-15 Qualcomm Incorporated Short message conversion between different formats for wireless communication systems
CN1838771A (en) * 2005-03-22 2006-09-27 联发科技股份有限公司 Systems and methods for stream format conversion and digital TV recording device
CN101098483A (en) * 2007-07-19 2008-01-02 上海交通大学 Video cluster transcoding system using image group structure as parallel processing element
CN101662438A (en) * 2008-08-28 2010-03-03 华为技术有限公司 Wireless communication method, sending method, receiving and decoding method and device

Also Published As

Publication number Publication date
CN102065396B (en) 2014-05-07

Similar Documents

Publication Publication Date Title
JP4975068B2 (en) Multipart message communication between cellular devices using a standardized interface
KR100962103B1 (en) Method for base band chip and mobile terminal based on the base band chip implement the multi-mode handover
US20050187773A1 (en) Voice synthesis system
US20070136055A1 (en) System for data communication over voice band robust to noise
NZ533766A (en) Content delivery method and content delivery system for mobile phones
EP1757033A2 (en) Reducing backhaul bandwidth
EP2053804A3 (en) Radio controller, radio base station, radio communication system, call admission control method, program and recording medium
CN1290389A (en) Decoding method, speech coding processing unit and network element
TW200601112A (en) Dual-path pre-approval authentication method
US20060262851A1 (en) Method and system for efficient transmission of communication traffic
US20090023454A1 (en) Method and system for utilizing plurality of physical layers to retain quality of service in a wireless device during a communication session
Katugampala et al. Real-time end-to-end secure voice communications over GSM voice channel
TW546932B (en) Method and apparatus for reducing transmission overhead in a communication system
CN107276659A (en) Voice talkback method and device and mobile terminal
TW200721870A (en) A method and apparatus for allocation of radio resources
CN101622711B (en) Methods and systems for silence insertion descriptor (sid) conversion
CN102065396B (en) System and method for converting GSM (Global System for Mobile Communications) 610 data into PCM (Pulse-Code Modulation) data
CN101426189B (en) Method and system for additional information transmission
US7835515B2 (en) Telephone terminal with control of voice reproduction quality in the receiver
CN100346577C (en) Signal coding device and signal decoding device, and signal coding method and signal decoding method
CN1270549C (en) Method for realizing interconnection of mobile communication network
TWI407742B (en) Method and system for formatting returned result from remote processing resource wireless system
CN1381041A (en) Transmitter for transmitting signal encoded in narrow band, and receiver for extending band of encoded signal at receiving end, and corresponding transmission and receiving methods, and system
CN106033982A (en) Method and device for realizing ultra wide band voice intercommunication and a terminal
WO2011015053A1 (en) Method and terminal for obtaining third generation (3g) radio resource management message

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant