Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic hardware configuration of a mobile terminal implementing various embodiments of the present invention.
The mobile terminal 100 may include a wireless communication unit 110, an a/V (audio/video) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190, etc. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. Elements of the mobile terminal will be described in detail below.
The wireless communication unit 110 typically includes one or more components that allow radio communication between the mobile terminal 100 and a wireless communication device or network. For example, the wireless communication unit may include at least one of a broadcast receiving module 111, a mobile communication module 112, and a wireless internet module 113.
The broadcast receiving module 111 receives a broadcast signal and/or broadcast associated information from an external broadcast management server via a broadcast channel. The broadcast channel may include a satellite channel and/or a terrestrial channel. The broadcast management server may be a server that generates and transmits a broadcast signal and/or broadcast associated information or a server that receives a previously generated broadcast signal and/or broadcast associated information and transmits it to a terminal. The broadcast signal may include a TV broadcast signal, a radio broadcast signal, a data broadcast signal, and the like. Also, the broadcast signal may further include a broadcast signal combined with a TV or radio broadcast signal. The broadcast associated information may also be provided via a mobile communication network, and in this case, the broadcast associated information may be received by the mobile communication module 112. The broadcast signal may exist in various forms, for example, it may exist in the form of an Electronic Program Guide (EPG) of Digital Multimedia Broadcasting (DMB), an Electronic Service Guide (ESG) of digital video broadcasting-handheld (DVB-H), and the like. The broadcast receiving module 111 may receive a signal broadcast by using various types of broadcasting devices. In particular, the broadcast receiving module 111Can be implemented by using a multimedia broadcast-terrestrial (DMB-T), digital multimedia broadcast-satellite (DMB-S), digital video broadcast-handheld (DVB-H), forward link media (MediaFLO)@) A digital broadcasting apparatus such as a digital broadcasting apparatus, a terrestrial digital broadcasting integrated service (ISDB-T), etc. receives digital broadcasting. The broadcast receiving module 111 may be constructed as various broadcasting devices suitable for providing broadcast signals as well as the above-described digital broadcasting device. The broadcast signal and/or broadcast associated information received via the broadcast receiving module 111 may be stored in the memory 160 (or other type of storage medium).
The mobile communication module 112 transmits and/or receives radio signals to and/or from at least one of a base station (e.g., access point, node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received according to text and/or multimedia messages.
The wireless internet module 113 supports wireless internet access of the mobile terminal. The module may be internally or externally coupled to the terminal. The wireless internet access technology to which the module relates may include WLAN (wireless LAN) (Wi-Fi), Wibro (wireless broadband), Wimax (worldwide interoperability for microwave access), HSDPA (high speed downlink packet access), and the like.
The a/V input unit 120 is used to receive an audio or video signal. The a/V input unit 120 may include a camera 121 and a microphone 122, and the camera 121 processes image data of still pictures or video obtained by an image capturing apparatus in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 151. The image frames processed by the cameras 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 121 may be provided according to the construction of the mobile terminal. The microphone 122 may receive sounds (audio data) via the microphone in a phone call mode, a recording mode, a voice recognition mode, or the like, and can process such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the mobile communication module 112 in case of a phone call mode. The microphone 122 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The user input unit 130 may generate key input data according to a command input by a user to control various operations of the mobile terminal. The user input unit 130 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects changes in resistance, pressure, capacitance, and the like due to being touched), scroll wheel, joystick, and the like. In particular, when the touch pad is superimposed on the display unit 151 in the form of a layer, a touch screen may be formed.
The sensing unit 140 detects a current state of the mobile terminal 100 (e.g., an open or closed state of the mobile terminal 100), a position of the mobile terminal 100, presence or absence of contact (i.e., touch input) by a user with the mobile terminal 100, an orientation of the mobile terminal 100, acceleration or jerky movement and direction of the mobile terminal 100, and the like, and generates a command or signal for controlling an operation of the mobile terminal 100. For example, when the mobile terminal 100 is implemented as a slide-type mobile phone, the sensing unit 140 may sense whether the slide-type phone is opened or closed. In addition, the sensing unit 140 can detect whether the power supply unit 190 supplies power or whether the interface unit 170 is coupled with an external device. The sensing unit 140 may include a proximity sensor as will be described below in connection with a touch screen.
The interface unit 170 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The identification module may store various information for authenticating a user using the mobile terminal 100 and may include a User Identity Module (UIM), a Subscriber Identity Module (SIM), a Universal Subscriber Identity Module (USIM), and the like. In addition, a device having an identification module (hereinafter, referred to as an "identification device") may take the form of a smart card, and thus, the identification device may be connected with the mobile terminal 100 via a port or other connection means. The interface unit 170 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal and the external device.
In addition, when the mobile terminal 100 is connected with an external cradle, the interface unit 170 may serve as a path through which power is supplied from the cradle to the mobile terminal 100 or may serve as a path through which various command signals input from the cradle are transmitted to the mobile terminal. Various command signals or power input from the cradle may be used as signals for recognizing whether the mobile terminal is accurately mounted on the cradle. The output unit 150 is configured to provide output signals (e.g., audio signals, video signals, alarm signals, vibration signals, etc.) in a visual, audio, and/or tactile manner. The output unit 150 may include a display unit 151, an audio output module 152, and the like.
The display unit 151 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, and the like.
Meanwhile, when the display unit 151 and the touch pad are overlapped with each other in the form of a layer to form a touch screen, the display unit 151 may serve as an input device and an output device. The display unit 151 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. Depending on the particular desired implementation, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure as well as a touch input position and a touch input area.
The audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 into an audio signal and output as sound when the mobile terminal is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output module 152 may provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output module 152 may include a microphone, a buzzer, and the like.
The memory 160 may store software programs and the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, and the like) that has been or will be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, and the multimedia module 181 may be constructed within the controller 180 or may be constructed separately from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
Up to this point, mobile terminals have been described in terms of their functionality. Hereinafter, a slide-type mobile terminal among various types of mobile terminals, such as a folder-type, bar-type, swing-type, slide-type mobile terminal, and the like, will be described as an example for the sake of brevity. Accordingly, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
Based on the hardware structure of the mobile terminal, the invention provides various embodiments of the mobile terminal and the serial number allocation method.
The invention provides a mobile terminal.
Referring to fig. 2, fig. 2 is a flowchart illustrating a mobile terminal according to a first embodiment of the present invention.
In this embodiment, the mobile terminal includes:
the running module 10 is used for running a serial number application program to trigger a serial number application request;
the Mobile terminal comprises a smart phone and a tablet personal computer, and the serial number comprises IMEI (International Mobile Equipment Identity), MEID (Mobile Equipment Identity), Bluetooth serial number and other types. The IMEI is a mobile equipment-specific identifier stored in the mobile terminal and can be used to monitor stolen or invalid mobile terminals. The IMEI is an "electronic serial number" consisting of 15 digits, which corresponds to each mobile terminal one-to-one, and is unique worldwide. Each mobile terminal, after assembly, will be assigned a unique IMEI that will be recorded by the manufacturer from production to delivery. The composition is as follows: the first 6 digits (TAC) are "model APPROVAL numbers" and generally represent models. The next 2-digit number (FAC, Final Assembly Code) is the "last Assembly number", which generally represents the place of origin. The next 6 digits (SNR) are the "Serial Number", which generally represents the production Serial Number. The last 1-bit number (SP) is usually "0", which is now on standby for the purpose of checking codes. The MEID is an identification code of the CDMA handset and is also a unique identification code for each CDMA mobile device. Through the identification code, the network end can track and supervise the mobile equipment, and the MEID is used for the mobile equipment of CDMA standard, and the number range of the MEID is hexadecimal and is similar to the format of IMEI.
The mobile terminal is stored with a serial number application program, in the process of producing the mobile terminal, a worker of an outsource factory starts the mobile terminal which is completed by moving and assembling, the mobile terminal is connected with a wireless network of the outsource factory through a wireless communication module, namely the mobile terminal is connected with the wireless network, meanwhile, the mobile terminal runs the serial number application program through a running module 10, whether a serial number exists in the mobile terminal is detected, and if the serial number is not detected, a serial number application request is triggered. The serial number application request carries the IP address and the geographic position of the wireless network of the outsource factory, the serial number type and the application time, wherein the geographic position comprises the longitude and latitude of the position of the outsource factory.
A sending module 20, configured to send a triggered serial number application request to a server, where the server selects a corresponding serial number resource library according to the serial number application request, extracts a serial number from the selected serial number resource library according to a preset rule, feeds the extracted serial number back to the mobile terminal, and writes the extracted serial number into a serial number allocation table;
after the mobile terminal runs the serial number application program through the running module 10 to trigger the serial number application request, the mobile terminal sends the serial number application request to the server. Firstly, the server receives a plurality of serial number application requests sent by the mobile terminals, namely, a outsource factory simultaneously applies serial numbers to a batch of mobile terminals, simultaneously caches the plurality of serial number application requests into a buffer, and records the number of the mobile terminals applying the serial numbers; then, the server acquires the longitude and latitude corresponding to the wireless network IP address in the serial number application request from a longitude and latitude database, then searches the corresponding outsource factory name according to the longitude and latitude, if the searched outsource factory name is in a preset list of outsource factories, selects serial numbers with corresponding quantity and type from a serial number resource library according to the application quantity of the recorded serial numbers and the serial number types of the application, and takes the selected serial numbers as the resource library of the serial numbers of the outsource factories; and finally, the server reads a serial number application request belonging to the outsource factory from the buffer, responds to the serial number application request at the moment, namely extracts the serial number from a resource library of the serial number belonging to the outsource factory according to a preset rule, writes the extracted serial number into a serial number distribution table, and feeds back the extracted serial number to the corresponding mobile terminal.
When the serial number is distributed, setting the distribution time limit of the serial number, when the distribution time limit reaches or the distribution of the application request is completed, distributing the serial number of the next application request, namely the server completes the distribution of the serial number in the distribution time limit, thereby effectively ensuring that the distributed serial number does not conflict, and if the server does not complete the distribution of the serial number in the distribution time limit, the distribution of the serial number fails, and recording the number of times of the distribution failure of the serial number. The preset rule is that the serial numbers are distributed according to the sequence of the serial numbers in the resource library, or the available serial numbers in the resource library are inquired for distribution, namely when one available serial number is inquired, the inquired serial number is distributed to the corresponding mobile terminal.
In the specific implementation, before allocating the serial numbers, whether the number of the serial numbers in the serial number resource library is greater than or equal to the number of the application of the serial numbers is judged, and when the number of the serial numbers in the serial number resource library is greater than or equal to the number of the application of the serial numbers, the server allocates the serial numbers, or after the allocation of the serial numbers in the serial number resource library is completed, the number of the uncompleted serial numbers is displayed.
In another specific implementation, when two or more outsource factories apply for serial numbers, the server divides different serial number resource libraries according to the serial number application quantity and the serial number types of each outsource factory, and then the server extracts the serial numbers from the serial number resource libraries of the corresponding outsource factories for distribution, so that the serial numbers of the outsource factories can be simultaneously applied. For example, outsource factories A and B simultaneously apply for serial numbers, the application quantity of the outsource factory A is a, the application quantity of the outsource factory B is B, the server divides resource libraries with serial numbers of a and B from the resource libraries and respectively serves as the serial number resource libraries 1 and 2 of the outsource factories A and B, and then the server can simultaneously extract the serial numbers from the serial number resource libraries 1 and 2 and allocate the serial numbers to corresponding mobile terminals.
And the receiving and storing module 30 is configured to receive the string number fed back by the server based on the application request, and write the fed-back string number into the memory.
The mobile terminal receives the serial number fed back by the server based on the serial number application request through the receiving and storing module 30, writes the fed back serial number into the memory, stores the serial number in the preset storage area, and adds the application record of the serial number, wherein the application record comprises the application time of the serial number, the serial number obtained by application, the wireless network IP address of the outsource factory and the like.
In this embodiment, the mobile terminal of the present invention runs a serial number application program to trigger a serial number application request, and then sends the triggered serial number application request to the server, where the server selects a corresponding serial number resource library according to the application request, extracts a serial number from the selected serial number resource library according to a preset rule, simultaneously feeds back the extracted serial number to the mobile terminal, and writes the extracted serial number into an allocation table of the serial number, and finally receives the serial number fed back by the server based on the application request, and writes the fed-back serial number into the memory.
Further, referring to fig. 3, a second embodiment of the mobile terminal of the present invention is proposed based on the first embodiment, and the difference from the foregoing embodiment is that in this embodiment, the mobile terminal further includes:
the detection module 40 is used for detecting whether the fed-back serial number is successfully written into the storage;
a mark storage module 50, configured to mark the fed-back serial number when it is detected that the fed-back serial number is not successfully written into the memory, and write the marked serial number into a serial number application record;
and the storage module 60 is configured to, when it is detected that the fed-back string number is successfully written into the storage, write the string number written into the storage into the string number application record.
The mobile terminal operates the application program of the serial number through the detection module 40 to detect whether the serial number fed back by the distribution system is successfully written into the memory, if the fed back serial number is detected to be unsuccessfully written into the memory, the fed back serial number is marked, the marked serial number is written into the serial number application record, if the fed back serial number is detected to be successfully written into the memory, the serial number written into the memory is written into the serial number application record, namely, whether the distributed serial number is successfully written into the memory can be checked from the application record.
In this embodiment, the serial number that is not successfully written into the memory is marked, and the marked identification number is written into the serial number application record, so that the server can obtain the serial number that is not successfully written into the mobile terminal.
Further, referring to fig. 4, a third embodiment of the mobile terminal of the present invention is proposed based on the first or second embodiment, and the difference from the foregoing embodiment is that in this embodiment, the mobile terminal further includes:
and the inquiry uploading module 70 is used for inquiring the serial number application record of the mobile terminal and uploading the inquired serial number application record to the server, wherein the server acquires the serial number which is not successfully written into the mobile terminal according to the serial number allocation table and the serial number application record and writes the serial number into the serial number resource library.
The mobile terminal runs the serial number application program to query the serial number application record by running the query uploading module 70, and uploads the queried serial number application record to the server, and the server receives the serial number application record uploaded by the mobile terminal, and obtains the serial number which is not successfully written into the mobile terminal according to the serial number application record and the serial number allocation table, and then writes the serial number which is not successfully written into the mobile terminal into the serial number repository.
In this embodiment, the application record is compared with the allocation table, so as to obtain the serial number which is not successfully written into the mobile terminal, so that the server can recycle the serial number which is not successfully written into the mobile terminal, and the resource waste of the serial number is reduced.
Further, referring to fig. 5, a fourth embodiment of the mobile terminal of the present invention is proposed based on the above third embodiment, and the difference from the foregoing embodiments is that in this embodiment, the mobile terminal further includes:
a receiving module 80, configured to receive a deletion instruction of a serial number application record sent by the server;
and the control module 90 is used for controlling the mobile terminal to delete the serial number application record according to the deletion instruction.
The server obtains the mobile terminal with successfully written serial number according to the distribution table of the serial number and the application record reported by the mobile terminal, and sends a deletion instruction of the serial number application record to the mobile terminal with successfully written serial number, the mobile terminal receives the deletion instruction of the serial number application record sent by the server through the receiving module 80, and then the control module 90 controls the mobile terminal to delete the serial number application record according to the deletion instruction, and simultaneously deletes the serial number application program.
In this embodiment, by deleting the application record and the application program of the serial number, the invention can avoid the automatic operation of the application program of the serial number when the mobile terminal is delivered for use, and reserve an effective memory, thereby facilitating the use of the user.
The present invention further provides a serial number allocation method, which is executed by the mobile terminal shown in fig. 1, and corresponds to the first embodiment of the mobile terminal of the present invention with reference to fig. 1 and fig. 6, and in the first embodiment of the serial number allocation method of the present invention, the serial number allocation method includes:
step S10, running a serial number application program to trigger a serial number application request;
the Mobile terminal comprises a smart phone and a tablet personal computer, and the serial number comprises IMEI (International Mobile Equipment Identity), MEID (Mobile Equipment Identity), Bluetooth serial number and other types. The IMEI is a mobile equipment-specific identifier stored in the mobile terminal and can be used to monitor stolen or invalid mobile terminals. The IMEI is an "electronic serial number" consisting of 15 digits, which corresponds to each mobile terminal one-to-one, and is unique worldwide. Each mobile terminal, after assembly, will be assigned a unique IMEI that will be recorded by the manufacturer from production to delivery. The composition is as follows: the first 6 digits (TAC) are "model APPROVAL numbers" and generally represent models. The next 2-digit number (FAC, Final Assembly Code) is the "last Assembly number", which generally represents the place of origin. The next 6 digits (SNR) are the "Serial Number", which generally represents the production Serial Number. The last 1-bit number (SP) is usually "0", which is now on standby for the purpose of checking codes. The MEID is an identification code of the CDMA handset and is also a unique identification code for each CDMA mobile device. Through the identification code, the network end can track and supervise the mobile equipment, and the MEID is used for the mobile equipment of CDMA standard, and the number range of the MEID is hexadecimal and is similar to the format of IMEI.
The mobile terminal is stored with a serial number application program, in the process of producing the mobile terminal, a worker of an outsource factory starts the mobile terminal which is completed by moving and assembling, the mobile terminal is connected with a wireless network of the outsource factory through a wireless communication module, namely the mobile terminal is connected with the wireless network, meanwhile, the mobile terminal runs the serial number application program through a running module 10, whether a serial number exists in the mobile terminal is detected, and if the serial number is not detected, a serial number application request is triggered. The serial number application request carries the IP address and the geographic position of the wireless network of the outsource factory, the serial number type and the application time, wherein the geographic position comprises the longitude and latitude of the position of the outsource factory.
Step S20, sending the triggered serial number application request to a server, wherein the server extracts the serial number from the selected serial number resource library according to a preset rule after selecting the corresponding serial number resource library according to the serial number application request, feeds the extracted serial number back to the mobile terminal, and writes the extracted serial number into a serial number distribution table;
after the mobile terminal runs the serial number application program through the running module 10 to trigger the serial number application request, the mobile terminal sends the serial number application request to the server. Firstly, the server receives a plurality of serial number application requests sent by the mobile terminals, namely, a outsource factory simultaneously applies serial numbers to a batch of mobile terminals, simultaneously caches the plurality of serial number application requests into a buffer, and records the number of the mobile terminals applying the serial numbers; then, the server acquires the longitude and latitude corresponding to the wireless network IP address in the serial number application request from a longitude and latitude database, then searches the corresponding outsource factory name according to the longitude and latitude, if the searched outsource factory name is in a preset list of outsource factories, selects serial numbers with corresponding quantity and type from a serial number resource library according to the application quantity of the recorded serial numbers and the serial number types of the application, and takes the selected serial numbers as the resource library of the serial numbers of the outsource factories; and finally, the server reads a serial number application request belonging to the outsource factory from the buffer, responds to the serial number application request at the moment, namely extracts the serial number from a resource library of the serial number belonging to the outsource factory according to a preset rule, writes the extracted serial number into a serial number distribution table, and feeds back the extracted serial number to the corresponding mobile terminal.
When the serial number is distributed, setting the distribution time limit of the serial number, when the distribution time limit reaches or the distribution of the application request is completed, distributing the serial number of the next application request, namely the server completes the distribution of the serial number in the distribution time limit, thereby effectively ensuring that the distributed serial number does not conflict, and if the server does not complete the distribution of the serial number in the distribution time limit, the distribution of the serial number fails, and recording the number of times of the distribution failure of the serial number. The preset rule is that the serial numbers are distributed according to the sequence of the serial numbers in the resource library, or the available serial numbers in the resource library are inquired for distribution, namely when one available serial number is inquired, the inquired serial number is distributed to the corresponding mobile terminal.
In the specific implementation, before allocating the serial numbers, whether the number of the serial numbers in the serial number resource library is greater than or equal to the number of the application of the serial numbers is judged, and when the number of the serial numbers in the serial number resource library is greater than or equal to the number of the application of the serial numbers, the server allocates the serial numbers, or after the allocation of the serial numbers in the serial number resource library is completed, the number of the uncompleted serial numbers is displayed.
In another specific implementation, when two or more outsource factories apply for serial numbers, the server divides different serial number resource libraries according to the serial number application quantity and the serial number types of each outsource factory, and then the server extracts the serial numbers from the serial number resource libraries of the corresponding outsource factories for distribution, so that the serial numbers of the outsource factories can be simultaneously applied. For example, outsource factories A and B simultaneously apply for serial numbers, the application quantity of the outsource factory A is a, the application quantity of the outsource factory B is B, the server divides resource libraries with serial numbers of a and B from the resource libraries and respectively serves as the serial number resource libraries 1 and 2 of the outsource factories A and B, and then the server can simultaneously extract the serial numbers from the serial number resource libraries 1 and 2 and allocate the serial numbers to corresponding mobile terminals.
And step S30, receiving the serial number fed back by the server based on the application request, and writing the fed back serial number into a memory.
The mobile terminal receives the serial number fed back by the server based on the serial number application request through the receiving and storing module 30, writes the fed back serial number into the memory, stores the serial number in the preset storage area, and adds the application record of the serial number, wherein the application record comprises the application time of the serial number, the serial number obtained by application, the wireless network IP address of the outsource factory and the like.
In this embodiment, the mobile terminal of the present invention runs a serial number application program to trigger a serial number application request, and then sends the triggered serial number application request to the server, where the server selects a corresponding serial number resource library according to the application request, extracts a serial number from the selected serial number resource library according to a preset rule, simultaneously feeds back the extracted serial number to the mobile terminal, and writes the extracted serial number into an allocation table of the serial number, and finally receives the serial number fed back by the server based on the application request, and writes the fed-back serial number into the memory.
Further, referring to fig. 7, a second embodiment of the string number assignment method of the present invention is proposed based on the above first embodiment, and the difference from the foregoing embodiment is that, in this embodiment, after step S30, the string number assignment method further includes:
step S40, detecting whether the fed-back serial number is successfully written into the memory;
step S50, when detecting that the fed-back serial number is not successfully written into the memory, marking the fed-back serial number, and writing the marked serial number into the serial number application record;
and step S60, when the fed-back serial number is successfully written into the memory, writing the serial number written into the memory into the serial number application record.
The mobile terminal operates the application program of the serial number through the detection module 40 to detect whether the serial number fed back by the distribution system is successfully written into the memory, if the fed back serial number is detected to be unsuccessfully written into the memory, the fed back serial number is marked, the marked serial number is written into the serial number application record, if the fed back serial number is detected to be successfully written into the memory, the serial number written into the memory is written into the serial number application record, namely, whether the distributed serial number is successfully written into the memory can be checked from the application record.
In this embodiment, the serial number that is not successfully written into the memory is marked, and the marked identification number is written into the serial number application record, so that the server can obtain the serial number that is not successfully written into the mobile terminal.
Further, referring to fig. 8, a third embodiment of the string number assignment method according to the present invention is proposed based on the first or second embodiment, and is different from the foregoing embodiments in that, in this embodiment, after the step S30, the string number assignment method further includes:
and step S70, inquiring the serial number application record of the mobile terminal, and uploading the inquired serial number application record to the server, wherein the server acquires the serial number which is not successfully written into the mobile terminal according to the serial number allocation table and the serial number application record, and writes the serial number into the serial number resource library.
The mobile terminal runs the serial number application program to query the serial number application record by running the query uploading module 70, and uploads the queried serial number application record to the server, and the server receives the serial number application record uploaded by the mobile terminal, and obtains the serial number which is not successfully written into the mobile terminal according to the serial number application record and the serial number allocation table, and then writes the serial number which is not successfully written into the mobile terminal into the serial number repository.
In this embodiment, the application record is compared with the allocation table, so as to obtain the serial number which is not successfully written into the mobile terminal, so that the server can recycle the serial number which is not successfully written into the mobile terminal, and the resource waste of the serial number is reduced.
Further, referring to fig. 9, a fourth embodiment of the string number assignment method of the present invention is proposed based on the above third embodiment, and the difference from the foregoing embodiments is that in this embodiment, after step S70, the string number assignment method further includes:
step S80, receiving a deletion instruction of the serial number application record sent by the server;
and step S90, controlling the mobile terminal to delete the serial number application record according to the deletion instruction.
The server obtains the mobile terminal with successfully written serial number according to the distribution table of the serial number and the application record reported by the mobile terminal, and sends a deletion instruction of the serial number application record to the mobile terminal with successfully written serial number, the mobile terminal receives the deletion instruction of the serial number application record sent by the server through the receiving module 80, and then the control module 90 controls the mobile terminal to delete the serial number application record according to the deletion instruction, and simultaneously deletes the serial number application program.
In this embodiment, by deleting the application record and the application program of the serial number, the invention can avoid the automatic operation of the application program of the serial number when the mobile terminal is delivered for use, and reserve an effective memory, thereby facilitating the use of the user.
The invention also provides a serial number distribution system, which comprises a mobile terminal and a server, wherein the mobile terminal is the mobile terminal in the embodiment, and the server is used for extracting the serial number from the selected serial number resource library according to a preset rule after selecting the corresponding serial number resource library according to the serial number application request sent by the mobile terminal, feeding the extracted serial number back to the mobile terminal, and writing the extracted serial number into the serial number distribution table.
Further, the server is also used for obtaining the serial number which is not successfully written into the mobile terminal according to the serial number distribution table and the serial number application record, and writing the serial number into a serial number resource library; and the mobile terminal is also used for acquiring the mobile terminal with successfully written serial number according to the serial number distribution table and the serial number application record and sending a deletion instruction of the application record to the mobile terminal with successfully written serial number.
The specific embodiment of the serial number allocation system of the present invention is basically the same as the embodiments of the serial number allocation method described above, and will not be described herein again.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.