CN105657708B - The connection method of mobile terminal and server-side and device - Google Patents

The connection method of mobile terminal and server-side and device Download PDF

Info

Publication number
CN105657708B
CN105657708B CN201610053448.9A CN201610053448A CN105657708B CN 105657708 B CN105657708 B CN 105657708B CN 201610053448 A CN201610053448 A CN 201610053448A CN 105657708 B CN105657708 B CN 105657708B
Authority
CN
China
Prior art keywords
server
mobile terminal
side
ip address
connection
Prior art date
Application number
CN201610053448.9A
Other languages
Chinese (zh)
Other versions
CN105657708A (en
Inventor
何恩桥
田楠
Original Assignee
广州视睿电子科技有限公司
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 广州视睿电子科技有限公司 filed Critical 广州视睿电子科技有限公司
Priority to CN201610053448.9A priority Critical patent/CN105657708B/en
Publication of CN105657708A publication Critical patent/CN105657708A/en
Application granted granted Critical
Publication of CN105657708B publication Critical patent/CN105657708B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements, e.g. access security or fraud detection; Authentication, e.g. verifying user identity or authorisation; Protecting privacy or anonymity ; Protecting confidentiality; Key management; Integrity; Mobile application security; Using identity modules; Secure pairing of devices; Context aware security; Lawful interception
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Abstract

The present invention relates to the connection method of a kind of mobile terminal and server-side and devices.A kind of connection method of mobile terminal and server-side, comprising steps of obtaining the connection network information of server-side according to the display icon of server-side, the connection network information includes each IP address;It successively detects each IP address and whether is in same network segment with the network that mobile terminal is currently connect;If so, the mobile terminal is connect with the IP address of same network segment.The connection method of another mobile terminal and server-side, comprising steps of obtaining the connection network information of server-side, the connection network information includes each IP address;The display icon of server-side is generated according to the connection network information, the display icon is used to provide each IP address of server-side to mobile terminal.The present invention enormously simplifies operating procedure required when mobile terminal connection server-side, keeps the process of mobile terminal connection server-side simpler, convenient.

Description

The connection method of mobile terminal and server-side and device

Technical field

The present invention relates to fields of communication technology, connection method, movement more particularly to a kind of mobile terminal and server-side The attachment device of terminal and server-side.

Background technique

When needing to connect mobile terminal and server-side carries out data transmission, traditional technical solution is general are as follows: search office Server-side in the net of domain finds IP (Internet Protocol, the agreement interconnected between the network) address at corresponding with service end, Then the corresponding IP address of input server-side is attached.The program has the following deficiencies: that mobile terminal connects not with server-side Convenient, troublesome in poeration, user needs to scan for the operations such as server-side, the corresponding IP address of input server-side;User needs to know The some basic network concepts in road just can be carried out the connection of mobile terminal and server-side, increase the learning cost of user.

Summary of the invention

Based on this, it is necessary in view of the above-mentioned problems, providing connection method and the device of a kind of mobile terminal and server-side, make The connection of mobile terminal and server-side is simple and fast, and reduces the learning cost of user.

In order to achieve the above object, the technical solution adopted by the present invention is as follows:

A kind of connection method of mobile terminal and server-side, comprising steps of

The connection network information of server-side is obtained according to the display icon of server-side, the connection network information includes each IP Address;

It successively detects each IP address and whether is in same network segment with the network that mobile terminal is currently connect;

If so, the mobile terminal is connect with the IP address of same network segment.

The connection method of above-mentioned mobile terminal and server-side, the display icon of server-side include each IP address of server-side, Show that icon can be two dimensional code or bar code etc., mobile terminal only needs to be scanned the operations such as two dimensional code or bar code i.e. Available each IP address to server-side, is then attached according to the IP address of acquisition.The present invention enormously simplifies movement Terminal connects operating procedure required when server-side, and user no longer needs to scan for server-side, the behaviour such as input server-side address Make, keeps the process of mobile terminal connection server-side simpler, convenient;The entire attended operation of mobile terminal and server-side is complete Automation, user require no knowledge about the concept of the complexity such as IP address, reduce the learning cost of user.

The connection network information further includes the WIFI hot spot that server-side currently connects in one of the embodiments, SSID and password;After the mobile terminal is connect with the IP address of same network segment, if further comprising the steps of: the mobile terminal It is all connected with failure with each IP address, whether identical as the WIFI hot spot detects the network that the mobile terminal currently connects;If It is not identical, according to the SSID and password by the mobile terminal by the network switching that currently connects to the WIFI hot spot;It will The WIFI hot spot network that currently connects new as the mobile terminal, return successively detect each IP address and mobile terminal The step of whether network currently connected is in same network segment.If not finding correspondence in the connection of mobile terminal and server-side Server-side, the hot spot of server-side connection is to look in traditional technology, mobile terminal is then connected to the hot spot manually, then weigh The step of searching for the server-side in local area network again, the present invention, can be automatic when mobile terminal and each IP address are all connected with unsuccessfully Mobile terminal is connected to the hot spot of server-side connection, user does not need the operation for switching over WIFI network manually, further Improve the convenience that mobile terminal is connected with server-side.

The step of connection network information of server-side is obtained according to the display icon of server-side in one of the embodiments, It include: that encryption data is obtained according to the display icon of server-side;The encryption data is decrypted, ciphertext data is obtained;It will The ciphertext data is parsed according to preset format, obtains the connection network information of server-side.

A kind of attachment device of mobile terminal and server-side, comprising:

Network information determining module is connected, obtains the connection network letter of server-side for the display icon according to server-side Breath, the connection network information includes each IP address;

Whether IP address detection module, the network for successively detecting each IP address with mobile terminal is currently connect are in same One network segment;

Link block, when being in same network segment with the network that mobile terminal is currently connect for IP address, by the movement Terminal is connect with the IP address of same network segment.

The attachment device of above-mentioned mobile terminal and server-side, the display icon of server-side include each IP address of server-side, Show that icon can be two dimensional code or bar code etc., mobile terminal only needs to be scanned the operations such as two dimensional code or bar code i.e. Available each IP address to server-side, is then attached according to the IP address of acquisition.The present invention enormously simplifies movement Terminal connects operating procedure required when server-side, and user no longer needs to scan for server-side, the behaviour such as input server-side address Make, keeps the process of mobile terminal connection server-side simpler, convenient;The entire attended operation of mobile terminal and server-side is complete Automation, user require no knowledge about the concept of the complexity such as IP address, reduce the learning cost of user.

The connection network information further includes the WIFI hot spot that server-side currently connects in one of the embodiments, SSID and password;The device further includes the hot spot switching module being connected with the link block, and the hot spot switching module includes: Hot spots detection unit, for detecting the mobile terminal and currently connecting when the mobile terminal and each IP address are all connected with unsuccessfully Whether the network connect is identical as the WIFI hot spot;Hot spot switch unit, the network for currently being connected in the mobile terminal When not identical as the WIFI hot spot, according to the SSID and password by the mobile terminal by the network switching that currently connects to The WIFI hot spot;New connection network determination unit, for currently connecting using the WIFI hot spot as the mobile terminal is new The network connect.If not finding corresponding server-side in the connection of mobile terminal and server-side, clothes are to look in traditional technology Mobile terminal, is then connected to the hot spot manually by the hot spot of business end connection, repeats the step of the server-side in search local area network Suddenly, mobile terminal can be connected to server-side connection automatically when mobile terminal and each IP address are all connected with unsuccessfully by the present invention Hot spot, user do not need the operation for switching over WIFI network manually, further improves mobile terminal and connect with server-side Convenience.

The connection network information determining module includes: encryption data acquiring unit in one of the embodiments, is used for Encryption data is obtained according to the display icon of server-side;Ciphertext data acquiring unit, for the encryption data to be decrypted, Obtain ciphertext data;Connection network information acquiring unit is obtained for parsing the ciphertext data according to preset format The connection network information of server-side.

A kind of connection method of mobile terminal and server-side, comprising steps of

The connection network information of server-side is obtained, the connection network information includes each IP address;

The display icon of server-side is generated according to the connection network information, the display icon to mobile terminal for mentioning For each IP address of server-side.

The connection method of above-mentioned mobile terminal and server-side shows according to generations such as each IP address of the server-side of acquisition and schemes Mark, display icon can be two dimensional code or bar code etc., then mobile terminal only needs the display figure by scan service end The operation such as mark, it can get each IP address of server-side.The present invention enormously simplifies mobile terminal connection server-side when institute The operating procedure needed, user no longer need to scan for server-side, and the operation such as input server-side address makes mobile terminal connection clothes The process at business end is simpler, convenient;The entire attended operation of mobile terminal and server-side is fully automated, and user does not need to know The concept of the complexity such as road IP address, reduces the learning cost of user.

The connection network information further includes the WIFI hot spot that server-side currently connects in one of the embodiments, SSID and password;It is described display icon be also used to mobile terminal provide mobile terminal be switched to the WIFI hot spot SSID and Password.Show that icon includes the SSID and password of the WIFI hot spot of server-side connection, then mobile terminal passes through scanning display figure Target operation can get the WIFI hot spot information of server-side connection, not need the hot spot etc. for check server-side connection Operation, further improves the convenience that mobile terminal is connected with server-side.

A kind of attachment device of mobile terminal and server-side, comprising:

It connects the network information and obtains module, for obtaining the connection network information of server-side, the connection network information packet Include each IP address;

Show icon generation module, it is described aobvious for generating the display icon of server-side according to the connection network information Diagram mark is used to provide each IP address of server-side to mobile terminal.

The attachment device of above-mentioned mobile terminal and server-side shows according to generations such as each IP address of the server-side of acquisition and schemes Mark, display icon can be two dimensional code or bar code etc., then mobile terminal only needs the display figure by scan service end The operation such as mark, it can get each IP address of server-side.The present invention enormously simplifies mobile terminal connection server-side when institute The operating procedure needed, user no longer need to scan for server-side, and the operation such as input server-side address makes mobile terminal connection clothes The process at business end is simpler, convenient;The entire attended operation of mobile terminal and server-side is fully automated, and user does not need to know The concept of the complexity such as road IP address, reduces the learning cost of user.

The connection network information further includes the WIFI hot spot that server-side currently connects in one of the embodiments, SSID and password;It is described display icon be also used to mobile terminal provide mobile terminal be switched to the WIFI hot spot SSID and Password.Show that icon includes the SSID and password of the WIFI hot spot of server-side connection, then mobile terminal passes through scanning display figure Target operation can get the WIFI hot spot information of server-side connection, not need the hot spot etc. for check server-side connection Operation, further improves the convenience that mobile terminal is connected with server-side.

Detailed description of the invention

Fig. 1 is the flow diagram of the connection method embodiment of a kind of mobile terminal of the present invention and server-side;

Fig. 2 is the structural schematic diagram of the attachment device embodiment one of a kind of mobile terminal of the present invention and server-side;

Fig. 3 is the structural schematic diagram of present invention connection network information determining module embodiment;

Fig. 4 is the structural schematic diagram of the attachment device embodiment two of a kind of mobile terminal of the present invention and server-side;

Fig. 5 is the structural schematic diagram of link block embodiment of the present invention;

Fig. 6 is the flow diagram of the connection method embodiment of another mobile terminal of the present invention and server-side;

Fig. 7 is the structural schematic diagram of the attachment device embodiment of another mobile terminal of the present invention and server-side.

Specific embodiment

It is with reference to the accompanying drawing and preferably real for the effect for further illustrating technological means adopted by the present invention and acquirement Example is applied, clear and complete description is carried out to technical solution of the present invention from two angles of mobile terminal and server-side.

First from the angle of mobile terminal, the solution of the present invention is discussed in detail.

As shown in Figure 1, the connection method of a kind of mobile terminal and server-side, comprising steps of

S110, the connection network information of server-side, the connection network information packet are obtained according to the display icon of server-side Include each IP address;

S120, it successively detects each IP address and whether is in same network segment with the network that mobile terminal is currently connect;

S130, if so, the mobile terminal is connect with the IP address of same network segment.

The present invention enormously simplifies operating procedure required when mobile terminal connection server-side, and user no longer searches Rope server-side, the operation such as input server-side address keep the process of mobile terminal connection server-side simpler, convenient;It is mobile whole The entire attended operation of end and server-side is fully automated, and user requires no knowledge about the concept of the complexity such as IP address, reduces use The learning cost at family.

Before being attached server-side and mobile terminal, mobile terminal and server-side are already connected to certain in local area network One network.The network that mobile terminal and server-side have connected can be same network segment, may not be same network segment.Show icon Each IP address including server-side, IP address can be the IP address of all network card interfaces of server-side, are also possible to server-side and work as Each IP address of WIFI (WIreless-Fidelity, Wireless Fidelity) hot spot of preceding connection, can also be all network interface cards of server-side Each IP address for the WIFI hot spot that the IP address and server-side of interface currently connect.

According to there are many kinds of the modes of the connection network information of the display icon acquisition server-side of server-side, for example, one In a embodiment, step S110 may include:

Encryption data is obtained according to the display icon of server-side;

The encryption data is decrypted, ciphertext data is obtained;

The ciphertext data is parsed according to preset format, obtains the connection network information of server-side.

The display icon of server-side can be two dimensional code, bar code etc..Mobile terminal can show icon by scanning Etc. modes obtain encryption data.Data are encrypted, primarily to the safety of protection data, data can be according to existing skill Existing algorithm is encrypted in art, such as Base64.Data can also be without encryption, then mobile terminal is to display icon It is scanned, is directly obtained ciphertext data.Algorithm identical with Encryption Algorithm is used when encryption data is decrypted.Decryption Data are the data previously encapsulated according to user-defined format, after obtaining ciphertext data, by ciphertext data according to previous customized lattice Formula is parsed, and the connection network information of server-side is obtained.Each IP address that the connection network information includes can be with shapes such as lists Formula is shown.

After obtaining each IP address, in order to save the time that mobile terminal is connect with server-side, mobile terminal judges respectively one by one Whether the IP in IP address is in same network segment with the network that mobile terminal is currently connect.If it is, attempting movement eventually End is connect with the IP address, is ceased attempt to if successful connection, mobile terminal and server-side enter connection status, connection procedure Terminate, otherwise continues to judge next IP address.

In the connection of mobile terminal and server-side, if not finding corresponding server-side, clothes are to look in traditional technology Mobile terminal, is then connected to the hot spot manually by the hot spot of business end connection, repeats the step of the server-side in search local area network Suddenly.The present invention can automatically connect mobile terminal to further improve the convenience that mobile terminal is connected with server-side The hot spot connected to server-side.So in one embodiment, the connection network information can also include that server-side currently connects The SSID (Service Set Identifier, service set) and password of the WIFI hot spot connect.By the mobile terminal with Same network segment IP address connection after, can with comprising steps of

If the mobile terminal and each IP address are all connected with failure, whether network that the mobile terminal currently connects is detected It is identical as the WIFI hot spot;

If not identical, according to the SSID and password by the mobile terminal by the network switching that currently connects to described WIFI hot spot;

Using the WIFI hot spot network that currently connects new as the mobile terminal, return successively detects each IP address The step of whether being in same network segment with the network that mobile terminal is currently connect.

If the network that mobile terminal currently connects is identical as the WIFI hot spot that server-side currently connects, show that connection is lost The prompting message lost, connection terminate.If the WIFI hot spot that the network that mobile terminal currently connects and server-side are currently connect is not It is identical, then automatically the network connection of mobile terminal into the WIFI hot spot, the IP address and shifting in each IP address are detected again Whether the WIFI hot spot that dynamic terminal currently connects is in same network segment, if it is, attempting to be attached.

Based on the same inventive concept, the present invention also provides the attachment device of a kind of mobile terminal and server-side, below with reference to Attached drawing is described in detail the specific embodiment of attachment device of the present invention.

As shown in Fig. 2, the attachment device of a kind of mobile terminal and server-side, comprising:

Network information determining module 110 is connected, for obtaining the connection network of server-side according to the display icon of server-side Information, the connection network information includes each IP address;

Whether IP address detection module 120, the network for successively detecting each IP address with mobile terminal is currently connect are located In same network segment;

Link block 130, when being in same network segment with the network that mobile terminal is currently connect for IP address, by the shifting Dynamic terminal is connect with the IP address of same network segment.

The present invention enormously simplifies operating procedure required when mobile terminal connection server-side, and user no longer searches Rope server-side, the operation such as input server-side address keep the process of mobile terminal connection server-side simpler, convenient;It is mobile whole The entire attended operation of end and server-side is fully automated, and user requires no knowledge about the concept of the complexity such as IP address, reduces use The learning cost at family.

Before being attached server-side and mobile terminal, mobile terminal and server-side are already connected to certain in local area network One network.The network that mobile terminal and server-side have connected can be same network segment, may not be same network segment.Show icon Each IP address including server-side, IP address can be the IP address of all network card interfaces of server-side, are also possible to server-side and work as Each IP address of the WIFI hot spot of preceding connection can also be that the IP address of all network card interfaces of server-side and server-side currently connect WIFI hot spot each IP address.

It connects network information determining module 110 and shows that icon obtains the connection network information of server-side according to server-side There are many kinds of modes, for example, in one embodiment, as shown in figure 3, the connection network information determining module 110 can wrap It includes:

Encryption data acquiring unit 1101, for obtaining encryption data according to the display icon of server-side;

Ciphertext data acquiring unit 1102 obtains ciphertext data for the encryption data to be decrypted;

Connection network information acquiring unit 1103 is obtained for parsing the ciphertext data according to preset format The connection network information of server-side.

The display icon of server-side can be two dimensional code, bar code etc..Encryption data acquiring unit 1101 can pass through The modes such as scanning display icon obtain encryption data.Data are encrypted, primarily to the safety of protection data, data can To be encrypted according to existing algorithm in the prior art, such as Base64.Data can also be without encryption, then mobile whole End is scanned display icon, is directly obtained ciphertext data.Ciphertext data acquiring unit 1102 solves encryption data Algorithm identical with Encryption Algorithm is used when close.Ciphertext data is the data previously encapsulated according to user-defined format, ciphertext data After acquiring unit 1102 obtains ciphertext data, connection network information acquiring unit 1103 is by ciphertext data according to previous customized lattice Formula is parsed, and the connection network information of server-side is obtained.Each IP address that the connection network information includes can be with shapes such as lists Formula is shown.

After connection network information determining module 110 obtains each IP address, it is connect with server-side in order to save mobile terminal Time, IP address detection module 120 judge whether the IP in each IP address is in the network that mobile terminal is currently connect one by one In same network segment.If so, link block 130 is then attempted for mobile terminal to connect with the IP address, stop if successful connection It only attempts, mobile terminal and server-side enter connection status, and connection procedure terminates, and otherwise IP address detection module 120 continues to sentence Break next IP address.

The present invention, can be automatically by mobile terminal in order to further improve the convenience that mobile terminal is connected with server-side It is connected to the hot spot of server-side connection.So in one embodiment, the connection network information can also be worked as including server-side The SSID and password of the WIFI hot spot of preceding connection.As shown in figure 4, apparatus of the present invention can also include and the link block 130 Connected hot spot switching module 140.As shown in figure 5, the hot spot switching module 140 may include:

Hot spots detection unit 1401, for detecting the shifting when the mobile terminal and each IP address are all connected with unsuccessfully Whether the network that dynamic terminal currently connects is identical as the WIFI hot spot;

Hot spot switch unit 1402, the network and the WIFI hot spot for currently connecting in the mobile terminal be not identical When, according to the SSID and password by the mobile terminal by the network switching that currently connects to the WIFI hot spot;

New connection network determination unit 1403, for the current connection that the WIFI hot spot is new as the mobile terminal Network.Whether the IP address detection module 120 successively detects network that each IP address and mobile terminal are currently connect again In same network segment.

If the network that mobile terminal currently connects is identical as the WIFI hot spot that server-side currently connects, show that connection is lost The prompting message lost, connection terminate.

Below from the angle of server-side, in conjunction with attached drawing to the connection side of another mobile terminal and server-side of the invention Method and the specific embodiment of device are described in detail.

As shown in fig. 6, the connection method of a kind of mobile terminal and server-side, comprising steps of

S210, the connection network information for obtaining server-side, the connection network information includes each IP address;

S220, the display icon that server-side is generated according to the connection network information, the display icon are used for movement Each IP address of terminal offer server-side.

The present invention enormously simplifies operating procedure required when mobile terminal connection server-side, and user no longer searches Rope server-side, the operation such as input server-side address keep the process of mobile terminal connection server-side simpler, convenient;It is mobile whole The entire attended operation of end and server-side is fully automated, and user requires no knowledge about the concept of the complexity such as IP address, reduces use The learning cost at family.

Before being attached server-side and mobile terminal, mobile terminal and server-side are already connected to certain in local area network One network.The network that mobile terminal and server-side have connected can be same network segment, may not be same network segment.

Server-side obtains the connection network information of server-side at regular intervals, connects the IP address for including in the network information It can be the IP address of all network card interfaces of server-side, be also possible to each IP address for the WIFI hot spot that server-side currently connects, It can also be each IP address of the IP address of all network card interfaces of server-side and the WIFI hot spot that server-side currently connects.It is mobile whole Then end is attached according to the display available each IP address to server-side of icon with each IP address.

In one embodiment, the connection network information can also include the WIFI hot spot that server-side currently connects SSID and password;It is described display icon be also used to mobile terminal provide mobile terminal be switched to the WIFI hot spot SSID and Password.The WIFI hot spot that server-side is currently connected provides mobile terminal, and mobile terminal can not find corresponding clothes When business end, mobile terminal is connected to the hot spot of server-side connection automatically, mobile terminal is further improved and is connected with server-side Convenience.

There are many kinds of the modes that the display icon of server-side is generated according to the connection network information, for example, first according to certainly Definition format is encapsulated as burst of data for the network information is connected, then by the existing algorithm in the prior art of the data after encapsulation It is encrypted, is encrypted for example, by using Base64, encrypted data are finally generated into display icon.Data encrypt main It is the safety in order to guarantee data, the data after encapsulation directly can also be generated display icon without encryption by user.It is aobvious Diagram mark can be two dimensional code or bar code etc..To connection the network information be packaged process, encapsulation of data is encrypted Process and generate the process of display icon and can be realized using existing method in the prior art.

Based on the same inventive concept, the present invention also provides the attachment device of a kind of mobile terminal and server-side, below with reference to Attached drawing is described in detail the specific embodiment of apparatus of the present invention.

As shown in fig. 7, the attachment device of a kind of mobile terminal and server-side, comprising:

It connects the network information and obtains module 210, for obtaining the connection network information of server-side, the connection network information Including each IP address;

Show icon generation module 220, it is described for generating the display icon of server-side according to the connection network information Show that icon is used to provide each IP address of server-side to mobile terminal.

The present invention enormously simplifies operating procedure required when mobile terminal connection server-side, and user no longer searches Rope server-side, the operation such as input server-side address keep the process of mobile terminal connection server-side simpler, convenient;It is mobile whole The entire attended operation of end and server-side is fully automated, and user requires no knowledge about the concept of the complexity such as IP address, reduces use The learning cost at family.

Before being attached server-side and mobile terminal, mobile terminal and server-side are already connected to certain in local area network One network.The network that mobile terminal and server-side have connected can be same network segment, may not be same network segment.

The connection network information obtains the connection network information that module 210 obtains server-side at regular intervals, connects network The IP address for including in information can be the IP address of all network card interfaces of server-side, be also possible to what server-side currently connected Each IP address of WIFI hot spot can also be the WIFI heat that the IP address of all network card interfaces of server-side and server-side currently connect Each IP address of point.Mobile terminal according to display the available each IP address to server-side of icon, then with each IP address into Row connection.

In one embodiment, the connection network information can also include the WIFI hot spot that server-side currently connects SSID and password;It is described display icon be also used to mobile terminal provide mobile terminal be switched to the WIFI hot spot SSID and Password.The WIFI hot spot that server-side is currently connected provides mobile terminal, and mobile terminal can not find corresponding clothes When business end, mobile terminal is connected to the hot spot of server-side connection automatically, mobile terminal is further improved and is connected with server-side Convenience.

The mode for the display icon that display icon generation module 220 generates server-side according to the connection network information has very It is a variety of, for example, display icon generation module 220 is first encapsulated as burst of data for the network information is connected according to user-defined format, so The data after encapsulation are encrypted with existing algorithm in the prior art afterwards, are encrypted for example, by using Base64, it finally will encryption Data afterwards generate display icon.Data are encrypted primarily to guaranteeing the safety of data, user can also will seal Data after dress generate display icon.Show that icon can be two dimensional code or bar code etc..Show 220 pairs of companies of icon generation module Connecing process that the network information is packaged, the process encrypted to encapsulation of data and the process for generating display icon can be with It is realized using existing method in the prior art.

In order to better understand the connection procedure of mobile terminal and server-side, below with reference to a specific embodiment, from shifting Dynamic terminal and the angle of server-side interaction are set out, and are described in detail to specific implementation process of the invention.

Assuming that user needs for mobile phone to connect with indoor Intelligent flat is taught:

The Wi-Fi hotspot information that Intelligent flat obtains all IP address of the machine and currently connects, IP address include the machine The IP address of all network card interfaces and the IP address of Wi-Fi hotspot, Wi-Fi hotspot information include the SSID of Wi-Fi hotspot and close Code;

Intelligent flat is burst of data according to the Information encapsulation that user-defined format will acquire, and the data after encapsulation are used Then Base64 encryption generates two dimensional code according to encrypted data, and the two dimensional code of generation is shown on Intelligent flat interface Show;

Mobile phone scans the two dimensional code on Intelligent flat interface, obtains encryption data after parsing, decrypts encryption number with Base64 According to the data after decryption are parsed according to previous user-defined format, obtain IP address list and Wi-Fi hotspot information;

Mobile phone judges whether the IP in IP address list is in same network segment with the network that mobile phone is currently connect one by one.Such as Fruit is, it tries connection ceases attempt to, into connection status, connection procedure terminates if successful connection;Otherwise, continue to sentence Break next IP address.

If mobile phone and all IP address all can not success identity connection, judge network that mobile phone currently connects whether with solution It is identical to analyse obtained Wi-Fi hotspot.If it is not the same, then being returned automatically the network connection of mobile phone into the Wi-Fi hotspot parsed Machine of turning round and stretching out the hand judges the step whether IP in IP address list is in same network segment with the network that mobile phone is currently connect one by one;Such as Fruit is identical, then prompts connection failure.

Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.

The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (6)

1. the connection method of a kind of mobile terminal and server-side, which is characterized in that comprising steps of
According to the display icon of server-side obtain the connection network information of server-side, the connection network information includes each IP The SSID and password for the WIFI hot spot that location, the server-side currently connect;
It successively detects each IP address and whether is in same network segment with the network that mobile terminal is currently connect;
If so, the mobile terminal is connect with the IP address of same network segment;
It is described successively to detect each IP address and whether be in same network segment with the network that mobile terminal is currently connect, if so, will be described The step of mobile terminal is connect with the IP address of same network segment include: mobile terminal judge one by one IP in each IP address whether with The network that mobile terminal currently connects is in same network segment;If it is, attempting for mobile terminal to connect with the IP address, such as Fruit successful connection then ceases attempt to, and mobile terminal and server-side enter connection status, and connection procedure terminates, and otherwise continues under judgement One IP address;
After the mobile terminal is connect with the IP address of same network segment, further comprise the steps of:
If the mobile terminal and each IP address are all connected with failure, detect network that the mobile terminal currently connects whether with institute It is identical to state WIFI hot spot;
If not identical, the mobile terminal automatically switched to by the network currently connected according to the SSID and password described WIFI hot spot;
Using the WIFI hot spot network that currently connects new as the mobile terminal, return successively detects each IP address and moves The step of whether network that dynamic terminal currently connects is in same network segment.
2. the connection method of mobile terminal according to claim 1 and server-side, which is characterized in that according to the aobvious of server-side Diagram mark obtains the step of connection network information of server-side and includes:
Encryption data is obtained according to the display icon of server-side;
The encryption data is decrypted, ciphertext data is obtained;
The ciphertext data is parsed according to preset format, obtains the connection network information of server-side.
3. the attachment device of a kind of mobile terminal and server-side characterized by comprising
Network information determining module is connected, for obtaining the connection network information of server-side, institute according to the display icon of server-side State the SSID and password that the connection network information includes the WIFI hot spot that each IP address, the server-side currently connect;
Whether IP address detection module, the network for successively detecting each IP address with mobile terminal is currently connect are in same net Section;
Link block, when being in same network segment with the network that mobile terminal is currently connect for IP address, by the mobile terminal It is connect with the IP address of same network segment;
The hot spot switching module being connected with the link block, the hot spot switching module include:
Hot spots detection unit, for detecting the mobile terminal and working as when the mobile terminal and each IP address are all connected with unsuccessfully Whether the network of preceding connection is identical as the WIFI hot spot;
Hot spot switch unit, when network and the WIFI hot spot for currently connecting in the mobile terminal be not identical, according to The mobile terminal is automatically switched to the WIFI hot spot by the network currently connected by the SSID and password;
New connection network determination unit, for the network currently connected that the WIFI hot spot is new as the mobile terminal;
The IP address detection module is also used to judge one by one the net whether IP in each IP address currently connect with mobile terminal Network is in same network segment;If so, link block is then attempted for mobile terminal to connect with the IP address, if successful connection It ceases attempt to, mobile terminal and server-side enter connection status, and connection procedure terminates, and otherwise IP address detection module continues to judge Next IP address.
4. the attachment device of mobile terminal according to claim 3 and server-side, which is characterized in that the connection network letter Ceasing determining module includes:
Encryption data acquiring unit, for obtaining encryption data according to the display icon of server-side;
Ciphertext data acquiring unit obtains ciphertext data for the encryption data to be decrypted;
It connects network information acquiring unit and obtains server-side for parsing the ciphertext data according to preset format Connect the network information.
5. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt The connection method such as claim 1-2 described in any item mobile terminals and server-side is realized when processor executes.
6. a kind of computer equipment, including memory, processor and it is stored on the memory and can be on the processor The computer program of operation, which is characterized in that the processor is realized when executing described program such as any one of claim 1-2 institute The connection method of the mobile terminal and server-side stated.
CN201610053448.9A 2016-01-25 2016-01-25 The connection method of mobile terminal and server-side and device CN105657708B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610053448.9A CN105657708B (en) 2016-01-25 2016-01-25 The connection method of mobile terminal and server-side and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610053448.9A CN105657708B (en) 2016-01-25 2016-01-25 The connection method of mobile terminal and server-side and device
PCT/CN2016/113199 WO2017128919A1 (en) 2016-01-25 2016-12-29 Mobile terminal and service end connection method and apparatus

Publications (2)

Publication Number Publication Date
CN105657708A CN105657708A (en) 2016-06-08
CN105657708B true CN105657708B (en) 2019-08-13

Family

ID=56484264

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610053448.9A CN105657708B (en) 2016-01-25 2016-01-25 The connection method of mobile terminal and server-side and device

Country Status (2)

Country Link
CN (1) CN105657708B (en)
WO (1) WO2017128919A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105657708B (en) * 2016-01-25 2019-08-13 广州视睿电子科技有限公司 The connection method of mobile terminal and server-side and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005033704A (en) * 2003-07-11 2005-02-03 Denso Wave Inc Communication system
CN102692881A (en) * 2012-05-16 2012-09-26 中国海洋大学 Household appliance control method and control system based on two-dimension code
CN102802155A (en) * 2012-08-17 2012-11-28 珠海金山办公软件有限公司 Method for rapidly establishing connection between mobile terminal and intelligent display equipment
CN103036702A (en) * 2012-04-01 2013-04-10 浙江宇视科技有限公司 Network segment crossing N+1 backup method and network segment crossing N+1 backup device
CN104796308A (en) * 2014-01-16 2015-07-22 腾讯科技(深圳)有限公司 Method and system for network interconnection of devices
CN105163174A (en) * 2015-09-10 2015-12-16 康佳集团股份有限公司 Method and system for connecting mobile terminal with television by scanning two-dimension code

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105376048A (en) * 2014-08-27 2016-03-02 深圳Tcl新技术有限公司 Method and system for connecting terminal with display equipment
CN105657708B (en) * 2016-01-25 2019-08-13 广州视睿电子科技有限公司 The connection method of mobile terminal and server-side and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005033704A (en) * 2003-07-11 2005-02-03 Denso Wave Inc Communication system
CN103036702A (en) * 2012-04-01 2013-04-10 浙江宇视科技有限公司 Network segment crossing N+1 backup method and network segment crossing N+1 backup device
CN102692881A (en) * 2012-05-16 2012-09-26 中国海洋大学 Household appliance control method and control system based on two-dimension code
CN102802155A (en) * 2012-08-17 2012-11-28 珠海金山办公软件有限公司 Method for rapidly establishing connection between mobile terminal and intelligent display equipment
CN104796308A (en) * 2014-01-16 2015-07-22 腾讯科技(深圳)有限公司 Method and system for network interconnection of devices
CN105163174A (en) * 2015-09-10 2015-12-16 康佳集团股份有限公司 Method and system for connecting mobile terminal with television by scanning two-dimension code

Also Published As

Publication number Publication date
CN105657708A (en) 2016-06-08
WO2017128919A1 (en) 2017-08-03

Similar Documents

Publication Publication Date Title
US9584487B2 (en) Methods, systems, and computer program products for determining an originator of a network packet using biometric information
JP6373453B2 (en) Access Network Assisted Bootstrapping
US9986428B2 (en) Security management in M2M area network
EP3439371B1 (en) Method and apparatus for determining access point service capabilities
US9942929B2 (en) Radio communication device, radio communication system, radio communication method, and program
US9781137B2 (en) Fake base station detection with core network support
CN103607712B (en) The cut-in method and device of wireless network
US8514827B2 (en) System and network for wireless network monitoring
JP4865819B2 (en) Monitor local area network
ES2686834T3 (en) Method and system to authenticate an access point
US20150040194A1 (en) Monitoring of smart mobile devices in the wireless access networks
CN103825788B (en) A kind of WIFI network collocation method and system
KR100764010B1 (en) A method and apparatuses for selecting connection settings by using historydata
CN101867530B (en) Things-internet gateway system based on virtual machine and data interactive method
US8638762B2 (en) System and method for network integrity
US8655312B2 (en) Wireless access point detection
US9003527B2 (en) Automated method and system for monitoring local area computer networks for unauthorized wireless access
CN103152399B (en) Login method, system and cloud server
US8009626B2 (en) Dynamic temporary MAC address generation in wireless networks
US9467459B2 (en) System and method for detection of rogue routers in a computing network
US8769639B2 (en) History-based downgraded network identification
CN101605330B (en) Method and device for building wireless distribution system connection
WO2014182836A1 (en) System and method for indicating a service set identifier
US7216365B2 (en) Automated sniffer apparatus and method for wireless local area network security
US20130318587A1 (en) Authentication method and wireless connection device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant