CN112203252A - Communication connection method and related equipment - Google Patents

Communication connection method and related equipment Download PDF

Info

Publication number
CN112203252A
CN112203252A CN202011049528.XA CN202011049528A CN112203252A CN 112203252 A CN112203252 A CN 112203252A CN 202011049528 A CN202011049528 A CN 202011049528A CN 112203252 A CN112203252 A CN 112203252A
Authority
CN
China
Prior art keywords
vci device
target
target vci
network card
address information
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.)
Pending
Application number
CN202011049528.XA
Other languages
Chinese (zh)
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.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology 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 Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN202011049528.XA priority Critical patent/CN112203252A/en
Publication of CN112203252A publication Critical patent/CN112203252A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Abstract

The embodiment of the application provides a communication connection method and related equipment, which are used for improving the success rate and stability of communication connection. The method in the embodiment of the application comprises the following steps: connecting a corresponding target VCI device according to the first network access parameter; if the connection with the target VCI device is successful, acquiring WIFI network card address information of the target VCI device; if the connection with the target VCI device fails, connecting a corresponding gateway according to a second network access parameter, and sending a preset broadcast instruction to a receiving port of UDP broadcast service of the target VCI device, wherein the preset broadcast instruction is used for indicating the target VCI device to return WIFI network card address information; and establishing TCP connection with the target VCI device according to the WIFI network card address information.

Description

