IP Library Granted Patent US 9,326,127
Granted Patent B2
US 9,326,127 · App. 14/145,274 · Granted Apr 26, 2016

File read/write method and mobile terminal

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,326,127
App. No.
14/145,274
Granted
Apr 26, 2016
Kind
B2
Abstract

A file read/write method includes: determining whether a file to be read/written is a large file, where the file to be read/written is a file to be written into a calling card of the mobile terminal or a file to be read from the calling card; when a determining result is yes, negotiating with the calling card a rate of reading/writing the large file, and replacing a standard rate with a high rate as a file read/write rate of the calling card; and reading the file to be read/written from the calling card or writing the file to be read/written into the calling card according to the high rate. In the present invention, the file transmission rate may be automatically modified according to the size of a file to be read/written, so as to effectively shorten time of large-file read/write performed with a calling card.

Claims (41)

1. A file read/write method used in a mobile terminal, comprising:

determining whether a file to be read/written is a large file, wherein the file to be read/written is a file to be written into a calling card of the mobile terminal or a file to be read from the calling card;

when determining that the file to be read/written is the large file, negotiating with the calling card a rate of reading/writing the large file, and replacing a standard rate with a high rate as a file read/write rate of the calling card, wherein the rate of reading/writing the large file is negotiated by the mobile terminal sending an application protocol data unit (APDU) data packet to the calling card, wherein the APDU data packet comprises a command type of a current data frame, a rate negotiation instruction, and a new transmission rate value;

reading the file to be read/written from the calling card or writing the file to be read/written into the calling card according to the high rate; and

automatically recovering the standard rate when the reading or the writing according to the high rate is completed.

2. The method according to claim 1 , wherein reading the file to be read/written from the calling card or writing the file to be read/written into the calling card according to the high rate, comprises:

modifying a crystal oscillation frequency of a file read/write clock of the calling card from a standard crystal oscillation frequency into a high rate crystal oscillation frequency according to the high rate; and

reading the file to be read/written from the calling card or writing the file to be read/written into the calling card according to the high rate crystal oscillation frequency.

3. The method according to claim 2 , further comprising:

after the file is read/written, sending a rate recovery instruction to the calling card, and instructing the calling card to recover the file read/write rate to the standard rate; and

recovering a crystal oscillation frequency of a file read/write clock of the calling card to a standard crystal oscillation frequency.

4. The method according to claim 2 , wherein the method is used in a startup procedure, a phone book initialization procedure, and a short message initialization procedure of the mobile terminal.

5. The method according to claim 1 , further comprising:

after the file is read/written, sending a rate recovery instruction to the calling card, and instructing the calling card to recover the file read/write rate to the standard rate; and

recovering a crystal oscillation frequency of a file read/write clock of the calling card to a standard crystal oscillation frequency.

6. The method according to claim 2 , wherein negotiating with the calling card the rate of reading/writing the large file, and replacing the standard rate with the high rate as the file read/write rate of the calling card, comprises receiving a rate negotiation success response returned by the calling card according to the APDU data packet, wherein the rate negotiation success response comprises two bytes.

7. The method according to claim 5 , wherein negotiating with the calling card the rate of reading/writing the large file, and replacing the standard rate with the high rate as the file read/write rate of the calling card, comprises receiving a rate negotiation success response returned by the calling card according to the APDU data packet, wherein the rate negotiation success response comprises two bytes.

8. The method according to claim 5 , wherein the method is used in a startup procedure, a phone book initialization procedure, and a short message initialization procedure of the mobile terminal.

9. The method according to claim 1 , wherein negotiating with the calling card the rate of reading/writing the large file, and replacing the standard rate with the high rate as the file read/write rate of the calling card, comprises receiving a rate negotiation success response returned by the calling card according to the APDU data packet, wherein the rate negotiation success response comprises two bytes.

10. The method according to claim 9 , wherein the method is used in a startup procedure, a phone book initialization procedure, and a short message initialization procedure of the mobile terminal.

11. The method according to claim 1 , wherein the method is used in a startup procedure, a phone book initialization procedure, and a short message initialization procedure of the mobile terminal.

12. The method according to claim 1 , wherein the calling card is a universal subscriber identity module (USIM) or subscriber identity module (SIM).

13. A mobile terminal connected to a calling card, comprising:

a computer processor configured to:

determine whether a file to be read/written is a large file, wherein the file to be read/written is a file to be written into the calling card or a file to be read from the calling card;

when a determining result is that the file to be read/written is the large file, negotiate with the calling card a rate of reading/writing the large file, and replace a standard rate with a high rate as a file read/write rate of the calling card, wherein the rate of reading/writing the large file is negotiated by the mobile terminal sending an application protocol data unit (APDU) data packet to the calling card, wherein the APDU data packet comprises a command type of a current data frame, a rate negotiation instruction, and a new transmission rate value;

read the file to be read/written from the calling card or write the file to be read/written into the calling card according to the high rate; and

automatically recover the standard rate when the reading or the writing according to the high rate is completed.

14. The mobile terminal according to claim 13 , wherein the computer processor is configured to:

modify a crystal oscillation frequency of a file read/write clock of the calling card from a standard crystal oscillation frequency into a high rate crystal oscillation frequency according to the high rate; and

read the file to be read/written from the calling card or write the file to be read/written into the calling card according to the high rate crystal oscillation frequency.

15. The mobile terminal according to claim 14 , wherein the computer processor is configured to:

after reading/writing the file, send a rate recovery instruction to the calling card, and instruct the calling card to recover the file read/write rate to the standard rate; and

recover a crystal oscillation frequency of a file read/write clock of the calling card to a standard crystal oscillation frequency.

16. The mobile terminal according to claim 14 , wherein the computer processor is configured to receive a rate negotiation response returned by the calling card, and when the response is a rate negotiation success response, replace the standard rate with the high rate as the file read/write rate of the calling card, wherein the rate negotiation success response comprises two bytes.

17. The mobile terminal according to claim 13 , wherein the computer processor is configured to:

after reading/writing the file, send a rate recovery instruction to the calling card, and instruct the calling card to recover the file read/write rate to the standard rate; and

recover a crystal oscillation frequency of a file read/write clock of the calling card to a standard crystal oscillation frequency.

18. The mobile terminal according to claim 17 , wherein the computer processor is configured to receive a rate negotiation response returned by the calling card, and when the response is a rate negotiation success response, replace the standard rate with the high rate as the file read/write rate of the calling card, wherein the rate negotiation success response comprises two bytes.

19. The mobile terminal according to claim 13 , wherein the computer processor is configured to receive a rate negotiation response returned by the calling card, and when the response is a rate negotiation success response, replace the standard rate with the high rate as the file read/write rate of the calling card, wherein the rate negotiation success response comprises two bytes.

20. The mobile terminal according to claim 13 , wherein the calling card is a subscriber identity module (SIM) or universal subscriber identity module (USIM).

Assignments (3)
CHANGE OF NAME Recorded Mar 11, 2019
From: HUAWEI DEVICE (DONGGUAN) CO.,LTD.
To: HUAWEI DEVICE CO.,LTD.
Reel/Frame 048555/0951 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 5, 2017
From: HUAWEI DEVICE CO., LTD.
To: HUAWEI DEVICE (DONGGUAN) CO., LTD.
Reel/Frame 043750/0393 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 4, 2014
From: XU, JIANG
To: HUAWEI DEVICE CO., LTD.
Reel/Frame 032139/0325 →