CN110891263A - Connection establishing method, diagnosis device and terminal device - Google Patents

Connection establishing method, diagnosis device and terminal device Download PDF

Info

Publication number
CN110891263A
CN110891263A CN201911328846.7A CN201911328846A CN110891263A CN 110891263 A CN110891263 A CN 110891263A CN 201911328846 A CN201911328846 A CN 201911328846A CN 110891263 A CN110891263 A CN 110891263A
Authority
CN
China
Prior art keywords
connection
communication mode
wireless communication
diagnostic
equipment
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
CN201911328846.7A
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.)
Weichai Power Co Ltd
Original Assignee
Weichai Power 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 Weichai Power Co Ltd filed Critical Weichai Power Co Ltd
Priority to CN201911328846.7A priority Critical patent/CN110891263A/en
Publication of CN110891263A publication Critical patent/CN110891263A/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/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a connection establishing method, a diagnosis device and a terminal device, wherein the method comprises the following steps: receiving a connection request sent by terminal equipment in a near field communication mode, wherein the near field communication mode is a communication mode used between diagnostic equipment and the terminal equipment, and the connection request is sent by the terminal equipment when the diagnostic equipment is touched; and sending connection information to the terminal equipment in the near field communication mode according to the connection request so as to enable the terminal equipment to establish connection with the diagnosis equipment according to the connection information, wherein the connection information comprises at least one identifier of the wireless communication mode and a connection password corresponding to each identifier of the wireless communication mode. The present case can be comparatively simple and convenient the realization diagnostic equipment and terminal equipment between be connected, and it is consuming time less, and then improves the connection efficiency between diagnostic equipment and the terminal equipment.

Description

