Abstract:
Embodiments of the present invention provide a method for data transmission between a switch and a terminal, which includes: transmitting data between the switch and the terminal in a bidirectional Frequency Shift Keying (FSK) mode. The embodiments of the present invention provides an FSK processing module, a terminal, and a switch as well. Owning to implementing service data transmission in the bidirectional FSK mode, the speed of the information transmission between the switch and the terminal is greatly improved so as to provide support for developing interaction services with a great amount of data between the switch and the terminal in communication plane.

Description:
[0001]     This application is a continuation of International Patent Application No. PCT/CN2006/000752, filed Apr. 21, 2006, which claims priority to Chinese Patent Application No. 200510034408.1, filed Apr. 22, 2005, all of which are hereby incorporated by reference. 
     
    
     FIELD OF THE INVENTION  
       [0002]     The present invention relates to the field of data communication technologies, and more particularly, to a method for data transmission between a switch and a terminal, a Frequency Shift Keying (FSK) processing module, a terminal, and a switch.  
       BACKGROUND OF THE INVENTION  
       [0003]     At present, services developed newly require a large amount of data transmission between a switch and a terminal in a higher and higher speed. Meanwhile, with reference to GB/T 15279-94, “Automatic Telephone Technique Condition”, it can be learnt that data transmission between the switch and the terminal is implemented generally in a Dual-Tone Multiple Frequency (DTMF) mode, and it will take at least 80 ms to transmit one bit data in this mode. In the case of a large amount of data, the data transmission is time-consuming, which is a bottleneck for developing and spreading various new services. Besides the DTMF mode, communication manufacturers have developed a data transmission mode based on FSK mode. However, this data transmission mode is only applied in a few circumstances, for example, a display of the calling number. Moreover, the switch transmits data to the terminal in the FSK mode in general, while the terminal still transmits data to the switch in the DTMF mode.  
         [0004]     A first related art is shown in  FIG. 1 , the switch transmits data to the terminal in the DTMF mode, and the terminal also transmits information to the switch in the DTMF mode. Such a data transmission mode is time-consuming. For instance, when the switch needs to transmit contents of 100 bytes to the terminal and the terminal needs to return data of 100 bytes to the switch, it will take about 280 ms 100=16 s in the half-duplex mode, which is unacceptable for users.  
         [0005]     A second related art is shown in  FIG. 2 , the switch transmits data to the terminal in the FSK mode by using the calling identification information transmission technique, while the terminal transmits information to the switch in the DTMF mode. Compared with the technical scheme shown in  FIG. 1 , the second related art has made an improvement that the switch transmits data to the terminal in the FSK mode so as to save the transmssion time of downlink data. According to a speed of 1200 bits/s for transmitting FSK data, it can be calculated theoretically that 150 bytes may be transmitted per second (1200/8=150). Still take the example that the switch transmits contents of 100 bytes to the terminal and the terminal returns data of 100 bytes to the switch. It can be calculated that the overall time of the data transmission is 8.7 s, i.e., 80 ms 100+(1000/150 ms) 100=8.7 s (such additional information data as synchronous guiding string and the like is not involved). This time duration is still too long for users.  
       SUMMARY OF THE INVENTION  
       [0006]     Embodiments of the present invention provide a method for data transmission between a switch and a terminal, an FSK processing module, a terminal, and a switch, so as to solve the problem that the transmission with a mass of data between the switch and the terminal is time-consuming.  
         [0007]     A method for data transmission between a switch and a terminal includes:  
         [0008]     transmitting data between the switch and the terminal in a bidirectional Frequency Shift Keying (FSK) mode.  
         [0009]     A Frequency Shift Keying (FSK) processing module includes:  
         [0010]     an FSK data packet generating module, for generating a first FSK data packet and outputting the first FSK data packet;  
         [0011]     an FSK data packet parsing module, for parsing service data of a second FSK data packet upon receiving the second FSK data packet.  
         [0012]     A terminal includes:  
         [0013]     a Frequency Shift Keying (FSK) processing module, for generating a first FSK data packet according to service data generated by the terminal and transmitting the first FSK data packet; and parsing service data of a second FSK data packet;  
         [0014]     a receiving/transmitting module, for modulating the first FSK data packet in an FSK mode upon receiving the first FSK data packet, and outputting the first FSK data packet modulated; and demodulating the second FSK data packet upon receiving the second FSK data packet, and transmitting the second FSK data packet demoduled to the FSK processing module.  
         [0015]     A switch includes:  
         [0016]     a Frequency Shift Keying (FSK) processing module, for generating a first FSK data packet according to service data generated by the switch and transmitting the first FSK data packet; and parsing service data of a second FSK data packet;  
         [0017]     a receiving/transmitting module, for modulating the first FSK data packet in an FSK mode upon receiving the first FSK data packet, and outputting the first FSK data packet modulated; and demodulting the second FSK data packet upon receiving the second FSK data packet, and transmitting the second FSK data packet demodulated to the FSK processing module.  
         [0018]     The embodiments of the present invention provide a method for data transmission in the FSK mode. Owning to implementing service data transmission in the bidirectional FSK mode, the speed of the information transmission between the switch and the terminal is greatly improved so as to provide support for developing interaction services with a great amount of data between the switch and the terminal in communication plane. 
     
    
     BRIEF DESCRIPTION OF THE DRAWINGS  
       [0019]      FIG. 1  is a simplified schematic diagram illustrating a method for data transmission between a switch and a terminal in accordance with the first related art.  
         [0020]      FIG. 2  is a simplified schematic diagram illustrating a method for data transmission between a switch and a terminal in accordance with the second related art.  
         [0021]      FIG. 3  is a simplified schematic diagram illustrating a method for data transmission between a switch and a terminal in accordance with an embodiment of the present invention.  
         [0022]      FIG. 4  is a simplified schematic diagram illustrating a format and transmission sequence of an FSK data byte.  
         [0023]      FIG. 5  is a simplified schematic diagram illustrating a structure of a terminal in accordance with an embodiment of the present invention.  
         [0024]      FIG. 6  is a simplified schematic diagram illustrating a structure of a switch in accordance with an embodiment of the present invention.  
         [0025]      FIG. 7  is a simplified schematic diagram illustrating a structure of an FSK processing module in accordance with an embodiment of the present invention.  
         [0026]      FIG. 8  is a simplified flow chart illustrating data transmission between a switch and a terminal in accordance with an embodiment of the present invention. 
     
    
     DETAILED DESCRIPTION OF THE INVENTION  
       [0027]     The present invention is hereinafter described in detail with reference to the accompanying drawings and embodiments.  
         [0028]     As shown in  FIG. 3 , when data are transmitted between a switch and a terminal in a bidirectional FSK mode, the frequency of logic 1 of FSK signal is 1200 Hz±1%, the frequency of logic 0 of FSK signal is 2200±Hz  1  %, and the baud rate is 1200 Baud±1.2%. The modulation mode is a Continuous Phase Binary Frequency-Shift Keying (CP-BFSK) mode, and the data transmission mode is a binary asynchronous serial mode.  
         [0029]     As shown in  FIG. 4 , a format and transmission sequence of an FSK data byte should meet the demands of: a data byte has a start bit “0” and a stop bit “1”.  
         [0030]     The transmission sequence of the data byte is that the start bit is transmitted first, then the FSK data bits, and finally the stop bit. The FSK data is transmitted in the sequence of byte, that is, byte  1  is transmitted first, and then byte  2 . By analogy, the transmitted data signals are continuous.  
         [0031]     The format of an FSK data packet adopted during the data transmission in the bidirectional FSK mode is shown in Table 1.  
                                   TABLE 1                           Synchronous   Informa-   Informa-   Informa-   Informa-   Checksum       guiding   tion   tion   tion   tion       string   type   length   serial   content of                   number   message                       layer                  
 
         [0032]     1. Synchronous Guiding String  
         [0033]     The synchronous guiding string is composed of two parts. The first part includes continuous 80 alternate bits of “0” and “1” (“0” is transmitted before “1”, and the number of “0” and “1” is 80); the second part includes continuous 40 bits of “11” which constitutes a synchronous end string. After the receiver reads at least 50 alternate bits of “0” and “1” and at least 20 continuous bits of “1” serving as the synchronous end string, the synchronization may be considered established.  
         [0034]     2. Information Type  
         [0035]     The information type indicates the type of information contents. The length of the information type field is 1 byte and the detailed contents are shown in Table 2.  
                           TABLE 2                                   Transmission direction   Information type                           Switch to terminal   0 × 84           Terminal to switch   0 × 87                      
 
         [0036]     3. Information Length  
         [0037]     The information length means a sum of the number of the bytes of the information serial number and the number of the bytes of information contents of message layer. The length of the information length field is 1 byte.  
         [0038]     4. Information Serial Number  
         [0039]     The information serial number refers to a serial number of the current FSK data packet which is numbered from 0x00. The length of the information serial number filed is 1 byte.  
         [0040]     5. Information Contents of Message Layer  
         [0041]     The information contents of message layer are encoded in ASCII. For example, when needing to transmit a call fee of 2.30 yuan of the user to the terminal, the switch encodes the call fee “0x32 0x32E 0x33 0x30”, and the terminal may display the call fee to the user conveniently after receiving the data. This encoding format may meet data encoding requirements of all existing services.  
         [0042]     6. Checksum  
         [0043]     The checksum is used for finding errors during the data transmission, its value is the complement of modulo  256  of the sum of all bytes of the data packet except the synchronous guiding string. The length of the checksum field is 1 byte.  
         [0044]     Still take the example that the switch transmits contents of 100 bytes to the terminal and the terminal returns data of 100 bytes to the switch. Without the spended time of transmitting additional information contents involved, the overall time to be spended is 200/150=1.3 s (in real application, the overall time to be spended is about 3 s if such additional information contents as the synchronous guiding string is involved). Compared with the speed of the data transmission of the first related art and the second related art, the speed of the data transmission in this mode is greatly improved. Table 3 shows the experimental data of transmitting data in bidirectional FSK mode.  
                                         TABLE 3                                   The amount of transmitted data   Spended time (unit: ms)                                        10   220           30   390           50   560           80   810           100   970                      
 
         [0045]     In the embodiments of the present invention, an FSK processing module and a receiving/transmitting module may be set in both the switch and the terminal.  
         [0046]      FIG. 5  is a simplified schematic diagram illustrating a structure of a terminal in accordance with an embodiment of the present invention, wherein an FSK processing module  500 , connected with a receiving/transmitting module  510 , is used for generating a first FSK data packet according to service data generated by the terminal, transmitting the first FSK data packet to the receiving/transmitting module  510 , and parsing the service data of a second FSK data packet from the receiving/transmitting module  510 . The receiving/transmitting module  510  is used for modulating the first FSK data packet in an FSK mode upon receiving the first FSK data packet from the FSK processing module  500 , and outputting the first FSK data packet modulated; demodulating the second FSK data packet upon receiving the second FSK data packet transmitted to the terminal, and transmitting the second FSK data packet to the FSK processing module  500 . The terminal may further include a data input module  520  and a display module  530  which are all connected with the FSK processing module  500 . The FSK processing module  500  may generate the first FSK data packet according to the service data from the data input module  520  and transmit the parsed service data, e.g., this call fee, to the display module  530 . The display module  530  displays the received service data to the user.  
         [0047]      FIG. 6  is a simplified schematic diagram illustrating a structure of a switch in accordance with an embodiment of the present invention. As shown in  FIG. 6 , an FSK processing module  600  is used for generating a first FSK data packet according to service data generated by the switch, transmitting the first FSK data packet to a receiving/transmitting module  610 , and parsing the service data of a second FSK data packet from the receiving/transmitting module  610 . The receiving/transmitting module  610  is used for modulating the first FSK data packet in an FSK mode upon receiving the first FSK data packet from the FSK processing module  600 , and outputting the first FSK data packet modulated; demodulating the second FSK data packet upon receiving the second FSK data packet transmitted to the switch, and transmitting the FSK data packet to the FSK processing module  600 . The switch may further include a main control module  620  connected with the FSK processing module  600 . Therefore, the FSK processing module  600  may generate the first FSK data packet according to the service data from the main control module  620  and transmit the parsed service data to the main control module  620 .  
         [0048]     The above FSK processing module may further include an FSK data packet generating module  701  and an FSK data packet parsing module  702 , as shown in  FIG. 7 .  
         [0049]      FIG. 7  is a simplified schematic diagram illustrating a structure of an FSK processing module in accordance with an embodiment of the present invention. The FSK data packet generating module  701  is used for generating a first FSK data packet and transmitting the first FSK data packet to the opposite end through the receiving/transmitting module in the switch or the terminal. For the terminal, the FSK data packet generating module  701  is used for receiving service data information inputted by the user through the terminal data input module and generating the first FSK data packet with the service data information in the format shown in Table 1. For the switch, the FSK data packet generating module  701  is used for receiving service data information from the main control module of the switch and generating the first FSK data packet with the service data information in the format shown in Table 1.  
         [0050]     The FSK data packet parsing module  702  is used for receiving a second FSK data packet from the opposite end through the receiving/transmitting module in the switch or the terminal and parsing service data of the second FSK data packet for processing by the local. For the terminal, the service data parsed by the FSK data packet parsing module  702  may be transmitted to the display module of the terminal for displaying or to a storage module in the terminal for storing. For the switch, the service data parsed by the FSK data packet parsing module  702  may be transmitted to the main control module of the switch for processing.  
         [0051]     In addition, the receiving/transmitting module may modulate the first FSK data packet and demodulate the second FSK data packet in the CP-BFSK mode and transmit the first FSK data packet modulated in a binary asynchronous serial mode. Practically, the above FSK processing module may be set as a separate entity independent of the switch or the terminal.  
         [0052]      FIG. 8  is a simplified flow chart illustrating data transmission between a switch and a terminal in accordance with an embodiment of the present invention. As shown in  FIG. 8 , the procedure of the data transmission includes the following steps.  
         [0053]     Step  801 : a sender generates an FSK data packet in the format shown in Table 1 and transmits the generated data packet to a receiver.  
         [0054]     Step  802 : after receiving the FSK data packet, the receiver parses the FSK data packet. If determining that the synchronization with the sender is established, the receiver parses service data in the FSK data packet.  
         [0055]     If the above sender is a terminal and the receiver is a switch, the terminal generates, when needing to perform a service data interaction with the switch, the FSK data packet in the format shown in Table 1 according to service data to be interacted, such as a card number and password of the user, and transmits the generated FSK data packet to the switch. After receiving the FSK data packet, the switch first establishes synchronization according to the data in the synchronous guiding string, and then obtains the service data in the FSK data packet, and performs processing according to the service data, for example, validates the card number and password of the user, after the synchronization is established.  
         [0056]     If the above sender is a switch and the receiver is a terminal, the switch generates, when needing to perform a service data interaction with the terminal, the FSK data packet in the format shown in Table 1 according to the service data to be interacted, such as a call fee of the user, and transmits the generated FSK data packet to the terminal. After receiving the FSK data packet, the terminal first establishes synchronization according to the data in the synchronous guiding string, and then obtains the service data in the FSK data packet, and performs processing according to the service data, for example, display the fee on the display screen of the terminal for the user, after the synchronization is established.  
         [0057]     The foregoing description is only preferred embodiments of this invention and is not for use in limiting the protection scope thereof. All the modifications, equivalent replacements or improvements in the scope of the present invention&#39;s sprit and principles shall be included in the protection scope of the present invention.