CN108512744A - Advertisement SMS recognition methods, electronic device, terminal device and storage medium - Google Patents

Advertisement SMS recognition methods, electronic device, terminal device and storage medium Download PDF

Info

Publication number
CN108512744A
CN108512744A CN201810203379.4A CN201810203379A CN108512744A CN 108512744 A CN108512744 A CN 108512744A CN 201810203379 A CN201810203379 A CN 201810203379A CN 108512744 A CN108512744 A CN 108512744A
Authority
CN
China
Prior art keywords
short message
message content
counter
mobile phone
information
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.)
Granted
Application number
CN201810203379.4A
Other languages
Chinese (zh)
Other versions
CN108512744B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810203379.4A priority Critical patent/CN108512744B/en
Priority to PCT/CN2018/095358 priority patent/WO2019174164A1/en
Publication of CN108512744A publication Critical patent/CN108512744A/en
Application granted granted Critical
Publication of CN108512744B publication Critical patent/CN108512744B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/126Character encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/063Content adaptation, e.g. replacement of unsuitable content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/212Monitoring or handling of messages using filtering or selective blocking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/58Message adaptation for wireless communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • H04W12/088Access security using filters or firewalls
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/12Detection or prevention of fraud
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/101Access control lists [ACL]

Abstract

The invention discloses a kind of advertisement SMS recognition methods, belong to mobile communication field.A kind of advertisement SMS recognition methods, includes the following steps:S1, reception simultaneously preserve the information uploaded after the short message that mobile phone terminal is sent;S2, judge whether to receive excessively this preserve the identical short message content of short message content in information, if having skipping S3 directly executes S4, if without executing S3;S3, a counter is created to the accumulative IMEI quantity for receiving the short message content;S4, counter is called, the value of the counter is added 1;S5, judge whether the value of counter corresponding with the short message content meets or exceeds pre-set threshold value, it is advertising information to feed back the short message to all mobile phone terminals for uploading the short message content if reaching, it is advertising information to feed back the short message if the mobile phone terminal for uploading the short message content to this more than if, is directly terminated if not reaching.The present invention can effectively identify advertising information, avoid harassing and wrecking of the advertising information to user.

Description

