Disclosure of Invention
Aiming at the problems existing in the prior art that a wireless management system manages vehicle-mounted wireless equipment, the wireless equipment management method which aims at being convenient to operate and managing the vehicle-mounted wireless equipment more perfectly is provided.
The specific technical scheme is as follows:
a wireless device management method provides a plurality of AP devices and a management terminal connected with the AP devices, and comprises the following steps:
step S1, at least one AP device sends a registration request to the management end;
step S2, after receiving the registration request, the management terminal sends a reply message to the corresponding AP device, stores the registration request in a management list, and groups the AP devices that have successfully registered;
step S3, after receiving the reply message, the AP device stores the reply message in a storage module.
Preferably, the management terminal includes a database for storing the management list, and the database further includes:
the packet table is used for storing the packet number, the packet name, the security key and the handshake interval time;
a device table, configured to store a physical address of the AP device allowed to be registered, a type of the AP device allowed to be registered, a system version of the AP device allowed to be registered, a policy state corresponding to the AP device, a configuration template number corresponding to the AP device, a version of a content website built in the AP device, and a state of a content website built in the AP device;
a fault table to store exception registration information and error codes for the AP device.
Preferably, before the step S1, the AP device loads a pre-stored configuration file to establish communication with the management terminal.
Preferably, the registration request includes: a physical address of the AP device, a type of the AP device, a system version of the AP device;
the reply message includes: the packet number, the number of the AP device, the security key, the handshake interval time, and the error code.
Preferably, in the step S1, the AP device counts time when sending the registration request, and if the reply message is not received after a preset time, resends the registration request, and extends the preset time until the reply message is received.
Preferably, in step S2, the method further includes the steps of:
step S21, the management end determines whether the format of the registration request is correct after receiving the registration request, and if not, the management end does not process the registration request and exits the process;
step S22, the management end searches for a record corresponding to the physical address in the registration request in the device table according to the registration request, if there is a corresponding record, step S23 is executed, if there is no corresponding record, an abnormal registration information of a corresponding AP device is recorded in the fault table, an error code is generated and sent to the corresponding AP device, and the process exits;
step S23, adding the AP device to the management list according to the registration request, grouping the AP devices, and sending the reply information to the corresponding AP device.
Preferably, the step S3 includes the steps of:
step S31, after receiving the reply message, the AP device determines whether an error code value in the reply message is zero, if not, performs step S32, and if so, performs step S33;
step S32, adjusting the interval time for the AP device to send the registration request, timing, resending the registration request when the interval time is reached, and exiting;
and step S33, analyzing the received reply information and storing the analyzed reply information to the storage module.
Preferably, the database is MYSQL.
Preferably, the AP device is a wireless router.
Preferably, the management terminal is a remote wireless management platform.
The technical scheme has the following advantages or beneficial effects: the method and the device can realize quick registration and grouping of a large number of wireless devices, thereby efficiently managing the wireless devices by taking groups as units and overcoming the defect that the management of a large number of wireless devices in the prior art is more complicated.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
The invention is further described with reference to the following drawings and specific examples, which are not intended to be limiting.
The invention comprises a wireless device management method, which is applied to the management of vehicle-mounted wireless devices.
As shown in fig. 1, a method for managing wireless devices, which provides a plurality of AP (Access Point) devices and a management end connected to the AP devices, includes the following steps:
step S1, at least one AP device sends a registration request to the management terminal;
step S2, after receiving the registration request, the management end sends a reply message to the corresponding AP device, stores the registration request in a management list, and groups the AP devices that have successfully registered;
in step S3, after receiving the reply message, the AP device stores the reply message in a storage module.
In the above technical solution, the AP device sends a registration request to the management terminal, the management terminal sends reply information to the corresponding AP device after receiving the registration request sent by the AP device, and stores the registration request in the management list, the further management terminal groups the AP devices that have successfully registered, and the AP device stores the received reply information in the storage module.
In a preferred embodiment, the management terminal includes a database for storing the management list, and the database further includes:
the packet table is used for storing the packet number, the packet name, the security key and the handshake interval time;
the device table is used for storing the physical address of the AP device which is allowed to be registered, the type of the AP device which is allowed to be registered, the system version of the AP device which is allowed to be registered, the strategy state of the corresponding AP device, the configuration template number of the corresponding AP device, the version of a built-in content website of the AP device and the state of a built-in content website of the AP device;
and the fault table is used for storing the abnormal registration information and the error code of the AP equipment.
In a preferred embodiment, before step S1, the AP device loads a pre-stored configuration file to establish communication with the management side.
In a preferred embodiment, the registration request comprises: the physical address of the AP equipment, the type of the AP equipment and the system version of the AP equipment;
the reply message includes: a packet number, an AP device number, a security key, a handshake interval time, and an error code.
In a preferred embodiment, in step S1, the AP device counts the time when sending the registration request, and if the reply message is not received after a predetermined time, the AP device resends the registration request and extends the predetermined time until the reply message is received.
In a specific embodiment, the preset time may be set to 3 seconds, when the registration request is first sent, if no reply message is received in more than 3 seconds, the registration request is sent again, and the preset time is increased to 6 seconds, and by repeating this, the preset time may be increased to 30 seconds at the longest, and if no reply message is received in more than 30 seconds, a problem of the network needs to be checked.
In a preferred embodiment, as shown in fig. 2, in step S2, the method further includes the following steps:
step S21, the management end determines whether the format of the registration request is correct when receiving the registration request, and if not, the management end does not process the registration request and exits;
step S22, the management end searches the record corresponding to the physical address in the registration request in the device table according to the registration request, if the record is corresponding, the step S23 is executed, if the record is not corresponding, the abnormal registration information of the corresponding AP device is recorded in the fault table, an error code is generated and sent to the corresponding AP device, and the process is exited;
step S23, add the AP device to the management list according to the registration request and group it, and send the reply information back to the corresponding AP device.
In particular embodiments, when the AP device needs to register,
firstly, the AP equipment sends a registration request to a management end, after the management end receives the registration request, the physical address of the AP equipment which is matched with the registration request and allowed to be registered is searched in an equipment table in a database according to the registration request, if the physical address of the AP equipment which is matched with the registration request and allowed to be registered does not exist, reply information only containing error codes is sent to the corresponding AP equipment, abnormal registration information of the AP equipment is stored in a fault table in the database, and the corresponding error codes can be obtained by inquiring in the fault table;
when the physical address of the AP equipment which is matched with the registration request and allowed to be registered exists in the equipment table in the database, the sent reply information comprises a group number, an AP equipment number, a security key, handshake interval time and an error code, and the management end stores the registration request into a management list and groups the AP equipment which is successfully registered, so that the grouped AP equipment can be uniformly managed.
In a preferred embodiment, as shown in fig. 3, in step S3, the method includes the following steps:
step S31, after receiving the reply message, the AP device determines whether an error code value in the reply message is zero, if not, performs step S32, and if so, performs step S33;
step S32, adjusting the interval time of the AP device sending the registration request, timing, resending the registration request when the interval time is reached, and exiting;
and step S33, analyzing the received reply information and storing the analyzed reply information in a storage module.
In a specific embodiment, when the AP device receives the reply message sent by the management side,
when receiving reply information sent by a management end, the AP equipment analyzes the reply information and judges whether an error code in the reply information is zero or not, if not, the interval time for sending the registration request is adjusted, and timing is started, and when the interval time is reached, the registration request is sent to the management end again;
when receiving the reply information sent by the management end, the AP equipment analyzes the reply information and judges whether an error code in the reply information is zero, if the error code is zero, the AP equipment stores the reply information including a packet number, an AP equipment number, a security key, a handshake interval time and an error code to a storage module, and establishes connection with the management end when the handshake interval time is reached according to the handshake interval time in the reply information.
In a preferred embodiment, the database is MYSQL.
In a preferred embodiment, the AP device is a wireless router.
In a preferred embodiment, the management terminal is a remote wireless management platform.
The technical scheme has the following advantages or beneficial effects: the method and the device can realize quick registration and grouping of a large number of wireless devices, thereby efficiently managing the wireless devices by taking groups as units and overcoming the defect that the management of a large number of wireless devices in the prior art is more complicated.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.