Summary of the invention
In view of this, the technical problem that the present invention will solve is to provide a kind of for set up the method for service access at WLAN, and the mechanism that sends multicast message by mobile terminal is set up access connection.
For set up a method for service access at WLAN, comprising: the mobile terminal period ground in WLAN sends multicast message; Management equipment in described WLAN receives described multicast message, and storage sends the information of mobile terminal of described multicast message; Described management equipment connects according to described information of mobile terminal and mobile terminal, sends or receive file, data.
According to one embodiment of the method for the invention, further, described mobile terminal sends described multicast message every default very first time interval, and the information of carrying in described multicast message comprises: IP address, port, broadcasting frequency, device name, unit type, the md5 of mobile terminal IEMI, the md5 of mac; Described management equipment receives described multicast message, sets up to take information of mobile terminal table the storage that MAC Address is major key; When described management equipment is not received the described multicast message of described mobile device transmission over the second default time interval, judge that this mobile terminal goes offline.
According to one embodiment of the method for the invention, further, when described management equipment newly adds WLAN, send PC multicast message; When the mobile terminal in WLAN receives PC multicast message, to described management equipment, send echo message; Wherein, described management equipment comprises: PC, notebook computer, server.
According to one embodiment of the method for the invention, further, when described management equipment is based on wifi during the mobile terminal in direct-connected WLAN, according to described information of mobile terminal table, enumerate the mobile terminal in WLAN, and connect one by one the tcp address corresponding with mobile terminal in state of activation, if can be communicated with, directly set up first connection and exchange tid/cid information.
According to one embodiment of the method for the invention, further, when described management equipment during the mobile terminal in direct-connected WLAN, judges whether preserved this connection according to IEMI information based on wifi; If do not preserved, eject the tid/cid that confirms whether connection box prompting is preserved this link and preserved both sides' exchange; When if described management equipment can not be connected based on the direct-connected mobile terminal of wifi, eject Activate Phone assistant or select to send the Object linking of Quick Response Code form of dialog box suggestion; When described management equipment Transmit message, data do not meet with a response within the 3rd default time interval, cloud address corresponding to Transmit message or data.
According to one embodiment of the method for the invention, further, the Object linking of Quick Response Code form comprises: IP address, port and MAC Address; Wherein, the IP address of internal network that the IP address of Object linking is described management equipment, the Intranet udp port that the port of Object linking is described management equipment, the MAC Address that the MAC Address of Object linking is router; The Object linking of the Quick Response Code form of this reception of mobile scanning terminal, when identical according to the MAC Address judgement router comprising in Object linking, to described management equipment, send announcement information, the information of carrying comprises: IP address, port, broadcasting frequency, device name, unit type, the md5 of mobile terminal IEMI, the md5 of mac.
The technical problem that the present invention will solve is to provide a kind of for set up the system of service access at WLAN, and the mechanism that sends multicast message by mobile terminal is set up access connection.
For set up a system for service access at WLAN, comprising: mobile terminal and management equipment; Described mobile terminal period ground sends multicast message; Described management equipment receives described multicast message, and storage sends the information of mobile terminal of described multicast message; Described management equipment connects according to described information of mobile terminal and mobile terminal, sends or receive file, data.
According to system of the present invention embodiment, further, described mobile terminal sends described multicast message every default very first time interval, and the information of carrying in described multicast message comprises: IP address, port, broadcasting frequency, device name, unit type, the md5 of mobile terminal IEMI, the md5 of mac; Described management equipment receives described multicast message, sets up to take information of mobile terminal table the storage that MAC Address is major key; When described management equipment is not received the described multicast message of described mobile device transmission over the second default time interval, judge that this mobile terminal goes offline.
According to system of the present invention embodiment, further, when described management equipment newly adds WLAN, send PC multicast message; When the mobile terminal in WLAN receives PC multicast message, to described management equipment, send echo message; Wherein, described management equipment comprises: PC, notebook computer, server.
According to system of the present invention embodiment, further, when described management equipment is based on wifi during the mobile terminal in direct-connected WLAN, according to described information of mobile terminal table, enumerate the mobile terminal in WLAN, and connect one by one the tcp address corresponding with mobile terminal in state of activation, if can be communicated with, directly set up first connection and exchange tid/cid information.
According to system of the present invention embodiment, further, when described management equipment during the mobile terminal in direct-connected WLAN, judges whether preserved this connection according to IEMI information based on wifi; If do not preserved, eject the tid/cid that confirms whether connection box prompting is preserved this link and preserved both sides' exchange; When if described management equipment can not be connected based on the direct-connected mobile terminal of wifi, eject Activate Phone assistant or select to send the Object linking of Quick Response Code form of dialog box suggestion; When described management equipment Transmit message, data do not meet with a response within the 3rd default time interval, cloud address corresponding to Transmit message or data.
According to system of the present invention embodiment, further, the Object linking of Quick Response Code form comprises: IP address, port and MAC Address; Wherein, the IP address of internal network that the IP address of Object linking is described management equipment, the Intranet udp port that the port of Object linking is described management equipment, the MAC Address that the MAC Address of Object linking is router; The Object linking of the Quick Response Code form of this reception of mobile scanning terminal, when identical according to the MAC Address judgement router comprising in Object linking, to described management equipment, send announcement information, the information of carrying comprises: IP address, port, broadcasting frequency, device name, unit type, the md5 of mobile terminal IEMI, the md5 of mac.
Of the present invention for set up the method and system of service access at WLAN, the mechanism that sends multicast message by mobile terminal is set up access connection, can be easily to mobile terminal, send new application, data etc., and managing mobile terminal easily, be user-friendly to.
Embodiment
With reference to the accompanying drawings the present invention is described more fully, exemplary embodiment of the present invention is wherein described.Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 for according to of the present invention for set up the flow chart of an embodiment of the method for service access at WLAN, as shown in Figure 1:
Step 101, the mobile terminal period ground in WLAN sends multicast message.
Step 102, the management equipment in WLAN receives multicast message, and storage sends the information of mobile terminal of multicast message.
Step 103, management equipment connects according to information of mobile terminal and mobile terminal, sends or receive file, data.
Management equipment in the present invention is PC in WLAN, notebook computer, server etc., in PC, notebook computer, server, network interface card is set, can access WLAN by WIFI, have and can to mobile terminal, send the functions such as new business file, managing mobile terminal, for example, can open mobile phone assistant, connecting guide prompting has mobile phone to connect, can manage in same local area network (LAN) and to agree to the mobile phone that connects, the application in can prompting mobile telephone set has redaction, can upgrade.Mobile terminal comprises: mobile phone, ipad etc.
WLAN (Wireless Local Area Networks) is WLAN (wireless local area network), some wireless devices reach interconnection by certain or several base station (being commonly referred to focus or AP), just can form an internal lan by wireless connections, can shared file.WIFI is a kind of agreement (being actually Handshake Protocol) that realizes wireless networking, WIFI network is operated in the frequency range (approaching straightline propagation) of 2.4G or 5G, operating distance is not far, is conducive to channeling, and on the electronic equipments such as mobile phone, general alleged WLAN just refers to WIFI in fact.
According to one embodiment of present invention, as shown in Figure 2, mobile terminal 11 sends multicast message with very first time interval, and very first time interval can be set according to demand, such as being 10,15 minutes etc.When mobile terminal 11 adds a wlan, immediately to device notify bag of " 238 network segment " multicast, the information of carrying comprises: IP address, port, broadcasting frequency, device name, unit type, the md5 of mobile terminal IEMI, the md5 of mac etc., and every 15 minutes, broadcast once, mobile terminal 11 is monitored tcp ports: 38517 again.
Management equipment 12 receives multicast messages, sets up to take information of mobile terminal table the storage that MAC Address is major key the characteristic value that the MAC Address by mobile terminal is difference mobile terminal.When management equipment 12 is not received the multicast message of mobile device 11 transmissions over the second default time interval, judge that this mobile terminal goes offline.Second time interval can arrange according to demand, such as being 30,40 minutes etc.After management equipment judgement mobile terminal goes offline, will preserve the state of mobile terminal, when user need to send data to this mobile terminal, user can obtain the whether online accurate information of this mobile terminal.
When management equipment 12 adds after a new WLAN, to PC notify bag of " 239 network segment " multicast, the information of carrying comprises: IP address, port, device name etc. immediately.When the mobile terminal in WLAN receives PC multicast message, to management equipment, send echo message, the information of carrying comprises: IP address, port, broadcasting frequency, device name, unit type, the md5 of mobile terminal IEMI, md5 of mac etc.
According to one embodiment of present invention, management equipment can be PC, notebook, server etc., it is direct-connected that user can directly use management equipment and mobile phone to set up, between management equipment and mobile phone, send or receive file, data, or user, by connection servers such as individual PC, uses PC to set up direct-connected by server and mobile phone, between PC and mobile phone, send or for example receive file, data, PC and mobile phone set up direct-connected flow process as shown in Figure 5:
Step 201, PC obtains whether online information of mobile terminal by querying server.Server take by receiving the multicast message of mobile phone, setting up information of mobile terminal table the storage that MAC Address is major key.
Step 202, PC sends the message of " I am direct-connected " to mobile phone by server.
Step 203, mobile phone receives the message of this " I am direct-connected ", sets up service processes on mobile phone, and the information such as IP address, port, broadcasting frequency, device name, unit type are sent to server, by server, is forwarded to PC.
Step 204, receives at PC after the information of the mobile phone that server sends, and by wifi, attempts setting up direct-connected with mobile phone.
Step 205, PC and mobile phone are set up direct-connected, send or receive file, data.
Wherein, when carrying out step 202 to failed or overtime in 204 process, by server Transmit message or cloud address corresponding to data.
According to one embodiment of present invention, when management equipment 12 is based on wifi during the mobile terminal in direct-connected WLAN, according to information of mobile terminal table, enumerate the mobile terminal in WLAN, and connect one by one the tcp address corresponding with mobile terminal in state of activation, if can be communicated with, directly set up first connection and exchange tid/cid information.
In management equipment 12, trigger in direct-connected interface, management equipment 12 is enumerated the equipment of all statements under current wlan, as shown in Figure 3, management equipment 12 is enumerated lower 2 equipment of stating of current wlan, the type of one of them mobile terminal 11 is xiaomi, IP is the information such as 192.168.100.2, and management equipment 12 connects the tcp address that mobile terminal is corresponding one by one, and exchanges tid/cid/key.If connect mobile terminal 11 successes, in interface, mobile terminal 11 be set to state of activation, if connection failure is set to gray states in interface.Cid is the abbreviation of CustomerIDentity, the platform release of mobile phone.
According to one embodiment of present invention, when management equipment 12 during the mobile terminal 11 in direct-connected WLAN, judges whether preserved this connection according to IEMI information based on wifi; If do not preserved, eject the tid/cid that confirms whether connection box prompting is preserved this link and preserved both sides' exchange.IMEI (the international identification code of mobile device) is the sign of difference mobile device, " the electronics string number " being formed by 15 bit digital, and it is corresponding one by one with every mobile phone, and this yard is that the whole world is unique.
According to one embodiment of present invention, after the direct-connected disconnection of PC and mobile phone, PC and mobile phone continue to connect, as shown in Figure 6:
Step 301, PC attempted setting up direct-connectedly with mobile phone by wifi every X second, when being successfully established in 3 times, entered step 305, failed or overtime when setting up, and entered step 302; X can arrange second, can be 10,20 seconds etc.
Step 302, PC sends the message connecting with mobile phone by cloud.
Step 303, mobile phone receives message, sets up service processes on mobile phone, and the information such as IP address, port, broadcasting frequency, device name, unit type are sent to PC.
Step 304, receives at PC after the information of mobile phone, by wifi, attempts setting up direct-connected with mobile phone.
Step 305, PC and mobile phone are set up direct-connected, send or receive file, data.
Wherein, when carrying out step 302 to failed or overtime in 304 process, disconnect, abandon carrying out direct-connected with mobile phone.
According to one embodiment of present invention, if when management equipment 12 can not be connected based on the direct-connected mobile terminal of wifi, eject Activate Phone assistant or select to send the Object linking of Quick Response Code form of dialog box suggestion.When management equipment 12 Transmit messages, data do not meet with a response within the 3rd default time interval, cloud address corresponding to Transmit message or data.The 3rd time interval was 2,3 seconds etc.Mobile phone assistant is the management by synchronization instrument of smart mobile phone, comprises PC end and mobile phone terminal.PC end mobile phone assistant can, easily at computer end managing mobile phone, can saferly download and install application program, realize all-round hand-set data management easily---system file, note, contact person's integrated management, the significant data of backup and reduction mobile phone the inside at any time.The connection that management equipment 12 and mobile terminal 11 are set up and mobile phone assistant's link information are shared.
According to one embodiment of present invention, as shown in Figure 4, the Object linking of Quick Response Code form comprises: IP address, port and MAC Address; The IP address of internal network that the IP address of Object linking is management equipment, the Intranet udp port that the port of Object linking is management equipment, the MAC Address that the MAC Address of Object linking is router, data are encrypted by des, and make base64 coding.After mobile telephone scanning, if discovery is identical with the mac address of Object linking, preferentially to IP:PORT, send out the packet of a device notify, allow PC oppositely connect mobile phone.Object linking as follows:
Http:// zhushou.360.cn/installer.apk? param=base64 (des (IP Port M AC)), the Object linking of the Quick Response Code form of this reception of mobile scanning terminal, when the MAC Address of the router in the WLAN that MAC Address that judgement comprises in Object linking accesses with mobile terminal is identical, to UDP address corresponding to the IP address+port of Object linking, send to management equipment and send announcement information, the information of carrying comprises: IP address, port, broadcasting frequency, device name, unit type, the md5 of mobile terminal IEMI, md5 of mac etc.
According to one embodiment of present invention, PC is connected with mobile phone cloud, as shown in Figure 7:
Step 401, user sends out task by PC, for example software upgrading or uploading data etc.
Step 402, PC sends to Cloud Server by task; When sending unsuccessfully, enter step 406, PC demonstration sends unsuccessfully.
Step 403, the connection status of judgement Cloud Server and mobile phone, can arrange according to concrete demand Cloud Server and detect the cycle being connected with mobile phone; When connection status is normal, enter step 404, when judgement, lost efficacy and maybe can not connect, enter step 407.
Step 404, Cloud Server sends to mobile phone by task, and the successful message of transmission is returned to PC;
Step 405, the upper demonstration of PC sends successfully.
Step 407, Cloud Server sends to PC by the message disconnecting with mobile phone.
Step 408, PC upper demonstration Cloud Server and mobile phone disconnect.
As shown in Figure 8, for set up the system of service access at WLAN, comprise: mobile terminal 21,22 and management equipment 23.Mobile terminal 21,22 periodically sends multicast message.Management equipment 23 receives multicast message, and storage sends the information of mobile terminal of multicast message.Management equipment 23 connects according to information of mobile terminal and mobile terminal 21,22, sends or receive file, data.
According to one embodiment of present invention, mobile terminal 21,22 sends multicast message every default very first time interval, and the information of carrying in multicast message comprises: IP address, port, broadcasting frequency, device name, unit type, the md5 of mobile terminal IEMI, the md5 of mac etc.Management equipment 23 receives multicast messages, sets up to take information of mobile terminal table the storage that MAC Address is major key.When management equipment 23 is not received the multicast message of mobile device 21,22 transmissions over the second default time interval, judge that this mobile terminal 21,22 goes offline.
According to one embodiment of present invention, when management equipment 23 newly adds WLAN, send PC multicast message; When the mobile terminal 21,22 in WLAN receives PC multicast message, to management equipment, send echo message.When management equipment 23 is based on wifi during the mobile terminal in direct-connected WLAN, according to information of mobile terminal table, enumerate the mobile terminal in WLAN, and connect one by one the tcp address corresponding with mobile terminal in state of activation, if can be communicated with, directly set up first connection and exchange tid/cid information.
Of the present invention for set up the method and system of service access at WLAN, user can stay at home or wireless routing is used in other place, just can directly see mobile phone on computers, can be by the direct-connected mobile phone of wifi, can managing mobile phone or by cell phone managing computer, wifi finds to be applied in several scenes, for example, can realize mobile phone blit experiences to computer, application in prompting mobile telephone set has redaction can upgrade etc., can be easily to mobile terminal, send new application, data etc., and managing mobile terminal easily, be user-friendly to.
May realize in many ways method and system of the present invention.For example, can realize method and system of the present invention by any combination of software, hardware, firmware or software, hardware, firmware.The said sequence that is used for the step of method is only in order to describe, and the step of method of the present invention is not limited to above specifically described order, unless otherwise specified.In addition, in certain embodiments, can be also the program being recorded in recording medium by the invention process, these programs comprise for realizing the machine readable instructions of the method according to this invention.Thereby the present invention also covers storage for carrying out the recording medium of the program of the method according to this invention.
Description of the invention provides for example with for the purpose of describing, and is not exhaustively or limit the invention to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.Selecting and describing embodiment is for better explanation principle of the present invention and practical application, thereby and makes those of ordinary skill in the art can understand the various embodiment with various modifications that the present invention's design is suitable for special-purpose.