CN107205241B - Wireless communication detection method and equipment thereof - Google Patents

Wireless communication detection method and equipment thereof Download PDF

Info

Publication number
CN107205241B
CN107205241B CN201610154510.3A CN201610154510A CN107205241B CN 107205241 B CN107205241 B CN 107205241B CN 201610154510 A CN201610154510 A CN 201610154510A CN 107205241 B CN107205241 B CN 107205241B
Authority
CN
China
Prior art keywords
detection
wireless communication
test
priority
state
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
Application number
CN201610154510.3A
Other languages
Chinese (zh)
Other versions
CN107205241A (en
Inventor
罗小松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610154510.3A priority Critical patent/CN107205241B/en
Publication of CN107205241A publication Critical patent/CN107205241A/en
Application granted granted Critical
Publication of CN107205241B publication Critical patent/CN107205241B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/10Scheduling measurement reports ; Arrangements for measurement reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Abstract

The embodiment of the invention discloses a wireless communication detection method and a device thereof, wherein the method comprises the following steps: detecting a wireless communication state of the Internet of vehicles equipment; when the wireless communication state is detected to be in a disconnection state, fault testing is carried out on the wireless communication function of the Internet of vehicles equipment by adopting a preset communication detection rule, wherein the preset communication detection rule comprises at least one of detection content of availability detection of a server and a network where the server is located, detection content of detection of access to a base station step and detection content of hardware availability detection; and storing and outputting the test result of the vehicle networking equipment generated after the fault test. By adopting the invention, the fault detection of wireless communication can be automatically completed, the efficiency of troubleshooting is improved, and the time cost and the labor cost of fault recurrence are reduced.

Description

Wireless communication detection method and equipment thereof
Technical Field
The invention relates to the technical field of computers, in particular to a wireless communication detection method and wireless communication detection equipment.
Background
With the continuous development and improvement of computer technology, car networking devices such as vehicle navigation devices, intelligent rearview mirrors, automobile data recorders and the like become an indispensable part in the driving of people, and the car networking devices can be connected with a base station through a wireless communication module to obtain or report required driving data, so that convenience is brought to the traveling of users. However, the existing troubleshooting of wireless communication usually requires a worker to perform on-site debugging and analysis, which affects troubleshooting efficiency and increases time cost and labor cost for fault recurrence.
Disclosure of Invention
The embodiment of the invention provides a wireless communication detection method and equipment thereof, which can automatically complete fault detection of wireless communication, improve fault troubleshooting efficiency and reduce time cost and labor cost of fault recurrence.
A first aspect of an embodiment of the present invention provides a wireless communication detection method, which may include:
detecting a wireless communication state of the Internet of vehicles equipment;
when the wireless communication state is detected to be in a disconnection state, fault testing is carried out on the wireless communication function of the Internet of vehicles equipment by adopting a preset communication detection rule, wherein the preset communication detection rule comprises at least one of detection content of availability detection of a server and a network where the server is located, detection content of detection of access to a base station step and detection content of hardware availability detection;
and storing and outputting the test result of the vehicle networking equipment generated after the fault test.
A second aspect of an embodiment of the present invention provides a wireless communication detection device, which may include:
the state detection unit is used for detecting the wireless communication state of the Internet of vehicles equipment;
the function testing unit is used for carrying out fault testing on the wireless communication function of the Internet of vehicles equipment by adopting a preset communication detection rule when the wireless communication state is detected to be in a disconnected state, wherein the preset communication detection rule comprises at least one of detection content of availability detection of a server and a network where the server is located, detection content of detection of access to a base station step and detection content of hardware availability detection;
and the result output unit is used for storing and outputting the test result of the Internet of vehicles equipment generated after the fault test.
In the embodiment of the invention, when the wireless communication state of the Internet of vehicles is detected to be in the disconnection state, the fault detection is carried out on the wireless communication function by adopting the server, the detection content of the network availability detection of the server, the detection content of the step of accessing the base station, the detection content of the hardware availability detection and the like, so that the fault detection of the wireless communication is automatically completed, the fault troubleshooting efficiency is improved, the test result of the Internet of vehicles generated after the fault detection is stored and output, the judgment of a worker on the fault generation reason is not needed, and the time cost and the labor cost of fault recurrence are reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a wireless communication detection method according to an embodiment of the present invention;
fig. 2 is a flow chart of another wireless communication detection method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a wireless communication detection device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another wireless communication detection device provided in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of another wireless communication detection device according to an embodiment of the present invention.
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.
The wireless communication detection method provided by the embodiment of the invention can be applied to a scene of detecting the wireless communication function of the Internet of vehicles equipment, such as: the wireless communication detection device detects the wireless communication state of the Internet of vehicles, when the wireless communication state is detected to be in a disconnection state, the wireless communication detection device adopts a preset communication detection rule to carry out fault test on the wireless communication function of the Internet of vehicles, and the wireless communication detection device stores and outputs a scene of a test result of the Internet of vehicles generated after the fault test. When the wireless communication state of the Internet of vehicles equipment is detected to be in a disconnected state, the fault detection is performed on the wireless communication function by adopting the server, the detection content of the network availability detection of the server, the detection content of the step of accessing the base station, the detection content of the hardware availability detection and the like, so that the fault detection of the wireless communication is automatically completed, the fault troubleshooting efficiency is improved, meanwhile, the test result of the Internet of vehicles equipment generated after the fault test is stored and output, the fault generation reason does not need to be judged by a worker, and the time cost and the labor cost of fault recurrence are reduced.
The wireless communication detection device according to the embodiment of the present invention may be a device for performing fault detection on a wireless communication function of the car networking device, and the wireless communication detection device may be a terminal device independent of the car networking device, and connected to the car networking device through a Universal Serial Bus (USB), a wireless local area network, or the wireless communication detection device may be a wireless communication detection module embedded in the car networking device; the vehicle networking equipment can comprise vehicle-mounted equipment such as vehicle-mounted navigation equipment, intelligent rearview mirrors and a vehicle event data recorder.
A wireless communication detection method according to an embodiment of the present invention will be described in detail with reference to fig. 1 and fig. 2.
Referring to fig. 1, a flow chart of a wireless communication detection method according to an embodiment of the present invention is shown. As shown in fig. 1, the method of the embodiment of the present invention may include the following steps S101 to S103.
S101, detecting the wireless communication state of the Internet of vehicles equipment;
specifically, the wireless communication detection device may detect the wireless communication state of the car networking device in a timed or real-time manner, for example, the wireless communication detection device detects the wireless communication state of the car networking device once every preset time period, or when the wireless communication state of the car networking device changes, the wireless communication detection device detects the wireless communication state of the car networking device, and the like, and it should be noted that the wireless communication state may include: a default state, a state in which wireless communication connection is not performed, a state in which wireless communication connection is being performed, a state in which wireless communication is connected, a state in which wireless communication connection is being disconnected, a state in which wireless communication connection fails, and the like. The default state occurs when the vehicle networking device is initialized or after the vehicle networking device is reset, and besides, the wireless communication state of the vehicle networking device can be switched among a state in which wireless communication connection is not performed, a state in which wireless communication connection is connected, a state in which wireless communication connection is disconnected, and a state in which wireless communication connection fails.
S102, when the wireless communication state is detected to be in a disconnection state, fault testing is carried out on the wireless communication function of the Internet of vehicles equipment by adopting a preset communication detection rule;
specifically, when the wireless communication detection device detects that the wireless communication state of the car networking device is in a disconnected state, the wireless communication detection device may perform a fault test on the wireless communication function of the car networking device by using a preset communication detection rule, where the disconnected state may include any one of a state in which a wireless communication connection is being disconnected and a state in which the wireless communication connection fails, and it should be noted that the preset communication detection rule includes at least one of detection content of availability detection of a network in which the server and the server are located, detection content of detection of access to a base station, and detection content of hardware availability detection, where the detection content of availability detection of the network in which the server and the server are located may include at least one of the following detection content:
1. detecting whether the PING test passes or not;
2. detecting whether a Transmission Control Protocol (TCP) test passes the detection content;
the detection content detected by the step of accessing the base station may include at least one of the following detection contents:
3. detecting whether a Point-to-Point Protocol (PPP) connection exists;
4. detecting whether Packet Data Protocol (PDP) activation is ready;
5. detecting whether General Packet Radio Service (GPRS) attachment is ready;
6. detecting whether the cell registration is ready;
7. detecting whether a Subscriber Identity Module (SIM) card is ready;
the detection content of the hardware availability detection may include:
8. and detecting whether the car networking equipment is ready.
It is understood that the above-mentioned detection contents may perform the process of the failure test in the order of 1-8, for example: the wireless communication detection equipment firstly detects whether the PING test passes, and if so, the wireless communication detection equipment indicates that no fault of the wireless communication function exists at present; if not, further detecting whether the TCP test passes, and if so, recording information that the PING test of the Internet of vehicles equipment fails; if not, further detecting whether PPP connection exists, and if so, recording information that the TCP test of the Internet of vehicles equipment fails; if not, further detecting whether PDP activation is ready, if so, recording the information that PPP connection of the Internet of vehicles equipment does not exist; if not, further detecting whether GPRS attachment is ready, and if so, recording information that PDP activation of the Internet of vehicles is not ready; if not, further detecting whether the cell registration is ready, and if so, recording information that GPRS (general packet radio service) attachment of the Internet of vehicles is not ready; if not, further detecting whether the SIM card is ready, and if so, recording information that the cell registration of the Internet of vehicles equipment is not ready; if not, further detecting whether the Internet of vehicles equipment is ready, and if so, recording information that an SIM card of the Internet of vehicles equipment is not ready; if not, recording the information that the Internet of vehicles equipment is not ready. Of course, the above implementation is only an example, the types of the detection contents may not be limited to items 1 to 8, and the detection contents for testing the wireless communication function of the car networking device all belong to the protection scope of the embodiment of the present invention.
S103, storing and outputting a test result of the Internet of vehicles equipment generated after the fault test;
specifically, the wireless communication detection device may generate a test result of the car networking device according to the recorded information, the test result may further include a device number, a fault occurrence time, a fault occurrence location, a wireless communication state of the car networking device when a fault occurs, and the like of the car networking device, and the wireless communication detection device may store and output the test result of the car networking device generated after the fault test.
In the embodiment of the invention, when the wireless communication state of the Internet of vehicles is detected to be in the disconnection state, the preset communication detection rule is adopted to carry out fault test on the wireless communication function, so that the fault detection of the wireless communication is automatically completed, the fault troubleshooting efficiency is improved, meanwhile, the test result of the Internet of vehicles generated after the fault test is stored and output, the reason for the fault generation does not need to be judged by a worker, and the time cost and the labor cost for fault recurrence are reduced.
Referring to fig. 2, a flow chart of another wireless communication detection method according to an embodiment of the invention is shown. As shown in fig. 2, the method of the embodiment of the present invention may include the following steps S201 to S207.
S201, detecting a wireless communication state of the Internet of vehicles equipment;
specifically, the wireless communication detection device may detect the wireless communication state of the car networking device in a timed or real-time manner, for example, the wireless communication detection device detects the wireless communication state of the car networking device once every preset time period, or when the wireless communication state of the car networking device changes, the wireless communication detection device detects the wireless communication state of the car networking device, and the like, and it should be noted that the wireless communication state may include: a default state, a state in which wireless communication connection is not performed, a state in which wireless communication connection is being performed, a state in which wireless communication is connected, a state in which wireless communication connection is being disconnected, a state in which wireless communication connection fails, and the like. The default state occurs when the vehicle networking device is initialized or after the vehicle networking device is reset, and besides, the wireless communication state of the vehicle networking device can be switched among a state in which wireless communication connection is not performed, a state in which wireless communication connection is connected, a state in which wireless communication connection is disconnected, and a state in which wireless communication connection fails.
S202, when the wireless communication state is detected to be in a disconnection state, judging whether a fault test exists at present;
specifically, when the wireless communication detection device detects that the wireless communication state of the vehicle networking device is in the disconnection state, the wireless communication detection device may determine in advance whether a fault test is currently performed.
S203, if no fault test exists at present, adopting a preset communication detection rule to carry out fault test on the wireless communication function of the Internet of vehicles equipment;
specifically, if there is no fault test currently in progress, the wireless communication detection device may perform a fault test on a wireless communication function of the vehicle networking device by using a preset communication detection rule, where the disconnection state may include any one of a state in which a wireless communication connection is being disconnected and a state in which a wireless communication connection fails, and it should be noted that the preset communication detection rule includes at least one of detection content of availability detection of a network where the server and the server are located, detection content of detection of access to a base station, and detection content of availability detection of hardware, where the detection content of availability detection of a network where the server and the server are located may include at least one of the following detection contents:
1. detecting whether the PING test passes or not;
2. detecting whether the TCP test passes the detection content;
the detection content detected by the step of accessing the base station may include at least one of the following detection contents:
3. detecting whether the PPP connection exists or not;
4. detecting whether PDP activation is ready;
5. detecting the detection content of whether GPRS attachment is ready;
6. detecting whether the cell registration is ready;
7. detecting whether the SIM card is ready;
the detection content of the hardware availability detection may include:
8. and detecting whether the car networking equipment is ready.
It is understood that the above-mentioned detection contents may perform the process of the failure test in the order of 1-8, for example: the wireless communication detection equipment firstly detects whether the PING test passes, and if so, the wireless communication detection equipment indicates that no fault of the wireless communication function exists at present; if not, further detecting whether the TCP test passes, and if so, recording information that the PING test of the Internet of vehicles equipment fails; if not, further detecting whether PPP connection exists, and if so, recording information that the TCP test of the Internet of vehicles equipment fails; if not, further detecting whether PDP activation is ready, if so, recording the information that PPP connection of the Internet of vehicles equipment does not exist; if not, further detecting whether GPRS attachment is ready, and if so, recording information that PDP activation of the Internet of vehicles is not ready; if not, further detecting whether the cell registration is ready, and if so, recording information that GPRS (general packet radio service) attachment of the Internet of vehicles is not ready; if not, further detecting whether the SIM card is ready, and if so, recording information that the cell registration of the Internet of vehicles equipment is not ready; if not, further detecting whether the Internet of vehicles equipment is ready, and if so, recording information that an SIM card of the Internet of vehicles equipment is not ready; if not, recording the information that the Internet of vehicles equipment is not ready. Of course, the above implementation is only an example, the types of the detection contents may not be limited to items 1 to 8, and the detection contents for testing the wireless communication function of the car networking device all belong to the protection scope of the embodiment of the present invention.
S204, storing and outputting a test result of the Internet of vehicles equipment generated after the fault test;
specifically, the wireless communication detection device may generate a test result of the car networking device according to the recorded information, the test result may further include a device number, a fault occurrence time, a fault occurrence location, a wireless communication state of the car networking device when a fault occurs, and the like of the car networking device, and the wireless communication detection device may store and output the test result of the car networking device generated after the fault test.
S205, acquiring a base station signal intensity value detected by the Internet of vehicles equipment;
specifically, wireless communication check out test set can acquire the wireless environment data of car networking equipment, wireless environment data specifically can include the basic station signal strength numerical value that car networking equipment detected, through the basic station signal strength numerical value that detects car networking equipment, can combine the accurate reason that the judgement current wireless communication trouble that signal strength produced.
S206, generating a test log of the Internet of vehicles equipment according to the test result and the base station signal strength value;
specifically, the wireless communication detection device may generate a test log of the car networking device according to the test result and the base station signal strength value, and further, when the base station signal strength value satisfies a preset strength threshold value, the wireless communication detection device may generate the test log of the car networking device according to the test result, where the test log includes the test result, and further includes a system log, an AT instruction communication log of the SIM card, an automatic debugging log in a fault test process of the wireless communication function, and the like.
S207, reporting the test log to a background server by adopting a preset transmission mode;
specifically, the wireless communication detection device may report the test log to a background server by using a preset transmission mode, where the preset transmission mode may include at least one transmission mode of a short message, a mobile data network, and a wireless local area network, and further, when the preset transmission mode is a transmission mode of a short message and the test result is a result belonging to a first priority, the wireless communication detection device may report the fault test log to the background server; when the preset transmission mode is a transmission mode of a mobile data network and the test result is a result belonging to a first priority or a result belonging to a second priority, the wireless communication detection equipment can report the fault test log to a background server; when the preset transmission mode is a transmission mode of a wireless local area network, and the test result is a result belonging to a first priority, a result belonging to a second priority, or a result belonging to a third priority, the wireless communication detection device may report the fault test log to a background server, where the first priority is higher than the second priority and the third priority, and the second priority is higher than the third priority.
It should be noted that, based on the above-mentioned 1-8 items of detection content, the detection content may be prioritized, for example: the test result generated when the item 7 or the item 8 is detected can be a result belonging to the first priority, that is, the fault indicated by the test result generated when the item 7 or the item 8 is detected is important, and the like.
In the embodiment of the invention, when the wireless communication state of the Internet of vehicles equipment is detected to be in the disconnection state, the preset communication detection rule is adopted to carry out fault test on the wireless communication function, so that the fault detection of the wireless communication is automatically completed, the fault troubleshooting efficiency is improved, meanwhile, the test result of the Internet of vehicles equipment generated after the fault test is stored and output, the fault generation reason does not need to be judged by a worker, and the time cost and the labor cost of fault recurrence are reduced; the method has the advantages that the reason for the current wireless communication fault can be accurately judged by detecting the signal intensity value of the base station of the Internet of vehicles; by dividing the priority of the test result, the fault test log can be reported stage by stage at low transmission cost, and the user experience is improved.
The following describes in detail a wireless communication detection device according to an embodiment of the present invention with reference to fig. 3 and 4. It should be noted that, the wireless communication detecting apparatus shown in fig. 3 and fig. 4 is used for executing the method of the embodiment shown in fig. 1 and fig. 2 of the present invention, for convenience of description, only the portion related to the embodiment of the present invention is shown, and details of the specific technology are not disclosed, please refer to the embodiment shown in fig. 1 and fig. 2 of the present invention.
Referring to fig. 3, a schematic structural diagram of a wireless communication detection device according to an embodiment of the present invention is provided. As shown in fig. 3, the wireless communication detection apparatus 1 according to the embodiment of the present invention may include: a state detection unit 11, a function test unit 12, and a result output unit 13.
The state detection unit 11 is used for detecting the wireless communication state of the Internet of vehicles equipment;
in a specific implementation, the state detection unit 11 may detect the wireless communication state of the car networking device in a timed or real-time manner, for example, the state detection unit 11 detects the wireless communication state of the car networking device once every preset time period, or when the wireless communication state of the car networking device changes, the state detection unit 11 detects the wireless communication state of the car networking device, and the like, where it should be noted that the wireless communication state may include: a default state, a state in which wireless communication connection is not performed, a state in which wireless communication connection is being performed, a state in which wireless communication is connected, a state in which wireless communication connection is being disconnected, a state in which wireless communication connection fails, and the like. The default state occurs when the vehicle networking device is initialized or after the vehicle networking device is reset, and besides, the wireless communication state of the vehicle networking device can be switched among a state in which wireless communication connection is not performed, a state in which wireless communication connection is connected, a state in which wireless communication connection is disconnected, and a state in which wireless communication connection fails.
The function testing unit 12 is configured to perform fault testing on the wireless communication function of the car networking device by using a preset communication detection rule when the wireless communication state is detected to be in a disconnected state;
in a specific implementation, when the state detecting unit 11 detects that the wireless communication state of the car networking device is in a disconnected state, the function testing unit 12 may perform a fault test on the wireless communication function of the car networking device by using a preset communication detection rule, where the disconnected state may include any one of a state in which a wireless communication connection is being disconnected and a state in which the wireless communication connection fails, and it should be noted that the preset communication detection rule includes at least one of detection content of availability detection of a network where the server and the server are located, detection content of detection of access to a base station, and detection content of hardware availability detection, where the detection content of availability detection of the network where the server and the server are located may include at least one of the following detection content:
1. detecting whether the PING test passes or not;
2. detecting whether the TCP test passes the detection content;
the detection content detected by the step of accessing the base station may include at least one of the following detection contents:
3. detecting whether the PPP connection exists or not;
4. detecting whether PDP activation is ready;
5. detecting the detection content of whether GPRS attachment is ready;
6. detecting whether the cell registration is ready;
7. detecting whether the SIM card is ready;
the detection content of the hardware availability detection may include:
8. and detecting whether the car networking equipment is ready.
It is understood that the above-mentioned detection contents may perform the process of the failure test in the order of 1-8, for example: the function testing unit 12 firstly detects whether the PING test passes, and if so, the fault of the wireless communication function does not exist currently; if not, further detecting whether the TCP test passes, and if so, recording information that the PING test of the Internet of vehicles equipment fails; if not, further detecting whether PPP connection exists, and if so, recording information that the TCP test of the Internet of vehicles equipment fails; if not, further detecting whether PDP activation is ready, if so, recording the information that PPP connection of the Internet of vehicles equipment does not exist; if not, further detecting whether GPRS attachment is ready, and if so, recording information that PDP activation of the Internet of vehicles is not ready; if not, further detecting whether the cell registration is ready, and if so, recording information that GPRS (general packet radio service) attachment of the Internet of vehicles is not ready; if not, further detecting whether the SIM card is ready, and if so, recording information that the cell registration of the Internet of vehicles equipment is not ready; if not, further detecting whether the Internet of vehicles equipment is ready, and if so, recording information that an SIM card of the Internet of vehicles equipment is not ready; if not, recording the information that the Internet of vehicles equipment is not ready. Of course, the above implementation is only an example, the types of the detection contents may not be limited to items 1 to 8, and the detection contents for testing the wireless communication function of the car networking device all belong to the protection scope of the embodiment of the present invention.
The result output unit 13 is used for storing and outputting the test result of the vehicle networking equipment generated after the fault test;
in specific implementation, the result output unit 13 may generate a test result of the car networking device according to the recorded information, where the test result may further include a device number, a fault occurrence time, a fault occurrence location, a wireless communication state of the car networking device when a fault occurs, and the like of the car networking device, and the result output unit 13 may store and output the test result of the car networking device generated after the fault test.
In the embodiment of the invention, when the wireless communication state of the Internet of vehicles is detected to be in the disconnection state, the preset communication detection rule is adopted to carry out fault test on the wireless communication function, so that the fault detection of the wireless communication is automatically completed, the fault troubleshooting efficiency is improved, meanwhile, the test result of the Internet of vehicles generated after the fault test is stored and output, the reason for the fault generation does not need to be judged by a worker, and the time cost and the labor cost for fault recurrence are reduced.
Referring to fig. 4, a schematic structural diagram of another wireless communication detection device is provided in the embodiment of the present invention. As shown in fig. 4, the wireless communication detection apparatus 1 according to the embodiment of the present invention may include: the device comprises a state detection unit 11, a function test unit 12, a result output unit 13, a test judgment unit 14, a numerical value acquisition unit 15, a log generation unit 16 and a log reporting unit 17.
The state detection unit 11 is used for detecting the wireless communication state of the Internet of vehicles equipment;
in a specific implementation, the state detection unit 11 may detect the wireless communication state of the car networking device in a timed or real-time manner, for example, the state detection unit 11 detects the wireless communication state of the car networking device once every preset time period, or when the wireless communication state of the car networking device changes, the state detection unit 11 detects the wireless communication state of the car networking device, and the like, where it should be noted that the wireless communication state may include: a default state, a state in which wireless communication connection is not performed, a state in which wireless communication connection is being performed, a state in which wireless communication is connected, a state in which wireless communication connection is being disconnected, a state in which wireless communication connection fails, and the like. The default state occurs when the vehicle networking device is initialized or after the vehicle networking device is reset, and besides, the wireless communication state of the vehicle networking device can be switched among a state in which wireless communication connection is not performed, a state in which wireless communication connection is connected, a state in which wireless communication connection is disconnected, and a state in which wireless communication connection fails.
The test judging unit 14 is configured to judge whether a fault test exists currently when the wireless communication state is detected to be in a disconnected state, and if not, notify the function testing unit 12 to perform a fault test on the wireless communication function of the internet of vehicles equipment by using a preset communication detection rule;
in a specific implementation, when the state detection unit 11 detects that the wireless communication state of the car networking device is in the disconnection state, the test determination unit 14 may determine in advance whether a fault test exists currently.
The function testing unit 12 is used for performing fault testing on the wireless communication function of the vehicle networking equipment by adopting a preset communication detection rule;
in a specific implementation, if there is no fault test currently in progress, the function testing unit 12 may perform a fault test on the wireless communication function of the car networking device by using a preset communication detection rule, where the disconnection state may include any one of a state in which a wireless communication connection is being disconnected and a state in which a wireless communication connection fails, and it should be noted that the preset communication detection rule includes at least one of detection content of availability detection of a network where the server and the server are located, detection content of detection of access to a base station, and detection content of availability detection of hardware, where the detection content of availability detection of a network where the server and the server are located may include at least one of the following detection content:
1. detecting whether the PING test passes or not;
2. detecting whether the TCP test passes the detection content;
the detection content detected by the step of accessing the base station may include at least one of the following detection contents:
3. detecting whether the PPP connection exists or not;
4. detecting whether PDP activation is ready;
5. detecting the detection content of whether GPRS attachment is ready;
6. detecting whether the cell registration is ready;
7. detecting whether the SIM card is ready;
the detection content of the hardware availability detection may include:
8. and detecting whether the car networking equipment is ready.
It is understood that the above-mentioned detection contents may perform the process of the failure test in the order of 1-8, for example: the function testing unit 12 firstly detects whether the PING test passes, and if so, the fault of the wireless communication function does not exist currently; if not, further detecting whether the TCP test passes, and if so, recording information that the PING test of the Internet of vehicles equipment fails; if not, further detecting whether PPP connection exists, and if so, recording information that the TCP test of the Internet of vehicles equipment fails; if not, further detecting whether PDP activation is ready, if so, recording the information that PPP connection of the Internet of vehicles equipment does not exist; if not, further detecting whether GPRS attachment is ready, and if so, recording information that PDP activation of the Internet of vehicles is not ready; if not, further detecting whether the cell registration is ready, and if so, recording information that GPRS (general packet radio service) attachment of the Internet of vehicles is not ready; if not, further detecting whether the SIM card is ready, and if so, recording information that the cell registration of the Internet of vehicles equipment is not ready; if not, further detecting whether the Internet of vehicles equipment is ready, and if so, recording information that an SIM card of the Internet of vehicles equipment is not ready; if not, recording the information that the Internet of vehicles equipment is not ready. Of course, the above implementation is only an example, the types of the detection contents may not be limited to items 1 to 8, and the detection contents for testing the wireless communication function of the car networking device all belong to the protection scope of the embodiment of the present invention.
The result output unit 13 is used for storing and outputting the test result of the vehicle networking equipment generated after the fault test;
in specific implementation, the result output unit 13 may generate a test result of the car networking device according to the recorded information, where the test result may further include a device number, a fault occurrence time, a fault occurrence location, a wireless communication state of the car networking device when a fault occurs, and the like of the car networking device, and the result output unit 13 may store and output the test result of the car networking device generated after the fault test.
A value obtaining unit 15, configured to obtain a base station signal strength value detected by the car networking device;
in specific implementation, the value obtaining unit 15 may obtain wireless environment data of the car networking device, where the wireless environment data specifically may include a base station signal strength value detected by the car networking device, and the reason for the current wireless communication fault generation may be accurately determined by detecting the base station signal strength value of the car networking device in combination with signal strength.
The log generating unit 16 is configured to generate a test log of the car networking device according to the test result and the base station signal strength value;
in a specific implementation, the log generating unit 16 may generate a test log of the car networking device according to the test result and the base station signal strength value, and further, when the base station signal strength value meets a preset strength threshold value, the log generating unit 16 may generate a test log of the car networking device according to the test result, where the test log includes the test result, and further includes a system log, an AT instruction communication log of a SIM card, an automatic debugging log in a fault test process of a wireless communication function, and the like.
A log reporting unit 17, configured to report the test log to a background server in a preset transmission manner;
in a specific implementation, the log reporting unit 17 may report the test log to the background server by using a preset transmission mode, where the preset transmission mode may include at least one transmission mode of a short message, a mobile data network, and a wireless local area network, and further, when the preset transmission mode is a transmission mode of a short message and the test result is a result belonging to a first priority, the log reporting unit 17 may report the fault test log to the background server; when the preset transmission mode is a transmission mode of a mobile data network and the test result is a result belonging to a first priority or a result belonging to a second priority, the log reporting unit 17 may report the fault test log to a background server; when the preset transmission mode is a transmission mode of a wireless local area network, and the test result is a result belonging to a first priority, a result belonging to a second priority, or a result belonging to a third priority, the log reporting unit 17 may report the failure test log to a background server, where the first priority is higher than the second priority and the third priority, and the second priority is higher than the third priority.
It should be noted that, based on the above-mentioned 1-8 items of detection content, the detection content may be prioritized, for example: the test result generated when the item 7 or the item 8 is detected can be a result belonging to the first priority, that is, the fault indicated by the test result generated when the item 7 or the item 8 is detected is important, and the like.
In the embodiment of the invention, when the wireless communication state of the Internet of vehicles equipment is detected to be in the disconnection state, the preset communication detection rule is adopted to carry out fault test on the wireless communication function, so that the fault detection of the wireless communication is automatically completed, the fault troubleshooting efficiency is improved, meanwhile, the test result of the Internet of vehicles equipment generated after the fault test is stored and output, the fault generation reason does not need to be judged by a worker, and the time cost and the labor cost of fault recurrence are reduced; the method has the advantages that the reason for the current wireless communication fault can be accurately judged by detecting the signal intensity value of the base station of the Internet of vehicles; by dividing the priority of the test result, the fault test log can be reported stage by stage at low transmission cost, and the user experience is improved.
Referring to fig. 5, a schematic structural diagram of another wireless communication detection device according to an embodiment of the present invention is provided. As shown in fig. 5, the wireless communication detecting apparatus 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, memory 1005, at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display) and a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a standard wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 5, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a communication detection application program.
In the wireless communication detecting apparatus 1000 shown in fig. 5, the user interface 1003 is mainly used as an interface for providing input for a user, and acquiring data input by the user; and the processor 1001 may be configured to invoke the communication detection application stored in the memory 1005 and specifically perform the following operations:
detecting a wireless communication state of the Internet of vehicles equipment;
when the wireless communication state is detected to be in a disconnection state, fault testing is carried out on the wireless communication function of the Internet of vehicles equipment by adopting a preset communication detection rule;
and storing and outputting the test result of the vehicle networking equipment generated after the fault test.
In one embodiment, before performing the test of the wireless communication function of the car networking device using the preset communication detection rule, the processor 1001 further performs the following operations:
and judging whether a fault test exists at present, if not, executing the step of carrying out the fault test on the wireless communication function of the Internet of vehicles equipment by adopting a preset communication detection rule.
In one embodiment, the disconnection state includes any one of a state in which the wireless communication connection is being disconnected and a state in which the wireless communication connection fails;
the preset communication detection rule comprises at least one of the following detection contents:
detecting whether the PING test passes or not;
detecting whether the Transmission Control Protocol (TCP) test passes the detection content;
detecting the detection content of whether the PPP connection exists or not;
detecting whether the PDP activation is ready;
detecting whether general packet radio service technology GPRS attachment is ready;
detecting whether the cell registration is ready;
detecting whether a SIM card of a subscriber identity module is ready;
and detecting whether the car networking equipment is ready.
In one embodiment, the processor 1001 further performs the following operations:
acquiring a base station signal intensity value detected by the Internet of vehicles equipment;
generating a test log of the Internet of vehicles equipment according to the test result and the base station signal strength value;
and reporting the test log to a background server by adopting a preset transmission mode.
In one embodiment, when the processor 1001 generates the test log of the car networking device according to the test result and the base station signal strength value, the following operations are specifically performed:
and when the base station signal intensity value meets a preset intensity threshold value, generating a test log of the Internet of vehicles equipment according to the test result.
In one embodiment, the preset transmission mode includes at least one transmission mode of a short message, a mobile data network and a wireless local area network;
when the processor 1001 reports the fault test log to the background server in a preset transmission manner, the following operations are specifically performed:
when the preset transmission mode is a short message transmission mode and the test result is a result belonging to a first priority level, reporting the fault test log to a background server;
when the preset transmission mode is a transmission mode of a mobile data network and the test result is a result belonging to a first priority or a result belonging to a second priority, reporting the fault test log to a background server;
when the preset transmission mode is a transmission mode of a wireless local area network and the test result is a result belonging to a first priority, a result belonging to a second priority or a result belonging to a third priority, reporting the fault test log to a background server;
wherein the first priority is higher than the second priority and the third priority, and the second priority is higher than the third priority.
In the embodiment of the invention, when the wireless communication state of the Internet of vehicles equipment is detected to be in the disconnection state, the preset communication detection rule is adopted to carry out fault test on the wireless communication function, so that the fault detection of the wireless communication is automatically completed, the fault troubleshooting efficiency is improved, meanwhile, the test result of the Internet of vehicles equipment generated after the fault test is stored and output, the fault generation reason does not need to be judged by a worker, and the time cost and the labor cost of fault recurrence are reduced; the method has the advantages that the reason for the current wireless communication fault can be accurately judged by detecting the signal intensity value of the base station of the Internet of vehicles; by dividing the priority of the test result, the fault test log can be reported stage by stage at low transmission cost, and the user experience is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (14)

