CN113094007A - Data transmission method, data transmission unit and data transmission system - Google Patents

Data transmission method, data transmission unit and data transmission system Download PDF

Info

Publication number
CN113094007A
CN113094007A CN202010023324.2A CN202010023324A CN113094007A CN 113094007 A CN113094007 A CN 113094007A CN 202010023324 A CN202010023324 A CN 202010023324A CN 113094007 A CN113094007 A CN 113094007A
Authority
CN
China
Prior art keywords
data
current moment
moment
effective information
current
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
CN202010023324.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.)
Shanghai OFilm Smart Car Technology Co Ltd
Original Assignee
Shanghai OFilm Smart Car 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 Shanghai OFilm Smart Car Technology Co Ltd filed Critical Shanghai OFilm Smart Car Technology Co Ltd
Priority to CN202010023324.2A priority Critical patent/CN113094007A/en
Publication of CN113094007A publication Critical patent/CN113094007A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The application discloses a data transmission method, a data transmission unit and a data transmission system, wherein the data transmission method comprises the following steps: and acquiring bottom layer data or simulation data at the current moment at every other threshold moment to serve as the acquisition data at the current moment. And judging whether the acquired data at the current moment is changed. If the acquired data at the current moment is not changed, finishing the data transmission and waiting for the next threshold moment; and if the collected data at the current moment is changed, judging whether the collected data at the current moment is standard data or not. If the collected data at the current moment is standard data, acquiring a data value and a unit value of the collected data at the current moment as effective information at the current moment; if the collected data at the current moment is non-standard data, the effective information at the current moment is an identifier capable of indicating that the collected data at the current moment is non-standard data.

Description

