CN101695086B - Method and device for obtaining client information of mobile terminal - Google Patents

Method and device for obtaining client information of mobile terminal Download PDF

Info

Publication number
CN101695086B
CN101695086B CN2009101799985A CN200910179998A CN101695086B CN 101695086 B CN101695086 B CN 101695086B CN 2009101799985 A CN2009101799985 A CN 2009101799985A CN 200910179998 A CN200910179998 A CN 200910179998A CN 101695086 B CN101695086 B CN 101695086B
Authority
CN
China
Prior art keywords
information
mobile terminal
client
state information
layer
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.)
Expired - Fee Related
Application number
CN2009101799985A
Other languages
Chinese (zh)
Other versions
CN101695086A (en
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.)
Shenzhen Wuju Technology Co Ltd
Original Assignee
Shenzhen Wuju Technology 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 Shenzhen Wuju Technology Co Ltd filed Critical Shenzhen Wuju Technology Co Ltd
Priority to CN2009101799985A priority Critical patent/CN101695086B/en
Publication of CN101695086A publication Critical patent/CN101695086A/en
Application granted granted Critical
Publication of CN101695086B publication Critical patent/CN101695086B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method and a device for obtaining client information of a mobile terminal. The method comprise the following steps: firstly, sending demand information for obtaining state information of a current mobile terminal to an L4C layer; secondly, receiving the state information returned by the L4C layer according to the demand information; and thirdly, extracting client information from the returned state information. By adopting the invention, the client information of the mobile terminal including a location area code of the client and/or an international mobile equipment identity of the client and the like can be obtained, so that the demand and the behaviour of a user can be analyzed according to the district and the service item using record of the user, the personalized customized service for the user can be conveniently developed, and the using experience of the user is improved.

Description