Connection establishing method, diagnosis device and terminal device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a connection establishment method, a diagnostic device, and a terminal device.
Background
In recent years, vehicles have become the preferred way for users to travel. In order to ensure traffic safety, a vehicle is usually provided with a diagnostic device, and the vehicle can be diagnosed and detected through the diagnostic device. At present, a diagnostic device needs to be connected with a terminal device, so that a user can check data obtained by performing diagnostic detection on a vehicle by the diagnostic device through the terminal device after the connection is established.
In the prior art, in order to establish a connection between diagnostic devices and a terminal device, a user needs to manually search a name of a wireless communication mode provided by the diagnostic device on the terminal device, and then the user needs to manually input a corresponding password on the terminal device, so as to implement the connection between the terminal device and the diagnostic device.
However, in the prior art, the process of manually searching the name of the wireless communication mode and manually inputting the password is time-consuming and tedious, which causes the connection efficiency between the diagnostic device and the terminal device to be low.
Disclosure of Invention
The application provides a connection establishing method, a diagnosis device and a terminal device, which can simply and conveniently realize connection between the diagnosis device and the terminal device, and is less in time consumption, so that the connection efficiency between the diagnosis device and the terminal device is improved.
In a first aspect, the present application provides a method for establishing a connection, where the method includes:
receiving a connection request sent by terminal equipment in a near field communication mode, wherein the near field communication mode is a communication mode used between diagnostic equipment and the terminal equipment, and the connection request is sent by the terminal equipment when the diagnostic equipment is touched;
and sending connection information to the terminal equipment in the near field communication mode according to the connection request so as to enable the terminal equipment to establish connection with the diagnostic equipment according to the connection information, wherein the connection information comprises at least one connection identifier of the wireless communication mode and a connection password corresponding to the connection identifier of each wireless communication mode.
Further, when the connection information includes connection identifiers of at least two wireless communication modes and a connection password corresponding to the connection identifier of each wireless communication mode; according to the connection request, sending connection information to the terminal device in the near field communication mode so that the terminal device establishes connection with the diagnostic device according to the connection information, wherein the connection information comprises:
and sending connection information to the terminal equipment in the near field communication mode according to the connection request, so that the terminal equipment determines a connection identifier of a wireless communication mode and a connection password corresponding to the connection identifier of the determined wireless communication mode from connection identifiers of at least two wireless communication modes of the connection information and connection passwords corresponding to the connection identifiers of each wireless communication mode, and establishes connection with the diagnostic equipment according to the connection identifier of the determined wireless communication mode and the connection password corresponding to the connection identifier of the determined wireless communication mode.
Furthermore, the diagnosis equipment is connected with an interface of a vehicle-mounted diagnosis system on the vehicle to be diagnosed; the method further comprises the following steps:
and based on the vehicle-mounted diagnosis system interface, carrying out diagnosis detection on the vehicle to be diagnosed to obtain diagnosis data.
Further, after sending connection information to the terminal device in the near field communication manner according to the connection request, so that the terminal device establishes a connection with the diagnostic device according to the connection information, the method further includes:
sending diagnosis data to the terminal equipment in a wireless communication mode adopted when the terminal equipment is connected; or receiving a data request sent by the terminal equipment through a wireless communication mode adopted when the terminal equipment is connected, and sending diagnosis data to the terminal equipment through the wireless communication mode adopted when the terminal equipment is connected according to the data request.
Further, the wireless communication means includes any one of: wireless broadband communication mode, bluetooth communication mode.
In a second aspect, the present application provides a method for establishing a connection, including:
sending a connection request to a diagnostic device in a near field communication mode, wherein the near field communication mode is a communication mode used between a terminal device and the diagnostic device, and the connection request is sent when the terminal device touches the diagnostic device;
receiving connection information sent by the diagnostic equipment in the near field communication mode, wherein the connection information comprises at least one connection identifier of the wireless communication mode and a connection password corresponding to each connection identifier of the wireless communication mode;
and establishing connection with the diagnostic equipment according to the connection information.
Further, when the connection information includes connection identifiers of at least two wireless communication modes and a connection password corresponding to the connection identifier of each wireless communication mode; establishing a connection with the diagnostic device according to the connection information, including:
determining a connection identifier of a wireless communication mode and a connection password corresponding to the determined connection identifier of the wireless communication mode from connection identifiers of at least two wireless communication modes of the connection information and the connection password corresponding to the connection identifier of each wireless communication mode;
and establishing connection with the diagnostic equipment according to the connection identifier of the determined wireless communication mode and the connection password corresponding to the connection identifier of the determined wireless communication mode.
Further, the wireless communication means includes any one of: wireless broadband communication mode, bluetooth communication mode. Further, after establishing a connection with the diagnostic device according to the connection information, the method further includes:
receiving the diagnosis data sent by the diagnosis equipment through a wireless communication mode adopted when the diagnosis equipment is connected, or sending a data request to the diagnosis equipment through a wireless communication mode adopted when the diagnosis equipment is connected, so that the diagnosis equipment sends the diagnosis data to the terminal equipment through the wireless communication mode adopted when the diagnosis equipment is connected according to the connection request; and receiving the diagnosis data sent by the diagnosis equipment according to the data request in a wireless communication mode adopted when the diagnosis equipment is connected with the diagnosis equipment.
In a third aspect, the present application provides a diagnostic device comprising:
a connection request receiving unit, configured to receive a connection request sent by a terminal device through a near field communication (nfc) mode, where the nfc mode is a communication mode used between a diagnostic device and the terminal device, and the connection request is sent by the terminal device when the diagnostic device is touched;
and the connection information sending unit is used for sending connection information to the terminal equipment in the near field communication mode according to the connection request so as to enable the terminal equipment to establish connection with the diagnosis equipment according to the connection information, wherein the connection information comprises a connection identifier of a wireless communication mode and a connection password corresponding to the connection identifier of the wireless communication mode.
Further, when the connection information includes connection identifiers of at least two wireless communication modes and a connection password corresponding to the connection identifier of each wireless communication mode; the connection information sending unit is specifically configured to send connection information to the terminal device through the near field communication method according to the connection request, so that the terminal device determines a connection identifier of a wireless communication method and a connection password corresponding to the determined connection identifier of the wireless communication method from among connection identifiers of at least two wireless communication methods of the connection information and connection passwords corresponding to connection identifiers of each wireless communication method, and establishes connection with the diagnostic device according to the determined connection identifier of the wireless communication method and the determined connection password corresponding to the connection identifier of the wireless communication method.
Furthermore, the diagnosis equipment is connected with an interface of a vehicle-mounted diagnosis system on the vehicle to be diagnosed; the diagnostic apparatus further includes:
and the diagnosis unit is used for carrying out diagnosis detection on the vehicle to be diagnosed based on the vehicle-mounted diagnosis system interface to obtain diagnosis data.
Further, the diagnostic apparatus further includes:
a first data sending unit, configured to send, by the connection information sending unit, connection information to the terminal device in the near field communication manner according to the connection request, so that the terminal device establishes a connection with the diagnostic device according to the connection information, and then sends diagnostic data to the terminal device in a wireless communication manner used when establishing a connection with the terminal device;
further, the diagnostic apparatus further includes:
a data request receiving unit, configured to send, by the connection information sending unit, connection information to the terminal device in the near field communication manner according to the connection request, so that the terminal device establishes a connection with the diagnostic device according to the connection information, and then receive, by a wireless communication manner used when establishing a connection with the terminal device, a data request sent by the terminal device;
and the second data sending unit is used for sending the diagnosis data to the terminal equipment in a wireless communication mode adopted when the connection is established with the terminal equipment according to the data request.
Further, the wireless communication means includes any one of: wireless broadband communication mode, bluetooth communication mode.
In a fourth aspect, the present application provides a terminal device, including:
a connection request sending unit, configured to send a connection request to a diagnostic device through a near field communication manner, where the near field communication manner is a communication manner used between a terminal device and the diagnostic device, and the connection request is sent by the terminal device when the diagnostic device is touched;
the connection information receiving unit is used for receiving connection information sent by the diagnostic equipment in the near field communication mode, wherein the connection information comprises a connection identifier of a wireless communication mode and a connection password corresponding to the connection identifier of the wireless communication mode;
and the connection establishing unit is used for establishing connection with the diagnostic equipment according to the connection information.
Further, when the connection information includes connection identifiers of at least two wireless communication modes and a connection password corresponding to the connection identifier of each wireless communication mode; the connection establishing unit is specifically configured to determine, from connection identifiers of at least two wireless communication manners of the connection information and connection passwords corresponding to the connection identifiers of each of the wireless communication manners, a connection identifier of one wireless communication manner and a connection password corresponding to the determined connection identifier of the wireless communication manner; and establishing connection with the diagnostic equipment according to the connection identifier of the determined wireless communication mode and the connection password corresponding to the connection identifier of the determined wireless communication mode.
Further, the wireless communication means includes any one of: wireless broadband communication mode, bluetooth communication mode.
Further, the terminal device further includes:
and the first data receiving unit is used for receiving the diagnosis data sent by the diagnosis equipment in a wireless communication mode adopted when the connection establishing unit establishes connection with the diagnosis equipment according to the connection information.
Further, the terminal device further includes:
a data request sending unit, configured to send a data request to the diagnostic device in a wireless communication manner used when establishing connection with the diagnostic device, so that the diagnostic device sends diagnostic data to the terminal device in the wireless communication manner used when establishing connection with the diagnostic device according to the connection request;
and the second data receiving unit is used for receiving the diagnosis data sent by the diagnosis equipment according to the data request in a wireless communication mode adopted when the diagnosis equipment is connected with the diagnosis equipment.
In a fifth aspect, the present application provides a diagnostic device comprising: a memory and a processor;
the memory for storing a computer program;
wherein the processor executes the computer program in the memory to implement any of the methods of the first aspect.
In a sixth aspect, the present application provides a terminal device, including: a memory and a processor;
the memory for storing a computer program;
wherein the processor executes the computer program in the memory to implement any of the methods of the second aspect.
In a seventh aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions for implementing any one of the methods of the first and second aspects when executed by a processor.
According to the connection establishing method, the diagnostic equipment and the terminal equipment, when the terminal equipment touches the diagnostic equipment, the diagnostic equipment receives a connection request sent by the terminal equipment in a near field communication mode, and then the diagnostic equipment sends preset connection information comprising at least one connection identifier of a wireless communication mode and a connection password corresponding to the connection identifier of each wireless communication mode to the terminal equipment in the near field communication mode, so that the terminal equipment establishes connection with the diagnostic equipment according to the connection information. According to the scheme, the diagnosis equipment and the terminal equipment can be connected only by touching the terminal equipment and the diagnosis equipment, manual search and manual password input by a user are not needed, time consumption is low, simplicity and convenience are realized, and the connection efficiency between the diagnosis equipment and the terminal equipment is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a scene architecture diagram of connection establishment provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a connection establishment method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a connection establishment method according to a second embodiment of the present application;
fig. 4 is a signaling diagram of a connection establishment method according to a third embodiment of the present application;
fig. 5 is a schematic flowchart of a connection establishment method according to a fourth embodiment of the present application;
fig. 6 is a schematic flowchart of a connection establishment method according to a fifth embodiment of the present application;
fig. 7 is a schematic structural diagram of a diagnostic apparatus provided in a sixth embodiment of the present application;
fig. 8 is a schematic structural diagram of a diagnostic apparatus provided in a seventh embodiment of the present application;
fig. 9 is a schematic structural diagram of a terminal device according to an eighth embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal device according to a ninth embodiment of the present application;
fig. 11 is a schematic structural diagram of a diagnostic apparatus provided in an embodiment of the present application;
fig. 12 is a schematic structural diagram of a terminal device according to an eleventh embodiment of the present application.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a scene architecture diagram for connection establishment according to an embodiment of the present application, and as shown in fig. 1, the scene architecture diagram includes: a terminal device 101 and a diagnostic device 102, wherein a client of the diagnostic device 102, such as an APP, can be installed on the terminal device 101. When the connection between the terminal device 101 and the diagnostic device 102 needs to be established, that is, when the connection between the client of the diagnostic device 102 and the diagnostic device 102 needs to be established, based on the connection establishing method, the diagnostic device and the terminal device provided by the present application, the terminal device 101 may touch the diagnostic device 102, so as to complete the automatic connection between the terminal device 101 and the diagnostic device 102. The connection establishment method, the diagnostic apparatus, and the terminal apparatus provided by the present application will be described in detail below.
Fig. 2 is a schematic flowchart of a connection establishment method according to an embodiment of the present application, and is described by applying the method to a diagnostic device, as shown in fig. 2, the method includes:
step 201: and receiving a connection request sent by the terminal equipment in a near field communication mode, wherein the near field communication mode is a communication mode used between the diagnostic equipment and the terminal equipment, and the connection request is sent when the terminal equipment touches the diagnostic equipment.
Near Field Communication (NFC) is a short-range high-frequency radio technology, and devices using the technology can exchange data in close proximity to each other. The technology is integrated and evolved from a non-contact Radio Frequency Identification (RFID) and an interconnection and intercommunication technology, combines the functions of an induction type card reader, an induction type card and point-to-point on a single chip, and can perform Identification and data exchange with compatible equipment in a short distance.
The terminal device can be specifically a smart phone, a tablet personal computer, a wearable device (such as an intelligent bracelet) and other devices with an NFC function, and a client APP of the diagnosis device is installed on the terminal device.
The diagnostic equipment can be an automobile diagnostic instrument.
In this embodiment, an NFC module may be set in the diagnostic device in advance, so that the diagnostic device has an NFC function, that is, the diagnostic device may establish a connection with a client of the diagnostic device installed on the terminal device in an NFC manner. Specifically, when the connection needs to be established, the user can hold the terminal device by hand and touch the diagnostic device, at this time, the terminal device can send a connection request to the diagnostic device based on the built-in NFC module of the terminal device, and then, the diagnostic device can receive the connection request sent by the terminal device based on the NFC module preset by the diagnostic device, that is, the diagnostic device receives the exercise-level request sent by the terminal device in an NFC manner.
Step 202: and sending connection information to the terminal equipment in a near field communication mode according to the connection request so as to enable the terminal equipment to establish connection with the diagnostic equipment according to the connection information, wherein the connection information comprises at least one connection identifier of the wireless communication mode and a connection password corresponding to the connection identifier of each wireless communication mode.
In this embodiment, in addition to adding the NFC module to the diagnostic device in advance, so that the diagnostic device has an NFC function, connection information may be set in the diagnostic device based on the wireless communication module included in the diagnostic device, where the connection information includes a connection identifier of at least one wireless communication method and a connection password corresponding to the identifier of each wireless communication method. For example, the wireless communication module in the diagnostic device includes a bluetooth communication module, that is, the wireless communication mode supported by the diagnostic device includes a bluetooth communication mode, and the connection information may include a connection identifier of the bluetooth communication mode (the connection identifier of the bluetooth communication mode may be a name of the diagnostic device) and a connection password corresponding to the bluetooth communication mode (a connection password corresponding to the bluetooth communication mode, for example, a PIN code required for pairing the terminal device and the diagnostic device through bluetooth). For another example, the Wireless communication module in the diagnostic device includes a Wireless-broadband (WiFi) module, that is, the Wireless communication mode supported by the diagnostic device includes a Wireless broadband communication mode, and the connection information may include a connection identifier of the Wireless broadband communication mode (for example, a WiFi hotspot name provided by the diagnostic device) and a connection password (that is, a hotspot password) corresponding to the connection identifier of the Wireless broadband communication mode. In addition, the diagnostic device may further include another wireless communication module, and accordingly, based on the above principle, the connection identifier and the corresponding connection password of the wireless communication mode corresponding to the other wireless communication module may also be set for the other wireless communication module.
Specifically, after the diagnostic device receives the connection request sent by the terminal device in the NFC mode, the diagnostic device may send connection information to the terminal device in the NFC mode. When the connection information only comprises a connection identifier of a wireless communication mode and a connection password corresponding to the wireless communication mode, the diagnosis device can directly send the connection information to the terminal device through an NFC mode. When the connection information includes connection identifiers of at least two wireless communication modes and a connection password corresponding to each wireless communication mode, in one example, the diagnostic device may select a connection identifier of one wireless communication mode from the connection identifiers of at least two wireless communication modes, and send the connection identifier of the selected wireless communication mode and the connection password corresponding to the connection identifier of the selected wireless communication mode as connection information to the terminal device in an NFC manner; in another example, the diagnostic device may send connection identifiers of at least two wireless communication modes in the connection information and connection passwords corresponding to each wireless communication mode to the terminal device through the NFC mode. After the terminal device receives the connection information sent by the terminal device in the NFC mode, the terminal device can be connected with the diagnosis device according to the connection information.
The application provides a connection establishing method, a diagnosis device and a terminal device, when the terminal device touches the diagnosis device, the diagnosis device receives a connection request sent by the terminal device in a near field communication mode, and then the diagnosis device sends preset connection information comprising at least one wireless communication mode identifier and a connection password corresponding to each wireless communication mode identifier to the terminal device in the near field communication mode, so that the terminal device establishes connection with the diagnosis device according to the connection information. According to the scheme, the diagnosis equipment and the terminal equipment can be connected only by touching the terminal equipment and the diagnosis equipment, manual search and manual password input by a user are not needed, time consumption is low, simplicity and convenience are realized, and the connection efficiency between the diagnosis equipment and the terminal equipment is improved.
Fig. 3 is a schematic flowchart of a connection establishment method provided in the second embodiment of the present application, and the method is applied to a diagnostic device for description, as shown in fig. 3, the method includes:
step 301: and receiving a connection request sent by the terminal equipment in a near field communication mode, wherein the near field communication mode is a communication mode used between the diagnostic equipment and the terminal equipment, and the connection request is sent when the terminal equipment touches the diagnostic equipment.
In this embodiment, step 301 may refer to the explanation in step 201 in the first embodiment, and is not described herein again.
Step 302: according to the connection request, sending connection information to the terminal equipment in a near field communication mode, so that the terminal equipment determines an identifier of a wireless communication mode and a connection password corresponding to the determined connection identifier of the wireless communication mode in connection identifiers of at least two wireless communication modes of the connection information and the connection passwords corresponding to the identifiers of each wireless communication mode, and establishes connection with the diagnostic equipment according to the determined connection identifier of the wireless communication mode and the connection password corresponding to the determined identifier of the wireless communication mode.
In this embodiment, the explanation of the connection information may refer to the relevant explanation in step 202 of the first embodiment. Then, when the diagnostic device sends connection information including connection identifiers of at least two wireless communication modes and connection passwords corresponding to the connection identifiers of each wireless communication mode to the terminal device through the NFC mode, the terminal device needs to select one connection identifier of a wireless communication mode from the connection identifiers of at least two wireless communication modes, and then establishes connection with the diagnostic device according to the selected connection identifier of the wireless communication mode and the connection password corresponding to the selected connection identifier of the wireless communication mode. In an example, the terminal device may automatically select a connection identifier of a wireless communication mode from connection identifiers of at least two wireless communication modes based on a wireless communication mode supported by the terminal device. In another example, the terminal device may also present the connection information to the user for selection by the user. The embodiment is merely illustrated by two examples, and the connection identifier of one wireless communication mode may be selected in other modes, which is not limited in this application.
Step 303: and based on the vehicle-mounted diagnosis system interface, carrying out diagnosis detection on the vehicle to be diagnosed to obtain diagnosis data.
In this embodiment, the Diagnostic device is disposed On a vehicle to be diagnosed, and an On-Board Diagnostic (OBD) interface is further disposed On the vehicle to be diagnosed, and the Diagnostic device is connected to the OBD interface. After the vehicle is powered on, the diagnostic equipment can perform diagnostic detection on the vehicle to be diagnosed based on the OBD interface to obtain diagnostic data. The diagnostic equipment is also provided with communication modules such as CAN, K and the like, and CAN convert bus signals such as CAN, K and the like into tcp signals received by the terminal equipment.
Step 304: and receiving the data request sent by the terminal equipment in a wireless communication mode adopted when the terminal equipment is connected.
In this embodiment, after the diagnostic device establishes a connection with the terminal device, the terminal device may send a data request to the diagnostic device through the wireless communication method used when establishing a connection with the terminal device, so that the diagnostic device may receive the data request sent by the terminal device through the wireless communication method used when establishing a connection with the terminal device. For example, after the diagnostic device sends the connection identifier of at least one wireless communication mode and the connection password corresponding to the connection identifier of each wireless communication mode to the terminal device, assuming that the terminal device establishes connection with the diagnostic device according to the connection identifier of the bluetooth communication mode and the connection password corresponding to the connection identifier of the bluetooth communication mode in the connection identifiers of the at least one wireless communication mode, the wireless communication mode used when establishing connection with the terminal device is the bluetooth communication mode, so that the terminal device sends a data request to the diagnostic device through the bluetooth communication mode, and the diagnostic device receives the data request sent by the terminal device through the bluetooth communication mode.
Step 305: and according to the data request, sending the diagnosis data to the terminal equipment in a wireless communication mode adopted when the terminal equipment is connected.
In this embodiment, after receiving a data request sent by the terminal device, the diagnostic data can be sent to the terminal device in a wireless communication manner used when establishing a connection with the terminal device. For example in step 304, the diagnostic device will send the diagnostic data to the terminal device in a bluetooth communication manner.
In this embodiment, in addition to sending the diagnostic data to the terminal device through steps 304 and 305, the diagnostic device may also send the diagnostic data directly to the terminal device through a wireless communication method used when establishing a connection with the terminal device. The terminal device, after receiving the diagnostic data, may display the diagnostic data to let the user know the current situation of the vehicle to be diagnosed.
In this embodiment, by sending connection information including connection identifiers of at least two wireless communication modes and a connection password corresponding to the connection identifier of each wireless communication mode to the terminal device, the terminal device can select an available wireless communication mode according to an actual situation to establish connection with the diagnostic device, thereby improving the selectivity of connection. And through being connected diagnostic equipment and OBD interface, diagnostic equipment can treat diagnostic vehicle and carry out diagnostic test based on the OBD interface to obtain diagnostic data, and through sending diagnostic data to terminal equipment and showing, so that the user knows the condition of treating diagnostic vehicle in time. Moreover, the problems that the connection between the terminal equipment and the diagnostic equipment fails to be established or the diagnostic equipment is blocked and the like due to the fact that the connection mode between the terminal equipment and the diagnostic equipment is not matched can be solved.
Fig. 4 is a signaling diagram of a connection establishment method according to a third embodiment of the present application, as shown in fig. 4, the method includes:
step 401: the terminal device sends a connection request to the diagnostic device in a near field communication mode, wherein the near field communication mode is a communication mode used between the terminal device and the diagnostic device, and the connection request is sent when the terminal device touches the diagnostic device.
Step 402: and the diagnostic equipment sends connection information to the terminal equipment in a near field communication mode according to the connection request, wherein the connection information comprises at least one connection identifier of the wireless communication mode and a connection password corresponding to the connection identifier of each wireless communication mode.
Step 403: and the terminal equipment establishes connection with the diagnosis equipment according to the connection information.
In this embodiment, in steps 401 to 403, reference may be made to the explanations in the first embodiment and the second embodiment, and details are not described here.
In this embodiment, when the terminal device touches the diagnostic device, the diagnostic device receives a connection request sent by the terminal device in a near field communication manner, and then the diagnostic device sends preset connection information including at least one connection identifier of a wireless communication manner and a connection password corresponding to the connection identifier of each wireless communication manner to the terminal device in the near field communication manner, so that the terminal device establishes a connection with the diagnostic device according to the connection information. According to the scheme, the diagnosis equipment and the terminal equipment can be connected only by touching the terminal equipment and the diagnosis equipment, manual search and manual password input by a user are not needed, time consumption is low, simplicity and convenience are realized, the connection efficiency between the diagnosis equipment and the terminal equipment is improved, and convenience is improved.
Fig. 5 is a schematic flowchart of a connection establishment method provided in the fourth embodiment of the present application, and the method is applied to a terminal device for description, as shown in fig. 5, the method includes:
step 501: and sending a connection request to the diagnostic equipment in a near field communication mode, wherein the near field communication mode is a communication mode used between the terminal equipment and the diagnostic equipment, and the connection request is sent when the terminal equipment touches the diagnostic equipment.
Step 502: and receiving connection information sent by the diagnostic equipment in a near field communication mode, wherein the connection information comprises at least one connection identifier of the wireless communication mode and a connection password corresponding to the connection identifier of each wireless communication mode.
Step 503: and establishing connection with the diagnostic equipment according to the connection information.
In this embodiment, reference may be made to the related explanations in the first embodiment and the second embodiment in the steps 501 to 503, which are not described herein again.
In the embodiment, the diagnosis device and the terminal device can be connected only by touching the terminal device with the diagnosis device, manual search and manual password input by a user are not needed, time consumption is low, simplicity and convenience are achieved, the connection efficiency between the diagnosis device and the terminal device is improved, convenience is improved, and user experience is improved.
Fig. 6 is a schematic flowchart of a connection establishment method provided in a sixth embodiment of the present application, and the method is applied to a terminal device for description, as shown in fig. 6, the method includes:
step 601: and sending a connection request to the diagnostic equipment in a near field communication mode, wherein the near field communication mode is a communication mode used between the terminal equipment and the diagnostic equipment, and the connection request is sent when the terminal equipment touches the diagnostic equipment.
Step 602: and receiving connection information sent by the diagnostic equipment in a near field communication mode, wherein the connection information comprises connection identifiers of at least two wireless communication modes and connection passwords corresponding to the connection identifiers of each wireless communication mode.
Step 603: and determining a connection identifier of one wireless communication mode and a connection password corresponding to the determined connection identifier of the wireless communication mode from among the connection identifiers of at least two wireless communication modes of the connection information and the connection passwords corresponding to the connection identifiers of each wireless communication mode.
Step 604: and establishing connection with the diagnostic equipment according to the connection identifier of the determined wireless communication mode and the connection password corresponding to the connection identifier of the determined wireless communication mode.
Step 605: and receiving the diagnosis data sent by the diagnosis equipment in a wireless communication mode adopted when the terminal equipment is connected.
In this embodiment, in steps 601 to 605, reference may be made to the explanations in the first embodiment and the second embodiment, and details are not repeated here.
In this embodiment, by sending connection information including connection identifiers of at least two wireless communication modes and a connection password corresponding to the connection identifier of each wireless communication mode to the terminal device, the terminal device can select an available wireless communication mode according to an actual situation to establish connection with the diagnostic device, thereby improving the selectivity of connection. And through being connected diagnostic equipment and OBD interface, diagnostic equipment can treat diagnostic vehicle and carry out diagnostic test based on the OBD interface to obtain diagnostic data, and through sending diagnostic data to terminal equipment and showing, so that the user knows the condition of treating diagnostic vehicle in time.
Fig. 7 is a schematic structural diagram of a diagnostic apparatus according to a sixth embodiment of the present application, and as shown in fig. 7, the diagnostic apparatus includes:
a connection request receiving unit 701, configured to receive a connection request sent by a terminal device through a near field communication method, where the near field communication method is a communication method used between the diagnostic device and the terminal device, and the connection request is sent by the terminal device when the diagnostic device is touched;
a connection information sending unit 702, configured to send, according to the connection request, connection information to the terminal device in a near field communication manner, so that the terminal device establishes a connection with the diagnostic device according to the connection information, where the connection information includes a connection identifier of a wireless communication manner and a connection password corresponding to the connection identifier of the wireless communication manner.
The diagnostic apparatus provided in this embodiment is the same as the technical solution for implementing the connection establishing method provided in the first embodiment, and the implementation principle and the technical effect thereof are similar and will not be described again.
Fig. 8 is a schematic structural diagram of a diagnostic apparatus provided in a seventh embodiment of the present application, and based on the sixth embodiment, as shown in fig. 8,
further, when the connection information includes connection identifiers of at least two wireless communication modes and a connection password corresponding to the connection identifier of each wireless communication mode; the connection information sending unit 702 is specifically configured to send, according to the connection request, connection information to the terminal device through a near field communication method, so that the terminal device determines a connection identifier of one wireless communication method and a connection password corresponding to the determined connection identifier of the wireless communication method among connection identifiers of at least two wireless communication methods of the connection information and connection passwords corresponding to the connection identifiers of each wireless communication method, and establishes a connection with the diagnostic device according to the determined connection identifier of the wireless communication method and the connection password corresponding to the determined connection identifier of the wireless communication method.
Furthermore, the diagnosis equipment is connected with an interface of a vehicle-mounted diagnosis system on the vehicle to be diagnosed; the diagnostic apparatus further includes: and the diagnosis unit 801 is configured to perform diagnosis detection on the vehicle to be diagnosed based on the vehicle-mounted diagnosis system interface to obtain diagnosis data.
Further, the diagnostic apparatus further comprises:
a first data sending unit 802, configured to send, by the connection information sending unit 702, connection information to the terminal device in a near field communication manner according to the connection request, so that the terminal device establishes a connection with the diagnostic device according to the connection information, and then sends diagnostic data to the terminal device in a wireless communication manner used when establishing a connection with the terminal device;
further, the diagnostic apparatus further comprises:
a data request receiving unit 803, configured to receive a data request sent by the terminal device in a wireless communication manner adopted when connection is established with the terminal device after the connection information sending unit 702 sends the connection information to the terminal device in a near field communication manner according to the connection request so that the terminal device establishes connection with the diagnostic device according to the connection information;
and a second data sending unit 804, configured to send the diagnostic data to the terminal device in a wireless communication mode used when the terminal device is connected to the terminal device according to the data request.
Further, the wireless communication means includes any one of: wireless broadband communication mode, bluetooth communication mode.
The diagnostic apparatus provided in this embodiment is the same as the technical solution for implementing the connection establishment method provided in the second embodiment, and the implementation principle and the technical effect are similar and will not be described again.
Fig. 9 is a schematic structural diagram of a terminal device according to an eighth embodiment of the present application, and as shown in fig. 9, the terminal device includes:
a connection request sending unit 901, configured to send a connection request to the diagnostic device through a near field communication manner, where the near field communication manner is a communication manner used between the terminal device and the diagnostic device, and the connection request is sent when the terminal device touches the diagnostic device;
a connection information receiving unit 902, configured to receive connection information sent by the diagnostic apparatus in a near field communication manner, where the connection information includes a connection identifier of a wireless communication manner and a connection password corresponding to the connection identifier of the wireless communication manner;
a connection establishing unit 903, configured to establish a connection with the diagnostic apparatus according to the connection information.
The terminal device provided in this embodiment is the same as the technical solution for implementing the connection establishment method provided in the fourth embodiment, and the implementation principle and technical effect thereof are similar and will not be described again.
Fig. 10 is a schematic structural diagram of a terminal device according to a ninth embodiment of the present application, and on the basis of the eighth embodiment, as shown in fig. 10,
further, when the connection information includes connection identifiers of at least two wireless communication modes and a connection password corresponding to the connection identifier of each wireless communication mode; a connection establishing unit 903, configured to determine, from connection identifiers of at least two wireless communication manners of the connection information and connection passwords corresponding to the connection identifiers of each wireless communication manner, a connection identifier of one wireless communication manner and a connection password corresponding to the determined connection identifier of the wireless communication manner; and establishing connection with the diagnostic equipment according to the connection identifier of the determined wireless communication mode and the connection password corresponding to the connection identifier of the determined wireless communication mode.
Further, the wireless communication means includes any one of: wireless broadband communication mode, bluetooth communication mode.
Further, the terminal device further includes:
and a first data receiving unit 1001 configured to receive the diagnostic data sent by the diagnostic device in a wireless communication manner used when the connection establishing unit 903 establishes a connection with the diagnostic device according to the connection information.
Further, the terminal device further includes:
a data request sending unit 1002, configured to send a data request to the diagnostic device in a wireless communication manner used when the connection establishing unit 903 establishes a connection with the diagnostic device according to the connection information, so that the diagnostic device sends the diagnostic data to the terminal device in the wireless communication manner used when the connection with the diagnostic device is established according to the connection request;
the second data receiving unit 1003 is configured to receive the diagnostic data sent by the diagnostic device according to the data request in a wireless communication manner used when the diagnostic device establishes a connection with the diagnostic device.
The terminal device provided in this embodiment is the same as the technical solution for implementing the connection establishment method provided in the fifth embodiment, and the implementation principle and technical effect are similar and are not described again.
Fig. 11 is a schematic structural diagram of a diagnostic apparatus provided in an embodiment of the present application, including: a memory 1101 and a processor 1102;
a memory 1101 for storing a computer program;
the processor 1102 executes the computer program in the memory 1101 to implement the methods in the first embodiment and the second embodiment and the method executed by the diagnostic device in the third embodiment.
Fig. 12 is a schematic structural diagram of a terminal according to an eleventh embodiment of the present application, including: a memory 1201 and a processor 1202;
a memory 1201 for storing a computer program;
the processor 1202 executes the computer program in the memory 1201 to implement the methods in the fourth embodiment and the fifth embodiment, and the method executed by the diagnostic apparatus in the third embodiment.
The present application provides a computer-readable storage medium having stored thereon computer-executable instructions for implementing the method of any of the above embodiments when executed by a processor.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for establishing a connection, the method comprising:
receiving a connection request sent by terminal equipment in a near field communication mode, wherein the near field communication mode is a communication mode used between diagnostic equipment and the terminal equipment, and the connection request is sent by the terminal equipment when the diagnostic equipment is touched;
and sending connection information to the terminal equipment in the near field communication mode according to the connection request so as to enable the terminal equipment to establish connection with the diagnosis equipment according to the connection information, wherein the connection information comprises at least one connection identifier of the wireless communication mode and a connection password corresponding to each identifier of the wireless communication mode.
2. The method according to claim 1, wherein when the connection information includes connection identifiers of at least two wireless communication modes and a connection password corresponding to the connection identifier of each wireless communication mode; according to the connection request, sending connection information to the terminal device in the near field communication mode so that the terminal device establishes connection with the diagnostic device according to the connection information, wherein the connection information comprises:
and sending connection information to the terminal equipment in the near field communication mode according to the connection request, so that the terminal equipment determines a connection identifier of a wireless communication mode and a connection password corresponding to the connection identifier of the determined wireless communication mode from connection identifiers of at least two wireless communication modes of the connection information and connection passwords corresponding to the connection identifiers of each wireless communication mode, and establishes connection with the diagnostic equipment according to the connection identifier of the determined wireless communication mode and the connection password corresponding to the connection identifier of the determined wireless communication mode.
3. The method of claim 1, wherein the diagnostic device interfaces with an on-board diagnostic system on the vehicle being diagnosed; the method further comprises the following steps:
and based on the vehicle-mounted diagnosis system interface, carrying out diagnosis detection on the vehicle to be diagnosed to obtain diagnosis data.
4. The method according to claim 3, wherein after sending connection information to the terminal device through the near field communication manner according to the connection request, so that the terminal device establishes a connection with the diagnostic device according to the connection information, the method further comprises:
sending diagnosis data to the terminal equipment in a wireless communication mode adopted when the terminal equipment is connected; or receiving a data request sent by the terminal equipment through a wireless communication mode adopted when the terminal equipment is connected, and sending diagnosis data to the terminal equipment through the wireless communication mode adopted when the terminal equipment is connected according to the data request.
5. The method according to any of claims 1-4, wherein the wireless communication means comprises any of: wireless broadband communication mode, bluetooth communication mode.
6. A method for establishing a connection, the method comprising:
sending a connection request to a diagnostic device in a near field communication mode, wherein the near field communication mode is a communication mode used between a terminal device and the diagnostic device, and the connection request is sent when the terminal device touches the diagnostic device;
receiving connection information sent by the diagnostic equipment in the near field communication mode, wherein the connection information comprises at least one connection identifier of the wireless communication mode and a connection password corresponding to each connection identifier of the wireless communication mode;
and establishing connection with the diagnostic equipment according to the connection information.
7. The method according to claim 6, wherein when the connection information includes connection identifiers of at least two wireless communication modes and a connection password corresponding to the connection identifier of each wireless communication mode; establishing a connection with the diagnostic device according to the connection information, including:
determining a connection identifier of a wireless communication mode and a connection password corresponding to the determined connection identifier of the wireless communication mode from connection identifiers of at least two wireless communication modes of the connection information and the connection password corresponding to the connection identifier of each wireless communication mode;
and establishing connection with the diagnostic equipment according to the connection identifier of the determined wireless communication mode and the connection password corresponding to the connection identifier of the determined wireless communication mode.
8. The method according to claim 6 or 7, wherein the wireless communication means comprises any one of: wireless broadband communication mode, bluetooth communication mode.
9. A diagnostic apparatus, characterized in that the diagnostic apparatus comprises:
a connection request receiving unit, configured to receive a connection request sent by a terminal device through a near field communication (nfc) mode, where the nfc mode is a communication mode used between a diagnostic device and the terminal device, and the connection request is sent by the terminal device when the diagnostic device is touched;
and the connection information sending unit is used for sending connection information to the terminal equipment in the near field communication mode according to the connection request so as to enable the terminal equipment to establish connection with the diagnosis equipment according to the connection information, wherein the connection information comprises a connection identifier of a wireless communication mode and a connection password corresponding to the connection identifier of the wireless communication mode.
10. A terminal device, characterized in that the terminal device comprises:
a connection request sending unit, configured to send a connection request to a diagnostic device through a near field communication manner, where the near field communication manner is a communication manner used between a terminal device and the diagnostic device, and the connection request is sent by the terminal device when the diagnostic device is touched;
the connection information receiving unit is used for receiving connection information sent by the diagnostic equipment in the near field communication mode, wherein the connection information comprises a connection identifier of a wireless communication mode and a connection password corresponding to the connection identifier of the wireless communication mode;
and the connection establishing unit is used for establishing connection with the diagnostic equipment according to the connection information.
CN201911328846.7A 2019-12-20 2019-12-20 Connection establishing method, diagnosis device and terminal device Pending CN110891263A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911328846.7A CN110891263A (en) 2019-12-20 2019-12-20 Connection establishing method, diagnosis device and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911328846.7A CN110891263A (en) 2019-12-20 2019-12-20 Connection establishing method, diagnosis device and terminal device