Data transmission method, data transmission unit and data transmission system
Technical Field
The present application relates to the field of data transmission technologies, and in particular, to a data transmission method, a data transmission unit, and a data transmission system.
Background
In hardware equipment with high control requirements, a human-computer interface is generally required to display relevant data such as state data, test data and operation data in the operation process of the hardware equipment in real time. Currently, the development of the human-computer interface generally updates related data by a display page after determining that a value of a data interface at a bottom layer is changed.
However, when different display pages include the display function of the same item of data, developers need to write the same code in the display logic of each display page, which increases the workload. Furthermore, when a new project is developed, the code of the original display logic becomes complicated in the migration process due to the change in the display page layout.
Disclosure of Invention
To solve the foregoing problems, an embodiment of the present invention provides a data transmission method, a data transmission unit, and a data transmission system, so as to solve the problem that, in the prior art, when a new project is developed, the original code of the display logic becomes complicated in the migration process due to the change of the display page layout.
In a first aspect, an embodiment of the present application provides a data transmission method, where the data transmission method includes: acquiring bottom layer data or simulation data at the current moment at every other threshold moment as acquisition data at the current moment; judging whether the collected data at the current moment is changed or not; if the collected data at the current moment is changed, judging whether the collected data at the current moment is standard data or not; if the collected data at the current moment is standard data, acquiring a data value and a unit value of the collected data at the current moment as effective information at the current moment; and if the acquired data at the current moment is the non-standard data, taking an identifier which can represent that the acquired data at the current moment is the non-standard data as effective information at the current moment.
In an embodiment, the step of "determining whether the collected data at the current time is changed" includes: judging whether the acquired data at the current moment is the same as the acquired data at the adjacent previous threshold moment; if the acquired data at the current moment is the same as the acquired data at the adjacent previous threshold moment, judging that the acquired data at the current moment is not changed; and if the acquired data at the current moment is different from the acquired data at the adjacent last threshold moment, judging that the acquired data at the current moment is changed. Therefore, the data transmission method can judge whether the collected data at the current moment are changed or not, and the next operation can be carried out according to the change.
In an embodiment, the step of determining whether the collected data at the current time is normative data includes: judging whether the acquired data at the current moment conforms to a set data format and a value range; if the acquired data at the current moment conforms to the set data format and value range, judging the acquired data at the current moment to be standard data; and if the acquired data at the current moment do not accord with the set data format and value range, judging the acquired data at the current moment to be non-standard data. Therefore, the data transmission method can judge whether the acquired data at the current moment is standard data or not, and further operation can be carried out according to the standard data.
In one embodiment, the data transmission method further includes: judging whether the effective information at the current moment is changed or not; if the effective information at the current moment is not changed, finishing the data transmission and waiting for the next threshold moment; and if the effective information at the current moment is changed, saving the effective information at the current moment. Therefore, the data transmission method can better process the effective information at the current moment.
In an embodiment, the step of determining whether the valid information at the current time is changed includes: judging whether the effective information at the current moment is the same as the effective information at the adjacent previous threshold moment; if the effective information at the current moment is the same as the effective information at the adjacent previous threshold moment, judging that the effective information at the current moment is not changed; and if the effective information at the current moment is different from the effective information at the adjacent last threshold moment, judging that the effective information at the current moment is changed. Therefore, the data transmission method can judge whether the effective information at the current moment is changed, so that the next operation can be carried out according to the change.
In a second aspect, an embodiment of the present application provides a data transmission unit, including: the data acquisition unit is used for receiving bottom layer data in a bottom layer device at the current moment or simulation data in a simulation device at every other threshold moment as the acquisition data at the current moment, judging whether the acquisition data at the current moment is changed or not, and transmitting the acquisition data at the current moment to the effective information acquisition unit if the acquisition data at the current moment is changed; the effective information acquisition unit is used for receiving the changed acquired data at the current moment; the effective information obtaining unit is further configured to determine whether the collected data at the current time is standard data, obtain a data value and a unit value of the collected data at the current time as effective information at the current time if the collected data at the current time is standard data, and use an identifier that can indicate that the collected data at the current time is non-standard data as the effective information at the current time if the collected data at the current time is non-standard data.
In one embodiment, the data acquisition unit is further configured to determine whether the data acquired at the current time is the same as the data acquired at the previous adjacent threshold time; if the acquired data at the current moment is the same as the acquired data at the adjacent previous threshold moment, judging that the acquired data at the current moment is not changed; and if the acquired data at the current moment is different from the acquired data at the adjacent last threshold moment, judging that the acquired data at the current moment is changed. Therefore, the data acquisition unit in the data transmission unit can judge whether the acquired data at the current moment is changed, so that the next operation can be performed according to the change.
In one embodiment, the valid information obtaining unit is further configured to determine whether the collected data at the current time conforms to a set data format and a set value range; if the acquired data at the current moment conforms to the set data format and value range, judging the acquired data at the current moment to be standard data; and if the acquired data at the current moment do not accord with the set data format and value range, judging the acquired data at the current moment to be non-standard data. Therefore, the effective information acquisition unit in the data output unit can judge whether the acquired data at the current moment is standard data, so that the content of the effective information at the current moment can be determined according to the standard data, and the next operation can be carried out.
In one embodiment, the data transmission unit further includes: and the interface unit is used for receiving the effective information at the current moment, judging whether the effective information at the current moment is changed or not, and if the effective information at the current moment is changed, storing the effective information at the current moment. Therefore, the interface unit in the data transmission unit can better process the effective information at the current moment.
In an embodiment, the interface unit is further configured to determine whether the valid information at the current time is the same as the valid information at the previous threshold time; if the effective information at the current moment is the same as the effective information at the adjacent previous threshold moment, judging that the effective information at the current moment is not changed; and if the effective information at the current moment is different from the effective information at the adjacent last threshold moment, judging that the effective information at the current moment is changed. Therefore, the interface unit in the data transmission unit can judge whether the valid information at the current moment changes, and the next operation can be carried out according to the change.
In a third aspect, an embodiment of the present application provides a data transmission system, which includes the foregoing data transmission units, where the number of the data transmission units is the same as that of the functional units in the underlying device.
Compared with the prior art, the data transmission method provided by the embodiment of the invention can be used for retaining the changed bottom layer data or simulation data to wait for reading of the display page after the data transmission system and the bottom layer device or simulation device are started. By means of the method, when the same data is used for multiple times, the display page only needs to read the reserved data, and does not need to acquire the bottom layer data or the simulation data again every time, so that repeated use of codes in the same project is avoided. Meanwhile, by means of the method, when a new project is designed, only the layout of the display page needs to be redesigned, and the original method and the original system only need to be modified a little, so that the reusability of codes in different projects is improved, and the working efficiency is improved. In addition, the addition of the simulation data can simulate the input of data when no bottom layer device exists, and the debugging and problem positioning are facilitated.
Drawings
The technical solution and other advantages of the present invention will become apparent from the following detailed description of specific embodiments of the present invention with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a data transmission method according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a display system according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a human-machine interface of the display system shown in FIG. 2;
fig. 4 is a schematic structural diagram of a data transmission unit in the data transmission system shown in fig. 3.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following description of the various embodiments refers to the accompanying drawings that illustrate specific embodiments in which the invention may be practiced. Directional phrases used in this disclosure, such as, for example, "upper," "lower," "front," "rear," "left," "right," "inner," "outer," "side," and the like, refer only to the orientation of the appended drawings and are, therefore, used herein for better and clearer illustration and understanding of the invention, and do not indicate or imply that the device or element so referred to must have a particular orientation, be constructed and operated in a particular orientation, and are therefore not to be considered limiting of the invention.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as being fixedly connected, detachably connected, or integrally connected; may be a mechanical connection; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art. It should be noted that the terms "first", "second", and the like in the description and claims of the present application and in the drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions.
The data transmission method, the data transmission unit and the data transmission system of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a data transmission method according to an embodiment of the present invention. In the embodiment of the present invention, the data transmission method is applied to page display of a human-computer interface and data transmission of a bottom layer device or a simulation device, and may also be applied to other devices. The bottom layer device is used for sensing a real external environment and obtaining related sensing data. The simulation device is used for simulating an external environment and obtaining related simulation data. The human-computer interface is used for displaying data change of the bottom layer device and receiving control instructions input from the outside.
As shown in fig. 1, the data transmission method may include at least the following steps:
in the embodiment of the invention, after a human-computer interface and a bottom layer device or other devices capable of executing the data transmission method are powered on and receive a starting instruction, a data transmission system and the bottom layer device start an Enable (Enable).
S101, acquiring bottom layer data or simulation data at the current moment at intervals of a threshold value moment to serve as collected data.
In the embodiment of the invention, the bottom layer data or the simulation data at the current moment is extracted at intervals of a threshold moment and is used as the acquisition data at the current moment.
In the embodiment of the invention, the bottom layer data is used for monitoring the running state of the bottom layer device, namely the running state of the bottom layer device can be known through the bottom layer data.
In the embodiment of the invention, the simulation data is used for debugging equipment and positioning the equipment when the equipment has problems, namely, the equipment can be debugged and positioned by inputting the simulation data.
In the embodiment of the present invention, the adopted threshold time is 1 minute, and the threshold time may also be changed according to actual needs, which is not limited in the embodiment of the present invention.
And S102, judging whether the collected data at the current moment is changed.
In the embodiment of the invention, whether the acquired data at the current moment is changed or not is judged by comparing whether the acquired data at the current moment is the same as the acquired data at the adjacent previous threshold moment or not.
And if the acquired data at the current moment is the same as the acquired data at the adjacent previous threshold moment, judging that the acquired data at the current moment is not changed, and finishing the data transmission until the next threshold moment.
If the data collected at the current time is different from the data collected at the previous threshold time, it is determined that the data collected at the current time has changed, and step S103 is executed.
S103, judging whether the collected data at the current moment is standard data.
In the embodiment of the invention, after the change of the acquired data at the current moment is determined, whether the acquired data at the current moment is standard data or not is judged again, namely whether the acquired data at the current moment conforms to the preset data format and value range or not is judged.
In the embodiment of the invention, the standard data is data with a specific data format and a value range defined. Taking the rotation speed of the wheel as an example, the data format of the standard data is data value + unit value, the value range of the standard data is 0-500, and the data format and the value range of the standard data can also be set according to actual needs, which is not limited in the embodiment of the invention.
If the collected data at the current moment conforms to the preset data format and value range, judging that the collected data at the current moment is standard data, and executing the step S104.
If the collected data at the current moment does not conform to the preset data format and value range, judging that the collected data at the current moment is non-standard data, and executing the step S105.
And S104, acquiring the data value and the unit value of the acquired data at the current moment as effective information at the current moment.
In the embodiment of the present invention, after the data collected at the current time is determined to be the standard data, the data value and the unit value of the data collected at the current time are obtained as the valid information of the current time, and then step S106 is executed.
In the embodiment of the present invention, the data value refers to a number in the collected data at the current time, and the unit value refers to a measurement unit in the collected data at the current time. For example, when the underlying data or the simulation data can be normally transmitted and the acquired data at the current time is 5km/h, the data value of the acquired data at the current time is 5, the unit value of the acquired data at the current time is km/h, and when the valid information at the current time is the data value and the unit value, that is, the valid information at the current time is 5 km/h.
And S105, taking the mark which can show that the collected data at the current moment is irregular data as effective information at the current moment.
In the embodiment of the present invention, after it is determined that the collected data at the current time is the non-standard data, the identifier indicating that the collected data at the current time is the non-standard data is used as the valid information at the current time, and then step S106 is executed.
In the embodiment of the invention, when the underlying data or the simulation data do not conform to the preset data format and value range due to signal interference or other factors, the data value and the unit value are both null, and the effective information at the current moment is "- - - -", "Err" or other marks to indicate that the acquired data at the current moment is non-standard data.
And S106, judging whether the effective information at the current moment is changed.
In the embodiment of the invention, whether the effective information is changed or not is judged by comparing whether the effective information at the current moment is the same as the effective information at the adjacent previous threshold moment or not.
If the effective information at the current moment is the same as the effective information at the adjacent previous threshold moment, judging that the effective information at the current moment is not changed, and ending the data transmission until the next threshold moment.
If the valid information at the current time is different from the valid information at the immediately preceding threshold time, it is determined that the valid information at the current time has changed, and step S107 is executed.
And S107, saving the effective information of the current time.
In the embodiment of the invention, after the effective information at the current moment is determined to be changed, the effective information at the previous threshold moment is erased, and the effective information at the current moment is reserved to wait for the display page to read the effective information.
In the embodiment of the invention, after the data transmission system and the bottom layer device or the simulation device are started, the bottom layer data and the simulation data at the current moment are acquired at intervals of a threshold moment and are used as the acquired data at the current moment, and whether the acquired data at the current moment are changed or not is judged by comparing whether the acquired data at the current moment are the same as the acquired data at the adjacent previous threshold moment or not. If the acquired data at the current moment is the same as the acquired data at the adjacent previous threshold moment, judging that the acquired data at the current moment is not changed, and finishing the data transmission until the next threshold moment comes; and if the acquired data at the current moment is different from the acquired data at the adjacent previous threshold moment, judging that the acquired data at the current moment is changed, and judging whether the acquired data at the current moment is standard data again. If the acquired data at the current moment is standard data, acquiring a data value and a unit value of the acquired data at the current moment as effective information at the current moment; and if the acquired data at the current moment is the non-standard data, taking an identifier which can represent that the acquired data at the current moment is the non-standard data as the effective information at the current moment. After the valid information at the current time is obtained, whether the valid information is changed or not is judged by comparing whether the valid information at the current time is the same as the valid information at the previous threshold time. If the effective information at the current moment is the same as the effective information at the adjacent previous threshold moment, judging that the effective information at the current moment is not changed, and ending the data transmission until the next threshold moment comes; if the effective information at the current moment is different from the effective information at the adjacent previous threshold moment, the effective information at the current moment is judged to be changed, the effective information at the previous threshold moment is erased, and the effective information at the current moment is retained to wait for the display page to read the effective information.
Therefore, the data transmission method provided by the embodiment of the invention can be used for retaining the changed bottom layer data or simulation data to wait for reading of the display page after the data transmission system and the bottom layer device or simulation device are started. By means of the method, when the same data is used for multiple times, the display page only needs to read the reserved data, and does not need to acquire the bottom layer data or the simulation data again every time, so that repeated use of codes in the same project is avoided. Meanwhile, by means of the method, when a new project is designed, only the layout of the display page needs to be redesigned, the original method and the original system can meet the development of the new project only through little modification, the reusability of codes in different projects is improved, and the working efficiency is improved. In addition, the adding of the simulation data can be used for debugging the equipment and positioning the equipment in a problem when the equipment has a problem.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a display system according to an embodiment of the disclosure. As shown in fig. 2, the display system 10 includes a human-machine interface 100, a control device 200, and a bottom device 300, wherein the human-machine interface 100 is electrically connected to the control device 200 and the bottom device 300.
The display system 10 monitors and controls the external devices through the cooperation of the human-machine interface 100, the control device 200 and the underlying device 300. The external device may be a wheel, a fuel tank, an audio device, a lighting device, or other devices, and embodiments of the present invention are not limited in particular.
The bottom layer device 300 is used for detecting the operating status of the external device, converting the operating status into bottom layer data and transmitting the bottom layer data to the human-machine interface 100. The bottom layer device 300 also receives the control signal transmitted by the human-machine interface 100 to adjust the operation state of the external device.
The control device 200 is used for inputting a corresponding control signal into the human-machine interface 100 according to the data content displayed on the human-machine interface 100, and further controlling the external device.
The human-machine interface 100 is electrically connected with the control device 200 and the bottom layer device 300, and is used for receiving the control signal output by the control device 200 and transmitting the control signal to the bottom layer device 300. The human-machine interface 100 is also used for receiving and displaying data output by the bottom layer device 300 to detect the running state of the external equipment.
Specifically, the base device 300 includes a unit mileage detecting unit 301, an audio/video data detecting unit 302, a total mileage detecting unit 303, a rotational speed detecting unit 304, and an alarm unit 305.
The unit mileage detection unit 301 is configured to detect the mileage of the wheel operating in unit time. The audio/video data detection unit 302 is used to detect data related to an external device such as an audio device or a lighting device. The total mileage detecting unit 303 is used to detect the total mileage traveled by the wheels. The rotation speed unit 304 is used for detecting the rotation speed of the wheel. The alarm unit 305 is used to monitor whether the apparatus is in an abnormal operation state.
In other embodiments, the underlying device 300 may further include other functional units in addition to the above functional units, according to actual needs, and it is understood that some or some of the above functional units may also be deleted according to actual needs, which is not limited in the present invention.
In the embodiment of the present invention, the display system 10 transmits the control signal output by the control device 200 to the bottom layer device 300 through the human-machine interface 100 to perform real-time control on the operation state of the external device. Meanwhile, the human-machine interface 100 receives and displays data capable of reflecting the operating state of the external device, which is output by the underlying device 300. It can be seen that the human-machine interface 100 plays a role of signal transmission and data display in the whole display system 10, so that the user can know the operation state of the external device in real time and take corresponding measures according to the displayed data.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a human-machine interface in the display system shown in fig. 2. As shown in fig. 3, the human-machine interface 100 includes a data transmission system 101, a page display unit 102, a page logic unit 103, an input management unit 104, a communication unit 105, and a configuration management unit 106.
The configuration management unit 106 is configured to manage configuration parameters in the human-machine interface 100, where the configuration parameters include rendering drive initialization, the number of display layers, configuration of a top-bottom positional relationship of each layer, configuration parameters of a storage location, configuration parameters of a single-display cache and a double-display cache, and configuration parameters of a font library.
The communication unit 105 is used to implement data transmission between the data transmission system 101 and the underlying device 300 as a communication channel. Further, the communication unit 105 may also be used to enable transmission of simulation data as a communication channel between the data transmission system 101 and the simulation device when in a simulation environment.
The input management unit 104 is electrically connected to the control device 200, and receives a control signal output from the control device 200.
The data transmission system 101 is connected to the communication unit 105, and is configured to receive, through the communication unit 105, data capable of reflecting an operating state of an external device and output by the underlying device 300, and process the data to obtain valid information of the data. The data transmission system 101 may also transmit a control signal to the underlying device 300 through the communication unit 105 to control the operation state of the external device.
The page logic unit 103 is connected to the input management unit 104 and the data transmission system 101, and is configured to receive the control signal output by the input management unit 104 and convert the control signal into control data, and is further configured to receive valid information of data output by the data transmission system 101, and output the control data and the valid information of the data to the page display unit 102 as display content.
The page display unit 102 is connected to the page logic unit 103, and is configured to receive the display content output by the page logic unit 103 and display the display content.
In the embodiment of the present invention, the human-machine interface 100 receives, through the data transmission system 101, bottom layer data capable of reflecting an operation state of an external device, which is output by the bottom layer device 300, and enables the data transmission system 101 and the simulation device to perform simulation data transmission in a simulation environment, and the data transmission system 101 analyzes the received bottom layer data or simulation data to obtain a data value and a unit value in the data as valid information. In addition, the page logic unit 103 receives the control signal transmitted by the input management unit 104 and the valid information output by the data transmission system 101 as display contents, and the display contents are displayed by the page display unit 102.
Therefore, when the page display unit 102 displays the same data for multiple times, the addition of the data transmission system 101 enables the page logic unit 102 to read the data in the data transmission system 101, and does not need to obtain the bottom layer data or the simulation data again every time, thereby avoiding the multiplexing of the same code in the same project. Meanwhile, when different projects are developed, the development of a new project can be completed without changing the data transmission system 101, the page logic unit 103, the input management unit 104, the communication unit 105 and the configuration management unit 106 in the human-computer interface 100 too much, so that the multiplexing of codes in different projects is improved, the complexity of project development is reduced, and the working efficiency is improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a data transmission unit in the data transmission system shown in fig. 3. In the present embodiment, the data transmission system 101 is composed of a plurality of data transmission units 500, and the number of the data transmission units 500 is the same as the number of the functional units in the underlying device 300, and each data transmission unit 500 corresponds to each functional unit in the underlying device 300 one to one.
As shown in fig. 4, the data transmission unit 500 includes a data acquisition unit 501, an effective information acquisition unit 502, and an interface unit 503.
The data acquisition unit 501 is configured to receive the bottom layer data in the bottom layer device 300 or the simulation data in the simulation device as the acquired data at the current time every other threshold time. Comparing the collected data at the current moment with the collected data at the adjacent previous threshold moment, and if the collected data at the current moment is different from the collected data at the adjacent previous threshold moment, transmitting the collected data at the current moment to the effective information obtaining unit 502; and if the acquired data at the current moment is the same as the acquired data at the adjacent previous threshold moment, ending the data transmission and waiting for the next threshold moment.
In the embodiment of the invention, the bottom layer data is used for monitoring the running state of the bottom layer device, namely the running state of the bottom layer device can be known through the bottom layer data.
In the embodiment of the invention, the simulation data is used for debugging the input equipment and positioning the input equipment when the input equipment has problems, namely, the equipment can be debugged and positioned by inputting the simulation data.
In the embodiment of the present invention, the adopted threshold time is 1 minute, and the threshold time may also be changed according to actual needs, which is not limited in the embodiment of the present invention.
The effective information obtaining unit 502 is connected to the data collecting unit 501, and is configured to receive the collected data at the current time after the data collecting unit 501 determines that the collected data at the current time is different from the collected data at the previous threshold time, and determine whether the collected data at the current time conforms to a preset data format and value range again to determine whether the collected data is standard data. If the acquired data at the current moment conforms to a preset data format and a preset value range, judging that the acquired data at the current moment is standard data, and acquiring a data value and a unit value of the acquired data at the current moment as effective information at the current moment; if the acquired data at the current moment does not conform to the preset data format and value range, judging that the acquired data at the current moment is non-standard data, and taking an identifier which can represent that the acquired data at the current moment is the non-standard data as effective information at the current moment. The valid information at the current time is output to the interface unit 503.
In the embodiment of the invention, the standard data is data with a specific data format and a value range defined. Taking the rotation speed of the wheel as an example, the data format of the standard data is data value + unit value, the value range of the standard data is 0-500, and the data format and the value range of the standard data can also be set according to actual needs, which is not limited in the embodiment of the invention.
In the embodiment of the present invention, the data value refers to a number in the data, and the unit value refers to a measurement unit in the data. For example, when the bottom layer data or the simulation data can be normally transmitted and the acquired data at the current time is 5km/h, the data value is 5, the unit value is km/h, and the effective information at the current time is the data value and the unit value. When the underlying data or the simulation data do not conform to the preset data format and value range due to signal interference or other factors, the data value and the unit value are both null, and the effective information of the current time is "- - -", "Err" or other marks to indicate that the acquired data of the current time is nonstandard data.
The interface unit 503 is connected to the valid information acquiring unit 502, and is configured to receive the valid information at the current time output by the valid information acquiring unit 502, and determine whether the valid information changes by comparing whether the valid information at the current time is the same as the valid information at the previous threshold time. If the effective information at the current moment is the same as the effective information at the adjacent previous threshold moment, judging that the effective information at the current moment is not changed, and ending the data transmission until the next threshold moment comes; if the valid information at the current time is different from the valid information at the previous adjacent threshold time, it is determined that the valid information at the current time is changed, the valid information at the previous threshold time is erased, the valid information at the current time is retained, and the display logic unit 103 waits for reading of the valid information.
Specifically, the data acquisition unit 501 includes a first determination unit 5011, a simulation data acquisition unit 5012, and an underlying data acquisition unit 5013.
Among them, the simulation data obtaining unit 5012 is configured to receive simulation data in the simulation device every threshold time when the connection to the underlying device 300 is not possible.
The underlay data acquisition unit 5013 is configured to receive data output by the underlay device 300 every threshold time.
The first determining unit 5011 is connected to the simulation data acquiring unit 5012 and the bottom layer data acquiring unit 5013, and is configured to receive the simulation data in the simulation data acquiring unit 5012 or the bottom layer data in the bottom layer data acquiring unit 5013 at the current time as the acquired data at the current time.
The first judging unit 5011 judges whether the collected data at the present time is changed by comparing whether the collected data at the present time is the same as the collected data at the adjacent previous threshold time.
And if the acquired data at the current moment is the same as the acquired data at the adjacent previous threshold moment, judging that the acquired data at the current moment is not changed, and finishing the data transmission until the next threshold moment.
If the data collected at the current time is different from the data collected at the previous threshold time, it is determined that the data collected at the current time has changed, and the data collected at the current time is transmitted to the effective information obtaining unit 502.
The valid information acquisition unit 502 includes a data value acquisition unit 5021, a unit value acquisition unit 5022, and a second determination unit 5023.
The data value acquiring unit 5021 is used for acquiring numbers in the acquired data at the current time.
The unit value acquiring unit 5022 is used for acquiring units in the acquired data at the current time.
The second determination unit 5023 is connected to the data acquisition unit 501 and is configured to receive the changed current data output by the data acquisition unit 501, and determine whether the current data conforms to a preset data format and value range to determine whether the current data is standard data.
If the collected data at the current moment conforms to the preset data format and value range, the collected data at the current moment is judged to be standard data, and the data value acquisition unit 5021 and the unit value acquisition unit 5022 acquire the data value and the unit value of the collected data at the current moment as effective information at the current moment; if the acquired data at the current moment does not conform to the preset data format and value range, judging that the acquired data at the current moment is non-standard data, and taking an identifier which can represent that the acquired data at the current moment is the non-standard data as effective information at the current moment. The valid information at the current time is output to the interface unit 503.
The interface unit 503 includes a third determination unit 5031 and a data retention unit 5032.
The third determining unit 5031 is connected to the valid information acquiring unit 502, and is configured to receive the valid information at the current time output by the valid information acquiring unit 502, and determine whether the valid information changes by comparing whether the valid information at the current time is the same as the valid information at the previous threshold time.
If the effective information at the current moment is the same as the effective information at the adjacent previous threshold moment, judging that the effective information at the current moment is not changed, and ending the data transmission until the next threshold moment comes; if the valid information at the current time is different from the valid information at the previous threshold time, it is determined that the valid information at the current time is changed, and the valid information at the current time is transmitted to the data retention unit 5032.
The data retention unit 5032 is connected to the third determining unit 5031, and is configured to erase the valid information at the previous threshold time after the third determining unit 5031 determines that the valid information at the current time is changed, receive the valid information at the current time, and wait for the display logic unit 103 to read the valid information at the current time.
In the embodiment of the present invention, each unit in the underlying device 300 corresponds to one data transmission unit 500 in the data transmission system 101. The bottom layer data acquiring unit 5013 in the data acquiring unit 501 acquires data in the bottom layer device 300, and when the bottom layer device 300 is not connected, the simulation data acquiring unit 5012 in the data acquiring unit 501 may also acquire simulation data in the simulation device for debugging and problem location. The data acquisition unit 501 transmits the acquired underlying data or simulation data to the first judgment unit 5011 as the acquisition data of the current time, and the first judgment unit 5011 judges whether the acquisition data of the current time is changed by comparing whether the acquisition data of the current time is the same as the acquisition data of the adjacent previous threshold time. If the current data are the same as the current data, judging that the collected data at the current moment are not changed, and finishing the data transmission; if the current time is different from the current time, it is determined that the collected data at the current time is changed, and the data collection unit 501 transmits the collected data at the current time to the effective information acquisition unit 502. The second determination unit 5023 in the valid information acquiring unit 502 determines whether the received data collected at the current time is standard data. If the data is the standard data, the data value acquisition unit 5021 and the unit value acquisition unit 5022 acquire the data value and the unit value of the acquired data at the current time as the effective information at the current time; and if the collected data is the non-standard data, taking the identifier which can represent that the collected data at the current moment is the non-standard data as the effective information at the current moment. The valid information at the current time is output to the interface unit 503. The third determination unit 5031 in the interface unit 503 determines whether the valid information is changed by comparing whether the valid information at the current time is the same as the valid information at the adjacent previous threshold time. If the data transmission time is the same as the threshold time, judging that the effective information at the current time is not changed, and ending the data transmission until the next threshold time comes; if the current time is different from the current time, it is determined that the valid information at the current time is changed, and the valid information at the current time is transmitted to the data retention unit 5032. The data retention unit 5032 erases the valid information at the previous threshold time, receives the valid information at the current time, and waits for the display logic unit 103 to read the valid information at the current time.
It can be seen that the data transmission unit 500 is connected to the units in the bottom layer device 300 in a one-to-one correspondence manner, and the effective information of the bottom layer data or the simulation data is retained in the interface unit 503, so that when the page display unit 102 displays the same data, only the page logic unit needs to read the effective information in the interface unit 503, and the bottom layer data or the simulation data does not need to be obtained again every time, thereby avoiding the reuse of the same item code. In addition, when a new project is developed, only the page display unit 102 needs to be modified, so that the multiplexing efficiency of codes in different projects is improved, and the working efficiency is improved.
Compared with the prior art, the data transmission method provided by the embodiment of the invention can be used for retaining the changed bottom layer data or simulation data to wait for reading of the display page after the data transmission system and the bottom layer device or simulation device are started. By means of the method, when the same data is used for multiple times, the display page only needs to read the reserved data, and does not need to acquire the bottom layer data or the simulation data again every time, so that repeated use of codes in the same project is avoided. Meanwhile, by means of the method, when a new project is designed, only the layout of the display page needs to be redesigned, and the original method and the original system only need to be modified a little, so that the reusability of codes in different projects is improved, and the working efficiency is improved. In addition, the addition of the simulation data can simulate the input of data when no bottom layer device exists, and the debugging and problem positioning are facilitated.
The data transmission method, the data transmission unit and the data transmission system disclosed in the embodiments of the present invention are described in detail above, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (11)