Advertisement SMS recognition methods, electronic device, terminal device and storage medium
Technical field
The present invention relates to mobile communication technology field, it is related to a kind of advertisement SMS recognition methods, electronic device, terminal are set Standby and storage medium.
Background technology
Mobile phone is our most common communication tools, and short message is one of highest means of communication of frequency.By short Letter, we can be collected largely daily from extraneous information.Certainly, a large amount of user is also under the luring into of interests Private interests and manufacture various refuse messages.Such as:Lure short message of deducting fees, various commercial advertisements and fraud text message that user replys into.
In order to avoid the puzzlement of various refuse messages, existing most common Junk short message processing method is according to default Keyword, key combination or home town ruling judgement interception is carried out to the short message of reception, or by built in mobile phone Blacklist function allows user to add blacklist, carries out volley short message according to blacklist and trash number is intercepted.But Either keyword, key combination, home town ruling or blacklist are typically all to be carried out according to the refuse messages intercepted Setting, and refuse messages are changeable, What is more by constantly replacing or evading user in telecommunications with multigroup number The complaint of department, to shield and stopping that advertisement SMS brings obstacle.
Invention content
The technical problem to be solved by the present invention is in the prior art can be by constantly replacing or with multigroup in order to overcome Number evades shielded problem, it is proposed that a kind of advertisement SMS recognition methods, electronic device, terminal device and storage are situated between Matter judges by the way that short message content is compared to screen out advertising information one of the characteristics of for advertisement SMS " mass-sending ", Effectively identification advertising information so that number is sent by replacement and will be unable to escape shielded result.
The present invention is to solve above-mentioned technical problem by following technical proposals:
A kind of advertisement SMS recognition methods, includes the following steps:
S1, reception simultaneously preserve the information that mobile phone terminal uploads after receiving the short message that non-mobile phone contact is sent, the letter Breath includes short message content, terminal note ID and terminal device IMEI;
S2, judge whether have in previously stored information in short message identical with the short message content in this preservation information Hold, skipping S3 if having directly executes S4, if without executing S3;
S3, a counter corresponding with the short message content is created to the accumulative IMEI for receiving the short message content The initial value of quantity, the counter is 0;
S4, the corresponding counter of the short message content is called, the value of the counter is added 1;
S5, judge whether the value of the corresponding counter of the short message content meets or exceeds pre-set threshold value, held if reaching Row S6 directly terminates if executing S7 more than if if not reaching;
S6, the short message is fed back for advertising information, so as to mobile phone terminal root to all mobile phone terminals for uploading the short message content The short message is isolated according to the feedback;
It is advertising information that S7, the mobile phone terminal that the short message content is uploaded to this, which feed back the short message, so as to the mobile phone terminal The short message is isolated according to the feedback.
Preferably, this method is further comprising the steps of:
The phone number that S8, mobile phone terminal obtain the segregate short message of transmission is preserved into mobile phone blacklist.
Preferably, step S2 is specially:Judge preset short message content-counter correspond in table whether include and this The identical short message content of short message content in secondary preservation information, the short message content-counter are corresponded in table and are preserved in short message Hold the calling path with corresponding counter;
Step S4 is specially:By being corresponded to from preset short message content-counter, that the short message content is got in table is opposite The calling path for the counter answered is realized with this and calls the corresponding counter of the short message content.
Preferably, step S3 further includes:The calling path of the short message content and corresponding counter is added to short message Content-counter corresponds in table.
Preferably, the short message content that described information includes is that short message is transformed according to preset information coding rule Code.
Preferably, described information coding rule is:
On character code-centre position centre positions code & on the code=message length code-first place first places position code & position The character code-end position ends position code & position position on character code;
Wherein, described information length code indicates the quantity for the word for including in a short message, the position code indicate word press from Arrangement position of the sequence in short message after going to, the character code are that the unique of each word for including knows in corresponding short message Other coding.
Preferably, the centre position code is at least one, and the quantity of centre position code is determined according to the total number of word of short breath Fixed, computation rule is:
N=L/S-1;
Wherein, N indicates the quantity of centre position code, when N is non-integer, only round numbers part;L indicates the total of short message Number of words;S indicates interval number of words;
The computation rule of position code is in the centre:
An=S*n;
Wherein, AnIt indicates by tactic n intermediate position code from front to back;A0Indicate the first position code;S tables Show interval number of words;N indicates that the sequence of centre position code, n take 1 to N natural number.
A kind of electronic device is stored with advertisement SMS identifying system, advertisement SMS identification system on the electronic device System includes:
Receiving module is uploaded after receiving the short message that non-mobile phone contact is sent for receiving and preserve mobile phone terminal Information, described information include short message content, terminal note ID and terminal device IMEI;
Content identifier module, for judging whether have in previously stored information in the short message preserved with this in information Hold identical short message content;
Counter creation module is received for creating a counter corresponding with the short message content to accumulative The initial value of the IMEI quantity of the short message content, the counter is 0;
Counting module, for identical with the short message content in this preservation information when having in previously stored information When short message content, the corresponding counter of the short message content is called, the value of the counter is added 1;
Advertisement SMS judgment module, for judging whether the value of the corresponding counter of the short message content meets or exceeds Pre-set threshold value;
Feedback module, for when the value of the corresponding counter of the short message content reaches pre-set threshold value, to all uploads The mobile phone terminal of the short message content feed back the short message be advertising information, so as to mobile phone terminal according to it is described feedback by the short message into Row isolation;It is additionally operable to, when the value of the corresponding counter of the short message content is more than pre-set threshold value, upload in the short message to this It is advertising information that the mobile phone terminal of appearance, which feeds back the short message, so that the short message is isolated according to the feedback for the mobile phone terminal.
A kind of terminal device, including memory and processor are stored with and can be executed by the processor on the memory Advertisement SMS identifying system, realize that advertisement as described in any one of aforementioned is short when the system is executed by the processor The step of believing recognition methods.
A kind of computer readable storage medium is stored with advertisement SMS identification system in the computer readable storage medium System, the advertisement SMS identifying system can be performed by least one processors, so that at least one processor executes such as The step of advertisement SMS recognition methods described in any one of aforementioned.
The positive effect of the present invention is that:
1) present invention can effectively identify advertising information, avoid harassing and wrecking of the advertising information to user.
2) advertising information is screened in such a way that indifference covers according to the characteristics of the content of information and advertisement, what is made is logical Cross replacement send number will be unable to escape shielded.
Description of the drawings
Fig. 1 shows the flow chart of advertisement SMS recognition methods embodiment one of the present invention;
Fig. 2 shows the flow charts of advertisement SMS recognition methods embodiment two of the present invention;
Fig. 3 shows the program module schematic diagram of advertisement SMS identifying system first embodiment in electronic device of the present invention;
Fig. 4 shows the hardware structure schematic diagram of one embodiment of terminal device of the present invention.
Reference numeral:
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It further illustrates the present invention, but does not therefore limit the present invention to described below by the mode of embodiment Among scope of embodiments.
First, the present invention proposes a kind of advertisement SMS recognition methods.
In embodiment one, as shown in Figure 1, the advertisement SMS recognition methods includes the following steps:
S1, reception simultaneously preserve the information that mobile phone terminal uploads after receiving the short message that non-mobile phone contact is sent, the letter Breath includes short message content, terminal note ID and terminal device IMEI (International Mobile Equipment Identity, International Mobile Equipment Identity code).
The short message content refers to just the content for the short message that aforementioned non-mobile phone contact is sent.
The terminal note ID refers to ID of the short message in the message list set of mobile phone terminal, is unique mark of information Show symbol, it can also even if having two the same short messages according to the time order and function distribution terminal short message ID for receiving short message It is distinguished by ID.
The terminal device IMEI refers to the terminal device IMEI of the mobile phone terminal of upload information.
After receiving information, described information can be stored in similar to following table structure in certain database:
S2, judge whether have in previously stored information in short message identical with the short message content in this preservation information Hold, skipping S3 if having directly executes S4, if without executing S3.
In one embodiment, it is preset with short message content-counter and corresponds to table, the short message content-counter corresponds in table The calling path of short message content and corresponding counter is preserved, identical short message content only preserves in the correspondence table Once, only just should (when receiving the short message content for the first time) when creating counter corresponding with the short message content The calling path of short message content and corresponding counter is preserved into the correspondence table.
Thus, whether have in judging previously stored information identical short with the short message content in this preservation information When believing content, it is preferred to use whether judge that preset short message content-counter corresponds in table includes to be preserved in information with this The identical short message content of short message content mode, can be with effectively save data processing amount.
S3, a counter corresponding with the short message content is created to the accumulative IMEI for receiving the short message content The initial value of quantity, the counter is 0.
In one embodiment, after creating what a counter corresponding with the short message content, it is also necessary to by the short message The calling path of content and corresponding counter is added to short message content-counter and corresponds in table.
S4, the corresponding counter of the short message content is called, the value of the counter is added 1.
In one embodiment, preferably by the calling path of short message content and corresponding counter to correspond Mode preserve into corresponding table (for example short message content-counter corresponds to table), called accordingly by short message content with facilitating Counter.
S5, judge whether the value of the corresponding counter of the short message content meets or exceeds pre-set threshold value, held if reaching Row S6 directly terminates if executing S7 more than if if not reaching.
Whenever counter plus 1 primary, whether the value being judged as in start-stop counter meets or exceeds pre-set threshold value, that is, counts The execution of the accumulative triggering judgment step of number device.
If it is exactly advertisement not reach pre-set threshold value to indicate that these short message contents can't be concluded, because any without taking Measure, mobile phone terminal can normally show these short messages at this time.
S6, the short message is fed back for advertising information, so as to mobile phone terminal root to all mobile phone terminals for uploading the short message content The short message is isolated according to the feedback.
Before reaching pre-set threshold value, these short message contents are defaulted as non-advertisement, and reach pre-set threshold value that It carves, concludes that these short messages are advertising information, thus the mobile phone terminal that the short message content is not only uploaded to this sends feedback, It also needs to send feedback to the mobile phone terminal for uploading the short message content before.
Specifically, when pre-set threshold value be 300, when the value in the corresponding counter of a certain short message content be 299 when, be not Feedback can be sent to the mobile phone terminal for uploading these short message contents, and when the value in the corresponding counter of a certain short message content It needs to send feedback to all mobile phone terminals for uploading these short message contents that time for reaching 300, i.e., it is 300 identical short Believe that content from 300 different mobile phone terminals, then will all send feedback to this 300 mobile phone terminals.
It is advertising information that S7, the mobile phone terminal that the short message content is uploaded to this, which feed back the short message, so as to the mobile phone terminal The short message is isolated according to the feedback.
The mobile phone terminal that identical short message content is uploaded before reaching that quarter of pre-set threshold value had all received feedback, Thus when more than pre-set threshold value, it is only necessary to which this mobile phone terminal for uploading the short message content feeds back the short message for advertising information i.e. It can.
In the present embodiment one, advertising information is screened by the comparison of the content to information, can be screened out to the greatest extent Advertising information, after screening out advertising information to mobile phone terminal send feed back, then by mobile phone terminal voluntarily to the advertising information into Row isolation, i.e., preserve the advertising information from being transferred in the inbox of another establishment in the short message inbox of mobile phone terminal, such as Fruit user thinks that the information is useful, can also be moved back to it in short message inbox again, and operation is flexible.
In embodiment two, it is based on the basis of embodiment one, as shown in Fig. 2, the advertisement SMS recognition methods packet Include following steps:
S1-S7 is as in the first embodiment, details are not described herein again.
The phone number that S8, mobile phone terminal obtain the segregate short message of transmission is preserved into mobile phone blacklist.
Mobile phone terminal after short message is isolated, also further obtain send the short message phone number preserve it is black to mobile phone In list, so that next time is when receiving the short message that the phone number is sent, directly it is isolated.
In embodiment three, based on the basis of embodiment two, short message content is compared by plaintext and causes letter in order to prevent Breath leakage, thus uploaded after short message content is first converted into code according to preset information coding rule.
Specifically, described information coding rule is:
On character code-centre position centre positions code & on the code=message length code-first place first places position code & position The character code-end position ends position code & position position on character code.
Wherein, described information length code indicates the quantity for the word for including in a short message;Such as:One short message is wrapped altogether Containing 20 words (punctuation mark not counting), then message length code is exactly 20.
The position code indicates word by arrangement position of the sequence in short message from front to back;Such as:Short message content is " the preferential big discount in 7 days National Day market ", " state " the corresponding position code to rank the first are 01, and it is corresponding to come deputy " celebrating " Position code be 02, and so on.
The character code is the unique identifiable coding for each word for including in corresponding short message.More specifically, when short When the word for including in letter is Chinese character, corresponding character code is the coding being made of several numbers;When the word for including in short message is number When word or letter, corresponding character code is the coding being made of with an additional character the word itself.The corresponding volume of the Chinese character Code is preset with corresponding table of the Chinese character with character code, for example use national standard (GB to be pre-stored in system in advance in system The encoding of chinese characters simplicity table of comparisons in 2312-80) is adjusted by the way that the Chinese character in short message to be compared with the Chinese character in corresponding table Take the corresponding character code of the Chinese character.By taking aforementioned short message content as an example, it is assumed that " state " corresponding character code is 1234, and " 7 " are corresponding Character code is 7# (# is additional character), and " quotient " corresponding character code is 1235, and " guest " corresponding character code is 1236.
When to prevent short message number of words more, only take the comparison result that 3 character codes obtain inaccurate, therefore information coding Centre position code described in rule can have multiple, but at least one, the quantity of centre position code is according to total word of short breath Number determines that computation rule is:
N=L/S-1;
Wherein, N indicates the quantity of centre position code, when N is non-integer, only round numbers part;L indicates the total of short message Number of words;S indicates interval number of words.
As an example it is assumed that the number of words that short message includes is 17, interval number of words takes 5, then N=2;Assuming that the word that short message includes Number is 28, and interval number of words takes 5, then N=4;And so on.
The computation rule of position code is in the centre:
An=S*n;
Wherein, AnIt indicates by tactic n intermediate position code from front to back;A0Indicate the first position code;S tables Show interval number of words;N indicates that the sequence of centre position code, n take 1 to N natural number.
As an example it is assumed that the number of words that short message includes is 17, interval number of words takes 5, then two centre position codes are respectively 05 With 10.The digit of the position code may be set according to actual conditions, and generally set 2-3.
According to above-mentioned coding rule, the code that short message " the preferential big discount in 7 days National Day market " is converted into should be:11- 011234-051235-111236。
Due to mobile phone terminal receive the short message that non-mobile phone contact is sent do not do any differentiation can direct upload information, Thus upload information in include short message content be likely to not be advertising information, by by short message content according to specific volume Code rule uploads after being converted into code, and the content of comparison is actually transformed code, can effectively prevent information leakage.
Secondly, the present invention proposes a kind of electronic device, and advertisement SMS identifying system is stored on the electronic device 20, the system 20 can be divided into one or more program module.
For example, Fig. 3 shows the program module schematic diagram of 20 first embodiment of advertisement SMS identifying system, the reality Apply in example, the system 20 can be divided into receiving module 201, content identifier module 202, counter creation module 203, Counting module 204, advertisement SMS judgment module 205 and feedback module 206.The program module will specifically be introduced by being described below The concrete function of 201-206.
Receiving module 201 is uploaded for receiving and preserving mobile phone terminal after receiving the short message that non-mobile phone contact is sent Information, described information includes short message content, terminal note ID and terminal device IMEI.
The short message content refers to just the content for the short message that aforementioned non-mobile phone contact is sent.
The terminal note ID refers to ID of the short message in the message list set of mobile phone terminal, is unique mark of information Show symbol, it can also even if having two the same short messages according to the time order and function distribution terminal short message ID for receiving short message It is distinguished by ID.
The terminal device IMEI refers to the terminal device IMEI of the mobile phone terminal of upload information.
After receiving information, described information can be stored in similar to following table structure in certain database:
Content identifier module 202, for judging whether have in previously stored information and the short message in this preservation information The identical short message content of content.
In one embodiment, it is preset with short message content-counter and corresponds to table, the short message content-counter corresponds in table The calling path of short message content and corresponding counter is preserved, identical short message content only preserves in the correspondence table Once, only just should (when receiving the short message content for the first time) when creating counter corresponding with the short message content The calling path of short message content and corresponding counter is preserved into the correspondence table.
Thus, whether have in judging previously stored information identical short with the short message content in this preservation information When believing content, it is preferred to use whether judge that preset short message content-counter corresponds in table includes to be preserved in information with this The identical short message content of short message content mode, can be with effectively save data processing amount.
Counter creation module 203 is received for creating a counter corresponding with the short message content to accumulative Initial value to the IMEI quantity of the short message content, the counter is 0.
In one embodiment, what a meter corresponding with the short message content which is also creating After number device, the calling path of the short message content and corresponding counter is added to short message content-counter and is corresponded in table
Counting module 204, for identical as the short message content in this preservation information when having in previously stored information Short message content when, call the corresponding counter of the short message content, the value of the counter added 1.
In one embodiment, preferably by the calling path of short message content and corresponding counter to correspond Mode preserve into corresponding table (for example short message content-counter corresponds to table), when needing to call counter, from correspondence table Middle acquisition is with the calling path of the corresponding counter of short message content to call corresponding counter.
Advertisement SMS judgment module 205, for judging whether the value of the corresponding counter of the short message content reaches or surpass Cross pre-set threshold value.
Whenever counter plus 1 primary, whether the value being judged as in start-stop counter meets or exceeds pre-set threshold value, that is, counts The execution of the accumulative triggering judgment step of number device.
Feedback module 206, for when the value of the corresponding counter of the short message content reaches pre-set threshold value, to all The mobile phone terminal for uploading the short message content feeds back the short message for advertising information, so that mobile phone terminal is short by this according to the feedback Letter is isolated;It is additionally operable to, when the value of the corresponding counter of the short message content is more than pre-set threshold value, it is short to upload this to this It is advertising information that the mobile phone terminal of letter content, which feeds back the short message, so that the mobile phone terminal carries out the short message according to the feedback Isolation.
If the value in counter does not reach pre-set threshold value, then it represents that these short message contents can't conclude to be exactly advertisement, Because without taking any measure, mobile phone terminal that can normally show these short messages at this time.
Before the value in counter reaches pre-set threshold value, these short message contents are defaulted as non-advertisement, and default reaching Conclude that these short messages are advertising information that time of threshold values, thus not only to upload the mobile phone terminal of the short message content to this Send feedback, it is also necessary to send feedback to the mobile phone terminal for uploading the short message content before.
Specifically, when pre-set threshold value be 300, when the value in the corresponding counter of a certain short message content be 299 when, be not Feedback can be sent to the mobile phone terminal for uploading these short message contents, and when the value in the corresponding counter of a certain short message content It needs to send feedback to all mobile phone terminals for uploading these short message contents that time for reaching 300, i.e., it is 300 identical short Believe that content from 300 different mobile phone terminals, then will all send feedback to this 300 mobile phone terminals.
Value in counter uploads identical short message content mobile phone terminal before reaching that quarter of pre-set threshold value has all connect It received and fed back, thus when the value in counter is more than pre-set threshold value, it is only necessary to this uploads the mobile phone terminal of the short message content It is advertising information to feed back the short message.
Again, the present invention also puts forward a kind of terminal device.
As shown in fig.4, being the hardware structure schematic diagram of one embodiment of terminal device of the present invention.It is described in the present embodiment Terminal device 2 be it is a kind of can be automatic to carry out numerical computations and/or information processing according to the instruction for being previously set or storing Equipment.For example, it may be smart mobile phone, tablet computer, laptop, desktop computer, rack-mount server, blade Formula server, tower server or Cabinet-type server (including clothes that independent server or multiple servers are formed Business device cluster) etc..As shown, the terminal device 2 includes at least, but it is not limited to, can be in communication with each other by system bus Connect memory 21, processor 22, network interface 23 and advertisement SMS identifying system 20.Wherein:
The memory 21 includes at least a type of computer readable storage medium, the readable storage medium storing program for executing packet Include flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), quiet State random access storage device (SRAM), electrically erasable programmable read-only memory (EEPROM), can be compiled read-only memory (ROM) Journey read-only memory (PROM), magnetic storage, disk, CD etc..In some embodiments, the memory 21 can be The internal storage unit of the terminal device 2, for example, the terminal device 2 hard disk or memory.In further embodiments, institute State the plug-in type being equipped on the External memory equipment that memory 21 can also be the terminal device 2, such as the terminal device 2 Hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, the memory 21 can also both include the internal storage unit of the terminal device 2 or wrap Include its External memory equipment.In the present embodiment, the memory 21 is installed on the behaviour of the terminal device 2 commonly used in storage Make system and types of applications software, such as the program code etc. of the advertisement SMS identifying system 20.In addition, the memory 21 can be also used for temporarily storing the Various types of data that has exported or will export.
The processor 22 can be in some embodiments central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips.The processor 22 is commonly used in described in control The overall operation of terminal device 2, for example, execute with the terminal device 2 carry out data interaction or communicate it is relevant control and Processing etc..In the present embodiment, the processor 22 is for running the program code stored in the memory 21 or processing number According to, such as run the advertisement SMS identifying system 20 etc..
The network interface 23 may include radio network interface or wired network interface, which is commonly used in Communication connection is established between the terminal device 2 and other-end equipment.For example, the network interface 23 is for passing through net The terminal device 2 is connected by network with exterior terminal, and data transmission is established between the terminal device 2 and exterior terminal Channel and communication connection etc..The network can be intranet (Intranet), internet (Internet), whole world shifting Dynamic communication system (Global System of Mobile communication, GSM), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), 4G networks, 5G networks, bluetooth (Bluetooth), the nothings such as Wi-Fi Line or cable network.
It should be pointed out that Fig. 4 illustrates only the terminal device 2 with component 21-23, it should be understood that not It is required that implement all components shown, the implementation that can be substituted is more or less component.
In the present embodiment, the advertisement SMS identifying system 20 being stored in memory 21 can be by one or more A processor (the present embodiment is processor 22) is performed, to complete the operation of above-mentioned advertisement SMS recognition methods.
It is short it to be stored with advertisement in addition, a kind of computer readable storage medium of the present invention, in the computer readable storage medium Letter identifying system 20 realizes above-mentioned advertisement SMS when the advertisement SMS identifying system 20 can be executed by one or more processors Recognition methods or the operation of electronic device.
Although specific embodiments of the present invention have been described above, it will be appreciated by those of skill in the art that this is only For example, protection scope of the present invention is to be defined by the appended claims.Those skilled in the art without departing substantially from Under the premise of the principle and substance of the present invention, many changes and modifications may be made, but these change and Modification each falls within protection scope of the present invention.