Publications (1)

Publication Number Publication Date
CN110891263A true CN110891263A (en) 2020-03-17

Family

ID=69752708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911328846.7A Pending CN110891263A (en) 2019-12-20 2019-12-20 Connection establishing method, diagnosis device and terminal device

Country Status (1)

Country Link
CN (1) CN110891263A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111510214A (en) * 2020-04-23 2020-08-07 京东方科技集团股份有限公司 Optical communication device, optical communication system, and communication connection establishment method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140114504A1 (en) * 2012-10-18 2014-04-24 Omron Automotive Electronics Co., Ltd. In-vehicle system, vehicle control method, and vehicle control system
CN104301405A (en) * 2014-09-30 2015-01-21 安徽江淮汽车股份有限公司 Vehicle diagnostic method, module and system
CN106911345A (en) * 2015-12-23 2017-06-30 北京奇虎科技有限公司 A kind of car-mounted terminal
CN106911756A (en) * 2015-12-23 2017-06-30 北京奇虎科技有限公司 A kind of vehicle and mobile terminal communication method and device
CN110139243A (en) * 2019-03-06 2019-08-16 北京车和家信息技术有限公司 Vehicle monitoring method, monitoring terminal and vehicle monitoring system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140114504A1 (en) * 2012-10-18 2014-04-24 Omron Automotive Electronics Co., Ltd. In-vehicle system, vehicle control method, and vehicle control system
CN104301405A (en) * 2014-09-30 2015-01-21 安徽江淮汽车股份有限公司 Vehicle diagnostic method, module and system
CN106911345A (en) * 2015-12-23 2017-06-30 北京奇虎科技有限公司 A kind of car-mounted terminal
CN106911756A (en) * 2015-12-23 2017-06-30 北京奇虎科技有限公司 A kind of vehicle and mobile terminal communication method and device
CN110139243A (en) * 2019-03-06 2019-08-16 北京车和家信息技术有限公司 Vehicle monitoring method, monitoring terminal and vehicle monitoring system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111510214A (en) * 2020-04-23 2020-08-07 京东方科技集团股份有限公司 Optical communication device, optical communication system, and communication connection establishment method
CN111510214B (en) * 2020-04-23 2021-11-12 京东方科技集团股份有限公司 Optical communication device, optical communication system, and communication connection establishment method

