CN114615105B - Data transmission method, device, electronic equipment, system and storage medium - Google Patents

Data transmission method, device, electronic equipment, system and storage medium Download PDF

Info

Publication number
CN114615105B
CN114615105B CN202210344370.1A CN202210344370A CN114615105B CN 114615105 B CN114615105 B CN 114615105B CN 202210344370 A CN202210344370 A CN 202210344370A CN 114615105 B CN114615105 B CN 114615105B
Authority
CN
China
Prior art keywords
canid
data
response
equipment
electronic device
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
CN202210344370.1A
Other languages
Chinese (zh)
Other versions
CN114615105A (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 CN202210344370.1A priority Critical patent/CN114615105B/en
Publication of CN114615105A publication Critical patent/CN114615105A/en
Application granted granted Critical
Publication of CN114615105B publication Critical patent/CN114615105B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40169Flexible bus arrangements
    • 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
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle
    • 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

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a data transmission method, a device, electronic equipment, a system and a storage medium, wherein the method comprises the following steps: receiving target data sent by data sending equipment, and analyzing the target data to obtain a request CANID; when a response CANID corresponding to the request CANID exists in the preset CANID list, the data transmitting device transmits a delay instruction and transmits target data to the second electronic device so that the second electronic device transmits the target data to the data receiving device; if the target data does not exist, the target data is directly sent to the second electronic device, and the CANID list stores a response CANID which is acquired by the second electronic device from the data receiving device and sent to the first electronic device. The data transmission method provided by the embodiment of the invention can effectively solve the problems that the delay recovery of all target data by the existing target data (diagnostic data) transmission method is easy to cause misjudgment of data transmission equipment and long target data detection time.

Description

Data transmission method, device, electronic equipment, system and storage medium
Technical Field
The invention belongs to the technical field of equipment data transmission and management, and particularly relates to a data transmission method, a data transmission device, electronic equipment, a data transmission system and a storage medium.
Background
Automotive diagnostics are very time-lapse demanding, typically requiring no more than 55 milliseconds. A timeout is likely to cause a diagnostic failure. However, in remote diagnosis, the network delay is unreliable, and it is difficult to ensure that the network delay is less than 55 milliseconds, especially when the user tries wifi or 4G wireless network, etc., and the network delay is more unreliable. To solve this problem, it is currently done that all the service codes of the UDS are used to support the negative response code of 0x78, and the B-side (application server side) returns a response of 0x78 when receiving the request of the diagnostic apparatus, and when the diagnostic apparatus receives the response, it waits at least 5 seconds, so that the problem of diagnosis failure caused by the network delay greater than 50 milliseconds can be avoided.
However, when solving the delay problem, the existing method brings new problems. As is well known, there are many systems on each vehicle, such as ACC (adaptive cruise system), ICC (intelligent pilot system), BCM (body control system), TCM (automatic transmission control module), ABS, ESP, ECM, etc., up to several tens of systems. These are optional, and some are optional; the configurations of the high-split vehicles and the low-split vehicles are also different. When the system is scanned, for example, the vehicle is not provided with an ACC, when the ACC is scanned, if the vehicle does not return to 0x78, and after 50 ms timeout, the vehicle fails, a retry mechanism is added, the diagnostic apparatus can judge that the system is not present in a few seconds and scan the next time, but if the vehicle returns to 0x78, the diagnostic apparatus waits for at least 5 seconds to timeout, and then the retry mechanism is added, and then waits for at least tens of seconds to timeout. If a vehicle, particularly a low-profile vehicle, is scanned, many systems are not configured, and the time to scan a round is long, greatly reducing diagnostic efficiency and severely impacting user experience.
Disclosure of Invention
In view of the above-described deficiencies of the prior art, the present invention aims to: the method can send the delay instruction to the diagnostic instrument more accurately, and improves the diagnostic efficiency.
In order to achieve the above object, the present invention provides the following technical solutions:
a data transmission method, the method being applied to a first electronic device, comprising:
receiving target data sent by data sending equipment, and analyzing the target data to obtain a request CANID;
judging whether a response CANID corresponding to the request CANID exists in a preset CANID list or not;
if yes, a delay instruction is sent to the data sending equipment, and the target data is sent to the second electronic equipment, so that the second electronic equipment sends the target data to the data receiving equipment;
if not, directly transmitting the target data to the second electronic equipment so that the second electronic equipment transmits the target data to the data receiving equipment; the can list stores a reply can that the second electronic device obtains from the data receiving device and sends to the first electronic device.
According to a specific embodiment, in the data transmission method, the method further includes:
receiving a response CANID acquired by the second electronic device from the data receiving device;
and updating the CANID list according to the response CANID, and feeding back confirmation information to the second electronic equipment after the list is updated.
According to a specific embodiment, in the above data transmission method, before determining whether the reply nid corresponding to the request nid exists in the preset nid list, the method further includes:
judging whether the request CANID has a corresponding response CANID or not based on a preset configuration file, and if not, not needing to respond; if yes, the step of judging whether the response CANID corresponding to the request CANID exists in the preset CANID list or not is carried out.
In another aspect, a data transmission method is provided, where the method is applied to a second electronic device, and includes:
receiving target data sent by first electronic equipment, and sending the target data to data receiving equipment;
receiving response data fed back by the data receiving device based on the target data; transmitting the response data to a first electronic device, so that the first electronic device transmits the response data to the data transmitting device;
Extracting a response CANID corresponding to the request CANID from the response data;
traversing the existing response CANID, and judging whether the response CANID is the existing response CANID or not; if yes, the response CANID is not required to be transmitted to the first electronic equipment; if not, transmitting the response CANID to the first electronic equipment so that the first electronic equipment updates the CANID list according to the response CANID.
According to a specific embodiment, in the above-mentioned data transmission method, after the transmitting the reply cand to the first electronic device, the method further includes:
and receiving confirmation information fed back by the first electronic equipment after the list is updated, and marking the response CANID as the existing response CANID according to the confirmation information.
In another aspect, there is provided a data transmitting apparatus applied to a first electronic device, including:
the first data transmission module is used for receiving target data sent by the data sending equipment and analyzing the target data to obtain a request CANID; and sending a delay instruction to the data sending equipment;
a judging module, configured to judge whether a preset nid list includes a response nid corresponding to the requested nid; if yes, a delay instruction is sent to the first data transmission module, the target data is sent to the second data transmission module, and if not, the target data is directly sent to the second data transmission module;
A storage module, configured to store the cand list, where the cand list stores a response cand acquired by the second electronic device from the data receiving device and sent to the first electronic device;
and the second data transmission module is used for transmitting the target data to the second electronic equipment so that the second electronic equipment can transmit the target data to the data receiving equipment.
In another aspect, there is provided a data transmitting apparatus applied to a second electronic device, including:
the third data transmission module is used for receiving target data sent by the first electronic equipment and sending the target data to the data receiving equipment; and receiving response data fed back by the data receiving device based on the target data; and transmitting the response data to a first electronic device and an analysis module, so that the first electronic device transmits the response data to the data transmitting device; transmitting a response CANID sent by the analysis module to the first electronic equipment so that the first electronic equipment updates the CANID list according to the response CANID;
an analysis module, configured to extract a reply nid corresponding to the request nid from the response data; traversing the existing response CANID, and judging whether the response CANID is the existing response CANID or not; if yes, the response CANID is not required to be transmitted; if not, the response CANID is sent to the third data transmission module.
In another aspect, an electronic device is provided, including a processor, a network interface, and a memory, where the processor, the network interface, and the memory are connected to each other, where the memory is configured to store a computer program, the computer program including program instructions, and the processor is configured to invoke the program instructions to perform the data transmission method applied to the first electronic device, or the data transmission method applied to the second electronic device.
In another aspect, a computer storage medium has stored therein program instructions that, when executed by at least one processor, are configured to implement the above-described data transmission method applied to a first electronic device or the above-described data transmission method applied to a second electronic device.
In another aspect, there is provided a data transmission system comprising: the system comprises a first electronic device, a second electronic device, a data sending device and a data receiving device;
the first electronic equipment is in communication connection with the data sending equipment and the second electronic equipment; the second electronic device is used for communicating with the data receiving device;
the first electronic equipment receives target data sent by data sending equipment, and analyzes the target data to obtain a request CANID; judging whether a preset CANID list has a response CANID corresponding to the request CANID, if so, sending a delay instruction to the data sending equipment, and sending the target data to second electronic equipment; if not, directly transmitting the target data to second electronic equipment;
The second electronic equipment receives target data sent by the first electronic equipment and sends the target data to the data receiving equipment; receiving response data fed back by the data receiving device based on the target data; transmitting the response data to the first electronic device; extracting a response CANID corresponding to the request CANID from the response data; traversing the existing response CANID, and judging whether the response CANID is the existing response CANID or not; if yes, the response CANID is not required to be transmitted to the first electronic equipment; if not, transmitting the response CANID to the first electronic equipment;
the first electronic equipment updates the CANID list according to the response CANID;
the first electronic device transmits the response data received from the second electronic device to the data transmitting device.
Compared with the prior art, the invention has the beneficial effects that:
according to the data transmission method provided by the invention, the second electronic equipment is stored to acquire the response CANID from the data receiving equipment and send the response CANID to the first electronic equipment; after receiving target data of a data transmitting device (diagnostic apparatus), matching a request CANID carried in the target data with a stored response CANID, and judging whether a delay instruction needs to be replied based on the target data based on a matching result. In the application, the data receiving device and the data sending device communicate through the CAN protocol, if the first electronic device CAN acquire the response cand sent by the data receiving device, which indicates that a system corresponding to the response cand exists on the data receiving device, after the first electronic device receives the target data of the data sending device, if the request cand in the target data CAN be matched with the response cand stored by the first electronic device, a delay instruction is sent to the data sending device, and if the request cand is not matched with the response cand stored by the first electronic device, the delay instruction is not sent to the data sending device. Therefore, the method and the device can accurately judge whether the delay instruction is required to be sent to the data sending equipment according to whether a certain system exists on the data receiving equipment, avoid the problem of overtime diagnosis caused by the absence of the system, greatly improve the diagnosis efficiency and improve the user experience.
Drawings
Fig. 1 is a schematic diagram of a data transmission system architecture according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a data transmission method applied to a first electronic device according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a data transmission device architecture applied to a first electronic device according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a data transmission device architecture applied to a second electronic device according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an electronic device architecture according to an embodiment of the present invention;
reference numerals: 101-a first data transmission module; 102-judging module; 103-a memory module; 104-a second data transmission module; 201-a third transmission module; 202-an analysis module.
Detailed Description
Other advantages and effects of the present invention will become apparent to those skilled in the art from the following disclosure, which describes the embodiments of the present invention with reference to specific examples. The invention may be practiced or carried out in other embodiments that depart from the specific details, and the details of the present description may be modified or varied from the spirit and scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a data transmission system according to an embodiment of the present application, including: the system comprises a first electronic device, a second electronic device, a data sending device and a data receiving device; the first electronic equipment is in communication connection with the data sending equipment and the second electronic equipment; the second electronic device is used for communicating with the data receiving device;
The first electronic equipment receives target data sent by data sending equipment, and analyzes the target data to obtain a request CANID; judging whether a preset CANID list has a response CANID corresponding to the request CANID, if so, sending a delay instruction to the data sending equipment, and sending the target data to second electronic equipment; if not, directly transmitting the target data to second electronic equipment;
the second electronic equipment receives target data sent by the first electronic equipment and sends the target data to the data receiving equipment; receiving response data fed back by the data receiving device based on the target data; transmitting the response data to the first electronic device; extracting a response CANID corresponding to the request CANID from the response data; traversing the existing response CANID, and judging whether the response CANID is the existing response CANID or not; if yes, the response CANID is not required to be transmitted to the first electronic equipment; if not, transmitting the response CANID to the first electronic equipment;
the first electronic equipment updates the CANID list according to the response CANID;
the first electronic device transmits the response data received from the second electronic device to the data transmitting device.
In the application, the data receiving device and the data sending device communicate through the CAN protocol, if the first electronic device CAN acquire the response cand sent by the data receiving device, which indicates that a system corresponding to the response cand exists on the data receiving device, after the first electronic device receives the target data of the data sending device, if the request cand in the target data CAN be matched with the response cand stored by the first electronic device, a delay instruction is sent to the data sending device, and if the request cand is not matched with the response cand stored by the first electronic device, the delay instruction is not sent to the data sending device. Therefore, the method and the device can accurately judge whether the delay instruction is required to be sent to the data sending equipment according to whether a certain system exists on the data receiving equipment, avoid the problem of overtime diagnosis caused by the absence of the system, greatly improve the diagnosis efficiency and improve the user experience. In one possible implementation manner, the data transmitting device is a diagnostic device, the data receiving device is a vehicle, and the first electronic device and the second electronic device are data transmission devices between the diagnostic device and the vehicle. It will be appreciated that if a system on the vehicle is not present, the second electronic device must not receive a response cand sent by that system, and conversely if the second electronic device receives a corresponding response cand, this means that the system is present. Accordingly, in this embodiment, when the first electronic device is configured to receive the target data of the diagnostic apparatus, the request nid is extracted from the target data, and whether a delay instruction needs to be sent to the request nid is determined based on a preset nid list; simultaneously configuring a second electronic device to receive and acquire a response CANID from the vehicle, and transmitting the response CANID to the first electronic device so that the first electronic device establishes a CANID list according to the response CANID; therefore, the first electronic device can carry out a delay instruction (0 x78 response) on the diagnostic instrument according to the response CANID obtained by the second electronic device from the vehicle, and the problem that the diagnosis time is too long due to the fact that the delay instruction is sent to the diagnostic instrument when a certain system on the vehicle does not exist in the existing data transmission method is effectively solved.
Example 2
Referring to fig. 2, fig. 2 is a diagram of a data transmission method applied to the first electronic device shown in fig. 3, which includes the following steps:
s11, receiving target data sent by data sending equipment, and analyzing the target data to obtain a request CANID;
s12, judging whether a response CANID corresponding to the request CANID exists in a preset CANID list; if yes, a delay instruction is sent to the data sending equipment, and the target data is sent to the second electronic equipment, so that the second electronic equipment sends the target data to the data receiving equipment;
if not, directly transmitting the target data to the second electronic equipment so that the second electronic equipment transmits the target data to the data receiving equipment; the can list stores a reply can that the second electronic device obtains from the data receiving device and sends to the first electronic device.
In this embodiment, the nid list stores a response nid obtained by the second electronic device from the data receiving device and sent to the first electronic device, and if the nid list records a nid corresponding to a certain system, it is indicated that the data receiving device (vehicle) has the system, and the present application determines whether to send a delay instruction to the data sending device according to the nid list. Specifically, after the first electronic device receives the target data of the data sending device, if the request can be matched with the response can stored in the first electronic device, the delay instruction is sent to the data sending device, and if the request can not be matched with the response can, the delay instruction is not sent to the data sending device.
Therefore, the method and the device can accurately judge whether the delay instruction is required to be sent to the data sending equipment according to whether a certain system exists on the data receiving equipment, avoid the problem of overtime diagnosis caused by the absence of the system, greatly improve the diagnosis efficiency and improve the user experience.
It can be understood that after the first electronic device receives the target data of the data transmission device (diagnostic apparatus), it determines whether to transmit a delay instruction to the data transmission device according to a preset nid list, and then sends the target data to the data receiving device via the second electronic device, if the corresponding target system in the data receiving device (vehicle) is present, the response data will be fed back, and the first electronic device may also receive the response nid present in the response data and record the nid in the preset nid list. If the data receiving device (vehicle) does not have the system, the worst case is that the target data request of the first time data transmitting device is overtime, but the data transmitting device has a retry mechanism, and the second time can certainly replace the delay command. If the time delay instruction is not replaced, the time-out waiting of the diagnostic instrument is very short, so that the user can hardly feel the time delay instruction, and the user experience is not affected.
In one possible implementation, the data storage structure is used for carrying out structural storage on the received response CANID, so that the efficiency of subsequent table lookup comparison is improved; the corresponding data storage results include: linked lists, arrays, or other storage structures.
In this embodiment, the data storage structure is used to store the received response can id data in a structural manner, so that the efficiency of subsequent addressing query comparison is effectively improved.
Preferably, a nid linked list is established according to the received answer nid, and a diagnosis instruction of the diagnostic instrument is responded based on the nid linked list. For example: the received response cand is 0x7e0, 0x71a, 0x71b; can establish can id linked list based on these several answer can id, in order to compare subsequently. Therefore, in this embodiment, the can ids corresponding to the received vehicle system are stored in the form of a linked list, so that the storage space is further saved.
In one possible implementation manner, the data transmission method further includes: s13, receiving a response CANID acquired by the second electronic equipment from the data receiving equipment; and updating the CANID list according to the response CANID, and feeding back confirmation information to the second electronic equipment after the list is updated.
In this embodiment, after receiving the response nid obtained by the second electronic device from the data receiving device and updating the nid list, the second electronic device may determine whether the received response nid is an existing nid according to the acknowledgement information by feeding back the acknowledgement information.
In a possible implementation manner, before executing the step S12, before determining whether the answer nid corresponding to the request nid exists in the preset nid list, the method further includes:
judging whether the request CANID has a corresponding response CANID or not based on a preset configuration file, and if not, not needing to respond; if yes, the step of judging whether the response CANID corresponding to the request CANID exists in the preset CANID list or not is carried out.
It can be understood that the cands of different systems in the vehicle are different, and in the vehicle diagnosis process, not all the systems need to respond to the request cands, at this time, whether the request cands needing to respond exist in the target data sent by the diagnostic apparatus can be judged through a preset configuration file, if yes, whether the system exists in the vehicle is judged through a cand list, so that accurate data transmission and delay instructions are performed. Meanwhile, the request CANID and the corresponding response CANID which need to be delayed are recorded in the CANID list.
In this embodiment, before determining whether the system exists in the vehicle based on the preset nid list, it is first determined based on the configuration file whether the requested nid in the target data has the nid that needs to be responded, so as to prevent a delay instruction from being performed on the nid that does not need to be responded in the target data, and ensure that an accurate delay instruction is sent to the diagnostic apparatus.
In another aspect, a data transmission method is provided, where the method is applied to a second electronic device, and includes:
s21, receiving target data sent by first electronic equipment, and sending the target data to data receiving equipment;
s22, receiving response data fed back by the data receiving device based on the target data; transmitting the response data to a first electronic device, so that the first electronic device transmits the response data to the data transmitting device;
s23, extracting a response CANID corresponding to the request CANID from the response data;
traversing the existing response CANID, and judging whether the response CANID is the existing response CANID or not; if yes, the response CANID is not required to be transmitted to the first electronic equipment; if not, transmitting the response CANID to the first electronic equipment so that the first electronic equipment updates the CANID list according to the response CANID.
In this embodiment, after target data from a first electronic device is sent to a data receiving device, response data sent by the data receiving device is received, the response data is sent to a data sending device by the first electronic device, a response nid corresponding to the request nid is extracted from the response data, an existing response nid is traversed, and when the extracted response nid is not the existing response nid, the response nid is transmitted to the first electronic device, so that the first electronic device updates the nid list according to the response nid; therefore, the first electronic device can accurately send the delay instruction to the data sending device based on the CANID list, and the accuracy and the detection efficiency of the target data detection of the data sending device are improved.
In a possible implementation manner, in step S23 of the data transmission method, after the transmitting the answer cand to the first electronic device, the method further includes:
and receiving confirmation information fed back by the first electronic equipment after the list is updated, and marking the response CANID as the existing response CANID according to the confirmation information.
In this embodiment, by receiving acknowledgement information sent by the first electronic device based on the reply cand, the currently sent reply cand is marked as an existing cand according to the acknowledgement information, so that in a transmission process of subsequent target data and response data, the corresponding reply cand is prevented from being repeatedly sent to the first electronic device, which causes redundancy of cand list data, and the contrast efficiency is improved.
In another aspect of the present invention, there is provided a data transmission apparatus applied to a first electronic device, including:
a first data transmission module 101, configured to receive target data sent by a data sending device, and parse the target data to obtain a request cand; and sending a delay instruction to the data sending equipment;
a judging module 102, configured to judge whether a preset nid list includes a reply nid corresponding to the requested nid; if yes, a delay instruction is sent to the first data transmission module, the target data is sent to the second data transmission module, and if not, the target data is directly sent to the second data transmission module;
a storage module 103, configured to store the cand list, where the cand list stores a response cand acquired by the second electronic device from the data receiving device and sent to the first electronic device;
and the second data transmission module 104 is configured to send the target data to the second electronic device, so that the second electronic device sends the target data to the data receiving device.
According to the data transmission device provided by the embodiment of the application, the response CANID which is obtained from the data receiving equipment and sent to the first electronic equipment by the second electronic equipment is stored; and after receiving the target data of the data transmission device (diagnostic apparatus), judging whether a delay instruction needs to be replied to the data transmission device based on the CANID list. According to the method and the device, whether a certain system exists on the data receiving equipment or not can be accurately judged, a delay instruction is not required to be sent to the data sending equipment, the problem of overtime diagnosis caused by the absence of the system is avoided, the diagnosis efficiency is greatly improved, and the user experience is improved.
In one possible implementation, the second data transmission module 104 is further configured to: receiving a response CANID acquired by the second electronic device from the data receiving device; and transmitted to the storage module 103; and a storage module 103 for feeding back confirmation information to the second electronic device after updating the cand list according to the answer cand.
In this embodiment, after receiving the answer nid acquired by the second electronic device from the data receiving device and updating the nid list, the second electronic device may determine whether the answer nid received by the second electronic device is an existing nid according to the acknowledgement information by feeding back the acknowledgement information, so as to avoid the second electronic device from repeatedly sending the answer nid received by the second electronic device.
In a possible implementation manner, the storage module 103 is further configured to store a preset configuration file, and the determining module 102 is further configured to: before judging whether a response CANID corresponding to the request CANID exists in a preset CANID list, judging whether the request CANID exists in the corresponding response CANID based on a preset configuration file in a storage module 103, and if not, not needing to respond; if yes, the step of judging whether the response CANID corresponding to the request CANID exists in the preset CANID list or not is carried out.
It can be understood that the cands of different systems on the vehicle are different, and in the vehicle diagnosis process, not all the cands of the devices need to be responded one by one, at this time, whether the cands needing to be responded exist in the target data sent by the diagnostic apparatus can be judged through a preset configuration file, if yes, whether the devices exist in the vehicle is judged through a cand list, so that accurate data transmission and delay instructions are performed. Meanwhile, recorded in the list are a request cand and a corresponding response cand that require a delay.
In this embodiment, before determining whether the device is present in the vehicle based on the preset nid list, it is first determined, based on the configuration file, whether the requested nid in the target data has a nid that needs to be responded, so as to prevent a delay instruction from being performed on the nid that does not need to be responded in the target data, and ensure that an accurate delay instruction is sent to the diagnostic apparatus.
In another aspect of the embodiment of the present invention, there is provided a data transmission apparatus applied to a second electronic device, including:
a third data transmission module 201, configured to receive target data sent by the first electronic device, and send the target data to a data receiving device; and receiving response data fed back by the data receiving device based on the target data; and transmitting the response data to a first electronic device and an analysis module, so that the first electronic device transmits the response data to the data transmitting device; transmitting a response CANID sent by the analysis module to the first electronic equipment so that the first electronic equipment updates the CANID list according to the response CANID;
An analyzing module 202, configured to extract a reply nid corresponding to the request nid from the response data; traversing the existing response CANID, and judging whether the response CANID is the existing response CANID or not; if yes, the response CANID is not required to be transmitted; if not, the response CANID is sent to the third data transmission module.
In this embodiment, response data sent by a data receiving device based on target data is received, the response data is sent to a data sending device through a first electronic device, a response nid corresponding to the request nid is extracted from the response data, an existing response nid is traversed, and when the extracted response nid is not the existing response nid, the response nid is transmitted to the first electronic device, so that the first electronic device updates the nid list according to the response nid; therefore, the first electronic device can accurately send the delay instruction to the data sending device based on the CANID list, and the accuracy and the detection efficiency of the target data detection of the data sending device are improved.
In a possible implementation manner, in the data transmission apparatus described above, the third data transmission module 201 is further configured to: and receiving confirmation information fed back by the first electronic device after the list is updated, and sending the confirmation information to the analysis module 202, so that the analysis module 202 marks the response CANID as the existing response CANID according to the confirmation information.
In this embodiment, by receiving acknowledgement information sent by the first electronic device based on the reply cand, the currently sent reply cand is marked as an existing cand according to the acknowledgement information, so that in a transmission process of subsequent target data and response data, the corresponding reply cand is prevented from being repeatedly sent to the first electronic device, which causes redundancy of cand list data, and the contrast efficiency is improved.
In another aspect of the present invention, as shown in fig. 5, there is further provided an electronic device 300, including a processor 301, a network interface 302, and a memory 303, where the processor 301, the network interface 302, and the memory 303 are connected to each other, and the memory 303 is configured to store a computer program, where the computer program includes program instructions, and the processor 301 is configured to invoke the program instructions to execute the information recommendation method described above.
In an embodiment of the invention, the processor may be an integrated circuit chip having signal processing capabilities. The processor may be a general purpose processor, a digital signal processor (Digital Signal Processor, DSP for short), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC for short), a field programmable gate array (Field Programmable Gate Array, FPGA for short), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The processor reads the information in the storage medium and, in combination with its hardware, performs the steps of the above method.
In another aspect of the present invention, there is also provided a computer storage medium having stored therein program instructions for implementing the above-mentioned information recommendation method when executed by at least one processor.
In one possible implementation, the storage medium may be a memory, for example, a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memory.
The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable ROM (Electrically EPROM, EEPROM), or a flash Memory.
The volatile memory may be a random access memory (Random Access Memory, RAM for short) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (Double Data RateSDRAM), enhanced SDRAM (ESDRAM), synchronous DRAM (SLDRAM), and direct memory bus RAM (directracram, DRRAM).
The storage media described in embodiments of the present invention are intended to comprise, without being limited to, these and any other suitable types of memory.
It should be understood that the system disclosed in the present invention may be implemented in other manners. For example, the modules may be divided into only one logic function, and there may be other manners of dividing the modules when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted or not performed. Alternatively, the communication connection between the modules may be an indirect coupling or a communication connection through some interfaces, servers or units, and may be in electrical or other forms.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each module may exist alone physically, or two or more modules may be integrated in one processing unit. The integrated units may be implemented in hardware or in software functional units.
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 technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.