1. A method for wireless communication detection, comprising:
detecting a wireless communication state of the Internet of vehicles equipment;
when the wireless communication state is detected to be in a disconnection state, fault testing is carried out on the wireless communication function of the Internet of vehicles equipment by adopting a preset communication detection rule, wherein the preset communication detection rule comprises at least one of detection content of availability detection of a server and a network where the server is located, detection content of detection of access to a base station step and detection content of hardware availability detection;
storing and outputting a test result of the vehicle networking equipment generated after the fault test, and prioritizing the test result according to different detection contents;
acquiring a base station signal intensity value detected by the Internet of vehicles equipment; generating a test log of the Internet of vehicles equipment according to the test result and the base station signal strength value; and reporting the test logs comprising test results with different priorities to a background server by adopting different preset transmission modes, wherein the preset transmission modes comprise at least one of short messages, mobile data networks and wireless local area networks.
2. The method according to claim 1, wherein before the testing the wireless communication function of the car networking device by using the preset communication detection rule, the method further comprises:
and judging whether a fault test exists at present, if not, executing the step of carrying out the fault test on the wireless communication function of the Internet of vehicles equipment by adopting a preset communication detection rule.
3. The method according to claim 1, wherein the disconnection state includes any one of a state in which a wireless communication connection is being disconnected and a state in which a wireless communication connection fails;
the detection content of the server and the network availability detection of the server comprises at least one of the following detection contents:
detecting whether the PING test passes or not;
detecting whether the Transmission Control Protocol (TCP) test passes the detection content;
the detection content detected in the step of accessing the base station comprises at least one of the following detection contents:
detecting the detection content of whether the PPP connection exists or not;
detecting whether the PDP activation is ready;
detecting whether general packet radio service technology GPRS attachment is ready;
detecting whether the cell registration is ready;
detecting whether a SIM card of a subscriber identity module is ready;
the detection content of the hardware availability detection comprises the following steps:
and detecting whether the car networking equipment is ready.
4. The method of claim 1, wherein generating a test log of the vehicle networking device based on the test results and the base station signal strength values comprises:
and when the base station signal intensity value meets a preset intensity threshold value, generating a test log of the Internet of vehicles equipment according to the test result.
5. The method of claim 1, wherein reporting the failure test log to a background server by using a preset transmission mode comprises:
and when the preset transmission mode is a short message transmission mode and the test result is a result belonging to a first priority, reporting the fault test log to a background server.
6. The method of claim 1, wherein reporting the failure test log to a background server by using a preset transmission mode comprises:
when the preset transmission mode is a transmission mode of a mobile data network and the test result is a result belonging to a first priority or a result belonging to a second priority, reporting the fault test log to a background server;
wherein the first priority is higher than the second priority.
7. The method of claim 1, wherein reporting the failure test log to a background server by using a preset transmission mode comprises:
when the preset transmission mode is a transmission mode of a wireless local area network and the test result is a result belonging to a first priority, a result belonging to a second priority or a result belonging to a third priority, reporting the fault test log to a background server;
wherein the first priority is higher than the second priority and the third priority, and the second priority is higher than the third priority.
8. A wireless communication detection device, comprising:
the state detection unit is used for detecting the wireless communication state of the Internet of vehicles equipment;
the function testing unit is used for carrying out fault testing on the wireless communication function of the Internet of vehicles equipment by adopting a preset communication detection rule when the wireless communication state is detected to be in a disconnected state, wherein the preset communication detection rule comprises at least one of detection content of availability detection of a server and a network where the server is located, detection content of detection of access to a base station step and detection content of hardware availability detection;
the result output unit is used for storing and outputting the test result of the Internet of vehicles equipment generated after the fault test, and prioritizing the test result according to different detection contents;
the value acquisition unit is used for acquiring the base station signal strength value detected by the Internet of vehicles equipment;
the log generating unit is used for generating a test log of the Internet of vehicles equipment according to the test result and the base station signal strength value;
and the log reporting unit is used for reporting the test logs comprising the test results with different priorities to a background server by adopting different preset transmission modes, wherein the preset transmission modes comprise at least one of short messages, mobile data networks and wireless local area networks.
9. The apparatus of claim 8, further comprising:
and the test judging unit is used for judging whether a fault test exists at present when the wireless communication state is detected to be in a disconnection state, and if not, informing the function testing unit to execute the fault test on the wireless communication function of the Internet of vehicles equipment by adopting a preset communication detection rule.
10. The apparatus according to claim 8, wherein the disconnection state includes any one of a state in which a wireless communication connection is being disconnected and a state in which a wireless communication connection fails;
the detection content of the server and the network availability detection of the server comprises at least one of the following detection contents:
detecting whether the PING test passes or not;
detecting whether the Transmission Control Protocol (TCP) test passes the detection content;
the detection content detected in the step of accessing the base station comprises at least one of the following detection contents:
detecting the detection content of whether the PPP connection exists or not;
detecting whether the PDP activation is ready;
detecting whether general packet radio service technology GPRS attachment is ready;
detecting whether the cell registration is ready;
detecting whether a SIM card of a subscriber identity module is ready;
the detection content of the hardware availability detection comprises the following steps:
and detecting whether the car networking equipment is ready.
11. The device according to claim 8, wherein the log generating unit is specifically configured to generate a test log of the car networking device according to the test result when the base station signal strength value satisfies a preset strength threshold.
12. The device of claim 8, wherein the log reporting unit is specifically configured to report the failure test log to a background server when the preset transmission mode is a transmission mode of a short message and the test result is a result belonging to a first priority.
13. The device according to claim 8, wherein the log reporting unit is specifically configured to report the failure test log to a background server when the preset transmission mode is a transmission mode of a mobile data network and the test result is a result belonging to a first priority or a result belonging to a second priority;
wherein the first priority is higher than the second priority.
14. The device according to claim 8, wherein the log reporting unit is specifically configured to report the failure test log to a background server when the preset transmission mode is a transmission mode of a wireless local area network and the test result is a result belonging to a first priority, a result belonging to a second priority, or a result belonging to a third priority;
wherein the first priority is higher than the second priority and the third priority, and the second priority is higher than the third priority.
CN201610154510.3A 2016-03-17 2016-03-17 Wireless communication detection method and equipment thereof Active CN107205241B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610154510.3A CN107205241B (en) 2016-03-17 2016-03-17 Wireless communication detection method and equipment thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610154510.3A CN107205241B (en) 2016-03-17 2016-03-17 Wireless communication detection method and equipment thereof

