Diagnostic Working Mode Switching Method, Device, Electronic Device and Storage Medium

By obtaining the configuration information of the equipment to be diagnosed and determining the target diagnostic working mode, setting up the network configuration to realize the diagnosis of the equipment to be diagnosed, the problems of high hardware costs and poor user experience in the existing remote diagnosis system are solved, and the hardware costs and user experience are reduced.

CN114356633BActive Publication Date: 2025-06-13LAUNCH TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111658520.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2025-06-13
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

In the existing remote diagnostic system, due to the difference in hardware structures between the first connector and the diagnostic connector, the hardware cost is high and the user experience is poor.

Method used

By obtaining the configuration information of the device to be diagnosed, determining the target diagnostic working mode, and setting the network configuration according to the configuration information and working mode, the diagnosis of the device to be diagnosed is realized.

Benefits of technology

The hardware structure of the first connector and the diagnostic connector in remote diagnosis is unified, reducing hardware costs and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114356633B_ABST
    Figure CN114356633B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of automotive electronic technology, and provides a method, device, electronic device and storage medium for switching diagnostic working modes. The method includes: obtaining configuration information of a device to be diagnosed; determining a target diagnostic working mode; setting network configuration according to the configuration information of the device to be diagnosed and in accordance with the target diagnostic working mode; and diagnosing the device to be diagnosed according to the network configuration. The technical solution provided by the present application unifies the hardware structures of a first connector close to the device to be diagnosed and a diagnostic connector close to a remote diagnostic device in remote diagnosis, effectively reducing the hardware cost in remote diagnosis and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of automotive electronics technology, and particularly relates to a method, device, electronic device, and storage medium for switching diagnostic working modes. Background Art

[0002] With the development of technology, technical support and diagnosis for some industrial equipment such as vehicles, central air conditioners, and production line automation equipment can already be carried out through remote diagnosis. The existing remote diagnosis system includes a first connector near the industrial equipment end, a diagnostic connector at the remote end, and a diagnostic device. Among them, the diagnostic device and the diagnostic connector can communicate. The diagnostic device sends a diagnostic instruction or a technical support instruction to the diagnostic connector, and the diagnostic connector transmits the diagnostic instruction or the technical instruction to the first connector through remote communication. The first connector sends the diagnostic instruction or the technical support instruction to the industrial equipment and obtains the feedback data of the industrial equipment. Then, the first connector transmits the feedback data to the diagnostic connector, and the diagnostic connector sends the feedback data to the diagnostic device for the diagnostic device to perform diagnosis. In this process, different hardware devices are used for the first connector and the diagnostic connector due to different functions, resulting in problems such as high hardware costs and poor user experience. Summary of the Invention

[0003] Embodiments of this application provide a method, device, electronic device, and storage medium for switching diagnostic working modes to solve the problems of high hardware costs and poor user experience in existing remote diagnosis technologies.

[0004] In a first aspect, embodiments of this application provide a method for switching diagnostic working modes, which is applied to an electronic device. The method includes:

[0005] Obtain the configuration information of the device to be diagnosed;

[0006] Determine the target diagnostic working mode;

[0007] Set the network configuration according to the configuration information of the device to be diagnosed in accordance with the target diagnostic working mode;

[0008] Diagnose the device to be diagnosed according to the network configuration.

[0009] In a second aspect, embodiments of this application provide a device for switching diagnostic working modes, which is applied to an electronic device. The device includes:

[0010] An obtaining module, configured to obtain the configuration information of the device to be diagnosed;

[0011] A determining module, configured to determine the target diagnostic working mode;

[0012] A setting module, configured to set a network configuration according to the configuration information of the device to be diagnosed according to the target diagnostic working mode;

[0013] A diagnosis module, configured to diagnose the device to be diagnosed according to the network configuration.

[0014] In a third aspect, an embodiment of the present application provides an electronic device, including:

[0015] A memory, a processor, and a computer program stored in the memory and executable on the processor, where when the computer program is executed by the processor, the method steps described in the first aspect above are implemented.

[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, including: the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in the first aspect above are implemented.

[0017] In a fifth aspect, an embodiment of the present application provides a computer program product, which when running on an electronic device causes the electronic device to execute the method steps described in the first aspect above.

[0018] As can be seen from the above technical solutions, since the network configuration of the electronic device can be set according to the obtained configuration information of the device to be diagnosed and according to the target diagnostic working mode, and the device to be diagnosed is diagnosed according to the network configuration. In this way, the electronic device realizes the functions of the first connector close to the device to be diagnosed and the diagnostic connector close to the remote diagnostic device during the remote diagnosis process by switching between different working modes, thus unifying the hardware structures of the first connector close to the device to be diagnosed and the diagnostic connector close to the remote diagnostic device in the remote diagnosis, effectively reducing the hardware cost in the remote diagnosis and improving the user experience. Description of the Drawings

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0020] Figure 1 is a schematic flowchart of a method for switching diagnostic working modes provided by an embodiment of the present application;

