CN110572864A - storage and calling method of network-resident frequency band, mobile terminal and computer storage medium - Google Patents

storage and calling method of network-resident frequency band, mobile terminal and computer storage medium Download PDF

Info

Publication number
CN110572864A
CN110572864A CN201910803460.0A CN201910803460A CN110572864A CN 110572864 A CN110572864 A CN 110572864A CN 201910803460 A CN201910803460 A CN 201910803460A CN 110572864 A CN110572864 A CN 110572864A
Authority
CN
China
Prior art keywords
label
sequence
sequencing
sequence corresponding
frequency band
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
CN201910803460.0A
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201910803460.0A priority Critical patent/CN110572864A/en
Publication of CN110572864A publication Critical patent/CN110572864A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
    • H03M7/60General implementation details not specific to a particular type of compression
    • H03M7/6058Saving memory space in the encoder or decoder
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
    • H03M7/70Type of the data to be coded, other than image and sound
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Abstract

the invention discloses a method for storing a resident network frequency band, which comprises the following steps: converting the N network residing frequency bands into a sequencing sequence according to a preset coding rule; sequencing the N sequencing sequences according to a preset sequencing rule, and labeling each sequencing sequence according to the sequencing sequence of the N sequencing sequences; storing the sequencing sequence corresponding to the first label; and acquiring a difference sequence of the sorting sequence corresponding to the ith label relative to the sorting sequence corresponding to the (i-1) th label, and storing the difference sequence, wherein i is a positive integer and is less than or equal to N. The invention also discloses a calling method of the resident network frequency band. The invention also discloses a mobile terminal. The invention also discloses a computer storage medium. According to the invention, the resident network frequency band is converted and stored according to the preset rule, so that the burden of a storage space is effectively reduced, and the efficiency of the mobile terminal for acquiring the resident network frequency band is ensured.

Description

