CN106358194B - Device and method for connecting mobile terminal and server - Google Patents

Device and method for connecting mobile terminal and server Download PDF

Info

Publication number
CN106358194B
CN106358194B CN201610970733.7A CN201610970733A CN106358194B CN 106358194 B CN106358194 B CN 106358194B CN 201610970733 A CN201610970733 A CN 201610970733A CN 106358194 B CN106358194 B CN 106358194B
Authority
CN
China
Prior art keywords
server
mobile terminal
connection
information
connection request
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.)
Active
Application number
CN201610970733.7A
Other languages
Chinese (zh)
Other versions
CN106358194A (en
Inventor
周恒恭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610970733.7A priority Critical patent/CN106358194B/en
Publication of CN106358194A publication Critical patent/CN106358194A/en
Application granted granted Critical
Publication of CN106358194B publication Critical patent/CN106358194B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/12Detection or prevention of fraud
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/25Maintenance of established connections

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a device and a method for connecting a mobile terminal and a server, wherein the method comprises the steps of sending identification information and a connection request of the mobile terminal to a router so that the router can verify the identification information and the connection request of the mobile terminal, and feeding back connection feedback information to the mobile terminal according to a verification result; if the received connection feedback information sent by the router is connection permission and server connection information, sending a server connection request and the connection permission to a server according to the server connection information so that the server can verify the server connection request and the connection permission, and feeding back server connection request feedback information to the mobile terminal according to a verification result; and if the received connection request feedback information of the server is the permission connection, establishing long connection with the server. The invention can improve the safety of the mobile terminal for receiving the push message.

Description

Device and method for connecting mobile terminal and server
Technical Field
The present invention relates to the field of communications, and in particular, to a connection device and method for a mobile terminal and a server.
Background
Nowadays, both the system program of the mobile terminal and many APPs (applications) in the mobile terminal have a function of pushing messages. Although the mechanism of implementation of the message push function of the APP in the system program and the mobile terminal may be different, there is a common point that a long connection for push needs to be established with the server and maintained. In the prior art, a mobile terminal can be connected with a server only by permission of the server in the process of establishing long connection with the server, if a masquerading server sends connection permission to the mobile terminal, the mobile terminal can establish long connection with the masquerading server and receive a push message sent by the masquerading server, so that the mobile terminal receives a false push message, and the safety of a user influencing the mobile terminal to use the push message is verified.
Disclosure of Invention
The invention mainly aims to provide a device and a method for connecting a mobile terminal and a server, and aims to overcome the defect that the mobile terminal can be connected with a false server to receive a false push message because the mobile terminal only needs the permission of the server in the prior art.
In order to achieve the above object, the present invention provides a connection device for a mobile terminal and a server, which is disposed on the mobile terminal, and comprises:
the first sending module is used for sending the identification information of the mobile terminal and the connection request to a router so that the router can verify the identification information of the mobile terminal and the connection request, and feeding back connection feedback information to the mobile terminal according to a verification result;
a second sending module, configured to send a server connection request and a server connection permission to a server according to the server connection information if the received connection feedback information sent by the router is connection permission and server connection information, so that the server verifies the server connection request and the connection permission, and feeds back server connection request feedback information to the mobile terminal according to a verification result;
and the connection module is used for establishing long connection with the server if the connection request feedback information sent by the server is received as the connection permission.
Further, the server connection information includes: server identification information and server port information.
Further, the apparatus further comprises:
the third sending module is used for sending heartbeat messages to the server at set time intervals after the long connection is established with the server through the connection module;
and the first judgment module is used for judging that the long connection with the server is kept if the heartbeat response message sent by the server is received within the set time length after the heartbeat message request is sent.
Further, the apparatus further comprises:
the fourth sending module is used for sending the equipment information of the mobile terminal to the server after the long connection is established with the server through the connection module so that the server can generate push information according to the equipment information of the mobile terminal;
and the second judgment module is used for judging that the mobile terminal equipment information is sent to the server if the mobile terminal equipment feedback information sent by the server is received.
Further, the apparatus further comprises:
the first receiving module is used for receiving the push information sent by the server after the fourth sending module sends the user terminal equipment information to the server;
a fifth sending module, configured to send a receiving confirmation message of the push message to the server once if the service quality Qoc value of the push message is 1;
if the service quality Qoc value of the push information is 2, sending a receiving confirmation message of the push information to the server until the server feeds back and receives the receiving confirmation message; the number of times of sending the reception confirmation information to the server is not more than three.
In addition, in order to achieve the above object, the present invention further provides a method for connecting a mobile terminal and a server, which is applied to the mobile terminal, and the method includes:
sending the identification information of the mobile terminal and the connection request to a router so that the router can verify the identification information of the mobile terminal and the connection request, and feeding back connection feedback information to the mobile terminal according to a verification result;
if the received connection feedback information sent by the router is connection permission and server connection information, sending a server connection request and the connection permission to a server according to the server connection information so that the server can verify the server connection request and the connection permission, and feeding back server connection request feedback information to the mobile terminal according to a verification result;
and if the received connection request feedback information of the server is the permission connection, establishing long connection with the server.
Further, the server connection information includes: server identification information and server port information.
Further, the method further comprises: after establishing a long connection with the server, sending heartbeat messages to the server at set time intervals;
and if the heartbeat response message sent by the server is received within the set time length after the heartbeat message request is sent, judging that the connection with the server is kept.
Further, the method further comprises: after long connection is established with the server, the terminal equipment information is sent to the server, so that the server can generate push information according to the terminal equipment information;
and if the feedback information of the user terminal equipment sent by the server is received, judging that the equipment information is sent to the server.
Further, the method further comprises: after the user terminal equipment information is sent to the server, push information sent by the server is received;
if the service quality Qoc value of the push information is 1, sending a receiving confirmation message of the push information to the server;
if the service quality Qoc value of the push information is 2, sending a receiving confirmation message of the push information to the server until the server feeds back and receives the receiving confirmation message; the number of times of sending the reception confirmation information to the server is not more than three.
In addition, in order to achieve the above object, the present invention further provides a connection device for a mobile terminal and a server, which is provided in a router, the connection device comprising:
the verification module is used for receiving the mobile terminal identification information and the connection request sent by the mobile terminal and verifying the mobile terminal identification information and the connection request;
and the first feedback module is used for sending connection feedback information comprising connection permission and server connection information to the mobile terminal if the verification result of the verification module is that the verification is passed, so that the mobile terminal sends a server connection application to the server according to the connection permission and the server connection information.
In addition, in order to achieve the above object, the present invention further provides a method for connecting a mobile terminal and a server, which is applied to a router, and the method includes:
receiving mobile terminal identification information and a connection request sent by a mobile terminal, and verifying the mobile terminal identification information and the connection request;
and if the verification result is that the server connection request passes the verification, sending connection feedback information comprising connection permission and server connection information to the mobile terminal so that the mobile terminal sends the server connection request to the server according to the connection permission and the server connection information.
In addition, in order to achieve the above object, the present invention further provides a connection device for a mobile terminal and a server, which is provided in the server, the connection device comprising:
the verification module is used for receiving the server connection request and the connection permission sent by the mobile terminal and verifying the server connection request and the connection permission;
and the second feedback module is used for sending server connection request feedback information allowing connection to the mobile terminal if the verification result of the verification module is verification passing so as to establish long connection between the mobile terminal and the server.
Further, the apparatus further comprises:
and the third feedback module is used for feeding back a heartbeat response message corresponding to each heartbeat message to the mobile terminal based on the received heartbeat messages sent by the mobile terminal at set time intervals.
Further, the apparatus further comprises:
and the fourth feedback module is used for generating mobile terminal equipment feedback information based on the received mobile terminal equipment information sent by the mobile terminal and sending the mobile terminal equipment feedback information to the mobile terminal.
Further, the apparatus further comprises:
the generation module is used for generating push information with different service qualities based on the received mobile terminal equipment information sent by the mobile terminal;
the sending module is used for sending the push information with different service qualities generated by the generating module to the mobile terminal;
and the sending confirmation module is used for receiving the receiving confirmation information of the push information with different service qualities sent by the mobile terminal and storing the receiving confirmation information.
In addition, in order to achieve the above object, the present invention further provides a method for connecting a mobile terminal and a server, which is applied to the server, and is characterized in that the method includes:
receiving a server connection request and connection permission sent by a mobile terminal, and verifying the server connection request and the connection permission;
and if the verification result is that the server passes the verification, sending server connection request feedback information allowing connection to the mobile terminal so that the mobile terminal can establish long connection with the server.
Further, the method further comprises:
and feeding back a heartbeat response message corresponding to each heartbeat message to the mobile terminal based on the received heartbeat messages sent by the mobile terminal at set time intervals.
Further, the method further comprises:
and generating mobile terminal equipment feedback information based on the received mobile terminal equipment information sent by the mobile terminal, and sending the mobile terminal equipment feedback information to the mobile terminal.
Further, the method further comprises:
generating push information with different service qualities based on the received mobile terminal equipment information sent by the mobile terminal;
sending the push information of different service qualities to the mobile terminal;
receiving the receiving confirmation information of the push information with different service quality sent by the mobile terminal, and storing the receiving confirmation information.
According to the device and the method for connecting the mobile terminal and the server, the connection between the mobile terminal and the server is realized through the two-stage permission of the router and the server, the connection between a false server and the mobile terminal can be effectively avoided, and the safety of the mobile terminal for receiving the push message is improved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present invention;
fig. 2 is a flowchart of a connection method between a mobile terminal and a server according to a first embodiment of the present invention;
fig. 3 is a flowchart of a connection method between a mobile terminal and a server according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of an apparatus structure of a mobile terminal and a server according to a third embodiment of the present invention;
fig. 5 is a schematic diagram illustrating an apparatus structure of a mobile terminal and a server according to a fourth embodiment of the present invention;
fig. 6 is a flowchart of a method for connecting a mobile terminal and a server according to a fifth embodiment of the present invention;
fig. 7 is a schematic diagram illustrating an apparatus structure of a mobile terminal and a server according to a sixth embodiment of the present invention;
fig. 8 is a flowchart of a connection method between a mobile terminal and a server according to a seventh embodiment of the present invention;
fig. 9 is a flowchart of a connection method between a mobile terminal and a server according to an eighth embodiment of the present invention;
fig. 10 is a schematic diagram illustrating an apparatus structure of a mobile terminal and a server according to a ninth embodiment of the present invention;
fig. 11 is a schematic diagram of an apparatus structure of a mobile terminal and a server according to a tenth embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic hardware structure of an optional mobile terminal for implementing various embodiments of the present invention.
The mobile terminal 100 may include a wireless communication unit 110, an a/V (audio/video) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190, etc. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. Elements of the mobile terminal will be described in detail below.
The wireless communication unit 110 typically includes one or more components that allow radio communication between the mobile terminal 100 and a wireless communication system or network. For example, the wireless communication unit may include at least one of a broadcast receiving module 111, a mobile communication module 112, a wireless internet module 113, a short-range communication module 114, and a location information module 115.
Broadcast receiving module 111 receives a broadcast signal and/or broadcast associated information from an external broadcast management server via a broadcast channel. The broadcast channel may include a satellite channel and/or a terrestrial channel. The broadcast management server may be a server that generates and transmits a broadcast signal and/or broadcast associated information or a server that receives a previously generated broadcast signal and/or broadcast associated information and transmits it to a terminal. The broadcast signal may include a TV broadcast signal, a radio broadcast signal, a data broadcast signal, and the like. Also, the broadcast signal may further include a broadcast signal combined with a TV or radio broadcast signal. The broadcast associated information may also be provided via a mobile communication network, and in this case, the broadcast associated information may be received by the mobile communication module 112. The broadcast signal may exist in various forms, for example, it may exist in the form of an Electronic Program Guide (EPG) of Digital Multimedia Broadcasting (DMB), an Electronic Service Guide (ESG) of digital video broadcasting-handheld (DVB-H), and the like. The broadcast receiving module 111 may receive a signal broadcast by using various types of broadcasting systems. In particular, the broadcast receiving module 111 may receive a broadcast signal by using a signal such as multimedia broadcasting-terrestrial (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video broadcasting-handheld (DVB-H), forward link media (MediaFLO)@) A digital broadcasting system of a terrestrial digital broadcasting integrated service (ISDB-T), etc. receives digital broadcasting. The broadcast receiving module 111 may be constructed to be suitable for various broadcasting systems that provide broadcast signals as well as the above-mentioned digital broadcasting systems. The broadcast signal and/or broadcast associated information received via the broadcast receiving module 111 may be stored in the memory 160 (or other type of storage medium).
The mobile communication module 112 transmits and/or receives radio signals to and/or from at least one of a base station (e.g., access point, node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received according to text and/or multimedia messages.
The wireless internet module 113 supports wireless internet access of the mobile terminal. The module may be internally or externally coupled to the terminal. The wireless internet access technology to which the module relates may include WLAN (wireless LAN) (Wi-Fi), Wibro (wireless broadband), Wimax (worldwide interoperability for microwave access), HSDPA (high speed downlink packet access), and the like.
The short-range communication module 114 is a module for supporting short-range communication. Some examples of short-range communication technologies include bluetoothTMRadio Frequency Identification (RFID), infrared data association (IrDA), Ultra Wideband (UWB), zigbeeTMAnd so on.
The location information module 115 is a module for checking or acquiring location information of the mobile terminal. A typical example of the location information module is a GPS (global positioning system). According to the current technology, the GPS module 115 calculates distance information and accurate time information from three or more satellites and applies triangulation to the calculated information, thereby accurately calculating three-dimensional current location information according to longitude, latitude, and altitude. Currently, a method for calculating position and time information uses three satellites and corrects an error of the calculated position and time information by using another satellite. In addition, the GPS module 115 can calculate speed information by continuously calculating current position information in real time.
The a/V input unit 120 is used to receive an audio or video signal. The a/V input unit 120 may include a camera 121 and a microphone 122, and the camera 121 processes image data of still pictures or video obtained by an image capturing apparatus in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 151. The image frames processed by the cameras 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 121 may be provided according to the construction of the mobile terminal. The microphone 122 may receive sounds (audio data) via the microphone in a phone call mode, a recording mode, a voice recognition mode, or the like, and can process such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the mobile communication module 112 in case of a phone call mode. The microphone 122 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The user input unit 130 may generate key input data according to a command input by a user to control various operations of the mobile terminal. The user input unit 130 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects changes in resistance, pressure, capacitance, and the like due to being touched), scroll wheel, joystick, and the like. In particular, when the touch pad is superimposed on the display unit 151 in the form of a layer, a touch screen may be formed.
The sensing unit 140 detects a current state of the mobile terminal 100 (e.g., an open or closed state of the mobile terminal 100), a position of the mobile terminal 100, presence or absence of contact (i.e., touch input) by a user with the mobile terminal 100, an orientation of the mobile terminal 100, acceleration or deceleration movement and direction of the mobile terminal 100, and the like, and generates a command or signal for controlling an operation of the mobile terminal 100. For example, when the mobile terminal 100 is implemented as a slide-type mobile phone, the sensing unit 140 may sense whether the slide-type phone is opened or closed. In addition, the sensing unit 140 can detect whether the power supply unit 190 supplies power or whether the interface unit 170 is coupled with an external device. The sensing unit 140 may include a proximity sensor 141 as will be described below in connection with a touch screen.
The interface unit 170 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The identification module may store various information for authenticating a user using the mobile terminal 100 and may include a User Identity Module (UIM), a Subscriber Identity Module (SIM), a Universal Subscriber Identity Module (USIM), and the like. In addition, a device having an identification module (hereinafter, referred to as an "identification device") may take the form of a smart card, and thus, the identification device may be connected with the mobile terminal 100 via a port or other connection means. The interface unit 170 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal and the external device.
In addition, when the mobile terminal 100 is connected with an external cradle, the interface unit 170 may serve as a path through which power is supplied from the cradle to the mobile terminal 100 or may serve as a path through which various command signals input from the cradle are transmitted to the mobile terminal. Various command signals or power input from the cradle may be used as signals for recognizing whether the mobile terminal is accurately mounted on the cradle. The output unit 150 is configured to provide output signals (e.g., audio signals, video signals, alarm signals, vibration signals, etc.) in a visual, audio, and/or tactile manner. The output unit 150 may include a display unit 151, an audio output module 152, an alarm unit 153, and the like.
The display unit 151 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, and the like.
Meanwhile, when the display unit 151 and the touch pad are overlapped with each other in the form of a layer to form a touch screen, the display unit 151 may serve as an input device and an output device. The display unit 151 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. Depending on the particular desired implementation, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure as well as a touch input position and a touch input area.
The audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 into an audio signal and output as sound when the mobile terminal is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output module 152 may provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output module 152 may include a speaker, a buzzer, and the like.
The alarm unit 153 may provide an output to notify the mobile terminal 100 of the occurrence of an event. Typical events may include call reception, message reception, key signal input, touch input, and the like. In addition to audio or video output, the alarm unit 153 may provide output in different ways to notify the occurrence of an event. For example, the alarm unit 153 may provide an output in the form of vibration, and when a call, a message, or some other incoming communication (incomingmunication) is received, the alarm unit 153 may provide a tactile output (i.e., vibration) to inform the user thereof. By providing such a tactile output, the user can recognize the occurrence of various events even when the user's mobile phone is in the user's pocket. The alarm unit 153 may also provide an output notifying the occurrence of an event via the display unit 151 or the audio output module 152.
The memory 160 may store software programs and the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, and the like) that has been or will be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, and the multimedia module 181 may be constructed within the controller 180 or may be constructed separately from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
Up to this point, mobile terminals have been described in terms of their functionality. Hereinafter, a slide-type mobile terminal among various types of mobile terminals, such as a folder-type, bar-type, swing-type, slide-type mobile terminal, and the like, will be described as an example for the sake of brevity. Accordingly, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
The mobile terminal 100 as shown in fig. 1 may be configured to operate with communication systems such as wired and wireless communication systems and satellite-based communication systems that transmit data via frames or packets.
Based on the above mobile terminal hardware structure and communication system, the present invention provides various embodiments of the method.
As shown in fig. 2, a first embodiment of the present invention provides a method for connecting a mobile terminal and a server, including:
step S101, the mobile terminal identification information and the connection request are sent to the router.
Specifically, step S101 includes:
and sending the identification information of the mobile terminal and the connection request to the router so that the router can verify the identification information of the mobile terminal and the connection request, and feeding back the connection feedback information to the mobile terminal according to the verification result.
Wherein the mobile terminal identification information includes at least one of the following information: a device tag of the mobile terminal, signature information of the mobile terminal, system information of the mobile terminal, App (Application) state information of the mobile terminal, and the like.
The connection request includes information of at least one of: http Protocol over secure hypertext Transfer Protocol (http) connection request, http connection package parameter, http connection time parameter, http connection sign parameter, and the like.
Compared with the HTTP (Hyper Text Transfer Protocol), the HTTPS Protocol is a secure HTTP Protocol, which is a network Protocol that combines the SSL Protocol and the HTTP Protocol to construct encryption transmission and authentication.
And step S102, receiving the connection feedback information sent by the router, and judging whether to connect the server according to the connection feedback information.
Specifically, step S102 includes:
receiving connection feedback information sent by the router, and judging whether to connect the server according to the connection feedback information;
if the received connection feedback information sent by the router is connection permission and server connection information, sending a server connection request and the connection permission to the server according to the server connection information so that the server can verify the server connection request and the connection permission, and feeding back the server connection request feedback information to the mobile terminal according to a verification result;
and if the received connection feedback information sent by the router is not allowed to be connected, abandoning the establishment of the long connection with the server.
Wherein the server connection information includes: server identification information and server port information.
And 103, receiving the connection request feedback information sent by the server, and judging whether to establish long connection with the server according to the connection request feedback information.
Specifically, step S103 includes:
receiving connection request feedback information sent by a server, and judging whether long connection is established with the server according to the connection request feedback information;
if the connection request feedback information sent by the server is received and is the connection permission, long connection is established with the server;
and if the connection request feedback information sent by the server is received and is not allowed to be connected, abandoning the establishment of the long connection with the server.
As shown in fig. 3, a second embodiment of the present invention provides a method for connecting a mobile terminal and a server, including:
step S201, sending the mobile terminal identification information and the connection request to the router.
Specifically, step S201 includes:
and sending the identification information of the mobile terminal and the connection request to the router so that the router can verify the identification information of the mobile terminal and the connection request, and feeding back the connection feedback information to the mobile terminal according to the verification result.
Wherein the mobile terminal identification information includes at least one of the following information: a device tag of the mobile terminal, signature information of the mobile terminal, system information of the mobile terminal, App (Application) state information of the mobile terminal, and the like.
The connection request includes information of at least one of: http Protocol over secure hypertext Transfer Protocol (http) connection request, http connection package parameter, http connection time parameter, http connection sign parameter, and the like.
Compared with the HTTP (Hyper Text Transfer Protocol), the HTTPS Protocol is a secure HTTP Protocol, which is a network Protocol that combines the SSL Protocol and the HTTP Protocol to construct encryption transmission and authentication.
Step S202, receiving the connection feedback information sent by the router, and judging whether to connect the server according to the connection feedback information.
Specifically, step S202 includes:
receiving connection feedback information sent by the router, and judging whether to connect the server according to the connection feedback information;
if the received connection feedback information sent by the router is connection permission and server connection information, sending a server connection request and the connection permission to the server according to the server connection information so that the server can verify the server connection request and the connection permission, and feeding back the server connection request feedback information to the mobile terminal according to a verification result;
and if the received connection feedback information sent by the router is not allowed to be connected, abandoning the establishment of the long connection with the server.
Wherein the server connection information includes: server identification information and server port information.
Step 203, receiving the connection request feedback information sent by the server, and judging whether to establish long connection with the server according to the connection request feedback information.
Specifically, step S203 includes:
receiving connection request feedback information sent by a server, and judging whether long connection is established with the server according to the connection request feedback information;
if the connection request feedback information sent by the server is received and is the connection permission, long connection is established with the server;
and if the connection request feedback information sent by the server is received and is not allowed to be connected, abandoning the establishment of the long connection with the server.
Step S204, after the long connection is established with the server, the heartbeat message is sent to the server at set time intervals.
Step S205 determines whether to maintain connection with the server according to whether the heartbeat response message sent by the server can be received.
Specifically, step S205 includes:
if the heartbeat response message sent by the server is received within the set time length after the heartbeat message request is sent, judging that the long connection is kept with the server;
and if not, judging that the long connection with the server is disconnected.
And step S206, after the long connection is established with the server, the mobile terminal equipment information is sent to the server, so that the server can generate push information according to the mobile terminal equipment information.
The mobile terminal device information comprises at least one of the following information: the type of the mobile terminal, the system information of the mobile terminal, the service attribute of the mobile terminal, the account number of the mobile terminal and the like.
Step S207, judging whether the server receives the mobile terminal device information according to whether the feedback information of the user terminal device sent by the server can be received or not.
Specifically, step S207 includes:
judging whether the server receives the information of the mobile terminal equipment or not according to whether the feedback information of the user terminal equipment sent by the server can be received or not;
if the feedback information of the mobile terminal equipment sent by the server is received, judging that the information of the mobile terminal equipment is sent to the server;
and if not, judging that the server does not receive the mobile terminal equipment information, and sending the mobile terminal equipment information to the server again.
Step S208, after the long connection is established with the server, the push information sent by the server is received.
Step S209 is to transmit the reception confirmation information of the push information to the server according to the service quality of the received push information.
Specifically, step S209 includes:
sending receiving confirmation information of the push information to the server according to the service quality of the received push information;
if the service quality Qoc value of the push information is 0, not sending the receiving confirmation information of the push information to the server;
if the service quality Qoc value of the push information is 1, sending a receiving confirmation message of the push information to the server;
if the service quality Qoc value of the push information is 2, sending the receiving confirmation information of the push information to the server until the server feeds back the receiving confirmation information; the number of times of sending the reception confirmation information to the server does not exceed three times.
As shown in fig. 4, a third embodiment of the present invention provides a connection device for a mobile terminal and a server, including:
a first sending module 161, configured to send the mobile terminal identification information and the connection request to the router.
Specifically, the first sending module 161 is configured to:
and sending the identification information of the mobile terminal and the connection request to the router so that the router can verify the identification information of the mobile terminal and the connection request, and feeding back the connection feedback information to the mobile terminal according to the verification result.
Wherein the mobile terminal identification information includes at least one of the following information: a device tag of the mobile terminal, signature information of the mobile terminal, system information of the mobile terminal, App (Application) state information of the mobile terminal, and the like.
The connection request includes information of at least one of: http Protocol over secure hypertext Transfer Protocol (http) connection request, http connection package parameter, http connection time parameter, http connection sign parameter, and the like.
Compared with the HTTP (Hyper Text Transfer Protocol), the HTTPS Protocol is a secure HTTP Protocol, which is a network Protocol that combines the SSL Protocol and the HTTP Protocol to construct encryption transmission and authentication.
The second sending module 162 is configured to receive the connection feedback information sent by the router, and determine whether to connect to the server according to the connection feedback information.
Specifically, the second sending module 162 is configured to:
receiving connection feedback information sent by the router, and judging whether to connect the server according to the connection feedback information;
if the received connection feedback information sent by the router is connection permission and server connection information, sending a server connection request and the connection permission to the server according to the server connection information so that the server can verify the server connection request and the connection permission, and feeding back the server connection request feedback information to the mobile terminal according to a verification result;
and if the received connection feedback information sent by the router is not allowed to be connected, abandoning the establishment of the long connection with the server.
Wherein the server connection information includes: server identification information and server port information.
The connection module 163 is configured to receive the connection request feedback information sent by the server, and determine whether to establish a long connection with the server according to the connection request feedback information.
Specifically, the connection module 163 is configured to:
receiving connection request feedback information sent by a server, and judging whether long connection is established with the server according to the connection request feedback information;
if the connection request feedback information sent by the server is received and is the connection permission, long connection is established with the server;
and if the connection request feedback information sent by the server is received and is not allowed to be connected, abandoning the establishment of the long connection with the server.
As shown in fig. 5, a fourth embodiment of the present invention provides a connection device for a mobile terminal and a server, including:
a first sending module 161, configured to send the mobile terminal identification information and the connection request to the router.
Specifically, the first sending module 161 is configured to:
and sending the identification information of the mobile terminal and the connection request to the router so that the router can verify the identification information of the mobile terminal and the connection request, and feeding back the connection feedback information to the mobile terminal according to the verification result.
Wherein the mobile terminal identification information includes at least one of the following information: a device tag of the mobile terminal, signature information of the mobile terminal, system information of the mobile terminal, App (Application) state information of the mobile terminal, and the like.
The connection request includes information of at least one of: http Protocol over secure hypertext Transfer Protocol (http) connection request, http connection package parameter, http connection time parameter, http connection sign parameter, and the like.
Compared with the HTTP (Hyper Text Transfer Protocol), the HTTPS Protocol is a secure HTTP Protocol, which is a network Protocol that combines the SSL Protocol and the HTTP Protocol to construct encryption transmission and authentication.
The second sending module 162 is configured to receive the connection feedback information sent by the router, and determine whether to connect to the server according to the connection feedback information.
Specifically, the second sending module 162 is configured to:
receiving connection feedback information sent by the router, and judging whether to connect the server according to the connection feedback information;
if the received connection feedback information sent by the router is connection permission and server connection information, sending a server connection request and the connection permission to the server according to the server connection information so that the server can verify the server connection request and the connection permission, and feeding back the server connection request feedback information to the mobile terminal according to a verification result;
and if the received connection feedback information sent by the router is not allowed to be connected, abandoning the establishment of the long connection with the server.
Wherein the server connection information includes: server identification information and server port information.
The connection module 163 is configured to receive the connection request feedback information sent by the server, and determine whether to establish a long connection with the server according to the connection request feedback information.
Specifically, the connection module 163 is configured to:
receiving connection request feedback information sent by a server, and judging whether long connection is established with the server according to the connection request feedback information;
if the connection request feedback information sent by the server is received and is the connection permission, long connection is established with the server;
and if the connection request feedback information sent by the server is received and is not allowed to be connected, abandoning the establishment of the long connection with the server.
And a third sending module 164, configured to send a heartbeat message to the server at a set time interval after establishing a long connection with the server through the connection module 163.
The first determining module 165 is configured to determine whether to maintain connection with the server according to whether the heartbeat response message sent by the server can be received.
Specifically, the first determining module 165 is configured to:
if the heartbeat response message sent by the server is received within the set time length after the heartbeat message request is sent, judging that the long connection is kept with the server;
and if not, judging that the long connection with the server is disconnected.
A fourth sending module 166, configured to send the mobile terminal device information to the server after the long connection is established with the server through the connection module 163, so that the server generates the push information according to the mobile terminal device information.
The mobile terminal device information comprises at least one of the following information: the type of the mobile terminal, the system information of the mobile terminal, the service attribute of the mobile terminal, the account number of the mobile terminal and the like.
And the second judging module 167, configured to judge whether the server receives the information of the mobile terminal device according to whether the feedback information of the user terminal device sent by the server can be received.
Specifically, the second determining module 167 is configured to:
judging whether the server receives the information of the mobile terminal equipment or not according to whether the feedback information of the user terminal equipment sent by the server can be received or not;
if the feedback information of the mobile terminal equipment sent by the server is received, judging that the information of the mobile terminal equipment is sent to the server;
and if not, judging that the server does not receive the mobile terminal equipment information, and sending the mobile terminal equipment information to the server again.
The first receiving module 168 is configured to receive the push information sent by the server after the long connection is established with the server through the connection module 163.
A fifth sending module 169, configured to send, according to the quality of service of the received push information, the reception confirmation information of the push information to the server.
Specifically, the fifth sending module 169 is configured to:
sending receiving confirmation information of the push information to the server according to the service quality of the received push information;
if the service quality Qoc value of the push information is 0, not sending the receiving confirmation information of the push information to the server;
if the service quality Qoc value of the push information is 1, sending a receiving confirmation message of the push information to the server;
if the service quality Qoc value of the push information is 2, sending the receiving confirmation information of the push information to the server until the server feeds back the receiving confirmation information; the number of times of sending the reception confirmation information to the server does not exceed three times.
As shown in fig. 6, a fifth embodiment of the present invention provides a method for connecting a mobile terminal and a server, including:
step S501, receiving the mobile terminal identification information and the connection request sent by the mobile terminal, and verifying the mobile terminal identification information and the connection request.
Specifically, step S501 includes:
and receiving mobile terminal identification information and a connection request sent by the mobile terminal, and verifying the mobile terminal identification information and the connection request according to a preset verification rule.
Wherein the mobile terminal identification information includes at least one of the following information: a device tag of the mobile terminal, signature information of the mobile terminal, system information of the mobile terminal, App (Application) state information of the mobile terminal, and the like.
The connection request includes information of at least one of: http Protocol over secure hypertext Transfer Protocol (http) connection request, http connection package parameter, http connection time parameter, http connection sign parameter, and the like.
And step S502, sending the connection feedback information to the mobile terminal according to the verification result.
Specifically, step S502 includes:
sending connection feedback information to the mobile terminal according to the checking result;
if the verification result is that the server connection request passes the verification, sending connection feedback information comprising connection permission and server connection information to the mobile terminal so that the mobile terminal sends the server connection request to the server according to the connection permission and the server connection information;
and if the verification result is that the connection server does not pass the verification, sending connection feedback information comprising refusing to connect the server to the mobile terminal.
As shown in fig. 7, a sixth embodiment of the present invention provides a connection device for a mobile terminal and a server, including:
the verification module 10 is configured to receive mobile terminal identification information and a connection request sent by a mobile terminal, and verify the mobile terminal identification information and the connection request.
Specifically, the verification module 10 is configured to:
and receiving mobile terminal identification information and a connection request sent by the mobile terminal, and verifying the mobile terminal identification information and the connection request according to a preset verification rule.
Wherein the mobile terminal identification information includes at least one of the following information: a device tag of the mobile terminal, signature information of the mobile terminal, system information of the mobile terminal, App (Application) state information of the mobile terminal, and the like.
The connection request includes information of at least one of: http Protocol over secure hypertext Transfer Protocol (http) connection request, http connection package parameter, http connection time parameter, http connection sign parameter, and the like.
And the first feedback module 20 is configured to send the connection feedback information to the mobile terminal according to the verification result of the verification module 10.
Specifically, the first feedback module 20 is configured to:
sending connection feedback information to the mobile terminal according to the checking result of the checking module 10;
if the verification result is that the server connection request passes the verification, sending connection feedback information comprising connection permission and server connection information to the mobile terminal so that the mobile terminal sends the server connection request to the server according to the connection permission and the server connection information;
and if the verification result is that the connection server does not pass the verification, sending connection feedback information comprising refusing to connect the server to the mobile terminal.
As shown in fig. 8, a seventh embodiment of the present invention provides a method for connecting a mobile terminal and a server, including:
step S701, receiving a server connection request and a connection permission sent by the mobile terminal, and verifying the server connection request and the connection permission.
Specifically, step S701 includes:
and receiving a server connection request and connection permission sent by the mobile terminal, and verifying the server connection request and the connection permission according to a preset verification rule.
Step S702, according to the verification result, sending server connection request feedback information to the mobile terminal.
Specifically, step S702 includes:
sending server connection request feedback information to the mobile terminal according to the verification result;
if the verification result is that the connection is passed, sending server connection request feedback information allowing the connection to the mobile terminal so that the mobile terminal can establish long connection with the server;
and if the verification result is that the server connection request feedback information is not passed, sending the server connection request feedback information which does not allow the connection to the mobile terminal.
As shown in fig. 9, an eighth embodiment of the present invention provides a method for connecting a mobile terminal and a server, including:
step S801, receiving the server connection request and the connection permission sent by the mobile terminal, and verifying the server connection request and the connection permission.
Specifically, step S801 includes:
and receiving a server connection request and connection permission sent by the mobile terminal, and verifying the server connection request and the connection permission according to a preset verification rule.
And step S802, sending server connection request feedback information to the mobile terminal according to the verification result.
Specifically, step S802 includes:
sending server connection request feedback information to the mobile terminal according to the verification result;
if the verification result is that the connection is passed, sending server connection request feedback information allowing the connection to the mobile terminal so that the mobile terminal can establish long connection with the server;
and if the verification result is that the server connection request feedback information is not passed, sending the server connection request feedback information which does not allow the connection to the mobile terminal.
Step S803, based on the received heartbeat messages sent by the mobile terminal at every set time interval, feeding back a heartbeat response message corresponding to each heartbeat message to the mobile terminal.
Step S804, generating mobile terminal device feedback information based on the received mobile terminal device information sent by the mobile terminal, and sending the mobile terminal device feedback information to the mobile terminal.
Step S805, generating push information with different service qualities based on the received mobile terminal device information sent by the mobile terminal.
Step S806, sending the push information with different service quality to the mobile terminal.
Wherein, the push message includes but is not limited to: push messages with quality of service Qoc ═ 0, push messages with quality of service Qoc ═ 1, push messages with quality of service Qoc ═ 2, and the like.
The push message with the service quality Qoc being 0 does not require the received mobile terminal to send the receiving confirmation information of the push message to the server;
the mobile terminal which needs to receive the push message with the quality of service Qoc being 1 sends a receiving confirmation message of the push message to the server;
the push message with the service quality Qoc being 2 requires the received mobile terminal to send the receiving confirmation information of the push message to the server until the server feeds back the receiving confirmation information; the number of times that the mobile terminal sends the reception confirmation information to the server is not more than three.
Step S807, receiving the receiving confirmation information of the push information with different service quality sent by the mobile terminal, and storing the receiving confirmation information.
As shown in fig. 10, a ninth embodiment of the present invention provides a connection device for a mobile terminal and a server, including:
and the verification module 30 is configured to receive the server connection request and the connection permission sent by the mobile terminal, and verify the server connection request and the connection permission.
Specifically, the verification module 30 is configured to:
and receiving a server connection request and connection permission sent by the mobile terminal, and verifying the server connection request and the connection permission according to a preset verification rule.
And a second feedback module 40, configured to send server connection request feedback information to the mobile terminal according to the verification result of the verification module 30.
Specifically, the second feedback module 40 is configured to:
sending server connection request feedback information to the mobile terminal according to the verification result of the verification module 30;
if the verification result is that the connection is passed, sending server connection request feedback information allowing the connection to the mobile terminal so that the mobile terminal can establish long connection with the server;
and if the verification result is that the server connection request feedback information is not passed, sending the server connection request feedback information which does not allow the connection to the mobile terminal.
As shown in fig. 11, a tenth embodiment of the present invention provides a connection apparatus for a mobile terminal and a server, including:
and the verification module 30 is configured to receive the server connection request and the connection permission sent by the mobile terminal, and verify the server connection request and the connection permission.
Specifically, the verification module 30 is configured to:
and receiving a server connection request and connection permission sent by the mobile terminal, and verifying the server connection request and the connection permission according to a preset verification rule.
And a second feedback module 40, configured to send server connection request feedback information to the mobile terminal according to the verification result of the verification module 30.
Specifically, the second feedback module 40 is configured to:
sending server connection request feedback information to the mobile terminal according to the verification result of the verification module 30;
if the verification result is that the connection is passed, sending server connection request feedback information allowing the connection to the mobile terminal so that the mobile terminal can establish long connection with the server;
and if the verification result is that the server connection request feedback information is not passed, sending the server connection request feedback information which does not allow the connection to the mobile terminal.
And a third feedback module 50, configured to feedback, based on the received heartbeat messages sent by the mobile terminal at set time intervals, a heartbeat response message corresponding to each heartbeat message to the mobile terminal.
And a fourth feedback module 60, configured to generate mobile terminal device feedback information based on the received mobile terminal device information sent by the mobile terminal, and send the mobile terminal device feedback information to the mobile terminal.
A generating module 70, configured to generate push information with different service qualities based on the received mobile terminal device information sent by the mobile terminal.
A sending module 80, configured to send push information with different service qualities to the mobile terminal.
Wherein, the push message includes but is not limited to: push messages with quality of service Qoc ═ 0, push messages with quality of service Qoc ═ 1, push messages with quality of service Qoc ═ 2, and the like.
The push message with the service quality Qoc being 0 does not require the received mobile terminal to send the receiving confirmation information of the push message to the server;
the mobile terminal which needs to receive the push message with the quality of service Qoc being 1 sends a receiving confirmation message of the push message to the server;
the push message with the service quality Qoc being 2 requires the received mobile terminal to send the receiving confirmation information of the push message to the server until the server feeds back the receiving confirmation information; the number of times that the mobile terminal sends the reception confirmation information to the server is not more than three.
And a sending confirmation module 90, configured to receive the receiving confirmation information of the push information with different service qualities sent by the mobile terminal, and store the receiving confirmation information.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A connecting device of a mobile terminal and a server is arranged on the mobile terminal, and is characterized by comprising:
the first sending module is used for sending the identification information of the mobile terminal and the connection request to a router so that the router can verify the identification information of the mobile terminal and the connection request, and feeding back connection feedback information to the mobile terminal according to a verification result;
a second sending module, configured to send a server connection request and a server connection permission to a server according to the server connection information if the received connection feedback information sent by the router is connection permission and server connection information, so that the server verifies the server connection request and the connection permission, and feeds back server connection request feedback information to the mobile terminal according to a verification result;
and the connection module is used for establishing long connection with the server if the connection request feedback information sent by the server is received as the connection permission.
2. The apparatus of claim 1, further comprising:
the fourth sending module is used for sending the equipment information of the mobile terminal to the server after the long connection is established with the server through the connection module so that the server can generate push information according to the equipment information of the mobile terminal;
the first receiving module is used for receiving the push information sent by the server after the fourth sending module sends the information of the mobile terminal equipment to the server;
a fifth sending module, configured to send a receiving confirmation message of the push message to the server once if the service quality Qoc value of the push message is 1;
if the service quality Qoc value of the push information is 2, sending a receiving confirmation message of the push information to the server until the server feeds back and receives the receiving confirmation message; the number of times of sending the reception confirmation information to the server is not more than three.
3. A method for connecting a mobile terminal and a server is applied to the mobile terminal, and is characterized in that the method comprises the following steps:
sending the identification information of the mobile terminal and the connection request to a router so that the router can verify the identification information of the mobile terminal and the connection request, and feeding back connection feedback information to the mobile terminal according to a verification result;
if the received connection feedback information sent by the router is connection permission and server connection information, sending a server connection request and the connection permission to a server according to the server connection information so that the server can verify the server connection request and the connection permission, and feeding back server connection request feedback information to the mobile terminal according to a verification result;
and if the connection request feedback information sent by the server is received as the permission connection, establishing long connection with the server.
4. The method of claim 3, further comprising:
after long connection is established with the server, the mobile terminal equipment information is sent to the server, so that the server can generate push information according to the mobile terminal equipment information;
after the mobile terminal device information is sent to the server, push information sent by the server is received;
if the service quality Qoc value of the push information is 1, sending a receiving confirmation message of the push information to the server;
if the service quality Qoc value of the push information is 2, sending a receiving confirmation message of the push information to the server until the server feeds back and receives the receiving confirmation message; the number of times of sending the reception confirmation information to the server is not more than three.
5. A connecting device of a mobile terminal and a server is arranged on a router, and is characterized by comprising:
the verification module is used for receiving the mobile terminal identification information and the connection request sent by the mobile terminal and verifying the mobile terminal identification information and the connection request;
and the first feedback module is used for sending connection feedback information comprising connection permission and server connection information to the mobile terminal if the verification result of the verification module is that the verification is passed, so that the mobile terminal sends a server connection application to the server according to the connection permission and the server connection information.
6. A method for connecting a mobile terminal and a server is applied to a router, and is characterized in that the method comprises the following steps:
receiving mobile terminal identification information and a connection request sent by a mobile terminal, and verifying the mobile terminal identification information and the connection request;
and if the verification result is that the server connection request passes the verification, sending connection feedback information comprising connection permission and server connection information to the mobile terminal so that the mobile terminal sends the server connection request to the server according to the connection permission and the server connection information.
7. A connecting device of a mobile terminal and a server is arranged on the server, and is characterized by comprising:
the verification module is used for receiving a server connection request and connection permission sent by a mobile terminal and verifying the server connection request and the connection permission, wherein the connection permission is obtained according to the following modes: the router receives mobile terminal identification information and a router connection request sent by a mobile terminal, and verifies the mobile terminal identification information and the router connection request; if the verification result is that the verification is passed, sending connection feedback information comprising connection permission and server connection information to the mobile terminal;
and the second feedback module is used for sending server connection request feedback information allowing connection to the mobile terminal if the verification result of the verification module is verification passing so as to establish long connection between the mobile terminal and the server.
8. The apparatus of claim 7, further comprising:
the generation module is used for generating push information with different service qualities based on the received mobile terminal equipment information sent by the mobile terminal;
the sending module is used for sending the push information with different service qualities generated by the generating module to the mobile terminal;
and the sending confirmation module is used for receiving the receiving confirmation information of the push information with different service qualities sent by the mobile terminal and storing the receiving confirmation information.
9. A method for connecting a mobile terminal and a server is applied to the server, and is characterized in that the method comprises the following steps:
receiving a server connection request and connection permission sent by a mobile terminal, and verifying the server connection request and the connection permission, wherein the connection permission is obtained according to the following modes: the router receives mobile terminal identification information and a router connection request sent by a mobile terminal, and verifies the mobile terminal identification information and the router connection request; if the verification result is that the verification is passed, sending connection feedback information comprising connection permission and server connection information to the mobile terminal;
and if the verification result is that the server passes the verification, sending server connection request feedback information allowing connection to the mobile terminal so that the mobile terminal can establish long connection with the server.
10. The method of claim 9, further comprising:
generating push information with different service qualities based on the received mobile terminal equipment information sent by the mobile terminal;
sending the push information of different service qualities to the mobile terminal;
receiving the receiving confirmation information of the push information with different service quality sent by the mobile terminal, and storing the receiving confirmation information.
CN201610970733.7A 2016-10-28 2016-10-28 Device and method for connecting mobile terminal and server Active CN106358194B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610970733.7A CN106358194B (en) 2016-10-28 2016-10-28 Device and method for connecting mobile terminal and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610970733.7A CN106358194B (en) 2016-10-28 2016-10-28 Device and method for connecting mobile terminal and server