[0021] Figure 2 is a schematic flowchart of a method for switching diagnostic working modes provided by another embodiment of the present application;

[0022] Figure 3It is a schematic flowchart of a diagnostic working mode switching method provided by another embodiment of the present application;

[0023] Figure 4 It is a schematic structural diagram of a diagnostic working mode switching device provided by an embodiment of the present application;

[0024] Figure 5 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0025] In the following description, specific details such as specific system architectures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. However, those skilled in the art should clearly understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from interfering with the description of the present application.

[0026] It should be understood that when used in the specification and appended claims of the present application, the term "comprising" indicates the presence of the described features, wholes, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.

[0027] It should also be understood that the term "and / or" as used in the specification and appended claims of the present application refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0028] As used in the specification and appended claims of the present application, the term "if" can be interpreted as "when", "once", "in response to determining", or "in response to detecting" according to the context. Similarly, the phrase "if determined" or "if [the described condition or event] is detected" can be interpreted as meaning "once determined", "in response to determining", "once [the described condition or event] is detected", or "in response to detecting [the described condition or event]" according to the context.

[0029] In addition, in the description of the specification and appended claims of the present application, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.

[0030] References to "one embodiment" or "some embodiments" in the description of the present application mean that a particular feature, structure, or characteristic described in connection with that embodiment is included in one or more embodiments of the present application. Thus, statements such as "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized. The terms "comprising", "including", "having" and their variants mean "including but not limited to", unless otherwise specifically emphasized.

[0031] Currently, the remote diagnosis system includes a first connector near industrial equipment such as vehicles, central air conditioners, or production line automation equipment, a diagnostic connector at the remote end, and a diagnostic device. Among them, the diagnostic device and the diagnostic connector can communicate. The diagnostic device sends a diagnostic instruction or a technical support instruction to the diagnostic connector. Then, the diagnostic connector transmits the diagnostic instruction or the technical instruction to the first connector through remote communication. The first connector sends the diagnostic instruction or the technical support instruction to the industrial equipment and obtains the feedback data of the industrial equipment. Then, the first connector transmits the feedback data to the diagnostic connector, and the diagnostic connector sends the feedback data to the diagnostic device for the diagnostic device to perform diagnosis. In this process, different hardware devices are used for the first connector and the diagnostic connector due to their different functions, resulting in problems such as high hardware costs and poor user experience.

[0032] In view of the problems of the above-mentioned prior art, the present application provides a diagnostic working mode switching method, device, electronic device, and storage medium, enabling a user to use only one connector to be applicable to application scenarios where the connector serves as a client or a server.

[0033] Figure 1 The diagnostic working mode switching method provided by the embodiment of the present application is shown and is applied to an electronic device. The electronic device can be a handheld device with communication functions. Figure 1 The exemplary diagnostic working mode switching method mainly includes steps S101 to S104, which are described as follows:

[0034] Step S101: Obtain the configuration information of the device to be diagnosed.

[0035] In the embodiment of the present application, the device to be diagnosed can be a vehicle, a central air conditioner, or industrial production line automation equipment, and the configuration information of the device to be diagnosed is various configuration parameters of the device to be diagnosed. Taking the device to be diagnosed as a vehicle as an example, its configuration information can be the communication protocol supported by the vehicle, such as DoIP, etc.

[0036] Step S102: Determine the target diagnostic working mode.

[0037] Specifically, the target diagnostic working mode includes whether the device to be diagnosed is in the client working mode or the server working mode.

[0038] Step S103: Set the network configuration according to the configuration information of the device to be diagnosed and in accordance with the target diagnostic working mode.

[0039] In the embodiments of the present application, the setting of the network configuration includes setting the IP address of the bridge, the device to be diagnosed obtaining an IP address, and allocating an IP address to the device to be diagnosed, etc.; the network configuration corresponds to the target diagnostic working mode, that is, when the target diagnostic working mode is determined, the network configuration corresponding to this target diagnostic working mode should be set.

[0040] Step S104: Diagnose the device to be diagnosed according to the network configuration.

[0041] Taking the device to be diagnosed as a vehicle as an example: When it is determined that the working mode of the electronic device is the client working mode, the electronic device is used as a vehicle connector. The electronic device establishes a remote communication connection with a remote diagnostic connector. After the diagnostic connector obtains the diagnostic instruction of the diagnostic device, it sends the diagnostic instruction to the electronic device through remote communication, and then the electronic device sends the diagnostic instruction to the vehicle, and obtains vehicle feedback data from the vehicle, and then sends the vehicle feedback data to the diagnostic connector, and then the diagnostic device obtains the vehicle feedback data of the diagnostic connector and conducts a diagnosis. When it is determined that the working mode of the electronic device is the server working mode, the electronic device is used as a diagnostic connector. The electronic device establishes a communication connection with a remote vehicle connector. After the electronic device obtains the diagnostic instruction of the diagnostic device, it sends the diagnostic instruction to the vehicle connector through remote communication, and then the vehicle connector sends the diagnostic instruction to the vehicle, and obtains vehicle feedback data from the vehicle, and then sends the vehicle feedback data to the electronic device, and then the diagnostic device obtains the vehicle feedback data from the electronic device and conducts a diagnosis. When the device to be diagnosed is a central air conditioner or an industrial production line automation device, the process of remote technical guidance and diagnosis can refer to the above vehicle remote diagnosis process.

[0042] From Figure 1 It can be seen from the example diagnostic working mode switching method that since the network configuration can be set according to the obtained configuration information of the device to be diagnosed and in accordance with the target diagnostic working mode, and the device to be diagnosed is diagnosed according to the network configuration. In this way, through the switching of different working modes, the electronic device realizes the functions of the first connector close to the device to be diagnosed and the diagnostic connector close to the remote diagnostic device in the remote diagnosis process, thus unifying the hardware structures of the first connector close to the device to be diagnosed and the diagnostic connector close to the remote diagnostic device in remote diagnosis, effectively reducing the hardware cost in remote diagnosis and improving the user experience.

[0043] Figure 2 The figure shows a diagnostic working mode switching method provided by another embodiment of the present application, which is applied to an electronic device. Figure 2 The exemplary diagnostic working mode switching method mainly includes steps S201 to S206, which are described as follows:

[0044] Step S201: Obtain the configuration information of the device to be diagnosed.

[0045] In the embodiment of the present application, the device to be diagnosed can be a vehicle, a central air conditioner, or an industrial production line automation device, etc. The configuration information of the device to be diagnosed is various configuration parameters of the device to be diagnosed. Taking the device to be diagnosed as an automobile as an example, its configuration information can be the communication protocol supported by the automobile, for example, DoIP, etc.

[0046] Step S202: Read the device information of the device to be diagnosed.

[0047] In the embodiment of the present application, the device information of the device to be diagnosed can be the information that uniquely identifies the device to be diagnosed. Taking the device to be diagnosed as a vehicle as an example, the device information of the device to be diagnosed can be the vehicle identification code VIN. The electronic device attempts to read the device information of the device to be diagnosed.

[0048] Step S203: If the device information of the device to be diagnosed is read, determine that the target diagnostic working mode is the client working mode.

[0049] Still taking the device to be diagnosed as a vehicle as an example, when the electronic device attempts to read the device information of the vehicle, such as the VIN code, if the connector can read the VIN code of the vehicle, it means that the electronic device is connected to the vehicle. At this time, the electronic device should be the vehicle connector, that is, the client. Therefore, determine that the target diagnostic working mode, that is, the working mode of the electronic device, is the client working mode.

[0050] Step S204: If the device information of the device to be diagnosed is not read, determine that the target diagnostic working mode is the server working mode.

[0051] On the contrary, if the electronic device does not read the VIN code of the vehicle, it means that the electronic device is connected to the diagnostic device. At this time, the electronic device should be the diagnostic connector, that is, the server. Therefore, determine that the target diagnostic working mode, that is, the working mode of the electronic device, is the server working mode.

[0052] Step S205: Set the network configuration according to the configuration information of the device to be diagnosed and in accordance with the target diagnostic working mode.

[0053] Specifically, when it is determined in step S203 or step S204 that the target diagnostic working mode is the client working mode, setting the network configuration according to the configuration information of the device to be diagnosed and in accordance with the target diagnostic working mode may be as follows: setting the IP address of the bridge to a first preset value; starting the dynamic IP allocation service to allocate an IP address to the device to be diagnosed; adding the Ethernet card to the bridge. In the above embodiments, the first preset value may be 192.168.100.1 or other network segments; the dynamic IP allocation service is the server program of DHCP. The purpose of starting the dynamic IP allocation service is to allocate an IP address to the device to be diagnosed. It should be noted here that before adding the Ethernet card to the bridge, it can also be determined whether the dynamic IP address acquisition service has been started. If the dynamic IP address acquisition service has been started, the dynamic IP address acquisition service is shut down. The reason for such an operation is that the electronic device can be used both as a client and as a server. When the dynamic IP address acquisition service has been started, by shutting down the dynamic IP address acquisition service, IP address allocation conflicts can be avoided.

