CN110839217A - Addressing method, device, server and medium for mobile terminal - Google Patents
Addressing method, device, server and medium for mobile terminal Download PDFInfo
- Publication number
- CN110839217A CN110839217A CN201911016181.6A CN201911016181A CN110839217A CN 110839217 A CN110839217 A CN 110839217A CN 201911016181 A CN201911016181 A CN 201911016181A CN 110839217 A CN110839217 A CN 110839217A
- Authority
- CN
- China
- Prior art keywords
- information
- destination terminal
- addressing
- server
- sending
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
- H04W4/14—Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/03—Protecting confidentiality, e.g. by encryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/26—Network addressing or numbering for mobility support
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Databases & Information Systems (AREA)
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application is applicable to the technical field of communication, and provides an addressing method, an addressing device, a server and an addressing medium for a mobile terminal, wherein the method comprises the following steps: acquiring original information for addressing, and sending the original information to a target terminal; receiving feedback information returned by the target terminal aiming at the original information; if the feedback information is matched with the original information, marking that the destination terminal is successfully addressed; and if the feedback information is not matched with the original information, indicating the target terminal to generate uploading information and sending the uploading information to a server, and addressing the target terminal by adopting the uploading information. By the method, the success rate of the mobile terminal addressing can be improved, and the cost of the mobile terminal addressing can be reduced.
Description
Technical Field
The present application belongs to the field of communications technologies, and in particular, to an addressing method, an addressing device, a server, and a medium for a mobile terminal.
Background
With the development of mobile communication technology, the application range of mobile terminal addressing is wider and wider, for example, identity authentication and the like are carried out. The traditional mobile terminal addressing scheme based on operator certificate adopts a short message sending platform to communicate with a mobile terminal through a mobile phone number, and verifies whether a user of the mobile phone number is consistent with a mobile phone number owner or not through checking information.
In the traditional addressing scheme, either the short message sending platform sends a message to the mobile terminal first and the mobile terminal feeds back the associated information to the short message sending platform (namely, downlink addressing), or the mobile terminal actively sends the message to the short message sending platform, and the short message sending platform verifies according to the short message (namely, uplink addressing).
The mobile terminal addressing success rate of the former scheme is low; the latter scheme usually requires the mobile terminal to send several short messages to the short message sending platform for successful addressing, which causes waste of user cost.
Disclosure of Invention
The embodiment of the application provides an addressing method, an addressing device, a server and a medium of a mobile terminal, and can solve the problems of low addressing success rate and high cost of the existing addressing method of the mobile terminal.
In a first aspect, an embodiment of the present application provides an addressing method for a mobile terminal, which is applicable to a server, and the method includes:
acquiring original information for addressing, and sending the original information to a target terminal;
receiving feedback information returned by the target terminal aiming at the original information;
if the feedback information is matched with the original information, marking that the destination terminal is successfully addressed;
and if the feedback information is not matched with the original information, indicating the target terminal to generate uploading information and sending the uploading information to a server, and addressing the target terminal by adopting the uploading information.
In a second aspect, an embodiment of the present application provides an addressing method for a mobile terminal, which is applied to the mobile terminal, and the method includes:
receiving original information sent by a server, and returning feedback information to the server aiming at the original information;
if an instruction for generating uploading information sent by the server is received, acquiring a historical channel number according to the instruction;
and generating uploading information according to the historical channel number and sending the uploading information to a server, wherein the uploading information is used for indicating the server to address the current mobile terminal.
In a third aspect, an embodiment of the present application provides an addressing apparatus for a mobile terminal, which is applied to a server, and the apparatus includes:
the system comprises a sending module, a receiving module and a sending module, wherein the sending module is used for acquiring original information used for addressing and sending the original information to a target terminal;
a receiving module, configured to receive feedback information returned by the destination terminal for the original information;
the matching module is used for marking that the destination terminal is successfully addressed if the feedback information is matched with the original information;
and the uplink addressing module is used for indicating the target terminal to generate upload information and sending the upload information to the server if the feedback information is not matched with the original information, and addressing the target terminal by adopting the upload information.
In a fourth aspect, an embodiment of the present application provides an addressing apparatus for a mobile terminal, where the addressing apparatus is suitable for a mobile terminal, and the apparatus includes:
the feedback information sending module is used for receiving original information sent by a server and returning feedback information to the server aiming at the original information;
the historical channel number acquisition module is used for acquiring a historical channel number according to an instruction sent by the server for generating the uploading information if the instruction is received;
and the uploading information sending module is used for generating uploading information according to the historical channel number and sending the uploading information to a server, wherein the uploading information is used for indicating the server to address the current mobile terminal.
In a fifth aspect, an embodiment of the present application provides a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the addressing method of the mobile terminal according to the first aspect when executing the computer program.
In a sixth aspect, an embodiment of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the addressing method of the mobile terminal according to the second aspect when executing the computer program.
In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, and when executed by a processor, the computer program implements the addressing method for a mobile terminal according to the first aspect.
In an eighth aspect, the present application provides a computer program product, which when run on a server, causes the server to execute the addressing method of the mobile terminal according to any one of the first aspect.
Compared with the prior art, the embodiment of the application has the advantages that: in the embodiment of the application, after a server receives an instruction for addressing a certain terminal, original information for addressing is obtained, and the original information is sent to a target terminal; receiving feedback information returned by the target terminal aiming at the original information; if the feedback information is matched with certain original information stored in the server, marking that the destination terminal is successfully addressed; and if the feedback information is not matched with any original information stored in the service, indicating the target terminal to generate upload information and sending the upload information to the server, and addressing the target terminal by the server by adopting the upload information returned by the target terminal. In the embodiment, when the downlink addressing fails, the uplink addressing is continuously adopted to address the target terminal, so that the addressing success rate is improved, and the addressing cost is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart illustrating an addressing method of a mobile terminal according to an embodiment of the present application;
fig. 2 is a flowchart illustrating an addressing method of a mobile terminal according to a second embodiment of the present application;
fig. 3 is a schematic flowchart of an addressing method of a mobile terminal according to a third embodiment of the present application;
fig. 4 is a flowchart illustrating an addressing method of a mobile terminal according to a fourth embodiment of the present application;
fig. 5 is a schematic flowchart of an addressing method of a mobile terminal according to a fifth embodiment of the present application;
fig. 6 is a schematic structural diagram of an addressing apparatus of a mobile terminal according to a sixth embodiment of the present application;
fig. 7 is a schematic structural diagram of an addressing apparatus of a mobile terminal according to a seventh embodiment of the present application;
fig. 8 is a schematic structural diagram of a server according to an eighth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
Fig. 1 is a schematic flowchart of an addressing method of a mobile terminal according to an embodiment of the present application, and as shown in fig. 1, the method may specifically include the following steps:
s101, acquiring original information for addressing, and sending the original information to a destination terminal;
the execution subject of the method is a server, and can be a short message sending platform. The original information includes the plaintext of the short message, which comes from the sender, and the sender refers to an object that needs to address the mobile terminal, for example, an application program that needs to verify login.
Specifically, the server receives the plain text of the original short message, the sending channel number and the destination terminal address from the sender, and processes the received information to obtain the original information.
S102, receiving feedback information returned by the target terminal aiming at the original information;
the target terminal refers to an object to be addressed, and the terminal may be a mobile phone, a tablet computer, or other device with a communication function.
Specifically, the destination terminal returns a reception success message to the server after receiving the original message from the server, and the feedback message may include the reception success message. The server receives feedback information returned by the destination terminal aiming at the original information within preset time, namely, the feedback information indicates that the destination terminal has successfully received the original information sent by the server.
Furthermore, if the server does not receive the feedback information returned by the mobile terminal within the preset time, it can determine that the destination terminal fails to address, and feed the information of failed sending back to the sender, and does not continue addressing.
S103, if the feedback information is matched with the original information, marking that the destination terminal is successfully addressed;
specifically, the server stores a plurality of original information, compares the feedback information with each original information after receiving the feedback information from the mobile terminal, and if the original information matched with the feedback information exists, it indicates that the destination terminal corresponding to the original information is successfully addressed, and marks the destination terminal.
And S104, if the feedback information is not matched with the original information, the target terminal is instructed to generate uploading information and send the uploading information to a server, and the target terminal is addressed by adopting the uploading information.
Specifically, if the addressing information matched with the feedback information is not found in the server, it indicates that the addressing by using the feedback information is unsuccessful; at this time, the addressing can be continued in other manners, and the server instructs the destination terminal to send the upload information to the server. And after receiving the indication, the target terminal generates uploading information and sends the uploading information to the server. And the server receives the uploading information returned by the destination terminal and addresses the destination terminal again by using the uploading information.
In this embodiment, a downlink addressing method is firstly adopted to address the mobile terminal, and if the downlink addressing is unsuccessful, the uplink addressing is continuously adopted to address the target terminal, so that compared with the single downlink addressing, the method of the present embodiment improves the success rate of addressing; compared with single uplink addressing, the embodiment reduces the addressing cost.
Fig. 2 is a flowchart illustrating an addressing method of a mobile terminal according to a second embodiment of the present application;
s201, acquiring demand information for addressing, wherein the demand information comprises a first short message plaintext, a first sending channel number and a first destination terminal address;
the execution subject of the present embodiment is a server. Specifically, the sender submits the required information of the plain text content, the sending channel number, the destination terminal address and the like of the original short message to the server, and sends an addressing instruction for a certain mobile terminal to the server. The server obtains the requirement information for addressing and receives the addressing instruction. The first short message plaintext is short message content provided by a sender and to be sent to a destination terminal, and the first sending channel number is a channel number capable of sending a short message; the first destination terminal address may represent an address of the destination terminal for receiving the short message, and for example, if the mobile terminal is a mobile phone, the first destination terminal address may be a mobile phone number.
S202, encrypting the first short message plaintext by adopting a preset encryption algorithm to generate a first ciphertext value, and storing the first short message plaintext, the first ciphertext value, the first sending channel number and the first destination terminal address as original information in an associated manner;
the preset encryption algorithm may be one algorithm or a combination of several algorithms. Illustratively, one or a combination of MD5 algorithm, hash algorithm, and hash 256 algorithm may be used. The first ciphertext value is generated by encrypting the first short message plaintext by adopting a preset encryption algorithm.
Specifically, after receiving the demand information for addressing, the server encrypts a first short message plaintext in the demand information into a first ciphertext value by using a preset encryption algorithm, and stores the first short message plaintext, the first ciphertext value, the first sending channel number and the first destination terminal address in the server in an associated manner.
S203, according to the first sending channel number and the first destination terminal address, sending the first short message plaintext and the corresponding first ciphertext value to the destination terminal;
specifically, the server sends a first short message plaintext and a first ciphertext value corresponding to the first short message plaintext to a destination terminal to be addressed according to a first sending channel number and a first destination terminal address.
Illustratively, the server sends a first short message plaintext and a first ciphertext value corresponding to the first short message plaintext to a mobile terminal corresponding to a certain mobile phone number through a 106 short message channel.
S204, receiving feedback information returned by the target terminal aiming at the original information;
specifically, after receiving the information, the destination terminal encrypts the first short message plaintext by using the same encryption algorithm and key as those used when the server generates the first ciphertext value, so as to obtain a second ciphertext value. And the destination terminal sends the second ciphertext value, the second sending channel number and the second destination terminal address to the server as feedback information. The server receives the feedback information from the destination terminal and adopts the feedback information to address the destination terminal.
The second sending channel number is a channel number of the short message received by the target terminal; the second destination terminal address refers to data that can be used to indicate the destination terminal address.
S205, if the feedback information is matched with the original information, marking that the destination terminal is successfully addressed;
specifically, when the server receives feedback information from a certain mobile terminal, the feedback information is matched with each original information stored in the server. If the feedback information has the corresponding matched original information, the destination terminal corresponding to the original information is successfully addressed, and the destination terminal is marked.
And S206, if the feedback information is not matched with the original information, the target terminal is instructed to generate uploading information and send the uploading information to a server, and the target terminal is addressed by adopting the uploading information.
Specifically, if the original information matched with the feedback information is not found in the server, the addressing failure is indicated; in order to continue addressing, the server sends an instruction to the destination terminal to instruct the destination terminal to send new uploading information for addressing, and when the server receives the uploading information from the destination terminal, the server adopts the uploading information for addressing.
In the embodiment, an addressing method combining downlink addressing and uplink addressing is adopted, so that compared with single downlink addressing, the addressing success rate is improved; compared with single uplink addressing, the embodiment reduces the addressing cost.
Fig. 3 is a schematic flowchart of an addressing method of a mobile terminal according to a third embodiment of the present application, where as shown in fig. 3, the method includes the following steps:
s301, acquiring demand information for addressing, wherein the demand information comprises a first short message plaintext, a first sending channel number and a first destination terminal address;
s302, encrypting the first short message plaintext by adopting a preset encryption algorithm to generate a first ciphertext value, and storing the first short message plaintext, the first ciphertext value, the first sending channel number and the first destination terminal address as original information in an associated manner;
s303, according to the first sending channel number and the first destination terminal address, sending the first short message plaintext and the corresponding first ciphertext value to the destination terminal;
s304, receiving feedback information returned by the destination terminal aiming at the original information;
steps S301 to S304 of the present embodiment are similar to steps S201 to S204 of the previous embodiment, and may refer to each other, which is not described herein again.
S305, comparing the feedback information with each piece of stored original information;
the feedback information comprises a second ciphertext value, a second sending channel number and a second destination terminal address, and the original information stored by the server comprises a first ciphertext value, a first sending channel number and a first destination terminal address. Specifically, the second ciphertext value is compared with the first ciphertext value, the second sending channel number is compared with the first sending channel number, and the second destination terminal address is compared with the first destination terminal address.
S306, if a first ciphertext value of certain original information is the same as the second ciphertext value, a first sending channel number is the same as the second sending channel number, and a first destination terminal address is the same as the second destination terminal address, judging that the feedback information is matched with the original information;
and for the target terminal, a second ciphertext value in the feedback information sent to the server is generated by adopting a short message plaintext sent to the target terminal by the server, an encryption algorithm and a key which are the same as those of the server, and if the feedback information is matched with the original information, the corresponding second ciphertext value is the same as the first ciphertext value. The first sending channel number and the second sending channel number are both channel numbers adopted when the server sends the target terminal information, and if the feedback information is matched with the original information, the corresponding second sending channel number is the same as the first sending channel number. The first destination terminal address and the second destination terminal address are both destination terminal addresses, and if the feedback information is matched with the original information, the corresponding second destination terminal address is the same as the first destination terminal address.
Specifically, the feedback information is compared with each original information stored in the server, the second ciphertext value is compared with the first ciphertext value, the second sending channel number is compared with the first sending channel number, and the second destination terminal address is compared with the first destination terminal address. And if the first ciphertext value and the second ciphertext value of certain original information are the same, the first sending channel number and the second sending channel number are the same, and the first destination terminal address and the second destination terminal address are the same, judging that the feedback information is matched with the original information.
Furthermore, when the comparison judgment is carried out, all items can be compared according to any sequence, the ciphertext value can be compared firstly, and the channel number can also be compared firstly; the judgment can be carried out according to any mode, the comparison of the original information can be finished when one item is different from the other item, and the judgment can be carried out after the comparison of the three items is finished. Here, the specific implementation process of comparing and determining whether to match is not limited.
S307, marking the destination terminal to be successfully addressed.
Specifically, if the server finds the original information matched with the feedback information, the server marks that the destination terminal corresponding to the original information is successfully addressed, and feeds back the successfully addressed information to the sender.
And S308, if the feedback information is not matched with the original information, the target terminal is instructed to generate uploading information and send the uploading information to a server, and the target terminal is addressed by adopting the uploading information.
Specifically, if the feedback information is compared with any original information in the server, the first ciphertext value is different from the second ciphertext value, or the first sending channel number is different from the second sending channel number, or the first destination terminal address is different from the second destination terminal address, the feedback information is not matched with the original information; and for the feedback information of the original information which is not matched, the server sends information to the corresponding target terminal, the target terminal is instructed to send the uploaded information to the server, and the server carries out addressing according to the uploaded information.
According to the embodiment of the application, the mobile terminal is addressed by sending the information to the mobile terminal and the historical information sent to the mobile terminal, so that the number of short messages to be sent to a server by the mobile terminal in the addressing process is reduced, and the addressing cost is reduced; and the addressing can be realized by sending short messages by the server and sending uploaded information to the server by the mobile terminal for addressing, so that the success rate of addressing is improved.
Fig. 4 is a schematic flowchart of an addressing method of a mobile terminal according to a fourth embodiment of the present application, where as shown in fig. 4, the method includes the following steps:
s401, acquiring demand information for addressing, wherein the demand information comprises a first short message plaintext, a first sending channel number and a first destination terminal address;
s402, encrypting the first short message plaintext by adopting a preset encryption algorithm to generate a first ciphertext value, and storing the first short message plaintext, the first ciphertext value, the first sending channel number and the first destination terminal address as original information in an associated manner;
and S403, sending the first short message plaintext and the corresponding first ciphertext value to the destination terminal according to the first sending channel number and the first destination terminal address.
S404, receiving feedback information returned by the destination terminal aiming at the original information;
steps S401 to S404 of this embodiment are similar to steps S201 to S204 of the previous embodiment, and may refer to each other, which is not described herein again.
S405, comparing the feedback information with each stored original information;
the feedback information comprises a second ciphertext value, a second sending channel number and a second destination terminal address, and the original information stored by the server comprises a first ciphertext value, a first sending channel number and a first destination terminal address. Specifically, the second ciphertext value is compared with the first ciphertext value, the second sending channel number is compared with the first sending channel number, and the second destination terminal address is compared with the first destination terminal address.
S406, if the feedback information is matched with the original information, marking that the destination terminal is successfully addressed;
specifically, if a first ciphertext value of a certain original information is the same as a second ciphertext value, a first sending channel number is the same as a second sending channel number, and a first destination terminal address is the same as a second destination terminal address, it is determined that the feedback information matches the original information, indicating that the destination terminal corresponding to the original information is successfully addressed, and marking the destination terminal.
S407, if the first ciphertext value of any original information is different from the second ciphertext value, or the first sending channel number is different from the second sending channel number, or the first destination terminal address is different from the second destination terminal address, determining that the feedback information is not matched with the original information;
specifically, the feedback information is compared with each original information stored in the server, the second ciphertext value is compared with the first ciphertext value, the second sending channel number is compared with the first sending channel number, and the second destination terminal address is compared with the first destination terminal address. And if the first ciphertext value of certain original information is different from the second ciphertext value, or the first sending channel number is the same as the second sending channel number, or the first destination terminal address is the same as the second destination terminal address, judging that the feedback information is not matched with the original information.
Furthermore, when the comparison judgment is carried out, all items can be compared according to any sequence, the ciphertext value can be compared firstly, and the channel number can also be compared firstly; the judgment can be carried out according to any mode, the comparison of the original information can be finished when one item is different from the other item, and the judgment can be carried out after the comparison of the three items is finished. Here, the specific implementation process of comparing and determining whether to match is not limited.
And S408, indicating the destination terminal to generate uploading information and sending the uploading information to a server.
The upload information includes a third ciphertext value, a historical channel number, and a third destination terminal address. The third ciphertext value is generated by encrypting the stored historical information by the destination terminal through a preset encryption algorithm, the historical channel is contained in the historical information, and the third destination terminal address refers to data capable of representing the destination terminal address.
Specifically, after the server fails to address by using the feedback information, the server sends an instruction to the destination terminal to instruct the destination terminal to generate and send the upload information. After receiving the instruction, the destination terminal randomly selects one or a preset number of pieces from the stored historical information within a preset time range, generates one or more corresponding pieces of uploading information, and sends the uploading information to the server.
Further, the destination terminal returns the upload information to the server within a preset time. If the server does not receive the uploading information within the preset time, the addressing failure of the target terminal is marked, and the addressing failure information is fed back to the sender. For the destination terminal with failed addressing, the addressing may be resumed from S401, or may be buffered separately, and the addressing is resumed from S401 after receiving the addressing command or new request information.
S409, comparing the uploaded information with each stored original information;
the uploaded information comprises a third ciphertext value, a historical channel number and a third destination terminal address, and the original information stored by the server comprises a first ciphertext value, a first sending channel number and a first destination terminal address. Specifically, the third ciphertext value is compared with the first ciphertext value, the historical channel number is compared with the first sending channel number, and the third destination terminal address is compared with the first destination terminal address.
S410, if a first ciphertext value of certain original information is the same as the third ciphertext value, a first sending channel number is the same as the historical channel number, and a first destination terminal address is the same as the third destination terminal address, marking that the destination terminal is successfully addressed;
and for the target terminal, the third ciphertext value in the uploading information sent to the server is generated by adopting the historical information sent to the target terminal by the server, the same encryption algorithm and the same secret key as the server, and if the uploading information is matched with the original information, the corresponding third ciphertext value is the same as the first ciphertext value. The first sending channel number and the historical sending channel number are both channel numbers adopted when the server sends the historical information to the target terminal, and if the uploaded information is matched with the original information, the corresponding historical sending channel number is the same as the first sending channel number. The first destination terminal address and the third destination terminal address are both destination terminal addresses, and if the uploaded information is matched with the original information, the corresponding third destination terminal address is the same as the first destination terminal address.
Specifically, the uploaded information is compared with each original information stored in the server, the third ciphertext value is compared with the first ciphertext value, the historical channel number is compared with the first sending channel number, and the third destination terminal address is compared with the first destination terminal address. And if the first ciphertext value and the third ciphertext value of certain original information are the same, the first sending channel number and the third sending channel number are the same, and the first destination terminal address and the third destination terminal address are the same, judging that the uploaded information is matched with the original information.
Furthermore, when the comparison judgment is carried out, all items can be compared according to any sequence, the ciphertext value can be compared firstly, and the channel number can also be compared firstly; the judgment can be carried out according to any mode, the comparison of the original information can be finished when one item is different from the other item, and the judgment can be carried out after the comparison of the three items is finished. Here, the specific implementation process of comparing and determining whether to match is not limited.
S411, if a first ciphertext value of any original information is different from the third ciphertext value, or a first sending channel number is different from the historical channel number, or a first destination terminal address is different from the third destination terminal address, instructing the destination terminal to collect addressing information in a preset format and sending the addressing information in the preset format to a server;
specifically, if the first ciphertext value of any original information stored in the server is different from the third ciphertext value, or the first sending channel number is different from the historical channel number, or the first destination terminal address is different from the third destination terminal address, it is indicated that the original information matched with the uploaded information does not exist in the server, and the addressing by using the uploaded information fails.
When the addressing fails by using the uploading information, the destination terminal can be instructed to send addressing information of a specified format to the server, and the address of the destination terminal and the equipment identification code can be exemplarily included in the addressing information of the specified format.
Further, when the destination terminal receives the instruction of uploading the information, if the destination terminal does not have the history information within the preset time range, the destination terminal can directly send the addressing information in the preset format to the server.
S412, the addressing information in the preset format is stored to complete the addressing of the destination terminal.
When receiving the information with the appointed format from the mobile terminal, storing the information, marking the end of addressing, and feeding back the addressing completion information to the sender.
In this embodiment, after the server sends the original information to the destination terminal, the server compares the information fed back by the destination terminal with the original information stored in the server, and if the addressing cannot be successfully performed, the server is instructed to notify the destination terminal to send a preset number of pieces of historical information to the server, so as to achieve a higher success rate of addressing the destination terminal, and solve the problems of low success rate and high cost of addressing with a single addressing (uplink addressing or downlink addressing).
Fig. 5 is a schematic flowchart of an addressing method of a mobile terminal according to a fifth embodiment of the present application, which is suitable for the mobile terminal, and as shown in fig. 5, the method includes the following steps:
s501, receiving original information sent by a server, and returning feedback information to the server aiming at the original information;
the method can be applied to the mobile terminal, namely, the execution subject of the method is the mobile terminal. The mobile terminal can be a mobile phone, a tablet personal computer, a smart watch and a smart wearable device, and the specific type of the mobile terminal is not limited in the embodiment.
The original information comprises a short message plaintext and a corresponding ciphertext value; the feedback information comprises a cipher text value, a sending channel number and a destination terminal address. And in order to distinguish the information transmitted by the server, the second ciphertext value, the second transmission channel number and the second destination terminal address are respectively used for representing. And the second ciphertext value is generated by encrypting the plaintext of the received short message by the mobile terminal by adopting a preset encryption algorithm. The preset encryption algorithm may include one or a combination of a hash algorithm, a hash 256 algorithm, or an MD5 algorithm. It should be noted that the encryption algorithm and the key used by the mobile terminal are the same as those used by the server sending the original information to encrypt the plaintext of the short message.
Specifically, the mobile terminal receives original information sent by the server, extracts a short message plaintext from the original information, and records a sending channel number as a second channel number. And encrypting the plaintext of the short message by adopting a preset encryption algorithm to obtain a second ciphertext value, and recording the address of the mobile terminal as a second destination terminal address. And sending the second ciphertext value, the second sending channel number and the second destination terminal address to the server as feedback information.
S502, if an instruction for generating the uploading information sent by the server is received, acquiring a historical channel number according to the instruction;
and when the server receives the feedback information, the server adopts the feedback information to address the mobile terminal. And when the mobile terminal is not successfully addressed, the server sends an instruction to the mobile terminal to instruct the mobile terminal to send the uploading information to the server.
Specifically, after receiving an instruction for sending the upload information from the server, the mobile terminal randomly selects a piece of history information from the mobile terminal according to the instruction, wherein the history information comprises a history channel number for sending the history information.
And S503, generating uploading information according to the historical channel number and sending the uploading information to a server, wherein the uploading information is used for indicating the server to address the current mobile terminal.
Specifically, the mobile terminal selects the history information received within the preset time according to the history channel number, and uses the same encryption algorithm and key as those in S501 to examine each line of ciphertext value, and for convenience of distinguishing, it is called a third ciphertext value, and for convenience of distinguishing, the mobile terminal address is called a third destination terminal address. And sending the third ciphertext value, the historical channel number and the third destination terminal address to the destination terminal as uploading information.
Further, the destination terminal may randomly select a preset number of pieces of history information from the stored history information, generate corresponding pieces of upload information, and send the pieces of upload information to the server.
Further, if the history information is not stored in the destination terminal, the uploading information in the specified format is sent to the server. Illustratively, the upload information in the specified format may carry an address and a device identification code of the mobile terminal.
According to the embodiment of the application, the mobile terminal carries out addressing by returning the feedback information to the server, if the addressing cannot be successfully carried out, the target terminal additionally sends the uploading information generated by the preset number of pieces of historical information to the server according to the indication of the server and carries out the addressing again, the success rate of the addressing of the target terminal is improved, and the addressing cost is reduced.
Fig. 6 is a schematic structural diagram of an addressing apparatus of a mobile terminal according to a sixth embodiment of the present application, and as shown in fig. 6, the addressing apparatus includes the following modules:
a sending module 61, configured to obtain original information for addressing, and send the original information to a destination terminal;
a receiving module 62, configured to receive feedback information returned by the destination terminal for the original information;
a matching module 63, configured to mark that the destination terminal is successfully addressed if the feedback information matches the original information;
and an uplink addressing module 64, configured to instruct the destination terminal to generate upload information and send the upload information to a server if the feedback information is not matched with the original information, and address the destination terminal by using the upload information.
In this embodiment, the sending module 61 may specifically include the following sub-modules:
the acquisition submodule is used for acquiring demand information for addressing, wherein the demand information comprises a first short message plaintext, a first sending channel number and a first destination terminal address;
the encryption submodule is used for encrypting the first short message plaintext by adopting a preset encryption algorithm to generate a first ciphertext value, and storing the first short message plaintext, the first ciphertext value, the first sending channel number and the first destination terminal address as original information in an associated manner;
and the sending submodule is used for sending the first short message plaintext and a first ciphertext value corresponding to the first short message plaintext to the destination terminal according to the first sending channel number and the first destination terminal address.
In this embodiment of the application, the feedback information carries a second ciphertext value, a second sending channel number, and a second destination terminal address, and the matching module 63 may specifically include the following sub-modules:
the matching comparison submodule is used for comparing the feedback information with each piece of stored original information;
a matching judgment sub-module, configured to judge that the feedback information matches with the original information if a first ciphertext value of some original information is the same as the second ciphertext value, a first sending channel number is the same as the second sending channel number, and a first destination terminal address is the same as the second destination terminal address;
and the marking submodule is used for marking the successful addressing of the destination terminal.
In this embodiment of the present application, the feedback information carries a second ciphertext value, a second sending channel number, and a second destination terminal address, and the uplink addressing module 64 may specifically include the following sub-modules:
the mismatch comparison submodule is used for comparing the feedback information with each piece of stored original information;
a mismatch judgment sub-module, configured to judge that the feedback information is mismatched with the original information if a first ciphertext value of any original information is different from the second ciphertext value, or a first sending channel number is different from the second sending channel number, or a first destination terminal address is different from the second destination terminal address;
and the indicating submodule is used for indicating the target terminal to generate uploading information and sending the uploading information to the server.
In this embodiment of the present application, the upload information further carries a third ciphertext value, a historical channel number, and a third destination terminal address, and the uplink addressing module 64 may further include the following sub-modules:
the uploaded information comparison submodule is used for comparing the uploaded information with each piece of stored original information;
and the addressing result judging submodule is used for marking that the destination terminal is successfully addressed if a first ciphertext value of certain original information is the same as the third ciphertext value, a first sending channel number is the same as the historical channel number, and a first destination terminal address is the same as the third destination terminal address.
In this embodiment of the present application, the uplink addressing module 64 may further include the following sub-modules:
the sub-module for indicating and sending the preset format information is used for indicating the target terminal to collect the addressing information in the preset format and sending the addressing information in the preset format to the server if the first ciphertext value of any original information is different from the third ciphertext value, or the first sending channel number is different from the historical channel number, or the first target terminal address is different from the third target terminal address;
and the preset format information storage submodule is used for storing the addressing information of the preset format so as to finish the addressing of the target terminal.
Fig. 7 is a schematic structural diagram of an addressing apparatus of a mobile terminal according to a seventh embodiment of the present application, and as shown in fig. 7, the apparatus may specifically include the following modules:
a feedback information sending module 71, configured to receive original information sent by a server, and return feedback information to the server for the original information;
a historical channel number obtaining module 72, configured to, if an instruction for generating upload information sent by the server is received, obtain a historical channel number according to the instruction;
and an upload information sending module 73, configured to generate upload information according to the historical channel number and send the upload information to a server, where the upload information is used to instruct the server to address the current mobile terminal.
Fig. 8 is a schematic structural diagram of a server according to an eighth embodiment of the present application. As shown in fig. 8, the server 8 of this embodiment includes: at least one processor 80 (only one shown in fig. 8), a memory 81, and a computer program 82 stored in the memory 81 and operable on the at least one processor 80, the processor 80 implementing the steps in any of the various mobile terminal addressing method embodiments described above when executing the computer program 82.
The server may include, but is not limited to, a processor 80, a memory 81. Those skilled in the art will appreciate that fig. 8 is merely an example of a server 8 and does not constitute a limitation on the server 8, and may include more or fewer components than shown, or some components in combination, or different components, such as input output devices, network access devices, etc.
The processor 80 may be a Central Processing Unit (CPU), and the processor 80 may be other general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 81 may in some embodiments be an internal storage unit of the server 8, such as a hard disk or a memory of the server 8. The memory 81 may also be an external storage device of the server 8 in other embodiments, such as a plug-in hard disk provided on the server 8, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card (FlashCard), and the like. Further, the memory 81 may also include both an internal storage unit of the server 8 and an external storage device. The memory 81 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 81 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
Embodiments of the present application provide a computer program product, which when running on a server, enables the server to implement the steps in the method embodiments of the server side when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer memory, Read-only memory (ROM), random-access memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.
Claims (10)
1. An addressing method of a mobile terminal, which is suitable for a server, is characterized in that the method comprises the following steps:
acquiring original information for addressing, and sending the original information to a target terminal;
receiving feedback information returned by the target terminal aiming at the original information;
if the feedback information is matched with the original information, marking that the destination terminal is successfully addressed;
and if the feedback information is not matched with the original information, indicating the target terminal to generate uploading information and sending the uploading information to a server, and addressing the target terminal by adopting the uploading information.
2. The method of claim 1, wherein the obtaining of the original information for addressing and the sending of the original information to the destination terminal comprises:
acquiring demand information for addressing, wherein the demand information comprises a first short message plaintext, a first sending channel number and a first destination terminal address;
encrypting the first short message plaintext by adopting a preset encryption algorithm to generate a first ciphertext value, and storing the first short message plaintext, the first ciphertext value, the first sending channel number and the first destination terminal address as original information in an associated manner;
and sending the first short message plaintext and a first ciphertext value corresponding to the first short message plaintext to a destination terminal according to the first sending channel number and a first destination terminal address.
3. The method of claim 2, wherein the feedback information carries a second ciphertext value, a second sending channel number, and a second destination terminal address, and the marking that the destination terminal is successfully addressed if the feedback information matches the original information comprises:
comparing the feedback information with each piece of stored original information;
if a first ciphertext value of certain original information is the same as the second ciphertext value, a first sending channel number is the same as the second sending channel number, and a first destination terminal address is the same as the second destination terminal address, judging that the feedback information is matched with the original information;
and marking the destination terminal as successfully addressed.
4. The method of claim 2, wherein the feedback information carries a second ciphertext value, a second sending channel number, and a second destination terminal address, and if the feedback information does not match the original information, the method instructs the destination terminal to generate upload information and send the upload information to a server, comprising:
comparing the feedback information with each piece of stored original information;
if the first ciphertext value of any original information is different from the second ciphertext value, or the first sending channel number is different from the second sending channel number, or the first destination terminal address is different from the second destination terminal address, judging that the feedback information is not matched with the original information;
and indicating the target terminal to generate uploading information and sending the uploading information to a server.
5. The method of claim 4, wherein the uploading information further carries a third ciphertext value, a historical channel number, and a third destination terminal address, and the addressing of the destination terminal using the uploading information comprises:
comparing the uploaded information with each stored original information;
and if the first ciphertext value of certain original information is the same as the third ciphertext value, the first sending channel number is the same as the historical channel number, and the first destination terminal address is the same as the third destination terminal address, marking that the destination terminal is successfully addressed.
6. The method of claim 5, further comprising:
if the first ciphertext value of any original information is different from the third ciphertext value, or the first sending channel number is different from the historical channel number, or the first destination terminal address is different from the third destination terminal address, instructing the destination terminal to collect addressing information in a preset format and sending the addressing information in the preset format to a server;
and storing the addressing information in the preset format to finish the addressing of the target terminal.
7. An addressing method of a mobile terminal, which is suitable for the mobile terminal, and is characterized in that the method comprises the following steps:
receiving original information sent by a server, and returning feedback information to the server aiming at the original information;
if an instruction for generating uploading information sent by the server is received, acquiring a historical channel number according to the instruction;
and generating uploading information according to the historical channel number and sending the uploading information to a server, wherein the uploading information is used for indicating the server to address the current mobile terminal.
8. An addressing mechanism for a mobile terminal adapted for use with a server, the mechanism comprising:
the system comprises a sending module, a receiving module and a sending module, wherein the sending module is used for acquiring original information used for addressing and sending the original information to a target terminal;
a receiving module, configured to receive feedback information returned by the destination terminal for the original information;
the matching module is used for marking that the destination terminal is successfully addressed if the feedback information is matched with the original information;
and the uplink addressing module is used for indicating the target terminal to generate upload information and sending the upload information to the server if the feedback information is not matched with the original information, and addressing the target terminal by adopting the upload information.
9. A server comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911016181.6A CN110839217B (en) | 2019-10-24 | 2019-10-24 | Addressing method, device, server and medium for mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911016181.6A CN110839217B (en) | 2019-10-24 | 2019-10-24 | Addressing method, device, server and medium for mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110839217A true CN110839217A (en) | 2020-02-25 |
CN110839217B CN110839217B (en) | 2022-03-11 |
Family
ID=69575477
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911016181.6A Active CN110839217B (en) | 2019-10-24 | 2019-10-24 | Addressing method, device, server and medium for mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110839217B (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020004772A1 (en) * | 2000-07-10 | 2002-01-10 | Templeton James E. | System and method for verifying a financial instrument |
CN103973636A (en) * | 2013-01-28 | 2014-08-06 | 深圳市腾讯计算机***有限公司 | Verification method, server and system |
WO2014201861A1 (en) * | 2013-06-18 | 2014-12-24 | Tencent Technology (Shenzhen) Company Limited | Security verification method, apparatus and terminal |
CN104618374A (en) * | 2015-02-03 | 2015-05-13 | 深圳元景车联科技有限公司 | Registration method |
WO2015101231A1 (en) * | 2013-12-30 | 2015-07-09 | Tencent Technology (Shenzhen) Company Limited | Method, device and system for user authentication |
CN105072080A (en) * | 2015-07-01 | 2015-11-18 | 赛肯(北京)科技有限公司 | Information verification method, device and system |
US20150363775A1 (en) * | 2013-01-10 | 2015-12-17 | Tendyron Corporation | Key protection method and system |
CN105682093A (en) * | 2014-11-20 | 2016-06-15 | 中兴通讯股份有限公司 | Wireless network access method and access device, and client |
CN106412862A (en) * | 2016-10-13 | 2017-02-15 | 上海众人网络安全技术有限公司 | Short message reinforcement method, apparatus and system |
CN107241336A (en) * | 2017-06-19 | 2017-10-10 | 广州市百果园信息技术有限公司 | Auth method and device |
CN109167751A (en) * | 2018-07-11 | 2019-01-08 | 深圳市梦网科技发展有限公司 | A kind of addressing method of mobile terminal, server and mobile terminal |
-
2019
- 2019-10-24 CN CN201911016181.6A patent/CN110839217B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020004772A1 (en) * | 2000-07-10 | 2002-01-10 | Templeton James E. | System and method for verifying a financial instrument |
US20150363775A1 (en) * | 2013-01-10 | 2015-12-17 | Tendyron Corporation | Key protection method and system |
CN103973636A (en) * | 2013-01-28 | 2014-08-06 | 深圳市腾讯计算机***有限公司 | Verification method, server and system |
WO2014201861A1 (en) * | 2013-06-18 | 2014-12-24 | Tencent Technology (Shenzhen) Company Limited | Security verification method, apparatus and terminal |
WO2015101231A1 (en) * | 2013-12-30 | 2015-07-09 | Tencent Technology (Shenzhen) Company Limited | Method, device and system for user authentication |
CN105682093A (en) * | 2014-11-20 | 2016-06-15 | 中兴通讯股份有限公司 | Wireless network access method and access device, and client |
CN104618374A (en) * | 2015-02-03 | 2015-05-13 | 深圳元景车联科技有限公司 | Registration method |
CN105072080A (en) * | 2015-07-01 | 2015-11-18 | 赛肯(北京)科技有限公司 | Information verification method, device and system |
CN106412862A (en) * | 2016-10-13 | 2017-02-15 | 上海众人网络安全技术有限公司 | Short message reinforcement method, apparatus and system |
CN107241336A (en) * | 2017-06-19 | 2017-10-10 | 广州市百果园信息技术有限公司 | Auth method and device |
CN109167751A (en) * | 2018-07-11 | 2019-01-08 | 深圳市梦网科技发展有限公司 | A kind of addressing method of mobile terminal, server and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN110839217B (en) | 2022-03-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110336662B (en) | Digital information encryption method and device, computer equipment and storage medium | |
CN107801165B (en) | Business short message pushing method and device, computer equipment and storage medium | |
CN110138744B (en) | Method, device and system for replacing communication number, computer equipment and storage medium | |
US11108548B2 (en) | Authentication method, server, terminal, and gateway | |
CN108762791A (en) | Firmware upgrade method and device | |
CN104602238A (en) | Wireless network connecting method, device and system | |
CN105007577A (en) | Virtual SIM card parameter management method, mobile terminal and server | |
CN104507080A (en) | File processing method and terminal | |
US20130067227A1 (en) | System and Method for Anonymous Digital Communication | |
CN104365127A (en) | Method for tracking a mobile device onto a remote displaying unit | |
CN112070516A (en) | Product tracing method and device and block chain system | |
CN105208028A (en) | Data transmission method and related device and equipment | |
CN101626378A (en) | Method, device and system for managing authority information | |
CN103678993A (en) | Method and device controlling terminal | |
CN108846671B (en) | Online secure transaction method and system based on block chain | |
CN114499836A (en) | Key management method, key management device, computer equipment and readable storage medium | |
CN111787514B (en) | Method and device for acquiring equipment control data, storage medium and electronic device | |
CN110839217B (en) | Addressing method, device, server and medium for mobile terminal | |
CN111885091A (en) | Secure communication method, device, equipment and storage medium | |
CN109787955B (en) | Information transmission method, device and storage medium | |
CN106487761B (en) | Message transmission method and network equipment | |
CN112771815A (en) | Key processing method and device | |
CN108513272B (en) | Short message processing method and device | |
CN114338132B (en) | Secret-free login method, client application, operator server and electronic equipment | |
CN115834113A (en) | OT communication method, OT communication device, electronic device, and storage medium |
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 |