1. A method of data transmission, comprising:
acquiring bottom layer data or simulation data at the current moment at every other threshold moment as acquisition data at the current moment;
judging whether the collected data at the current moment is changed or not;
if the collected data at the current moment is changed, judging whether the collected data at the current moment is standard data or not;
if the collected data at the current moment is standard data, acquiring a data value and a unit value of the collected data at the current moment as effective information at the current moment;
and if the acquired data at the current moment is the non-standard data, taking an identifier which can represent that the acquired data at the current moment is the non-standard data as effective information at the current moment.
2. The method according to claim 1, wherein the step of determining whether the collected data at the current time is changed comprises:
judging whether the acquired data at the current moment is the same as the acquired data at the adjacent previous threshold moment;
if the acquired data at the current moment is the same as the acquired data at the adjacent previous threshold moment, judging that the acquired data at the current moment is not changed;
and if the acquired data at the current moment is different from the acquired data at the adjacent last threshold moment, judging that the acquired data at the current moment is changed.
3. The method according to claim 1, wherein the step of determining whether the collected data at the current time is normative data includes:
judging whether the acquired data at the current moment conforms to a set data format and a value range;
if the acquired data at the current moment conforms to the set data format and value range, judging the acquired data at the current moment to be standard data;
and if the acquired data at the current moment do not accord with the set data format and value range, judging the acquired data at the current moment to be non-standard data.
4. The method of claim 1, further comprising:
judging whether the effective information at the current moment is changed or not;
if the effective information at the current moment is not changed, finishing the data transmission and waiting for the next threshold moment;
and if the effective information at the current moment is changed, saving the effective information at the current moment.
5. The method according to claim 4, wherein the step of determining whether the valid information at the current time is changed comprises:
judging whether the effective information of the current moment is the same as the effective information of the adjacent last threshold moment,
if the effective information at the current moment is the same as the effective information at the adjacent previous threshold moment, judging that the effective information at the current moment is not changed;
and if the effective information at the current moment is different from the effective information at the adjacent last threshold moment, judging that the effective information at the current moment is changed.
6. A data transmission unit, comprising:
a data acquisition unit for receiving the bottom layer data in the bottom layer device or the simulation data in the simulation device at the current time as the acquisition data at the current time every other threshold time,
the data acquisition unit is also used for judging whether the acquired data at the current moment are changed or not, and transmitting the acquired data at the current moment to the effective information acquisition unit if the acquired data at the current moment are changed;
the effective information acquisition unit is used for receiving the changed acquired data at the current moment;
the effective information obtaining unit is further configured to determine whether the collected data at the current time is standard data, obtain a data value and a unit value of the collected data at the current time as effective information at the current time if the collected data at the current time is standard data, and use an identifier that can indicate that the collected data at the current time is non-standard data as the effective information at the current time if the collected data at the current time is non-standard data.
7. The data transmission unit of claim 6, wherein the data acquisition unit is further configured to:
judging whether the acquired data at the current moment is the same as the acquired data at the adjacent previous threshold moment;
if the acquired data at the current moment is the same as the acquired data at the adjacent previous threshold moment, judging that the acquired data at the current moment is not changed;
and if the acquired data at the current moment is different from the acquired data at the adjacent last threshold moment, judging that the acquired data at the current moment is changed.
8. The data transmission unit of claim 6, wherein the valid information acquisition unit is further configured to:
judging whether the acquired data at the current moment conforms to a set data format and a value range;
if the acquired data at the current moment conforms to the set data format and value range, judging the acquired data at the current moment to be standard data;
and if the acquired data at the current moment do not accord with the set data format and value range, judging the acquired data at the current moment to be non-standard data.
9. The data transmission unit of claim 6, wherein the data transmission unit further comprises:
and the interface unit is used for receiving the effective information at the current moment, judging whether the effective information at the current moment is changed or not, and if the effective information at the current moment is changed, storing the effective information at the current moment.
10. The data transmission unit of claim 9, wherein the interface unit is further configured to:
judging whether the effective information of the current moment is the same as the effective information of the adjacent last threshold moment,
if the effective information at the current moment is the same as the effective information at the adjacent previous threshold moment, judging that the effective information at the current moment is not changed;
and if the effective information at the current moment is different from the effective information at the adjacent last threshold moment, judging that the effective information at the current moment is changed.
11. A data transmission system comprising a data transmission unit as claimed in any one of claims 6 to 10, the data transmission unit being the same as the number of functional units in the underlying device.
CN202010023324.2A 2020-01-09 2020-01-09 Data transmission method, data transmission unit and data transmission system Pending CN113094007A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010023324.2A CN113094007A (en) 2020-01-09 2020-01-09 Data transmission method, data transmission unit and data transmission system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010023324.2A CN113094007A (en) 2020-01-09 2020-01-09 Data transmission method, data transmission unit and data transmission system