[0054] When it is determined in step S203 or step S204 that the target diagnostic working mode is the server working mode, setting the network configuration according to the configuration information of the device to be diagnosed and in accordance with the target diagnostic working mode may be as follows: deleting the Ethernet card from the bridge; starting the dynamic IP address acquisition service; setting the IP address of the bridge from which the Ethernet card has been deleted to a second preset value. In the above embodiments, the dynamic IP address acquisition service is a lightweight DHCP client program. Starting the dynamic IP address acquisition service can enable the electronic device in the server working mode to obtain a dynamic IP address. The second preset value may be 0.0.0.0. Setting the IP address of the bridge from which the Ethernet card has been deleted to the second preset value is equivalent to clearing the IP address of the bridge, avoiding the conflict between the IP address obtained by this electronic device and the bridge address and affecting data transmission. Of course, before setting the IP address of the bridge from which the Ethernet card has been deleted to the second preset value, it can also be determined whether the dynamic IP address allocation service has been started. If the dynamic IP address allocation service has been started, the dynamic IP address allocation service is shut down, which can also avoid the conflict between the IP address obtained by this device and the bridge address and affecting data transmission.

[0055] In the above embodiments, the bridge, the Ethernet card, etc. are all network components built into the electronic device.

[0056] Step S206: Diagnose the device to be diagnosed according to the network configuration.

[0057] Taking the device to be diagnosed as a vehicle as an example: After determining that the working mode of the electronic device is the client working mode, the electronic device is used as a vehicle connector. The electronic device establishes a remote communication connection with a remote diagnostic connector. After the diagnostic connector obtains the diagnostic instruction of the diagnostic device, it sends the diagnostic instruction to the electronic device through remote communication. Then the electronic device sends the diagnostic instruction to the vehicle, obtains vehicle feedback data from the vehicle, and then sends the vehicle feedback data to the diagnostic connector. Then the diagnostic device obtains the vehicle feedback data of the diagnostic connector and performs a diagnosis. After determining that the working mode of the electronic device is the server working mode, the electronic device is used as a diagnostic connector. The electronic device establishes a communication connection with a remote vehicle connector. After the electronic device obtains the diagnostic instruction of the diagnostic device, it sends the diagnostic instruction to the vehicle connector through remote communication. Then the vehicle connector sends the diagnostic instruction to the vehicle, obtains vehicle feedback data from the vehicle, and then sends the vehicle feedback data to the electronic device. After that, the diagnostic device obtains the vehicle feedback data from the electronic device and performs a diagnosis. When the device to be diagnosed is a central air conditioner or an industrial production line automation device, the process of remote technical guidance and diagnosis can refer to the above vehicle remote diagnosis process.

[0058] Figure 3 Fig. 4 shows a diagnostic working mode switching method provided by another embodiment of the present application, which is applied to an electronic device. Figure 3 The exemplary diagnostic working mode switching method mainly includes steps S301 to S305, which are described as follows:

[0059] Step S301: Obtain the configuration information of the device to be diagnosed.

[0060] In the embodiment of the present application, the device to be diagnosed can be a vehicle, a central air conditioner, an industrial production line automation device, etc., and the configuration information of the device to be diagnosed is various configuration parameters of the device to be diagnosed. Taking the device to be diagnosed as an automobile as an example, its configuration information can be the communication protocol supported by the automobile, for example, DoIP, etc.

[0061] Step S302: Present diagnostic working mode options for the user to select, where the working modes include the client working mode and the server working mode.

[0062] When the electronic device has a human-machine interface, diagnostic working mode options can be presented on the human-machine interface of the electronic device for the user to select. For example, two buttons can be presented, one button presenting "client working mode" and the other button presenting "server working mode" for the user to select. Of course, in order to better improve the user experience, considering that the client working mode requests remote services from the remote end and the server working mode provides remote services for the remote end, the words "request remote service" can be presented on one button and the words "provide remote service" can be presented on the other button.

[0063] Step S303: Determine the target diagnostic working mode according to the diagnostic working mode selected by the user.

[0064] Specifically, when the user selects the client working mode on the human-computer interaction interface of the electronic device, determine that the target diagnostic working mode is the client working mode; when the user selects the server working mode on the human-computer interaction interface of the electronic device, determine that the target diagnostic working mode is the server working mode.

[0065] Step S304: Set the network configuration according to the configuration information of the device to be diagnosed and in accordance with the target diagnostic working mode.

