Background technology
SMS is the data service commonly used of present wireless network, utilizes signaling link to realize that point-to-point message transmits, and is a kind of non real-time reliable information transfer service, for the user provides message communicating service easily.Along with mobile phone (MS, Mobile Station) universal day by day, what mobile communications network was built constantly improves and the more and more appearance of free dispach (FD) Short Message Service website, and the development of short message service is also more and more flourishing, and the user sends SMS message also more economical.Short message becomes the more and more important communication means of user with its low price, advantage such as various informative, convenient and swift.By short message, the user can also obtain business such as weather forecast, news, traffic conditions, Flight Information, stock market, exchange rate quotation, telephone expenses inquiry and E-mail notice.Yet, when the user enjoys the while easily that short message brings, some junk short message such as rubbish broadcast SMS (Broadcast SMS) and WAP (wireless application protocol) (WAP, Wireless Application Protocol) short message is also availed oneself of the opportunity to get in, not only greatly disturb user's daily life and work, and brought many social concerns.
At junk short message, prior art has proposed the scheme of short message fire compartment wall, by being set, the user allows the MS number that receives, the short message fire compartment wall is according to user's setting, to send to the user from the short message that the user allows the MS of the MS number that receives to send, and the short message that the MS of interception except that the user is provided with sends can effectively avoid receiving rubbish broadcast SMS and WAP short message.
In the practical application, the user also needs the useful short message of other MS outside being provided with or network transmission is received, according to existing short message firewall technology scheme, only the short message of the MS number correspondence that the user is provided with is sent to the user, can't receive the useful short message outside other allowed bands, and the user is provided with and allows the MS number of reception also comparatively loaded down with trivial details, has reduced user's experience.
Summary of the invention
The embodiment of the invention provides a kind of method of monitoring rubbish short message, avoids receiving junk short message, prevents to miss useful short message, strengthens user experience.
The embodiment of the invention also provides a kind of equipment of monitoring rubbish short message, avoids receiving junk short message, prevents to miss useful short message, strengthens user experience.
For achieving the above object, the technical scheme of the embodiment of the invention specifically is achieved in that
A kind of method of monitoring rubbish short message, this method comprises:
Receive short message;
Obtain described short message types;
Judge that whether the short message types of obtaining meets the rejection junk short message type that sets in advance, if meet, tackles the short message of described reception; If be not inconsistent, the prompting user receives short message.
A kind of equipment of monitoring rubbish short message, this equipment comprises: receiving element and processing unit, wherein,
Receiving element is used to receive short message, is sent to processing unit;
Processing unit is used for the short message according to the receiving element transmission, obtains short message types, and whether inquiry meets the rejection junk short message type of setting, if meet, tackles this short message; If do not meet, the prompting user receives short message.
As seen from the above technical solution, the method and apparatus of a kind of monitoring rubbish short message of the embodiment of the invention, reject the junk short message type by in mobile phone, being provided with, mobile phone is after receiving short message, short message is resolved, reject the junk short message type if the short message types of obtaining meets, tackle this short message; Do not reject the junk short message type if the short message types of obtaining meets, the prompting user receives short message.Thereby avoided receiving junk short message, prevented to miss useful short message effectively simultaneously, do not needed the user that the MS number of rejecting short message is set, be provided with simply, strengthened user experience.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in further detail.
The embodiment of the invention is rejected the junk short message type by being provided with in mobile phone, mobile phone is resolved short message after receiving short message, rejects the junk short message type if the short message types of obtaining meets, and tackles this short message; Do not reject the junk short message type if the short message types of obtaining meets, the prompting user receives short message.
To achieve these goals, the embodiment of the invention has proposed a kind of equipment of monitoring rubbish short message.
Fig. 1 is the device structure schematic diagram of a kind of monitoring rubbish short message of the embodiment of the invention.Referring to Fig. 1, this equipment comprises: receiving element and processing unit, wherein,
Receiving element is used to receive short message, is sent to processing unit;
Processing unit is used to receive the short message that receiving element sends, and obtains short message types, and according to the short message types of obtaining, whether inquiry meets the rejection junk short message type of setting, if meet, tackles this short message; If the short message types of obtaining does not meet the rejection junk short message type of setting, the prompting user receives short message.
Processing unit comprises parsing module and query processing module, wherein,
Parsing module is used for the short message that receiving element sends is resolved, and obtains short message types, and short message is sent to query processing module, carries short message types;
Query processing module is used to receive the short message that parsing module sends, and according to the short message types of carrying, whether inquiry meets the rejection junk short message type of setting, if meet, tackles this short message; If the short message types of obtaining does not meet the rejection junk short message type of setting, the prompting user receives short message.
This equipment can also comprise: memory cell is used to store the short message of the rejection junk short message type that does not meet setting; Also can be used for storing the rejection junk short message type of setting, receive the short message of resolution unit transmission when processing unit after,, whether meet the rejection junk short message type of setting from storage unit query according to the short message types of carrying, if meet, tackle this short message; If the short message types of obtaining does not meet the rejection junk short message type of setting, the prompting user receives short message.
In the practical application, the junk short message type is judged according to Short Message Identifier, the short message types that different Short Message Identifiers is corresponding different.For instance, for broadcast SMS and WAP short message, its Short Message Identifier is different, after resolution unit is decoded, just can judge the short message types of current reception according to the Short Message Identifier that obtains.
Fig. 2 is the method flow schematic diagram of a kind of monitoring rubbish short message of the embodiment of the invention.In the present embodiment, be example, the junk short message menu is set on MS, in the junk short message submenu, be provided with and reject broadcast SMS and WAP short message with broadcast SMS and WAP short message.Referring to Fig. 2, this flow process comprises:
Step 201 receives short message;
In this step, MS receives the short message from network side.
Step 202 is obtained short message types to the short message parsing that receives;
In this step, the parsing short message obtains short message types and comprises: at first the short message that receives is decoded, read short message types (MSG_type) sign in the short message data bag (Burst_data) then, obtain short message types.For example, short message types is designated 0 expression broadcast SMS; Short message types is designated 1 expression WAP short message; Short message types is designated 2 other short message types of expression etc.
Step 203 judges whether short message is broadcast SMS or WAP short message, if, execution in step 204, if neither broadcast SMS neither the WAP short message, execution in step 211;
Step 204 judges whether to be provided with and rejects broadcast SMS and/or WAP short message, if execution in step 205 is not if be provided with execution in step 211;
In the practical application, step 203 and step 204 be sequencing not, and step 204 also can be carried out before step 203.
Step 205 is not preserved this short message;
Step 206 does not eject new short message prompt frame;
Step 211 is preserved this short message;
Step 212 ejects new short message prompt frame.
In the practical application, the user also can be updated in MS and go up the short message types that is provided with, change the acceptable short message types into as the rejection short message types that will originally be provided with, only needing to remove (deletion) by the rejection short message types that will be provided with from the junk short message submenu gets final product, can certainly adopt other method to activate or dormancy, also can add the rejection short message types as adopting.
In the practical application, also the junk short message menu can be set on MS, the rejection broadcast SMS is set respectively in the junk short message submenu, and/or the WAP short message, other also can be set reject short message types, after MS receives short message, as long as the short message types that receives meets in the rejection short message types of setting any one, just reject this short message, do not preserve this short message, do not eject new short message prompt frame.
As seen from the above-described embodiment, the method and apparatus of a kind of monitoring rubbish short message of the embodiment of the invention, reject the junk short message type by in mobile phone, being provided with, mobile phone is after receiving short message, short message is resolved, reject the junk short message type, tackle this short message if the short message types of obtaining meets, do not preserve this short message, do not eject new short message prompt frame; Do not reject the junk short message type if the short message types of obtaining meets, the prompting user receives short message and preserves this short message, ejects new short message prompt frame.Thereby avoided receiving junk short message, prevented from effectively to miss useful short message simultaneously, be provided with simply, can need be provided with according to the user neatly, do not needed the user that the MS number of rejecting short message is set, strengthened user experience.
More than lift preferred embodiment; the purpose, technical solutions and advantages of the present invention are further described; institute is understood that; the above only is preferred embodiment of the present invention; not in order to restriction the present invention; within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.