CN103312463A - Method for mobile phone to send large data in WAP mode - Google Patents
Method for mobile phone to send large data in WAP mode Download PDFInfo
- Publication number
- CN103312463A CN103312463A CN 201210062677 CN201210062677A CN103312463A CN 103312463 A CN103312463 A CN 103312463A CN 201210062677 CN201210062677 CN 201210062677 CN 201210062677 A CN201210062677 A CN 201210062677A CN 103312463 A CN103312463 A CN 103312463A
- Authority
- CN
- China
- Prior art keywords
- cell data
- send
- data bag
- described cell
- mobile phone
- 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
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a method for a mobile phone to send large data in a WAP mode. The method comprises the steps that the data to be sent are divided into a number of unit data packets; a connection channel is created, and the unit data packets are sent one by one; after response information which expresses correct receiving and is returned by a server is received, whether remaining unit data packets are not sent is determined, and if remaining unit data packets are not sent, the connection channel is kept continuous, and the request to send a next unit data packet is directly initiated; and if remaining unit data packets are sent, the connection channel is disconnected and reminding a user of successful sending is carried out. According to the invention, the method for the mobile phone to send large data in the WAP network mode can continuously send data under the condition that the network connection channel is kept, effectively improves the efficiency of the entire sending process, further enhances the stability of data transmission, and well saves GPRS network traffic.
Description
Invention field
The present invention relates to wireless communication technology field, particularly relate to mobile phone sends big data under the WAP network access mode method.
Background technology
In recent years, along with scientific and technological level and expanding economy, mobile communication is able to fast development, and the popularity rate of mobile phone increases substantially.The function and application of mobile phone has also obtained further integrated and abundant, satisfies people with this and pursues demand more personalized and the facilitation life.Obtained popularizing greatly such as the mobile phone electronic mail service, people needn't just can send and receive e-mail by computer, and are light and handy, convenient, welcome by the business people.Yet mobile phone is not computer after all, still has big gap at aspect such as bandwidth, dominant frequency and stability of data transmission and computer, and this also is the key factor that the limiting handset E-mail service is popularized.
The GSM mobile handset wirelessly transmitting data mainly carries out data interaction based on GPRS network at present.Access way comprises two kinds, i.e. WAP and NET.When wherein using the WAP mode, the size of each packet generally is limited in the 20KB, sends the easy block system task of excessive packet, influences the request of system's other tasks of real-time response.Before sending packet, need the new network connection passage of creating, close this passage immediately after sending this packet.
For sending small data, the influence of speed aspect is not clearly, but for the transmission of big data, such as the data greater than 100KB, need be divided into many cell data bags and send, and according to general transmit mechanism, namely when transmission during a plurality of packet, whenever send a cell data bag after, disconnect interface channel, discharge resource, create the transmission that new interface channel carries out next cell data bag more again; Connect owing to disconnect frequently connecting and creating, the probability that makes passage make mistakes improves, and whole process of transmitting is also extremely very long, also wastes the GPRS flow greatly simultaneously, and efficient is lower, increases user's use cost.On the other hand, once certain packet sends failure or server end is closed service in the process of transmitting, just might cause whole process of transmitting to be fallen short of success for lack of final effort, equally also can cause the significant wastage of GPRS flow.
Summary of the invention
In order to solve the problems of the technologies described above, the invention provides a kind of mobile phone sends big data under the WAP mode method, to keep network under the connection situation, to send data continuously and to support the data breakpoint transmission, improve transmitting efficiency and stability, save the GPRS network flow, overcome mobile phone sends big data under the WAP network connecting mode deficiency.
Mobile phone provided by the present invention sends the method for big data under the WAP mode, comprise data to be sent are divided into a plurality of cell data bags; Create interface channel, send described cell data bag one by one; After receiving the correct response message that receives of expression that server end returns, judged whether that remaining described cell data bag does not send, if, then keep interface channel not disconnect, directly initiate the request of the next described cell data bag of transmission; If not, then disconnect interface channel and point out the user to send success.
Preferably, before described method also is included in and sends described cell data bag, record the sequence number of the described cell data bag of current transmission.
Preferably, described method backs up described cell data bag before also being included in and sending described cell data bag, for making a mistake or the described cell data bag of network disconnection back repeating transmission.
Preferably, after described method also is included in and receives the response message that described server end returns, will send the protection timer and reset.
Preferably, if wherein described response message represents that server end correctly receives the packet that the user uploads, the memory source of monopolizing when once sending described cell data bag before then discharging, and reset passages connection status sign.
Preferably, if wherein described response message represents that server end receives mistake, disconnect and create interface channel after connecting again again and lay equal stress on and send described cell data bag, realize breakpoint transmission.
Preferably, in case wherein create the total degree that the number of times of interface channel surpasses restriction again, then finish whole process of transmitting, the corresponding error message of prompting user.
Preferably, the size of wherein said cell data bag is no more than 10KB.
Beneficial effect of the present invention is, a kind of transmission mechanism quick, stable relatively when sending mass data under the WAP network connecting mode can be provided.Simultaneously, at the narrow bandwidth in the GSM mobile handset, thereby the unstable characteristics that cause bust this easily of transmission adopt the breakpoint transmission function can well guarantee the stability of transmitting, and better save the GPRS flow.
Description of drawings
Fig. 1 is mobile phone of the present invention sends the method for big data under the WAP mode preferred embodiment.
Specific embodiment
Fig. 1 is mobile phone of the present invention sends the method for big data under the WAP mode preferred embodiment.It is example that present embodiment sends mail with mobile phone.As shown in Figure 1, before beginning to transmit data, need to create interface channel, the sign that resets and send, and total mail data is divided into the 10KB size is the cell data bag (step S101) of the upper limit.The cell data bag size here is rule of thumb to be worth and to decide, and when the general cell packet was excessive, the mobile phone end sends this cell data bag can take too much system time, causes system task to stop up easily, thereby influences the real-time response of other application.
The transmitting element packet, and the packet of this time transmission backed up (step S102).Judge whether correctly receiving element packet (step S103) of server.Particularly, when receiving the response message that server end returns, if this response message represents to receive mistake, judge then whether retransmit number of times surpasses restriction (step S105), if surpass restriction, then resend a packet, and the number of times (step S107) of record repeating transmission, surpass certain limitation and then finish whole process of transmitting (step S106), the prompting user sends failure.
For the number of times upper limit of retransmitting, the selected influence that needs to consider two aspect factors of its size, first gateway server (as the WAP of China Mobile server) holding time to each interface channel, general, gateway server can disconnect this passage by force after sending the data of 50KB, and returns HTTP 500 error codes, and the mobile phone end disconnects old interface channel in this case, and create new interface channel again, continue to retransmit a last packet; It two also can require the mobile phone end to retransmit this packet after to be upstream server ends to the packet that receives resolve failure, and the probability that general this situation occurs is not high, and whole process of transmitting considers that 3~5 surpluses get final product.
What receive when the mobile phone end is the response message that correctly receives the packet that the user uploads from the described server end of expression that server returns, and when for example correctly receiving answer back code, judges whether remaining data bag (step S104) to be sent in addition earlier.If be last packet, then close connection, finish whole process of transmitting (step S106), the prompting user sends and finishes; Otherwise keep to connect, the process of transmitting sign that resets begins to send next packet (step S102), until the transmission remaining data bag that finishes.
The E-mail service of mobile phone electronic mail service and computer is similar, and major function comprises the transmitting-receiving of Email, the setting of the management of address list, the management of annex, blacklist, the deletion of mail and classification etc.Because mobile phone end GPRS speed uplink is slow more many than downstream rate, the GPRS speed uplink of mobile phone end becomes the key factor that the restriction e-mail applications is popularized at the 2.5G mobile phone.Use the method in the present embodiment, under the same hardware environment, when mobile phone used this method to send big data under the WAP mode, efficient improved more than 35%, makes that big data transmission procedure is more stable, and saved the GPRS flow.
Mobile phone disclosed by the invention sends data continuously in the method that sends big data under the WAP network mode under the situation of maintenance network connection passage, the breakpoint transmission function is provided, and retransmit a last packet during at server response timeout or network error, effectively raise the efficient of whole process of transmitting, further strengthen stability of data transmission, also well saved the GPRS network flow simultaneously.
The above only is preferred embodiment of the present invention, and the ordinary technical staff in the technical field of the invention is not in breaking away from spirit of the present invention and essence, when making various corresponding changes and distortion.Therefore, protection scope of the present invention is as the criterion when looking claims person of defining.
Claims (8)
1. a mobile phone sends the method for big data under the WAP mode, it is characterized in that, comprising:
Data to be sent are divided into a plurality of cell data bags;
Create interface channel, send described cell data bag one by one;
After receiving the correct response message that receives of expression that server end returns, judged whether that remaining described cell data bag does not send, if, then keep interface channel not disconnect, directly initiate the request of the next described cell data bag of transmission; If not, then disconnect interface channel and point out the user to send success.
2. method according to claim 1 is characterized in that, also be included in send described cell data bag before, record the sequence number of the described cell data bag of current transmission.
3. method according to claim 1 is characterized in that, also be included in send described cell data bag before, described cell data bag is backed up.
4. according to claim 2 or 3 described methods, it is characterized in that, also be included in receive the response message that described server end returns after, will send the protection timer and reset.
5. method according to claim 4, it is characterized in that, if wherein described response message represents that described server end correctly receives the packet that the user uploads, the memory source of monopolizing when once sending described cell data bag before then discharging, and reset passages connection status sign.
6. method according to claim 5 is characterized in that, if wherein described response message represents that described server end receives mistake, then disconnects and creates interface channel after connecting again again and lay equal stress on and send described cell data bag.
7. method according to claim 6 is characterized in that, in case wherein create the total degree that the number of times of interface channel surpasses restriction again, then finishes whole process of transmitting, the corresponding error message of prompting user.
8. method according to claim 7 is characterized in that, the size of wherein said cell data bag is no more than 10KB.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201210062677 CN103312463A (en) | 2012-03-11 | 2012-03-11 | Method for mobile phone to send large data in WAP mode |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201210062677 CN103312463A (en) | 2012-03-11 | 2012-03-11 | Method for mobile phone to send large data in WAP mode |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103312463A true CN103312463A (en) | 2013-09-18 |
Family
ID=49137280
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201210062677 Pending CN103312463A (en) | 2012-03-11 | 2012-03-11 | Method for mobile phone to send large data in WAP mode |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103312463A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105453690A (en) * | 2013-12-18 | 2016-03-30 | 华为技术有限公司 | Method and apparatus for sta state transition in wlan system |
CN112859809A (en) * | 2021-01-11 | 2021-05-28 | 上海星融汽车科技有限公司 | Vehicle ECU (electronic control Unit) flashing method and system and lower computer of vehicle diagnosis equipment |
-
2012
- 2012-03-11 CN CN 201210062677 patent/CN103312463A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105453690A (en) * | 2013-12-18 | 2016-03-30 | 华为技术有限公司 | Method and apparatus for sta state transition in wlan system |
CN112859809A (en) * | 2021-01-11 | 2021-05-28 | 上海星融汽车科技有限公司 | Vehicle ECU (electronic control Unit) flashing method and system and lower computer of vehicle diagnosis equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101729586A (en) | Data uploading method and device, data downloading method and device as well as data transmission method and device | |
CN102480517A (en) | Data push method, mobile terminal and server | |
CN103152716A (en) | Automatic recharge method and mobile communication terminal thereof | |
CN103166832A (en) | Method and server for sending message | |
CN104125321B (en) | A kind of contact details update method, device and system | |
CN103347273A (en) | Device and method for automatically selecting optimal transmission mode according to service requirements | |
CN101695202A (en) | Method and system for transmitting big accessory | |
CN101789105B (en) | Packet-level dynamic mail attachment virus detection method | |
WO2014019470A1 (en) | Method and system for updating user calling card | |
CN101754112A (en) | Method and device for processing mobile electronic mail service | |
CN101888602A (en) | Message processing device and method, message service system and message center | |
CN102404248B (en) | The method of converged message and mail applications and device | |
CN103024694A (en) | Method, device and mobile terminal of multi-people message sending | |
CN103139713B (en) | Wireless multimedia drift bottle system and method based on local-area broadcasting | |
CN101404792A (en) | Mobile phone message backup method and system | |
CN103312463A (en) | Method for mobile phone to send large data in WAP mode | |
CN104427551A (en) | A business message transmitting method and apparatus | |
CN101621767A (en) | Method and device for remotely setting short message forwarding | |
CN103648085A (en) | Mobile terminal message transmitting method for overcoming network jitter | |
CN102256224A (en) | Short message reminding method, equipment and communication system | |
CN102497306B (en) | A kind of distribution substation realizes the method and system of transfer of data | |
CN103873533A (en) | Method, device and system used for pushing information | |
CN102685234A (en) | Social-network-based address book updating and synchronizing method | |
CN103402229A (en) | Data downloading method and data downloading system | |
CN106850980B (en) | The method for cleaning and mobile terminal of Email attachment in a kind of mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130918 |