A method, apparatus and storage medium for transferring text messages.
By identifying the target number and device information, and combining time difference, number of communications, and feature word library, intelligent SMS transfer is achieved, solving the inconvenience of users having to view SMS messages from multiple terminal devices separately, and improving the convenience and security of SMS transfer.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-11
- Publication Date
- 2026-04-03
AI Technical Summary
It is inconvenient for users with multiple mobile phone numbers to check text messages on each of their respective devices.
By identifying the target number and SMS message, the system obtains the target device information and transmits the SMS message to the target device when a user transfer instruction is detected. The system then sorts and labels the SMS messages based on time difference, number of communications, reading status, and a feature word library, thus achieving intelligent SMS transfer.
Users can more easily view text messages on different devices, reducing the risk of unread text message accumulation and improving the security and efficiency of text message transfer.
Smart Images

Figure CN115633316B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a method, apparatus and storage medium for transferring text messages. Background Technology
[0002] Currently, more and more users have multiple mobile phone numbers. However, since a terminal device can only support a maximum of two SIM cards, meaning a terminal device can only hold a maximum of two mobile phone numbers, when a user has two or more mobile phone numbers, that is, when using at least two terminal devices, the user needs to use the terminal device corresponding to each message to view the text messages on each terminal device, which is quite inconvenient. Summary of the Invention
[0003] To enable users to view text messages on different terminal devices, this application provides a method, apparatus, and storage medium for transferring text messages.
[0004] Firstly, this application provides a method for SMS transfer, employing the following technical solution:
[0005] A method for transferring SMS messages includes:
[0006] Based on the number selection instruction triggered by the user, determine the target number from at least one number;
[0007] Based on the SMS selection command triggered by the user, determine the SMS to be transferred from the SMS corresponding to the target number;
[0008] Obtain device information of the target device that needs to receive the SMS message to be transferred;
[0009] When a user-triggered transfer command is detected, the SMS message to be transferred is transmitted to the target device according to the device information.
[0010] By adopting the above technical solution, since there is at least one target number, it is necessary to determine the target number from at least one number based on the user-triggered number selection command. Each target number corresponds to multiple SMS messages, and it is necessary to determine the SMS messages to be transferred from the SMS messages corresponding to the target number based on the user-triggered SMS selection command. This identifies the SMS messages that the user needs to transfer. Device information of the target device that needs to receive the SMS messages to be transferred is obtained. When a user-triggered transfer command is detected, it indicates that the user needs to transfer the SMS messages to be transferred, and the SMS messages to be transferred are transmitted to the target device based on the device information. This allows users to more conveniently view SMS messages on different devices.
[0011] In another possible implementation, transmitting the SMS message to be transferred to the target device includes:
[0012] The receiving time, current time, reading status, and number of communications to the source number corresponding to the SMS to be transferred are obtained. The reading status includes read status and unread status.
[0013] Calculate the time difference between the current time and the received time;
[0014] The score of the SMS message to be transferred is determined based on the time difference, the number of communications, the reading status, and their respective weights.
[0015] The SMS messages to be transferred are sorted based on the scores to obtain the sorting results;
[0016] Based on the sorting results, the SMS messages to be transferred are transmitted to the target device.
[0017] By employing the above technical solution, the receiving time of the SMS message to be transferred and the current time are obtained to calculate the time difference between the current time and the receiving time. The smaller the time difference, the shorter the time between the receiving time and the current time, indicating a higher timeliness of the SMS message and a higher probability that the user needs to transfer it, thus resulting in a higher score. The reading status of the SMS message to be transferred is also obtained, including read and unread statuses. A read status indicates that the SMS message has been viewed and processed by the user, resulting in a lower score. An unread status indicates a higher probability that the SMS message needs to be transferred, resulting in a higher score. Finally, the number of communications with the source number corresponding to the SMS message to be transferred is also obtained. A higher number of communications indicates a higher frequency of interaction with the source number, further increasing the probability that the SMS message from that source number needs to be transferred, and thus a higher score.
[0018] Since time difference, number of communications, and reading status have varying degrees of influence on SMS messages to be transferred, it is necessary to determine the score of each SMS message based on its time difference, number of communications, reading status, and their respective weights. The SMS messages to be transferred are then sorted according to their scores, resulting in a ranking. Finally, the SMS messages to be transferred are transmitted to the target device based on the ranking, allowing users to intuitively understand the score of each SMS message.
[0019] In another possible implementation, the step of determining the SMS message to be transferred from the SMS messages corresponding to the target number based on the user-triggered SMS selection instruction further includes:
[0020] Obtain the SMS content of the SMS message corresponding to the target number;
[0021] Feature words are extracted from the content of each SMS message to obtain the feature words of the SMS message content for each SMS message;
[0022] The feature words of any SMS message are searched in a preset feature word library, which contains multiple feature words and each feature word corresponds to category information.
[0023] If the feature word is found in the preset feature word library, the category information corresponding to the feature word is determined;
[0024] The category information corresponding to the feature word is determined as the category information corresponding to the SMS message;
[0025] Output each SMS message and the category information corresponding to each SMS message.
[0026] By adopting the above technical solution, the preset feature library contains multiple feature words, and each feature word corresponds to category information. Since each SMS message is of a different type, to determine the specific category information of each SMS message, it is necessary to obtain the SMS content corresponding to the target number, and extract feature words from the SMS content of each SMS message to obtain the feature words for each SMS message. This allows the category information corresponding to the feature words to be found in the preset feature word library, thereby deriving the category information of the SMS message. Each SMS message and its corresponding category information are then output so that users can clearly understand the category information of each SMS message and perform operations based on the category information.
[0027] In another possible implementation, the method further includes:
[0028] Search any number from any source in the dangerous number database;
[0029] If any of the source numbers is found in the dangerous number database, then the source number is determined to be a dangerous number, and the SMS message corresponding to the source number is determined to be a dangerous SMS message.
[0030] The dangerous text messages are marked.
[0031] By adopting the above technical solution, each SMS message corresponds to a source number, i.e., the number that sent the SMS message to the target number. The dangerous number database includes multiple recorded dangerous numbers. A search is performed on a specific source number in the dangerous number database to determine whether the source number is dangerous. When the source number is found in the database, it is determined to be a dangerous number, and the corresponding SMS message is identified as a dangerous SMS message and marked as such. This allows users to clearly and intuitively understand whether an SMS message is dangerous, reducing the risk of users encountering dangerous SMS messages to a certain extent.
[0032] In another possible implementation, the method further includes:
[0033] When a SIM card transfer command triggered by a user is detected, the SMS storage space corresponding to the SIM card and the number of characters in each SMS message to be transferred are determined.
[0034] If the number of characters in any SMS message to be transferred reaches the preset number of characters, then a compressed SMS message to be transferred is generated based on the feature words of the SMS message to be transferred.
[0035] The SMS storage space is divided according to the type information to obtain the storage space corresponding to each type information;
[0036] Based on the type information and score of the SMS messages to be transferred, the compressed SMS messages to be transferred and their corresponding sending numbers are saved in the corresponding storage space.
[0037] By adopting the above technical solution, when a user-triggered SIM card transfer command is detected, it indicates that the user needs to transfer SMS messages via SIM card transfer, meaning the SMS messages need to be stored on the SIM card. However, there are various SIM card types, and each SIM card type has corresponding storage space, meaning SIM cards have different storage capacities. Therefore, it is necessary to determine the SMS storage space corresponding to the SIM card and the character count of each SMS message to be transferred. When the character count of any SMS message to be transferred reaches a preset character count, it indicates that the SMS message content is too large. A compressed SMS message to be transferred needs to be generated based on the characteristic words of the SMS message to be transferred, so that more SMS messages can be stored on the SIM card. The SMS storage space is divided according to category information, obtaining the storage space corresponding to each category. Based on the category information and score of the SMS message to be transferred, the compressed SMS message to be transferred and the corresponding sending number are saved in the corresponding storage space, so that more important SMS messages can be stored.
[0038] In another possible implementation, the device information includes a number on the target device, and the method further includes:
[0039] The SMS message to be transferred is encrypted to obtain an encrypted SMS message to be transferred;
[0040] The encrypted SMS message to be transferred and the preset sending instruction are transmitted to the target device via the target device's number, so that the target device can send feedback information based on the preset sending instruction;
[0041] If the feedback information is received within a preset time, and the source number of the feedback information is the target device's number, then the decrypted file corresponding to the SMS message to be transferred will be transmitted to the target device.
[0042] By adopting the above technical solution, since there is a security issue of interception during the SMS transfer process, the SMS to be transferred can be encrypted to obtain an encrypted SMS to be transferred. The preset sending command is a pre-set command used to remind the target device to send feedback information. The encrypted SMS to be transferred and the preset sending command are transmitted to the target device through the target device's number. When feedback information is received within a preset time, and the source number of the feedback information is the target device's number, it means that the target device has received the encrypted SMS to be transferred. The decryption file corresponding to the SMS to be transferred is then transmitted to the target device, so that the target device can decrypt the encrypted SMS to be transferred according to the decryption file to obtain the SMS to be transferred that the user can view.
[0043] In another possible implementation, the method further includes:
[0044] If there are unread text messages that are in an unread state, then obtain the number of such unread text messages;
[0045] If the number of unread text messages reaches a preset number, a notification message will be sent to a preset receiving number.
[0046] By adopting the above technical solution, when there are unread text messages, it indicates that the user has not processed the text messages within a certain period of time. The number of unread text messages is obtained. When the number of unread text messages reaches a preset number, it indicates that the user has accumulated a lot of unprocessed text messages. A prompt message is output to the preset receiving number so that the user can know that there are a lot of unread text messages and that they need to process them.
[0047] Secondly, this application provides a device for transferring SMS messages, which adopts the following technical solution:
[0048] A device for transferring text messages, comprising:
[0049] The number determination module is used to determine the target number from at least one number based on the number selection instruction triggered by the user;
[0050] The SMS confirmation module is used to determine the SMS to be transferred from the SMS messages corresponding to the target number based on the SMS selection instruction triggered by the user.
[0051] The device acquisition module is used to acquire device information of the target device that needs to receive the SMS message to be transferred;
[0052] The first transmission module is used to transmit the SMS message to be transferred to the target device according to the device information when a user-triggered transfer instruction is detected.
[0053] By adopting the above technical solution, since there is at least one target number, the number determination module needs to identify the target number from at least one number based on the user-triggered number selection instruction. Each target number corresponds to multiple SMS messages, and the SMS determination module needs to identify the SMS messages to be transferred from the SMS messages corresponding to the target number based on the user-triggered SMS selection instruction, thus determining the SMS messages that the user needs to transfer. The device acquisition module then obtains the device information of the target device that needs to receive the SMS messages to be transferred. When the first transmission module detects the user-triggered transfer instruction, it indicates that the user needs to transfer the SMS messages to be transferred, and the SMS messages to be transferred are transmitted to the target device according to the device information. This allows users to more conveniently view SMS messages on different devices.
[0054] In another possible implementation, the first transmission module transmits the SMS message to be transferred to the target device, specifically for:
[0055] The receiving time, current time, reading status, and number of communications to the source number corresponding to the SMS to be transferred are obtained. The reading status includes read status and unread status.
[0056] Calculate the time difference between the current time and the received time;
[0057] The score of the SMS message to be transferred is determined based on the time difference, the number of communications, the reading status, and their respective weights.
[0058] The SMS messages to be transferred are sorted based on the scores to obtain the sorting results;
[0059] Based on the sorting results, the SMS messages to be transferred are transmitted to the target device.
[0060] In another possible implementation, the device further includes:
[0061] The content acquisition module is used to acquire the SMS content of the SMS message corresponding to the target number;
[0062] The extraction module is used to extract feature words from the text message content of each text message to obtain the feature words of the text message content of each text message;
[0063] The first search module is used to search for the feature words of any SMS message in a preset feature word library. The preset feature word library contains multiple feature words, and each feature word corresponds to category information.
[0064] The first category determination module is used to determine the category information corresponding to the feature word when the feature word is found in the preset feature word library;
[0065] The second category determination module is used to determine the category information corresponding to the feature word as the category information corresponding to the SMS message;
[0066] The first output module is used to output each SMS message and the category information corresponding to each SMS message.
[0067] In another possible implementation, the device further includes:
[0068] The second search module is used to search for any source number in the dangerous number database;
[0069] The danger determination module is used to determine that any source number is a dangerous number when it is found in the dangerous number database, and to determine the SMS message corresponding to the any source number as a dangerous SMS message.
[0070] The labeling module is used to label the dangerous text messages.
[0071] In another possible implementation, the device further includes:
[0072] The SIM card determination module is used to determine the SMS storage space corresponding to the SIM card and the number of characters of each SMS to be transferred when a SIM card transfer command triggered by the user is detected.
[0073] The compression generation module is used to generate a compressed SMS message to be transferred based on the feature words of any SMS message to be transferred when the number of characters in any SMS message to be transferred reaches a preset number of characters.
[0074] The partitioning module is used to partition the SMS storage space according to the category information to obtain the storage space corresponding to each category information;
[0075] The storage module is used to save the compressed SMS messages to be transferred and their corresponding sending numbers in the corresponding storage space based on the type information and score of the SMS messages to be transferred.
[0076] In another possible implementation, the device further includes:
[0077] An encryption module is used to encrypt the SMS message to be transferred, thereby obtaining an encrypted SMS message to be transferred;
[0078] The second transmission module is used to transmit the encrypted SMS message to be transferred and the preset sending instruction to the target device through the target device's number, so that the target device can send feedback information based on the preset sending instruction;
[0079] The third transmission module is used to transmit the decrypted file corresponding to the SMS message to be transferred to the target device when the feedback information is received within a preset time and the source number of the feedback information is the number of the target device.
[0080] In another possible implementation, the device further includes:
[0081] The message count acquisition module is used to acquire the number of unread SMS messages when there are unread SMS messages in an unread state;
[0082] The second output module is used to output a prompt message to a preset receiving number when the number of unread SMS messages reaches a preset number.
[0083] Thirdly, this application provides an electronic device that adopts the following technical solution:
[0084] An electronic device comprising:
[0085] One or more processors;
[0086] Memory;
[0087] One or more applications, wherein the applications are stored in memory and configured to be executed by one or more processors, the applications being configured to: execute a method for SMS transfer as shown in any possible implementation of the first aspect.
[0088] Fourthly, this application provides a computer-readable storage medium, which adopts the following technical solution:
[0089] A computer-readable storage medium that, when the computer program is executed in a computer, causes the computer to perform the SMS transfer method according to any one of the first aspects.
[0090] In summary, this application includes at least one of the following beneficial technical effects:
[0091] 1. Since there is at least one target number, it is necessary to determine the target number from at least one number based on the user-triggered number selection command. Each target number corresponds to multiple SMS messages, and it is necessary to determine the SMS messages to be transferred from the SMS messages corresponding to the target number based on the user-triggered SMS selection command. This identifies the SMS messages the user needs to transfer. The device information of the target device that needs to receive the SMS messages to be transferred is obtained. When a user-triggered transfer command is detected, it indicates that the user needs to transfer the SMS messages to be transferred. Based on the device information, the SMS messages to be transferred are transmitted to the target device. This allows the user to more conveniently view SMS messages on different devices.
[0092] 2. When there are unread text messages, it means that the user has not processed the messages within a certain period of time. The number of unread text messages is obtained. When the number of unread text messages reaches the preset number, it means that the user has accumulated a lot of unread text messages. A prompt message is output to the preset receiving number so that the user can know that there are a lot of unread text messages and needs to process them. Attached Figure Description
[0093] Figure 1 This is a flowchart illustrating a method for transferring SMS messages according to an embodiment of this application.
[0094] Figure 2 This is a schematic diagram of a text message transfer device according to an embodiment of this application.
[0095] Figure 3 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Detailed Implementation
[0096] The following is in conjunction with the appendix Figure 1-3 This application will be described in further detail.
[0097] After reading this specification, those skilled in the art may make modifications to this embodiment without contributing any inventive step, but such modifications are protected by patent law as long as they fall within the scope of the claims of this application.
[0098] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0099] Furthermore, the term "and / or" in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article, unless otherwise specified, generally indicates that the preceding and following related objects have an "or" relationship.
[0100] The embodiments of this application will now be described in further detail with reference to the accompanying drawings.
[0101] This application provides a method for SMS forwarding, executed by an electronic device. The electronic device can be a server or a terminal device. The server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The terminal device can be a smartphone, tablet, laptop, desktop computer, etc., but is not limited to these. The terminal device and the server can be directly or indirectly connected via wired or wireless communication. This application does not impose any limitations on this connection. Figure 1 As shown, the method includes steps S101, S102, S103, and S104, wherein,
[0102] Step S101: Determine the target number from at least one number according to the number selection instruction triggered by the user.
[0103] In this embodiment of the application, since there is at least one target number, it is necessary to determine the target number from at least one number according to the number selection instruction triggered by the user. For example, the electronic device includes number A and number B, and the target number is selected as number A from number A and number B according to the number selection instruction triggered by the user. The user can trigger the number selection instruction through a touch screen, a mouse, or other methods, which are not limited here.
[0104] Step S102: Based on the SMS selection instruction triggered by the user, determine the SMS to be transferred from the SMS corresponding to the target number.
[0105] In this embodiment of the application, since each target number corresponds to multiple SMS messages, it is necessary to determine the SMS messages to be transferred from the SMS messages corresponding to the target number based on the SMS selection instruction triggered by the user. Taking step S101 as an example, the target number is number A, and it is assumed that number A includes SMS messages a1, a2, and a3. Based on the SMS selection instruction triggered by the user, the SMS messages to be transferred are determined to be SMS messages a1 and a2 from the SMS messages corresponding to number A. The user can trigger the SMS selection instruction via a touchscreen, a mouse, or other methods, which are not limited here.
[0106] Step S103: Obtain device information of the target device that needs to receive the SMS message to be transferred.
[0107] In this embodiment of the application, device information of the target device that needs to receive the SMS message to be transferred is obtained, so that the SMS message to be transferred can be transmitted to the target device according to the device information. For example, if the target device is device A, the corresponding device information is device A information. The device information can be obtained by the user inputting device information, or by establishing a connection with the target device through wireless or Bluetooth, or by other means, which are not limited here.
[0108] Step S104: When a user-triggered transfer command is detected, the SMS message to be transferred is transmitted to the target device according to the device information.
[0109] In this embodiment of the application, when a user-triggered transfer command is detected, it indicates that the SMS message to be transferred needs to be transferred. Based on the device information, the SMS message is transmitted to the target device to ensure accurate transfer to the device the user needs to receive it on. Taking steps S102 and S103 as examples, the device information is device A. When a user-triggered transfer command is detected, SMS messages a1 and a2 are transferred to device A based on device A's information. The user can trigger the transfer command via a touchscreen, a mouse, or other methods; no limitation is made here.
[0110] In one possible implementation of this application embodiment, when transmitting the SMS message to be transferred to the target device in step S104, it further includes steps S1041 (not shown in the figure), S1042 (not shown in the figure), S1043 (not shown in the figure), S1044 (not shown in the figure), and S1045 (not shown in the figure), wherein,
[0111] Step S1041: Obtain the receiving time, current time, reading status, and number of communications with the source number corresponding to the SMS to be transferred.
[0112] The reading status includes both read and unread status.
[0113] In this embodiment, the receiving time of the SMS message to be transferred and the current time are obtained to calculate the time difference between the current time and the receiving time. Different reading statuses of the SMS message result in different transfer scenarios. When the SMS message is in a read state, it indicates that the user has viewed and processed it, thus the likelihood of transfer is low. When the SMS message is in an unread state, it indicates that the user has not processed it, thus the likelihood of transfer is high. The source number corresponding to the SMS message to be transferred is the number that sent the SMS message to the target number, and the number of communications is the number of times the target number and the source number communicate.
[0114] Taking step S102 as an example, assume that the time when SMS a1 was received is 2021 / 5 / 20, the current time is 2021 / 5 / 21, the reading status of SMS a1 is unread, the source number corresponding to SMS a1 is number C, and the corresponding number of communications is 10.
[0115] Step S1042: Calculate the time difference between the current time and the received time.
[0116] In this embodiment of the application, the time difference can be calculated by subtracting the current time from the receiving time. Taking step S1041 as an example, the time difference of SMS a1 is found to be 1 day.
[0117] Step S1043: Determine the score of the SMS message to be transferred based on the time difference, number of communications, reading status, and their respective weights.
[0118] In this embodiment of the application, since the time difference, the number of communications, and the reading status have different effects on the SMS to be transferred, the score of the SMS to be transferred needs to be determined based on the time difference, the number of communications, the reading status, and their respective weights. Assume the weights corresponding to the time difference are 0.2, 0.5, and 0.3, respectively, where the weight is 0 when the reading status is "read" and 0.3 when it is "unread". Taking steps S1041 and S1042 as examples, the score of SMS a1 is determined to be 5.5 points.
[0119] The score for the SMS message to be transferred can be obtained by multiplying the time difference, the number of communications, and the reading status by their respective weights. These scores are then summed to arrive at the final score. Other methods for calculating the score of the SMS message to be transferred are also possible and are not limited here.
[0120] Step S1044: Sort the SMS messages to be transferred based on their scores to obtain the sorting results.
[0121] In this embodiment of the application, the SMS messages to be transferred are sorted according to their scores to obtain a sorting result, which facilitates the classification of the SMS messages to be transferred and allows users to clearly understand the transferability level of the SMS messages to be transferred. Taking steps S102 and S1043 as examples, assuming that SMS a2 has a score of 4.3 points and SMS a1 has a score of 5.5 points, the corresponding sorting result could be SMS a1 with 5.5 points and SMS a2 with 4.3 points.
[0122] In the embodiments of this application, the sorting can be either ascending or descending, and no limitation is made here.
[0123] Step S1045: Based on the sorting results, the SMS messages to be transferred are transmitted to the target device.
[0124] In this embodiment of the application, SMS messages to be transferred are transferred according to the sorting result, so that users can clearly understand the score of each SMS message to be transferred and easily understand the corresponding level of the SMS messages to be transferred. The transfer can be carried out wirelessly, via Bluetooth, through a data cable connection, or other methods.
[0125] In one possible implementation of this application embodiment, steps S105 (not shown in the figure), S106 (not shown in the figure), S107 (not shown in the figure), S108 (not shown in the figure), S109 (not shown in the figure), and S110 (not shown in the figure) are included before step S102.
[0126] Step S105: Obtain the SMS content of the SMS message corresponding to the target number.
[0127] In this embodiment of the application, since each SMS message is of a different type, the SMS content corresponding to the target number is obtained so that the SMS type information can be determined subsequently based on the SMS content. This can be achieved by taking a screenshot of the SMS content page and obtaining the SMS content through text recognition, or by other methods.
[0128] For example, number A corresponds to SMS messages a1, a2, and a3. SMS message a1 reads: "I went to eat ice cream with my colleagues today." SMS message a2 reads: "I had a meeting in the conference room at 8:00 this morning." SMS message a3 reads: "Dear user, as of this morning, your available data usage is 5G."
[0129] Step S106: Extract feature words from the text message content of each text message to obtain the feature words of the text message content of each text message.
[0130] In this embodiment of the application, the feature words corresponding to each text message can be a single word or multiple words. Taking step S105 as an example, the feature words of text message a1 can be "eat" and "ice cream", the feature words of text message a2 can be "today", "8:00 am", "meeting room" and "meeting", and the feature words of text message a3 can be "available data" and "5G".
[0131] Step S107: Search for the feature words of any SMS message in the preset feature word database.
[0132] The preset feature word library contains multiple feature words, and each feature word corresponds to category information.
[0133] In this embodiment of the application, since the preset feature word library includes multiple feature words, and each feature word corresponds to category information, the feature words of any SMS message are matched in the preset feature word library to determine the category information of any SMS message. For example, when any SMS message is message a1, the feature words "eat" and "ice cream" of message a1 are searched in the preset feature word library.
[0134] Step S108: If a feature word is found in the preset feature word library, the category information corresponding to the feature word is determined.
[0135] In the embodiments of this application, when a feature word is found in the preset feature word library, it means that the category information corresponding to the feature word can be found. For example, the category information corresponding to ice cream is "lifestyle" and the category information corresponding to "eat" is "lifestyle" and "work".
[0136] Step S109: Determine the category information corresponding to the feature words as the category information corresponding to the SMS message.
[0137] In this embodiment of the application, the category information corresponding to the feature words is determined as the category information corresponding to the SMS. Since each SMS may have multiple feature words, the category information common to the feature words can be combined to determine the category information corresponding to the SMS. Taking step S107 as an example, if the feature words of SMS a1 all contain the category of "lifestyle", then the category information of SMS a1 can be determined as "lifestyle".
[0138] Step S110: Output each SMS message and its corresponding category information.
[0139] In this embodiment of the application, each SMS message and its corresponding category information are output so that users can intuitively understand the category information of each SMS message and select the SMS message to be transferred based on the category information.
[0140] The output can be displayed on a screen, and the display page can be divided according to the type information to obtain the area corresponding to the type information, and text messages with the same type of information can be placed in the same area.
[0141] One possible implementation of this application embodiment further includes steps S111 (not shown in the figure), S112 (not shown in the figure), and S113 (not shown in the figure), wherein step S111 can be executed after step S1041, wherein,
[0142] Step S111: Search for any source number in the dangerous number database.
[0143] In this embodiment of the application, each SMS message corresponds to a source number, that is, the number that sent the SMS message to the target number. The dangerous number database includes multiple recorded dangerous numbers. Any source number is searched in the dangerous number database to determine whether any source number is a dangerous number.
[0144] One method is to search for any source number by traversing the dangerous number database.
[0145] For example, the source number of the A4 text message is number D. The dangerous number database includes numbers D, E, F, and G.
[0146] Step S112: If any source number is found in the dangerous number database, then any source number is determined to be a dangerous number, and the SMS message corresponding to any source number is determined to be a dangerous SMS message.
[0147] In this embodiment of the application, when any source number is found in the dangerous number database, it indicates that the source number is recorded as a dangerous number. Therefore, any source number is determined to be a dangerous number, and the corresponding SMS message is determined to be a dangerous SMS message. Taking step S111 as an example, the source number of SMS message a4 is number D. The dangerous number database includes numbers D, E, F, and G. Number D is found in the dangerous number database, and is determined to be a dangerous number, thus determining that SMS message a4 is a dangerous SMS message.
[0148] Step S113: Mark dangerous text messages.
[0149] In this embodiment of the application, dangerous text messages are marked so that users can clearly and intuitively understand whether a text message is dangerous, thereby reducing the risk of users handling dangerous text messages to a certain extent. The marking method can be to set the color of dangerous text messages to a different color than other text messages, to hide dangerous text messages, or other methods. For example, A4 text messages can be marked in red so that users can intuitively understand that A4 text messages are dangerous.
[0150] One possible implementation of this application embodiment further includes steps S114 (not shown in the figure), S115 (not shown in the figure), S116 (not shown in the figure), and S117 (not shown in the figure), wherein step S114 can be executed after step S106, wherein,
[0151] Step S114: When a SIM card transfer command triggered by the user is detected, the SMS storage space corresponding to the SIM card and the number of characters of each SMS to be transferred are determined.
[0152] In this embodiment of the application, when a user-triggered SIM card transfer command is detected, it indicates that the user needs to transfer SMS messages via SIM card transfer, i.e., the SMS messages need to be stored on the SIM card. However, since SIM cards have different storage spaces, it is necessary to determine the SMS storage space corresponding to the SIM card and the number of characters in each SMS message to be transferred. The user can trigger the SIM card transfer command via a touchscreen, a mouse, or other methods, which are not limited here.
[0153] For example, the SIM card corresponding to number A has a storage space of 40 text messages, text message a1 has 12 characters, and text message a2 has 13 characters.
[0154] Step S115: If the number of characters in any SMS message to be transferred reaches the preset number of characters, then a compressed SMS message to be transferred is generated based on the feature words of any SMS message to be transferred.
[0155] In this embodiment of the application, the preset character count is a pre-set character count. When the character count of any SMS message to be transferred reaches the preset character count, it indicates that the SMS message content to be transferred is too large. It is necessary to generate a compressed SMS message to be transferred based on the feature words of the SMS message to be transferred, so that the SIM card can store more SMS messages.
[0156] For example, if the preset character count is 10 characters, taking step S114 as an example, the character count of SMS a1 is 12 characters. 12 characters has reached 10 characters, indicating that SMS a1 has a lot of content. Taking step S106 as an example, the characteristic words of SMS a1 are "eat" and "ice cream", and the compressed SMS a1 can be "eat ice cream".
[0157] Step S116: Divide the SMS storage space according to the type information to obtain the storage space corresponding to each type information.
[0158] In this embodiment of the application, the SMS storage space is divided according to category information to obtain the storage space corresponding to each category, thereby enabling the SMS messages to be transferred to be stored more clearly in the SIM card. For example, the storage space corresponding to the "lifestyle" category is 20 SMS messages, and the storage space corresponding to the "work" category is 15 SMS messages.
[0159] Step S117: Based on the type information and score of the SMS to be transferred, save the compressed SMS to be transferred and the corresponding sending number in the corresponding storage space.
[0160] In this embodiment of the application, since the score represents the importance of the SMS message to be transferred, the compressed SMS message to be transferred and its corresponding sending number are saved in the corresponding storage space according to the type information and score of the SMS message to be transferred, so that more important SMS messages can be stored. For example, the type information of SMS message a1 is "lifestyle" and the corresponding score is 5.5 points. The type information of SMS message a5 is "lifestyle" and the corresponding score is 3.2 points. When the storage space for "lifestyle" is 1 SMS message, SMS message a1 is stored according to the score.
[0161] In this embodiment, since the SIM's storage rule is that each SMS message can only store a maximum of 70 characters, when the number of characters in an SMS message reaches 70, the first 65 characters will be stored in one SMS message, and the remaining characters beyond 65 will be stored in another SMS message. Therefore, in this embodiment, compressed SMS messages of the same type of information to be transferred, along with their corresponding source numbers, can also be stored in the same SMS message until the number of characters reaches the storage space corresponding to each type of information.
[0162] One possible implementation of this application embodiment further includes steps S118 (not shown in the figure), S119 (not shown in the figure), and S120 (not shown in the figure), wherein step S118 can be executed after step S03, wherein,
[0163] Step S118: Encrypt the SMS message to be transferred to obtain the encrypted SMS message.
[0164] In this embodiment of the application, due to security issues during the transfer of SMS messages, the SMS messages to be transferred can be encrypted to obtain encrypted SMS messages. In this embodiment of the application, the encryption method can be a symmetric encryption algorithm. For example, the SMS message to be transferred, a1, is encrypted to obtain encrypted SMS message a1.
[0165] Step S119: The encrypted SMS message to be transferred and the preset sending instruction are transmitted to the target device via the target device's number.
[0166] In this embodiment of the application, the preset sending instruction is a pre-set instruction used to remind the target device to send feedback information. The encrypted SMS message to be transferred and the preset sending instruction are transmitted to the target device through the target device's number, so that the target device can send feedback information according to the preset sending instruction. Assuming the target device is device B, and the corresponding number of device B is number B, taking step S118 as an example, the encrypted SMS message a1 and the preset sending instruction are sent to device B through number B, so that device B can send feedback information in a timely manner according to the preset sending instruction.
[0167] Step S120: If feedback information is received within a preset time and the source number of the feedback information is the target device's number, then the decryption file corresponding to the SMS message to be transferred is transmitted to the target device.
[0168] In this embodiment of the application, the preset time is a pre-set time. Assuming the preset time is 5 seconds, taking step S119 as an example, when feedback information is received within 5 seconds and the source number of the feedback information is number B, it means that device B has received SMS a1. The decryption file corresponding to SMS a1 is transmitted to device B so that device B can decrypt the encrypted SMS a1 according to the decryption file and obtain SMS a1 that the user can view.
[0169] In this application embodiment, the preferred method of transmitting via the target device's number is to transmit the data. However, wireless and Bluetooth methods can also be used, and no limitation is made here.
[0170] One possible implementation of this application embodiment further includes steps S121 (not shown in the figure), S122 (not shown in the figure), and S123 (not shown in the figure), wherein step S121 can be executed after step S1041, wherein,
[0171] Step S121: If there are unread text messages in an unread state, then obtain the number of unread text messages.
[0172] In this embodiment of the application, when there are unread text messages, the number of unread text messages is obtained to determine whether the user has not processed the text messages for a relatively long period of time. For example, the number of unread text messages is 10.
[0173] Step S122: If the number of unread SMS messages reaches a preset number, a notification message is sent to the preset receiving number.
[0174] In this embodiment of the application, the preset number of messages is a pre-set number, and the preset receiving number is a pre-set number frequently used by the user. Assuming the preset number of messages is 8, and the preset receiving number is number C, taking step S121 as an example, if the current number of unread messages is 10, reaching the preset number of 8, a notification message is output to number C so that the user can promptly be aware of the unread messages and process them. This notification can be output in text form on the device corresponding to number C, in voice form on the device corresponding to number C, or in other ways.
[0175] The above embodiments describe a method for SMS transfer from the perspective of process flow. The following embodiments describe an apparatus for SMS transfer from the perspective of virtual module or virtual unit. For details, please refer to the following embodiments.
[0176] This application provides a device for transferring SMS messages, such as... Figure 2 As shown, the SMS transfer device 20 may specifically include:
[0177] The number determination module 201 is used to determine a target number from at least one number based on a number selection instruction triggered by the user.
[0178] The SMS confirmation module 202 is used to determine the SMS to be transferred from the SMS corresponding to the target number according to the SMS selection instruction triggered by the user;
[0179] Device acquisition module 203 is used to acquire device information of the target device that needs to receive the SMS message to be transferred;
[0180] The first transmission module 204 is used to transmit the SMS message to be transferred to the target device according to the device information when a user-triggered transfer command is detected.
[0181] In this embodiment, since there is at least one target number, the number determination module 201 needs to determine the target number from the at least one number according to the number selection instruction triggered by the user. Each target number corresponds to multiple SMS messages. The SMS determination module 202 needs to determine the SMS messages to be transferred from the SMS messages corresponding to the target number according to the SMS selection instruction triggered by the user, thus determining the SMS messages that the user needs to transfer. The device acquisition module 203 then obtains the device information of the target device that needs to receive the SMS messages to be transferred. When the first transmission module 204 detects the transfer instruction triggered by the user, it indicates that the user needs to transfer the SMS messages to be transferred. Based on the device information, the SMS messages to be transferred are transmitted to the target device. This allows the user to more conveniently view SMS messages on different devices.
[0182] One possible implementation of this application embodiment, when the first transmission module 204 transmits the SMS message to be transferred to the target device, is specifically used for:
[0183] Get the receiving time, current time, reading status, and number of communications to the source number corresponding to the SMS to be transferred. The reading status includes read status and unread status.
[0184] Calculate the time difference between the current time and the received time;
[0185] The score of the SMS message to be transferred is determined based on the time difference, number of communications, reading status, and their respective weights.
[0186] The SMS messages to be transferred are sorted based on their scores to obtain the sorting results;
[0187] Based on the sorting results, the SMS messages to be transferred are transmitted to the target device.
[0188] In one possible implementation of this application embodiment, the apparatus 20 further includes:
[0189] The content acquisition module is used to acquire the SMS content corresponding to the target number;
[0190] The extraction module is used to extract feature words from the content of each SMS message to obtain the feature words of each SMS message.
[0191] The first search module is used to search for the feature words of any SMS message in a preset feature word library. The preset feature word library contains multiple feature words, and each feature word corresponds to category information.
[0192] The first category determination module is used to determine the category information corresponding to a feature word when a feature word is found in a preset feature word library;
[0193] The second category determination module is used to determine the category information corresponding to the feature words as the category information corresponding to the SMS message.
[0194] The first output module is used to output each SMS message and the corresponding category information.
[0195] In one possible implementation of this application embodiment, the apparatus 20 further includes:
[0196] The second search module is used to search for any source number in the dangerous number database;
[0197] The danger determination module is used to determine any source number as a dangerous number when it is found in the dangerous number database, and to identify the SMS message corresponding to any source number as a dangerous SMS message.
[0198] The labeling module is used to label dangerous text messages.
[0199] In one possible implementation of this application embodiment, the apparatus 20 further includes:
[0200] The SIM card determination module is used to determine the SMS storage space corresponding to the SIM card and the number of characters of each SMS to be transferred when a SIM card transfer command triggered by the user is detected.
[0201] The compression generation module is used to generate a compressed SMS message to be transferred based on the feature words of any SMS message to be transferred when the number of characters in any SMS message to be transferred reaches the preset number of characters.
[0202] The partitioning module is used to divide the SMS storage space according to the type information, so as to obtain the storage space corresponding to each type of information;
[0203] The storage module is used to save the compressed SMS messages to be transferred and their corresponding sending numbers in the corresponding storage space based on the type information and score of the SMS messages to be transferred.
[0204] In one possible implementation of this application embodiment, the apparatus 20 further includes:
[0205] The encryption module is used to encrypt the SMS messages to be transferred, resulting in encrypted SMS messages to be transferred.
[0206] The second transmission module is used to transmit the encrypted SMS message to be transferred and the preset sending instruction to the target device through the target device's number, so that the target device can send feedback information based on the preset sending instruction.
[0207] The third transmission module is used to transmit the decrypted file corresponding to the SMS message to be transferred to the target device when feedback information is received within a preset time and the source number of the feedback information is the target device's number.
[0208] In one possible implementation of this application embodiment, the apparatus 20 further includes:
[0209] The message count acquisition module is used to acquire the number of unread SMS messages when there are unread SMS messages in an unread state;
[0210] The second output module is used to output a prompt message to a preset receiving number when the number of unread SMS messages reaches a preset number.
[0211] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0212] In this embodiment, the first transmission module 204, the second transmission module, and the third transmission module can be the same transmission module, different transmission modules, or partially the same transmission modules. The first search module and the second search module can be the same search module or different search modules. The first category determination module and the second category determination module can be the same category determination module or different category determination modules. The first output module and the second output module can be the same output module or different output modules.
[0213] This application provides an electronic device, such as... Figure 3 As shown, Figure 3The illustrated electronic device 30 includes a processor 301 and a memory 303. The processor 301 and the memory 303 are connected, for example, via a bus 302. Optionally, the electronic device 30 may also include a transceiver 304. It should be noted that in practical applications, the transceiver 304 is not limited to one type, and the structure of this electronic device 30 does not constitute a limitation on the embodiments of this application.
[0214] Processor 301 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 301 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0215] Bus 302 may include a pathway for transmitting information between the aforementioned components. Bus 302 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 302 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 3 The symbol is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0216] The memory 303 may be a ROM (Read Only Memory) or other type of static storage device capable of storing static information and instructions, RAM (Random Access Memory) or other type of dynamic storage device capable of storing information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto.
[0217] The memory 303 is used to store application code that executes the solution of this application, and its execution is controlled by the processor 301. The processor 301 is used to execute the application code stored in the memory 303 to implement the content shown in the foregoing method embodiments.
[0218] Electronic devices include, but are not limited to: mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and in-vehicle terminals (such as in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Servers can also be included. Figure 3 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0219] This application provides a computer-readable storage medium storing a computer program. When the program is run on a computer, it enables the computer to execute the corresponding content in the aforementioned method embodiments. Compared with related technologies, in this application embodiment, since there is at least one target number, it is necessary to determine the target number from at least one number based on the user-triggered number selection instruction. Each target number corresponds to multiple SMS messages, and it is necessary to determine the SMS message to be transferred from the SMS messages corresponding to the target number based on the user-triggered SMS selection instruction, thus determining the SMS message that the user needs to transfer. Device information of the target device that needs to receive the SMS message to be transferred is obtained. When a user-triggered transfer instruction is detected, it indicates that the user needs to transfer the SMS message to be transferred. The SMS message to be transferred is transmitted to the target device according to the device information. This allows the user to more conveniently view SMS messages on different devices.
[0220] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0221] The above description is only a partial embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A method for transferring SMS messages, characterized in that, include: Based on the number selection instruction triggered by the user, determine the target number from at least one number; Obtain the SMS content of the SMS message corresponding to the target number; Feature words are extracted from the content of each SMS message to obtain the feature words of the SMS message content for each SMS message; The feature words of any SMS message are searched in a preset feature word library, which contains multiple feature words and each feature word corresponds to category information. If the feature word is found in the preset feature word library, the category information corresponding to the feature word is determined; The category information corresponding to the feature word is determined as the category information corresponding to the SMS message; Output each SMS message and the category information corresponding to each SMS message; Based on the SMS selection command triggered by the user, determine the SMS to be transferred from the SMS corresponding to the target number; Obtain device information of the target device that needs to receive the SMS message to be transferred; When a user-triggered transfer command is detected, the SMS message to be transferred is transmitted to the target device according to the device information, including: The receiving time, current time, reading status, and number of communications to the source number corresponding to the SMS to be transferred are obtained. The reading status includes read status and unread status. Calculate the time difference between the current time and the received time; The score of the SMS message to be transferred is determined based on the time difference, the number of communications, the reading status, and their respective weights. The SMS messages to be transferred are sorted based on the scores to obtain the sorting results; Based on the sorting result, the SMS message to be transferred is transmitted to the target device; The method further includes: Search any number from any source in the dangerous number database; If any of the source numbers is found in the dangerous number database, then the source number is determined to be a dangerous number, and the SMS message corresponding to the source number is determined to be a dangerous SMS message. The dangerous text messages will be marked. The method further includes: When a SIM card transfer command triggered by a user is detected, the SMS storage space corresponding to the SIM card and the number of characters in each SMS message to be transferred are determined. If the number of characters in any SMS message to be transferred reaches the preset number of characters, then a compressed SMS message to be transferred is generated based on the feature words of the SMS message to be transferred. The SMS storage space is divided according to the type information to obtain the storage space corresponding to each type information; Based on the type information and score of the SMS messages to be transferred, the compressed SMS messages to be transferred and their corresponding sending numbers are saved in the corresponding storage space.
2. The method for transferring SMS messages according to claim 1, characterized in that, The device information includes a number on the target device, and the method further includes: The SMS message to be transferred is encrypted to obtain an encrypted SMS message to be transferred; The encrypted SMS message to be transferred and the preset sending instruction are transmitted to the target device via the target device's number, so that the target device can send feedback information based on the preset sending instruction; If the feedback information is received within a preset time, and the source number of the feedback information is the target device's number, then the decrypted file corresponding to the SMS message to be transferred will be transmitted to the target device.
3. The method for SMS transfer according to claim 1, characterized in that, The method further includes: If there are unread text messages that are in an unread state, then obtain the number of such unread text messages; If the number of unread text messages reaches a preset number, a notification message will be sent to a preset receiving number.
4. A device for transferring text messages, characterized in that, include: The number determination module is used to determine the target number from at least one number based on the number selection instruction triggered by the user; The content acquisition module is used to acquire the SMS content of the SMS message corresponding to the target number; The extraction module is used to extract feature words from the text message content of each text message to obtain the feature words of the text message content of each text message; The first search module is used to search for the feature words of any SMS message in a preset feature word library. The preset feature word library contains multiple feature words, and each feature word corresponds to category information. The first category determination module is used to determine the category information corresponding to the feature word if the feature word is found in the preset feature word library; The second category determination module is used to determine the category information corresponding to the feature word as the category information corresponding to the SMS message; The first output module is used to output each SMS message and the category information corresponding to each SMS message; The SMS confirmation module is used to determine the SMS to be transferred from the SMS messages corresponding to the target number based on the SMS selection instruction triggered by the user. The device acquisition module is used to acquire device information of the target device that needs to receive the SMS message to be transferred; The first transmission module is configured to transmit the SMS message to be transferred to the target device according to the device information when a user-triggered transfer command is detected, including: The receiving time, current time, reading status, and number of communications to the source number corresponding to the SMS to be transferred are obtained. The reading status includes read status and unread status. Calculate the time difference between the current time and the received time; The score of the SMS message to be transferred is determined based on the time difference, the number of communications, the reading status, and their respective weights. The SMS messages to be transferred are sorted based on the scores to obtain the sorting results; Based on the sorting result, the SMS message to be transferred is transmitted to the target device; The device is also used for: Search any number from any source in the dangerous number database; If any of the source numbers is found in the dangerous number database, then the source number is determined to be a dangerous number, and the SMS message corresponding to the source number is determined to be a dangerous SMS message. The dangerous text messages will be marked. The device is also used for: When a SIM card transfer command triggered by a user is detected, the SMS storage space corresponding to the SIM card and the number of characters in each SMS message to be transferred are determined. If the number of characters in any SMS message to be transferred reaches the preset number of characters, then a compressed SMS message to be transferred is generated based on the feature words of the SMS message to be transferred. The SMS storage space is divided according to the type information to obtain the storage space corresponding to each type information; Based on the type information and score of the SMS messages to be transferred, the compressed SMS messages to be transferred and their corresponding sending numbers are saved in the corresponding storage space.
5. An electronic device, characterized in that, It includes: One or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications being configured to: perform the SMS transfer method according to any one of claims 1 to 3.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed in the computer, the computer is instructed to perform the SMS transfer method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Service transfer method and mobile terminal therefor
CN101951579A
A method for displaying notification messages and a mobile terminal
CN102291497A
Short message ordering method and communication terminal
CN103442122A
Information sharing method and mobile terminals
CN106506824A
Data migration method and system
CN113504869A