Publications (2)

Publication Number Publication Date
CN106358194A CN106358194A (en) 2017-01-25
CN106358194B true CN106358194B (en) 2020-03-31

Family

ID=57864702

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610970733.7A Active CN106358194B (en) 2016-10-28 2016-10-28 Device and method for connecting mobile terminal and server

Country Status (1)

Country Link
CN (1) CN106358194B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621761A (en) * 2009-08-04 2010-01-06 中国联合网络通信集团有限公司 Service propelling and receiving method, application server, user terminal and system
WO2014035194A1 (en) * 2012-08-30 2014-03-06 Samsung Electronics Co., Ltd. Push message service system and method
CN104104654A (en) * 2013-04-07 2014-10-15 阿里巴巴集团控股有限公司 Method and device for setting Wifi access authority and Wifi authentication
CN105337935A (en) * 2014-07-09 2016-02-17 阿里巴巴集团控股有限公司 Method of establishing long connection of client and server and apparatus thereof
CN105530612A (en) * 2016-01-26 2016-04-27 山东康威通信技术股份有限公司 WIFI authentication method using mobile terminal to access outdoor device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621761A (en) * 2009-08-04 2010-01-06 中国联合网络通信集团有限公司 Service propelling and receiving method, application server, user terminal and system
WO2014035194A1 (en) * 2012-08-30 2014-03-06 Samsung Electronics Co., Ltd. Push message service system and method
CN104104654A (en) * 2013-04-07 2014-10-15 阿里巴巴集团控股有限公司 Method and device for setting Wifi access authority and Wifi authentication
CN105337935A (en) * 2014-07-09 2016-02-17 阿里巴巴集团控股有限公司 Method of establishing long connection of client and server and apparatus thereof
CN105530612A (en) * 2016-01-26 2016-04-27 山东康威通信技术股份有限公司 WIFI authentication method using mobile terminal to access outdoor device and system