[0066] Specifically, when, through step S303 or step S304, it is determined that the target diagnostic working mode is the client working mode, setting the network configuration according to the configuration information of the device to be diagnosed and in accordance with the target diagnostic working mode may be: setting the IP address of the bridge to a first preset value; starting the dynamic IP allocation service to allocate an IP address for the device to be diagnosed; adding the Ethernet card to the bridge. In the above embodiments, the first preset value may be 192.168.100.1, or it may be other network segments. The dynamic IP allocation service is the server program of DHCP. The purpose of starting the dynamic IP allocation service is to allocate an IP address for the device to be diagnosed. It should be noted here that before adding the Ethernet card to the bridge, it is also possible to determine whether the dynamic IP address acquisition service has been started. If the dynamic IP address acquisition service has been started, then shut down the dynamic IP address acquisition service. The reason for such an operation is that the electronic device can be used both as a client and as a server. When the dynamic IP address acquisition service has been started, by shutting down the dynamic IP address acquisition service, IP address allocation conflicts can be avoided.

[0067] When, after step S303 or step S304, it is determined that the target diagnostic working mode is the server working mode, setting the network configuration according to the configuration information of the device to be diagnosed and in accordance with the target diagnostic working mode may be as follows: deleting the Ethernet card from the bridge; starting the dynamic IP address acquisition service; setting the IP address of the bridge from which the Ethernet card has been deleted to a second preset value. In the above embodiments, the dynamic IP address acquisition service is a lightweight DHCP client program. Starting the dynamic IP address acquisition service can enable the electronic device in the server working mode to obtain a dynamic IP address. The second preset value may be 0.0.0.0. Setting the IP address of the bridge from which the Ethernet card has been deleted to the second preset value is equivalent to clearing the IP address of the bridge, avoiding the conflict between the IP address obtained by this electronic device and the bridge address and affecting data transmission. Of course, it is also possible to determine whether the dynamic IP address allocation service has been started before setting the IP address of the bridge from which the Ethernet card has been deleted to the second preset value. If the dynamic IP address allocation service has been started, then shut down the dynamic IP address allocation service, which can also avoid the conflict between the IP address obtained by this device and the bridge address and affecting data transmission.

[0068] In the above embodiments, network components such as bridges and Ethernet cards are all built into the electronic device.

[0069] Step S305: Diagnose the device to be diagnosed according to the network configuration.

[0070] Taking the device to be diagnosed as a vehicle as an example: When it is determined that the working mode of the electronic device is the client working mode, this electronic device is used as a vehicle connector. This electronic device establishes a remote communication connection with a remote diagnostic connector. After the diagnostic connector obtains the diagnostic instruction of the diagnostic device, it sends the diagnostic instruction to this electronic device through remote communication. Then this electronic device sends the diagnostic instruction to the vehicle, and obtains the vehicle feedback data from the vehicle, and then sends the vehicle feedback data to the diagnostic connector. Then the diagnostic device obtains the vehicle feedback data of the diagnostic connector and conducts a diagnosis. When it is determined that the working mode of the electronic device is the server working mode, this electronic device is used as a diagnostic connector. This electronic device establishes a communication connection with a remote vehicle connector. After this electronic device obtains the diagnostic instruction of the diagnostic device, it sends the diagnostic instruction to the vehicle connector through remote communication. Then the vehicle connector sends the diagnostic instruction to the vehicle, and obtains the vehicle feedback data from the vehicle, and then sends the vehicle feedback data to this electronic device. After that, the diagnostic device obtains the vehicle feedback data from this electronic device and conducts a diagnosis. When the device to be diagnosed is a central air conditioner or an industrial production line automation device, the process of remote technical guidance and diagnosis can refer to the above process of vehicle remote diagnosis.

[0071] It should be understood that the sequence numbers of the steps in the above embodiments do not imply the order of execution. The execution order of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

[0072] Corresponding to the above Figure 1 shown diagnostic working mode switching method, Figure 4 shown is a diagnostic working mode switching device provided by an embodiment of the present application. This device can be applied to electronic devices such as connectors. Figure 4 The exemplary device may include an acquisition module 401, a determination module 402, a setting module 403, and a diagnostic module 404, which are described in detail as follows:

[0073] The acquisition module 401 is used to acquire the configuration information of the device to be diagnosed;

[0074] The determination module 402 is used to determine the target diagnostic working mode;

[0075] The setting module 403 is used to set the network configuration according to the configuration information of the device to be diagnosed and in accordance with the target diagnostic working mode;

[0076] The diagnostic module 404 is used to diagnose the device to be diagnosed according to the network configuration.

[0077] Optionally, Figure 4 The exemplary determination module 402 may include a reading unit, a first determination unit, and a second determination unit, where:

[0078] The reading unit is used to read the device information of the device to be diagnosed;

[0079] The first determination unit is used to determine that the target diagnostic working mode is the client working mode if the device information of the device to be diagnosed is read;

[0080] The second determination unit is used to determine that the target diagnostic working mode is the server working mode if the device information of the device to be diagnosed is not read.