A kind of method and apparatus that obtains client information of mobile terminal
Technical field
The present invention relates to field of mobile terminals, particularly relate to a kind of method and apparatus that obtains client information of mobile terminal.
Background technology
At present, along with the continuous development of mobile communication technology, portable terminal has been deep in people's the life, and mobile communication has also become the most widely used communication mode.Here, the alleged portable terminal of the present invention is meant that mobile phone, personal digital assistant (PDA, Personal Digital Assistant) etc. have the small hand-held formula mobile communication equipment of wireless communication function.
With the mobile phone is example, along with the development of internet, applications with popularize, makes the user become possibility through surfing Internet with cell phone.The cellphone subscriber utilizes mobile phone to pass through the WAP online, on mobile phone, browses and download the multimedia messages that needs, for example picture, music, video, e-book or the like.But different mobile user's hobby is all inequality, for ease analysis user demand, user behavior, carry out personalized customize services later on, reduce unnecessary complaint incident simultaneously, be necessary that the information of obtaining the cellphone subscriber analyzes.Therefore, need a kind of method and apparatus that can obtain cell-phone customer terminal information.
Summary of the invention
To defective that exists in the prior art and deficiency, the objective of the invention is to propose a kind of method and apparatus, can obtain the client-side information of portable terminal.
In order to achieve the above object, the present invention proposes a kind of method of obtaining client information of mobile terminal, comprising:
Step 1: the 4th layer of requirement message to the protocol stack that sends the state information obtain current mobile terminal;
Step 2: the state information that receives the current mobile terminal that the 4th layer of protocol stack return according to said requirement message;
Step 3: from the state information of the current mobile terminal returned, extract client-side information, said client-side information comprises Location Area Code and/or International Mobile Equipment Identity sign indicating number.
Preferred as technique scheme comprises the SIM information of said portable terminal and the indication information that obtains client attitude information in the requirement message of the said state information of obtaining current mobile terminal.
Preferred as technique scheme also comprised step: judge whether said portable terminal is double-card dual-standby, if the SIM information of said portable terminal is the SIM information of the current use of said portable terminal before said step 1.
Preferred as technique scheme, requirement message to the protocol stack that the state information of current mobile terminal is obtained in said transmission specifically comprises for the 4th layer:
Definition is also preserved the requirement message ID of the state information of obtaining current mobile terminal;
Definition data structure body variable is used to preserve the said requirement message of obtaining the state information of current mobile terminal;
The data that said data structure variable is preserved send to the 4th layer of protocol stack;
The response function of registration respective acknowledgement message and return state message.。
Preferred as technique scheme, the 4th layer of said reception protocol stack comprises according to the state information of the current mobile terminal that said requirement message is returned:
Definition structure body variable, and the 4th layer of data of returning of protocol stack are composed to this structure variable;
Judge whether successfully to return according to the value in this structure variable, if then execution in step 3.
The present invention also proposes a kind of device that obtains client information of mobile terminal, comprising:
Sending module is used to send the 4th layer of requirement message to the protocol stack of the state information of obtaining current mobile terminal;
Receiver module is used to receive the state information of the current mobile terminal that the 4th layer of protocol stack return according to said requirement message;
Processing module is used for extracting the client-side information of the 4th layer of said state information of returning of protocol stack, and said client-side information comprises Location Area Code and/or International Mobile Equipment Identity sign indicating number.
Preferred as technique scheme also comprises message processing unit in the said sending module, be used for generating according to the SIM information of portable terminal and the indication information that obtains client-side information the requirement message of the state information of obtaining current mobile terminal.
Preferred as technique scheme also comprises judge module, is used to judge whether said portable terminal is double-card dual-standby, if said SIM information is the SIM information of the current use of said portable terminal.
Preferred as technique scheme, said sending module further comprises:
Definition requirement message unit is used to define and preserve the requirement message ID of the state information of obtaining current mobile terminal;
Definition data structure body variable unit is used for definition data structure body variable, and this data structure body variable is used to preserve the said requirement message of obtaining the state information of current mobile terminal;
Transmitting element is used for the data that said data structure variable is preserved are sent to the 4th layer of protocol stack;
Registering unit is used to register the response function of respective acknowledgement message and return state message.
Preferred as technique scheme, said receiver module further comprises:
Definition structure body variable unit is used for definition structure body variable, and the 4th layer of data of returning of protocol stack are composed to this structure variable;
Judging unit is used for judging whether successfully to return according to the value of said structure variable, if then call said processing module.
The present invention can obtain the client-side information of portable terminal; Comprise the Location Area Code of client and/or the information such as International Mobile Equipment Identity sign indicating number of client; Thereby area and service item service recorder to the user come the demand of analysis user, user's behavior; So that, improve user's experience for the user carries out personalized customize services.
Below in conjunction with accompanying drawing, specific embodiments of the invention is done further to specify.For the person of ordinary skill in the field, from detailed description of the invention, above-mentioned and other purposes of the present invention, feature and advantage will be obvious.
Description of drawings
Fig. 1 is the composition sketch map of the device that obtains client information of mobile terminal of the present invention's proposition;
Fig. 2 is the schematic flow sheet of first preferred embodiment of the method for obtaining client information of mobile terminal of the present invention's proposition;
Fig. 3 is the schematic flow sheet of second preferred embodiment of the method for obtaining client information of mobile terminal of the present invention's proposition;
Fig. 4 is the schematic flow sheet of the 3rd preferred embodiment of the method for obtaining client information of mobile terminal of the present invention's proposition.
Embodiment
A kind of preferred embodiment that obtains the device of client information of mobile terminal that below proposes for the present invention, as shown in Figure 1, comprising: sending module 101, receiver module 102 and processing module 103, wherein,
Sending module 101 is used to send the 4th layer of (L4C, L4Control entity) 104 of requirement message to protocol stack of the state information of obtaining current mobile terminal, and L4C layer 104 can return the state information of current mobile terminal according to said requirement message;
Receiver module 102 is used to receive the state information of the current mobile terminal that L4C layer 104 returns according to said requirement message;
Processing module 103 is used for extracting the client-side information of the status of mobile terminal information that L4C layer 104 returns, and client-side information comprises the Location Area Code LAC of client and/or the International Mobile Equipment Identity sign indicating number IMEI of client.
Wherein, Can also comprise message processing unit in the sending module 101 in the foregoing description; Message processing unit generates the requirement message of obtaining state information according to the SIM information of portable terminal and the indication information that obtains client-side information, and the requirement message that will obtain state information by sending module 101 then is sent to L4C layer 103.
This device can also comprise judge module, is used to judge whether said portable terminal is double-card dual-standby, if SIM information is the SIM information of the current use of said portable terminal just.
Further, the sending module in the foregoing description 101 can also comprise:
Definition requirement message unit is used to define and preserve the requirement message ID of the state information of obtaining current mobile terminal;
Due to data structure body variable unit, be used for definition data structure body variable, this data structure body variable is used to preserve the said requirement message of obtaining the state information of current mobile terminal;
Transmitting element is used for the data that said data structure variable is preserved are sent to the L4C layer;
Registering unit is used to register the response function of respective acknowledgement message and return state message.
Said receiver module 102 may further include:
Definition structure body variable unit is used for definition structure body variable, and the data that the L4C layer returns are composed to this structure variable;
Judging unit is used for judging whether successfully to return according to the value of said structure variable, if then call said processing module.
For example, can be through judging whether the result member in the structure variable is to judge true (promptly being not equal to 0) whether successfully to obtain client-side information.
A kind of first preferred embodiment that obtains the method for client information of mobile terminal that below proposes for the present invention, as shown in Figure 2, comprising:
Step 100: the requirement message of sending the state information of obtaining current mobile terminal is to the L4C layer;
Step 120: receive the state information that the L4C layer returns according to said requirement message;
Step 140: from the state information of returning, extract client-side information.
Second preferred embodiment of the present invention is on the basis of first preferred embodiment, to improve; The requirement message of obtaining state information is to generate according to the SIM information of portable terminal and the indication information that obtains client-side information; As shown in Figure 3, concrete steps are following:
Step 90: the requirement message that generates the state information of obtaining current mobile terminal according to the SIM information of the indication information of the client-side information that obtains current mobile terminal and portable terminal;
Step 100: the requirement message of sending the state information of obtaining current mobile terminal is to the L4C layer;
Step 120: receive the state information that the L4C layer returns according to said requirement message;
Step 140: from the state information of returning, extract client-side information.
The 3rd preferred embodiment of the present invention is on the basis of second preferred embodiment, to improve, and before said step 100, also comprises judging whether said portable terminal is the step of double-card dual-standby, and as shown in Figure 4, concrete steps are:
Step 70: judge whether said portable terminal is double-card dual-standby, if, execution in step 80; If not, execution in step 90;
Step 80: the SIM information of said portable terminal is the SIM information of the current use of said portable terminal;
Step 90: generate the requirement message of obtaining said status of mobile terminal information according to the indication information of the client-side information that obtains current mobile terminal and the SIM information of portable terminal;
Step 100: the requirement message of sending the state information of obtaining current mobile terminal is to the L4C layer;
Step 120: receive the state information that the L4C layer returns according to said requirement message;
Step 140: from the state information of returning, extract client-side information.
In the preferred embodiment of the method that the invention described above proposes, the method for sending requirement message to L4C layer can be specially:
Definition needs the message id that sends and preserves the message id that sends to the L4C layer; Because different type of machines is obtained the message id of LAC information might be different; So need be, thereby can be in the transplanting that is implemented on the different type of machines with the self-defining constant of the message id assignment of obtaining client-side information of different type of machines;
Definition needs the data structure body variable of transmission, is used for preserving the information that sends to the L4C layer, because different type of machines sends to the data structure difference of L4C layer, so need give different data structures with different type of machines, transplants thereby can be implemented on the different type of machines; Give the data structure body variable that sends with the parameter of SIM information and the parameter assignment of requirement message;
Send to the L4C layer to the data of data structure body variable;
The response function of registration respective acknowledgement message and return state message.
Receive the current mobile terminal that the L4C layer returns according to said requirement message state information method can be specially:
Define a structure variable, and the data that the L4C layer returns are composed to this structure variable;
Successfully whether judgement returned according to the value in this structure variable, if the step of from the said status of mobile terminal information of returning, extracting client-side information is then carried out in success;
For example, through judging whether the result member in the structure variable is to judge true (promptly being not equal to 0) whether successfully to obtain client-side information.
In addition, can also be to the global variable assignment, whether sign can obtain state information; When success, compose 1 (success) otherwise compose 0 to global variable.
Comprised client-side information in the said response message, for example information such as LAC, IMEI.
In the above-described embodiments; Said client-side information comprises the Location Area Code LAC of client and/or the International Mobile Equipment Identity sign indicating number IMEI of client; Can know the zone that the user belongs to through LAC information; Can the employed service of recording user through IMEI information, and then the hobby of analysis user.
L4C layer in the foregoing description is the adaptation layer of MMI/AT (multimedia interface) and protocol stack, and MMI carries out communication through L4 and gsm/gprs protocol stack, and the effect of L4C layer is to handle all application requests and response.
The present invention can also obtain the Bluetooth address information of client, and concrete steps are: the value that reads record bluetooth information global variable in the MTK system; Compose this value to self-defining global variable.
The present invention can obtain the client-side information of portable terminal; Comprise the Location Area Code of client and/or the information such as International Mobile Equipment Identity sign indicating number of client; Thereby area and service item service recorder to the user come the demand of analysis user, user's behavior; So that, improve user's experience for the user carries out personalized customize services.
Though; The present invention clearly demonstrates through above embodiment and accompanying drawing thereof; Yet under the situation that does not deviate from spirit of the present invention and essence thereof; The person of ordinary skill in the field works as can make various corresponding variations and correction according to the present invention, but these corresponding variations and correction all should belong to the protection range of claim of the present invention.