Publications (2)

Publication Number Publication Date
CN107205241A CN107205241A (en) 2017-09-26
CN107205241B true CN107205241B (en) 2020-08-25

Family

ID=59904130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610154510.3A Active CN107205241B (en) 2016-03-17 2016-03-17 Wireless communication detection method and equipment thereof

Country Status (1)

Country Link
CN (1) CN107205241B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110177353B (en) * 2019-06-17 2021-11-05 腾讯科技(深圳)有限公司 Secondary link monitoring method, device, medium and electronic equipment for vehicle communication
CN112737712B (en) * 2020-12-23 2023-01-24 广东电网有限责任公司佛山供电局 Low-voltage power grid wireless channel quality testing device and method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631324A (en) * 2009-08-11 2010-01-20 酷派软件技术(深圳)有限公司 Mobile terminal fault diagnosis and repair method and mobile terminal thereof
CN103179608A (en) * 2013-03-22 2013-06-26 福建联迪商用设备有限公司 Two-generation/third-generation (2/3G) wireless module diagnosis test method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7583587B2 (en) * 2004-01-30 2009-09-01 Microsoft Corporation Fault detection and diagnosis

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631324A (en) * 2009-08-11 2010-01-20 酷派软件技术(深圳)有限公司 Mobile terminal fault diagnosis and repair method and mobile terminal thereof
CN103179608A (en) * 2013-03-22 2013-06-26 福建联迪商用设备有限公司 Two-generation/third-generation (2/3G) wireless module diagnosis test method and device