Also Published As

Publication number Publication date
CN106358194A (en) 2017-01-25

Similar Documents

Publication Publication Date Title
CN106168891B (en) Screen content switching device, double-screen terminal and screen content switching method
CN106789575B (en) Information sending device and method
CN106778176B (en) Information processing method and mobile terminal
CN106527799B (en) Method and device for preventing key from being misoperated
KR20090084634A (en) Method and apparatus for transferring data
CN105898703B (en) Management method and device for identified pseudo base station
CN106484279B (en) Method for identifying and processing abnormal operation of terminal and terminal
KR20110133713A (en) Mobile terminal and method for controlling the same
CN105554323B (en) Call system, device and method
CN106453863B (en) Method and system for controlling terminal and earphone
CN106484534B (en) Control method and control device for displayed mobile terminal
CN105282155B (en) Authority control method, device and system for interaction between terminals
CN106846562B (en) Verification device and method for sending verification information
CN106534596B (en) Method and system for filtering anti-harassment calls
CN105307156B (en) Device and method for requesting downloading of application
CN106358194B (en) Device and method for connecting mobile terminal and server
CN106713757B (en) Shooting control method and mobile terminal
CN106453854B (en) Application sharing device and method
CN106302943B (en) Unlocking method and unlocking device of mobile terminal
CN106778126B (en) Password input method and mobile terminal
CN106911896B (en) Image processing device and method
CN106791413B (en) Image acquisition device and method
CN105101188B (en) Method, system and device for preventing information leakage
CN106790894B (en) Side key structure and mobile terminal with same
CN106598463B (en) Mobile terminal and unlocking method thereof

Legal Events

Date Code Title Description
C06 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