[0081] Optionally, Figure 4 The exemplary determination module 402 may include a mode selection unit and a third determination unit, where:

[0082] The mode selection unit is used to present diagnostic working mode options for the user to select, where the working modes include the client working mode and the server working mode;

[0083] The third determination unit is used to determine the target diagnostic working mode according to the diagnostic working mode selected by the user.

[0084] Optionally, the above-mentioned electronic device is built-in with a bridge and an Ethernet card. When the target diagnostic working mode is the client working mode, Figure 4 The exemplary setting module 403 may include a first setting unit, a first starting unit, and a network card adding unit, where:

[0085] The first setting unit is used to set the IP address of the bridge to a first preset value;

[0086] The first starting unit is used to start the dynamic IP allocation service to allocate an IP address to the device to be diagnosed;

[0087] The network card adding unit is used to add the Ethernet card to the bridge.

[0088] Optionally, Figure 4 The exemplary device may further include a first judgment module and a first shutdown module, where:

[0089] The first judgment module is used to judge whether the dynamic IP address acquisition service has been started before the network card adding unit adds the Ethernet card to the bridge;

[0090] The first shutdown module is used to shut down the dynamic IP address acquisition service if the dynamic IP address acquisition service has been started.

[0091] Optionally, the above-mentioned electronic device is built-in with a bridge and an Ethernet card. When the target diagnostic working mode is the server working mode, Figure 4 The exemplary setting module 403 may include a deletion unit, a second starting unit, and a second setting unit, where:

[0092] The deletion unit is used to delete the Ethernet card from the bridge;

[0093] The second starting unit is used to start the dynamic IP address acquisition service;

[0094] The second setting unit is used to set the IP address of the bridge after deleting the Ethernet card to a second preset value.

[0095] Optionally, Figure 4 The exemplary device may further include a second judgment module and a second shutdown module, where:

[0096] The second judgment module is used to judge whether the dynamic IP address allocation service has been started before the second setting unit sets the IP address of the bridge after deleting the Ethernet card to the second preset value;

[0097] The second shutdown module is used to shut down the dynamic IP address allocation service if the dynamic IP address allocation service has been started.

[0098] It should be understood that the various implementation manners and their beneficial effects in the above embodiments are equally applicable to this embodiment, and will not be elaborated here.

[0099] Figure 5 FIG. is a schematic structural diagram of an electronic device provided in an embodiment of the present application. The electronic device D10 in this embodiment includes: at least one processor D100 ( Figure 5 only one is shown in the figure), a processor, a memory D101, and a computer program D102 stored in the memory D101 and executable on the at least one processor D100. When the processor D100 executes the computer program D102, it implements the steps in any of the above method embodiments, that is, obtaining configuration information of the device to be diagnosed; determining a target diagnosis working mode; setting network configuration according to the configuration information of the device to be diagnosed and in accordance with the target diagnosis working mode; diagnosing the device to be diagnosed according to the network configuration.

[0100] Optionally, the determining of the target diagnosis working mode executed by the above processor D100 may be: reading device information of the device to be diagnosed; if read, determining the target diagnosis working mode as the client working mode; if not read, determining the target diagnosis working mode as the server working mode.

[0101] Optionally, the determining of the target diagnosis working mode executed by the above processor D100 may be: presenting diagnosis working mode options for the user to select, where the working modes include the client working mode and the server working mode; determining the target diagnosis working mode according to the diagnosis working mode selected by the user.

[0102] Optionally, the above electronic device is built with a bridge and an Ethernet card. When the target diagnosis working mode is the client working mode, the setting of the network configuration by the above processor D100 according to the configuration information of the device to be diagnosed and in accordance with the target diagnosis working mode may be: setting the IP address of the bridge to a first preset value; starting a dynamic IP allocation service to allocate an IP address for the device to be diagnosed; adding the Ethernet card to the bridge.

[0103] Optionally, before the above processor D100 executes adding the Ethernet card to the bridge, it also executes determining whether the dynamic IP address acquisition service has been started; if the dynamic IP address acquisition service has been started, shutting down the dynamic IP address acquisition service.

[0104] Optionally, the above electronic device is built with a bridge and an Ethernet card. When the target diagnosis working mode is the server working mode, the setting of the network configuration by the above processor D100 according to the configuration information of the device to be diagnosed and in accordance with the target diagnosis working mode may be: deleting the Ethernet card from the bridge; starting a dynamic IP address acquisition service; setting the IP address of the bridge after deleting the Ethernet card to a second preset value.

[0105] Optionally, before the above-mentioned processor D100 executes the operation of setting the IP address of the bridge deleting the Ethernet card to the second preset value, it also executes a judgment on whether the dynamic IP address allocation service has been started; if the dynamic IP address allocation service has been started, the dynamic IP address allocation service is shut down.