Claims (10)

1. a kind of advertisement SMS recognition methods, which is characterized in that include the following steps:
S1, reception simultaneously preserve the information that mobile phone terminal uploads after receiving the short message that non-mobile phone contact is sent, described information packet Include short message content, terminal note ID and terminal device IMEI;
S2, judge whether there is short message content identical with the short message content in this preservation information in previously stored information, if Have, skip S3 and directly execute S4, if executing S3 without if;
S3, a counter corresponding with the short message content is created to add up to receive the IMEI quantity of the short message content, The initial value of the counter is 0;
S4, the corresponding counter of the short message content is called, the value of the counter is added 1;
S5, judge whether the value of the corresponding counter of the short message content meets or exceeds pre-set threshold value, S6 executed if reaching, If executing S7 more than if, directly terminate if not reaching;
S6, the short message is fed back for advertising information, so that mobile phone terminal is according to institute to all mobile phone terminals for uploading the short message content It states feedback the short message is isolated;
S7, the mobile phone terminal that the short message content is uploaded to this feed back the short message be advertising information, so as to the mobile phone terminal according to The feedback is isolated by the short message.
2. advertisement SMS recognition methods according to claim 1, which is characterized in that this method is further comprising the steps of:
The phone number that S8, mobile phone terminal obtain the segregate short message of transmission is preserved into mobile phone blacklist.
3. advertisement SMS recognition methods according to claim 1, which is characterized in that
Step S2 is specially:Whether judge that preset short message content-counter corresponds in table includes to be preserved in information with this The identical short message content of short message content, the short message content-counter corresponds to and preserves short message content and in contrast in table The calling path for the counter answered;
Step S4 is specially:By being corresponded to from preset short message content-counter, that the short message content is got in table is corresponding The calling path of counter is realized with this and calls the corresponding counter of the short message content.
4. advertisement SMS recognition methods according to claim 3, which is characterized in that step S3 further includes:It will be in the short message Appearance is added to short message content-counter with the calling path of corresponding counter and corresponds in table.
5. advertisement SMS recognition methods according to claim 1, which is characterized in that the short message content that described information includes is By short message according to the transformed code of preset information coding rule.
6. advertisement SMS recognition methods according to claim 5, which is characterized in that described information coding rule is:
The word on character code-centre position centre positions code & on the code=message length code-first place first places position code & position Character code on the symbol-end position ends position code & position position;
Wherein, described information length code indicates the quantity for the word for including in a short message, and the position code indicates word by from going to Arrangement position of the sequence afterwards in short message, the character code are the unique identifiable volume for each word for including in corresponding short message Code.
7. advertisement SMS recognition methods according to claim 6, which is characterized in that the centre position code is at least one A, the quantity of centre position code determines that computation rule is according to the total number of word of short breath:
N=L/S-1;
Wherein, N indicates the quantity of centre position code, when N is non-integer, only round numbers part;L indicates the total number of word of short message;S Indicate interval number of words;
The computation rule of position code is in the centre:
An=S*n;
Wherein, AnIt indicates by tactic n intermediate position code from front to back;A0Indicate the first position code;Between S is indicated Every number of words;N indicates that the sequence of centre position code, n take 1 to N natural number.
8. a kind of electronic device, which is characterized in that be stored with advertisement SMS identifying system on the electronic device, the advertisement is short Believe that identifying system includes:
Receiving module, the information uploaded after receiving the short message that non-mobile phone contact is sent for receiving and preserving mobile phone terminal, Described information includes short message content, terminal note ID and terminal device IMEI;
Whether content identifier module is identical as the short message content in this preservation information for judging to have in previously stored information Short message content;
Counter creation module receives the short message for creating a counter corresponding with the short message content to accumulative The initial value of the IMEI quantity of content, the counter is 0;
Counting module has in short message identical with the short message content in this preservation information for working as in previously stored information Rong Shi, calls the corresponding counter of the short message content, and the value of the counter is added 1;
Advertisement SMS judgment module, for judging whether the value of the corresponding counter of the short message content meets or exceeds default valve Value;
Feedback module, for when the value of the corresponding counter of the short message content reaches pre-set threshold value, this to be short to all uploads Letter content mobile phone terminal feed back the short message be advertising information, so as to mobile phone terminal according to it is described feedback by the short message carry out every From;It is additionally operable to, when the value of the corresponding counter of the short message content is more than pre-set threshold value, the short message content be uploaded to this It is advertising information that mobile phone terminal, which feeds back the short message, so that the short message is isolated according to the feedback for the mobile phone terminal.
9. a kind of terminal device, including memory and processor, which is characterized in that being stored on the memory can be by the place The advertisement SMS identifying system that device executes is managed, is realized when the system is executed by the processor as any in claim 1-7 Described in advertisement SMS recognition methods the step of.
10. a kind of computer readable storage medium, which is characterized in that it is short to be stored with advertisement in the computer readable storage medium Believe identifying system, the advertisement SMS identifying system can be performed by least one processor, so that at least one processing Device executes the step of advertisement SMS recognition methods as described in any one of claim 1-7.
CN201810203379.4A 2018-03-13 2018-03-13 Advertisement short message identification method, electronic device, terminal equipment and storage medium Active CN108512744B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810203379.4A CN108512744B (en) 2018-03-13 2018-03-13 Advertisement short message identification method, electronic device, terminal equipment and storage medium
PCT/CN2018/095358 WO2019174164A1 (en) 2018-03-13 2018-07-12 Advertisement short message recognition method, electronic apparatus, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810203379.4A CN108512744B (en) 2018-03-13 2018-03-13 Advertisement short message identification method, electronic device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108512744A true CN108512744A (en) 2018-09-07
CN108512744B CN108512744B (en) 2020-10-16

