A kind of wireless control tank position control method, access device and wireless controller
Technical field
The present invention relates to wireless controller technical field more particularly to a kind of wireless control tank position control method, accesses
Equipment and wireless controller.
Background technology
Wireless controller (Wireless Access Point Controller) is a kind of network equipment, for centralization
Control wireless access point, be a wireless network core, all wireless access point being responsible in wireless network, to wireless
Access point management includes:Issue configuration, modification relevant configured parameter, radio-frequency intelligent management, access security control etc..
In order to meet the various network configuration requirements of client, veneer card wireless controller has been unable to meet its business and needs
It asks, therefore, complete machine integrated wireless controller comes into being.User is after complete machine integrated wireless controller is used, Ke Yigen
According to the demand of user environment, the various apolegamy equipment of flexible access build the network configuration environment for meeting business demand.
The equipment of wireless controller has cabinet, fan, power supply, management board, business board by function point and exchanges board etc.;
Wherein, cabinet is divided into as more money cabinets, such as two scouring machine casees, six scouring machine casees and 14 scouring machine casees;Fan and power supply also have more moneys;
Management board, business board and power board etc., such as the different model of exchange chip model, are also classified into a variety of due to the difference of bottom hardware
Series, driver, the physical port arrangement of each series etc. is all not quite similar.
Current wireless controller using complete machine integrated design (such as Fig. 1), wherein, it is more including multiple management boards
A power board, multiple fans, multiple chassis power supplies etc..Complete machine integration at present is written with according to the slot number of each access device
Corresponding driver, because each slot position can only fix the corresponding equipment of access;When the equipment of different model to be replaced, press
According to current design, it is necessary to rewrite corresponding driver, autgmentability and durability are very poor.Especially in user if necessary
In the case of often replacing different access devices, then wireless controller design pattern can not support that user need to shift to an earlier date at present
The wireless controller of relevant device is customized, can not complete quickly to replace.
The content of the invention
For this reason, it may be necessary to provide a kind of wireless controller solution, each slot position of solution wireless controller, which can only be fixed, to be connect
Enter corresponding equipment, the problem of quick-replaceable of equipment on slot position can not be completed, reach setting for wireless controller fast changeable
Standby purpose.
To achieve the above object, a kind of wireless control tank position control method is inventor provided, applied to wireless control
Device or insertion equipment, realization method are as follows:
Include the following steps:After the equipment access signal for detecting slot position, the device identification of access device is read, is being driven
Driver corresponding with device identification is retrieved in procedure set, loads the driver retrieved.
Further, following steps are further included:If it is not retrieved in driver concentration corresponding with device identification
Driver then sends alarm signal.
Further, the driver integrates as balanced binary tree driver collection.
Further, retrieving driver corresponding with device identification includes following steps:
Step S10, judge whether driver collection present tree is empty tree, if present tree is empty tree, step S11, is not had
Retrieve driver;
Otherwise step S12, judge device identification value whether be equal to current tree node data field value, if equal to then walking
Rapid S13, driver is retrieved;
If not equal to if step S14, judge device identification whether be less than current tree node data field value, step
S15, retrieval left subtree;Otherwise step S16, retrieval right subtree;Above-mentioned steps S10 to the inspection of step S16 is used when retrieving subtree
Rope step.
Further, it is described in driver the step of retrieving to be concentrated to include:It is being stored in the driver of insertion equipment
Concentrate retrieval.
And the present invention also provides a kind of insertion equipment, for being inserted into wireless controller, further include access detection module,
Device identification read module, driver retrieval module and drive load module, wherein:
Access detection module is used to detect the equipment access signal of slot position;
Device identification read module is used to read the device identification of access device;
Driver retrieval module, which is used to concentrate in driver, retrieves driver corresponding with device identification;
The driver that drive load module retrieves for loading.
Further, further include alarm signal and send module, the alarm signal sends module for being examined in driver
Rope module sends alarm signal when driver concentration does not retrieve driver corresponding with device identification.
Further, driver collection memory module is further included, for store driver collection.
And the present invention also provides a kind of wireless controller, there are multiple slot positions, further include access detection module, equipment mark
Know read module, driver retrieval module and drive load module, wherein:
Access detection module is used to detect the equipment access signal of slot position;
Device identification read module is used to read the device identification of access device;
Driver retrieval module, which is used to concentrate in driver, retrieves driver corresponding with device identification;
The driver that drive load module retrieves for loading.
Further, further include alarm signal and send module, the alarm signal sends module for being examined in driver
Rope module sends alarm signal when driver concentration does not retrieve driver corresponding with device identification.
The prior art is different from, above-mentioned technical proposal has the following advantages that:Said program is used for complete machine integrated wireless control
On device processed, different model access device access wireless controller when, wireless controller can by device identification retrieve and
Load driver program realizes loading and access to access device, when facilitating the equipment of the various models of user's access, wireless controlled
Device processed can be supported, realize that various types of access devices are supported in a slot position, have durability, flexibility and easily extend excellent
Point.
Description of the drawings
Fig. 1 is the complete machine integrated wireless controller schematic diagram described in background technology;
Fig. 2 is the flow chart of the method for the embodiment of the present invention;
Fig. 3 is the flow chart of the search method of the embodiment of the present invention;
Fig. 4 is the structure diagram of access device embodiment of the present invention;
Fig. 5 is the structure diagram of wireless controller embodiment of the present invention.
Reference sign:
1st, access device,
10th, detection module is accessed,
11st, device identification read module,
12nd, driver retrieval module,
13rd, drive load module,
14th, alarm signal sends module,
15th, driver collection memory module,
2nd, wireless controller,
20th, slot position,
21st, detection module is accessed,
22nd, device identification read module,
23rd, driver retrieval module,
24th, drive load module,
25th, alarm signal sends module.
Specific embodiment
For the technology contents of technical solution, construction feature, the objects and the effects are described in detail, below in conjunction with specific reality
It applies example and attached drawing is coordinated to be explained in detail.
Refer to shown in Fig. 2, the present embodiment is a kind of wireless control tank position control method, applied to wireless controller or
Person is inserted into equipment.In the present embodiment, it is all the equipment that can access wireless control tank position to be inserted into equipment and access device, name
What is claimed is not both to have used the equipment (being inserted into equipment) of this method and existing equipment (access device) for the ease of distinguishing.When
When this method is applied to insertion equipment, insertion equipment should be linked into the slot position of wireless controller, can select to be linked into most
Small slot bit number access insertion equipment either before all access devices access, in order to be inserted into equipment to subsequent access
Equipment is loaded.The present embodiment includes the following steps:After step S101 detects the equipment access signal of slot position, that is, there is access
Equipment accesses the slot position of wireless controller.Step S102 reads the device identification of access device, and device identification can be stored in
The module number of a certain hardware module of feature string or access device of the memory module of access device.Then enter step
S103 is concentrated in driver and is retrieved driver corresponding with device identification, and driver concentration prestores multigroup device identification
With corresponding driver.The driver finally retrieved in step S104 loadings.After loading after driver, then connect
Enter equipment to add in wireless controller complete machine, it can be achieved that the corresponding function of access device.
In the above-described embodiments, the different access device in wireless control tank position is linked into, can be identified and drive
Get up, different access devices is accessed so as to be realized on a slot position, solve existing box wireless control tank position only
The problem of equipment specified can be used, and other equipment can not be used, realize wireless control tank bit multiplex and flexibility.Then use
Family can more be configured flexibly wireless controller, realize the multiplexing of wireless controller equipment access slot position, more to be suitable for
Application scenarios.
In a particular application, driver collection should as far as possible storage institute it is possible that access access device driver,
In order to the retrieval and loading of wireless controller or insertion equipment.When in a practical situation, may still having what is read
Device identification can not retrieve the situation of respective drive program in driver concentration, then can not load driver program.At this time without
Lane controller or insertion equipment can carry out other functions and step, such as carry out the detection of other access devices.Some
In embodiment, following steps are further included:If not retrieving driver corresponding with device identification in driver concentration,
Then send alarm signal.It can inform that the access device that user is accessed is not driven and loads by alarm signal, Yong Huke
To concentrate the device identification for increasing the access device and corresponding driver, then wireless controller or insertion in driver
Equipment can be driven and load.Alarm signal can be sound or visual alarm, and relative straightforward can to use
Easily know the situation of access device loading in family.
Above-described embodiment does not limit the storage form of driver collection, driver collection can be unordered storage or
Storage is ranked up according to a certain attribute, is such as ranked up storage according to the time or according to size.Yet in wireless controlled
In device processed or the insertion such equipment using embedded system of equipment, embedded system processing capacity itself is also unlike desktop system
There is very strong processing capacity like that, therefore, the retrieval that realize a variety of access devices and a variety of drivers is relatively time consuming.
In order to realize quick retrieval, in certain embodiments, driver integrates as balanced binary tree driver collection.Balanced binary tree
Driver collection is the driver collection that all access devices are stored using balanced binary tree algorithm (AVL).It is any in AVL
The height maximum differential of two size subsubtrees of node is one, so it is also referred to as height balanced tree.Use balanced binary tree
It is all O (log n) under average and worst case to search driver, and wherein n is the number of the driver of driver collection.
In balanced binary search tree, it will be seen that its height is generally all well maintained at O (log2n), behaviour is greatly reduced
The time complexity of work.Therefore, by introducing balanced binary tree store driver collection, it is pass that can solve through device identification
Keyword searches the problem of respective drive program is slower, so as to achieve the effect that quickly to be loaded after quickly searching.
In certain embodiments, retrieving corresponding with device identification driver in balanced binary tree driver collection can be with
Using following steps:As shown in figure 3, step S10, judge whether driver collection present tree is empty tree, if present tree is empty
Tree, then step S11, do not retrieve driver;Otherwise step S12, judge device identification value whether be equal to current tree node
Data field value, if equal to then step S13, retrieve driver;If not equal to if step S14, judge equipment mark
Know the value for the data field for whether being less than current tree node, then step S15, retrieval left subtree;Otherwise step S16, retrieval right subtree;
Above-mentioned steps S10 to the searching step of step S16 is used when retrieving subtree.When retrieving subtree (subclass), similary judgement is
No is empty tree (null set), then equally judges whether device identification value is equal to the value of the data field of current subtree without empty tree, does not have
Have if being equal to, then retrieve next stage subtree again, next stage subtree still uses above-mentioned search method.Certainly in some realities
It applies in example, the adjustment and modification of step can be carried out to step S10 to step S16, if do not carried out judging whether to be equal to step first
And carry out judging whether to be more than step, these are all the equivalent transformations to above-mentioned steps, and essence and the method for the present embodiment are
Consistent.Method can be driven the quick-searching of program through this embodiment, can be into if driver is retrieved
Row load driver program if not retrieving driver, can carry out other steps, such as send alarm signal.
Above-described embodiment does not limit the deposit position of driver collection, as driver collection can be stored in wireless control
In the memory module of device or in the memory module of access device, being stored in access device then can be in more newer driver
An access device with more newer driver collection is directly connected again, is avoided the operation to wireless controller, is facilitated user
Update.In certain embodiments, driver collection is stored in insertion equipment, then in driver the step of retrieving is concentrated to wrap
It includes:Retrieval is concentrated in the driver for being stored in insertion equipment.Insertion equipment can easily be pulled up simultaneously by being stored in insertion equipment
Driver collection is updated.
To sum up, this method by the loading to different access devices and for quick-searching method to access device into
Row driving matching and loading, that is, allow a slot position of wireless controller that can access different access devices, can also shorten drive
Dynamic program retrieval time achievees the effect that quickly to load.
And it the present invention also provides a kind of insertion equipment 1, as shown in figure 4, for being inserted into wireless controller, further includes and connects
Enter detection module 10, device identification read module 11, driver retrieval module 12 and drive load module 13.
Wherein, the equipment access signal that detection module 10 is used to detect slot position is accessed;Device identification read module 11 is used
In the device identification for reading access device;Driver retrieval module 12 is used to concentrate retrieval and device identification pair in driver
The driver answered;The driver that drive load module 13 retrieves for loading.When this insertion equipment 1 is inserted into wireless controlled
After device processed, after thering is new access device to be linked into wireless controller, it can be detected by access detection module 10, then equipment
Identity reading module 11 is read out the device identification of access device, and driver retrieval module 12 can search for corresponding
It is loaded after driver by drive load module 13, the purpose that access device is added to wireless controller is realized, when not
When same access device accesses same groove position, insertion equipment 1 all can be read out, searches for and load so that can in same groove position
To add in distinct device, the multiplexing capacity of wireless controller is substantially increased.Further, in certain embodiments, insertion is set
Standby 1 may search for all slot positions of wireless controller, the access device being not driven be determined whether, if so, can then read
The access device being not driven is taken, is then driven the retrieval and loading of program, ensures the access device on wireless controller
It may be added on wireless controller, realize complete machine integration.
In order to which when driver retrieval module 12 does not retrieve driver, prompting customer access equipment is not loaded,
In some embodiments, insertion equipment 1 further includes alarm signal and sends module 14, and alarm signal sends module 14 in driving journey
Sequence retrieves module when driver concentration does not retrieve driver corresponding with device identification, sends alarm signal.With
Family can know that driver concentrates the driver of no access device by alarm signal, then can be concentrated in driver
Device identification and the driver of the access device are added in, can be correctly loaded in monitored mode when then access device accesses again.
The storage location of driver collection is not limited in the embodiment of above insertion equipment 1, it is preferable that driver collection
It is stored in the driver collection memory module 15 of insertion equipment 1.Insertion equipment 1 can so be removed from wireless controller
And the update of driver collection is carried out, it is more convenient.
And the present invention also provides a kind of wireless controller 2, as shown in figure 5, with multiple slot positions 20, slot position 20 can connect
Enter a variety of access devices, such as fan apparatus, power-supply device, switching equipment and management board device.Further include access detection module
21st, device identification read module 22, driver retrieval module 23 and drive load module 24.
Wherein:Access detection module 21 is used to detect the equipment access signal of slot position;Device identification read module 22 is used
In the device identification for reading access device;Driver retrieval module 23 is used to concentrate retrieval and device identification pair in driver
The driver answered;The driver that drive load module 24 retrieves for loading.Different model is then accessed on slot position 20
During access device, the access of access device can be detected that then device identification read module 11 is right by access detection module 10
The device identification of access device is read out, and driver retrieval module 12 can be searched for after corresponding driver by driving
Load-on module 13 is loaded, then the access device of a slot position access different model can be achieved.Solves existing wireless control
One slot position of device only has access corresponding access device, it is necessary to the problem of can only being customized when accessing other equipment.
In certain embodiments, wireless controller 1 further includes alarm signal and sends module 25, and alarm signal sends module 25
For, when driver concentration does not retrieve driver corresponding with device identification, being sent in driver retrieval module
Alarm signal.It can inform that user's access device is not loaded by alarm signal, avoid user in debugging due to connecing
Enter equipment not to be loaded and can not normally debug the situation that the time is caused to waste.
All or part of step in the method that above-described embodiment is related to can be instructed by program relevant hardware come
It completes, the program can be stored in the storage medium that computer equipment can be read, for performing the various embodiments described above side
All or part of step described in method.The computer equipment, such as:Personal computer, server, the network equipment, intelligent sliding
Dynamic terminal, smart home device, wearable intelligent equipment, vehicle intelligent equipment etc.;The storage medium, such as:RAM、
ROM, magnetic disc, tape, CD, flash memory, USB flash disk, mobile hard disk, storage card, memory stick, webserver storage, network cloud storage
Deng.
The foregoing is merely the embodiment of the present invention, not thereby limit scope of patent protection of the invention, every utilization
It is related to be directly or indirectly used in other for the equivalent structure or equivalent flow shift that description of the invention and accompanying drawing content are made
Technical field, be included within the scope of the present invention.