Communication connection method and related equipment
Technical Field
The present application relates to the field of vehicle diagnosis, and in particular, to a communication connection method and related devices.
Background
Existing automobiles are equipped with On-Board Diagnostics (OBD) systems, so that maintenance personnel can quickly read the diagnostic results of the OBD systems by using an automobile fault diagnostic apparatus.
Currently, in the process of vehicle diagnosis, in order to reduce wiring, a vehicle Communication interface (vci) (vehicle Communication interface) device is generally used to perform Communication connection between a vehicle fault diagnosis system and a vehicle OBD system to be diagnosed, so as to perform vehicle fault diagnosis.
In the existing scheme, the VCI device is often used as an AP hotspot to be connected by an upper computer to establish a communication connection. However, in practical applications, the VCI apparatus can only be set to the AP hotspot mode, and when the hotspot function of the VCI apparatus fails, the communication connection cannot be established, so that the communication stability is not good. In view of the above, a new communication connection method is needed to establish a communication connection with the VCI device.
Disclosure of Invention
The embodiment of the application provides a communication connection method and related equipment, which are used for improving the success rate and stability of communication connection.
A first aspect of an embodiment of the present application provides a communication connection method, which may include:
connecting a corresponding target VCI device according to the first network access parameter;
if the connection with the target VCI device is successful, acquiring WIFI network card address information of the target VCI device;
if the connection with the target VCI device fails, connecting a corresponding gateway according to a second network access parameter, and sending a preset broadcast instruction to a receiving port of UDP broadcast service of the target VCI device, wherein the preset broadcast instruction is used for indicating the target VCI device to return WIFI network card address information;
and establishing TCP connection with the target VCI device according to the WIFI network card address information.
Optionally, as a possible implementation manner, in this embodiment of the application, if the connection with the target VCI device fails and the target VCI device does not return address information of the WIFI network card after timeout, the method further includes:
and displaying prompt information to indicate that a USB network card is accessed in the target VCI device, and establishing TCP connection with the target VCI device based on the USB network card.
Optionally, as a possible implementation manner, the communication connection method in the embodiment of the present application may further include:
and sending a first setting instruction to the target VCI device to instruct the target VCI device to open the hotspot, so that external equipment can be connected with the target VCI device according to third network access parameters.
Optionally, as a possible implementation manner, the communication connection method in the embodiment of the present application may further include:
and sending a second setting instruction to the target VCI device to instruct the target VCI device to connect a corresponding gateway according to a fourth network access parameter, and sending the preset broadcast instruction to a receiving port of the UDP broadcast service of the target VCI device.
Optionally, as a possible implementation manner, in this embodiment of the application, the acquiring address information of the WIFI network card of the target VCI device includes:
sending a preset broadcast instruction to a receiving port of the UDP broadcast service of the target VCI device, wherein the preset broadcast instruction is used for indicating the target VCI device to return WIFI network card address information;
and receiving a response message returned by the target VCI device, and analyzing the WIFI network card address information in the response message.
A second aspect of the embodiments of the present application provides a communication connection method, which may include:
setting an Access Point (AP) hotspot based on a WIFI network card of the access point;
establishing UDP broadcast service and setting a receiving port;
binding WIFI network card address information with the UDP broadcast service;
receiving UDP broadcast through the receiving port, checking whether the received broadcast meets preset conditions, if so, returning self parameter information to the opposite terminal, wherein the parameter information at least comprises the address information of the WIFI network card.
A third aspect of embodiments of the present application provides a vehicle diagnostic apparatus, which may include:
the first connection module is used for connecting a corresponding target vehicle connection interface VCI device according to the first network access parameter;
the first acquisition module is used for acquiring WIFI network card address information of the target VCI device if the connection with the target VCI device is successful;
if the connection with the target VCI device fails, connecting a corresponding gateway according to a second network access parameter, and sending a preset broadcast instruction to a receiving port of UDP broadcast service of the target VCI device, wherein the preset broadcast instruction is used for indicating the target VCI device to return WIFI network card address information;
and the second connection module is used for establishing TCP connection with the target VCI device according to the WIFI network card address information.
Optionally, as a possible implementation manner, the vehicle diagnosis device in the embodiment of the present application may further include:
and the prompting module is used for displaying prompting information to indicate that a USB network card is accessed in the target VCI device and establishing TCP connection with the target VCI device based on the USB network card if the connection with the target VCI device fails and the target VCI device does not return WIFI network card address information after overtime.
Optionally, as a possible implementation manner, the vehicle diagnosis device in the embodiment of the present application may further include:
a first sending module, configured to send a first setting instruction to the target VCI apparatus to instruct the target VCI apparatus to open a hotspot, so that an external device may connect to the target VCI apparatus according to a third network access parameter.
Optionally, as a possible implementation manner, the vehicle diagnosis device in the embodiment of the present application may further include:
and the second sending module is used for sending a second setting instruction to the target VCI device so as to indicate the target VCI device to connect a corresponding gateway according to a fourth network access parameter, and sending the preset broadcast instruction to a receiving port of a UDP broadcast service of the target VCI device.
Optionally, as a possible implementation manner, the first obtaining module in the embodiment of the present application may further include:
the transmitting unit is used for transmitting a preset broadcast instruction to a receiving port of UDP broadcast service of the target VCI device, wherein the preset broadcast instruction is used for indicating the target VCI device to return WIFI network card address information;
and the receiving unit is used for receiving a response message returned by the target VCI device and analyzing the WIFI network card address information in the response message.
A fourth aspect of embodiments of the present application provides a vehicle diagnostic apparatus, which includes a processor configured to implement the steps of the first aspect and any one of the possible implementations of the first aspect when the processor executes a computer program stored in a memory.
A fifth aspect of embodiments of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in any one of the possible implementations of the first aspect and the first aspect.
According to the technical scheme, the embodiment of the application has the following advantages:
in the embodiment of the application, two connection modes are preset in the target VCI device, the vehicle diagnosis equipment is connected with the corresponding target VCI device according to the first network access parameter, and if the connection with the target VCI device is successful, the WIFI network card address information of the target VCI device is obtained; if the connection with the target VCI device fails, connecting a corresponding gateway according to the second network access parameters, and sending a preset broadcast instruction to a receiving port of UDP broadcast service of the target VCI device, wherein the preset broadcast instruction is used for indicating the target VCI device to return WIFI network card address information; and establishing TCP connection with the target VCI device according to the WIFI network card address information. Compared with the prior art, the TCP connection can be established with the target VCI device in at least two modes, and the success rate and the stability of communication connection are improved.
Drawings
Fig. 1 is a schematic diagram of an embodiment of a communication connection method in an embodiment of the present application;
fig. 2 is a schematic diagram of another embodiment of a communication connection method in the embodiment of the present application;
fig. 3 is a schematic diagram of another embodiment of a communication connection method in the embodiment of the present application;
fig. 4 is a schematic diagram of an embodiment of a communication connection method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of an embodiment of a vehicle diagnostic apparatus according to an embodiment of the present application;
fig. 6 is a schematic hardware architecture diagram of a vehicle diagnostic apparatus according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides a communication connection method and related equipment, which are used for improving the success rate and stability of communication connection.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all 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 application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For ease of understanding, a specific flow in the embodiment of the present application is described below, and referring to fig. 1, an embodiment of a communication connection method in the embodiment of the present application may include:
s101, connecting a corresponding target VCI device according to a first network access parameter;
in the embodiment of the present application, in order to improve the success rate and stability of communication connection, a target VCI (vehicle connection interface) device in the embodiment of the present application has two connection modes in advance: in the first mode, a target VCI device is used as an AP hotspot, and external equipment is actively connected with the target VCI device; in the second mode, the target VCI device is used as a terminal and actively connected with an external gateway.
When the vehicle diagnosis device needs to collect data in the OBD system of the vehicle to be detected, the corresponding target VCI device can be connected according to the first network access parameter.
Specifically, the first network access parameter may be a hotspot name and an access password preset in the target VCI device. When the target VCI device is used as an AP hotspot, the external device may perform connection communication according to a preset hotspot name and an access password.
S102, if the connection with the target VCI device is successful, acquiring WIFI network card address information of the target VCI device;
and when the connection with the target VCI device is successful according to the first network access parameter, the communication with the target VCI device can be carried out, and the WIFI network card address information of the target VCI device is further acquired.
Optionally, as a possible implementation manner, specifically acquiring address information of the WIFI network card of the target VCI device may include: sending a preset broadcast instruction to a receiving port of UDP broadcast service of a target VCI device, wherein the preset broadcast instruction is used for indicating the target VCI device to return WIFI network card address information; and receiving a response message returned by the target VCI device, and analyzing the WIFI network card address information in the response message.
S103, if the connection with the target VCI device fails, connecting a corresponding gateway according to the second network access parameter, and sending a preset broadcast instruction to a receiving port of UDP broadcast service of the target VCI device, wherein the preset broadcast instruction is used for indicating the target VCI device to return WIFI network card address information;
when the connection with the target VCI device fails according to the first network access parameters, the target VCI device may be in a second connection mode, where the target VCI device may connect to the gateway based on the second network access parameters. The vehicle diagnosis equipment can be connected with the corresponding gateway according to the second network access parameter, and sends a preset broadcast instruction to a receiving port of the UDP broadcast service of the target VCI device, wherein the preset broadcast instruction is used for indicating the target VCI device to return address information of the WIFI network card.
And S104, establishing TCP connection with the target VCI device according to the WIFI network card address information.
After acquiring the WIFI network card address information (e.g., the WIFI network card IP address) of the target VCI device, the vehicle diagnostic device may establish a TCP connection with the target VCI device according to the WIFI network card address information, and then acquire the required data based on the TCP connection.
In the embodiment of the application, two connection modes are preset in the target VCI device, the vehicle diagnosis equipment is connected with the corresponding target VCI device according to the first network access parameter, and if the connection with the target VCI device is successful, the WIFI network card address information of the target VCI device is obtained; if the connection with the target VCI device fails, connecting a corresponding gateway according to the second network access parameters, and sending a preset broadcast instruction to a receiving port of UDP broadcast service of the target VCI device, wherein the preset broadcast instruction is used for indicating the target VCI device to return WIFI network card address information; and establishing TCP connection with the target VCI device according to the WIFI network card address information. Compared with the prior art, the TCP connection can be established with the target VCI device in at least two modes, and the success rate and the stability of communication connection are improved.
On the basis of the above embodiment, when the target VCI device is in the second mode and the target VCI device does not return the address information of the WIFI network card after timeout, further processing is required to improve the success rate and stability of the communication connection.
Referring to fig. 2, an embodiment of a communication connection method in an embodiment of the present application may include:
s201, connecting a corresponding target VCI device according to a first network access parameter;
s202, if the connection with the target VCI device is successful, acquiring WIFI network card address information of the target VCI device;
s203, if the connection with the target VCI device fails, connecting a corresponding gateway according to the second network access parameter, and sending a preset broadcast instruction to a receiving port of UDP broadcast service of the target VCI device, wherein the preset broadcast instruction is used for indicating the target VCI device to return WIFI network card address information;
s204, establishing a TCP connection with a target VCI device according to the WIFI network card address information;
the content described in steps 201 to 204 in this embodiment is similar to the content described in steps 101 to 104 in the embodiment shown in fig. 1, and is not described herein again.
S205, if the connection with the target VCI device fails and the target VCI device does not return WIFI network card address information after overtime, displaying prompt information to indicate that a USB network card is accessed into the target VCI device and establishing TCP connection with the target VCI device based on the USB network card;
if the connection with the target VCI device fails according to the first network access parameter and the target VCI device does not return the WIFI network card address information after overtime, the target VCI device is in the second connection mode, but the target VCI device is not connected to the gateway at the moment. Therefore, prompt information needs to be displayed, which is used for prompting a user to access the USB network card in the target VCI device, and establish a TCP connection with the target VCI device based on the USB network card.
Specifically, after the vehicle diagnosis device displays the prompt information, a user can connect one end of the USB network card to the target VCI device through a wired connection, and connect the other end of the USB network card to the pc end, the vehicle diagnosis device can query whether a preset USB network card exists in the network card connected to the pc, and if the IP address range of the vehicle diagnosis device is within the preset IP range, the vehicle diagnosis device establishes a TCP network connection with the VCI device through the USB network card of the VCI device.
S206, sending a first setting instruction to the target VCI device to indicate the target VCI device to open the hotspot, so that the external equipment can be connected with the target VCI device according to the third network access parameter;
optionally, as a possible implementation manner, after establishing a TCP connection with a target VCI device based on a USB network card, in order to avoid that the target VCI device occupies the USB network card for a long time, the vehicle diagnosis device in this embodiment of the application may send a first setting instruction to the target VCI device to instruct the target VCI device to start a hotspot, so that an external device may connect the target VCI device according to a third network access parameter (which may be the same as or different from the first network access parameter), and then repeatedly execute the above steps 202 to 204 until obtaining address information of a WIFI network card, and establish a TCP connection with the target VCI device based on the WIFI network card.
S207, sending a second setting instruction to the target VCI device, so as to instruct the target VCI device to connect to the corresponding gateway according to the fourth network access parameter (which may be the same as or different from the second network access parameter), and send a preset broadcast instruction to a receiving port of the UDP broadcast service of the target VCI device.
Optionally, as a possible implementation manner, after a TCP connection with the target VCI device is established based on the USB network card, in order to avoid that the target VCI device occupies the USB network card for a long time, the vehicle diagnosis device in this embodiment of the application may send a second setting instruction to the target VCI device to instruct the target VCI device to connect the corresponding gateway according to the second network access parameter, and send a preset broadcast instruction to a receiving port of the UDP broadcast service of the target VCI device to instruct the target VCI device to return address information of the WIFI network card.
The above-described embodiment describes the communication connection method from the vehicular diagnostic apparatus side, and the communication connection method will be described in detail from the VCI device side. Referring to fig. 3, another embodiment of a communication connection method in an embodiment of the present application may include:
s301, setting an AP hotspot of an access point based on a WIFI network card of the access point;
in this embodiment of the present application, in order to improve the success rate and stability of communication connection, two connection modes are preset in the target VCI apparatus in this embodiment of the present application: in the first mode, a target VCI device is used as an AP hotspot, and external equipment is actively connected with the target VCI device; in the second mode, the target VCI device is used as a terminal and actively connected with an external gateway.
When the target VCI device is in the first mode, the AP hotspot needs to be set based on the WIFI network card of the target VCI device, for example, the hotspot name and the access password are set.
S302, creating a UDP broadcast service, setting a receiving port, and binding the address information of the WIFI network card with the UDP broadcast service;
when the target VCI apparatus is in the second mode, it is necessary to connect an external gateway and receive the UDP broadcast, and to this end, it is necessary to create a UDP broadcast service in advance and set a receiving port.
S303, receiving the UDP broadcast through the receiving port, checking whether the received broadcast meets the preset condition, and if so, returning the parameter information of the user to the opposite terminal, wherein the parameter information at least comprises the address information of the WIFI network card.
When the target VCI device is in the second mode, the target VCI device can receive the UDP broadcast through the receiving port and check whether the received broadcast meets the preset conditions, if yes, the parameter information of the target VCI device is returned to the opposite terminal, and the parameter information at least comprises the address information of the WIFI network card.
Compared with the prior art, the TCP connection can be established with the target VCI device in two ways, and the success rate and the stability of communication connection are improved.
For the convenience of understanding, the communication connection method in the present application will be described below with reference to specific application embodiments. Referring to fig. 4, the method specifically includes the following steps:
s1, after the VCI device is successfully electrified and started, starting an upper computer (vehicle diagnosis equipment);
and S2, automatically connecting the name and the password of the AP hotspot of the VCI device by the upper computer, and trying to connect.
Alternatively, the AP hotspot name of the VCI device may be the serial number of the VCI device, and the password may be set to 12345678.
S3, judging whether the connection is successful, if so, indicating that the VCI device is in an AP mode, then establishing a UDP broadcast service by the upper computer, wherein the port number can be 22536, and sending a specified broadcast instruction in a preset protocol format
S4, the upper computer analyzes the IP address of the VCI device (the IP address of the WIFI network card of the VCI device), establishes TCP network connection with the VCI device and starts wireless communication diagnosis
S5, if the connection of step 3 is unsuccessful, it indicates that the VCI device is in the STA mode, and the VCI device may or may not be connected to a hot spot of a nearby wireless router.
Specifically, the upper computer starts the UDP broadcast service after selecting a hotspot connected to a nearby wireless router, and waits for a response from the VCI device. If the VCI device successfully answers, the information of the VCI device is responded to the upper computer, and the information of the VCI device is analyzed by the upper computer. The upper computer analyzes the IP address of the VCI device (the IP address of the WIFI network card of the VCI device), establishes TCP network connection with the VCI device and starts wireless communication diagnosis
And S6, if the VCI device does not respond after overtime and the overtime times are more than the specified number, the upper computer pops up a prompt message for requesting to access the USB cable.
S7, the upper computer continuously inquires the network card name of the pc machine as a preset character, and the IP address range is in a preset range.
If the network card name of the pc is a preset character and the IP address range is within a preset range, such as 192.168.100.150-192.168.100.254, it can be determined that the USB line is accessed.
And S8, if the USB line access is detected, the upper computer establishes TCP network connection with the VCI device through the USB network card of the VCI device.
And S9, the upper computer sends an instruction for setting the WIFI of the VCI device into the AP mode.
S10, or sending an instruction to set the VCI device to STA mode, and packing the hotspot name and password of the nearby wireless router into the instruction.
The VCI device can connect the designated wireless route after receiving the instruction.
And S11, the upper computer creates a UDP broadcast service with the port number being 22536, and sends a specified broadcast instruction in a preset protocol format.
Compared with the prior art, the TCP connection can be established with the target VCI device in two ways, and the success rate and the stability of communication connection are improved.
Referring to fig. 5, an embodiment of the present application further provides a vehicle diagnostic apparatus, which may include:
the first connection module 501 connects a corresponding target vehicle connection interface VCI device according to the first network access parameter;
the first obtaining module 502 is configured to, if the connection with the target VCI device is successful, obtain WIFI network card address information of the target VCI device;
if the connection with the target VCI device fails, the broadcast module 503 connects the corresponding gateway according to the second network access parameter, and sends a preset broadcast instruction to a receiving port of the UDP broadcast service of the target VCI device, where the preset broadcast instruction is used to instruct the target VCI device to return address information of the WIFI network card;
the second connection module 504 establishes a TCP connection with the target VCI device according to the address information of the WIFI network card.
Optionally, as a possible implementation manner, the vehicle diagnosis device in the embodiment of the present application may further include:
and the prompting module is used for displaying prompting information to indicate that the USB network card is accessed into the target VCI device and establishing TCP connection with the target VCI device based on the USB network card if the connection with the target VCI device fails and the target VCI device does not return address information of the WIFI network card after overtime.
Optionally, as a possible implementation manner, the vehicle diagnosis device in the embodiment of the present application may further include:
the first sending module is configured to send a first setting instruction to the target VCI apparatus to instruct the target VCI apparatus to open the hotspot, so that the external device may connect to the target VCI apparatus according to the third network access parameter.
Optionally, as a possible implementation manner, the vehicle diagnosis device in the embodiment of the present application may further include:
and the second sending module is used for sending a second setting instruction to the target VCI device so as to instruct the target VCI device to connect the corresponding gateway according to the fourth network access parameter, and sending a preset broadcast instruction to a receiving port of the UDP broadcast service of the target VCI device.
Optionally, as a possible implementation manner, the first obtaining module in the embodiment of the present application may further include:
the transmitting unit is used for transmitting a preset broadcast instruction to a receiving port of UDP broadcast service of the target VCI device, wherein the preset broadcast instruction is used for indicating the target VCI device to return WIFI network card address information;
and the receiving unit is used for receiving a response message returned by the target VCI device and analyzing the WIFI network card address information in the response message.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The network diagram editor in the embodiment of the present application is described above from the perspective of the modular functional entity, and referring to fig. 6, the vehicle diagnostic apparatus in the embodiment of the present application is described below from the perspective of hardware processing:
the vehicle diagnostic apparatus 1 may include a memory 11, a processor 12, and an input-output bus 13. The processor 11, when executing the computer program, implements the steps in the above-described embodiment of the communication connection method shown in fig. 1, such as the steps 101 to 104 shown in fig. 1. Alternatively, the processor, when executing the computer program, implements the functions of each module or unit in the above-described device embodiments.
In some embodiments of the present application, the processor is specifically configured to implement the following steps:
connecting a corresponding target vehicle connection interface VCI device according to the first network access parameter;
if the connection with the target VCI device is successful, acquiring WIFI network card address information of the target VCI device;
if the connection with the target VCI device fails, connecting a corresponding gateway according to the second network access parameters, and sending a preset broadcast instruction to a receiving port of UDP broadcast service of the target VCI device, wherein the preset broadcast instruction is used for indicating the target VCI device to return WIFI network card address information;
and establishing TCP connection with the target VCI device according to the address information of the WIFI network card.
Optionally, as a possible implementation manner, the processor may be further configured to implement the following steps:
and displaying prompt information to indicate that the USB network card is accessed in the target VCI device, and establishing TCP connection with the target VCI device based on the USB network card.
Optionally, as a possible implementation manner, the processor may be further configured to implement the following steps:
and sending a first setting instruction to the target VCI device to instruct the target VCI device to open the hotspot so that the external equipment can be connected with the target VCI device according to the third network access parameter.
Optionally, as a possible implementation manner, the processor may be further configured to implement the following steps:
and sending a second setting instruction to the target VCI device to instruct the target VCI device to connect the corresponding gateway according to the fourth network access parameter, and sending a preset broadcast instruction to a receiving port of the UDP broadcast service of the target VCI device.
Optionally, as a possible implementation manner, the processor may be further configured to implement the following steps:
sending a preset broadcast instruction to a receiving port of UDP broadcast service of a target VCI device, wherein the preset broadcast instruction is used for indicating the target VCI device to return WIFI network card address information;
and receiving a response message returned by the target VCI device, and analyzing the WIFI network card address information in the response message.
The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 11 may be an internal storage unit of the vehicle diagnosis apparatus 1 in some embodiments, for example, a hard disk of the vehicle diagnosis apparatus 1. The memory 11 may also be an external storage device of the vehicle diagnostic device 1 in other embodiments, such as a plug-in hard disk provided on the vehicle diagnostic device 1, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 11 may also include both an internal storage unit and an external storage device of the vehicle diagnostic device 1. The memory 11 may be used not only to store application software installed in the vehicle diagnostic apparatus 1 and various types of data such as codes of the computer program 01, but also to temporarily store data that has been output or is to be output.
The processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data Processing chip in some embodiments, and is used for executing program codes stored in the memory 11 or Processing data, such as executing the computer program 01.
The input/output bus 13 may be a PerIPheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc.
Further, the vehicle diagnostic device may further include a wired or wireless network interface 14, and the network interface 14 may optionally include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used to establish a communication connection between the vehicle diagnostic device 1 and other electronic devices.
Optionally, the vehicle diagnosis apparatus 1 may further include a user interface, which may include a Display (Display), an input unit such as a Keyboard (Keyboard), and optionally, a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the vehicle diagnostic device 1 and for displaying a visual user interface.
Fig. 6 shows only the vehicle diagnostic apparatus 1 with the components 11 to 14 and the computer program 01, and it will be understood by those skilled in the art that the structure shown in fig. 6 does not constitute a limitation of the vehicle diagnostic apparatus 1, and may include fewer or more components than those shown, or some components in combination, or a different arrangement of components.
The present application also provides a VCI apparatus that may include a memory, a processor, and an input-output bus. The processor, when executing the computer program, implements the steps in the above-described embodiment of the communication connection method shown in fig. 3, such as steps 301 to 303 shown in fig. 3. Alternatively, the processor, when executing the computer program, implements the functions of each module or unit in the above-described device embodiments.
In some embodiments of the present application, the processor is specifically configured to implement the following steps:
setting an Access Point (AP) hotspot based on a WIFI network card of the access point;
establishing UDP broadcast service and setting a receiving port;
binding the WIFI network card address information with UDP broadcast service;
receiving UDP broadcast through a receiving port, checking whether the received broadcast meets preset conditions, if so, returning self parameter information to an opposite terminal, wherein the parameter information at least comprises address information of the WIFI network card.
The present application further provides a computer-readable storage medium having a computer program stored thereon, which when executed by a processor, can implement the steps of:
connecting a corresponding target vehicle connection interface VCI device according to the first network access parameter;
if the connection with the target VCI device is successful, acquiring WIFI network card address information of the target VCI device;
if the connection with the target VCI device fails, connecting a corresponding gateway according to the second network access parameters, and sending a preset broadcast instruction to a receiving port of UDP broadcast service of the target VCI device, wherein the preset broadcast instruction is used for indicating the target VCI device to return WIFI network card address information;
and establishing TCP connection with the target VCI device according to the address information of the WIFI network card.
Optionally, as a possible implementation manner, the processor may be further configured to implement the following steps:
and displaying prompt information to indicate that the USB network card is accessed in the target VCI device, and establishing TCP connection with the target VCI device based on the USB network card.
Optionally, as a possible implementation manner, the processor may be further configured to implement the following steps:
and sending a first setting instruction to the target VCI device to instruct the target VCI device to open the hotspot so that the external equipment can be connected with the target VCI device according to the third network access parameter.
Optionally, as a possible implementation manner, the processor may be further configured to implement the following steps:
and sending a second setting instruction to the target VCI device to instruct the target VCI device to connect the corresponding gateway according to the fourth network access parameter, and sending a preset broadcast instruction to a receiving port of the UDP broadcast service of the target VCI device.
Optionally, as a possible implementation manner, the processor may be further configured to implement the following steps:
sending a preset broadcast instruction to a receiving port of UDP broadcast service of a target VCI device, wherein the preset broadcast instruction is used for indicating the target VCI device to return WIFI network card address information;
and receiving a response message returned by the target VCI device, and analyzing the WIFI network card address information in the response message.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A communication connection method applied to a vehicle diagnosis apparatus, the method comprising:
connecting a corresponding target vehicle connection interface VCI device according to the first network access parameter;
if the connection with the target VCI device is successful, acquiring WIFI network card address information of the target VCI device;
if the connection with the target VCI device fails, connecting a corresponding gateway according to a second network access parameter, and sending a preset broadcast instruction to a receiving port of UDP broadcast service of the target VCI device, wherein the preset broadcast instruction is used for indicating the target VCI device to return WIFI network card address information;
and establishing TCP connection with the target VCI device according to the WIFI network card address information.
2. The method of claim 1, wherein if the connection with the target VCI device fails and the target VCI device does not return WIFI network card address information after timeout, the method further comprises:
and displaying prompt information to indicate that a USB network card is accessed in the target VCI device, and establishing TCP connection with the target VCI device based on the USB network card.
3. The method of claim 2, further comprising:
and sending a first setting instruction to the target VCI device to instruct the target VCI device to open the hotspot, so that external equipment can be connected with the target VCI device according to third network access parameters.
4. The method of claim 2, further comprising:
and sending a second setting instruction to the target VCI device to instruct the target VCI device to connect a corresponding gateway according to a fourth network access parameter, and sending the preset broadcast instruction to a receiving port of the UDP broadcast service of the target VCI device.
5. The method according to any one of claims 1 to 4, wherein the obtaining of the WIFI network card address information of the target VCI device includes:
sending a preset broadcast instruction to a receiving port of the UDP broadcast service of the target VCI device, wherein the preset broadcast instruction is used for indicating the target VCI device to return WIFI network card address information;
and receiving a response message returned by the target VCI device, and analyzing the WIFI network card address information in the response message.
6. A communication connection method applied to a VCI apparatus, the method comprising:
setting an Access Point (AP) hotspot based on a WIFI network card of the access point;
establishing UDP broadcast service and setting a receiving port;
binding WIFI network card address information with the UDP broadcast service;
receiving UDP broadcast through the receiving port, checking whether the received broadcast meets preset conditions, if so, returning self parameter information to the opposite terminal, wherein the parameter information at least comprises the address information of the WIFI network card.
7. A vehicle diagnostic apparatus characterized by comprising:
the first connection module is used for connecting a corresponding target vehicle connection interface VCI device according to the first network access parameter;
the first acquisition module is used for acquiring WIFI network card address information of the target VCI device if the connection with the target VCI device is successful;
if the connection with the target VCI device fails, connecting a corresponding gateway according to a second network access parameter, and sending a preset broadcast instruction to a receiving port of UDP broadcast service of the target VCI device, wherein the preset broadcast instruction is used for indicating the target VCI device to return WIFI network card address information;
and the second connection module is used for establishing TCP connection with the target VCI device according to the WIFI network card address information.
8. A vehicle diagnostic apparatus comprising a processor for implementing the steps of the method of any one of claims 1 to 5 when executing a computer program stored in a memory.
9. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program when executed by a processor implementing the steps of the method according to any one of claims 1 to 5.
10. A VCI apparatus, comprising a processor configured to implement the steps of the method of claim 6 when executing a computer program stored in a memory.
CN202011049528.XA 2020-09-29 2020-09-29 Communication connection method and related equipment Pending CN112203252A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011049528.XA CN112203252A (en) 2020-09-29 2020-09-29 Communication connection method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011049528.XA CN112203252A (en) 2020-09-29 2020-09-29 Communication connection method and related equipment

Publications (1)

Publication Number Publication Date
CN112203252A true CN112203252A (en) 2021-01-08

Family

ID=74007889

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011049528.XA Pending CN112203252A (en) 2020-09-29 2020-09-29 Communication connection method and related equipment

Country Status (1)

Country Link
CN (1) CN112203252A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114567919A (en) * 2022-03-31 2022-05-31 深圳市英威腾电气股份有限公司 Network access method, device, equipment and storage medium
CN114745450A (en) * 2022-04-19 2022-07-12 苏州盛科科技有限公司 Chip port link training connection method and application

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001015387A1 (en) * 1999-08-26 2001-03-01 Nokia Corporation Direct mode communication method between two mobile terminals in access point controlled wireless lan systems
US20130030640A1 (en) * 2008-05-07 2013-01-31 Spx Corporation Dynamic discovery of vehicle communications interface device and method
US20150133053A1 (en) * 2013-11-08 2015-05-14 Autel Intelligent Technology Co., Ltd. Automatic connection method and apparatus between an automobile diagnostic device and a vci device
JP2015220668A (en) * 2014-05-20 2015-12-07 本田技研工業株式会社 On-vehicle communication device
CN108712502A (en) * 2018-05-29 2018-10-26 深圳市元征科技股份有限公司 Vehicle diagnosis method and connector, electronic equipment, storage medium
CN109450749A (en) * 2018-11-26 2019-03-08 美的集团武汉制冷设备有限公司 Communication switching electric-controlled plate, household appliance and appliance control system
US20190079842A1 (en) * 2017-09-13 2019-03-14 Hyundai Motor Company Failure diagnosis apparatus and method for in-vehicle control unit
CN110191498A (en) * 2019-06-17 2019-08-30 杭州涂鸦信息技术有限公司 A kind of distribution method, apparatus, equipment and the storage medium of smart machine
CN110572793A (en) * 2019-08-29 2019-12-13 深圳市元征科技股份有限公司 network connection establishing method and device and terminal equipment
CN110662197A (en) * 2019-09-02 2020-01-07 京信通信系统(中国)有限公司 Parameter configuration method, device, communication equipment and storage medium
CN110913006A (en) * 2019-11-29 2020-03-24 深圳市元征科技股份有限公司 Remote diagnosis method and system
CN110933191A (en) * 2019-10-18 2020-03-27 深圳市元征科技股份有限公司 IP address obtaining method and device, upper computer and storage medium
CN111586145A (en) * 2020-04-30 2020-08-25 深圳市元征科技股份有限公司 Vehicle diagnosis method and system, electronic equipment and storage medium
WO2020188588A1 (en) * 2019-03-15 2020-09-24 Tvs Motor Company Limited Portable wireless connected diagnostic system for a vehicle

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001015387A1 (en) * 1999-08-26 2001-03-01 Nokia Corporation Direct mode communication method between two mobile terminals in access point controlled wireless lan systems
US20130030640A1 (en) * 2008-05-07 2013-01-31 Spx Corporation Dynamic discovery of vehicle communications interface device and method
US20150133053A1 (en) * 2013-11-08 2015-05-14 Autel Intelligent Technology Co., Ltd. Automatic connection method and apparatus between an automobile diagnostic device and a vci device
JP2015220668A (en) * 2014-05-20 2015-12-07 本田技研工業株式会社 On-vehicle communication device
US20190079842A1 (en) * 2017-09-13 2019-03-14 Hyundai Motor Company Failure diagnosis apparatus and method for in-vehicle control unit
CN108712502A (en) * 2018-05-29 2018-10-26 深圳市元征科技股份有限公司 Vehicle diagnosis method and connector, electronic equipment, storage medium
CN109450749A (en) * 2018-11-26 2019-03-08 美的集团武汉制冷设备有限公司 Communication switching electric-controlled plate, household appliance and appliance control system
WO2020188588A1 (en) * 2019-03-15 2020-09-24 Tvs Motor Company Limited Portable wireless connected diagnostic system for a vehicle
CN110191498A (en) * 2019-06-17 2019-08-30 杭州涂鸦信息技术有限公司 A kind of distribution method, apparatus, equipment and the storage medium of smart machine
CN110572793A (en) * 2019-08-29 2019-12-13 深圳市元征科技股份有限公司 network connection establishing method and device and terminal equipment
CN110662197A (en) * 2019-09-02 2020-01-07 京信通信系统(中国)有限公司 Parameter configuration method, device, communication equipment and storage medium
CN110933191A (en) * 2019-10-18 2020-03-27 深圳市元征科技股份有限公司 IP address obtaining method and device, upper computer and storage medium
CN110913006A (en) * 2019-11-29 2020-03-24 深圳市元征科技股份有限公司 Remote diagnosis method and system
CN111586145A (en) * 2020-04-30 2020-08-25 深圳市元征科技股份有限公司 Vehicle diagnosis method and system, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114567919A (en) * 2022-03-31 2022-05-31 深圳市英威腾电气股份有限公司 Network access method, device, equipment and storage medium
CN114745450A (en) * 2022-04-19 2022-07-12 苏州盛科科技有限公司 Chip port link training connection method and application