Publications (1)

Publication Number Publication Date
CN113094007A true CN113094007A (en) 2021-07-09

Family

ID=76663562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010023324.2A Pending CN113094007A (en) 2020-01-09 2020-01-09 Data transmission method, data transmission unit and data transmission system

Country Status (1)

Country Link
CN (1) CN113094007A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116400232A (en) * 2023-06-09 2023-07-07 杭州华塑科技股份有限公司 Battery pack data acquisition method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116400232A (en) * 2023-06-09 2023-07-07 杭州华塑科技股份有限公司 Battery pack data acquisition method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US7739007B2 (en) Vehicle diagnostic method and system with intelligent data collection
US8825275B2 (en) Trouble diagnosis device
DE69809049D1 (en) Backup system based on identification information for a game system operable with backup data on different game machines
KR100487473B1 (en) Control system and method for battery control unit
CN107766209B (en) Central control automation test method, device, equipment and computer readable storage medium
JP2011039621A (en) Device and method for diagnosing vehicle operation, and computer program
US20200317007A1 (en) Tire pressure sensor identification method and related apparatus and system
CN101936815A (en) Computer type vehicle fault diagnostic system and method
CN113094007A (en) Data transmission method, data transmission unit and data transmission system
KR101586051B1 (en) Apparatus and method for providing vehicle data for testing product
JP2012221307A (en) Driving content evaluation device
CN102713858A (en) Online debugging system for information processing device and online debugging method
CN106683417A (en) Parking space state detection method based on magneto-sensitive detector and magneto-sensitive detector
CN109215167A (en) A kind of vehicle-mounted computer of motor vehicle Driving Test system-specific
CN116737515B (en) Flash memory parameter visualization method, system and storage medium
CN109887124B (en) Vehicle motion data processing method and device, computer equipment and storage medium
JP3345827B2 (en) Vehicle diagnostic device
CN209842370U (en) Data acquisition and storage system for intelligent multi-channel digital signals
CN112634489B (en) Vehicle state determination method, device and system based on mobile terminal
CN111443932A (en) Instrument upgrading method based on SPI
CN112562266A (en) Fatigue driving analysis method and device based on electronic data
KR101207342B1 (en) Car digital tachograph apparatus having auto upgrade function
WO2013073881A1 (en) System and method for eco drive education, evaluation and authentication services
EP2685431A2 (en) Vehicle information management system
JPH0926380A (en) Device for collecting data for vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210709

WD01 Invention patent application deemed withdrawn after publication