Summary of the invention
For the problems referred to above that wireless management system management in-vehicle wireless device in prior art exists, one is now provided to be intended to easy to operate, and the wireless device management method that management in-vehicle wireless device is more perfect.
Concrete technical scheme is as follows:
A kind of wireless device management method, provides a plurality of AP equipment, and provides the management end of the described a plurality of AP equipment of a connection, comprise the following steps:
Step S1, AP equipment described at least one send a registration request to described management end;
Step S2, described management end, after the described registration request of reception, send a return information to corresponding described AP equipment, and are stored in a managing listings by described registration request, and divide into groups to the described AP equipment succeeded in registration;
Described return information, after receiving described return information, is saved to a memory module by step S3, described AP equipment.
Preferably, described management end comprises a database, in order to store described managing listings, also comprises in described database:
Grouping sheet, in order to preserve packet numbering, packet name, the secret key of safety and to shake hands interval time;
Equipment list, in order to preserve the physical address of the described AP equipment allowing registration, the type allowing the described AP equipment of registration, the system version allowing the described AP equipment of registration, the Policy Status of corresponding described AP equipment, the configuration status of corresponding described AP equipment, the configuration template numbering of corresponding described AP equipment, the version of described AP equipment built in content website, the state of described AP equipment built in content website;
Bug list, described bug list is in order to preserve abnormal log-on message and the error code of described AP equipment.
Preferably, before described step S1, the configuration file that described AP equipment loading one prestores is set up with described management end and is communicated.
Preferably, described registration request comprises: the system version of the physical address of described AP equipment, the type of described AP equipment, described AP equipment;
Described return information comprises: described packet numbering, the numbering of described AP equipment, the secret key of described safety, described in shake hands interval time and described error code.
Preferably, in described step S1, the timing in time sending described registration request of described AP equipment, if do not receive described return information more than a Preset Time, then resends described registration request, and extends described Preset Time until receive described return information.
Preferably, in described step S2, further comprising the steps of:
In receiving described registration request, step S21, described management end judge that whether the form of described registration request is correct, if incorrect, do not process and exit;
Step S22, described management end search the record corresponding with the described physical address in described registration request according to described registration request in described equipment list, if there is corresponding described record, perform step S23, if without the described record of correspondence, in described bug list, record the abnormal log-on message of the described AP equipment of a correspondence and generate the described AP equipment that an error code is sent to correspondence, and exiting;
Step S23, described AP equipment to be added in described managing listings according to described registration request and to divide into groups, sending described return information to corresponding described AP equipment simultaneously.
Preferably, in described step S3, comprise the following steps:
Step S31, described AP equipment, after receiving described return information, judge whether the error code value in described return information is zero, then perform step S32 if not, if then perform step S33;
Step S32, adjust the interval time that described AP equipment sends described registration request, and timing, in time arriving described interval time, resend described registration request, and exit;
Step S33, the described return information received carried out resolving and is saved to described memory module.
Preferably, described database is MYSQL.
Preferably, described AP equipment is wireless router.
Preferably, described management end is remote wireless management platform.
Technique scheme tool has the following advantages or beneficial effect: can realize registering fast a large amount of wireless devices and dividing into groups, thus wireless device is managed efficiently in units of group, the wireless device Comparison of Management overcome to a large amount of in prior art is loaded down with trivial details.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under the prerequisite of not making creative work, all belongs to the scope of protection of the invention.
It should be noted that, when not conflicting, the embodiment in the present invention and the feature in embodiment can combine mutually.
Below in conjunction with the drawings and specific embodiments, the invention will be further described, but not as limiting to the invention.
The present invention includes a kind of wireless device management method, be applied to the management of in-vehicle wireless device.
As shown in Figure 1, a kind of wireless device management method, provides a plurality of AP (AccessPoint access point) equipment, and provides the management end of a plurality of AP equipment of a connection, comprises the following steps:
Step S1, at least one AP equipment send a registration request to management end;
Step S2, management end, after reception registration request, send a return information to corresponding AP equipment, and are stored in a managing listings by registration request, and divide into groups to the AP equipment succeeded in registration;
Return information, after receiving return information, is saved to a memory module by step S3, AP equipment.
In technique scheme, registration request is sent to management end by AP equipment, management end is after the registration request receiving the transmission of AP equipment, AP equipment to correspondence sends a reply information, and registration request is stored in managing listings, the AP equipment succeeded in registration divides into groups by further management end, and the return information received is saved to memory module by AP equipment.
In one preferably execution mode, management end comprises a database, in order to storage administration list, also comprises in database:
Grouping sheet, in order to preserve packet numbering, packet name, the secret key of safety and to shake hands interval time;
Equipment list, in order to preserve the physical address of the AP equipment allowing registration, the type allowing the AP equipment of registration, the system version allowing the AP equipment of registration, the Policy Status of corresponding A P equipment, the configuration status of corresponding A P equipment, the configuration template numbering of corresponding A P equipment, the version of AP equipment built in content website, the state of AP equipment built in content website;
Bug list, bug list is in order to preserve abnormal log-on message and the error code of AP equipment.
In one preferably execution mode, before step S1, the configuration file that AP equipment loading one prestores is set up with management end and is communicated.
In one preferably execution mode, registration request comprises: the system version of the physical address of AP equipment, the type of AP equipment, AP equipment;
Return information comprises: the numbering of packet numbering, AP equipment, the secret key of safety, shake hands interval time and error code.
In one preferably execution mode, in step sl, the timing in time sending registration request of AP equipment, if do not receive return information more than a Preset Time, then resends registration request, and extends Preset Time until receive return information.
In a particular embodiment, above-mentioned Preset Time can be set to 3 seconds, if do not receive return information when first time sends registration request more than 3 seconds, then resend registration request, and Preset Time is increased to 6 seconds, the like Preset Time is the longest increases to 30 seconds, then need to check the problem of network as also do not received return information during more than 30 seconds.
In one preferably execution mode, as shown in Figure 2, in step s 2, further comprising the steps of:
In receiving registration request, step S21, management end judge that whether the form of registration request is correct, if incorrect, do not process and exit;
Step S22, management end search the record corresponding with the physical address in registration request according to registration request in equipment list, if there is corresponding record, perform step S23, if without the record of correspondence, in bug list, record the abnormal log-on message of the AP equipment of a correspondence and generate the AP equipment that an error code is sent to correspondence, and exiting;
Step S23, being added into by AP equipment in managing listings and dividing into groups according to registration request, the information that simultaneously sends a reply is to corresponding AP equipment.
In a particular embodiment, when AP equipment needs registration,
First AP equipment sends registration request to management end, after management end receives registration request, according to the AP equipment physical address searched the permission of mating with registration request in the equipment list of registration request in database and register, if without the AP equipment physical address that the permission of mating with registration request is registered, then send the return information that only comprises error code to corresponding AP equipment, and AP unit exception log-on message is saved in the bug list in database, corresponding error code can inquire about acquisition in bug list;
When the AP equipment physical address that there is the permission of mating with registration request in the equipment list in database and register, then comprise in the return information sent, packet numbering, AP device numbering, the secret key of safety, interval time of shaking hands, error code, registration request to be stored in a managing listings and to be divided into groups by the AP equipment succeeded in registration by management end, and then can carry out unified management to the AP equipment divided into groups.
In one preferably execution mode, as shown in Figure 3, in step s3, comprise the following steps:
Step S31, AP equipment, after receiving return information, judge whether the error code value in return information is zero, then perform step S32 if not, if then perform step S33;
Step S32, adjustment AP equipment send the interval time of registration request, and timing, when interarrival time, resend registration request, and exit;
Step S33, the return information received is carried out resolving and being saved to memory module.
In the particular embodiment, when AP equipment receives the return information of management end transmission,
AP equipment is in time receiving the return information that management end sends, return information is resolved and judges whether the error code in return information is zero, if not zero adjustment sends interval time of registration request, and start timing and then resend registration request when reaching interval time to management end;
AP equipment is in time receiving the return information that management end sends, return information is resolved and judges whether the error code in return information is zero, if return information comprises by zero, packet numbering, AP device numbering, the secret key of safety, interval time of shaking hands, error code, be saved to memory module, and AP equipment is according to shaking hands interval time in return information, in reach shake hands interval time time and management end connect.
In one preferably execution mode, database is MYSQL.
In one preferably execution mode, AP equipment is wireless router.
In one preferably execution mode, management end is remote wireless management platform.
Technique scheme tool has the following advantages or beneficial effect: can realize registering fast a large amount of wireless devices and dividing into groups, thus wireless device is managed efficiently in units of group, the wireless device Comparison of Management overcome to a large amount of in prior art is loaded down with trivial details.
These are only preferred embodiment of the present invention; not thereby embodiments of the present invention and protection range is limited; to those skilled in the art; should recognize and all should be included in the scheme that equivalent replacement done by all utilizations specification of the present invention and diagramatic content and apparent change obtain in protection scope of the present invention.