A kind of method that makes computer security be connected into network quickly
Technical field
The invention belongs to home gateway network equipment field, relate to a kind of method that makes computer security fast read gateway device information and then be connected into network, particularly by the QR sign indicating number to the family gateway equipment information formation picture format of collecting, encode, realize that computer security fast reads the method that gateway device information is connected into network.
Background technology
Along with rapid development of network technology, the price of PC constantly reduces, and broadband access quantity is along with the user of PC also rapid growth.It is time-consuming to read in the process of present home gateway system data message more complicated the user, in addition handheld device more and more intelligence prerequisite under, safe and efficient read gateway device information and then be connected into network become pressing for of a lot of domestic consumers or commercial broadband user gradually.
Planar bar code technology is because of having the high density coding, information capacity is big, characteristics such as coding range is wide more and more widely be applied to every field such as forms application, safe and secret, tracking, license, stock taking, data redundant, Internet resources download, but 1850 capitalizations of its outfit as many as or 2710 numerals or 1108 bytes, or more than 500 Chinese character, higher approximately tens times than common bar code information capacity.Two-dimension code reads conveniently, and need not needs the adjusting to a line scanner as the common bar code of picture when scanning.
As seen, realize that successfully the application of planar bar code technology on home gateway promptly can satisfy user's demand.But the memory space of family gateway equipment is very little, this just brings a very big difficult problem to exploitation, we utilize linux system to carry out cross compile as development platform, the source code of QR is carried out the command-line tool that cross compile becomes the required form of home gateway system, system in the home gateway is generally mips or arm now, then family gateway equipment information is carried out data acquisition, will solve this difficult problem effectively.
Summary of the invention
The objective of the invention is to satisfy that customer requirements is safe and efficient reads the needs that home gateway information is carried out Internet connection, designed a kind of method that makes computer security be connected into network quickly, it is more efficient and convenient to make that the user reads gateway information, makes that networking is more convenient.
The technical solution used in the present invention is: a kind of method that makes computer security be connected into network quickly, the message code and the memory address of the home gateway that networking is required are dubbed into the QR bar code, read the QR bar code information by QR sign indicating number reading device and realize that network connects, key is: connect QR sign indicating number reading device on computers, in family gateway equipment, set up private memory and first memory, carry out following steps on this basis:
A, the QR source code is carried out cross compile by the linux system platform, the QR sign indicating number executable program that generation can move on home gateway, and QR sign indicating number executable program is stored in the private memory of family gateway equipment;
B, home gateway primary control program operation QR executable program, the required home gateway information of networking is inputed in the executable program, the QR executable program carries out the QR coding to the home gateway information of input, and the QR sign indicating number of generation PNG picture format also is stored in the first memory;
C, the QR sign indicating number of the PNG form that generates shown on webpage or the QR code printing of PNG picture format is come out, be affixed on the shell body of family gateway equipment;
D, computing machine by QR sign indicating number reading device read on the webpage or the home gateway shell body on the QR sign indicating number of PNG picture format, finish the networking process.
The invention has the beneficial effects as follows, make the QR sign indicating number be able to successful Application in family gateway equipment by cross compile, big by making full use of the 2 D code information amount, decoding is reliable, superpower characteristics such as fault-tolerant, user's interest family gateway equipment information is showed with two-dimension code image, make the user can conveniently read, write down gateway device information, the final realization networked safely and fast.
Description of drawings
Fig. 1 is the method flow diagram that generates the QR sign indicating number of PNG picture format among the present invention.
Embodiment
A kind of method that makes computer security be connected into network quickly, the message code and the memory address of the home gateway that networking is required are dubbed into the QR bar code, read the QR bar code information by QR sign indicating number reading device and realize that network connects, importantly: connect QR sign indicating number reading device on computers, in family gateway equipment, set up private memory and first memory, carry out following steps on this basis:
A, the QR source code is carried out cross compile by the linux system platform, the QR sign indicating number executable program that generation can move on home gateway, and QR sign indicating number executable program is stored in the private memory of family gateway equipment;
B, home gateway primary control program operation QR executable program, the required home gateway information of networking is inputed in the executable program, the QR executable program carries out the QR coding to the home gateway information of input, and the QR sign indicating number of generation PNG picture format also is stored in the first memory;
C, the QR sign indicating number of the PNG form that generates shown on webpage or the QR code printing of PNG picture format is come out, be affixed on the shell body of family gateway equipment;
D, computing machine by QR sign indicating number reading device read on the webpage or the home gateway shell body on the QR sign indicating number of PNG picture format, finish the networking process.
Like this, by the required home gateway information of QR sign indicating number storage networking, the user can realize networking fast by reading two-dimension code safe and efficiently.
The required home gateway information of described networking comprises: SSID, and password.
In order to make interpolation information convenient, among the step B, in executable program, during input home gateway information, can finish: the information stores of home gateway to the txt text, is inputed to the txt text in the executable program by following means.
Described QR sign indicating number reading device is a camera.
The present invention in the specific implementation, family gateway equipment adopts the mips system, two the dynamic base source file libpng and the libz that at first QR source code bag are relied on the linux system platform carry out cross compile, cross compile instrument chain is linux-mips, with the QR source code with and two storehouse source files relying on all successfully compiling become after the mips form, the executable file of mips form and the dynamic base that is relied on are installed in the file system of home gateway, the command-line tool of QR executable file supports text as input source, in order to generate the convenience that picture format and information are added, can adopt the txt text to import as information source, the gateway information that networking is required, for example: the SSID service set, and password is set up a txt text, input in the QR executable file, finally can generate the QR sign indicating number of PNG picture format, picture can be uploaded on the webpage and show, the computing machine of being convenient in the LAN (Local Area Network) is successfully downloaded this gateway information realization networking fast when networking, also can print and be attached on the device housings, during networking, the QR sign indicating number reading device of computing machine reads the PNG format picture that is posted on the family gateway equipment shell body and finishes quick networking.