Also Published As

Publication number Publication date
CN107205241A (en) 2017-09-26

Similar Documents

Publication Publication Date Title
Zaldivar et al. Providing accident detection in vehicular networks through OBD-II devices and Android-based smartphones
US9304846B2 (en) Apparatus and method of error monitoring with a diagnostic module
CN110545220B (en) Automobile diagnosis protocol detection method and related product
CN111026640A (en) Vehicle-mounted equipment testing method and system, mobile terminal and storage medium
CN111182503A (en) Intelligent vehicle insurance evaluation method and system based on multi-data fusion analysis
CN104881907A (en) Method and electronic device for obtaining vehicle accident information
CN104581802A (en) Test method and test system for GSM-R network
CN112243211A (en) Vehicle-mounted terminal networking method, device, equipment and storage medium
CN107205241B (en) Wireless communication detection method and equipment thereof
CN108390863B (en) Data processing method and device
CN113498131B (en) Automatic network switching method of intelligent terminal and intelligent terminal
CN110806965A (en) Automatic test method, device, equipment and medium
CN114257470A (en) Vehicle Bluetooth function test system and test method
CN110113726B (en) Vehicle network switching method and device
CN113911872B (en) Fault processing method and system and early warning rescue system
CN110995823B (en) Vehicle-mounted terminal offline processing method, device, storage medium and device
CN109495302B (en) Link monitoring method, cloud server and computer readable storage medium
CN104301235A (en) Network flow control method and device
CN112583617A (en) Fault determination method, server, control terminal and storage medium
CN110493247B (en) Power distribution terminal communication detection method, system, equipment and computer medium
CN106708605B (en) Method and device for detecting resource leakage
CN113434411A (en) TIAS function test method and system
CN113098636A (en) Communication performance testing method, device, equipment and storage medium
Rao et al. Accident Detection in Vehicular Networks Using Android-based Smartphones
CN110750088A (en) Data detection method and related product

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
GR01 Patent grant
GR01 Patent grant