Claims (10)

1. A data transmission method applied to a first electronic device, comprising:
receiving target data sent by data sending equipment, and analyzing the target data to obtain a request CANID;
judging whether a response CANID corresponding to the request CANID exists in a preset CANID list or not; the CANID list stores a response CANID which is acquired by the second electronic equipment from the data receiving equipment and is sent to the first electronic equipment, and if the CANID list records a CANID corresponding to a certain system, the data receiving equipment is indicated to have the system; the CANIDs of different systems in the vehicle are different;
if yes, a delay instruction is sent to the data sending equipment, and the target data is sent to the second electronic equipment, so that the second electronic equipment sends the target data to the data receiving equipment;
if not, directly transmitting the target data to the second electronic equipment so that the second electronic equipment transmits the target data to the data receiving equipment; the CANID list stores the response CANID which is acquired by the second electronic device from the data receiving device and sent to the first electronic device;
The data transmission equipment is a diagnostic instrument, the data receiving equipment is a vehicle, and the first electronic equipment and the second electronic equipment are data transmission equipment for realizing the communication between the diagnostic instrument and the vehicle; if a certain system on the vehicle does not exist, the second electronic device does not necessarily receive the response CANID sent by the system, otherwise, if the second electronic device receives the corresponding response CANID, the system is indicated to exist certainly.
2. The data transmission method of claim 1, wherein the method further comprises:
receiving a response CANID acquired by the second electronic device from the data receiving device;
and updating the CANID list according to the response CANID, and feeding back confirmation information to the second electronic equipment after the list is updated.
3. The data transmission method of claim 1, further comprising, before said determining whether a reply nid corresponding to the requested nid exists in the preset nid list:
judging whether the request CANID has a corresponding response CANID or not based on a preset configuration file, and if not, not needing to respond; if yes, the step of judging whether the response CANID corresponding to the request CANID exists in the preset CANID list or not is carried out.
4. A data transmission method applied to a second electronic device for receiving target data sent by a first electronic device according to the data transmission method in claim 1, comprising:
receiving target data sent by first electronic equipment, and sending the target data to data receiving equipment;
receiving response data fed back by the data receiving device based on the target data; transmitting the response data to a first electronic device, so that the first electronic device transmits the response data to the data transmitting device;
extracting a response CANID corresponding to the request CANID from the response data;
traversing the existing response CANID, and judging whether the response CANID is the existing response CANID or not; if yes, the response CANID is not required to be transmitted to the first electronic equipment; if not, transmitting the response CANID to the first electronic equipment so that the first electronic equipment updates the CANID list according to the response CANID.
5. The data transmission method of claim 4, further comprising, after transmitting an answer cand to the first electronic device:
and receiving confirmation information fed back by the first electronic equipment after the list is updated, and marking the response CANID as the existing response CANID according to the confirmation information.
6. A data transmission apparatus, characterized by being applied to a first electronic device, comprising:
the first data transmission module is used for receiving target data sent by the data sending equipment and analyzing the target data to obtain a request CANID; and sending a delay instruction to the data sending equipment;
a judging module, configured to judge whether a preset nid list includes a response nid corresponding to the requested nid; if yes, a delay instruction is sent to the first data transmission module, the target data is sent to the second data transmission module, and if not, the target data is directly sent to the second data transmission module; the CANID list stores a response CANID which is acquired by the second electronic equipment from the data receiving equipment and is sent to the first electronic equipment, and if the CANID list records a CANID corresponding to a certain system, the data receiving equipment is indicated to have the system; the CANIDs of different systems in the vehicle are different;
a storage module, configured to store the cand list, where the cand list stores a response cand acquired by the second electronic device from the data receiving device and sent to the first electronic device;
The second data transmission module is used for transmitting the target data to the second electronic equipment so that the second electronic equipment can transmit the target data to the data receiving equipment;
the data transmission equipment is a diagnostic instrument, the data receiving equipment is a vehicle, and the first electronic equipment and the second electronic equipment are data transmission equipment for realizing the communication between the diagnostic instrument and the vehicle; if a certain system on the vehicle does not exist, the second electronic device does not necessarily receive the response CANID sent by the system, otherwise, if the second electronic device receives the corresponding response CANID, the system is indicated to exist certainly.
7. A data transmission apparatus applied to a second electronic device for receiving target data transmitted by a first electronic device according to the data transmission apparatus of claim 6, comprising:
the third data transmission module is used for receiving target data sent by the first electronic equipment and sending the target data to the data receiving equipment; and receiving response data fed back by the data receiving device based on the target data; and transmitting the response data to a first electronic device and an analysis module, so that the first electronic device transmits the response data to the data transmitting device; transmitting a response CANID sent by the analysis module to the first electronic equipment so that the first electronic equipment updates the CANID list according to the response CANID;
An analysis module, configured to extract a reply nid corresponding to the request nid from the response data; traversing the existing response CANID, and judging whether the response CANID is the existing response CANID or not; if yes, the response CANID is not required to be transmitted; if not, the response CANID is sent to the third data transmission module.
8. An electronic device comprising a processor, a network interface and a memory, the processor, the network interface and the memory being interconnected, wherein the memory is configured to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the data transmission method according to any of claims 1-3 or the data transmission method according to any of claims 4-5.
9. A computer storage medium having stored therein program instructions for implementing the data transmission method according to any one of claims 1 to 3 or the data transmission method according to any one of claims 4 to 5 when executed by at least one processor.
10. A data transmission system, comprising: the system comprises a first electronic device, a second electronic device, a data sending device and a data receiving device; the data transmission equipment is a diagnostic instrument, the data receiving equipment is a vehicle, and the first electronic equipment and the second electronic equipment are data transmission equipment for realizing the communication between the diagnostic instrument and the vehicle; if a certain system on the vehicle does not exist, the second electronic equipment does not receive the response CANID sent by the system, otherwise, if the second electronic equipment receives the corresponding response CANID, the system is indicated to exist certainly;
The first electronic equipment is in communication connection with the data sending equipment and the second electronic equipment; the second electronic device is used for communicating with the data receiving device;
the first electronic equipment receives target data sent by data sending equipment, and analyzes the target data to obtain a request CANID; judging whether a preset CANID list has a response CANID corresponding to the request CANID, if so, sending a delay instruction to the data sending equipment, and sending the target data to second electronic equipment; if not, directly transmitting the target data to second electronic equipment;
the second electronic equipment receives target data sent by the first electronic equipment and sends the target data to the data receiving equipment; receiving response data fed back by the data receiving device based on the target data; transmitting the response data to the first electronic device; extracting a response CANID corresponding to the request CANID from the response data; traversing the existing response CANID, and judging whether the response CANID is the existing response CANID or not; if yes, the response CANID is not required to be transmitted to the first electronic equipment; if not, transmitting the response CANID to the first electronic equipment; the CANID list stores a response CANID which is acquired by the second electronic equipment from the data receiving equipment and is sent to the first electronic equipment, and if the CANID list records a CANID corresponding to a certain system, the data receiving equipment is indicated to have the system; the CANIDs of different systems in the vehicle are different;
The first electronic equipment updates the CANID list according to the response CANID;
the first electronic device transmits the response data received from the second electronic device to the data transmitting device.
CN202210344370.1A 2022-04-02 2022-04-02 Data transmission method, device, electronic equipment, system and storage medium Active CN114615105B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210344370.1A CN114615105B (en) 2022-04-02 2022-04-02 Data transmission method, device, electronic equipment, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210344370.1A CN114615105B (en) 2022-04-02 2022-04-02 Data transmission method, device, electronic equipment, system and storage medium