Family

ID=63377554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810203379.4A Active CN108512744B (en) 2018-03-13 2018-03-13 Advertisement short message identification method, electronic device, terminal equipment and storage medium

Country Status (2)

Country Link
CN (1) CN108512744B (en)
WO (1) WO2019174164A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113301516A (en) * 2021-03-31 2021-08-24 北京思特奇信息技术股份有限公司 Method and system for rejecting duplicate messages during short message sending

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350957A (en) * 2008-07-28 2009-01-21 杨沁沁 Method and equipment for shielding rubbish short message
CN101697620A (en) * 2009-10-30 2010-04-21 中兴通讯股份有限公司 Method and system for determining spam messages
CN103476011A (en) * 2013-08-30 2013-12-25 广东明创软件科技有限公司 Method and system for prompting user short message credibility
CN103888919A (en) * 2012-12-19 2014-06-25 中兴通讯股份有限公司 Short message monitoring method and device thereof
CN103929723A (en) * 2014-04-30 2014-07-16 小米科技有限责任公司 Junk short message recognition method and device
CN104010284A (en) * 2014-05-30 2014-08-27 可牛网络技术(北京)有限公司 Method and device for processing spam short message
CN106454780A (en) * 2016-11-11 2017-02-22 努比亚技术有限公司 Junk short message filtering system and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101790142B (en) * 2010-03-11 2012-11-14 上海粱江通信系统股份有限公司 Method and system for identifying spam message sources by combining message contents and transmission frequency

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350957A (en) * 2008-07-28 2009-01-21 杨沁沁 Method and equipment for shielding rubbish short message
CN101697620A (en) * 2009-10-30 2010-04-21 中兴通讯股份有限公司 Method and system for determining spam messages
CN103888919A (en) * 2012-12-19 2014-06-25 中兴通讯股份有限公司 Short message monitoring method and device thereof
CN103476011A (en) * 2013-08-30 2013-12-25 广东明创软件科技有限公司 Method and system for prompting user short message credibility
CN103929723A (en) * 2014-04-30 2014-07-16 小米科技有限责任公司 Junk short message recognition method and device
CN104010284A (en) * 2014-05-30 2014-08-27 可牛网络技术(北京)有限公司 Method and device for processing spam short message
CN106454780A (en) * 2016-11-11 2017-02-22 努比亚技术有限公司 Junk short message filtering system and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113301516A (en) * 2021-03-31 2021-08-24 北京思特奇信息技术股份有限公司 Method and system for rejecting duplicate messages during short message sending

Also Published As

Publication number Publication date
CN108512744B (en) 2020-10-16
WO2019174164A1 (en) 2019-09-19

Similar Documents

Publication Publication Date Title
CN108255555B (en) A kind of system language switching method and terminal device
CN105898001B (en) Communication information processing method and device and server
CN105869035A (en) Mobile user credit evaluation method and apparatus
CN107404589A (en) Kind identification method, device and the terminal device of call number
CN106095789A (en) A kind of message subscribing managing device and method
CN110611929A (en) Abnormal user identification method and device
CN106686265A (en) A service providing method and device based on communication records
CN109214683A (en) A kind of Application of risk decision method and device
CN111049822B (en) Short message verification code sending method and device, short message server and storage medium
CN109348512A (en) Method of adjustment, device and the storage medium of business dosage
CN106230999A (en) A kind of contact person information processing method, terminal and server
CN106412296B (en) Terminal equipment control method and device
CN109495380B (en) Mail sending method, mail sending device, computer equipment and storage medium
CN108512744A (en) Advertisement SMS recognition methods, electronic device, terminal device and storage medium
CN104506743B (en) A kind of method and device of dynamic interception phone
CN108924840B (en) Blacklist management method and device and terminal
CN104796435A (en) Message pushing method and message server
CN104796519A (en) Terminal
CN108513269B (en) Advertisement short message identification method, electronic device, computer equipment and storage medium
CN114793325A (en) Short message charging method and device for VoLTE terminal user and electronic equipment
CN103107936B (en) A kind of method and device sending information
CN115065946B (en) Short message sending method, device, equipment and medium
CN105120045A (en) Method and device for creating address book according to note information of new contact name
CN104780252A (en) Contact list management method
CN104469012B (en) Mobile communication terminal is harassed store method and the mobile communication terminal of address

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
GR01 Patent grant
GR01 Patent grant