Summary of the invention
Based on above-mentioned situation, the present invention proposes a kind of method of registering, portable terminal based on two-dimension code and the server of registering, the first, by mobile scanning terminals such as mobile phone two-dimension code on the user seat of user, with the time that low cost has avoided the user to line up, improved the efficient of registering; The second, existing resources only need be called by enterprise, does not need to purchase or arrange the hardware of registering, and has reduced the cost of enterprise; Three, by the signal area property characteristics of wifi network, can prevent the allograph situation effectively.
Main purpose of the present invention is the WIFI network that utilizes the existing portable terminal of user and most of enterprise all can open, is the formula order dishes system of one of enterprise's customization " with no paper and do not have cardization ",
A kind of method of registering based on two-dimension code comprises step:
Two-dimensional code display; The described two-dimension code of mobile scanning terminal, the access-in point information of described two-dimension code, register server info and user totem information are obtained in parsing, be connected to the WIFI network according to described access-in point information, connect the server of registering according to the server info of registering, send user totem information by described portable terminal to the described server of registering; The described server of registering is confirmed registering of user according to receiving described user totem information, and registering the time according to recording user sweep time.
Described two-dimension code is by the access-in point information of WIFI network, register server info and user totem information generation.
Described two-dimension code prints with paper, posts up the assigned address of user totem information correspondence.
Described two-dimension code uses screen display in the assigned address of user totem information correspondence.
The corresponding one or more appointment portable terminals of a described two-dimension code.
Described user totem information comprises: one in user's cell-phone number, user's job number, the password that arranges in the described server of registering, user's fingerprint etc. or wherein optional multinomial.
A kind of portable terminal utilizes the mobile scanning terminal two-dimension code, obtains the access-in point information of described two-dimension code, register server info and the identification information of registering; Be connected to the WIFI network according to described access-in point information, connect the server of registering according to the server info of registering, and send described user totem information to the described server of registering; The described server of registering is confirmed registering of user according to receiving described user totem information, and registering the time according to recording user sweep time.
Described two-dimension code prints with paper, and the assigned address or the described two-dimension code that post up the user totem information correspondence use screen display in the assigned address of user totem information correspondence.
A kind of server of registering, be used for coming portable terminal is identified by obtaining user totem information, according to the described user totem information that receives described portable terminal transmission registering of user confirmed, and according to the registering the time of the described time recording user that obtains user totem information, described user totem information is resolved after by described mobile scanning terminal two-dimension code and is obtained.
Described two-dimension code prints with paper, and the assigned address or the described two-dimension code that post up the user totem information correspondence use screen display in the assigned address of user totem information correspondence.
With respect to prior art, a kind of method of registering, portable terminal and server based on two-dimension code provided by the invention can utilize portable terminal and two-dimension code that the user can be registered at own seat, and first, can allow the user not need queuing to check card and register; The second, do not need to increase the hardware cost of the device of registering; Three, adopt the characteristics of wifi signal area property to carry out system login, can avoid the user to take two-dimension code by mobile phone, the operation of registering in other places then improves the authenticity of registering.
Embodiment
Below in conjunction with wherein preferred embodiments the present invention program is described in detail.
The schematic flow sheet of a kind of method of registering embodiment based on two-dimension code of the present invention has been shown among Fig. 1.
As shown in Figure 1, the method in the present embodiment comprises step:
S101: generate corresponding two-dimension code according to the access-in point information of WIFI network, the server info of registering, the identification information of registering, and two-dimension code is shown;
System obtains the access-in point information of WIFI network, register server info and user totem information, can be by the corresponding information of artificial input, to the system the inside, system generates corresponding two-dimension code according to the information of obtaining as the access-in point information of artificial input WIFI network, register server ip address and the server infos of registering such as serve port and user name password of registering, user totem information.
Described access-in point information comprises the information such as WIFI network title, type and password of access point; Described user totem information mainly is to differentiate different users (employee) in order to allow system pass through this information, specifically can be user's one or wherein optional multinomial of cell-phone number, user's job number, the password that arranges in the described server of registering, user's fingerprint etc.
The server info of registering comprises that server ip address, serve port and username and password information or other are used for the required necessary information of location and access server uniquely, database is set in the server, information such as user job seat position, rank, authority and corresponding user totem information can be mapped.
S102: the mobile scanning terminal two-dimension code, described two-dimension code resolved obtain access-in point information, server info, user totem information, and be connected to described WIFI network according to described access-in point information, server info connects the server of registering according to registering;
Here, portable terminal is mainly by camera scanning two-dimension code, two-dimension code then uses screen display to go up or two-dimension code is printed with paper in the assigned address (service position) of user totem information correspondence, post up on the assigned address (service position) of dining room user totem information correspondence, certainly the assigned address here can refer in employee position comparatively easily.In company, each employee can have the seat of oneself basically, if the employee can register at the seat of oneself, the machine front that just do not need to register stands in a long queue, and then saves the time of registering.
S103: according to user totem information portable terminal is identified, send user totem information by portable terminal to the server of registering again; The server of registering is confirmed registering of user according to receiving described user totem information, and registering the time according to described recording user sweep time.Portable terminal can be the communication apparatus that mobile phone, PDA, notebook computer etc. have wireless networking capabilities;
S101 of the present invention needs the access-in point information according to the WIFI network, register server info and user totem information just to generate corresponding two-dimension code.Using the access-in point information of WIFI network mainly is the characteristics that will utilize WIFI signal area property, has only as user (employee) to enter in the scope of the WIFI of company network, and the operation that it is registered is just meaningful.The main purpose of She Zhiing is in order to prevent that the employee is filmed two-dimension code, to utilize other network to register in other places then like this; And this setting of server info of registering also arranges in corporate lan based on the server of registering, and namely only enters just can carry out data in the local area network (LAN) of company and send, and just can effectively register; User totem information be set then be the information that allows the two-dimension code of each generation all record certain customers, cell-phone number as the user, user's job number, the password that in the described server of registering, arranges, information such as user's fingerprint, use portable terminal being fit to two-dimension code scanning of oneself like this as the user, the user's that it parses cell-phone number, user's job number, the password that in the described server of registering, arranges, information such as user's fingerprint just can be mated with the portable terminal of current use, this portable terminal information of sending to the server of registering is just effective like this, just can effectively register.Two-dimension code as if scan current generation with other portable terminals will produce the unmatched consequence of information, and the information of registering of this moment is invalid information.
In addition, will print with paper by the two-dimension code that above-mentioned setting generates, be posted in the service position of user totem information correspondence, only need several blank sheet of paper, utilize existing resources with regard to maximizing, do not need to increase the hardware cost of device of registering; Two-dimension code, can show at employee's pc display in the assigned address of user totem information correspondence with screen display, though like this paper all need not, can cause screen display in the shortcoming of the irrelevant information of working.
Step S101 can specifically be refined as following step, and it comprises:
S1011: generate corresponding two-dimension code according to the access-in point information of WIFI network, the server info of registering, user totem information;
System obtains the access-in point information of WIFI network, the server info of registering, user totem information, can be by the corresponding information of artificial input, access-in point information, server info, user totem information as artificial input WIFI network arrive the system the inside, and system generates corresponding two-dimension code according to the information of obtaining.Here Shu Ru access-in point information comprises WIFI network title, type and password etc.Portable terminal is linked into the WIFI network according to access-in point information.User totem information is generally imported by the personnel of Human Resource Department of company.Then with employee's ID, seat position, information such as cell-phone number are kept in the data in server storehouse, like this by the user totem information inquiry, just can obtain each essential information of employee.
S1012, described access-in point information, server info, user totem information be treated to the character string of predetermined format; In this step, need handle access-in point information, server info and user totem information, make it to be converted to the character string of certain format, in order to access-in point information is converted to discernible two-dimension code smoothly.Come below the form of character string is specified, the form of character string can comprise sign, content, symbol etc., the concrete data of this content representation information, the WIFI network name information of access point for example, encrypted message etc., sign has been represented the type of content, for example use SIID to represent the WIFI network title of access point, use PSWD to represent the WIFI network cipher of access point, use TYPE to represent the WIFI network type of access point, use SRV to represent the server info of registering, use YGID to represent user (employee) identification information, use YGPH to represent employee's phone number, symbol then is used for separating content and sign, for example uses colon ": " that content and sign are separated.So, access-in point information, server info and user totem information can be represented by the character string of following form:
SSID?:TPLINK666
TYPE:WPA/WPA2
PSWD:147456
SVR:?
59.42.10.30/8000/admin/45678
YGID:7
YGPH:13800111xxx
Beginning and end for identification strings, can use specific sign to represent beginning and finish, for example use BEGIN to represent the beginning of character string, END represents the end of character string, like this, when generation comprises access-in point information, during the character string of register server info and user totem information, begin sign in the beginning delegation input of character string, last column end of input in character string represents, that is:
BEGIN
SSID?:TPLINK666
TYPE:WPA/WPA2
PSWD:?147456
SRV:?
59.42.10.37/8000/admin/45678
YGID:5
YGPH:13800111xxx
END
Need to prove that the character string of above-mentioned form is a kind of giving an example, so long as the form that server and portable terminal are all supported all can be used as the predetermined format of character string.
S1013, to the described character string generation two-dimension code of encoding.In this step, need encode to character string according to the coding principle of two-dimension code, and the type of two-dimension code is a lot, for example: QR Code, Data Matrix, Maxi Code, Aztec, Vericode, PDF417, Ultracode, Code 49, Code 16K, that at present the most frequently used is QR (Quick Response, fast reaction) Code, therefore, the present invention is example with such two-dimension code, coding and decoding to two-dimension code are elaborated, and certainly, the two-dimension code of other types coding and decode procedure are similar with it, namely follow the encoding and decoding principle of corresponding two-dimension code data are carried out encoding and decoding, repeat no more in the present invention.
After according to the coding standard of two-dimension code character string being encoded, access-in point information, server info, user totem information is encoded as the two-dimension code of standard, at this moment, this two-dimension code can be saved in the file system, and this two-dimension code can be printed, print the paper (can cross glue and increase corresponding advertising message) with two-dimension code be attached to respect to the dining table seat or dining table on, so that the user can obtain this two-dimension code by portable terminals such as mobile phones, here posting is the mode of relatively saving cost, also can solve identical problem if can show with corresponding display device information.
Step S102 can specifically be refined as following step, and it comprises:
S1021: the described two-dimension code of mobile scanning terminal; Portable terminal can scan the two-dimension code that pastes (or screen display) on the employee seat by camera, obtains this two-dimension code;
S1022: portable terminal is resolved the character string of obtaining in the two-dimension code to described two-dimension code; In this step, at first need to judge the type of two-dimension code, after the type that obtains two-dimension code, according to the two-dimension code decoding principle of the type this two-dimension code is decoded again, draw data character according to the pattern decoding of using, thus the character string of output specified format.
Because the code encoding/decoding mode of at present relevant two-dimension code (as QR Code two-dimension code) belongs to prior art mostly, too much description is not done in this part.
S1023, portable terminal read described character string and obtain access-in point information, the server info of registering, user totem information, and be connected to described WIFI network according to described access-in point information, be connected to the server of registering according to the server info of registering, portable terminal sends user totem information to the server of registering then; In this step, whether whether portable terminal need detect user totem information identical with the user profile of this machine, if the identical server of registering sends its user totem information.As, phone number is 13811111xxx in the user totem information of user (employee) in the generation two-dimension code of staying for the administrative personnel of company, and the phone number of the mobile phone of current its usefulness is 13511111xxx, and then portable terminal will not send information to the server of registering.If scan with this phone of 13811111xxx again after user (employee) pinpoints the problems, then can send relevant information.In this embodiment, user totem information is only used phone number, but when practical operation, can adopt information such as user ID, the password that sets in advance, to realize putting the function of allograph better.
In the step of S103, the server of registering is confirmed registering of user according to receiving user totem information, and registering the time according to described recording user sweep time.Because S1023 is with user totem information and user's portable terminal notification server, afterwards, server carries out correspondence according to user totem information to described portable terminal, make server know which employee in the operation of registering, and refer to the moment of mobile scanning terminal two-dimension code the sweep time here.
Based on said method, the present invention also provide a kind of based on two-dimension code the method for registering, as shown in Figure 2, it comprises:
Two-dimensional code generation module 100 is used for generating corresponding two-dimension code according to the access-in point information of WIFI network, the server info of registering, user totem information;
Portable terminal 200 is used for the scanning two-dimension code, two-dimension code is resolved obtain access-in point information, the server info of registering, user totem information, and be connected to described WIFI network according to described access-in point information;
The WIFI network provides equipment 300, and being used for provides WIFI network;
Portable terminal 200 is connected to the server 400 of registering by the server info of registering after being connected to network according to access-in point information;
The server 400 of registering is used for according to receiving user totem information registering of user being confirmed, and registering the time according to described recording user sweep time.
The operation principle of formula order dishes system is: the access-in point information of WIFI network, the server info of registering, user totem information can be by the on-the-spot inputs of staff, also can be stored in the database when need use the scene by system and call.After receiving the access-in point information of corresponding WIFI network, the server info of registering, user totem information, two-dimensional code generation module 100 just can generate two-dimension code.At this moment, this two-dimension code can be saved in the file system, and this two-dimension code is printed, and will print the paper (can cross glue and increase corresponding advertising message) with two-dimension code and be attached on the corresponding assigned address (employee's seat position), also can show corresponding two-dimension code with display unit here.When the user registers, use the camera of the mobile phone (portable terminal) of oneself that corresponding two-dimension code is scanned, two-dimension code is resolved obtain access-in point information, server info, user totem information.Portable terminal provides the network signal of equipment 300 by the WIFI network, uses the server info of registering to be connected to the server 400 of registering; Portable terminal 200 sends user totem information to the above-mentioned server 400 of registering; The above-mentioned server of registering is confirmed registering of user according to receiving described user totem information, and registering the time according to described recording user sweep time.
Further, as shown in Figure 3, described portable terminal 200 comprises:
Two-dimension code acquisition module 201 is used for obtaining described two-dimension code;
Two-dimension code parsing module 202 is used for described two-dimension code is resolved the character string of obtaining two-dimension code;
WIFI network access module 203 is used for reading described character string and obtains access-in point information, register server info and user totem information, and is connected to described WIFI network according to described access-in point information.Function about above-mentioned each module also has detailed description in method embodiment, repeat no more.
Embodiments of the invention also disclose, and are applied to a kind of portable terminal and a kind of server of registering of this a kind of method of registering based on two-dimension code.As described below:
A kind of portable terminal is used for the mobile scanning terminal two-dimension code, obtains the access-in point information of described two-dimension code, register server info and the identification information of registering; Be connected to the WIFI network according to described access-in point information, connect the server of registering according to the server info of registering, and send user totem information to the server of registering; Described server is confirmed registering of user according to receiving user totem information, and registering the time according to recording user sweep time.In this embodiment, the server of registering can identify according to user totem information and portable terminal, make user profile to connect with this portable terminal, simply saying is exactly to allow the server of registering know which employee portable terminal is in operation, and refers to the moment of mobile scanning terminal two-dimension code the sweep time here.
Confirm that having certain record mistake can occur owing to register, so whether the server of registering will successfully register the result feeds back to portable terminal, and the user just can learn the information of registering by screen, judges whether then to register again.
Above-mentioned two-dimension code prints with paper, posts up the assigned address of user totem information correspondence
Or above-mentioned two-dimension code uses screen display in the assigned address of user totem information correspondence.
Whether whether successful the server stores of registering some essential informations of employee, date and time information and judgement the information of registering, can successfully judge registering according to employee's essential information.
A kind of server of registering, be used for coming portable terminal is identified by obtaining user totem information, according to the described user totem information that receives described portable terminal transmission registering of user confirmed, and according to the registering the time of the described time recording user that obtains user totem information, above-mentioned user totem information is resolved after by described mobile scanning terminal two-dimension code and is obtained.In this embodiment, the server of registering can identify according to user totem information and portable terminal, makes user profile to connect with this portable terminal, and simply saying is exactly to allow the server of registering know which employee portable terminal is in operation.
Confirm that having certain record measure can occur owing to register, so whether the server of registering will successfully register the result feeds back to portable terminal, and the user just can learn the information of registering by screen, judges whether then to register again.
Above-mentioned two-dimension code prints with paper, and the assigned address or the above-mentioned two-dimension code that post up the user totem information correspondence use screen display in the assigned address of user totem information correspondence.
The above embodiment has only expressed embodiments of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.