Claims (6)

1. a method of obtaining client information of mobile terminal is characterized in that, comprising:
Step 1 is sent the 4th layer of requirement message to the protocol stack of the state information obtain current mobile terminal, specifically comprises,
Definition is also preserved the requirement message ID of the state information of obtaining current mobile terminal;
Definition data structure body variable is used to preserve the said requirement message of obtaining the state information of current mobile terminal;
The data that said data structure body variable is preserved send to the 4th layer of protocol stack;
The response function of registration respective acknowledgement message and return state message;
Step 2 receives the state information of the current mobile terminal that the 4th layer of protocol stack return according to said requirement message, specifically comprises,
Definition structure body variable, and the 4th layer of data of returning of protocol stack are composed to this structure variable;
Judge whether successfully to return according to the value in this structure variable, if then execution in step 3;
Step 3 is extracted client-side information from the state information of the current mobile terminal returned, said client-side information comprises Location Area Code and/or International Mobile Equipment Identity sign indicating number.
2. the method for obtaining client information of mobile terminal according to claim 1; It is characterized in that, comprise the SIM information of said portable terminal and the indication information that obtains client-side information in the requirement message of the said state information of obtaining current mobile terminal.
3. the method for obtaining client information of mobile terminal according to claim 2; It is characterized in that; Before said step 1, also comprise step: judge whether said portable terminal is double-card dual-standby; If the SIM information of said portable terminal is the SIM information of the current use of said portable terminal.
4. a device that obtains client information of mobile terminal is characterized in that, comprising:
Sending module is used to send the 4th layer of requirement message to the protocol stack of the state information of obtaining current mobile terminal, and said sending module further comprises,
Definition requirement message unit is used to define and preserve the requirement message ID of the state information of obtaining current mobile terminal;
Definition data structure body variable unit is used for definition data structure body variable, and this data structure body variable is used to preserve the said requirement message of obtaining the state information of current mobile terminal;
Transmitting element is used for the data that said data structure body variable is preserved are sent to the 4th layer of protocol stack;
Registering unit is used to register the response function of respective acknowledgement message and return state message;
Receiver module is used to receive the state information of the current mobile terminal that the 4th layer of protocol stack return according to said requirement message, and said receiver module further comprises,
Definition structure body variable unit is used for definition structure body variable, and the 4th layer of data of returning of protocol stack are composed to this structure variable;
Judging unit is used for judging whether successfully to return according to the value of said structure variable, if then call processing module;
Processing module is used for extracting the client-side information of the 4th layer of state information of returning of protocol stack, and said client-side information comprises Location Area Code and/or International Mobile Equipment Identity sign indicating number.
5. the device that obtains client information of mobile terminal according to claim 4; It is characterized in that; Also comprise message processing unit in the said sending module, be used for generating the requirement message of the state information of obtaining current mobile terminal according to the SIM information of portable terminal and the indication information that obtains client-side information.
6. the device that obtains client information of mobile terminal according to claim 5; It is characterized in that, also comprise judge module, be used to judge whether said portable terminal is double-card dual-standby; If said SIM information is the SIM information of the current use of said portable terminal.
CN2009101799985A 2009-10-16 2009-10-16 Method and device for obtaining client information of mobile terminal Expired - Fee Related CN101695086B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101799985A CN101695086B (en) 2009-10-16 2009-10-16 Method and device for obtaining client information of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101799985A CN101695086B (en) 2009-10-16 2009-10-16 Method and device for obtaining client information of mobile terminal