Storage and calling method of network-resident frequency band, mobile terminal and computer storage medium
Technical Field
the invention relates to the technical field of frequency band processing of mobile terminals, in particular to a method for storing and calling a resident network frequency band, a mobile terminal and a computer storage medium.
Background
One of the most basic functions of a mobile terminal is to connect to a base station and to camp on a specific frequency band, so that a user can connect the mobile terminal to a network provided by an operator, thereby performing functions such as telephone, internet access, short message, and the like. At present, the radio frequency wireless function of the mobile terminal is increasingly complex, and from 2G such as gsm in the early stage to 4G such as LTE in the present stage, the included systems are more and more, and the frequency bandwidth is also more and more.
When a mobile terminal is used to perform frequency band network residence, some network residence frequency bands are often placed into a storage space, and then relevant operations, such as network searching operations in sequence, can be performed on the storage space. In the prior art, no processing is performed on the network-resident frequency band storage space, and only the frequency band is stored. Particularly, as the number of frequency bands that can be supported by the mobile terminal increases, various frequency bands are written into the memory space, which increases the burden on the memory space and reduces the operation efficiency.
therefore, how to effectively reduce the burden of the storage space to improve the efficiency of acquiring the network-resident frequency band is an urgent technical problem to be solved by those skilled in the art.
Disclosure of Invention
in order to solve the problems in the prior art, the invention provides a method for storing and calling a resident network frequency band, a mobile terminal and a computer storage medium.
in order to achieve the purpose of the invention, the invention adopts the following technical scheme:
According to an aspect of the present invention, there is provided a method for storing a network-resident frequency band,
Converting the N network residing frequency bands into a sequencing sequence according to a preset coding rule; wherein N is an integer, and N is more than 0;
Sequencing the N sequencing sequences according to a preset sequencing rule, and labeling each sequencing sequence according to the sequencing sequence of the N sequencing sequences;
Storing the sequencing sequence corresponding to the first label;
And acquiring a difference sequence of the sorting sequence corresponding to the ith label relative to the sorting sequence corresponding to the (i-1) th label, and storing the difference sequence, wherein i is a positive integer and is less than or equal to N.
Further, the method for converting the N network-resident frequency bands into the sequencing sequence according to the preset coding rule comprises the following steps:
Converting the network-resident frequency band into an original code sequence according to a preset original code rule;
if the digit of the original code sequence is the same as the standard digit, the original code sequence is the corresponding sequencing sequence;
Otherwise, filling up the missing digits of the original code sequence by using pseudo codes to obtain a corresponding sequencing sequence with the digits being the same as the standard digits;
The pseudo codes are different from effective codes of other bits, and the pseudo codes are smaller than the other effective codes in sorting.
further, the method for obtaining the difference sequence of the sorting sequence corresponding to the ith label relative to the sorting sequence corresponding to the (i-1) th label comprises the following steps:
sequentially comparing the sequencing sequence of the ith label with the same number of bits of the sequencing sequence of the (i-1) th label from high order to low order;
and if the same-bit codes of the sequencing sequence of the ith label and the sequencing sequence of the (i-1) th label are different, taking the code of the bit number of the ith label, which is different from the code of the (i-1) th label, to the code of the last bit of the ith label as a difference sequence of the sequencing sequence corresponding to the (i-1) th label of the sequencing sequence corresponding to the ith label.
According to another aspect of the present invention, there is also provided a method for calling a network-resident frequency band, where the method includes:
Acquiring a mark i of a network-resident frequency band to be called, wherein i is a positive integer;
If the label i is the first label, converting the coding sequence corresponding to the label i and stored in the coding sequence into a corresponding network-resident frequency band according to a preset transcoding rule;
otherwise, acquiring a difference sequence corresponding to the ith label, acquiring an original code sequence corresponding to the ith label according to the difference sequence corresponding to the ith label and the original code sequence of the (i-1) th label, and converting the original code sequence corresponding to the ith label into a corresponding network-resident frequency band according to a preset transcoding rule.
further, the method for converting the coding sequence stored corresponding to the label into the corresponding network-resident frequency band according to the preset transcoding rule comprises the following steps:
If the coding sequence corresponding to the label i comprises a pseudo code, removing the pseudo code to obtain an original code sequence corresponding to the label i, and converting the obtained original code sequence into a corresponding network-resident frequency band according to a preset original code rule;
and if the coded sequence corresponding to the ith label does not comprise a pseudo code, the coded sequence corresponding to the ith label is the original code sequence corresponding to the ith label, and the obtained original code sequence is converted into the corresponding resident network frequency band according to a preset original code rule.
further, the method for obtaining the original code sequence corresponding to the ith label according to the difference sequence corresponding to the ith label and the original code sequence of the (i-1) th label includes:
If the number of bits of the difference sequence corresponding to the ith label is greater than or equal to the number of bits of the original code sequence corresponding to the (i-1) th label, the difference sequence corresponding to the ith label is the original code sequence corresponding to the ith label;
And if the number of the bits of the differential sequence corresponding to the ith label is less than that of the original code sequence corresponding to the (i-1) th label, replacing the code of the bit corresponding to the differential sequence of the ith label in the original code sequence of the (i-1) th label with the code of the bit corresponding to the differential sequence of the ith label so as to obtain a code sequence which is the original code sequence corresponding to the ith label.
Further, the method for acquiring the original code sequence of the i-1 th label comprises the following steps:
If the i-1 th label is the first label, removing the pseudo code in the coding sequence corresponding to the i-1 th label to obtain the original code sequence corresponding to the i-1 th label;
If the i-1 th label is not the first label, the original code sequence corresponding to the i-1 th label is obtained according to the difference sequence corresponding to the i-1 th label and the original code sequence of the i-2 th label.
According to still another aspect of the present invention, there is also provided a mobile terminal including: the device comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to implement the steps of the storage method of the network-resident frequency band and/or the calling method of the network-resident frequency band.
According to another aspect of the present invention, there is also provided a computer storage medium storing a computer program, wherein the computer program is executed by a processor to implement the steps of the method for storing the network-resident frequency band and/or the method for calling the network-resident frequency band.
The invention has the beneficial effects that: the invention effectively reduces the burden of a storage space and simultaneously ensures the efficiency of the mobile terminal for acquiring the resident network frequency band by converting and storing the resident network frequency band according to the preset rule
Drawings
the above and other aspects, features and advantages of embodiments of the present invention will become more apparent from the following description taken in conjunction with the accompanying drawings, in which:
Fig. 1 is a hardware configuration diagram of a mobile terminal according to an embodiment of the present invention;
Fig. 2 is a flowchart of a method for storing a network-resident frequency band according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for invoking a network-resident frequency band according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the specific embodiments set forth herein. Rather, these embodiments are provided to explain the principles of the invention and its practical application to thereby enable others skilled in the art to understand the invention for various embodiments and with various modifications as are suited to the particular use contemplated. In the drawings, the shapes and sizes of elements may be exaggerated for clarity, and the same reference numerals will be used throughout to designate the same or similar elements.
The technical solution of the embodiment of the present invention can be applied to all Mobile terminals, for example, the Mobile terminal can be a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a media player, a smart television, a notebook Computer (Laptop Computer), a Personal digital assistant (Personal digital assistant, abbreviated as "PDA"), a Personal Computer (Personal Computer), a Mobile Internet Device (Mobile Internet Device), a Wearable Device (smart watch), and the like, and the embodiment of the present invention is not limited thereto. In the embodiments of the present application, a mobile terminal is taken as an example for description.
example one
Fig. 1 is a hardware configuration diagram of a mobile terminal according to an embodiment of the present invention.
Referring to fig. 1, the mobile terminal may include a processor therein, a memory, a display screen, and an input/output device, which are respectively connected to the processor. Wherein the memory may be used to store programs and data including programs of applications displayed on the display screen, and the processor executes various functional applications of the mobile terminal and data processing, such as controlling functions of applications installed in the mobile terminal displayed on the display screen, by executing the programs stored in the memory.
The following describes each component of the mobile terminal 100 in detail with reference to fig. 1:
The processor 110 is a control center of the mobile terminal 100, connects various parts of the entire mobile terminal 100 using various interfaces and lines, and performs various functions of the mobile terminal 100 and processes data by running or executing programs (or called "modules") stored in the memory 120 and calling data stored in the memory 120, thereby monitoring the mobile terminal 100 as a whole.
Optionally, the processor 110 may include at least one processing unit. Alternatively, the processor 110 may integrate the application processor 110 and the modem processor 110. The application processor 110 mainly processes an operating system, a user interface, an application program, and the like, and the modem processor 110 mainly processes wireless communication. It is to be understood that the modem processor 110 described above may not be integrated into the processor 110.
the memory 120 mainly includes a program storage area and a data storage area. The storage program area may store an operating system (for example, an android operating system, abbreviated as "android system", or an ios operating system, or another operating system, where the operating system may also be abbreviated as "system"), an application program (for example, a sound playing function, an image playing function, and the like) required by at least one function, a computer program (which is executed by the processor 110 to implement the storage method of the network-resident frequency band and/or the calling method of the network-resident frequency band in the embodiments of the present invention) related to the embodiments of the present application, and the like. The storage data area may store data created according to the use of the mobile terminal 100, including related setting information or use case information of the application displayed on the display screen 130, etc. referred to in the embodiments of the present application, and also include coded sequences corresponding to the respective reference numerals referred to in the embodiments of the present application. Further, the memory 120 may include high speed random access memory 120, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, and other volatile solid state storage devices.
The input and output device 140 may be used to receive input numerical or character information and to generate input instructions for key signal input related to user settings and function control of the mobile terminal 100. In particular, the input-output devices 140 may include a touch screen 141 as well as other input-output devices 140. The touch screen 141 may collect touch operations (for example, operations of the user on the touch screen 141 by using any suitable object or accessory such as a finger, a stylus, etc., and may also include false touch operations of non-finger clicks such as cheek, ear, and thigh of the user) on or near the touch screen 141, and drive the corresponding connection device according to a preset program. The input and output device 140 may include other input and output devices in addition to the touch screen 141. In particular, other input and output devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display screen 130 may be used to display information input by or provided to the user and various applications installed by the mobile terminal 100. The display screen 130 may include a display panel 131. Alternatively, the display panel 131 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch screen 141 may cover the display panel 131. Although the touch screen 141 and the display panel 131 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal 100, in some embodiments, the touch screen 141 and the display panel 131 may be integrated to implement the input and output functions of the mobile terminal 100.
those skilled in the art will appreciate that the internal structure of the mobile terminal 100 shown in fig. 1 does not constitute a limitation to the specific structure of the mobile terminal 100. May include more or fewer components than shown, or may combine certain components, or a different arrangement of components. For example, the mobile terminal 100 may also include audio circuitry, speakers, and a microphone, among other things, that provide an audio interface between the user and the mobile terminal 100. When the mobile terminal 100 communicates with the outside wirelessly, it may further include a Radio Frequency (RF) circuit and a connected antenna, a wireless fidelity (WiFi) module and a connected antenna, etc. In addition, the mobile terminal 100 further includes a sensor, a power supply for supplying power thereto, and the like, which are not listed here.
Example two
the present embodiment discloses a method for storing a network-resident frequency band, which can be applied to the mobile terminal described in the first embodiment.
Fig. 2 is a flowchart of a method for storing a network-resident frequency band according to an embodiment of the present invention.
the main body of the implementation of the method for storing the network-resident frequency band shown in fig. 2 may be understood as the processor 110. Referring to fig. 2, a method for storing a network-resident frequency band according to an embodiment of the present invention includes:
A100, converting the N network-resident frequency bands into a sequencing sequence according to a preset coding rule; wherein N is an integer, and N is more than 0;
specifically, step a100 specifically includes the steps of:
and converting the network-resident frequency band into an original code sequence according to a preset original code rule.
specifically, in this embodiment, the network-camping frequency band includes: WCDMA Band1, WCDMA Band2, WCDMA Band5, WCDMA Band8, LTE Band1, LTE Band2, LTE Band3, LTE Band5, LTE Band7, LTE Band38, LTEBand41, etc. The "preset source code rule" is to predefine a corresponding relationship between each character and a code in the network-resident frequency band, for example: we can reserve 4 bits to represent the type of the frequency Band, for example, 1, that is, "0001" represents LTE, 4 bits represent the number of the frequency Band in the frequency Band, for example, "1," that is, "0001" represents Band1, and2, "that is," 0002 "represents Band 2. The above is only an example, and the specific coding rule can be designed according to the actual design requirement, so as to convert the network-resident frequency band into the original code sequence. For example, we pre-define the original code sequence corresponding to "LET B1" as "10001"; the original code sequence corresponding to "LET B11" is "10011".
if the digit of the original code sequence is the same as the standard digit, the original code sequence is the corresponding sorting sequence.
Specifically, the standard number of bits is to unify the number of bits of each code sequence so that the same number of bits can be compared in order. Preferably, the standard number of bits is greater than or equal to the number of bits of the most significant code sequence among all the original code sequences, it being understood that the standard number of bits is less than or equal to the maximum number of bits that can be stored in the storage space.
Otherwise, filling up the missing digits of the original code sequence by using pseudo codes to obtain a corresponding sequencing sequence with the digits being the same as the standard digits.
specifically, if the number of bits of the primary code sequence is less than the standard number of bits, the missing number of bits of the primary code sequence is filled with the pseudo code to obtain a corresponding sorted sequence with the same number of bits as the standard number of bits, for example, the primary code sequence is "110001", the number of bits of the primary code sequence is 6 bits, and assuming that the standard number of bits is 8 bits, the missing number of bits of the primary code sequence "110001" is filled with the pseudo code to obtain "& & 110001", which is the sorted sequence of the primary code sequence "110001".
a200, sequencing the N sequencing sequences according to a preset sequencing rule, and labeling each sequencing sequence according to the sequencing sequence of the N sequencing sequences;
Specifically, it is assumed that there are 6 sorted sequences, "& & 110001", "& & 110002", "& & 100001", "12360011", "12360007", "22360007". In this embodiment, the preset ordering rule means: comparing the sequence from high to low, wherein the pseudo code is smaller than all effective codes, and the 6 sequencing sequences sequentially comprise the following sequences from small to large through comparison:
&&100001;
&&110001;
&&110002;
1 2 360007;
1 2 360011;
2 2 360007;
labeling each sequencing sequence according to the sequencing sequence from small to large:
1:&&100001;
2:&&110001;
3:&&110002;
4:1 2 360007;
5:1 2 360011;
6:2 2 360007;
in the present embodiment, the numerals are given by the arabic numerals "1, 2, 3 … …", but in other embodiments, the numerals may be given by other symbols that can indicate the order, such as the letters "a, b, c … …".
A300, storing the sequencing sequence corresponding to the first label;
specifically, in this embodiment, when the first label is "1", and the corresponding label "1" stores the corresponding sorting sequence "& & 100001", that is, when the label "1" is called, the corresponding stored sorting sequence "& & 100001" may be called.
And A400, acquiring a difference sequence of the sorting sequence corresponding to the ith label relative to the sorting sequence corresponding to the (i-1) th label, and storing the difference sequence, wherein i is a positive integer and is not more than N.
Specifically, step a400 includes the steps of:
sequentially comparing the sequencing sequence of the ith label with the same number of bits of the sequencing sequence of the (i-1) th label from high order to low order;
And if the same-bit codes of the sequencing sequence of the ith label and the sequencing sequence of the (i-1) th label are different, taking the code of the bit number of the ith label, which is different from the code of the (i-1) th label, to the code of the last bit of the ith label as a difference sequence of the sequencing sequence corresponding to the (i-1) th label of the sequencing sequence corresponding to the ith label.
specifically, for example, if the sorting sequence of the 2 nd label is "& & 110001" and the 4 th bit of the 2 nd label is coded differently from the upper bits to the lower bits as compared with the sorting sequence of the 1 st label "& & 100001", and the 4 th bit of the 2 nd label is coded differently from the 4 th bit of the 1 st label "0", the 4 th bit of the 2 nd label which is coded differently from the 1 st label to the last bit of the 2 nd label "10001" is used as the difference sequence of the sorting sequence corresponding to the 2 nd label with respect to the sorting sequence corresponding to the 1 st label, and the corresponding difference sequence is stored, that is, when the label "2" is called, the corresponding stored difference sequence "10001" may be called. Similarly, the difference sequence corresponding to the 3 rd label can be obtained as "2"; the 4 th numbered corresponding difference sequence is "12360007"; the 5 th numbered corresponding difference sequence is "11"; the difference sequence corresponding to the 6 th label is "22360007", so that the coding sequences stored corresponding to the respective labels are:
1:“&&100001”;
2:“10001”;
3:“2”;
4:“12360007”;
5:“11”;
6:“22360007”。
Therefore, the storage space of the memory required to be occupied by each frequency band is effectively compressed, the burden of the memory is effectively reduced, the frequency band corresponding to the corresponding label can be efficiently acquired through the preset conversion rule, and the efficiency of acquiring the network-resident frequency band by the mobile terminal can be ensured.
EXAMPLE III
Fig. 3 is a flowchart of a method for invoking a network-resident frequency band according to an embodiment of the present invention.
The embodiment discloses a method for calling a network-resident frequency band, which can be applied to the mobile terminal described in the first embodiment. The method for storing the network-resident frequency band according to the second embodiment may also be applied to the mobile terminal according to the first embodiment.
The execution subject of the calling method of the network-resident frequency band shown in fig. 3 may be understood as the processor 110. Referring to fig. 3, a method for calling a network-resident frequency band according to an embodiment of the present invention includes:
and B100, acquiring a label i of the network-resident frequency band to be called, wherein i is a positive integer.
Specifically, each network-resident frequency band corresponds to a unique label i, and a coding sequence stored through the label i is converted into the corresponding network-resident frequency band for the mobile terminal to use.
And B200, if the label i is the first label, converting the coded sequence corresponding to the label i and stored in the coded sequence into a corresponding network-resident frequency band according to a preset transcoding rule.
specifically, if the called label is the first label, for example, "1", the coding sequence stored corresponding to the label "1" is converted into the corresponding network-resident frequency band according to the preset transcoding rule.
Specifically, the method for converting the coding sequence stored corresponding to the index i into the corresponding network-resident frequency band according to the preset transcoding rule in step B200 includes:
If the coding sequence corresponding to the index i includes a pseudo code, assuming that the coding sequence corresponding to the index i is & &100001, removing the pseudo code to obtain an original code sequence "100001" corresponding to the index i, and converting the obtained original code sequence into a corresponding network-resident frequency band according to a preset original code rule. In this embodiment, the preset source code rule refers to pre-defining a correspondence relationship between characters and codes in the network-resident frequency Band, for example, we can reserve 4 bits to represent the type of the frequency Band, such as 1 "0001" represents LTE, 4 bits represent the number of the frequency Band, for example, "1" or "0001" represents Band1, and2 "0002" represents Band 2. The above is only an example, and the specific coding rule can be designed according to the actual design requirement, so as to convert the network-resident frequency band into the original code sequence. For example, the first four digits of the original code sequence "10001" are 1, that is, "0001", the type "LTE" corresponding to the frequency Band, the last four digits of the original code sequence "10001" are "0001", the number "Band 1" corresponding to the frequency Band, and the original code sequence is converted into the corresponding network-resident frequency Band "LTE Band 1" by a preset original code rule.
and if the coded sequence corresponding to the ith label does not comprise the pseudo code, the coded sequence corresponding to the ith label is the original code sequence corresponding to the ith label. And converting the obtained original code sequence into a corresponding network residing frequency band according to a preset original code rule.
and B300, otherwise, acquiring a difference sequence corresponding to the ith label, acquiring an original code sequence corresponding to the ith label according to the difference sequence corresponding to the ith label and the original code sequence of the (i-1) th label, and converting the original code sequence corresponding to the ith label into a corresponding network-resident frequency band according to a preset transcoding rule.
specifically, if the ith label is not the first label, the difference sequence corresponding to the ith label is obtained.
Specifically, in step B300, the method for obtaining the original code sequence corresponding to the ith label according to the difference sequence corresponding to the ith label and the original code sequence of the i-1 label includes:
And if the number of bits of the difference sequence corresponding to the ith label is greater than or equal to the number of bits of the original code sequence corresponding to the (i-1) th label, the difference sequence corresponding to the ith label is the original code sequence corresponding to the ith label.
Specifically, if the difference sequence corresponding to the ith label is "12360007", the bit number is 8 bits, and the original code sequence corresponding to the (i-1) th label is "110002", the bit number is 6 bits. The number of bits of the difference sequence corresponding to the ith label is greater than or equal to the number of bits of the original code sequence corresponding to the (i-1) th label. The difference sequence "12360007" corresponding to the ith label is the original code sequence corresponding to the ith label
And if the number of the bits of the differential sequence corresponding to the ith label is less than that of the original code sequence corresponding to the (i-1) th label, replacing the code of the bit corresponding to the differential sequence of the ith label in the original code sequence of the (i-1) th label with the code of the bit corresponding to the differential sequence of the ith label so as to obtain a code sequence which is the original code sequence corresponding to the ith label.
Specifically, if the difference sequence corresponding to the ith label is "11", the number of bits is 2, the original code sequence corresponding to the (i-1) th label is "12360007", the number of bits is 8, and the number of bits of the difference sequence corresponding to the ith label is less than the number of bits of the original code sequence corresponding to the (i-1) th label, the code of the bit corresponding to the difference sequence of the ith label in the original code sequence of the (i-1) th label is replaced with the code of the bit corresponding to the difference sequence of the ith label, that is, "07" of the original code sequence "12360007" corresponding to the (i-1) th label is replaced with the difference sequence "11" of the ith label, and the obtained code sequence "12600011" is the original code sequence corresponding to the ith label.
Specifically, in the implementation of the present invention, the method for acquiring the original code sequence of the i-1 st label includes the steps of:
if the i-1 th label is the first label, removing the pseudo code in the coding sequence corresponding to the i-1 th label to obtain the original code sequence corresponding to the i-1 th label.
specifically, for example, the i-1 th label is the first label, the code sequence corresponding to the i-1 th label is "& & 100001", and the code sequence "100001" obtained by removing the pseudo code therein is the original code sequence of the i-1 th label.
If the i-1 th label is not the first label, the original code sequence corresponding to the i-1 th label is obtained according to the difference sequence corresponding to the i-1 th label and the original code sequence of the i-2 th label.
Specifically, to obtain the original code sequence of the i-1 st label, at most, the original code sequences of the i-2 nd to 1 st labels need to be obtained sequentially, and then the original code sequences of the i-1 st label are obtained through sequential calculation.
therefore, the frequency bands corresponding to the corresponding labels can be efficiently obtained through the preset conversion rules, the storage space of the memory required to be occupied by each frequency band is effectively compressed, and the burden of the memory is effectively reduced.
example four
embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by the processor 110, implements the storage program of the network-resident frequency band and/or the calling program of the network-resident frequency band.
as will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-readable storage media (including, but not limited to, disk storage 120, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, mobile terminals 100, and computer program products of embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer programs. These computer programs may be provided to a processor 110 of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor 110 of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer programs may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
while the invention has been shown and described with reference to certain embodiments, those skilled in the art will understand that: various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims and their equivalents.
While the invention has been shown and described with reference to certain embodiments, those skilled in the art will understand that: various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims and their equivalents.

Claims (9)

1. a method for storing a resident network frequency band is characterized by comprising the following steps:
converting the N network residing frequency bands into a sequencing sequence according to a preset coding rule; wherein N is an integer, and N is more than 0;
sequencing the N sequencing sequences according to a preset sequencing rule, and labeling each sequencing sequence according to the sequencing sequence of the N sequencing sequences;
Storing the sequencing sequence corresponding to the first label;
And acquiring a difference sequence of the sorting sequence corresponding to the ith label relative to the sorting sequence corresponding to the (i-1) th label, and storing the difference sequence, wherein i is a positive integer and is less than or equal to N.
2. The storage method according to claim 1, wherein the method for converting the N network-resident frequency bands into the sequencing sequence according to the preset coding rule comprises the steps of:
Converting the network-resident frequency band into an original code sequence according to a preset original code rule;
If the digit of the original code sequence is the same as the standard digit, the original code sequence is the corresponding sequencing sequence;
Otherwise, filling up the missing digits of the original code sequence by using pseudo codes to obtain a corresponding sequencing sequence with the digits being the same as the standard digits;
The pseudo codes are different from effective codes of other bits, and the pseudo codes are smaller than the other effective codes in sorting.
3. The storage method according to claim 1, wherein the method for obtaining the difference sequence of the sorting sequence corresponding to the ith label relative to the sorting sequence corresponding to the (i-1) th label comprises the steps of:
sequentially comparing the sequencing sequence of the ith label with the same number of bits of the sequencing sequence of the (i-1) th label from high order to low order;
And if the same-bit codes of the sequencing sequence of the ith label and the sequencing sequence of the (i-1) th label are different, taking the code of the bit number of the ith label, which is different from the code of the (i-1) th label, to the code of the last bit of the ith label as a difference sequence of the sequencing sequence corresponding to the (i-1) th label of the sequencing sequence corresponding to the ith label.
4. A method for calling a resident network frequency band is characterized by comprising the following steps:
Acquiring a mark i of a network-resident frequency band to be called, wherein i is a positive integer;
If the label i is the first label, converting the coding sequence corresponding to the label i and stored in the coding sequence into a corresponding network-resident frequency band according to a preset transcoding rule;
otherwise, acquiring a difference sequence corresponding to the ith label, acquiring an original code sequence corresponding to the ith label according to the difference sequence corresponding to the ith label and the original code sequence of the (i-1) th label, and converting the original code sequence corresponding to the ith label into a corresponding network-resident frequency band according to a preset transcoding rule.
5. the calling method of claim, wherein the method for converting the coded sequences stored in correspondence with the labels into the corresponding resident network frequency bands according to a preset transcoding rule comprises:
If the coding sequence corresponding to the label i comprises a pseudo code, removing the pseudo code to obtain an original code sequence corresponding to the label i, and converting the obtained original code sequence into a corresponding network-resident frequency band according to a preset original code rule;
and if the coded sequence corresponding to the ith label does not comprise a pseudo code, the coded sequence corresponding to the ith label is the original code sequence corresponding to the ith label, and the obtained original code sequence is converted into the corresponding resident network frequency band according to a preset original code rule.
6. The calling method according to claim 5, wherein the method for obtaining the native code sequence corresponding to the ith label according to the difference sequence corresponding to the ith label and the native code sequence of the (i-1) th label comprises:
if the number of bits of the difference sequence corresponding to the ith label is greater than or equal to the number of bits of the original code sequence corresponding to the (i-1) th label, the difference sequence corresponding to the ith label is the original code sequence corresponding to the ith label;
and if the number of the bits of the differential sequence corresponding to the ith label is less than that of the original code sequence corresponding to the (i-1) th label, replacing the code of the bit corresponding to the differential sequence of the ith label in the original code sequence of the (i-1) th label with the code of the bit corresponding to the differential sequence of the ith label so as to obtain a code sequence which is the original code sequence corresponding to the ith label.
7. The calling method according to claim 4, wherein the method for obtaining the i-1 st labeled source code sequence comprises the steps of:
If the i-1 th label is the first label, removing the pseudo code in the coding sequence corresponding to the i-1 th label to obtain the original code sequence corresponding to the i-1 th label;
if the i-1 th label is not the first label, the original code sequence corresponding to the i-1 th label is obtained according to the difference sequence corresponding to the i-1 th label and the original code sequence of the i-2 th label.
8. A mobile terminal, the mobile terminal comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method for storing a network-resident frequency band according to any one of claims 1 to 3 and/or the method for calling a network-resident frequency band according to any one of claims 4 to 7 when executing the computer program.
9. A computer storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method for storing a network-resident frequency band according to any one of claims 1 to 3 and/or the method for calling a network-resident frequency band according to any one of claims 4 to 7.
CN201910803460.0A 2019-08-28 2019-08-28 storage and calling method of network-resident frequency band, mobile terminal and computer storage medium Pending CN110572864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910803460.0A CN110572864A (en) 2019-08-28 2019-08-28 storage and calling method of network-resident frequency band, mobile terminal and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910803460.0A CN110572864A (en) 2019-08-28 2019-08-28 storage and calling method of network-resident frequency band, mobile terminal and computer storage medium

Publications (1)

Publication Number Publication Date
CN110572864A true CN110572864A (en) 2019-12-13

Family

ID=68776633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910803460.0A Pending CN110572864A (en) 2019-08-28 2019-08-28 storage and calling method of network-resident frequency band, mobile terminal and computer storage medium

Country Status (1)

Country Link
CN (1) CN110572864A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103415844A (en) * 2011-01-18 2013-11-27 Lsi公司 Higher-level redundancy information computation
CN103582070A (en) * 2012-07-30 2014-02-12 中国移动通信集团公司 Network searching method of multi-mode terminal and multi-mode terminal
CN108696296A (en) * 2017-04-10 2018-10-23 华为技术有限公司 The method and point of termination station of Frequency Band Selection
CN109710645A (en) * 2018-12-28 2019-05-03 惠州Tcl移动通信有限公司 A kind of LTE frequency range parameter processing method, mobile terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103415844A (en) * 2011-01-18 2013-11-27 Lsi公司 Higher-level redundancy information computation
CN103582070A (en) * 2012-07-30 2014-02-12 中国移动通信集团公司 Network searching method of multi-mode terminal and multi-mode terminal
CN108696296A (en) * 2017-04-10 2018-10-23 华为技术有限公司 The method and point of termination station of Frequency Band Selection
CN109710645A (en) * 2018-12-28 2019-05-03 惠州Tcl移动通信有限公司 A kind of LTE frequency range parameter processing method, mobile terminal and storage medium

Similar Documents

Publication Publication Date Title
US20100105424A1 (en) Mobile Communications Device User Interface
US8335997B2 (en) Electronic device and method for sorting menu options of a program menu in the electronic device
CN108804188A (en) Changing an interface skin method and device
CN111352597B (en) Multi-screen display control method and device, electronic equipment and readable storage medium
CN104063362A (en) Character string truncation method and device
CN103885756B (en) Base application function configuration method, implementation method and the device of intelligent terminal
CN111090582A (en) Error code positioning method and device, storage medium and electronic equipment
US20180041224A1 (en) Data value suffix bit level compression
CN114610650A (en) Memory compression method and device, storage medium and electronic equipment
CN101303628A (en) Method and device for performing character word input by digital keyboard
CN104572994A (en) Method and device for searching data
CN110572864A (en) storage and calling method of network-resident frequency band, mobile terminal and computer storage medium
CN108053034A (en) Model parameter processing method, device, electronic equipment and storage medium
CN112286494A (en) Method and device for generating pseudorandom sequence and computer readable storage medium
EP2535802B1 (en) Computer-implemented method of arranging text items in a predefined order
CN110737473A (en) Data processing method and device, terminal and storage medium
CN107301017B (en) Data storage method and device
CN105094881A (en) Terminal and terminal application management method
CN112069015B (en) Instruction execution method and device for instruction simulator, terminal equipment and storage medium
CN104965775B (en) Method for reconstructing, server and the terminal of application software fault in-situ
CN103366716B (en) The compression of character and dot matrix word library and decompress(ion) method and apparatus in dot matrix word library
CN112433798A (en) Page adaptation method and device based on mode switching
WO2017161500A1 (en) Method for setting incoming call ringtone, electronic device, and storage medium
CN105653534B (en) Data processing method and device
CN111290693B (en) Virtual keyboard generation method and device, electronic equipment and computer storage medium

Legal Events

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

Application publication date: 20191213