CN112055066B - Communication method, communication device, diagnosis device, and computer-readable storage medium - Google Patents

Communication method, communication device, diagnosis device, and computer-readable storage medium Download PDF

Info

Publication number
CN112055066B
CN112055066B CN202010884177.8A CN202010884177A CN112055066B CN 112055066 B CN112055066 B CN 112055066B CN 202010884177 A CN202010884177 A CN 202010884177A CN 112055066 B CN112055066 B CN 112055066B
Authority
CN
China
Prior art keywords
address
dhcp server
party
diagnostic
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010884177.8A
Other languages
Chinese (zh)
Other versions
CN112055066A (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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Small-Scale Networks (AREA)

Abstract

The application is applicable to the technical field of automobile diagnosis, and provides a communication method, a device, a diagnosis device and a computer readable storage medium, which are applied to the diagnosis device and comprise the following steps: receiving a starting instruction of a diagnostic program; reading a preset data item from a registry item 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 on 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 diagnosis of the vehicle. By the method, the speed of distributing the IP address to the diagnosis equipment can be improved.

Description

Communication method, communication device, diagnosis device, and computer-readable storage medium
Technical Field
The application belongs to the technical field of automobile diagnosis, and particularly relates to a communication method, a communication device, a diagnosis device and a computer readable storage medium.
Background
The electric control unit (Electronic Control Unit, ECU) is also called as a driving computer, a vehicle-mounted computer and the like. The function of the system is to calculate, process and judge various information input by the corresponding module (if the ECU is the ECU of the engine), and then output instructions to control the related executor to act, so as to achieve the purpose of quickly, accurately and automatically controlling the corresponding module to work.
As on-board ethernet becomes more popular, more and more ECUs communicate diagnostics (Diagnostic communication over Internet Protocol, DOIP) via network protocols. The ECU based on the DOIP protocol typically assigns an internet protocol (Internet Protocol, IP) address using either an Auto-assign internet protocol (Auto Internet Protocol, auto-IP) or a dynamic host configuration protocol (Dynamic Host Configuration Protocol, DHCP). The Auto-IP mode is simple, and the IP address can be automatically allocated only by connecting a network cable. However, when the DHCP method is used to assign an IP address, 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 the diagnostic device and the like. The existing practice usually uses a router as a relay, wherein one end of the router is connected with diagnostic equipment provided with a diagnostic program, and the other end is connected with an automobile gateway. The router itself has a DHCP Server function, and can assign IP addresses to machines accessing it to form a local area network. However, this method of implementing DHCP allocation using routers has two drawbacks, first: the cost is increased, and a router is required to be equipped for communication with the ECU; second,: the router needs an external power supply, and cannot be used in the environment of an automobile repair workshop or outdoor rush repair if the external power supply cannot be used.
Therefore, a new method is needed 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 the diagnosis equipment and the ECU of the vehicle is low, and further improves the communication speed between the diagnosis equipment 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 item of a third-party Dynamic Host Configuration Protocol (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 distributing an IP address of a preset network segment for 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, the gateway and the subnet mask to realize diagnosis of the vehicle.
Optionally, the reading a preset data item from a registry item of the third party DHCP Server program includes:
Reading a preset configuration file;
judging whether the field of the preset configuration file indicates that the diagnostic equipment installs the third party DHCP Server program or not;
if yes, the preset data item is read from the registry item 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 identification of the target button and an installation command, wherein the installation command is a command which needs to be triggered when the third-party DHCP Server program is installed.
Optionally, the obtaining the current IP address of the ethernet card in the diagnostic device, and communicating with an ECU of the vehicle according to the current IP address of the ethernet card specifically includes:
Acquiring a network segment corresponding to a current IP address of an 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,
if yes, the current IP address of the Ethernet card is communicated with the ECU of the vehicle.
Optionally, the initialization file stores a target IP address allocated to the diagnostic device by the third party DHCP Server service, and the communication method further includes:
if the network segment corresponding to the current IP address of the Ethernet card is the same as a preset network segment, further judging whether the current IP address of the Ethernet card is consistent with the target IP address;
if the IP addresses are consistent, communicating with the ECU of the vehicle according to the current IP address of the Ethernet card;
and if the Ethernet card is inconsistent, 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 the network cable, so that the third party DHCP Server redistributes the IP address of the preset network segment for the diagnosis equipment.
In a second aspect, embodiments of the present application provide a communication apparatus applied to a diagnostic device, including:
a start-up instruction receiving unit configured to receive a start-up instruction of a diagnostic program;
A data item writing unit, configured to read a preset data item from a registry item of the third party dynamic host configuration protocol service 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 configured 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 the electronic control unit ECU of the vehicle according to the current IP address of the Ethernet card so as to realize diagnosis of the vehicle.
In a third aspect, embodiments of the present application provide a diagnostic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the method according to any one of the first aspects when executing the computer program.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program which, when executed by a processor, implements a method according to any one of the first aspects.
In a fifth aspect, embodiments of the present application provide a computer program product for, when run on a terminal device, causing the terminal device to perform the method of any one of the first aspects.
Compared with the prior art, the embodiment of the application has the beneficial effects that: when a starting instruction of the diagnostic program is received, a preset data item is directly read from a registry item of the third-party DHCP Server program, and the read preset data item is written 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 needed to be realized by starting the third-party DHCP Server program, and complicated skip is needed when the third-party DHCP Server program is started, so that the starting speed of the third-party DHCP Server service can be improved by the mode. And because the third party DHCP Server service is used for distributing the IP address of the preset network segment to the diagnosis equipment, the starting speed of the third party DHCP Server service is increased, the speed of distributing the IP address of the preset network segment to the diagnosis equipment can be increased, and the communication connection efficiency of the diagnosis equipment and the ECU of the vehicle is further increased. That is, since the DHCP Server service is not implemented by using the router, the cost is reduced and the convenience of allocating the IP address of the preset network segment to the diagnostic device is improved. In addition, because the third party DHCP Server service is automatically started without manual starting of a user, errors caused by the fact that different users start the third party DHCP Server service are avoided, the success rate of distribution of IP addresses of a preset network segment is improved, and the communication success rate of diagnostic equipment and the ECU is also improved.
It will be appreciated that the advantages of the second to fifth aspects may be found in the relevant description of the first aspect, and are not described here again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a schematic flow chart of a communication method according to an embodiment of the present application;
FIG. 2 is a schematic illustration of a diagnostic device coupled to a vehicle according to one embodiment of the present application;
FIG. 3 is a flow chart of another communication method according to the first embodiment of the present application;
FIG. 4 is a schematic diagram of a window involved in an installation process of a third party DHCP Server program according to an embodiment of the 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 device according to a 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 configurations, 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 should 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 in the 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 application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Embodiment one:
when the vehicle is assembled, it is not easy for a person to know various information hidden in the vehicle body. In the conventional method, required information is generally acquired by communicating with an ECU of a vehicle. At present, the router distributes IP addresses of preset network segments for diagnostic equipment and ECU (electronic control unit) through a DHCP Server service of the router, so that the cost is high, and the distribution of the IP addresses cannot be realized even if an external power supply is not provided. In order to solve the above-mentioned problems, an embodiment of the present application provides a communication method, which directly reads a preset data item from a registry item 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 to start a third party DHCP Server service installed in the diagnostic device. Therefore, the starting of the third-party DHCP Server service can be realized 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 distributing the IP address to the diagnostic equipment is also improved.
Fig. 1 shows a flowchart of a communication method provided in an embodiment of the present application, which is applied to a diagnostic apparatus that installs a diagnostic program for diagnosing a vehicle, as follows:
step S11, receiving a starting instruction of a diagnosis program.
Specifically, the interface of the diagnostic apparatus displays an icon corresponding to the diagnostic program, and when the diagnostic apparatus detects that the user double-clicks (or other operations for starting the diagnostic program) the icon of the diagnostic program, the diagnostic apparatus determines that a start instruction of the diagnostic program is received. Alternatively, as shown in fig. 2, when the diagnostic apparatus detects that it is connected to the vehicle via a network cable using a controller area network (Controller Area Network, CAN) protocol, it is determined that a start instruction of the diagnostic program is received.
Step S12, a preset data item is read from a registry item of a third party DHCP Server program, and the read preset data item is written into an initialization file of the third party DHCP Server program so as to start a third party DHCP Server service installed on the diagnostic equipment, wherein the started third party DHCP Server service is used for distributing an IP address of a preset network segment for 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 invokes the corresponding interface to implement opening and closing of the third party DHCP Server service, for example, implementing the service of opening the service management object through the OpenSCManager; the service of acquiring the service state is realized through the QueryServiceStatus; the service of opening the service is realized through the StartService; the service of the "stop service" is realized by the "control service".
In some embodiments, the preset data items include an IP address pool, a gateway, and a subnet mask; the IP address of the preset network segment allocated to the diagnosis equipment is one IP address in the IP address pool. The IP address pool refers to an address range where the IP address of the preset network segment to be allocated to the diagnosis equipment by the 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 apparatus is one of the IP addresses in the IP address pool, for example, may be 192.168.0.1, or 192.168.0.2, etc., but regardless of which IP address is allocated, the preset network segment is "192.168". Optionally, the third party DHCP Server also assigns an IP address to the ECU, and the assigned IP address is also within the network segment where the IP address pool is located.
In some embodiments, the preset data item stored in the registry 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 item may be stored in the registry 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, a preset data item is obtained, and then the obtained preset data item is stored in a registry item of the third party DHCP Server program. When the preset data items comprise the IP address pool, the gateway and the subnet mask, the preset data items comprise data which are necessary for the diagnostic equipment to communicate with the ECU, so that the preset data items do not need to be determined once again every time the third party DHCP Server service is started subsequently through the operation, 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 distributing 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 item of the third party DHCP Server program, the user is prompted to check whether to install the third party DHCP Server program and/or to input the data contained in the preset data item.
And step S13, the IP address of the Ethernet card in the diagnosis equipment is obtained, and the current IP address of the Ethernet card is communicated with the ECU of the vehicle to realize diagnosis of the vehicle.
In the step, after the third party DHCP Server service distributes an IP address for the diagnosis equipment, the diagnosis equipment acquires the current IP address of the own Ethernet card to communicate with the ECU of the vehicle, thereby realizing 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 the data item may be further combined, for example, the diagnostic device sends the content that needs to be communicated to the gateway, which forwards the received content to the ECU through the IP address of the vehicle ECU.
In the embodiment of the application, after receiving the start instruction of the diagnostic program, a preset data item is directly read from a registry item of the third party DHCP Server program, and the read preset data item is written into an initialization file of the third party DHCP Server program, so that the third party DHCP Server service installed in the diagnostic equipment is started. The starting of the third-party DHCP Server service is not needed to be realized by starting the third-party DHCP Server program, and complicated skip is needed when the third-party DHCP Server program is started, so that the starting speed of the third-party DHCP Server service can be improved by the mode. And because the third party DHCP Server service is used for distributing the IP address of the preset network segment to the diagnosis equipment, the starting speed of the third party DHCP Server service is increased, the speed of distributing the IP address of the preset network segment to the diagnosis equipment can be increased, and the communication connection efficiency of the diagnosis equipment and the ECU of the vehicle is further increased. That is, since the DHCP Server service is not implemented by using the router, the cost is reduced and the convenience of allocating the IP address of the preset network segment to the diagnostic device is improved. In addition, because the third party DHCP Server service is automatically started without manual starting of a user, errors caused by the fact that different users start the third party DHCP Server service are avoided, the success rate of IP address allocation is improved, and the communication success rate of the diagnosis equipment and the ECU is also improved.
Fig. 3 shows a flowchart of another communication method provided in the embodiment of the present application, in this embodiment, by creating a configuration file, and writing a field for indicating whether the third party DHCP Server program is installed in the diagnostic device in the configuration file. In this way, the diagnostic device can quickly judge whether the diagnostic device installs the third party DHCP Server program by reading the fields in the configuration file. Step 31 and step S34 of the present embodiment are the same as step 11 and step S13 of the above embodiment, and will not be described here again.
Step 31, receiving a start 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, wherein the field of the preset configuration file is used for indicating whether the diagnostic equipment has installed a 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 0; after the diagnostic device installs the third party DHCP Server program, the value of this 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 install the third party DHCP Server program; if the value of the field of the configuration file is "1", it is determined that the diagnostic device installs the third party DHCP Server program.
In some embodiments, the preset configuration file is automatically read when the diagnostic device detects a connection to the vehicle over the network cable.
Step 33, determining whether the field of the preset configuration file indicates that the diagnostic device has installed the third party DHCP Server program, if yes, reading a preset data item from a registry item 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, 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.
Specifically, if it is determined that the diagnostic device has installed the third party DHCP Server program according to the value of the field of the configuration file, a preset data item is read from a registry item of the third party DHCP Server program.
And step S34, the current IP address of the Ethernet card in the diagnosis equipment is obtained, and the current IP address of the Ethernet card is communicated with the ECU of the vehicle to realize diagnosis of the vehicle.
In this embodiment, whether the diagnostic device has installed the third party DHCP Server program is indicated by creating a configuration file and by setting the value of the field of the configuration file. Because the calculated amount of the value of the identification field is small, whether the diagnostic equipment is provided with the third-party DHCP Server program or not can be rapidly judged, and whether the third-party DHCP Server service is started by starting the third-party DHCP Server program or not can be rapidly judged.
In some embodiments, after said 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 install the third-party DHCP Server program, 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 the 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 apparatus is a computer on which a diagnostic program is installed, the user can view information contained in the "service" by: right button [ this computer ], then click [ manage ], then click [ service and application ], finally click [ service ], this "service" shows the information of all the services that the computer has installed.
In some embodiments, to reduce user operations, if the 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 already 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 a network, and installing 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 the third party DHCP Server program in the diagnostic apparatus and improve the success rate of the installation, the diagnostic apparatus may be used to control the installation, where the installing the third party DHCP Server program includes:
a1, acquiring a resource identifier (IDentity, 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. For example, assuming that the button that needs to be triggered by installing the third party DHCP Server program is the button corresponding to "next" in the window, the button corresponding to "next" is the target button.
And A2, automatically installing the third party DHCP Server program according to the resource ID of the target button and the installation command.
Wherein, the installation command is a command that needs to be triggered to install the third party DHCP Server program.
In this embodiment, first, the window handle and the window name related to the installation process of the third party DHCP Server program are acquired, the resource ID of each button corresponding to the window is acquired through the window handle and the window name, and then, for the button to be operated, a specific command is sent, for example, if the button of "next" is desired to be clicked, a command corresponding to "clicking" 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, then the NEXT operation can be implicitly performed by means of PostMessage (hWnd, wm_command, (WPARAM) id_btn_next, (lpaam) hWnd 2) until the whole complex process is installed, and one-key installation of the third party DHCP Server program can be achieved without user operation, thereby improving the user's good experience.
Among them, postMessage (hWnd, wm_command, (WPARAM) id_btn_next, (LPARAM) hWnd 2) has the following meaning:
1. PostMessage is a windows application program interface for sending 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) hWnd 2), indicates 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 the third-party DHCP Server program can be automatically installed according to the statement, and user operation is not required, thereby reducing the probability of installation failure caused by user operation.
In some embodiments, before the diagnostic device communicates with the ECU, it is required to 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:
b1, obtaining 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 identical to a 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 third party DHCP Server service allocates an IP address to the diagnostic device with a preset network segment, it is necessary to determine whether the network segment of the IP address allocated to the diagnostic device has a "preset network segment" before communication. For example, assuming that the preset network segment is "192.168", the IP address to which the diagnostic apparatus is assigned is "192.168.0.2", the network segment corresponding to "192.168.0.2" is "192.168", that is, "192.168.0.2" corresponds to the same network segment as the preset network segment. Because only the preset network segment in the IP address is matched, rather than the whole IP address, the matching speed is improved.
In some embodiments, considering that the diagnostic device itself is provided with Auto-IP, and the Auto-IP is assigned an IP address, the corresponding network segment is 169.254, and for distinction, the preset network 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:
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 a network cable, wherein the network cable is used for connecting diagnostic equipment and an ECU of a vehicle.
In this embodiment, after the network cable is plugged in and plugged out, the third party DHCP Server will automatically reassign the IP address, so 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 in and plug out the network cable.
In some embodiments, since there may be 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, waiting is continued, and if the current IP address of the ethernet card is not changed beyond the preset duration, the user is prompted to plug the network cable. Namely, by adding a period of buffer time, the network cable is prevented from being plugged in and pulled out for many times by a user.
In some embodiments, the initialization file stores a target IP address allocated to the diagnostic device by the third party DHCP Server service, 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 the Ethernet card is inconsistent, refreshing the Ethernet card.
Specifically, in order to ensure that the diagnostic device and the ECU can accurately communicate, after judging that 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 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, it is considered that there may be a delay after the third party DHCP Server program allocates an IP address to the diagnostic apparatus, so that the ethernet card of the diagnostic apparatus is refreshed to update the IP address in time.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
Embodiment two:
corresponding to the communication method described in the above embodiments, fig. 5 shows a block diagram of the communication apparatus provided in the embodiment of the present application, and for convenience of explanation, only the portion relevant to the embodiment of the present application is shown.
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, a communication unit 53. Wherein:
A start-up instruction receiving unit 51 for receiving a start-up instruction of the diagnostic program.
And a data item writing unit 52, configured to read a preset data item from a registry item of the third party dynamic host configuration protocol service 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 the 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 diagnosis equipment does not read the preset data item from the registry item of the third party DHCP Server program.
And the communication unit 53 is configured to obtain a current IP address of the ethernet card in the diagnostic device, and communicate with an 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 starting of the third-party DHCP Server service is not required to be realized by starting the third-party DHCP Server program, and complicated skip is required when the third-party DHCP Server program is started, so that the starting speed of the third-party DHCP Server service can be improved through the mode. And because the third party DHCP Server service is used for distributing the IP address of the preset network segment to the diagnosis equipment, the starting speed of the third party DHCP Server service is increased, the speed of distributing the IP address of the preset network segment to the diagnosis equipment can be increased, and the communication connection efficiency of the diagnosis equipment and the ECU of the vehicle is further increased. That is, since the DHCP Server service is not implemented by using the router, the cost is reduced and the convenience of allocating the IP address of the preset network segment to the diagnostic device is improved. In addition, because the third party DHCP Server service is automatically started without manual starting of a user, errors caused by the fact that different users start the third party DHCP Server service are avoided, the success rate of IP address allocation is improved, and the communication success rate of the diagnosis 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; judging whether the field of the preset configuration file indicates that the diagnostic equipment is provided with the third-party DHCP Server program or not, and if so, reading a preset data item from a registry item of the third-party DHCP Server program.
In some embodiments, the data item writing unit 52 is specifically configured to, when reading a preset configuration file: and when the diagnosis 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, detecting whether the diagnostic equipment stores an installation package of the third-party DHCP Server program or not, and if the diagnostic equipment stores a corresponding installation package, installing the third-party DHCP Server program 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 a network, and installing the third party DHCP Server program according to the searched installation package.
In some embodiments, the program installation unit is specifically configured to, when installing the third party DHCP Server program:
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 sub-module is used for judging whether the network segment corresponding to the current IP address is the same as a preset network segment, 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 destination IP address allocated by the third party DHCP Server service for the diagnostic apparatus, and the communication device 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 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 prompting unit is used for prompting a user to plug the network cable if the network segment corresponding to the current IP address of the Ethernet card is different from the preset network segment, so that the third party DHCP Server reallocates the IP address of the preset network segment for the diagnosis equipment.
Wherein the network cable is used for connecting the diagnostic device and the ECU of the vehicle.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein again.
Embodiment III:
fig. 6 is a schematic structural diagram of a diagnostic device 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 item of a third-party Dynamic Host Configuration Protocol (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 distributing an IP address of a preset network segment for 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, the gateway and the subnet mask to realize diagnosis of the vehicle.
Optionally, the reading a preset data item from a registry item of the third party DHCP Server program includes:
reading a preset configuration file;
judging whether the field of the preset configuration file indicates that the diagnostic equipment installs the third party DHCP Server program or not;
if yes, the preset data item is read from the registry item 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 identification of the target button and an installation command, wherein the installation command is a command which needs to be triggered when the third-party DHCP Server program is installed.
Optionally, the obtaining the current IP address of the ethernet card in the diagnostic device, and communicating with an ECU of the vehicle according to the current IP address of the ethernet card specifically includes:
acquiring a network segment corresponding to a current IP address of an 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,
if yes, the current IP address of the Ethernet card is communicated with the ECU of the vehicle.
Optionally, the initialization file stores a target IP address allocated to the diagnostic device by the third party DHCP Server service, and the communication method further includes:
if the network segment corresponding to the current IP address of the Ethernet card is the same as a preset network segment, further judging whether the current IP address of the Ethernet card is consistent with the target IP address;
If the IP addresses are consistent, communicating with the ECU of the vehicle according to the current IP address of the Ethernet card;
and if the Ethernet card is inconsistent, 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 the network cable, so that the third party DHCP Server redistributes the IP address of the preset network segment for the diagnosis equipment.
The diagnostic device 6 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The diagnostic device may include, but is not limited to, a processor 60, a memory 61. It will be appreciated by those skilled in the art that fig. 6 is merely an example of the diagnostic device 6 and is not meant to be limiting as to the diagnostic device 6, and may include more or fewer components than shown, or may combine certain components, or different components, such as may also include input-output devices, network access devices, etc.
The processor 60 may be a central processing unit (Central Processing Unit, CPU), the processor 60 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, 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 in other embodiments also be an external storage device of the diagnostic device 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like, which are provided on the diagnostic device 6. Further, the memory 61 may also include both an internal memory unit and an external memory device of the diagnostic device 6. The memory 61 is used for storing an operating system, application programs, boot loader (BootLoader), data, other programs, etc., such as program codes of the computer program. The memory 61 may also be used for temporarily storing 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-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a 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 process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The embodiment of the application also provides a network device, which comprises: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, which when executed by the processor performs the steps of any of the various method embodiments described above.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps that may implement the various method embodiments described above.
Embodiments of the present application provide a computer program product which, when run on a mobile terminal, causes the mobile terminal to perform steps that may be performed in the various method embodiments described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, 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 device/terminal apparatus, recording medium, computer Memory, read-Only Memory (ROM), random access Memory (RAM, random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
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 solution. 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 manners. For example, the apparatus/network device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. A communication method, characterized by being applied to a diagnostic device, comprising:
receiving a starting instruction of a diagnostic program;
reading a preset data item from a registry item of a third party Dynamic Host Configuration Protocol (DHCP) Server program, 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 distributing an IP address of a preset network segment for the diagnostic equipment and an Electronic Control Unit (ECU) of a vehicle, and the preset data item comprises an IP address pool, a gateway and a subnet mask besides data capable of starting the third party DHCP Server service, and the IP address of the preset network segment distributed for the diagnostic equipment is one IP address in the IP address pool;
Acquiring the current IP address of an Ethernet card in the diagnosis equipment;
and communicating with an Electronic Control Unit (ECU) of the vehicle according to the current IP address to realize diagnosis of the vehicle, wherein the ECU is not required to be connected to other entities with a third party DHCP Server service and can directly communicate with the diagnosis equipment when the diagnosis equipment diagnoses the vehicle.
2. The communication method as claimed in claim 1, wherein the step of reading a preset data item from a registry item of a third party Dynamic Host Configuration Protocol (DHCP) Server program comprises:
reading a preset configuration file;
judging whether the field of the preset configuration file indicates that the diagnostic equipment installs the third party DHCP Server program or not;
if yes, the preset data item is read from the registry item 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 as claimed in claim 3, wherein said installing said 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 identification of the target button and the installation command.
5. The communication method according to any one of claims 1 to 4, wherein the obtaining the current IP address of the ethernet card in the diagnostic apparatus, according to the communication with the electronic control unit ECU of the vehicle with the current IP address, specifically comprises:
acquiring a network segment corresponding to a current IP address of an 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,
if yes, the current IP address of the Ethernet card is communicated with the ECU of the vehicle.
6. The communication method according to claim 5, wherein the initialization file stores a target IP address allocated to the diagnostic device by the third party DHCP Server service, the communication method further comprising:
if the network segment corresponding to the current IP address of the Ethernet card is the same as a preset network segment, further judging whether the current IP address of the Ethernet card is consistent with the target IP address;
If the IP addresses are consistent, communicating with the ECU of the vehicle according to the current IP address of the Ethernet card;
and if the Ethernet card is inconsistent, refreshing the Ethernet card.
7. The communication method according to 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 the network cable, so that the third party DHCP Server redistributes the IP address of the preset network segment for the diagnosis equipment.
8. A communication device for use in a diagnostic apparatus, comprising:
a start-up instruction receiving unit configured to receive a start-up instruction of a diagnostic program;
a data item writing unit, configured to read a preset data item from a registry item of a third party dynamic host configuration protocol service 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 configured to allocate an IP address of a preset network segment to the diagnostic device and an electronic control unit ECU of a vehicle, where the preset data item includes, in addition to data capable of starting the third party DHCP Server service, an IP address pool, a gateway, and a subnet mask, and the IP address of the preset network segment allocated to the diagnostic device is one IP address in the IP address pool;
And the communication unit is used for acquiring the current IP address of the Ethernet card in the diagnosis equipment, and communicating with the electronic control unit ECU of the vehicle according to the current IP address of the Ethernet card so as to realize diagnosis of the vehicle, wherein when the diagnosis equipment diagnoses the vehicle, the ECU does not need to be connected to an entity with a third party DHCP Server service, and can directly communicate with the diagnosis equipment.
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 of claims 1 to 7 when executing the computer program.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements 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 CN112055066A (en) 2020-12-08
CN112055066B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112953775B (en) * 2021-02-25 2023-03-24 亿咖通(湖北)技术有限公司 Vehicle machine upgrading system and method
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

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注册表及其优化;张鹏;《重庆工学院学报(自然科学版)》;20080115(第01期);全文 *

Also Published As

Publication number Publication date
CN112055066A (en) 2020-12-08

Similar Documents

Publication Publication Date Title
CN112055066B (en) Communication method, communication device, diagnosis device, and computer-readable storage medium
EP3352079B1 (en) Gateway device, vehicle-mounted network system, and firmware update method
CN109213611B (en) Cross-process communication method, device, terminal and storage medium
CN107193609B (en) Function module calling method and device in application and electronic equipment
CN110297608B (en) Data processing method, device and storage medium
EP4113287B1 (en) Gateway device, in-vehicle network system, and firmware update method
CN107547274B (en) Multi-network-port aggregation method and device
CN116455694A (en) Baud rate setting method, baud rate setting device, baud rate setting equipment and storage medium
US20070155422A1 (en) Method for controlling mobile data connection through USB Ethernet management of mobile station
CN110597570A (en) Communication mode adaptation method and related device
CN114780049A (en) Screen projection display method and device, electronic equipment and storage medium
CN110493055B (en) FPGA card configuration method, device and system and readable storage medium
CN115664953B (en) Resource allocation method and related device of external equipment
CN103442041A (en) Method, device and system for upgrading firmware of embedded device
CN115277391B (en) Network configuration method, device, cluster and storage medium
CN114637551B (en) Device driving method, system and storage medium
CN111740972B (en) Method, device, equipment and storage medium for updating communication protocol stack information
CN110838966B (en) Equipment connection control method and device
CN114430392A (en) Method and terminal for connecting Intel network card with Switch to expand internet access
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
CN110677466A (en) Application program downloading method, device, gateway and storage medium
CN111722870B (en) Driving configuration method, device and equipment of electronic control unit and storage medium
CN110601887B (en) Out-of-band management method, server, computer storage medium and terminal
CN111124882B (en) Method and device for realizing application test, computer storage medium and terminal

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