Similar Documents

Publication Publication Date Title
CN111543041B (en) Selection method of analog card and mobile device
CN109017344B (en) Charging pile automatic authentication method
CN105790799A (en) Bluetooth Pairing System And Method
CN113508609A (en) User-friendly vehicle-mounted Bluetooth pairing scheme
US20100211685A1 (en) Pairing exchange
JP2017068449A (en) Car sharing system and vehicle lending and returning method
CN103687061A (en) Method and terminal for establishing connection
US20170154327A1 (en) Mobile Payment Method and Apparatus and Near Field Communication Device
CN107182035A (en) Use the wireless vehicle charging communication system and method for location Based service
JP2016508677A (en) Method for realizing selection of secure element in short-range wireless communication, mobile terminal, and POS machine
US9408244B2 (en) Multimedia terminal, control method thereof, and recording medium
CN106856585B (en) Method and device for establishing short-distance wireless channel
CN102832976A (en) NFC (Near Field Communication) communication method and device
CN105469634A (en) Parking space information acquisition method, mobile terminal and vehicle-mounted equipment
CN108496379A (en) Unmanned plane Activiation method, terminal, unmanned plane and machine readable storage medium
CN104021474A (en) Method, device and system for improving mobile payment security
US20150379322A1 (en) Method and apparatus for communication using fingerprint input
US9697396B2 (en) Interactive processing method and device and electronic apparatus
CN114302334A (en) Digital key positioning method, device, medium and equipment based on UWB ranging
CN110855318B (en) Tire pressure sensor upgrading method, device, equipment and medium
CN113038421A (en) Automobile diagnosis method, automobile diagnosis device and automobile gateway
CN102594893A (en) Remote compelled method and system for mobile terminal equipment and computer
CN104485982A (en) Intelligent accessory-based NFC (near field communication) method and system
CN110891263A (en) Connection establishing method, diagnosis device and terminal device
CN104875695B (en) For the mobile device and system from user identifier

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200317

RJ01 Rejection of invention patent application after publication