CN112055066A - Communication method, apparatus, diagnostic device, and computer-readable storage medium - Google Patents

Communication method, apparatus, diagnostic device, and computer-readable storage medium Download PDF

Info

Publication number
CN112055066A
CN112055066A CN202010884177.8A CN202010884177A CN112055066A CN 112055066 A CN112055066 A CN 112055066A CN 202010884177 A CN202010884177 A CN 202010884177A CN 112055066 A CN112055066 A CN 112055066A
Authority
CN
China
Prior art keywords
dhcp server
address
party
current
diagnostic
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.)
Granted
Application number
CN202010884177.8A
Other languages
Chinese (zh)
Other versions
CN112055066B (en
Inventor
刘均
李河金
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202010884177.8A priority Critical patent/CN112055066B/en
Publication of CN112055066A publication Critical patent/CN112055066A/en
Application granted granted Critical
Publication of CN112055066B publication Critical patent/CN112055066B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/008Registering or indicating the working of vehicles communicating information to a remotely located station
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0808Diagnosing performance data
    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • 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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application is applicable to the technical field of automobile diagnosis, and provides a communication method, a communication device, diagnosis equipment and a computer-readable storage medium, which are applied to the diagnosis equipment and comprise the following steps: receiving a starting instruction of a diagnostic program; reading a preset data item from a registry key of a third-party dynamic host configuration protocol service DHCP Server program, and writing the read preset data item into an initialization file of the third-party DHCP Server program so as to start a third-party DHCP Server service installed in the diagnostic equipment; and acquiring the current IP address of the Ethernet card in the diagnosis equipment, and communicating with an Electronic Control Unit (ECU) of the vehicle according to the current IP address of the Ethernet card so as to realize the diagnosis of the vehicle. By the method, the speed of allocating the IP address to the diagnostic equipment can be improved.

Description

Communication method, apparatus, diagnostic device, and computer-readable storage medium
Technical Field
The present application belongs to the field of automotive diagnostic technologies, and in particular, relates to a communication method, an apparatus, a diagnostic device, and a computer-readable storage medium.
Background
An Electronic Control Unit (ECU) is also called a "traveling computer" or a "vehicle-mounted computer". The function of the device is to calculate, process and judge various information input by a corresponding module (if the ECU is the ECU of the engine, the corresponding module is the engine) according to a program stored in the device, and then output an instruction to control the action of a relevant actuator, thereby achieving the purpose of quickly, accurately and automatically controlling the corresponding module to work.
As the vehicle ethernet is more and more popular, more and more ECUs perform Diagnostic communication (DOIP) through a network Protocol. The ECU based on the DOIP Protocol generally allocates an Internet Protocol (IP) address in an Auto-Internet Protocol (Auto-IP) or a Dynamic Host Configuration Protocol (DHCP) manner. The Auto-IP mode is very simple, and the IP address can be automatically allocated only by connecting a network cable. However, when the IP address is assigned by using the DHCP method, the ECU needs to be connected to an entity having a DHCP Server (service), and then the DHCP Server assigns an IP address to the ECU, and the ECU uses the IP address to communicate with a diagnostic device and the like. The existing method generally uses a router as a relay, wherein one end of the router is connected with a diagnostic device provided with a diagnostic program, and the other end of the router is connected with a car gateway. The router is provided with a DHCP Server service function, and can allocate IP addresses to machines accessed to the router to form a local area network. However, this method for implementing DHCP allocation by using a router has two drawbacks, the first is: the cost is increased, and a router is required to be arranged for communication with the ECU; secondly, the method comprises the following steps: the router needs an external power supply, and under the environment of a vehicle repair workshop or outdoor first-aid repair, if the external power supply cannot be connected, the router cannot be used.
Therefore, it is necessary to provide a new method to solve the above technical problems.
Disclosure of Invention
The embodiment of the application provides a communication method, which can solve the problem that in the prior art, the communication connection efficiency between a diagnostic device and an ECU of a vehicle is low, and further improve the communication speed between the diagnostic device and the ECU of the vehicle.
In a first aspect, an embodiment of the present application provides a communication method, applied to a diagnostic device, including:
receiving a starting instruction of a diagnostic program;
reading a preset data item from a registry key of a third-party dynamic host configuration protocol service DHCP Server program, and writing the read preset data item into an initialization file of the third-party DHCP Server program so as to start a third-party DHCP Server service installed in the diagnostic equipment, wherein the started third-party DHCP Server service is used for allocating an IP address of a preset network segment to the diagnostic equipment;
and acquiring the current IP address of the Ethernet card in the diagnosis equipment, and communicating with an Electronic Control Unit (ECU) of the vehicle according to the current IP address of the Ethernet card, a gateway and a subnet mask to realize the diagnosis of the vehicle.
Optionally, the reading a preset data item from a registry key of the third-party DHCP Server program includes:
reading a preset configuration file;
judging whether a field of the preset configuration file indicates that the diagnostic equipment is provided with the third-party DHCP Server program or not;
if yes, reading a preset data item from the registry key of the third-party DHCP Server program.
Optionally, the method further comprises:
and if the field of the preset configuration file indicates that the diagnostic equipment does not install the third-party DHCP Server program, installing the third-party DHCP Server program so as to install the third-party DHCP Server service on the diagnostic equipment.
Optionally, the installing the third-party DHCP Server program includes:
acquiring a resource identifier of a target button in a window of the third-party DHCP Server program, wherein the target button is a button which needs to be triggered when the third-party DHCP Server program is installed;
and automatically installing the third-party DHCP Server program according to the resource identifier of the target button and an installation command, wherein the installation command is a command which needs to be triggered for installing the third-party DHCP Server program.
Optionally, the obtaining a current IP address of an ethernet card in the diagnostic device, and communicating with an electronic control unit ECU of a vehicle according to the current IP address of the ethernet card specifically include:
acquiring a network segment corresponding to the current IP address of the Ethernet card in the diagnosis equipment;
judging whether the network segment corresponding to the current IP address is the same as a preset network segment or not,
and if so, communicating with the ECU of the vehicle according to the current IP address of the Ethernet card.
Optionally, the initialization file stores a target IP address allocated by the third-party DHCP Server service to the diagnostic device, and the communication method further includes:
if the network segment corresponding to the current IP address of the Ethernet card is the same as the preset network segment, further judging whether the current IP address of the Ethernet card is consistent with the target IP address;
if the current IP address of the Ethernet card is consistent with the current IP address of the vehicle, communicating with an ECU of the vehicle according to the current IP address of the Ethernet card;
and if not, refreshing the Ethernet card.
Optionally, the communication method further includes:
if the network segment corresponding to the current IP address of the Ethernet card is different from the preset network segment, prompting a user to plug and unplug the network cable so that the third-party DHCP Server redistributes the IP address of the preset network segment for the diagnostic equipment.
In a second aspect, an embodiment of the present application provides a communication apparatus, which is applied to a diagnostic device, and includes:
a start instruction receiving unit for receiving a start instruction of the diagnostic program;
a data item writing unit, configured to read a preset data item from a registry key of the third-party DHCP Server program, and write the read preset data item into an initialization file of the third-party DHCP Server program, so as to start a third-party DHCP Server service installed in the diagnostic device, where the started third-party DHCP Server service is used to allocate an IP address of a preset network segment to the diagnostic device;
and the communication unit is used for acquiring the current IP address of the Ethernet card in the diagnosis equipment and communicating with an Electronic Control Unit (ECU) of the vehicle according to the current IP address of the Ethernet card so as to realize the diagnosis of the vehicle.
In a third aspect, an embodiment of the present application provides a diagnostic apparatus, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the method according to any one of the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the method according to any one of the first aspect.
In a fifth aspect, the present application provides a computer program product, which when run on a terminal device, causes the terminal device to execute the method of any one of the above first aspects.
Compared with the prior art, the embodiment of the application has the advantages that: and after receiving a starting instruction of the diagnostic program, directly reading a preset data item from a registry entry of a third-party DHCP Server program, and writing the read preset data item into an initialization file of the third-party DHCP Server program so as to start a third-party DHCP Server service installed in the diagnostic equipment. The starting of the third-party DHCP Server service is not required to be realized by starting the third-party DHCP Server program, and the third-party DHCP Server program is required to be jumped in a complicated way, so that the starting speed of the third-party DHCP Server service can be increased by the method. In addition, the third-party DHCP Server service is used for distributing the IP address of the preset network segment for the diagnostic equipment, so that the starting speed of the third-party DHCP Server service can be increased, the speed of distributing the IP address of the preset network segment for the diagnostic equipment can be increased, and the communication connection efficiency of the diagnostic equipment and the ECU of the vehicle can be further improved. That is, because the DHCP Server service is realized without using a router, the cost is reduced, and the convenience of allocating the IP address of the preset network segment to the diagnostic device is also improved. In addition, because the third-party DHCP Server service is automatically started, and does not need to be manually started by a user, errors caused by starting the third-party DHCP Server service by different users are avoided, so that the success rate of the allocation of the IP addresses of the preset network segments is improved, and the communication success rate of the diagnostic equipment and the ECU is also improved.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the embodiments or the description of the prior art will be briefly described below.
Fig. 1 is a flowchart illustrating a communication method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a diagnostic device connected to a vehicle according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating another communication method according to an embodiment of the present application;
FIG. 4 is a diagram illustrating a window involved in providing a third-party DHCP Server program during an installation process according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a communication device according to a second embodiment of the present application;
fig. 6 is a schematic structural diagram of a diagnostic apparatus provided in the third embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The first embodiment is as follows:
when the vehicle is assembled, it is not easy for people to know various kinds of information hidden in the vehicle body. In the conventional method, necessary information is generally acquired by communicating with an ECU of a vehicle. At present, the router itself is usually used to allocate IP addresses of preset network segments to the diagnostic device and the ECU through its own DHCP Server service, which results in higher cost and cannot allocate IP addresses without an external power supply. In order to solve the above problem, an embodiment of the present application provides a communication method, which directly reads a preset data item from a registry entry of a third-party DHCP Server program after receiving a start instruction of a diagnostic program, and writes the read preset data item into an initialization file of the third-party DHCP Server program, so as to start a third-party DHCP Server service installed in the diagnostic device. Therefore, the third-party DHCP Server can be started without a router or manual starting when the third-party DHCP Server program is started, so that the starting speed and the starting accuracy of the third-party DHCP Server service are improved, and the speed of allocating the IP address for the diagnostic equipment is also improved.
Fig. 1 shows a flowchart of a communication method provided in an embodiment of the present application, the communication method is applied to a diagnostic device, and the diagnostic device is installed with a diagnostic program for diagnosing a vehicle, which is detailed as follows:
in step S11, a diagnostic program start instruction is received.
Specifically, an interface of the diagnostic device displays an icon corresponding to the diagnostic program, and when the diagnostic device detects that a user double-clicks (or other operation for starting the diagnostic program) the icon of the diagnostic program, the diagnostic device determines that a start instruction of the diagnostic program is received. Alternatively, as shown in fig. 2, when the diagnostic device detects that the vehicle is connected to the vehicle through a Network (the Network adopts a Controller Area Network (CAN) protocol), it determines that the start instruction of the diagnostic program is received.
Step S12, reading a preset data item from a registry key of a third-party DHCP Server program, and writing the read preset data item into an initialization file of the third-party DHCP Server program so as to start a third-party DHCP Server service installed in the diagnostic equipment, wherein the started third-party DHCP Server service is used for allocating an IP address of a preset network segment to the diagnostic equipment.
The initialization file of the third-party DHCP Server program refers to a file with a suffix of ". ini".
In this step, after writing the read preset data item into the initialization file of the third-party DHCP Server program, the diagnostic device calls a corresponding interface to open and close the third-party DHCP Server service, for example, the service of opening the service management object is realized by "OpenSCManager"; the service of acquiring the service state is realized through the QueryServiceStatus; realizing the service of 'opening service' by 'Startservice'; the service of "stop service" is realized by "ControlService".
In some embodiments, the preset data items include an IP address pool, a gateway, and a subnet mask; and the IP address of the preset network segment allocated to the diagnostic equipment is one IP address in the IP address pool. The IP address pool refers to an address range where an IP address of a preset network segment to be allocated to the diagnostic equipment by a third-party DHCP Server service is located. For example, assuming that the IP address pool is 192.168.0.1-255, the IP address of the preset network segment allocated to the diagnostic device is one of the IP address pools, and may be 192.168.0.1, 192.168.0.2, or the like, for example, but the preset network segment is "192.168" regardless of which IP address is allocated. Optionally, the third-party DHCP Server service also allocates an IP address to the ECU, and the allocated IP address is also in the network segment where the IP address pool is located.
In some embodiments, the preset data items stored in the registry key of the third-party DHCP Server program may be obtained after the first start of the third-party DHCP Server service, and then the obtained preset data items are stored in the registry key of the third-party DHCP Server program. For example, after the diagnostic device installs the third-party DHCP Server program and starts the third-party DHCP Server service for the first time, the preset data item is obtained, and then the obtained preset data item is stored in the registry entry of the third-party DHCP Server program. When the preset data items comprise the IP address pool, the gateway and the subnet mask, the data included by the preset data items are all the data necessary for the communication between the diagnostic equipment and the ECU, so that through the operation, the preset data items do not need to be determined again when the third-party DHCP Server service is started subsequently, namely the determination time of the preset data items is saved, the speed of starting the third-party DHCP Server service is greatly improved, and the efficiency of allocating the IP addresses to the diagnostic equipment is further improved.
In some embodiments, if the diagnostic device does not read the preset data item from the registry entry of the third-party DHCP Server program, the diagnostic device prompts the user to check whether to install the third-party DHCP Server program, and/or prompts the user to input data included in the preset data item.
And step S13, acquiring the IP address of the Ethernet card in the diagnosis equipment, and communicating with the ECU of the vehicle according to the current IP address of the Ethernet card to realize the diagnosis of the vehicle.
In the step, after the third-party DHCP Server service allocates the IP address to the diagnostic equipment, the diagnostic equipment acquires the communication between the current IP address of the Ethernet card of the diagnostic equipment and the ECU of the vehicle, and further realizes the diagnosis of the vehicle. In some embodiments, if the diagnostic device communicates with the ECU of the vehicle, the gateway and the subnet mask stored in association with the data item may be further used, for example, the diagnostic device sends the content to be communicated to the gateway, and the gateway forwards the received content to the ECU via the IP address of the ECU of the vehicle.
In the embodiment of the application, after the starting instruction of the diagnostic program is received, the preset data item is directly read from the registry key of the third-party DHCP Server program, and the read preset data item is written into the initialization file of the third-party DHCP Server program so as to start the third-party DHCP Server service installed in the diagnostic equipment. The starting of the third-party DHCP Server service is not required to be realized by starting the third-party DHCP Server program, and the third-party DHCP Server program is required to be jumped in a complicated way, so that the starting speed of the third-party DHCP Server service can be increased by the method. In addition, the third-party DHCP Server service is used for distributing the IP address of the preset network segment for the diagnostic equipment, so that the starting speed of the third-party DHCP Server service can be increased, the speed of distributing the IP address of the preset network segment for the diagnostic equipment can be increased, and the communication connection efficiency of the diagnostic equipment and the ECU of the vehicle can be further improved. That is, because the DHCP Server service is realized without using a router, the cost is reduced, and the convenience of allocating the IP address of the preset network segment to the diagnostic device is also improved. In addition, because the third-party DHCP Server service is automatically started, and does not need to be manually started by a user, errors caused by starting the third-party DHCP Server service by different users are avoided, so that the success rate of IP address allocation is improved, and the communication success rate of the diagnostic equipment and the ECU is also improved.
Fig. 3 is a flowchart illustrating another communication method provided in this embodiment of the present application, where a configuration file is newly created, and a field indicating whether a third-party DHCP Server program is installed in the diagnostic device is written in the configuration file. In this way, the diagnostic device can quickly determine whether it has installed the third party DHCP Server program by reading the field in the configuration file. Step 31 and step S34 of this embodiment are the same as step 11 and step S13 of the above embodiment, and are not described again here.
Step 31, receiving a starting instruction of the diagnostic program.
Step 32, reading a preset configuration file.
Specifically, a preset configuration file is read, and a field in the preset configuration file is read, where the field of the preset configuration file is used to indicate whether the diagnostic device has installed the third-party DHCP Server program. For example, if the diagnostic device does not install the third-party DHCP Server program, setting the initial value of the field of the preset configuration file to be 0; after the diagnostic device installs the third-party DHCP Server program, the value of the field is modified to 1. That is, in the above example, if the value of the field of the configuration file is "0", it is determined that the diagnostic device does not have the third-party DHCP Server program installed; and if the value of the field of the configuration file is 1, judging that the diagnosis equipment is provided with a third-party DHCP Server program.
In some embodiments, the predetermined configuration file is automatically read when the diagnostic device detects a connection to the vehicle via the network cable.
Step 33, judging whether the field of the preset configuration file indicates that the diagnostic equipment has installed the third-party DHCP Server program, if so, reading a preset data item from a registry entry of the third-party DHCP Server program, and writing the read preset data item into an initialization file of the third-party DHCP Server program to start a third-party DHCP Server service installed on the diagnostic equipment, wherein the started third-party DHCP Server service is used for allocating an IP address of a preset network segment to the diagnostic equipment.
Specifically, if the third-party DHCP Server program is installed in the diagnostic device according to the value of the field of the configuration file, the preset data item is read from the registry entry of the third-party DHCP Server program.
And step S34, acquiring the current IP address of the Ethernet card in the diagnosis equipment, and communicating with the ECU of the vehicle according to the current IP address of the Ethernet card to realize the diagnosis of the vehicle.
In this embodiment, a configuration file is created, and a value of a field of the configuration file is set to indicate whether the diagnostic device has installed the third-party DHCP Server program. Because the calculated amount of the value of the identification field is very small, whether the diagnostic equipment is provided with the third-party DHCP Server program or not can be quickly judged, and whether the third-party DHCP Server service is started or not does not need to be started by starting the third-party DHCP Server program or not can be quickly judged.
In some embodiments, after the step 32, comprising:
and if the field of the preset configuration file indicates that the diagnostic equipment does not install the third-party DHCP Server program, installing the third-party DHCP Server program so as to install the third-party DHCP Server service on the diagnostic equipment.
In this embodiment, if it is determined that the diagnostic device does not have the third-party DHCP Server program installed, the third-party DHCP Server program is installed, and after the third-party DHCP Server program is installed in the diagnostic device, the third-party DHCP Server service is also installed in the diagnostic device. If a third party DHCP Server service is already installed on the diagnostic device, the "service" in the management interface in the diagnostic device will contain the third party DHCP Server service. Specifically, if the diagnostic device is a computer with a diagnostic program installed, the user can view information included in the "service" by: right-clicking [ the computer ], then clicking [ manage ], then clicking [ service and application ], and finally clicking [ service ], wherein the service is information of all services installed in the computer.
In some embodiments, to reduce user operations, if a field of the preset configuration file indicates that the diagnostic device does not install the third-party DHCP Server program, it is detected whether the diagnostic device itself stores an installation package of the third-party DHCP Server program, and if the diagnostic device itself stores a corresponding installation package, the third-party DHCP Server program is installed according to the installation package. If the diagnostic equipment does not store the corresponding installation package, detecting whether the diagnostic equipment is in a networking state, if so, searching the installation package of the third-party DHCP Server program through the network, and realizing the installation of the third-party DHCP Server program according to the searched installation package.
In some embodiments, in order to reduce the number of operations required by a user when installing a third-party DHCP Server program in a diagnostic device and improve the success rate of installation, a manner of controlling installation by the diagnostic device may be adopted, where the installing the third-party DHCP Server program includes:
a1, obtaining the resource Identification (ID) of the target button in the window of the third-party DHCP Server program, wherein the target button is the button which needs to be triggered when the third-party DHCP Server program is installed. For example, if the button to be triggered for installing the third-party DHCP Server program is a button corresponding to the "next" button in the window, the button corresponding to the "next" button is the target button.
A2, automatically installing the third-party DHCP Server program according to the resource ID of the target button and the installation command.
And the installation command is a command which needs to be triggered when the third-party DHCP Server program is installed.
In this embodiment, first, a window handle and a window name related to the third-party DHCP Server program in the installation process are obtained, a resource ID corresponding to each button of the window is obtained through the window handle and the window name, and then a specific command is sent to a button to be operated, for example, if a button of "next" is desired to be clicked, a command corresponding to "click" is sent to the button of "next". As shown in fig. 4, if the window handle of fig. 4 is hWnd, the window handle of the "NEXT" button is hWnd2, and the resource ID is ID _ BTN _ NEXT, the NEXT operation can be implicitly performed by means of PostMessage (hWnd, WM _ COMMAND, (WPARAM) ID _ BTN _ NEXT, (lpaaram) hWnd2), until the entire complex process is installed, so that one-key installation of the third-party DHCP Server program can be realized, without user operation, and the good experience of the user is improved.
The PostMessage (hWnd, WM _ COMMAND, (WPARAM) ID _ BTN _ NEXT, (LPARAM) hWnd2) has the following meanings:
1. PostMessage is a windows application program interface used to send messages between the same process or different processes.
2. WM _ COMMAND: clicking on a menu, button, etc. generates a command message.
3. Wparam represents a specific command ID and lparam represents a child window handle.
PostMessage (hWnd, WM _ COMMAND, (WPARAM) ID _ BTN _ NEXT, (LPARAM) hWnd2), indicating that a right click message is sent to the ID _ BTN _ NEXT button.
In this embodiment, the diagnostic device generates a statement for installing the third-party DHCP Server program, so that automatic installation of the third-party DHCP Server program can be achieved according to the statement, and user operation is not required, thereby reducing the probability of installation failure due to user operation.
In some embodiments, before the diagnostic device communicates with the ECU, it needs to first determine whether the current IP address of the ethernet card of the diagnostic device is the IP address allocated to the diagnostic device by the third-party DHCP Server program, where the step S34 (or step S13) includes:
and B1, acquiring a network segment corresponding to the current IP address of the Ethernet card in the diagnosis equipment.
And B2, judging whether the network segment corresponding to the current IP address is the same as the preset network segment.
And B3, if the network segment corresponding to the current IP address of the Ethernet card is the same as the preset network segment, communicating with the ECU of the vehicle according to the current IP address of the Ethernet card.
Since the IP address allocated by the third-party DHCP Server service to the diagnostic device has a preset network segment, before communication, it is necessary to determine whether the network segment of the IP address allocated to the diagnostic device has a "preset network segment" or not. For example, if the preset network segment is "192.168", and the IP address allocated to the diagnostic device is "192.168.0.2", the network segment corresponding to the "192.168.0.2" is "192.168", that is, the network segment corresponding to the "192.168.0.2" is the same as the preset network segment. Because only the preset network segment in the IP address is matched, but the whole IP address is not matched, the matching speed is favorably improved.
In some embodiments, considering that the diagnostic device itself carries Auto-IP, and when the Auto-IP allocates an IP address, the corresponding segment is 169.254, and for the purpose of distinction, the segment is 192.168. Specifically, the network segment in the IP address pool is set to 192.168.
In some embodiments, the communication method further comprises:
and if the network segment corresponding to the current IP address of the Ethernet card is different from the preset network segment, prompting a user to plug and unplug a network cable, wherein the network cable is used for connecting the diagnostic equipment and an ECU of the vehicle.
In this embodiment, after plugging and unplugging the network cable, the third-party DHCP Server service may automatically reallocate the IP address, so that if the diagnostic device determines that the network segment corresponding to the current IP address of the ethernet card is different from the preset network segment, the user is prompted to plug and unplug the network cable.
In some embodiments, since there may be a delay in changing the IP address of the ethernet card of the diagnostic device, if the network segment corresponding to the current IP address of the ethernet card is different from the preset network segment, the diagnostic device continues to wait, and if the current IP address of the ethernet card has not been changed after exceeding the preset duration, the diagnostic device prompts the user to plug and unplug the network cable. By adding a period of buffer time, the situation that a user plugs and unplugs the network cable for many times is avoided.
In some embodiments, the initialization file stores a target IP address allocated by the third-party DHCP Server service to the diagnostic device, and the communication method further includes:
if the network segment corresponding to the current IP address of the Ethernet card is the same as the preset network segment, further judging whether the current IP address of the Ethernet card is consistent with the target IP address, and if so, communicating with an ECU of the vehicle according to the current IP address of the Ethernet card; and if not, refreshing the Ethernet card.
Specifically, in order to ensure that the diagnostic device and the ECU can accurately communicate, after determining that the network segment corresponding to the current IP address of the ethernet card is the same as the preset network segment, further determining whether the current IP address of the ethernet card is the same as the target IP address stored in the initialization file, and if not, refreshing the ethernet card of the diagnostic device.
In this embodiment, considering that there may be a delay after the third-party DHCP Server program allocates an IP address to the diagnostic device, the IP address is updated in time by refreshing the ethernet card of the diagnostic device.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Example two:
fig. 5 shows a block diagram of a communication device provided in the embodiment of the present application, corresponding to the communication method described in the above embodiment, and only the relevant parts to the embodiment of the present application are shown for convenience of description.
Referring to fig. 5, the communication device 5 is applied to a diagnostic apparatus including: a start instruction receiving unit 51, a data item writing unit 52, and a communication unit 53. Wherein:
a start instruction receiving unit 51 for receiving a start instruction of the diagnostic program.
And a data item writing unit 52, configured to read a preset data item from a registry key of the third-party DHCP Server program, and write the read preset data item into an initialization file of the third-party DHCP Server program, so as to start a third-party DHCP Server service installed in the diagnostic device, where the started third-party DHCP Server service is used to allocate an IP address of a preset network segment to the diagnostic device.
In some embodiments, the communication device 5 further comprises:
and the data item determining unit is used for prompting a user to check whether the third-party DHCP Server program is installed or not and/or prompting the user to input data contained in the preset data item if the diagnostic equipment does not read the preset data item from the registry entry of the third-party DHCP Server program.
And the communication unit 53 is configured to acquire a current IP address of an ethernet card in the diagnostic device, and communicate with an electronic control unit ECU of the vehicle according to the current IP address of the ethernet card, so as to implement diagnosis of the vehicle.
In the embodiment of the application, the third-party DHCP Server service is started without starting the third-party DHCP Server program, and the third-party DHCP Server program needs complicated jumping, so that the starting speed of the third-party DHCP Server service can be increased by the method. In addition, the third-party DHCP Server service is used for distributing the IP address of the preset network segment for the diagnostic equipment, so that the starting speed of the third-party DHCP Server service can be increased, the speed of distributing the IP address of the preset network segment for the diagnostic equipment can be increased, and the communication connection efficiency of the diagnostic equipment and the ECU of the vehicle can be further improved. That is, because the DHCP Server service is realized without using a router, the cost is reduced, and the convenience of allocating the IP address of the preset network segment to the diagnostic device is also improved. In addition, because the third-party DHCP Server service is automatically started, and does not need to be manually started by a user, errors caused by starting the third-party DHCP Server service by different users are avoided, so that the success rate of IP address allocation is improved, and the communication success rate of the diagnostic equipment and the ECU is also improved.
In some embodiments, the data item writing unit 52 is specifically configured to:
reading a preset configuration file; and judging whether the field of the preset configuration file indicates that the diagnosis equipment has installed the third-party DHCP Server program, and if so, reading a preset data item from a registry entry of the third-party DHCP Server program.
In some embodiments, the data item writing unit 52 is specifically configured to, when reading the preset configuration file: and when the diagnostic equipment detects that the vehicle is connected with the vehicle through the network cable, automatically reading a preset configuration file.
In some embodiments, the communication device 5 comprises:
and the program installation unit is used for installing the third-party DHCP Server program if the field of the preset configuration file indicates that the diagnostic equipment does not install the third-party DHCP Server program, so as to install the third-party DHCP Server service on the diagnostic equipment.
In some embodiments, the program installation unit is specifically configured to: if the field of the preset configuration file indicates that the diagnostic equipment does not install the third-party DHCP Server program, whether the diagnostic equipment stores the installation package of the third-party DHCP Server program or not is detected, and if the diagnostic equipment stores the corresponding installation package, the third-party DHCP Server program is installed according to the installation package. If the diagnostic equipment does not store the corresponding installation package, detecting whether the diagnostic equipment is in a networking state, if so, searching the installation package of the third-party DHCP Server program through the network, and realizing the installation of the third-party DHCP Server program according to the searched installation package.
In some embodiments, when the program installation unit installs the third-party DHCP Server program, the program installation unit is specifically configured to:
acquiring a resource ID of a target button in a window of the third-party DHCP Server program, wherein the target button is a button which needs to be triggered when the third-party DHCP Server program is installed; and automatically installing the third-party DHCP Server program according to the resource ID of the target button and the installation command.
In some embodiments, the communication unit 53 includes:
the IP address acquisition module of the Ethernet card is used for acquiring a network segment corresponding to the current IP address of the Ethernet card in the diagnosis equipment;
and the communication submodule is used for judging whether the network segment corresponding to the current IP address is the same as a preset network segment or not, and if so, communicating with the ECU of the vehicle according to the current IP address of the Ethernet card.
In some embodiments, the initialization file stores a target IP address allocated by the third-party DHCP Server service for the diagnostic device, and the communication apparatus 5 further includes:
and the IP address comparison unit is used for further judging whether the current IP address of the Ethernet card is consistent with the target IP address or not if the network segment corresponding to the current IP address of the Ethernet card is the same as the preset network segment, communicating with the ECU of the vehicle according to the current IP address of the Ethernet card if the current IP address of the Ethernet card is consistent with the target IP address, and refreshing the Ethernet card if the current IP address of the Ethernet card is inconsistent with the target IP address.
In some embodiments, the communication device 5 further comprises:
and the plugging and unplugging prompting unit is used for prompting a user to plug and unplug a network cable if the network segment corresponding to the current IP address of the Ethernet card is different from the preset network segment so as to ensure that the third-party DHCP Server redistributes the IP address of the preset network segment for the diagnostic equipment.
Wherein the network cable is used for the connection diagnostic device and the ECU of the vehicle.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
Example three:
fig. 6 is a schematic structural diagram of a diagnostic apparatus according to an embodiment of the present application. As shown in fig. 6, the diagnostic apparatus 6 of this embodiment includes: at least one processor 60 (only one processor is shown in fig. 6), a memory 61, and a computer program 62 stored in the memory 61 and executable on the at least one processor 60, the processor 60 implementing the steps in any of the various method embodiments described above when executing the computer program 62:
receiving a starting instruction of a diagnostic program;
reading a preset data item from a registry key of a third-party dynamic host configuration protocol service DHCP Server program, and writing the read preset data item into an initialization file of the third-party DHCP Server program so as to start a third-party DHCP Server service installed in the diagnostic equipment, wherein the started third-party DHCP Server service is used for allocating an IP address of a preset network segment to the diagnostic equipment;
and acquiring the current IP address of the Ethernet card in the diagnosis equipment, and communicating with an Electronic Control Unit (ECU) of the vehicle according to the current IP address of the Ethernet card, a gateway and a subnet mask to realize the diagnosis of the vehicle.
Optionally, the reading a preset data item from a registry key of the third-party DHCP Server program includes:
reading a preset configuration file;
judging whether a field of the preset configuration file indicates that the diagnostic equipment is provided with the third-party DHCP Server program or not;
if yes, reading a preset data item from the registry key of the third-party DHCP Server program.
Optionally, the method further comprises:
and if the field of the preset configuration file indicates that the diagnostic equipment does not install the third-party DHCP Server program, installing the third-party DHCP Server program so as to install the third-party DHCP Server service on the diagnostic equipment.
Optionally, the installing the third-party DHCP Server program includes:
acquiring a resource identifier of a target button in a window of the third-party DHCP Server program, wherein the target button is a button which needs to be triggered when the third-party DHCP Server program is installed;
and automatically installing the third-party DHCP Server program according to the resource identifier of the target button and an installation command, wherein the installation command is a command which needs to be triggered for installing the third-party DHCP Server program.
Optionally, the obtaining a current IP address of an ethernet card in the diagnostic device, and communicating with an electronic control unit ECU of a vehicle according to the current IP address of the ethernet card specifically include:
acquiring a network segment corresponding to the current IP address of the Ethernet card in the diagnosis equipment;
judging whether the network segment corresponding to the current IP address is the same as a preset network segment or not,
and if so, communicating with the ECU of the vehicle according to the current IP address of the Ethernet card.
Optionally, the initialization file stores a target IP address allocated by the third-party DHCP Server service to the diagnostic device, and the communication method further includes:
if the network segment corresponding to the current IP address of the Ethernet card is the same as the preset network segment, further judging whether the current IP address of the Ethernet card is consistent with the target IP address;
if the current IP address of the Ethernet card is consistent with the current IP address of the vehicle, communicating with an ECU of the vehicle according to the current IP address of the Ethernet card;
and if not, refreshing the Ethernet card.
Optionally, the communication method further includes:
if the network segment corresponding to the current IP address of the Ethernet card is different from the preset network segment, prompting a user to plug and unplug the network cable so that the third-party DHCP Server redistributes the IP address of the preset network segment for the diagnostic equipment.
The diagnosis device 6 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The diagnostic device may include, but is not limited to, a processor 60, a memory 61. It will be understood by those skilled in the art that fig. 6 is merely an example of the diagnostic device 6, and does not constitute a limitation of the diagnostic device 6, and may include more or less components than those shown, or some components in combination, or different components, such as input and output devices, network access devices, etc.
The Processor 60 may be a Central Processing Unit (CPU), and the Processor 60 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may in some embodiments be an internal storage unit of the diagnostic device 6, such as a hard disk or a memory of the diagnostic device 6. The memory 61 may also be an external storage device of the diagnostic device 6 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the diagnostic device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the diagnostic device 6. The memory 61 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 61 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
An embodiment of the present application further provides a network device, where the network device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps of any of the various method embodiments described above when executing the computer program.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
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, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. 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.
The above-mentioned 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; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A communication method, applied to a diagnostic device, comprising:
receiving a starting instruction of a diagnostic program;
reading a preset data item from a registry key of a third-party dynamic host configuration protocol service DHCP Server program, and writing the read preset data item into an initialization file of the third-party DHCP Server program so as to start a third-party DHCP Server service installed in the diagnostic equipment, wherein the started third-party DHCP Server service is used for allocating an IP address of a preset network segment to the diagnostic equipment;
acquiring the current IP address of an Ethernet card in the diagnostic equipment;
and communicating with an Electronic Control Unit (ECU) of the vehicle according to the current IP address so as to realize the diagnosis of the vehicle.
2. The communication method according to claim 1, wherein the reading the preset data item from the registry key of the DHCP Server program specifically includes:
reading a preset configuration file;
judging whether a field of the preset configuration file indicates that the diagnostic equipment is provided with the third-party DHCP Server program or not;
if yes, reading a preset data item from the registry key of the third-party DHCP Server program.
3. The communication method of claim 2, wherein the method further comprises:
and if the field of the preset configuration file indicates that the diagnostic equipment does not install the third-party DHCP Server program, installing the third-party DHCP Server program so as to install the third-party DHCP Server service on the diagnostic equipment.
4. The communication method of claim 3, wherein the installing the third party DHCP Server program comprises:
acquiring a resource identifier of a target button in a window of the third-party DHCP Server program, wherein the target button is a button which needs to be triggered when the third-party DHCP Server program is installed;
and automatically installing the third-party DHCP Server program according to the resource identifier of the target button and the installation command.
5. The communication method according to any one of claims 1 to 4, wherein the acquiring a current IP address of an Ethernet card in the diagnostic device, and communicating with an Electronic Control Unit (ECU) of a vehicle according to the current IP address specifically comprises:
acquiring a network segment corresponding to the current IP address of the Ethernet card in the diagnosis equipment;
judging whether the network segment corresponding to the current IP address is the same as a preset network segment or not,
and if so, communicating with the ECU of the vehicle according to the current IP address of the Ethernet card.
6. The communication method of claim 5, wherein the initialization file stores a target IP address assigned by the third-party DHCP Server service for the diagnostic device, the communication method further comprising:
if the network segment corresponding to the current IP address of the Ethernet card is the same as the preset network segment, further judging whether the current IP address of the Ethernet card is consistent with the target IP address;
if the current IP address of the Ethernet card is consistent with the current IP address of the vehicle, communicating with an ECU of the vehicle according to the current IP address of the Ethernet card;
and if not, refreshing the Ethernet card.
7. The communication method of claim 5, wherein the communication method further comprises:
if the network segment corresponding to the current IP address of the Ethernet card is different from the preset network segment, prompting a user to plug and unplug the network cable so that the third-party DHCP Server redistributes the IP address of the preset network segment for the diagnostic equipment.
8. A communication device, applied to a diagnostic apparatus, comprising:
a start instruction receiving unit for receiving a start instruction of the diagnostic program;
a data item writing unit, configured to read a preset data item from a registry key of the third-party DHCP Server program, and write the read preset data item into an initialization file of the third-party DHCP Server program, so as to start a third-party DHCP Server service installed in the diagnostic device, where the started third-party DHCP Server service is used to allocate an IP address of a preset network segment to the diagnostic device;
and the communication unit is used for acquiring the current IP address of the Ethernet card in the diagnosis equipment and communicating with an Electronic Control Unit (ECU) of the vehicle according to the current IP address of the Ethernet card so as to realize the diagnosis of the vehicle.
9. A diagnostic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202010884177.8A 2020-08-28 2020-08-28 Communication method, communication device, diagnosis device, and computer-readable storage medium Active CN112055066B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010884177.8A CN112055066B (en) 2020-08-28 2020-08-28 Communication method, communication device, diagnosis device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010884177.8A CN112055066B (en) 2020-08-28 2020-08-28 Communication method, communication device, diagnosis device, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN112055066A true CN112055066A (en) 2020-12-08
CN112055066B CN112055066B (en) 2023-06-30

Family

ID=73607952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010884177.8A Active CN112055066B (en) 2020-08-28 2020-08-28 Communication method, communication device, diagnosis device, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN112055066B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112953775A (en) * 2021-02-25 2021-06-11 湖北亿咖通科技有限公司 Vehicle machine upgrading system and method
CN113778557A (en) * 2021-09-15 2021-12-10 深圳市元征软件开发有限公司 Vehicle diagnosis software configuration method, device, server and storage medium
CN114756585A (en) * 2022-03-23 2022-07-15 深圳市元征科技股份有限公司 Vehicle data acquisition method and device, electronic equipment and storage medium
CN113778557B (en) * 2021-09-15 2024-04-26 深圳市元征软件开发有限公司 Vehicle diagnosis software configuration method, device, server and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104410555A (en) * 2014-12-11 2015-03-11 无锡市电子仪表工业有限公司 Method for accessing household internet-of-thing gateway to internet network
DE102014104521A1 (en) * 2013-12-24 2015-06-25 Electronics And Telecommunications Research Institute Apparatus and method for assigning dynamic internet protocol addresses (IP addresses) in a vehicle communication network
CN106020895A (en) * 2016-05-27 2016-10-12 北京金山安全软件有限公司 Application program starting method and user terminal
CN108189782A (en) * 2017-12-28 2018-06-22 深圳市元征科技股份有限公司 A kind of diagnostic device
CN108303964A (en) * 2017-12-28 2018-07-20 深圳市元征科技股份有限公司 A kind of network connector and Vehicular diagnostic method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102014104521A1 (en) * 2013-12-24 2015-06-25 Electronics And Telecommunications Research Institute Apparatus and method for assigning dynamic internet protocol addresses (IP addresses) in a vehicle communication network
CN104410555A (en) * 2014-12-11 2015-03-11 无锡市电子仪表工业有限公司 Method for accessing household internet-of-thing gateway to internet network
CN106020895A (en) * 2016-05-27 2016-10-12 北京金山安全软件有限公司 Application program starting method and user terminal
CN108189782A (en) * 2017-12-28 2018-06-22 深圳市元征科技股份有限公司 A kind of diagnostic device
CN108303964A (en) * 2017-12-28 2018-07-20 深圳市元征科技股份有限公司 A kind of network connector and Vehicular diagnostic method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张鹏: "Windows注册表及其优化", 《重庆工学院学报(自然科学版)》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112953775A (en) * 2021-02-25 2021-06-11 湖北亿咖通科技有限公司 Vehicle machine upgrading system and method
CN112953775B (en) * 2021-02-25 2023-03-24 亿咖通(湖北)技术有限公司 Vehicle machine upgrading system and method
CN113778557A (en) * 2021-09-15 2021-12-10 深圳市元征软件开发有限公司 Vehicle diagnosis software configuration method, device, server and storage medium
CN113778557B (en) * 2021-09-15 2024-04-26 深圳市元征软件开发有限公司 Vehicle diagnosis software configuration method, device, server and storage medium
CN114756585A (en) * 2022-03-23 2022-07-15 深圳市元征科技股份有限公司 Vehicle data acquisition method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112055066B (en) 2023-06-30

Similar Documents

Publication Publication Date Title
CN109213611B (en) Cross-process communication method, device, terminal and storage medium
CN109491671B (en) Diagnostic software downloading method and device, terminal equipment and storage medium
CN112055066B (en) Communication method, communication device, diagnosis device, and computer-readable storage medium
CN107256188B (en) Android device control method and device, terminal and storage medium
CN109726528A (en) Vehicle device Service Activation, vehicle device service request method, device, equipment and medium
CN112911550B (en) Vehicle data configuration method and electronic equipment
CN110830481A (en) Vehicle-mounted equipment internet surfing method and device, server and storage medium
CN106873970B (en) Installation method and device of operating system
CN110597570A (en) Communication mode adaptation method and related device
CN116455694A (en) Baud rate setting method, baud rate setting device, baud rate setting equipment and storage medium
CN108234551B (en) Data processing method and device
CN113835729B (en) Upgrading method, upgrading device, terminal equipment and computer readable storage medium
CN114780049A (en) Screen projection display method and device, electronic equipment and storage medium
CN113489653A (en) Message sending method and device and computer equipment
CN113934198A (en) Vehicle diagnosis method, vehicle diagnosis device, electronic device, and storage medium
CN114185804A (en) Interface testing method and device and terminal equipment
CN110677378B (en) Control method of MAC address, intelligent terminal and storage medium
EP2838232A1 (en) Method for configuring maximum transmission unit (mtu), terminal and usb data card
CN110838966A (en) Equipment connection control method and device
CN115664953B (en) Resource allocation method and related device of external equipment
CN110401554B (en) VNF (virtual network function) nanotube management method, device, system, electronic equipment and storage medium
CN115134244B (en) Vehicle access device management method and device, electronic device and storage medium
CN114356633A (en) Diagnostic working mode switching method and device, electronic equipment and storage medium
CN116700757A (en) Vehicle controller brushing method and device and electronic equipment
CN108513287B (en) SIM card activation method, device, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant