The content of the invention
The purpose of the present invention be for prior art defect there is provided a kind of method of access gateway, can be to gatewayAccess processing is controlled, so as to realize effective equipment access-in management, is prevented the generation of gateway accessing mistake.
To achieve the above object, the embodiments of the invention provide a kind of method of access gateway, methods described includes:
Terminal device to be networked crosses the broadcast of channel-monitoring gateway;
In can not access state the gateway receive activation instruction;
The gateway activation, into access state, being sent by the channels broadcast allows access information;
The terminal device receives the permission access information by the channel, and pairing letter is sent to the gatewayBreath;
The terminal device is matched with the gateway, accesses the gateway.
Further, the gateway receives activation instruction specifically, the management software of the gateway is sent to the gatewayActivation instruction, so that the gateway receives the activation instruction.
Further, the gateway opens activation switch generation activation instruction, refers to so that the gateway receives the activationOrder.
Further, the unpaired message that the terminal device is sent to the gateway includes the equipment of the terminal deviceInformation.
Further, methods described also includes, and the gateway parses from the unpaired message and obtains the facility information,And record the facility information.
Further, also include after the terminal device accesses the gateway, the gateway, which is again introduced into, to be accessedState.
Further, the gateway be again introduced into can not access state specifically, by after very first time threshold value, instituteStating that gateway is again introduced into can not access state.
Further, the very first time threshold value is 30S.
The method of access gateway provided in an embodiment of the present invention, can be controlled, only to the opportunity of gateway accessing processingHaving can just access within the time being activated, and thus avoid the generation of access device access mistake.
Embodiment
Below by drawings and examples, technical scheme is described in further detail.
The method of access gateway provided in an embodiment of the present invention, in order to avoid terminal device is linked into the gateway of mistake, onlyIt may access by the lower gateway that can be accessed of control, thus avoid the generation of access device access mistake, therefore reduction terminalEquipment adds the possibility of wrong gateway, realizes by user's request networking.
Fig. 1 is the flow chart of the method for access gateway provided in an embodiment of the present invention, as illustrated, the present invention is specifically includedFollowing steps:
Step 101, terminal device to be networked crosses the broadcast of channel-monitoring gateway;
The terminal device of function Access Gateway waiting can be intelligent appliance equipment, and these equipment wish networking access gateway, thereforeOtherwise the gateway can not be accessed by the broadcast message with the transmission of the channel-monitoring gateway of gateway communication.
Step 102, in can not access state gateway receive activation instruction;
Under normal circumstances, gateway be operated in can not access state, when the state, any equipment is all to accessThe gateway, but can only be monitored by channel;Only it is only possible to access the gateway when gateway receives activation instruction.
Specifically, the mode of activation instruction has a lot, can be that software realizes that either hardware is realized.
For example, the management software of gateway sends activation instruction to the gateway, refer to so that the gateway receives the activationOrder.
Realized specifically, this implementation is exactly software, it is possible to use the management APP of gateway sends one to gateway and swashedInstruction living, so as to activate gateway.
For example, gateway opens activation switch generation activation instruction, so that the gateway receives the activation instruction.
Realized specifically, this implementation is exactly hardware, it is possible to use one physical hardware of setting presses on gatewayKey, when each click keys, will generate activation instruction.
Step 103, gateway activation, into access state, being sent by channels broadcast allows access information;
After gateway receives activation instruction, gateway is activated, and into access state, gateway passes through itself after activationChannels broadcast send allow access information, it is therefore an objective to allow the terminal device desired access to learn that the gateway is currently to access's.
Step 104, terminal device receives permission access information by channel, and unpaired message is sent to gateway;
After terminal device receives the information for allowing access by the channel with gateway, learn that the gateway at present can be withAccess, then send unpaired message to gateway.
Specifically, the unpaired message that terminal device is sent to gateway includes the facility information of the terminal device.
Identifier/identification number of the terminal device, or other numbers can be included in these facility informations, it is therefore an objective toThe information of the terminal device is informed to the gateway of access.
Gateway is parsed from unpaired message and obtains facility information, and facility information is recorded.
Gateway is received after unpaired message, and therefrom parsing obtains facility information, that is, obtains the knowledge of the terminal deviceOther information, these facility informations are recorded and preserved, so that the terminal device be identified.
Step 105, terminal device is matched with gateway, access gateway.
Specifically, after terminal device access gateway, gateway can be again introduced into can not access state.For example, passing throughAfter one time threshold, gateway is again introduced into can not access state.
The purpose so handled is, only in the specific time, and gateway is only access activation, that is, specific at thisTime range (very first time threshold value) in, gateway can just be accessed, after gateway is activated every time, reach very first time thresholdValue, such as 30S or 60S, gateway can be again introduced into can not access state, until next time be activated again.
It can thus be seen that the method for access gateway provided in an embodiment of the present invention, is generally all that processing can not access shapeState, in the state, terminal device can not all access the gateway;, can be by gateway by the setting of software or hardware switchActivation, allows for other-end equipment after activation and accesses the gateway;And set very first time threshold value, each netThe time for closing activation is exactly the time of very first time threshold value, and activationary time terminates, and gateway is again introduced into can not access state;AlsoIt is to say that the gateway could only be accessed in state of activation.
Therefore the inventive method realizes the control and management to gateway accessing, it is achieved thereby that terminal device will not mistakeAccess gateway, and be only possible to access by the lower gateway that can be accessed of control, thus avoid the hair of access device access mistakeIt is raw, therefore the possibility that terminal device adds wrong gateway is reduced, realize by user's request networking.
Professional should further appreciate that, each example described with reference to the embodiments described hereinUnit and algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, hard in order to clearly demonstrateThe interchangeability of part and software, generally describes the composition and step of each example according to function in the above description.These functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel can realize described function to each specific application using distinct methods, but this realizeIt is not considered that beyond the scope of the embodiment of the present invention.
The method that is described with reference to the embodiments described herein can use hardware, computing device the step of algorithmSoftware module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only storage(ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical fieldIn any other form of storage medium well known to interior.
Above-described embodiment, has been carried out further to the purpose of the present invention, technical scheme and beneficial effectDescribe in detail, should be understood that the embodiment that the foregoing is only the present invention, be not intended to limit the present inventionProtection domain, within the spirit and principles of the invention, any modification, equivalent substitution and improvements done etc. all should be includedWithin protection scope of the present invention.