Publications (2)

Publication Number Publication Date
CN114615105A CN114615105A (en) 2022-06-10
CN114615105B true CN114615105B (en) 2024-04-02

Family

ID=81867073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210344370.1A Active CN114615105B (en) 2022-04-02 2022-04-02 Data transmission method, device, electronic equipment, system and storage medium

Country Status (1)

Country Link
CN (1) CN114615105B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015179375A (en) * 2014-03-19 2015-10-08 株式会社デンソー Program rewrite system and electronic control unit
JP2015228622A (en) * 2014-06-02 2015-12-17 株式会社デンソー On-vehicle network system and on-vehicle relay device
WO2016017088A1 (en) * 2014-07-30 2016-02-04 株式会社デンソー Gateway device
CN107548504A (en) * 2015-04-10 2018-01-05 标致雪铁龙汽车股份有限公司 The method for implementing remotely to act in the electronic communication equipment of means of transport, and associated communicator
WO2019115311A1 (en) * 2017-12-15 2019-06-20 Volkswagen Aktiengesellschaft Method for providing information for the localization of errors in a communications network of an apparatus, correspondingly designed bus device station and vehicle
CN110162008A (en) * 2019-05-10 2019-08-23 中国汽车技术研究中心有限公司 A kind of new energy vehicle CAN bus analytic method
CN113703868A (en) * 2021-08-30 2021-11-26 深圳市元征软件开发有限公司 Vehicle diagnostic software configuration method, electronic device and readable storage medium
CN114253251A (en) * 2022-01-20 2022-03-29 深圳市元征科技股份有限公司 Vehicle remote diagnosis method and device, equipment connector and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2981028B1 (en) * 2014-07-28 2020-05-06 MyLaps B.V. Transponder module and access module for activating and configuring such transponder module over a CAN bus

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015179375A (en) * 2014-03-19 2015-10-08 株式会社デンソー Program rewrite system and electronic control unit
JP2015228622A (en) * 2014-06-02 2015-12-17 株式会社デンソー On-vehicle network system and on-vehicle relay device
WO2016017088A1 (en) * 2014-07-30 2016-02-04 株式会社デンソー Gateway device
CN107548504A (en) * 2015-04-10 2018-01-05 标致雪铁龙汽车股份有限公司 The method for implementing remotely to act in the electronic communication equipment of means of transport, and associated communicator
WO2019115311A1 (en) * 2017-12-15 2019-06-20 Volkswagen Aktiengesellschaft Method for providing information for the localization of errors in a communications network of an apparatus, correspondingly designed bus device station and vehicle
CN110162008A (en) * 2019-05-10 2019-08-23 中国汽车技术研究中心有限公司 A kind of new energy vehicle CAN bus analytic method
CN113703868A (en) * 2021-08-30 2021-11-26 深圳市元征软件开发有限公司 Vehicle diagnostic software configuration method, electronic device and readable storage medium
CN114253251A (en) * 2022-01-20 2022-03-29 深圳市元征科技股份有限公司 Vehicle remote diagnosis method and device, equipment connector and storage medium

Also Published As

Publication number Publication date
CN114615105A (en) 2022-06-10

Similar Documents

Publication Publication Date Title
US20210108943A1 (en) Map data updating method, apparatus, system and storage medium
US7493198B2 (en) Method and device for a vehicle-related telematics service
CN110324281B (en) Vehicle-mounted network controller refreshing system and method
US11715337B2 (en) Controller diagnostic device and method thereof
CN111224837B (en) Method and system for automatically identifying CAN communication baud rate of vehicle ECU
CN114615105B (en) Data transmission method, device, electronic equipment, system and storage medium
CN112596447B (en) Method and device for determining length of ECU (electronic control Unit) flash data, electronic equipment and medium
CN106775818B (en) ECU (electronic control Unit) upgrading method and ECU upgrading equipment based on CAN (controller area network) bus
CN115202323A (en) Service request management method and device for vehicle, vehicle and medium
CN113965447B (en) Online cloud diagnosis method, device, system, equipment and storage medium
CN112423284A (en) Zigbee equipment pairing method and device, gateway, electronic equipment and storage medium
CN111611134A (en) Time monitoring method and device, application terminal and storage medium
CN113852938A (en) Vehicle-mounted equipment communication method, vehicle-mounted equipment, storage medium and electronic device
CN110443090A (en) Compatible protocol radio-frequency identification method and device
US11431820B1 (en) Method and system for implementing inter-process communications
US20220006567A1 (en) Terminal, server, internet of things data transmission method, and data transmission system
CN111262766B (en) Method, device and system for transmitting multi-packet application message data
CN116233239B (en) Comment-based configured gateway registration method and system
CN117112048B (en) UDS Clinet Implementation Method Based on XML File
CN112615932B (en) Communication method based on vehicle bus and vehicle gateway equipment
CN110809250B (en) Method for communication between read-write terminal and N vehicle-mounted units and read-write terminal
US20230062868A1 (en) Communication apparatus and method having data transmission sorting mechanism
US20230208676A1 (en) Data communication method and apparatus, electronic device, and storage medium
CN116527649A (en) Automobile OTA upgrading breakpoint continuous transmission method, vehicle-mounted ECU and vehicle-mounted network terminal
CN116321113A (en) Bluetooth controller data updating and uploading method and storage medium

Legal Events

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