[0106] Alternatively, when the processor D100 executes the computer program D102, it implements the functions of each module / unit in the above-mentioned device embodiments, such as Figure 4 the functions of the acquisition module 401, the determination module 402, the setting module 403, and the diagnosis module 404 shown. The electronic device D10 may include but is not limited to the processor D100 and the memory D101. Those skilled in the art can understand that Figure 5 merely examples of the electronic device D10, which do not constitute a limitation on the electronic device D10, may include more or fewer components than shown, or combine certain components, or different components. For example, it may also include input / output devices, network access devices, etc. The so-called processor D100 may be a central processing unit (CPU), and this processor D100 may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or this processor may also be any conventional processor, etc. The memory D101 may be an internal storage unit of the electronic device D10 in some embodiments, such as the hard disk or memory of the electronic device D10. The memory D101 may also be an external storage device of the electronic device D10 in other embodiments, such as a plug-in hard disk equipped on the electronic device D10, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Further, the memory D101 may also include both the internal storage unit and the external storage device of the electronic device D10. The memory D101 is used to store an operating system, application programs, a boot loader, data, and other programs, such as the program code of the computer program, etc. The memory D101 may also be used to temporarily store data that has been output or will be output.

[0107] It should be noted that for the content such as information interaction and execution process between the above-mentioned devices / units, since it is based on the same concept as the method embodiment of the present application, for its specific functions and the technical effects brought, reference can be specifically made to the method embodiment part, and details are not described herein again.

[0108] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the above-mentioned division of each functional unit and module is used as an example for illustration. In actual applications, the above functions can be allocated to different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated in a processing unit, or each unit exists physically alone, or two or more units are integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of each functional unit and module are only for the convenience of mutual distinction and do not limit the protection scope of the present application. The specific working process of the units and modules in the above system can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.

[0109] The embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the steps in each of the above method embodiments can be implemented.

[0110] The embodiment of the present application provides a computer program product, when the computer program product runs on an electronic device, the electronic device can implement the steps in each of the above method embodiments when executed.

[0111] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, to implement all or part of the processes in the above-described embodiment methods of this application, a computer program can be used to instruct relevant hardware to complete. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above-described method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the photographing device / terminal device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk, or an optical disc, etc. In some jurisdictions, according to legislation and patent practice, the computer-readable medium cannot be an electrical carrier signal and a telecommunication signal.

[0112] In the above embodiments, the descriptions of the various embodiments have their own emphases. For the parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0113] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of this application.

[0114] In the embodiments provided in this application, it should be understood that the disclosed device / network device and method can be implemented in other ways. For example, the device / network device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the devices or units can be in an electrical, mechanical, or other form.

[0115] The unit described as a separation component may or may not be physically separated. The component shown as a unit may or may not be a physical unit, that is, it may be located in one place or may be distributed across multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0116] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for switching diagnostic working modes, characterized in that, it is applied to an electronic device, and the method includes: Obtaining the configuration information of the device to be diagnosed; wherein, the device to be diagnosed is a vehicle, and the configuration information of the device to be diagnosed is various configuration parameters of the device to be diagnosed, which is the communication protocol supported by the vehicle; Determining the target diagnostic working mode, including: Reading the device information of the device to be diagnosed; the device information of the device to be diagnosed is the information that uniquely identifies the device to be diagnosed, which is the vehicle identification number VIN; If it is read, determine that the target diagnostic working mode is the client working mode; If it is not read, determine that the target diagnostic working mode is the server working mode; the target diagnostic working mode includes whether the device to be diagnosed is in the client working mode or the server working mode; Setting the network configuration according to the configuration information of the device to be diagnosed and in accordance with the target diagnostic working mode; the setting of the network configuration includes setting the IP address of the bridge, obtaining an IP address for the device to be diagnosed, and allocating an IP address for the device to be diagnosed; the network configuration corresponds to the target diagnostic working mode, that is, when the target diagnostic working mode is determined, the network configuration corresponding to the target diagnostic working mode should be set; Diagnosing the device to be diagnosed according to the network configuration, including: when it is determined that the working mode of the electronic device is the client working mode, the electronic device is used as a vehicle connector; the electronic device establishes a remote communication connection with a remote diagnostic connector; after the diagnostic connector obtains the diagnostic instruction of the diagnostic device, it sends the diagnostic instruction to the electronic device through remote communication, and then the electronic device sends the diagnostic instruction to the vehicle and obtains vehicle feedback data from the vehicle, and then sends the vehicle feedback data to the diagnostic connector, and then the diagnostic device obtains the vehicle feedback data of the diagnostic connector and performs a diagnosis; when it is determined that the working mode of the electronic device is the server working mode, the electronic device is used as a diagnostic connector; the electronic device establishes a communication connection with a remote vehicle connector; after the electronic device obtains the diagnostic instruction of the diagnostic device, it sends the diagnostic instruction to the vehicle connector through remote communication, and then the vehicle connector sends the diagnostic instruction to the vehicle and obtains vehicle feedback data from the vehicle, and then sends the vehicle feedback data to the electronic device, and then the diagnostic device obtains the vehicle feedback data from the electronic device and performs a diagnosis.

