CN107148041B - Detection method for abnormal operation of wireless access device and wireless access device - Google Patents
Detection method for abnormal operation of wireless access device and wireless access device Download PDFInfo
- Publication number
- CN107148041B CN107148041B CN201710469039.1A CN201710469039A CN107148041B CN 107148041 B CN107148041 B CN 107148041B CN 201710469039 A CN201710469039 A CN 201710469039A CN 107148041 B CN107148041 B CN 107148041B
- Authority
- CN
- China
- Prior art keywords
- wireless access
- access device
- time
- value
- clock initialization
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/04—Arrangements for maintaining operational condition
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Electric Clocks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种无线接入设备异常运行的检测方法,包括以下步骤:S10、在无线接入设备发生异常时,获取时钟初始化标志的值;S20、根据所述时钟初始化标志的值,获取所述无线接入设备发生异常的相对运行时间;S30、根据所述时钟初始化标志的值,进一步获取所述无线接入设备的参考运行时间;S40、根据所述无线接入设备的相对运行时间及参考运行时间,计算出所述无线接入设备的异常运行时刻。本发明无线接入设备在运行过程中发生异常时,利用始终初始化标志,识别出无线接入设备是否处于运行过程中,进而检测出无线接入设备在运行过程中发生异常的具体时刻,以帮助分析出现异常的原因。
The present invention discloses a method for detecting abnormal operation of a wireless access device, comprising the following steps: S10. Obtaining the value of a clock initialization flag when the wireless access device is abnormal; S20. Obtaining the value of the clock initialization flag according to the value of the clock initialization flag. The relative running time when the wireless access device is abnormal; S30, according to the value of the clock initialization flag, further obtain the reference running time of the wireless access device; S40, according to the relative running time of the wireless access device and the reference running time to calculate the abnormal running time of the wireless access device. When the wireless access device of the present invention is abnormal during the running process, the always initialization flag is used to identify whether the wireless access device is in the running process, and then the specific moment when the wireless access device is abnormal during the running process is detected, so as to help Analyze the cause of the exception.
Description
技术领域technical field
本发明属于无线接入设备技术领域,特别涉及无线接入设备异常运行的检测方法及无线接入设备。The present invention belongs to the technical field of wireless access equipment, and particularly relates to a method for detecting abnormal operation of wireless access equipment and the wireless access equipment.
背景技术Background technique
无线接入设备(AP)是组建小型无线局域网时最常用的设备。无线AP相当于一个连接有线网和无线网的桥梁,其主要作用是将各个无线网络客户端连接到一起,然后将无线网络接入以太网。A wireless access device (AP) is the most commonly used device when building a small wireless local area network. The wireless AP is equivalent to a bridge connecting the wired network and the wireless network. Its main function is to connect the various wireless network clients together, and then connect the wireless network to the Ethernet.
大多数的无线AP都支持多用户接入、数据加密、多速率发送等功能,一些无线AP还提供了完善的无线网络管理功能。对于家庭、办公室这样的小范围无线局域网而言,一般只需一台无线AP即可实现所有计算机的无线接入。无线AP的室内覆盖范围一般是30m~100m,不少厂商的无线AP产品可以互联,以增加WLAN覆盖面积。Most wireless APs support multi-user access, data encryption, multi-rate transmission and other functions, and some wireless APs also provide complete wireless network management functions. For small-scale wireless local area networks such as homes and offices, generally only one wireless AP can achieve wireless access to all computers. The indoor coverage of wireless APs is generally 30m to 100m, and wireless AP products from many manufacturers can be interconnected to increase the WLAN coverage area.
目前,在无线AP运行过程中,当无线AP出现异常运行时,日志会记录无线AP内核发生异常情况;但是无法得知无线AP内核发生异常的具体日期和时间。了解无线AP内核发生异常的具体日期和时间,对寻找无线AP内核发生异常的原因有着一定的帮助。At present, when the wireless AP runs abnormally, the log will record the abnormality of the wireless AP core; however, it is impossible to know the specific date and time when the wireless AP core is abnormal. Knowing the specific date and time when the wireless AP core is abnormal is helpful to find the cause of the abnormal wireless AP core.
发明内容SUMMARY OF THE INVENTION
本发明提供的技术方案如下:The technical scheme provided by the present invention is as follows:
本发明提供一种无线接入设备异常运行的检测方法,包括以下步骤:S10、在无线接入设备发生异常时,获取时钟初始化标志的值;S20、根据所述时钟初始化标志的值,获取所述无线接入设备发生异常的相对运行时间;S30、根据所述时钟初始化标志的值,进一步获取所述无线接入设备的参考运行时间;S40、根据所述无线接入设备的相对运行时间及参考运行时间,计算出所述无线接入设备的异常运行时刻;所述相对运行时间是指:在所述无线接入设备发生异常时,所述无线接入设备相对于该无线接入设备上电或上一次连接网络时所运行的时间戳;所述参考运行时间是指:在参考地区内所述无线接入设备在上电或上一次连接网络时的系统时间。The present invention provides a method for detecting abnormal operation of a wireless access device, comprising the following steps: S10. When an abnormality occurs in the wireless access device, obtain the value of a clock initialization flag; S20, obtain the value of the clock initialization flag according to the value of the clock initialization flag. S30. According to the value of the clock initialization flag, further obtain the reference operation time of the wireless access device; S40, according to the relative operation time of the wireless access device and The abnormal running time of the wireless access device is calculated with reference to the running time; the relative running time refers to: when the wireless access device is abnormal, the wireless access device is relatively The time stamp when the wireless access device is powered on or connected to the network last time; the reference running time refers to the system time when the wireless access device is powered on or connected to the network last time in the reference area.
进一步,在所述步骤S10之前还包括:S01、在时钟初始化流程中设置时钟初始化标志;S02、当完成时钟初始化,所述时钟初始化标志的值置为1;S03、当未完成时钟初始化,所述时钟初始化标志的值置为0。Further, before the step S10, it also includes: S01, setting a clock initialization flag in the clock initialization process; S02, when the clock initialization is completed, the value of the clock initialization flag is set to 1; S03, when the clock initialization is not completed, all The value of the clock initialization flag described above is set to 0.
进一步,所述步骤S20包括:S21、判断所述时钟初始化标志的值是否为1;S22、当所述时钟初始化标志的值为1时,则获取所述无线接入设备发生异常的相对运行时间;S23、当所述时钟初始化标志的值为0时,则记录所述无线接入设备发生异常的相对运行时间。Further, the step S20 includes: S21, judging whether the value of the clock initialization flag is 1; S22, when the value of the clock initialization flag is 1, acquiring the relative running time of the abnormality of the wireless access device ; S23, when the value of the clock initialization flag is 0, record the relative running time of the abnormality of the wireless access device.
进一步,所述步骤S30包括:S31、当所述时钟初始化标志的值为1时,则进一步获取所述无线接入设备的参考运行时间。Further, the step S30 includes: S31, when the value of the clock initialization flag is 1, further acquiring the reference running time of the wireless access device.
进一步,还包括以下步骤:S50、根据所述无线接入设备的异常运行时刻、以及所述参考地区和当地地区间的地区时间差,计算出并记录所述无线接入设备的当地异常运行时刻;所述当地地区包括:所述无线接入设备所处地区、管理员所处地区。Further, it also includes the following steps: S50, according to the abnormal operation time of the wireless access device and the regional time difference between the reference area and the local area, calculate and record the local abnormal operation time of the wireless access device; The local area includes: the area where the wireless access device is located and the area where the administrator is located.
本发明还提供一种无线接入设备,包括:获取模块,用于在无线接入设备发生异常时,获取时钟初始化标志的值;所述获取模块,还用于根据所述时钟初始化标志的值,获取所述无线接入设备发生异常的相对运行时间;所述获取模块,还用于根据所述时钟初始化标志的值,进一步获取所述无线接入设备的参考运行时间;计算模块,用于根据所述无线接入设备的相对运行时间及参考运行时间,计算出所述无线接入设备的异常运行时刻;所述相对运行时间是指:在所述无线接入设备发生异常时,所述无线接入设备相对于该无线接入设备上电或上一次连接网络时所运行的时间戳;所述参考运行时间是指:在参考地区内所述无线接入设备在上电或上一次连接网络时的系统时间。The present invention also provides a wireless access device, comprising: an acquisition module for acquiring the value of a clock initialization flag when an abnormality occurs in the wireless access device; the acquisition module is further used for obtaining the value of the clock initialization flag according to the value of the clock initialization flag , to obtain the relative running time of the wireless access device when the abnormality occurs; the obtaining module is further configured to further obtain the reference running time of the wireless access device according to the value of the clock initialization flag; the calculation module is used for According to the relative running time of the wireless access device and the reference running time, the abnormal running time of the wireless access device is calculated; the relative running time refers to: when the wireless access device is abnormal, the The time stamp of the wireless access device relative to the time when the wireless access device was powered on or connected to the network last time; the reference running time refers to the time when the wireless access device was powered on or last connected in the reference area System time when networked.
进一步,还包括:设置模块,用于在时钟初始化流程中设置时钟初始化标志;当完成时钟初始化,所述时钟初始化标志的值置为1;当未完成时钟初始化,所述时钟初始化标志的值置为0。Further, it also includes: a setting module for setting the clock initialization flag in the clock initialization process; when the clock initialization is completed, the value of the clock initialization flag is set to 1; when the clock initialization is not completed, the value of the clock initialization flag is set to 1 is 0.
进一步,还包括:判断模块,用于判断所述时钟初始化标志的值是否为1;所述获取模块,还用于当所述时钟初始化标志的值为1时,则获取所述无线接入设备发生异常的相对运行时间;记录模块,用于当所述时钟初始化标志的值为0时,则记录所述无线接入设备发生异常的相对运行时间。Further, it also includes: a judging module for judging whether the value of the clock initialization flag is 1; the acquiring module is also used for acquiring the wireless access device when the value of the clock initialization flag is 1 The relative running time when the abnormality occurs; the recording module is configured to record the relative running time when the abnormality occurs in the wireless access device when the value of the clock initialization flag is 0.
进一步,所述获取模块,还用于当所述时钟初始化标志的值为1时,则进一步获取所述无线接入设备的参考运行时间。Further, the acquiring module is further configured to further acquire the reference running time of the wireless access device when the value of the clock initialization flag is 1.
进一步,所述计算模块,还用于根据所述无线接入设备的异常运行时刻、以及所述参考地区和当地地区间的地区时间差,计算出并记录所述无线接入设备的当地异常运行时刻;所述当地地区包括:所述无线接入设备所处地区、管理员所处地区。Further, the calculation module is further configured to calculate and record the local abnormal operation time of the wireless access device according to the abnormal operation time of the wireless access device and the regional time difference between the reference area and the local area ; The local area includes: the area where the wireless access device is located and the area where the administrator is located.
与现有技术相比,本发明提供的无线接入设备异常运行的检测方法及无线接入设备,具有以下有益效果:Compared with the prior art, the method for detecting abnormal operation of a wireless access device and the wireless access device provided by the present invention have the following beneficial effects:
1)、本发明无线接入设备在运行过程中发生异常时,利用始终初始化标志,识别出无线接入设备是否处于运行过程中,进而检测出无线接入设备在运行过程中发生异常的具体时刻,以帮助分析出现异常的原因。1), when the wireless access device of the present invention is abnormal during the running process, use the always initialized flag to identify whether the wireless access device is in the running process, and then detect the specific moment when the wireless access device is abnormal during the running process. , to help analyze the cause of the exception.
2)、本发明利用始终初始化标志,识别出无线接入设备是否处于运行过程中,首先检测出其无线接入设备发生异常的相对运行时间,进而检测出其无线接入设备发生异常的参考运行时间;最后计算得到无线接入设备在运行过程中发生异常的具体时。2), the present invention uses the always initialization flag to identify whether the wireless access device is in the running process, firstly detects the relative running time of its wireless access device abnormality, and then detects the abnormal reference operation of its wireless access device. time; finally, the specific time when an abnormality occurs in the wireless access device during operation is obtained by calculation.
3)、本发明无线接入设备在正常运行前,也即在初始化过程中,出现异常情况时,记录其无线接入设备发生异常的相对时间。3) Before the wireless access device of the present invention operates normally, that is, during the initialization process, when an abnormal situation occurs, the relative time when the wireless access device is abnormal is recorded.
4)、本发明检测出无线接入设备在运行过程中发生异常的具体时刻后,还可以将其具体时刻转换成当地异常时刻,从而便于用户查看。4) After the present invention detects the specific time when the wireless access device is abnormal during the running process, the specific time can also be converted into the local abnormal time, so as to facilitate the user to check.
附图说明Description of drawings
下面将以明确易懂的方式,结合附图说明优选实施方式,对一种无线接入设备异常运行的检测方法及无线接入设备的上述特性、技术特征、优点及其实现方式予以进一步说明。In the following, the preferred embodiments will be described with reference to the accompanying drawings in a clear and easy-to-understand manner, and a method for detecting abnormal operation of a wireless access device and the above-mentioned characteristics, technical features, advantages and implementation methods of the wireless access device will be further described.
图1是本发明一种无线接入设备异常运行的检测方法的流程示意图;1 is a schematic flowchart of a method for detecting abnormal operation of a wireless access device according to the present invention;
图2是本发明另一种无线接入设备异常运行的检测方法的流程示意图;2 is a schematic flowchart of another method for detecting abnormal operation of a wireless access device according to the present invention;
图3是本发明再一种无线接入设备异常运行的检测方法的流程示意图;3 is a schematic flowchart of still another method for detecting abnormal operation of a wireless access device according to the present invention;
图4是本发明一种无线接入设备的组成结构示意图;FIG. 4 is a schematic diagram of the composition structure of a wireless access device according to the present invention;
图5是本发明又一种无线接入设备异常运行的检测方法的流程示意图;5 is a schematic flowchart of another method for detecting abnormal operation of a wireless access device according to the present invention;
图6是本发明一种无线接入设备的部分内核启动流程示意图。FIG. 6 is a schematic diagram of a partial kernel startup process of a wireless access device according to the present invention.
附图标号说明:Description of reference numbers:
10、设置模块,20、获取模块,30、判断模块,40、计算模块,50、记录模块。10. Setting module, 20, Obtaining module, 30, Judging module, 40, Calculating module, 50, Recording module.
具体实施方式Detailed ways
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对照附图说明本发明的具体实施方式。显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图,并获得其他的实施方式。In order to more clearly describe the embodiments of the present invention or the technical solutions in the prior art, the specific embodiments of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative efforts, and obtain other implementations.
为使图面简洁,各图中只示意性地表示出了与本发明相关的部分,它们并不代表其作为产品的实际结构。另外,以使图面简洁便于理解,在有些图中具有相同结构或功能的部件,仅示意性地绘示了其中的一个,或仅标出了其中的一个。在本文中,“一个”不仅表示“仅此一个”,也可以表示“多于一个”的情形。In order to keep the drawings concise, the drawings only schematically show the parts related to the present invention, and they do not represent its actual structure as a product. In addition, in order to make the drawings concise and easy to understand, in some drawings, only one of the components having the same structure or function is schematically shown, or only one of them is marked. As used herein, "one" not only means "only one", but also "more than one".
如图1所示,根据本发明的一个实施例,一种无线接入设备异常运行的检测方法,包括以下步骤:优选的,还包括:S01、在时钟初始化流程中设置时钟初始化标志;As shown in FIG. 1, according to an embodiment of the present invention, a method for detecting abnormal operation of a wireless access device includes the following steps: preferably, it further includes: S01, setting a clock initialization flag in a clock initialization process;
S02、当完成时钟初始化,所述时钟初始化标志的值置为1;S02, when the clock initialization is completed, the value of the clock initialization flag is set to 1;
S03、当未完成时钟初始化,所述时钟初始化标志的值置为0。S03. When the clock initialization is not completed, the value of the clock initialization flag is set to 0.
S10、在无线接入设备发生异常时,获取时钟初始化标志的值;S10. When an abnormality occurs in the wireless access device, obtain the value of the clock initialization flag;
S20、根据所述时钟初始化标志的值,获取所述无线接入设备发生异常的相对运行时间;S20, according to the value of the clock initialization flag, obtain the relative running time of the abnormality of the wireless access device;
S30、根据所述时钟初始化标志的值,进一步获取所述无线接入设备的参考运行时间;S30, further acquiring the reference running time of the wireless access device according to the value of the clock initialization flag;
S40、根据所述无线接入设备的相对运行时间及参考运行时间,计算出所述无线接入设备的异常运行时刻。S40. Calculate the abnormal running time of the wireless access device according to the relative running time and the reference running time of the wireless access device.
具体的,在内核启动流程中定时器的时钟初始化流程的末尾,设置时钟初始化标志printk_time_finish_initialization。当定时器完成时钟初始化后,设置时钟初始化标志printk_time_finish_initialization=1;当定时器未完成时钟初始化后,设置时钟初始化标志printk_time_finish_initialization=0。在无线接入设备运行过程中,也即无线接入设备完成内核启动流程;当无线接入设备发生异常时,例如:通讯中断、死机等,获取时钟初始化标志printk_time_finish_initialization的值为1还是0。再根据时钟初始化标志printk_time_finish_initialization的值,获取无线接入设备发生异常的相对运行时间、参考运行时间;进而计算出无线接入设备的异常运行时刻。Specifically, at the end of the clock initialization process of the timer in the kernel startup process, the clock initialization flag printk_time_finish_initialization is set. After the timer completes the clock initialization, set the clock initialization flag printk_time_finish_initialization=1; when the timer has not completed the clock initialization, set the clock initialization flag printk_time_finish_initialization=0. During the operation of the wireless access device, that is, the wireless access device completes the kernel startup process; when an abnormality occurs in the wireless access device, such as communication interruption, crash, etc., the value of the clock initialization flag printk_time_finish_initialization is 1 or 0. Then, according to the value of the clock initialization flag printk_time_finish_initialization, the relative running time and the reference running time of the abnormality of the wireless access device are obtained, and then the abnormal running time of the wireless access device is calculated.
如图2所示,根据本发明的另一个实施例,一种无线接入设备异常运行的检测方法,包括以下步骤:优选的,还包括:S01、在时钟初始化流程中设置时钟初始化标志;As shown in FIG. 2, according to another embodiment of the present invention, a method for detecting abnormal operation of a wireless access device includes the following steps: preferably, it further includes: S01, setting a clock initialization flag in a clock initialization process;
S02、当完成时钟初始化,所述时钟初始化标志的值置为1;S02, when the clock initialization is completed, the value of the clock initialization flag is set to 1;
S03、当未完成时钟初始化,所述时钟初始化标志的值置为0。S03. When the clock initialization is not completed, the value of the clock initialization flag is set to 0.
S10、在无线接入设备发生异常时,获取时钟初始化标志的值;S10. When an abnormality occurs in the wireless access device, obtain the value of the clock initialization flag;
S21、判断所述时钟初始化标志的值是否为1;S21, judging whether the value of the clock initialization flag is 1;
S22、当所述时钟初始化标志的值为1时,则获取所述无线接入设备发生异常的相对运行时间;S22. When the value of the clock initialization flag is 1, obtain the relative running time of the abnormality of the wireless access device;
S23、当所述时钟初始化标志的值为0时,则记录所述无线接入设备发生异常的相对运行时间;所述相对运行时间是指:在所述无线接入设备发生异常时,所述无线接入设备相对于该无线接入设备上电或上一次连接网络时所运行的时间戳。S23. When the value of the clock initialization flag is 0, record the relative running time when the wireless access device is abnormal; the relative running time refers to: when the wireless access device is abnormal, the The time stamp of the wireless access device relative to the time when the wireless access device was powered on or last connected to the network.
S31、当所述时钟初始化标志的值为1时,则进一步获取所述无线接入设备的参考运行时间;所述参考运行时间是指:在参考地区内所述无线接入设备在上电或上一次连接网络时的系统时间。S31. When the value of the clock initialization flag is 1, further obtain the reference running time of the wireless access device; the reference running time refers to: in the reference area, the wireless access device is powered on or The system time when the network was last connected.
S40、根据所述无线接入设备的相对运行时间及参考运行时间,计算出所述无线接入设备的异常运行时刻。S40. Calculate the abnormal running time of the wireless access device according to the relative running time and the reference running time of the wireless access device.
具体的,本发明主要是计算无线接入设备运行过程中,发生异常的异常运行时刻。当无线接入设备上设置有晶体振荡器时,其时间戳、系统时间是依据无线接入设备上电时得到;当无线接入设备上没有设置有晶体振荡器时,其时间戳、系统时间是依据无线接入设备上网时进行更新。Specifically, the present invention mainly calculates the abnormal running time when an abnormality occurs during the running process of the wireless access device. When a crystal oscillator is set on the wireless access device, its timestamp and system time are obtained when the wireless access device is powered on; when there is no crystal oscillator set on the wireless access device, its timestamp and system time It is updated when the wireless access device surfs the Internet.
当时钟初始化标志printk_time_finish_initialization的值为1时,内核启动流程中的定时器,完成时钟初始化;内核启动流程的具体流程,请参见现有技术及图6,此处不在详细赘述。首先获取无线接入设备相对于该无线接入设备上电或上一次连接网络时所运行的时间戳,例如300秒。再获取在参考地区内无线接入设备在上电或上一次连接网络时的系统时间,例如2010年06月10日、上午10:10。根据系统时间,例如2010年06月10日、上午10:10,时间戳,例如300秒;计算出无线接入设备的异常运行时刻为2010年06月10日、上午10:15。When the value of the clock initialization flag printk_time_finish_initialization is 1, the kernel starts the timer in the process to complete the clock initialization. For the specific process of the kernel start process, please refer to the prior art and FIG. 6 , which will not be described in detail here. First, the time stamp of the wireless access device relative to the time when the wireless access device was powered on or connected to the network last time is obtained, for example, 300 seconds. Then obtain the system time when the wireless access device in the reference area was powered on or connected to the network last time, for example, June 10, 2010, 10:10 am. According to the system time, such as June 10, 2010, 10:10 am, and the timestamp, such as 300 seconds; the abnormal operation time of the wireless access device is calculated as June 10, 2010, 10:15 am.
当时钟初始化标志printk_time_finish_initialization的值0时,内核启动流程中的定时器,未完成时钟初始化,也即无线接入设备未运行;无线接入设备就出现异常,直接记录无线接入设备相对于该无线接入设备上电或上一次连接网络时所运行的时间戳,例如300秒。When the value of the clock initialization flag printk_time_finish_initialization is 0, the kernel starts the timer in the process, and the clock initialization is not completed, that is, the wireless access device is not running; the wireless access device is abnormal and directly records the wireless access device relative to the wireless access device. The timestamp of when the access device was powered on or last connected to the network, for example, 300 seconds.
如图3所示,根据本发明的又一个实施例,一种无线接入设备异常运行的检测方法,包括以下步骤:优选的,还包括:S01、在时钟初始化流程中设置时钟初始化标志;As shown in FIG. 3, according to another embodiment of the present invention, a method for detecting abnormal operation of a wireless access device includes the following steps: preferably, it further includes: S01, setting a clock initialization flag in a clock initialization process;
S02、当完成时钟初始化,所述时钟初始化标志的值置为1;S02, when the clock initialization is completed, the value of the clock initialization flag is set to 1;
S03、当未完成时钟初始化,所述时钟初始化标志的值置为0。S03. When the clock initialization is not completed, the value of the clock initialization flag is set to 0.
S10、在无线接入设备发生异常时,获取时钟初始化标志的值;S10. When an abnormality occurs in the wireless access device, obtain the value of the clock initialization flag;
S21、判断所述时钟初始化标志的值是否为1;S21, judging whether the value of the clock initialization flag is 1;
S22、当所述时钟初始化标志的值为1时,则获取所述无线接入设备发生异常的相对运行时间;S22. When the value of the clock initialization flag is 1, obtain the relative running time of the abnormality of the wireless access device;
S23、当所述时钟初始化标志的值为0时,则记录所述无线接入设备发生异常的相对运行时间;所述相对运行时间是指:在所述无线接入设备发生异常时,所述无线接入设备相对于该无线接入设备上电或上一次连接网络时所运行的时间戳。S23. When the value of the clock initialization flag is 0, record the relative running time when the wireless access device is abnormal; the relative running time refers to: when the wireless access device is abnormal, the The time stamp of the wireless access device relative to the time when the wireless access device was powered on or last connected to the network.
S31、当所述时钟初始化标志的值为1时,则进一步获取所述无线接入设备的参考运行时间;所述参考运行时间是指:在参考地区内所述无线接入设备在上电或上一次连接网络时的系统时间。S31. When the value of the clock initialization flag is 1, further obtain the reference running time of the wireless access device; the reference running time refers to: in the reference area, the wireless access device is powered on or The system time when the network was last connected.
S40、根据所述无线接入设备的相对运行时间及参考运行时间,计算出所述无线接入设备的异常运行时刻。S40. Calculate the abnormal running time of the wireless access device according to the relative running time and the reference running time of the wireless access device.
S50、根据所述无线接入设备的异常运行时刻、以及所述参考地区和当地地区间的地区时间差,计算出并记录所述无线接入设备的当地异常运行时刻;所述当地地区包括:所述无线接入设备所处地区、管理员所处地区。S50, according to the abnormal operation time of the wireless access device and the regional time difference between the reference area and the local area, calculate and record the local abnormal operation time of the wireless access device; the local area includes: all The area where the wireless access device is located and the area where the administrator is located.
具体的,当无线接入设备位于A地区,例如北京;管理员位于B地区,例如美国;无线接入设备的异常运行时刻是指无线接入设备在A地区的异常运行时刻;当管理员位于B地区时,将无线接入设备在A地区的异常运行时刻转换成无线接入设备在B地区的异常运行时刻。Specifically, when the wireless access device is located in region A, such as Beijing; the administrator is located in region B, such as the United States; the abnormal operation time of the wireless access device refers to the abnormal operation time of the wireless access device in region A; In area B, the abnormal operation time of the wireless access device in area A is converted into the abnormal operation time of the wireless access device in area B.
当无线接入设备位于B地区(例如新疆)、且连接网络时,无线接入设备是按照网络时间计算异常运行时刻,若网络是按照A地区(北京)进行计时;将无线接入设备的A地区异常运行时刻转换成无线接入设备在B地区的异常运行时刻。When the wireless access device is located in region B (such as Xinjiang) and is connected to the network, the wireless access device calculates the abnormal running time according to the network time. If the network is timed according to region A (Beijing); The abnormal operation time of the region is converted into the abnormal operation time of the wireless access device in the B region.
如图4所示,根据本发明的一个实施例,一种无线接入设备,包括:优选的,还包括:设置模块10,用于在时钟初始化流程中设置时钟初始化标志;当完成时钟初始化,所述时钟初始化标志的值置为1;当未完成时钟初始化,所述时钟初始化标志的值置为0。As shown in FIG. 4 , according to an embodiment of the present invention, a wireless access device includes: preferably, further includes: a setting
获取模块20,用于在无线接入设备发生异常时,获取时钟初始化标志的值;The obtaining
判断模块30,用于判断所述时钟初始化标志的值是否为1;Judging
所述获取模块20,还用于当所述时钟初始化标志的值为1时,则获取所述无线接入设备发生异常的相对运行时间;The acquiring
记录模块50,用于当所述时钟初始化标志的值为0时,则记录所述无线接入设备发生异常的相对运行时间;所述相对运行时间是指:在所述无线接入设备发生异常时,所述无线接入设备相对于该无线接入设备上电或上一次连接网络时所运行的时间戳。The
所述获取模块20,还用于当所述时钟初始化标志的值为1时,则进一步获取所述无线接入设备的参考运行时间;所述参考运行时间是指:在参考地区内所述无线接入设备在上电或上一次连接网络时的系统时间。The
计算模块40,用于根据所述无线接入设备的相对运行时间及参考运行时间,计算出所述无线接入设备的异常运行时刻。The
所述计算模块40,还用于根据所述无线接入设备的异常运行时刻、以及所述参考地区和当地地区间的地区时间差,计算出并利用所述记录模块50记录所述无线接入设备的当地异常运行时刻;所述当地地区包括:所述无线接入设备所处地区、管理员所处地区。The
如图5所示,根据本发明的又一个实施例,一种无线接入设备异常运行的检测方法,包括以下步骤:时间、定时器初始化完成后设置初始化完成标记printk_time_finish_initialization,并置1。修改内核打印函数显示时间戳函数代码为显示日期和时间;As shown in FIG. 5 , according to another embodiment of the present invention, a method for detecting abnormal operation of a wireless access device includes the following steps: setting an initialization completion flag printk_time_finish_initialization after completion of time and timer initialization, and setting it to 1. Modify the kernel print function to display the timestamp function code to display the date and time;
进入vprintk()函数,判断时钟初始化是否完成;即查看初始化完成标记printk_time_finish_initialization的值是否为1;当初始化完成标记printk_time_finish_initialization的值为0时,打印时间戳;该时间戳是自AP上电后的相对时间,并不是该异常信息出现的具体时间。当初始化完成标记printk_time_finish_initialization的值为1时,调用do_gettime ofday()函数,获取当前时间,do_gettime ofday()函数会利用时间戳、系统时间得到当前时间。进而调用time_to_tm()函数,将当前时间转换为当地时间。将打印的时间戳、当地时间返回时间标量tbuf,记录打印的时间戳、当地时间。Enter the vprintk() function to determine whether the clock initialization is completed; that is, check whether the value of the initialization completion flag printk_time_finish_initialization is 1; when the value of the initialization completion flag printk_time_finish_initialization is 0, print the timestamp; the timestamp is the relative value since the AP is powered on. The time is not the specific time when the abnormal information appears. When the value of the initialization completion flag printk_time_finish_initialization is 1, call the do_gettime ofday() function to get the current time, and the do_gettime ofday() function will use the timestamp and the system time to get the current time. Then call the time_to_tm() function to convert the current time to local time. Return the printed timestamp and local time to the time scalar tbuf, and record the printed timestamp and local time.
printk()是在内核中运行的向控制台输出显示的函数。通过修改该函数,设置时钟初始化完成标志,初始化完成后调用时间获取函数,获取并更新时间。实现AP运行过程中调用该函数打印信息到屏幕时候,信息前面加上当前日期和时间,从而实现定位AP运行异常出现的时刻。printk() is a function that runs in the kernel to display console output. By modifying this function, set the clock initialization completion flag, and call the time acquisition function after initialization to acquire and update the time. When calling this function to print information to the screen during the AP running process, the current date and time are added in front of the information, so as to locate the moment when the AP runs abnormally.
传统地,AP(access point)设备在使用过程中有时候会出现异常,通过Telnet或者Serial在屏幕上查看打印信息,只能查看异常信息(通过printk函数打印)前面的时间戳。通过printk()函数打印到屏幕的信息可以查看自AP上电后运行的相对时间。Traditionally, AP (access point) devices sometimes have exceptions during use. To view the print information on the screen through Telnet or Serial, only the time stamp in front of the exception information (printed by the printk function) can be viewed. The information printed to the screen by the printk() function can be used to view the relative running time since the AP was powered on.
应当说明的是,上述实施例均可根据需要自由组合。以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。It should be noted that the above embodiments can be freely combined as required. The above are only the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made. It should be regarded as the protection scope of the present invention.
Claims (4)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710469039.1A CN107148041B (en) | 2017-06-20 | 2017-06-20 | Detection method for abnormal operation of wireless access device and wireless access device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710469039.1A CN107148041B (en) | 2017-06-20 | 2017-06-20 | Detection method for abnormal operation of wireless access device and wireless access device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107148041A CN107148041A (en) | 2017-09-08 |
| CN107148041B true CN107148041B (en) | 2020-12-18 |
Family
ID=59782623
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710469039.1A Active CN107148041B (en) | 2017-06-20 | 2017-06-20 | Detection method for abnormal operation of wireless access device and wireless access device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107148041B (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101094050A (en) * | 2007-07-24 | 2007-12-26 | 中兴通讯股份有限公司 | Method for capturing information of task of leading resetting system or device failure |
| CN101247573A (en) * | 2007-02-16 | 2008-08-20 | 大唐移动通信设备有限公司 | A clock and operation and maintenance monitoring board and its master-standby switching method |
| CN102300001A (en) * | 2011-09-14 | 2011-12-28 | 惠州Tcl移动通信有限公司 | Method for preventing memory card of mobile terminal from frequent hot plug and mobile terminal |
| CN104410400A (en) * | 2014-09-26 | 2015-03-11 | 惠州市亿能电子有限公司 | Real-time clock synchronization circuit of battery management system and method thereof |
| CN105190564A (en) * | 2013-04-11 | 2015-12-23 | 甲骨文国际公司 | Predictive diagnosis of SLA violations in cloud services through seasonal trending and forecasting with thread intensity analysis |
| CN106162707A (en) * | 2015-04-10 | 2016-11-23 | 富士通株式会社 | The monitoring method of aggregation node state, device and system |
Family Cites Families (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070100958A1 (en) * | 2005-10-27 | 2007-05-03 | Nikhil Hegde | Method for selecting a functional domain name server |
| US20070245163A1 (en) * | 2006-03-03 | 2007-10-18 | Yung-Hsiang Lu | Power management in computer operating systems |
| CN101202613B (en) * | 2006-12-11 | 2010-05-19 | 中兴通讯股份有限公司 | A terminal for clock synchronization |
| CN101620562B (en) * | 2009-08-07 | 2011-08-24 | 中兴通讯股份有限公司 | Method and system for estimating property of embedded type system |
| CN102013931B (en) * | 2009-09-08 | 2015-04-01 | 中兴通讯股份有限公司 | Time synchronization method and system, salve timing device and main timing device |
| CN102056200A (en) * | 2009-11-09 | 2011-05-11 | 中国移动通信集团广西有限公司 | Service processing flow monitoring method and system |
| US20130195123A1 (en) * | 2012-01-31 | 2013-08-01 | Alon Stern | Clock recovery over protected packet networks |
| JP6007581B2 (en) * | 2012-05-14 | 2016-10-12 | 日本電気株式会社 | Wireless communication system, relay station, wireless communication control method, and wireless communication control program |
| CN102681940B (en) * | 2012-05-15 | 2015-06-10 | 北京航空航天大学 | Method for carrying out performance test on memory management subsystem of Linux operation system |
| CN102970072B (en) * | 2012-12-24 | 2016-12-28 | 上海斐讯数据通信技术有限公司 | A kind of method judging device authentication state |
| CN104469831B (en) * | 2014-12-02 | 2017-12-19 | 中国联合网络通信集团有限公司 | Fault detection method and device are shunk in the network coverage |
| US10098021B2 (en) * | 2015-05-28 | 2018-10-09 | Apple Inc. | VoLTE quality of service enhancement with preconditions |
-
2017
- 2017-06-20 CN CN201710469039.1A patent/CN107148041B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101247573A (en) * | 2007-02-16 | 2008-08-20 | 大唐移动通信设备有限公司 | A clock and operation and maintenance monitoring board and its master-standby switching method |
| CN101094050A (en) * | 2007-07-24 | 2007-12-26 | 中兴通讯股份有限公司 | Method for capturing information of task of leading resetting system or device failure |
| CN102300001A (en) * | 2011-09-14 | 2011-12-28 | 惠州Tcl移动通信有限公司 | Method for preventing memory card of mobile terminal from frequent hot plug and mobile terminal |
| CN105190564A (en) * | 2013-04-11 | 2015-12-23 | 甲骨文国际公司 | Predictive diagnosis of SLA violations in cloud services through seasonal trending and forecasting with thread intensity analysis |
| CN104410400A (en) * | 2014-09-26 | 2015-03-11 | 惠州市亿能电子有限公司 | Real-time clock synchronization circuit of battery management system and method thereof |
| CN106162707A (en) * | 2015-04-10 | 2016-11-23 | 富士通株式会社 | The monitoring method of aggregation node state, device and system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107148041A (en) | 2017-09-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10333771B2 (en) | Diagnostic monitoring techniques for server systems | |
| US9319284B2 (en) | Operation delay monitoring method, operation management apparatus, and operation management program | |
| TWI526824B (en) | Method and system for managing network interface card information | |
| CN102684881B (en) | A kind of authentication method of dynamic password and device | |
| CN109254922B (en) | A kind of automatic testing method and device of server BMC Redfish function | |
| CN111143165A (en) | Monitoring method and device | |
| CN105591784A (en) | Alarm processing method and device | |
| US10496128B2 (en) | Method for obtaining timestamp and computer device using the same | |
| CN104506392A (en) | Downtime detecting method and device | |
| CN104202814A (en) | Information self-registration method, terminal, server and system | |
| CN108429643A (en) | Method, device and equipment for server fault management | |
| CN106331152B (en) | Method and device for realizing information synchronization between modules | |
| WO2015117456A1 (en) | Link polling method, device and system, and computer storage medium | |
| CN103870349B (en) | For the configuration management device and method of data handling system | |
| CN107148041B (en) | Detection method for abnormal operation of wireless access device and wireless access device | |
| CN116701338A (en) | Log time correction method and device, electronic equipment and storage medium | |
| CN104331362B (en) | A kind of software fault prediction method | |
| WO2014044112A1 (en) | Device and method for controlling and supervising and alarming power supply of base station | |
| TWI720594B (en) | Remote update firmware control method | |
| WO2015184850A1 (en) | Method, apparatus and system for collecting stale data | |
| CN115225193B (en) | BMC time synchronization method, system, device and readable storage medium | |
| CN117220812A (en) | Data processing method, device, equipment and storage medium based on time correction | |
| JP5623449B2 (en) | Report creation apparatus, report creation program, and report creation method | |
| CN106254104B (en) | Method and device for acquiring installation state | |
| JP7518746B2 (en) | Information processing device, information processing method, program, and information processing system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20201113 Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province Applicant after: Hangzhou Jiji Intellectual Property Operation Co.,Ltd. Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666 Applicant before: Phicomm (Shanghai) Co.,Ltd. |
|
| TA01 | Transfer of patent application right | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20201204 Address after: Room 501, unit 2, building 63, xiazhuzhaicun, Niansanli street, Yiwu City, Jinhua City, Zhejiang Province Applicant after: Yiwu Zhixiang communication equipment Co.,Ltd. Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province Applicant before: Hangzhou Jiji Intellectual Property Operation Co.,Ltd. |
|
| TA01 | Transfer of patent application right | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20221216 Address after: 313000 room 1019, Xintiandi commercial office, Yishan street, Wuxing District, Huzhou, Zhejiang, China Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd. Address before: Room 501, unit 2, building 63, xiazhuzhaicun, Niansanli street, Yiwu City, Jinhua City, Zhejiang Province Patentee before: Yiwu Zhixiang communication equipment Co.,Ltd. |
|
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20241203 Address after: 100000 Building 10, 10th Floor, No. 2 Ronghua North Road, Beijing Economic and Technological Development Zone, Daxing District, Beijing 1007-D7 Patentee after: Beijing Lianlianjia Technology Co.,Ltd. Country or region after: China Address before: 313000 room 1019, Xintiandi commercial office, Yishan street, Wuxing District, Huzhou, Zhejiang, China Patentee before: Huzhou YingLie Intellectual Property Operation Co.,Ltd. Country or region before: China |