Similar Documents

Publication Publication Date Title
CN107291068B (en) Vehicle diagnostic method and vehicle diagnostic apparatus
CN111796858B (en) Method, system and related equipment for detecting access of application programs in Kubernetes cluster
US11240317B2 (en) Diagnostic method and system for vehicle, and related device thereof
CN112203252A (en) Communication connection method and related equipment
WO2020125591A1 (en) Vehicle diagnosis method, management server and diagnosis server
US11514731B2 (en) Method and system for remote vehicle diagnostics
CN110545220B (en) Automobile diagnosis protocol detection method and related product
CN111586145A (en) Vehicle diagnosis method and system, electronic equipment and storage medium
US20150052226A1 (en) Communication profile selection for vehicle telematics device
CN109951562B (en) NAT traversal method and system, electronic device and storage medium
CN109062581B (en) Terminal equipment side driver processing method, device and equipment
CN113359674A (en) Vehicle diagnostic system, method, electronic device, and storage medium
CN111542035A (en) Cloud service connection method, system and related equipment
CN108173925B (en) Internet of vehicles multi-gateway control system and method
CN110971965B (en) Intelligent display equipment association method, device and system and computer storage medium
CN113259942B (en) Connection method, connection device, electronic equipment, connection system and computer-readable storage medium
CN108965403B (en) Operation and maintenance monitoring connection establishing method and terminal equipment
CN112927548A (en) Mechanical garage vehicle taking method and system and storage medium
CN111447231B (en) Vehicle protocol identification method and device
CN110809045B (en) Data communication method and related equipment thereof
CN106993288A (en) WiFi control method and device
CN109314843B (en) Device for controlling motor vehicle, method and motor vehicle for monitoring mobile Internet connection
CN111417908A (en) ECU (electronic control Unit) recognizer, and recognition method, system, equipment and medium thereof
CN113934198A (en) Vehicle diagnosis method, vehicle diagnosis device, electronic device, and storage medium
CN111740888B (en) Ignition signal synchronization method and related equipment

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