2. The method according to claim 1, characterized in that, the determining the target diagnostic working mode specifically includes: Presenting diagnostic working mode options for the user to select, and the working modes include the client working mode and the server working mode; Determining the target diagnostic working mode according to the diagnostic working mode selected by the user.

3. The method according to claim 1 or 2, characterized in that, the electronic device is built-in with a bridge and an Ethernet card. When the target diagnostic working mode is the client working mode, the setting of the network configuration according to the configuration information of the device to be diagnosed and in accordance with the target diagnostic working mode specifically includes: Setting the IP address of the bridge to a first preset value; Start the dynamic IP allocation service to allocate an IP address for the device to be diagnosed; Add the Ethernet network card to the network bridge.

4. The method according to claim 3, wherein, Before adding the Ethernet network card to the network bridge, the method further includes: Determine whether the dynamic IP address acquisition service has been started; If the dynamic IP address acquisition service has been started, shut down the dynamic IP address acquisition service.

5. The method according to claim 1 or 2, wherein, The electronic device is built-in with a network bridge and an Ethernet network card. When the target diagnosis working mode is the server working mode, setting the network configuration according to the configuration information of the device to be diagnosed and in accordance with the target diagnosis working mode specifically includes: Delete the Ethernet network card from the network bridge; Start the dynamic IP address acquisition service; Set the IP address of the network bridge from which the Ethernet network card is deleted to a second preset value.

6. The method according to claim 5, wherein, Before setting the IP address of the network bridge from which the Ethernet network card is deleted to a second preset value, the method further includes: Determine whether the dynamic IP address allocation service has been started; If so, shut down the dynamic IP address allocation service.

7. A diagnostic working mode switching device, wherein, Applied to an electronic device, the device includes: An acquisition module for acquiring the configuration information of the device to be diagnosed; wherein, the device to be diagnosed is a vehicle, and the configuration information of the device to be diagnosed is various configuration parameters of the device to be diagnosed, which is the communication protocol supported by the vehicle; A determination module for determining the target diagnosis working mode, including: Read the device information of the device to be diagnosed; the device information of the device to be diagnosed is the information that uniquely identifies the device to be diagnosed, which is the vehicle identification number VIN; If it is read, determine that the target diagnosis working mode is the client working mode; If it is not read, determine that the target diagnosis working mode is the server working mode; the target diagnosis working mode includes whether the device to be diagnosed is in the client working mode or the server working mode; A setting module for setting the network configuration according to the configuration information of the device to be diagnosed and in accordance with the target diagnosis working mode; the setting of the network configuration includes setting the IP address of the network bridge, the device to be diagnosed acquiring an IP address, and allocating an IP address for the device to be diagnosed; the network configuration corresponds to the target diagnosis working mode, that is, when the target diagnosis working mode is determined, the network configuration corresponding to the target diagnosis working mode should be set; A diagnostic module, configured to diagnose the device to be diagnosed according to the network configuration, including: after determining that the working mode of the electronic device is the client working mode, the electronic device is used as a vehicle connector; the electronic device establishes a remote communication connection with a remote diagnostic connector; after the diagnostic connector obtains a diagnostic instruction from a diagnostic device, the diagnostic instruction is sent to the electronic device through remote communication, then the electronic device sends the diagnostic instruction to the vehicle, and obtains vehicle feedback data from the vehicle, then sends the vehicle feedback data to the diagnostic connector, and then the diagnostic device obtains the vehicle feedback data of the diagnostic connector and performs a diagnosis; after determining that the working mode of the electronic device is the server working mode, the electronic device is used as a diagnostic connector; the electronic device establishes a communication connection with a remote vehicle connector; after the electronic device obtains a diagnostic instruction from a diagnostic device, the diagnostic instruction is sent to the vehicle connector through remote communication, then the vehicle connector sends the diagnostic instruction to the vehicle, and obtains vehicle feedback data from the vehicle, then sends the vehicle feedback data to the electronic device, and then the diagnostic device obtains the vehicle feedback data from the electronic device and performs a diagnosis.

8. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein, when the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium storing a computer program, wherein, when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Network connector and vehicle diagnostic method

    CN108303964A