CN108628780B - Data communication method and system and electric vehicle - Google Patents

Data communication method and system and electric vehicle Download PDF

Info

Publication number
CN108628780B
CN108628780B CN201810400361.3A CN201810400361A CN108628780B CN 108628780 B CN108628780 B CN 108628780B CN 201810400361 A CN201810400361 A CN 201810400361A CN 108628780 B CN108628780 B CN 108628780B
Authority
CN
China
Prior art keywords
electric vehicle
control system
central control
information data
vehicle information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810400361.3A
Other languages
Chinese (zh)
Other versions
CN108628780A (en
Inventor
钟鸿彬
李强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Huiye Communication Technology Co ltd
Original Assignee
Chongqing Huiye Communication 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 Chongqing Huiye Communication Technology Co ltd filed Critical Chongqing Huiye Communication Technology Co ltd
Priority to CN201810400361.3A priority Critical patent/CN108628780B/en
Publication of CN108628780A publication Critical patent/CN108628780A/en
Application granted granted Critical
Publication of CN108628780B publication Critical patent/CN108628780B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1668Details of memory controller
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62JCYCLE SADDLES OR SEATS; AUXILIARY DEVICES OR ACCESSORIES SPECIALLY ADAPTED TO CYCLES AND NOT OTHERWISE PROVIDED FOR, e.g. ARTICLE CARRIERS OR CYCLE PROTECTORS
    • B62J45/00Electrical equipment arrangements specially adapted for use as accessories on cycles, not otherwise provided for
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62JCYCLE SADDLES OR SEATS; AUXILIARY DEVICES OR ACCESSORIES SPECIALLY ADAPTED TO CYCLES AND NOT OTHERWISE PROVIDED FOR, e.g. ARTICLE CARRIERS OR CYCLE PROTECTORS
    • B62J99/00Subject matter not provided for in other groups of this subclass
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62MRIDER PROPULSION OF WHEELED VEHICLES OR SLEDGES; POWERED PROPULSION OF SLEDGES OR SINGLE-TRACK CYCLES; TRANSMISSIONS SPECIALLY ADAPTED FOR SUCH VEHICLES
    • B62M6/00Rider propulsion of wheeled vehicles with additional source of power, e.g. combustion engine or electric motor
    • B62M6/40Rider propelled cycles with auxiliary electric motor
    • B62M6/45Control or actuating devices therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62KCYCLES; CYCLE FRAMES; CYCLE STEERING DEVICES; RIDER-OPERATED TERMINAL CONTROLS SPECIALLY ADAPTED FOR CYCLES; CYCLE AXLE SUSPENSIONS; CYCLE SIDE-CARS, FORECARS, OR THE LIKE
    • B62K2204/00Adaptations for driving cycles by electric motor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Transportation (AREA)
  • Electric Propulsion And Braking For Vehicles (AREA)

Abstract

The embodiment of the invention discloses a data communication method, a data communication system and an electric vehicle, which are applied to the electric vehicle provided with a central control system, wherein the method comprises the following steps: the first-in first-out FIFO chip receives a write instruction sent by the central control system, writes electric vehicle information data sent by the controller according to the write instruction and stores the electric vehicle information data; the FIFO chip generates a storage space state according to the stored electric vehicle information data and sends the storage space state to the central control system, so that the central control system switches the write instruction and the read instruction according to the storage space state; the FIFO chip receives a reading instruction sent by the central control system and sends the stored electric vehicle information data to the central control system according to the reading instruction. The data communication method, the data communication system and the electric vehicle provided by the embodiment of the invention can meet the communication requirement between the electric vehicle controller and the central control system.

Description

Data communication method and system and electric vehicle
Technical Field
The embodiment of the invention relates to a communication technology, in particular to a data communication method and system and an electric vehicle.
Background
At present, the electric vehicle conforms to the trend of energy conservation and environmental protection, and is greatly convenient for short-distance traffic, so that the electric vehicle is widely favored by people. The electric vehicle of the invention refers to a non-electric vehicle using a battery as an energy source, such as an electric bicycle, an electric tricycle, an electric motorcycle, a disabled person wheelchair, an old person scooter and the like.
At present, most electric vehicles only have a running function, a controller of the electric vehicle only needs to send related vehicle data (such as residual electric quantity) and running data (such as running speed) to an instrument display for displaying, and the display does not need to feed back the controller, so that the requirement can be met by adopting an international Standard Input Format (SIF) communication protocol between the controller and the display of the electric vehicle. In the SIF communication protocol, a controller of an electric vehicle transmits high/low level signals for a stable time interval, and a display needs to receive the high/low level signals for the stable time interval in real time.
With the increasing perfection of functions of navigation, entertainment and the like of the electric vehicle, the electric vehicle is additionally provided with a corresponding central control system for controlling the realization of each function. The central control system is a multi-task operating system and needs to continuously perform task scheduling, so that high/low level signals with stable time intervals sent by the real-time receiving controller cannot be guaranteed. At this time, the SIF communication protocol adopted between the controller and the central control system cannot meet the communication requirement.
Disclosure of Invention
In view of this, embodiments of the present invention provide a data communication method and system and an electric vehicle, which can meet the communication requirement between an electric vehicle controller and a central control system.
In a first aspect, an embodiment of the present invention provides a data communication method, which is applied to an electric vehicle provided with a central control system, and includes:
the first-in first-out FIFO chip receives a write instruction sent by the central control system, writes electric vehicle information data sent by the controller according to the write instruction and stores the electric vehicle information data;
the FIFO chip generates a storage space state according to the stored electric vehicle information data and sends the storage space state to a central control system, so that the central control system switches the write instruction and the read instruction according to the storage space state;
the FIFO chip receives a reading instruction sent by the central control system and sends stored electric vehicle information data to the central control system according to the reading instruction.
Optionally, the storage space state includes a full state and an empty state;
correspondingly, the central control system performs switching between the write instruction and the read instruction according to the storage space state, and the switching includes:
if the storage space state is a full state, the central control system switches the write instruction to a read instruction according to the full state;
and if the storage space state is an empty state, the central control system switches the read instruction to a write instruction according to the empty state.
Optionally, the FIFO chip generates a storage space state according to the stored electric vehicle information data, including:
when the storage space occupied by the electric vehicle information data is the same as that of the FIFO chip, determining that the storage space state is a full state;
correspondingly, after the FIFO chip receives a read instruction sent by a central control system and sends stored electric vehicle information data to the central control system according to the read instruction, the method further includes:
and when the FIFO chip finishes transmitting the stored electric vehicle information data, determining that the storage space state is an empty state, and sending the empty state to the central control system so that the central control system switches the write instruction and the read instruction.
Optionally, the write command is a PWM signal, where a period of the PWM signal corresponds to a clock period of the controller.
Optionally, the read instruction is a falling edge clock signal.
Optionally, the data type of the electric vehicle information data at least includes one of: fault prompt, operation prompt and startup and shutdown prompt.
Optionally, the electric vehicle information data is transmitted in units of frames, and each frame of electric vehicle information data includes a start bit, a data bit, and an idle bit.
In a second aspect, an embodiment of the present invention provides a data communication system, which is applied to an electric vehicle with a central control system, and includes a controller, a first-in first-out FIFO chip, and the central control system; wherein,
the controller is used for sending the collected electric vehicle information data to the FIFO chip;
the FIFO chip is electrically connected with the controller and used for writing the electric vehicle information data sent by the controller according to the write command and storing the electric vehicle information data when receiving the write command sent by the central control system; the electric vehicle information data storage system is used for sending stored electric vehicle information data to a central control system according to a reading instruction when the reading instruction sent by the central control system is received; the electric vehicle information data storage system is also used for generating a storage space state according to the stored electric vehicle information data and sending the storage space state to a central control system;
and the central control system is electrically connected with the FIFO chip and is used for switching the write instruction and the read instruction according to the state of the storage space.
Optionally, the system further comprises:
and the signal sensor is electrically connected with the controller and used for acquiring the information data of the electric vehicle and sending the information data of the electric vehicle to the controller.
In a third aspect, an embodiment of the present invention further provides an electric vehicle, including the data communication system provided in any embodiment of the present invention and a frame, where the data communication system is disposed on the frame.
According to the data communication method, the data communication system and the electric vehicle, the FIFO chip writes electric vehicle information data sent by the controller into the FIFO chip according to the write command sent by the central control system and stores the electric vehicle information data; the FIFO chip generates a storage space state according to the stored electric vehicle information data and sends the storage space state to the central control system so that the central control system switches the write instruction and the read instruction according to the storage space state; the FIFO chip sends the stored information data of the electric vehicle to the central control system according to the reading instruction sent by the central control system, so that the communication between the controller and the central control system is realized, and the communication requirement between the controller of the electric vehicle and the central control system is met.
Drawings
Fig. 1 is a flowchart of a data communication method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a data communication system according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a FIFO chip in a data communication system according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a preferred data communication system according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electric vehicle according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described through embodiments with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but 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.
Example one
Fig. 1 is a flowchart of a data communication method according to an embodiment of the present invention, where the embodiment is applicable to a situation where a controller in an electric vehicle provided with a central control system performs data communication with the central control system, and the method may be implemented by a data communication system, and may specifically be implemented by software and/or hardware in the system. Referring to fig. 1, the data communication method includes the steps of:
and S110, receiving the write command sent by the central control system by the first-in first-out FIFO chip, writing the electric vehicle information data sent by the controller according to the write command, and storing the electric vehicle information data.
A First-in First-out (FIFO) chip refers to a chip in which data written into the chip is read out First, and the read operation and the write operation of the FIFO chip are performed asynchronously. When the write pin of the FIFO chip receives a write instruction sent by the central control system, the FIFO chip can write in the electric vehicle information data sent by the controller, and when the write pin of the FIFO chip does not receive the write instruction sent by the central control system, the FIFO chip cannot write in the electric vehicle information data sent by the controller.
The electric vehicle information data output by the controller may be a one-line signal, that is, a signal transmitted through a single line. The signal format may be one frame of data transmitted at a time, each frame of data includes 1 start bit (the start bit may be 15.5ms low and 0.5ms high), 8 × n (n may be a positive integer of 12, 15, etc.) data bits, and the line is required to be in an idle state (may be in a low state) after the transmission is finished, wherein the level of the data complies with Transistor-Transistor Logic (TTL) specification.
Optionally, the write command is a PWM (Pulse Width Modulation) signal, where a period of the PWM signal corresponds to a clock period of the controller.
Wherein, the Tosc may represent the clock period of the controller, the clock periods of different controllers are different, 32Tosc is usually selected as the minimum unit time, in order to ensure the accuracy of reading data by the FIFO chip, the PWM signal period needs to be less than or equal to half of the value of 32Tosc, for example, when the 32Tosc is 0.5ms, the PWM signal period needs to be less than or equal to 0.25ms.
And S120, the FIFO chip generates a storage space state according to the stored electric vehicle information data and sends the storage space state to the central control system, so that the central control system switches between a write instruction and a read instruction according to the storage space state.
When the remaining storage space of the FIFO chip is zero, the electric vehicle information data sent by the controller cannot be written into the FIFO chip, and at the moment, the central control system needs to be informed to send a reading instruction for reading the electric vehicle information data in the FIFO chip; when the electric vehicle information data stored in the FIFO chip is completely read, the remaining storage space of the FIFO chip is the largest, and at the moment, the central control system needs to be informed to send a write instruction for enabling the FIFO chip to continuously write the electric vehicle control information sent by the controller.
Optionally, the storage space state includes a full state and an empty state; the full state refers to a state that the remaining storage space of the FIFO chip is zero, and the empty state refers to a state that the electric vehicle information data in the FIFO chip are completely read and the remaining storage space is maximum. Optionally, the FIFO chip generates a storage space state according to the stored electric vehicle information data, including: and when the storage space occupied by the electric vehicle information data is the same as the storage space of the FIFO chip, determining that the storage space state is a full state.
Correspondingly, the central control system switches the write command and the read command according to the state of the storage space, and the method comprises the following steps: if the storage space state is a full state, the central control system switches the write instruction to the read instruction according to the full state; and if the storage space state is an empty state, the central control system switches the read instruction to the write instruction according to the empty state. In this embodiment, the FIFO chip writes the information data of the electric vehicle according to the write instruction currently, and correspondingly, the storage space state of the FIFO chip is a full state, and the full state is sent to the master control system, and the central control system switches the write instruction to the read instruction according to the full state.
The sequential writing and reading of the FIFO chip data are completed through the switching of the reading and writing instructions of the central control system, so that the data communication between the controller and the central control system is completed.
S130, the FIFO chip receives the reading instruction sent by the central control system and sends the stored electric vehicle information data to the central control system according to the reading instruction.
The reading instruction can be a falling edge clock signal, and the FIFO chip sends one bit of data to the central control system every time the FIFO chip receives one falling edge clock signal until the data in the FIFO chip is completely read.
Optionally, the FIFO chip generates a storage space state according to the stored electric vehicle information data, further including: after the FIFO chip receives a read instruction sent by the central control system, the stored electric vehicle information data is sent to the central control system according to the read instruction, when the FIFO chip finishes the transmission of the stored electric vehicle information data, the storage space state is determined to be an empty state, and the empty state is sent to the central control system, so that the central control system carries out the switching of a write instruction and the read instruction, namely the read instruction is switched to the write instruction, and the FIFO chip continues to write the electric vehicle information data according to the write instruction. The FIFO chip circulates the writing operation and the reading operation until the information data transmission of the electric vehicle is completed.
In this embodiment, data transmission between the controller and the central control system is realized in a manner that the FIFO chip cyclically performs write operation and read operation.
Optionally, the data type of the electric vehicle information data at least includes one of the following: fault prompt, operation prompt and startup and shutdown prompt.
The fault prompt can comprise a rotating handle fault, a motor fault, a Hall fault, a controller fault and the like; the operation prompt can comprise an electric quantity prompt, a speed prompt, a mileage prompt and the like; the power-on and power-off prompt can comprise a power-on self-detection prompt, a power-off and vehicle locking prompt and the like.
Optionally, the electric vehicle information data is transmitted in units of frames, and each frame of electric vehicle information data includes a start bit, a data bit, and an idle bit.
Illustratively, assuming that 32Tosc of the controller is 0.5ms, each frame of electric vehicle information data includes a start bit of 15.5ms low level and a 0.5ms high level, a data bit is 8 × 12 bits, and each bit of data consumes at least 3 × 32Tosc, the transmission time of each frame of electric vehicle information data is at least 15.5+0.5+8 × 12 × 1.5=160ms, and to ensure the reading accuracy of the FIFO chip, the electric vehicle information data FIFO chip of each frame reads at least 160/0.25=640 times, that is, each frame of electric vehicle information data occupies at least 640 bits of the storage space of the FIFO chip. Assuming that the storage space of the FIFO chip is 640bit, after the FIFO chip stores a frame of complete protocol packet, the storage space state of the FIFO chip is a full state, and the central control system switches the write instruction into the read instruction according to the full state; when the complete protocol packet of a frame stored in the FIFO chip is read, the storage space state of the FIFO chip is in an empty state, and the central control system switches the read instruction into the write instruction according to the empty state. Through the switching of the reading instruction and the writing instruction, the writing and the reading of the electric vehicle information data of the FIFO chip are completed, and therefore the data transmission between the controller and the central control system is completed.
According to the data communication method provided by the embodiment of the invention, the FIFO chip writes electric vehicle information data sent by the controller into the FIFO chip according to the write command sent by the central control system and stores the electric vehicle information data; the FIFO chip generates a storage space state according to the stored electric vehicle information data and sends the storage space state to the central control system so that the central control system can switch between a write instruction and a read instruction according to the storage space state; the FIFO chip sends the stored electric vehicle information data to the central control system according to the reading instruction sent by the central control system, so that the communication between the controller and the central control system is realized, and the communication requirement between the electric vehicle controller and the central control system is met.
Example two
Fig. 2 is a schematic structural diagram of a data communication system according to a second embodiment of the present invention, which is applicable to a situation where a controller communicates data with a central control system in an electric vehicle provided with the central control system. Referring to fig. 2, the data communication system includes a controller 210, a first-in first-out FIFO chip 220, and a control system 230; wherein,
the controller 210 is configured to send the acquired electric vehicle information data to the FIFO chip 220;
the FIFO chip 220 is electrically connected to the controller 210, and is configured to write and store the electric vehicle information data sent by the controller 210 according to the write instruction when receiving the write instruction sent by the central control system 230; when receiving a read instruction sent by the central control system 230, sending the stored electric vehicle information data to the central control system 230 according to the read instruction; the central control system 230 is also used for generating a storage space state according to the stored electric vehicle information data and sending the storage space state to the electric vehicle information data;
and the central control system 230 is electrically connected with the FIFO chip 220 and is used for switching between a write instruction and a read instruction according to the state of the storage space.
Optionally, the data communication system further includes:
and the signal sensor is electrically connected with the controller 210 and used for acquiring the electric vehicle information data and sending the electric vehicle information data to the controller 210.
Optionally, the storage space state includes a full state and an empty state;
accordingly, central control system 230 is specifically configured to:
if the storage space state is a full state, the central control system switches the write instruction to the read instruction according to the full state; and if the storage space state is an empty state, the central control system switches the read instruction to the write instruction according to the empty state.
Optionally, the FIFO chip 220 is specifically configured to:
when the storage space occupied by the electric vehicle information data is the same as the storage space of the FIFO chip 220, determining that the storage space state is a full state; when the FIFO chip 220 completes transmission of the stored electric vehicle information data, it is determined that the storage space state is an empty state, and the empty state is sent to the central control system, so that the central control system performs switching between a write instruction and a read instruction.
Optionally, the write command is a PWM signal, where a period of the PWM signal corresponds to a clock period of the controller; optionally, the read instruction is a falling edge clock signal; optionally, the data type of the electric vehicle information data at least includes one of the following: fault prompt, operation prompt and startup and shutdown prompt; optionally, the electric vehicle information data is transmitted in units of frames, and each frame of electric vehicle information data includes a start bit, a data bit, and an idle bit.
Optionally, fig. 3 is a schematic structural diagram of a FIFO chip in a data communication system according to a second embodiment of the present invention. With reference to figure 3 of the drawings,
Figure BDA0001645557050000101
in order to write the pin(s) to,
Figure BDA0001645557050000102
in order to read the pins of the memory,
Figure BDA0001645557050000103
in the case of a full-state pin,
Figure BDA0001645557050000104
the data communication process is a null state pin, D-IN is a data input pin, Q-OUT is a data output pin, and the data communication process specifically may be:
when FIFO chip
Figure BDA0001645557050000105
When the pins receive a write command (for example, a PWM signal) sent by the central control system, electric vehicle information data sent by the controller is written from the D-IN pins and stored; when the storage space occupied by the FIFO chip for storing the electric vehicle information data is the same as that of the FIFO chip, determining that the storage space state of the FIFO chip is in a full state, and at the moment, determining that the storage space state of the FIFO chip is in a full state
Figure BDA0001645557050000106
The pin is pulled down, the central control system receives the pull-down signal and stops sending the write instruction, namely the central control system stops writing the instruction according to the full state and sends a read instruction (for example, a falling edge clock signal) to the FIFO chip; when FIFO chip
Figure BDA0001645557050000107
When the pin receives a reading instruction, the central control system reads OUT the stored information data of the electric vehicle from the Q-OUT pin,determining that the storage space state of the FIFO chip is an empty state until the FIFO chip finishes reading the stored electric vehicle information data, and then reading the electric vehicle information data from the FIFO chip
Figure BDA0001645557050000108
The pin sends the empty state to the central control system so that the central control system stops sending the reading instruction and sends the writing instruction to the FIFO chip.
Fig. 4 is a schematic structural diagram of a preferred data communication system according to a second embodiment of the present invention, wherein a pin of a GPIO controller is electrically connected to a pin of a D-IN of a FIFO chip for outputting a line signal (electric vehicle information data); the Q-OUT pin of the FIFO chip is electrically connected with the GPIO pin of the central control system and is used for reading FIFO chip data signals (electric vehicle information data); wherein, FIFO chip
Figure BDA0001645557050000111
Pin and
Figure BDA0001645557050000112
the pins are respectively and electrically connected with different GPIO pins of the central control system and are used for respectively receiving a write instruction (for example, a PWM signal) and a read instruction (for example, a falling edge clock signal); wherein the FIFO chip
Figure BDA0001645557050000113
Pin and
Figure BDA0001645557050000114
the pins are respectively and electrically connected with different GPIO pins of the central control system and are used for respectively sending a full state and an empty state to the central control system so that the central control system can switch between a write instruction and a read instruction according to the state of the storage space.
The FIFO chip generates a storage space state according to the stored electric vehicle information data and sends the storage space state to the central control system, so that the central control system switches between a write instruction and a read instruction according to the storage space state, and data communication between the controller and the central control system is completed.
The data communication system provided by the embodiment of the present invention is the same inventive concept as the data communication method provided by the first embodiment, and the technical details that are not described in detail in the present embodiment can be referred to in the first embodiment.
EXAMPLE III
Fig. 5 is a schematic structural diagram of an electric vehicle according to a third embodiment of the present invention, and it should be noted that the structure of the electric vehicle is not limited to the structure shown in fig. 5. Referring to fig. 5, the electric vehicle includes: according to the data communication system 10 and the vehicle frame 20 provided by any embodiment of the invention, the data communication system 10 is arranged on the vehicle frame 20.
The electric vehicle provided by the embodiment and the data communication method provided by the first embodiment belong to the same inventive concept, and technical details which are not described in detail in the embodiment can be referred to in the first embodiment, and the first embodiment and the second embodiment have the same beneficial effects.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will appreciate that the present invention is not limited to the particular embodiments described herein, and that various obvious changes, rearrangements and substitutions will now be apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in some detail by the above embodiments, the invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the invention, and the scope of the invention is determined by the scope of the appended claims.

Claims (7)

1. A data communication method is characterized by being applied to an electric vehicle provided with a central control system and comprising the following steps:
the first-in first-out FIFO chip receives a write instruction sent by the central control system, writes electric vehicle information data sent by the controller according to the write instruction and stores the electric vehicle information data;
the FIFO chip generates a storage space state according to the stored electric vehicle information data and sends the storage space state to a central control system so that the central control system switches the write instruction and the read instruction according to the storage space state;
the FIFO chip receives a reading instruction sent by a central control system and sends stored electric vehicle information data to the central control system according to the reading instruction;
the FIFO chip generates a storage space state according to the stored electric vehicle information data, and the method comprises the following steps:
when the storage space occupied by the electric vehicle information data is the same as the storage space of the FIFO chip, determining that the storage space state is a full state;
correspondingly, after the FIFO chip receives a read instruction sent by a central control system and sends stored electric vehicle information data to the central control system according to the read instruction, the method further includes:
when the FIFO chip finishes transmitting the stored electric vehicle information data, determining that the storage space state is an empty state, and sending the empty state to the central control system so that the central control system switches the write instruction and the read instruction;
the write instruction and the read instruction of the FIFO chip are carried out asynchronously;
the read instruction is a falling edge clock signal;
the electric vehicle information data are transmitted by taking frames as units, and each frame of electric vehicle information data comprises a start bit, a data bit and an idle bit.
2. The method of claim 1, wherein the storage space states comprise a full state and an empty state;
correspondingly, the central control system performs switching between the write instruction and the read instruction according to the storage space state, and the switching includes:
if the storage space state is a full state, the central control system switches the write instruction to a read instruction according to the full state;
and if the storage space state is an empty state, the central control system switches the read instruction to a write instruction according to the empty state.
3. The method of any of claims 1-2, wherein the write command is a PWM signal, wherein a period of the PWM signal corresponds to a clock period of the controller.
4. The method according to any one of claims 1-2, wherein the data type of the electric vehicle information data includes at least one of: fault prompt, operation prompt and startup and shutdown prompt.
5. A data communication system is characterized in that the data communication system is applied to an electric vehicle provided with a central control system and comprises a controller, a first-in first-out (FIFO) chip and the central control system; wherein,
the controller is used for sending the collected electric vehicle information data to the FIFO chip;
the FIFO chip is electrically connected with the controller and used for writing the electric vehicle information data sent by the controller according to the write instruction and storing the electric vehicle information data when receiving the write instruction sent by the central control system; the electric vehicle information data storage system is used for sending stored electric vehicle information data to a central control system according to a reading instruction when the reading instruction sent by the central control system is received; the electric vehicle information data storage system is also used for generating a storage space state according to the stored electric vehicle information data and sending the storage space state to a central control system;
the central control system is electrically connected with the FIFO chip and is used for switching the write instruction and the read instruction according to the storage space state;
the FIFO chip is specifically configured to:
when the storage space occupied by the electric vehicle information data is the same as that of the FIFO chip, determining that the storage space state is a full state; when the FIFO chip finishes transmitting the stored electric vehicle information data, determining that the storage space state is an empty state, and sending the empty state to the central control system so that the central control system switches the write instruction and the read instruction;
the write instruction and the read instruction of the FIFO chip are carried out asynchronously;
the read instruction is a falling edge clock signal;
the electric vehicle information data is transmitted by taking a frame as a unit, and each frame of electric vehicle information data comprises a start bit, a data bit and an idle bit.
6. The system of claim 5, further comprising:
and the signal sensor is electrically connected with the controller and used for acquiring the information data of the electric vehicle and sending the information data of the electric vehicle to the controller.
7. An electric vehicle comprising a data communication system according to any of claims 5 to 6 and a frame, said data communication system being provided on said frame.
CN201810400361.3A 2018-04-28 2018-04-28 Data communication method and system and electric vehicle Active CN108628780B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810400361.3A CN108628780B (en) 2018-04-28 2018-04-28 Data communication method and system and electric vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810400361.3A CN108628780B (en) 2018-04-28 2018-04-28 Data communication method and system and electric vehicle

Publications (2)

Publication Number Publication Date
CN108628780A CN108628780A (en) 2018-10-09
CN108628780B true CN108628780B (en) 2022-11-08

Family

ID=63694945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810400361.3A Active CN108628780B (en) 2018-04-28 2018-04-28 Data communication method and system and electric vehicle

Country Status (1)

Country Link
CN (1) CN108628780B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111432382B (en) * 2020-03-10 2020-12-22 刘天舒 Data transmission method, device and system and NFC storage device
CN113031927A (en) * 2021-03-26 2021-06-25 苏州挚途科技有限公司 Data input and output method, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488607A (en) * 2013-09-07 2014-01-01 安徽华东光电技术研究所 Communication system and communication method for SOC (system on chip) processor and FPGA (field-programmable gate array) chip on embedded linux platform
CN106158012A (en) * 2016-07-05 2016-11-23 深圳市紫光同创电子有限公司 Sequential processing method, on-chip SRAM and the FPGA of FPGA on-chip SRAM
CN106483865A (en) * 2016-12-28 2017-03-08 郑州北斗七星通讯科技有限公司 A kind of Intelligent home monitoring system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR960008470B1 (en) * 1994-01-18 1996-06-26 Daewoo Electronics Co Ltd Apparatus for transferring bit stream data adaptively in the moving picture
JP2005222446A (en) * 2004-02-09 2005-08-18 Matsushita Electric Ind Co Ltd On-board debugging apparatus and semiconductor circuit apparatus
CN101187896B (en) * 2007-12-14 2011-04-06 中兴通讯股份有限公司 On-spot programmable gate array data cache management method
CN102163045B (en) * 2011-01-14 2013-02-13 福建工程学院 Six-axis linkage control method based on ARM9 embedded system and complex programmable logic device (CPLD)
CN205644087U (en) * 2016-05-25 2016-10-12 象山赛柏斯智能科技有限公司 Smart home monitoring system
CN107022835B (en) * 2017-03-29 2019-02-26 东华大学 It is a kind of for controlling the multitask real-time control system and method for computer flat-knitting machine head

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488607A (en) * 2013-09-07 2014-01-01 安徽华东光电技术研究所 Communication system and communication method for SOC (system on chip) processor and FPGA (field-programmable gate array) chip on embedded linux platform
CN106158012A (en) * 2016-07-05 2016-11-23 深圳市紫光同创电子有限公司 Sequential processing method, on-chip SRAM and the FPGA of FPGA on-chip SRAM
CN106483865A (en) * 2016-12-28 2017-03-08 郑州北斗七星通讯科技有限公司 A kind of Intelligent home monitoring system

Also Published As

Publication number Publication date
CN108628780A (en) 2018-10-09

Similar Documents

Publication Publication Date Title
CN107415691B (en) Centralized vehicle-mounted display control system
CN110979008B (en) Multiprocessor distributed dual-screen instrument
US9112721B2 (en) System and methods for enabling a controller area network (CAN) device to operate in different power modes based upon the payload of a wake-up message
CN102591834B (en) Single wire bus system
CN101689209B (en) Method and system for reducing triggering latency in universal serial bus data acquisition
JP2015154482A (en) Controller for in-vehicle ethernet and control method thereof
CN108628780B (en) Data communication method and system and electric vehicle
US10194389B2 (en) Data processing device, data processing method, and program for sampling rate control of sensors
JP2002236480A (en) Updating method of image frame on screen and display system
CN107942797A (en) Embedded dual core servo controller and its design method based on SOPC
CN101742045B (en) Receiver, image forming device, data reception method and program storage medium
CN100481895C (en) Method and device for carrying out TV set software upgrade
JP4350808B2 (en) Data processing system having display controller with burst direct memory access and method for periodically supplying instructions in the system
CN106557148B (en) A kind of interface circuit, display driver, terminal device and display control method
CN112929343A (en) Cross-domain communication method, system, equipment and storage medium for intelligent cockpit
CN109933435A (en) Control method, device and computer equipment
CN101594719B (en) Offline control device
CN112882985A (en) Data transmission system, method, device and medium
US9836247B2 (en) Image processing semiconductor device and image processing device
CN109031368A (en) Method for reading GPS receiving output effective data by combining PPS signal
KR100361511B1 (en) Multi-Function Serial Communication Interface Device
CN102662892B (en) FlexRay communication controller
JPH08202677A (en) Microcontroller
CN115056735B (en) Vehicle and vehicle control method
JP2776785B2 (en) Serial data transfer device

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200416

Address after: Room 706, Room 1699, South Zuchong Road, Yushan Town, Kunshan City, Suzhou City, Jiangsu Province

Applicant after: Kunshan Pinyuan Intellectual Property Operating Technology Co.,Ltd.

Address before: 200233, Shanghai, Jinshan District Jinshan Industrial Zone, Ting Wei highway 65584, room 1309

Applicant before: SHANGHAI WIND SCIENCE AND TECHNOLOGIES Co.,Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200628

Address after: 400030 Chongqing City, Shapingba District, No. 6, Paul Road, No. 4

Applicant after: Chongqing Huiye Communication Technology Co.,Ltd.

Address before: Room 706, Room 1699, South Zuchong Road, Yushan Town, Kunshan City, Suzhou City, Jiangsu Province

Applicant before: Kunshan Pinyuan Intellectual Property Operating Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant