CN115695077A - Bus data receiving method and device, electronic equipment and storage medium - Google Patents

Bus data receiving method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115695077A
CN115695077A CN202211328253.2A CN202211328253A CN115695077A CN 115695077 A CN115695077 A CN 115695077A CN 202211328253 A CN202211328253 A CN 202211328253A CN 115695077 A CN115695077 A CN 115695077A
Authority
CN
China
Prior art keywords
data
bus
service data
target
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211328253.2A
Other languages
Chinese (zh)
Inventor
吕宇
张强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Geely Holding Group Co Ltd
Zhejiang Geely New Energy Commercial Vehicle Group Co Ltd
Zhejiang Remote Commercial Vehicle R&D Co Ltd
Original Assignee
Zhejiang Geely Holding Group Co Ltd
Zhejiang Geely New Energy Commercial Vehicle Group Co Ltd
Zhejiang Remote Commercial Vehicle R&D 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 Zhejiang Geely Holding Group Co Ltd, Zhejiang Geely New Energy Commercial Vehicle Group Co Ltd, Zhejiang Remote Commercial Vehicle R&D Co Ltd filed Critical Zhejiang Geely Holding Group Co Ltd
Priority to CN202211328253.2A priority Critical patent/CN115695077A/en
Publication of CN115695077A publication Critical patent/CN115695077A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The application discloses a bus data receiving method, a bus data receiving device, electronic equipment and a storage medium, and relates to the technical field of data transmission. In the application, a bus data storage request of a service data sender is received, and a target data transmission format of service data to be received is obtained from the bus data storage request; then, based on the corresponding relation between the preset data transmission format and the data buses, determining a target data bus corresponding to the target data transmission format from each data bus; and finally, receiving the service data to be received according to a data receiving mode set corresponding to the target data bus. By adopting the method, the technical defect that a data sender and a data receiver need to be matched with a specific bus for use in the data transmission process in the traditional mode is avoided, and the universality of bus data transmission is improved.

Description

Bus data receiving method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of data transmission technologies, and in particular, to a bus data receiving method and apparatus, an electronic device, and a storage medium.
Background
In recent years, with the rapid development of information technology application and innovation industry, online program updating has gradually become an important link meeting the requirements of latest data processing services; further, bus data transfer traffic for online program update based on bus data is also increasing.
For example, in daily life, in order to implement online program upgrade, a service data receiver may receive data satisfying service requirements from a service data transmitter through a specific bus, so as to perform program upgrade based on the obtained service data.
However, with the above data receiving method, the data sender and the data receiver need to be used in combination with a specific bus during data transmission, so that the data receiver can only receive data from the corresponding data sender.
Therefore, the generality of bus data transmission is reduced by adopting the mode.
Disclosure of Invention
The embodiment of the application provides a bus data transmission method and device, electronic equipment and a storage medium, which are used for improving the universality of bus data transmission.
In a first aspect, an embodiment of the present application provides a method for receiving bus data, where the method includes:
receiving a bus data storage request of a service data sender, and acquiring a target data transmission format of service data to be received from the bus data storage request; the service data to be received meets the corresponding service data requirement;
determining a target data bus corresponding to a target data transmission format from each data bus based on a corresponding relation between a preset data transmission format and the data bus; each data bus is used for transmitting service data in a corresponding data transmission format;
and receiving the service data to be received according to a data receiving mode set corresponding to the target data bus.
In a second aspect, an embodiment of the present application provides a bus data sending method, where the method includes:
acquiring service data to be transmitted and a target identifier of a target data bus; the target data bus is used for transmitting service data to be transmitted;
determining a target data transmission format of the service data which can be transmitted by the target data bus based on the target identification and the corresponding relation between the identification and the data transmission format;
performing data conversion on the service data to be transmitted based on the target data transmission format to obtain target service data;
sending the target service data to a corresponding service data receiver through a target data bus; the service data side is used for receiving service data transmitted through various data buses.
In a third aspect, an embodiment of the present application further provides a bus data receiving apparatus, where the apparatus includes:
the analysis module is used for receiving a bus data storage request of a service data sender and acquiring a target data transmission format of service data to be received from the bus data storage request; the service data to be received meets the corresponding service data requirement;
the determining module is used for determining a target data bus corresponding to a target data transmission format from each data bus based on the corresponding relation between the preset data transmission format and the data bus; each data bus is used for transmitting service data in a corresponding data transmission format;
and the receiving module is used for receiving the service data to be received according to the data receiving mode set corresponding to the target data bus.
In an alternative embodiment, before receiving the bus data storage request from the service data sender, the determining module is further configured to:
for each data bus, the following operations are performed:
acquiring a data bus type of a data bus;
determining data receiving configuration information set corresponding to the type of the data bus;
and determining a data receiving mode of the service data transmitted by one data bus based on the data receiving configuration information.
In an optional embodiment, after receiving the service data to be received according to a data receiving manner set in the corresponding target data bus, the receiving module is further configured to:
determining original service data matched with the data identification of the service data to be received from the original data cluster;
based on the service data to be received, performing data updating on the original service data to obtain corresponding updated service data;
and generating a corresponding data updating response message based on the data similarity between the updated service data and the service data to be received and the affiliated data similarity interval.
In an optional embodiment, in the process of performing data update on original service data based on service data to be received to obtain corresponding updated service data, the receiving module is further configured to:
inquiring the data updating state of the original service data according to a set state inquiring period;
and if the data updating state is determined to be an abnormal state based on the data diagnosis mode set corresponding to the target data bus, recording abnormal data updating information of the original service data, and generating a corresponding abnormal response message based on the abnormal data updating information.
In a fourth aspect, an embodiment of the present application further provides a bus data transmitting apparatus, where the apparatus includes:
the acquisition module is used for acquiring the service data to be transmitted and the target identification of the target data bus; the target data bus is used for transmitting the service data to be transmitted;
the matching module is used for determining a target data transmission format of the service data which can be transmitted by the target data bus based on the target identification and the corresponding relation between the identification and the data transmission format;
the conversion module is used for performing data conversion on the service data to be transmitted based on the target data transmission format to obtain target service data;
the sending module is used for sending the target service data to a corresponding service data receiver through a target data bus; the service data side is used for receiving service data transmitted through various data buses.
In a fifth aspect, an electronic device is provided, comprising: a processor, a memory; the memory storing computer instructions; the processor is configured to read the computer instructions and execute the method according to the first aspect or the second aspect.
In a sixth aspect, there is provided a computer-readable storage medium having stored thereon computer-executable instructions for causing a computer to perform the method of the first or second aspect.
In a seventh aspect, there is provided a computer program product which, when invoked by a computer, causes the computer to perform the method of the first or second aspect.
The beneficial effects of this application are as follows:
in the bus data receiving method provided by the embodiment of the application, a bus data storage request of a service data sender is received, and a target data transmission format of service data to be received is obtained from the bus data storage request; then, based on the corresponding relation between the preset data transmission format and the data buses, determining a target data bus corresponding to the target data transmission format from each data bus; and finally, receiving the service data to be received according to a data receiving mode set corresponding to the target data bus.
By adopting the method, the target data bus corresponding to the target data transmission format is determined from each data bus based on the corresponding relation between the preset data transmission format and the data bus, and the service data to be received is received according to the data receiving mode set corresponding to the target data bus, so that the technical defect that a data sender and a data receiver need to be matched with a specific bus for use in the data transmission process in the traditional mode is avoided, and the universality of bus data transmission is improved.
Furthermore, other features and advantages of the present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the present application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments will be briefly introduced below, and it is apparent that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings may be obtained according to the drawings without inventive labor. In the drawings:
fig. 1 is a schematic diagram illustrating an alternative application scenario applicable to the embodiment of the present application;
fig. 2 is a schematic flowchart illustrating a method for determining a data receiving manner of service data transmitted by a data bus according to an embodiment of the present application;
FIG. 3 is a logic diagram for determining a data bus type according to an embodiment of the present application;
fig. 4 is a schematic flowchart illustrating a method for receiving bus data according to an embodiment of the present application;
FIG. 5 is a logic diagram illustrating an example of determining a target data bus according to an embodiment of the present disclosure;
FIG. 6 is a logic diagram illustrating an example of data update provided by an embodiment of the present application;
fig. 7 is a schematic diagram illustrating a specific application scenario based on fig. 4 according to an embodiment of the present application;
fig. 8 is a schematic view illustrating an operation interface of a service data receiving party according to an embodiment of the present application;
fig. 9 is a schematic flowchart illustrating a method for transmitting bus data according to an embodiment of the present application;
fig. 10 is a schematic diagram illustrating a specific application scenario based on fig. 9 according to an embodiment of the present application;
fig. 11 is a schematic structural diagram schematically illustrating a bus data receiving apparatus according to an embodiment of the present application;
fig. 12 is a schematic structural diagram schematically illustrating a bus data transmitting apparatus according to an embodiment of the present application;
fig. 13 schematically shows a structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments, but not all embodiments, of the technical solutions of the present application. All other embodiments obtained by a person skilled in the art without any inventive step based on the embodiments described in the present application are within the scope of the protection of the present application.
It should be noted that "a plurality" is understood as "at least two" in the description of the present application. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. A is connected with B and can represent: a and B are directly connected and A and B are connected through C. In addition, in the description of the present application, the terms "first," "second," and the like are used for descriptive purposes only and are not intended to indicate or imply relative importance nor order to be construed.
In addition, in the technical scheme of the application, the data acquisition, transmission, use and the like meet the requirements of relevant national laws and regulations.
The following briefly introduces the design concept of the embodiments of the present application:
with the development of new energy automobile technology, automobile controllers (i.e. automobile body controllers) are developed and applied more and more widely, and the contents of changes are more and more, wherein in order to meet the business requirements of frequent updating, the updating of application programs (e.g. electronic control software) and calibration data is more and more frequent. Therefore, online program update has gradually become an important link for updating applications and calibration data.
At present, a boot loader module Bootloader based on a Universal Diagnostic Services (UDS) protocol is a mainstream automobile software updating method in the automobile industry, and is used for upgrading a software program or repairing a product Bug.
In the prior art, in order to implement online program upgrade, a service data receiver may receive data satisfying service requirements from a service data sender through a specific bus, so as to perform program upgrade based on the obtained service data.
For example, for various bus devices (e.g., kvaser, zhouchong, inca, cannon, pcan, vflash) on the market, a separate host computer or script for receiving service data needs to be developed, so as to perform subsequent operations such as flashing.
Therefore, the data sender and the data receiver need to be used in cooperation with a specific bus in the process of data transmission, so that the data receiver can only receive data from the corresponding data sender.
In view of this, in order to improve universality of bus data transmission, an embodiment of the present application provides a bus data transmission method, which specifically includes: receiving a bus data storage request of a service data sender, and acquiring a target data transmission format of service data to be received from the bus data storage request; then, based on the corresponding relation between the preset data transmission format and the data buses, determining a target data bus corresponding to the target data transmission format from each data bus; and finally, receiving the service data to be received according to a data receiving mode set corresponding to the target data bus.
In particular, preferred embodiments of the present application will be described below with reference to the accompanying drawings of the specification, it being understood that the preferred embodiments described herein are merely for illustrating and explaining the present application, and are not intended to limit the present application, and that the features of the embodiments and examples of the present application may be combined with each other without conflict.
Fig. 1 is a schematic diagram of an optional application scenario applicable to the embodiment of the present application, where the application scenario mainly includes: the system comprises a service data sender 101, bus equipment 102 and a service data receiver 103, wherein the service data sender 101 and the service data receiver 103 are connected through the bus equipment 102; in addition, the service data sender 101 and the service data receiver 103 can also perform information interaction through a communication network.
Illustratively, the service data sender 101 may communicate with the service data receiver 103 by accessing the network through a cellular Mobile communication technology, wherein the cellular Mobile communication technology includes a fifth Generation Mobile networks (5 g) technology.
Optionally, the service data sender 101 may access the network through a short-range Wireless communication mode to communicate with the service data receiver 103, where the short-range Wireless communication mode includes a Wireless Fidelity (Wi-Fi) technology.
It is understood that, in practical situations, the number of the service data receivers and the service data senders included in the application scenario may be any number specified, and this application does not limit this, and for convenience of understanding, in this embodiment of the application, the service data sender 101 and the service data receiver 103 are only taken as an example for description, and the foregoing devices and their respective functions are briefly described below.
A service data sender 101, configured to obtain service data to be transmitted and a target identifier of a target data bus, where the target data bus is used to transmit the service data to be transmitted; then, based on the target identification and the corresponding relation between the identification and the data transmission format, determining the target data transmission format of the service data which can be transmitted by the target data bus; further, based on the target data transmission format, performing data conversion on the service data to be transmitted to obtain target service data; and finally, sending the target service data to a corresponding service data receiver through a target data bus.
The bus device 102 includes a common communication trunk (i.e., bus) for transmitting information between the service data sender 101 and the service data receiver 103, wherein the bus is a transmission line bundle composed of wires, and can be divided into a data bus, an address bus, and a control bus according to the type of information to be transmitted.
In particular, in a computer system, a common path for transferring information between respective components is called a bus, and a microcomputer is connected to respective functional components in a bus structure.
It should be noted that, in the embodiment of the present application, the bus device 102 is used for service data transmission between the service data sender 101 and the service data receiver 103.
The service data receiving part 103 is configured to receive a bus data storage request of a service data sending part, and obtain a target data transmission format of service data to be received from the bus data storage request, where the service data to be received meets a preset service data requirement; further, based on the corresponding relationship between the preset data transmission format and the data buses, determining a target data bus corresponding to the target data transmission format from each data bus, wherein each data bus is used for transmitting the service data of the corresponding data transmission format; and finally, receiving the service data to be received according to a data receiving mode set corresponding to the target data bus.
The bus data receiving method provided by the exemplary embodiment of the present application is described below with reference to the above application scenarios and with reference to the drawings, it should be noted that the above application scenarios are only shown for the convenience of understanding the spirit and principles of the present application, and the embodiments of the present application are not limited in this respect.
It should be noted that before the service data receiving side receives the bus data storage request of the service data sending side, it needs to determine the data receiving manner of various data buses so as to receive the service data transmitted by various data buses (bus devices), and as shown in fig. 2, the executing main body takes the service data receiving side as an example, and for each data bus, the following operations are respectively executed:
s201: the data bus type of a data bus is obtained.
For example, referring to fig. 3, when step S201 is executed, the service data receiving side obtains each attribute feature of the data bus, and performs feature matching on each attribute feature by combining with a preset data bus type detection algorithm to obtain a corresponding feature matching result, so as to determine the data bus type of the data bus according to the feature matching result.
S202: and determining data receiving configuration information set corresponding to the type of the data bus.
Specifically, when step S202 is executed, after the service data receiving side acquires the data bus type of one data bus, the corresponding data receiving configuration information may be set based on the corresponding relationship between the data bus type and the data receiving configuration information, and taking 3 data buses of 3 data bus types as an example, the data bus type and the data receiving configuration information corresponding to each data bus are as shown in table 1:
TABLE 1
Data bus Data.Bus1 Data.Bus2 Data.Bus3
Data bus type Data.Bus.Type1 Data.Bus.Type2 Data.Bus.Type3
Data reception configuration information Rec.Con.Infor1 Rec.Con.Infor2 Rec.Con.Infor3
As can be seen from the above table, the service data receiver can determine the data receiving configuration information corresponding to each data bus based on the corresponding relationship between the data bus type and the data receiving configuration information. For example, taking the data bus data.bus1 as an example, after determining that the data bus type of the data bus data.bus1 is data.bus.type1, the service data receiving party may determine the data receiving configuration information rec.con.infor1 set corresponding to the data bus type data.bus.type1 based on the correspondence between the data bus type and the data receiving configuration information.
S203: and determining a data receiving mode of the service data transmitted by one data bus based on the data receiving configuration information.
Specifically, when step S203 is executed, after the service data receiving side obtains the data receiving configuration information corresponding to the one data bus, the service data receiving side may screen out the data receiving manner of the service data transmitted by the one data bus from the preset data receiving manners based on the data receiving configuration information.
Further, based on the foregoing pre-operation processing, after determining the respective data receiving mode of each data bus, the service data receiver may receive the service data from the service data sender, as shown in fig. 4, which is a flowchart of an implementation of a method for receiving bus data according to an embodiment of the present application, where the specific implementation flow of the method is as follows:
s401: and receiving a bus data storage request of a service data sender, and acquiring a target data transmission format of service data to be received from the bus data storage request.
Specifically, when step S401 is executed, the service data receiver may obtain a target data transmission format of the service data to be received from a bus data storage request sent by the service data sender, where the service data to be received is obtained by the service data sender based on a corresponding service data requirement.
Particularly, the service data receiver may store the request according to the received bus data corresponding to each of the plurality of service data senders, where the bus data storage request of each service data sender is different, that is, the adopted bus devices are different; then, after obtaining each bus data storage request, the data transmission format included in each bus data storage request can be obtained, taking 4 service data senders as an example, and the bus data storage request and the data transmission format corresponding to each service data sender are shown in table 2:
TABLE 2
Figure BDA0003912826240000101
As can be seen from the above table, the service data receiver can obtain the data transmission formats corresponding to the respective service data senders from the bus data storage requests sent by the respective service data senders. For example, taking a bus.data.sender2 as an example of a service data sender, after receiving a bus data storage request bus data.sto.re2 sent by the service data sender, a service data receiver may parse the bus data storage request bus data.sto.re2, thereby obtaining a corresponding data transmission format data.tra.format2.
S402: and determining a target data bus corresponding to the target data transmission format from each data bus based on the corresponding relation between the preset data transmission format and the data bus.
Specifically, as shown in fig. 5, in step S402, after the service data receiving side obtains the target data transmission format of the service data to be received, the service data receiving side may determine the target data transmission format of the service data to be received and the corresponding target data bus according to the relation comparison table between the data transmission format and the data bus, so as to ensure that the service data to be received can be received according to the corresponding data receiving manner.
For example, taking the target data transmission format of the service data to be received as data.tra.format2 as an example, based on the relationship comparison table between the data transmission format and the data bus, the target data bus corresponding to the target data format data.tra.format2 can be determined as data.bus2.
S403: and receiving the service data to be received according to a data receiving mode set corresponding to the target data bus.
Specifically, in step S403, after determining a target data bus corresponding to the target data transmission format, the service data receiving side may receive the service data to be received, which is sent by the service data sending side, through the target data bus.
It should be noted that, before sending the service data to be received, the service data sender needs to convert the data format of the service data to be transmitted into the target data transmission format of the service data that can be transmitted by the target data bus according to the target identifier of the target data bus and the corresponding relationship between the preset identifier and the data transmission format.
Further, referring to fig. 6, after receiving the service data to be received, the service data receiver may obtain the data identifier of the service data to be received, so as to determine the original service data matched with the data identifier of the service data to be received according to the original data cluster of the service data receiver itself, and further perform data update on the determined original service data according to the service data to be received, to obtain corresponding updated service data, so as to implement the write-over operation on the data transmitted by the data bus.
Then, after the service data receiver obtains the updated service data, the data similarity between the updated service data and the service data to be received can be obtained according to a preset data similarity matching algorithm, and then a corresponding data updating response message is generated according to a data similarity interval to which the data similarity belongs, so that when the service data receiver is determined to be in a flash, a corresponding message interface is displayed, and corresponding flash step information and failed effective information are obtained, thereby ensuring that the updating condition of the original service data can be reported in time.
In a possible implementation manner, in the process of performing data update on original service data based on service data to be received by a service data receiver to obtain updated service data, the data update state of the original service data may be queried according to a set state query period (e.g., 1 second); particularly, if the data update state is determined to be an abnormal state based on the data diagnosis mode set for the corresponding target data bus, the abnormal data update information of the original service data is recorded, and a corresponding abnormal response message is generated based on the abnormal data update information.
Based on the bus data receiving method, referring to fig. 7, which is a schematic view of a specific application scenario of the bus data receiving method provided in the embodiment of the present application, after the service data receiving side receives the bus data storage request busdata.sto.req 2 of the service data sending side, the target data transmission format data.tra.format2 of the service data to be received to.re.bus.data2 can be obtained from the obtained bus data storage request busdata.sto.req 2; next, based on Mapping1, which is a correspondence between a preset data transmission format and a data bus, determining a target data bus data.bus2 corresponding to the target data transmission format data.tra.format2 from each data bus (for example, data.bus1, data.bus2, and data.bus 3); and finally, receiving the service data to be received to the re.bus.data2 according to a data receiving mode data.Rece.Mode2 set corresponding to the target data bus data.Bus2.
In particular, referring to fig. 8, it is a schematic view of an operation interface of a service data receiving party according to the embodiment of the present application, and it can be known from the operation interface that the service data receiving party is compatible with various bus devices and displays corresponding information, so as to send a diagnostic command message and a replied diagnostic response on the interface; in addition, some basic or customized diagnostic functions (e.g., UDS and KWP 2000) are provided, as well as increased flash support for the bus protocols LIN, CAN, and CANFD.
In summary, in the bus data receiving method provided in the embodiment of the present application, a bus data storage request of a service data sender is received, and a target data transmission format of service data to be received is obtained from the bus data storage request; then, based on the corresponding relation between the preset data transmission format and the data buses, determining a target data bus corresponding to the target data transmission format from each data bus; and finally, receiving the service data to be received according to a data receiving mode set corresponding to the target data bus.
By adopting the method, the target data bus corresponding to the target data transmission format is determined from each data bus based on the corresponding relation between the preset data transmission format and the data bus, and the service data to be received is received according to the data receiving mode set corresponding to the target data bus, so that the technical defect that a data sender and a data receiver need to be matched with a specific bus for use in the data transmission process in the traditional mode is avoided, and the universality of bus data transmission is improved.
Optionally, based on the application scenario shown in fig. 1 and as shown in fig. 9, which is an implementation flowchart of a method for sending bus data provided in the embodiment of the present application, an execution subject takes a service data sender as an example, and a specific implementation flow of the method is as follows:
s901: and acquiring the service data to be transmitted and the target identification of the target data bus.
Specifically, when step S901 is executed, the service data sender may obtain the service data to be transmitted according to the current service data requirement; in addition, before the service data to be transmitted is triggered to be sent, the target identification of the target data bus for transmitting the service data to be transmitted can be obtained.
S902: and determining a target data transmission format of the service data which can be transmitted by the target data bus based on the target identification and the corresponding relation between the identification and the data transmission format.
Specifically, when executing step S902, after determining the target identifier of the target data bus, the service data sender determines a target identifier type interval to which the target identifier belongs; then, a target data transmission format of the service data that can be transmitted by the target data bus can be determined based on the target identification type interval and the corresponding relationship between the identification type interval and the data transmission format.
S903: and performing data conversion on the service data to be transmitted based on the target data transmission format to obtain the target service data.
Specifically, when step S903 is executed, after determining a target data transmission format of the service data that can be transmitted by the target data bus, the service data sender may perform data conversion on the service data to be transmitted according to the target data transmission format, so as to obtain the target service data.
S904: and sending the target service data to a corresponding service data receiver through a target data bus.
It should be noted that, when step S904 is executed, the service data sender sends a bus data storage request to the service data receiver in advance, so as to ensure that the service data receiver adapts to a proper data receiving manner before receiving the service data to be transmitted through the target data bus, thereby ensuring that the service data receiver can accurately receive the service data to be transmitted.
Based on the bus data transmission method, as shown in fig. 10, which is a specific application scenario diagram of the bus data transmission method provided in the embodiment of the present application, after the service data sender obtains the service data to be transmitted to tr.tr.bus.data 1 and the target identifier tar.id1 of the target data bus data.bus1, the target data transmission format data.tra.format1 of the service data that can be transmitted by the target data bus data.bus1 can be determined based on the target identifier tar.id1 and the Mapping2 that is the correspondence between the identifier and the data transmission format; further, based on a target data transmission format data.Tra.Format1, data conversion is performed on the to-be-transmitted service data to.Tr.Bus.Data1, so that corresponding target service data Tra.Bus.Data1 is obtained; finally, the obtained target service data tra.bus.data1 is sent to a corresponding service data receiver through a target data bus data.bus1, wherein the service data receiver is used for receiving the service data transmitted through various data buses.
In summary, in the bus data transmission method provided in the embodiment of the present application, service data to be transmitted and a target identifier of a target data bus are obtained, where the target data bus is used to transmit the service data to be transmitted; then, based on the target identification and the corresponding relation between the identification and the data transmission format, determining the target data transmission format of the service data which can be transmitted by the target data bus; further, based on the target data transmission format, performing data conversion on the service data to be transmitted to obtain target service data; finally, the target service data is sent to the corresponding service data receiver through the target data bus, the technical defect that a data sender and a data receiver need to be matched with a specific bus for use in the data transmission process in the traditional mode is avoided, and the universality of bus data transmission is improved.
Further, based on the same technical concept, the embodiment of the present application further provides a bus data receiving apparatus, where the bus data receiving apparatus is configured to implement the above-mentioned bus data receiving method process of the embodiment of the present application. Referring to fig. 11, the bus data receiving apparatus includes: an analysis module 1101, a determination module 1102 and a receiving module 1103, wherein:
the analysis module 1101 is configured to receive a bus data storage request of a service data sender, and obtain a target data transmission format of service data to be received from the bus data storage request; the service data to be received meets the corresponding service data requirement;
a determining module 1102, configured to determine, from each data bus, a target data bus corresponding to a target data transmission format based on a correspondence between a preset data transmission format and the data bus; each data bus is used for transmitting service data in a corresponding data transmission format;
a receiving module 1103, configured to receive service data to be received according to a data receiving manner set in the corresponding target data bus.
In an alternative embodiment, before receiving the bus data storage request from the service data sender, the determining module 1102 is further configured to:
for each data bus, the following operations are performed:
acquiring a data bus type of a data bus;
determining data receiving configuration information set corresponding to the type of the data bus;
and determining a data receiving mode of the service data transmitted by one data bus based on the data receiving configuration information.
In an optional embodiment, after receiving service data to be received according to a data receiving manner set in a corresponding target data bus, the receiving module 1103 is further configured to:
determining original service data matched with the data identification of the service data to be received from the original data cluster;
based on the service data to be received, data updating is carried out on the original service data to obtain corresponding updated service data;
and generating a corresponding data updating response message based on the data similarity between the updating service data and the service data to be received and the belonged data similarity interval.
In an optional embodiment, in the process of performing data update on original service data based on service data to be received to obtain corresponding updated service data, the receiving module 1103 is further configured to:
inquiring the data updating state of the original service data according to a set state inquiring period;
if the data updating state is determined to be an abnormal state based on the data diagnosis mode set corresponding to the target data bus, abnormal data updating information of the original service data is recorded, and a corresponding abnormal response message is generated based on the abnormal data updating information.
Fig. 12 is a schematic structural diagram of a bus data transmitting device according to an embodiment of the present disclosure. As shown in fig. 12, the bus data transmission device includes: an obtaining module 1201, a matching module 1202, a converting module 1203 and a sending module 1204, wherein:
an obtaining module 1201, configured to obtain service data to be transmitted and a target identifier of a target data bus; the target data bus is used for transmitting the service data to be transmitted;
a matching module 1202, configured to determine, based on the target identifier and a corresponding relationship between the identifier and the data transmission format, a target data transmission format of the service data that can be transmitted by the target data bus;
a conversion module 1203, configured to perform data conversion on the service data to be transmitted based on the target data transmission format, to obtain target service data;
a sending module 1204, configured to send the target service data to a corresponding service data receiving side through the target data bus.
Based on the same technical concept, the embodiment of the present application further provides an electronic device, and the electronic device can implement the bus data receiving method or the bus data sending method flow provided by the above embodiments of the present application. In one embodiment, the electronic device may be a server, a terminal device, or other electronic device. As shown in fig. 13, the electronic device may include:
at least one processor 1301 and a memory 1302 connected to the at least one processor 1301, in this embodiment, a specific connection medium between the processor 1301 and the memory 1302 is not limited, and fig. 13 illustrates an example in which the processor 1301 and the memory 1302 are connected through a bus 1300. The bus 1300 is shown by a thick line in fig. 13, and the connection manner between other components is merely illustrative and not limited thereto. The bus 1300 may be divided into an address bus, a data bus, a control bus, etc., and only one thick line is shown in fig. 13 for convenience of illustration, but does not indicate only one bus or one type of bus. Alternatively, processor 1301 can also be referred to as a controller, without limitation to name.
In the embodiment of the present application, the memory 1302 stores instructions executable by the at least one processor 1301, and the at least one processor 1301 may execute the instructions stored in the memory 1302 to perform a bus data receiving method or a bus data transmitting method as discussed above. The processor 1301 may implement the functions of the respective modules in the apparatuses illustrated in fig. 11 or fig. 12.
The processor 1301 is a control center of the apparatus, and may connect various parts of the entire control device through various interfaces and lines, and perform various functions and process data of the apparatus by executing or executing instructions stored in the memory 1302 and calling data stored in the memory 1302, thereby performing overall monitoring of the apparatus.
In one possible design, processor 1301 may include one or more processing units and processor 1301 may integrate an application processor, which primarily handles wireless communications, such as operating systems, user interfaces, and applications, and a modem processor, which primarily handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 1301. In some embodiments, processor 1301 and memory 1302 may be implemented on the same chip, or in some embodiments, they may be implemented separately on separate chips.
The processor 1301 may be a general-purpose processor, such as a CPU, digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like, that may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a bus data receiving method or a bus data sending method disclosed in the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
Memory 1302, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory 1302 may include at least one type of storage medium, which may include, for example, a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charged Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and so on. The memory 1302 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 1302 in the embodiments of the present application may also be circuitry or any other device capable of performing a storage function for storing program instructions and/or data.
By programming the processor 1301, the code corresponding to the bus data receiving method or the bus data sending method described in the foregoing embodiment may be solidified in the chip, so that the chip can execute the steps of the bus data receiving method in the embodiment shown in fig. 4 or the steps of the bus data sending method in the embodiment shown in fig. 9 when running. How processor 1301 is programmed is well known to those skilled in the art and will not be described in further detail herein.
Based on the same inventive concept, embodiments of the present application further provide a storage medium storing computer instructions, which when executed on a computer, cause the computer to execute a bus data receiving method or a bus data transmitting method as discussed above.
In some possible embodiments, the present application provides that various aspects of a bus data receiving method or a bus data transmitting method may also be implemented in the form of a program product comprising program code for causing a control device to perform the steps in a bus data receiving method or a bus data transmitting method according to various exemplary embodiments of the present application described above in this specification, when the program product is run on an apparatus.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

Claims (12)

1. A bus data receiving method, comprising:
receiving a bus data storage request of a service data sender, and acquiring a target data transmission format of the service data to be received from the bus data storage request; the service data to be received meets the corresponding service data requirement;
determining a target data bus corresponding to the target data transmission format from each data bus based on the corresponding relation between the preset data transmission format and the data bus; each data bus is used for transmitting service data in a corresponding data transmission format;
and receiving the service data to be received according to a data receiving mode set corresponding to the target data bus.
2. The method of claim 1, wherein before receiving the bus data store request from the service data sender, the method further comprises:
for each data bus, respectively performing the following operations:
acquiring a data bus type of a data bus;
determining data receiving configuration information set corresponding to the data bus type;
and determining a data receiving mode of the service data transmitted by the data bus based on the data receiving configuration information.
3. The method as claimed in claim 1, wherein after receiving the service data to be received according to the data receiving mode set corresponding to the target data bus, the method further comprises:
determining original service data matched with the data identification of the service data to be received from an original data cluster;
based on the service data to be received, performing data updating on the original service data to obtain corresponding updated service data;
and generating a corresponding data updating response message based on the data similarity between the updated service data and the service data to be received and the affiliated data similarity interval.
4. The method according to any one of claims 1 to 3, wherein in the process of performing data update on the original service data based on the service data to be received and obtaining corresponding updated service data, the method further comprises:
inquiring a target data bus according to a set state, and inquiring a data updating state of the original service data;
if the data updating state is determined to be an abnormal state based on a data diagnosis mode set corresponding to the target data bus, recording abnormal data updating information of the original service data, and generating a corresponding abnormal response message based on the abnormal data updating information.
5. A method for transmitting bus data, comprising:
acquiring service data to be transmitted and a target identifier of a target data bus; the target data bus is used for transmitting the service data to be transmitted;
determining a target data transmission format of the service data which can be transmitted by the target data bus based on the target identification and the corresponding relation between the identification and the data transmission format;
performing data conversion on the service data to be transmitted based on the target data transmission format to obtain target service data;
sending the target service data to a corresponding service data receiver through the target data bus; the service data side is used for receiving service data transmitted through various data buses.
6. A bus data receiving apparatus, comprising:
the analysis module is used for receiving a bus data storage request of a service data sender and acquiring a target data transmission format of the service data to be received from the bus data storage request; the service data to be received meets the corresponding service data requirement;
the determining module is used for determining a target data bus corresponding to the target data transmission format from each data bus based on the corresponding relation between the preset data transmission format and the data bus; each data bus is used for transmitting service data in a corresponding data transmission format;
and the receiving module is used for receiving the service data to be received according to a data receiving mode set corresponding to the target data bus.
7. The apparatus of claim 6, wherein prior to said receiving a bus data store request from a traffic data sender, said determining module is further configured to:
for each data bus, respectively performing the following operations:
acquiring a data bus type of a data bus;
determining data receiving configuration information set corresponding to the data bus type;
and determining a data receiving mode of the service data transmitted by the data bus based on the data receiving configuration information.
8. The apparatus as claimed in claim 6, wherein after receiving the service data to be received according to the data receiving manner set corresponding to the target data bus, the receiving module is further configured to:
determining original service data matched with the data identification of the service data to be received from an original data cluster;
based on the service data to be received, performing data updating on the original service data to obtain corresponding updated service data;
and generating a corresponding data updating response message based on the data similarity between the updating service data and the service data to be received and the belonged data similarity interval.
9. The apparatus of any one of claims 6 to 8, wherein in the process of performing data update on the original service data based on the service data to be received to obtain corresponding updated service data, the receiving module is further configured to:
inquiring the data updating state of the original service data according to a set state inquiring period;
if the data updating state is determined to be an abnormal state based on a data diagnosis mode set corresponding to the target data bus, recording abnormal data updating information of the original service data, and generating a corresponding abnormal response message based on the abnormal data updating information.
10. A bus data transmission device, comprising:
the acquisition module is used for acquiring the service data to be transmitted and the target identification of the target data bus; the target data bus is used for transmitting the service data to be transmitted;
the matching module is used for determining a target data transmission format of the service data which can be transmitted by the target data bus based on the target identification and the corresponding relation between the identification and the data transmission format;
the conversion module is used for carrying out data conversion on the service data to be transmitted based on the target data transmission format to obtain target service data;
the sending module is used for sending the target service data to a corresponding service data receiver through the target data bus; the service data side is used for receiving service data transmitted through various data buses.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-5 when executing the computer program.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN202211328253.2A 2022-10-27 2022-10-27 Bus data receiving method and device, electronic equipment and storage medium Pending CN115695077A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211328253.2A CN115695077A (en) 2022-10-27 2022-10-27 Bus data receiving method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211328253.2A CN115695077A (en) 2022-10-27 2022-10-27 Bus data receiving method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115695077A true CN115695077A (en) 2023-02-03