Publications (2)

Publication Number Publication Date
CN101695086A CN101695086A (en) 2010-04-14
CN101695086B true CN101695086B (en) 2012-08-15

Family

ID=42094026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101799985A Expired - Fee Related CN101695086B (en) 2009-10-16 2009-10-16 Method and device for obtaining client information of mobile terminal

Country Status (1)

Country Link
CN (1) CN101695086B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105450488B (en) * 2015-11-11 2019-10-22 深圳市冠明能源科技有限公司 A kind of data processing method and relevant apparatus
CN112565619A (en) * 2020-11-12 2021-03-26 上海龙旗科技股份有限公司 Rainbow photographing method and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731881A (en) * 2005-09-07 2006-02-08 中国移动通信集团公司 Method for carrying out active inquiry maintenance on mobile terminal
CN1913699A (en) * 2005-08-12 2007-02-14 中国移动通信集团公司 Method of obtaining mobile terminal ability updating information

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1913699A (en) * 2005-08-12 2007-02-14 中国移动通信集团公司 Method of obtaining mobile terminal ability updating information
CN1731881A (en) * 2005-09-07 2006-02-08 中国移动通信集团公司 Method for carrying out active inquiry maintenance on mobile terminal

Also Published As

Publication number Publication date
CN101695086A (en) 2010-04-14

Similar Documents

Publication Publication Date Title
US7711002B2 (en) Transcoding SMS-based streamed messages to SIP-based IP signals in wireless and wireline networks
US20090318171A1 (en) Application Discovery on Mobile Devices
CN104243517A (en) Content sharing method and device used between different terminals
CN101360275A (en) Friends making system, implementing method and friends making server
CN101730999B (en) System and method for sharing common location-related information between communication devices
EP2374074A1 (en) Methods and apparatus for obtaining contextually relevant content
CN102215179A (en) Instant messaging registering device and method
EP1995983A1 (en) Apparatus and method for storing network parameter in mobile communication system
US20100318414A1 (en) Interactive advertising on call termination for mobile terminals
CN103220310A (en) Calling card exchange method and terminal and calling card server used for calling card exchange
CN1820469B (en) Methods and apparatus for controlling wireless network operations associated with a flow control process
CN101325746A (en) Method and system for transmitting message
US20120083243A1 (en) Communication Network Signaling
CN101729673A (en) Method and device for setting ringtone and wallpaper of mobile terminal
CN101695086B (en) Method and device for obtaining client information of mobile terminal
US20080278286A1 (en) Communication Method, System and User Terminal
KR101416339B1 (en) Method and apparatus for providing service using user identification in portable communication system
CN101668083A (en) Contact person information sharing method of mobile terminal and device
EP2493150A1 (en) Mobile application metadata collection agent
WO2010090047A1 (en) Mobile terminal, mail return method, and server
CN106714117A (en) Method and apparatus for receiving and transmitting multimedia messages
CN103391237A (en) Method and device for showing microblog messages
CN101951596A (en) Method and system for importing information of mobile communication terminal
KR20050114837A (en) The method of instant meeting in a short-range wireless network
CN101772214B (en) Method and device for collecting mobile terminal subscriber information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120815

Termination date: 20131016