Family

ID=85100117

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211328253.2A Pending CN115695077A (en) 2022-10-27 2022-10-27 Bus data receiving method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115695077A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116436723A (en) * 2023-06-13 2023-07-14 北京集度科技有限公司 Bus identification method, bus determination method, bus execution method and related devices

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116436723A (en) * 2023-06-13 2023-07-14 北京集度科技有限公司 Bus identification method, bus determination method, bus execution method and related devices
CN116436723B (en) * 2023-06-13 2023-09-01 北京集度科技有限公司 Bus identification method, bus determination method, bus execution method and related devices

Similar Documents

Publication Publication Date Title
US20210108943A1 (en) Map data updating method, apparatus, system and storage medium
CN102255887A (en) Method and system for providing online services corresponding to multiple mobile devices
CN113127168A (en) Service distribution method, system, device, server and medium
CN103744672A (en) Service data obtaining method, mobile terminal, server and data providing system
CN111464419A (en) Data transmission control method based on bus network communication
CN115695077A (en) Bus data receiving method and device, electronic equipment and storage medium
CN111224837B (en) Method and system for automatically identifying CAN communication baud rate of vehicle ECU
CN110912805B (en) Message reading state synchronization method, terminal, server and system
CN114553373A (en) Data transmission method, device, equipment and storage medium
CN106775818B (en) ECU (electronic control Unit) upgrading method and ECU upgrading equipment based on CAN (controller area network) bus
CN112422485B (en) Communication method and device of transmission control protocol
CN115335803A (en) Equipment upgrading method, intelligent equipment and computer readable storage medium
CN111200519A (en) Data processing method and device, BBU, access network equipment and storage medium
CN105704210A (en) Charging pile information updating method and system
CN115277671A (en) OTA (over the air) upgrading method and device for vehicle, vehicle and storage medium
CN112637821B (en) Management platform and management method of vehicle communication chip and vehicle communication management system
CN110401934A (en) A kind of method of management equipment, management equipment and computer readable storage medium
CN113794751A (en) Data interaction method, system, equipment and storage medium of Internet of things system
CN112468562A (en) Vehicle-mounted terminal file sending and upgrading method, device and storage medium
CN112566082B (en) Data transmission method, device, equipment and medium
CN114615105B (en) Data transmission method, device, electronic equipment, system and storage medium
CN104660403A (en) Equipment authorization method and server
CN108710495A (en) Electronic tag method for updating program, electronic tag and storage medium
CN114189384B (en) Service processing method, device, equipment and storage medium
US11611867B2 (en) VSIM module for portable apparatus

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