Disclosure of Invention
In view of the above, the present invention provides an OTA upgrading system, method and storage medium for an electric vehicle, so as to solve the problem in the prior art that the instrument system, controller and processor software of the electric vehicle cannot be updated in real time when the operation rule of the vehicle owner is analyzed.
According to a first aspect of the embodiment of the invention, an electric vehicle OTA upgrading system is provided, which comprises:
the intelligent terminal is in communication connection with the wireless communication module;
the wireless communication module is respectively connected with a processor, a controller, a memory and an instrument panel of the electric vehicle through a 485 communication interface.
Preferably, the processor is a Beijing Junzheng X2000 series chip.
Preferably, the wireless communication module is a bluetooth communication module.
Preferably, the bluetooth communication module is specifically a jie principle AC6936D type chip.
According to a second aspect of the embodiment of the invention, an electric vehicle OTA upgrading method is provided, which comprises the following steps:
receiving a software version number sent by a processor, a controller and an instrument system, and detecting whether the version number is the latest version;
if so, storing the software installation package into a memory of the electric vehicle;
if not, receiving a control instruction sent by the intelligent terminal, updating and upgrading the processor, the controller and the instrument system to the latest version, and storing the software installation package.
Preferably, the method further comprises the following steps:
detecting whether other electric vehicles with the same wireless communication module exist within a preset distance around the electric vehicle;
if yes, the electric vehicle is in communication connection with other electric vehicles, and whether the software versions of the processor, the controller and the instrument system of the other electric vehicles are lower than that of the electric vehicle is detected;
and if so, sending the installation package stored in the electric vehicle memory to other electric vehicles through a wireless communication module so as to update and upgrade the software versions of other electric vehicles to the latest version.
Preferably, the method further comprises the following steps: and if the communication of the installation package is interrupted in the transmission process, the software versions of the processor, the controller and the instrument system automatically roll back to the last version number to continue working, and an upgrade failure identifier is recorded.
Preferably, if yes, the electric vehicle is in communication connection with the other electric vehicles, specifically:
the wireless communication module of the electric vehicle starts a master-slave mode, the wireless communication module of the electric vehicle provided with the latest version processor, the controller and the instrument system is used as a relay, and meanwhile, the wireless communication modules of other electric vehicles are used as slave equipment for rapid matching communication.
Preferably, the preset distance is 60 meters.
According to a third aspect of embodiments of the present invention, there is provided a computer-readable storage medium including:
an erasable computer program stored thereon;
when the computer program is run on a computer device, it causes the computer device to perform the method described above.
The technical scheme provided by the embodiment of the invention can have the following beneficial effects:
according to the technical scheme, whether the software in the electric vehicle is the latest version can be detected in real time, if the software is not updated in time, inaccurate data results caused by operation of a vehicle owner and prediction and analysis of travel rules due to too low software version are avoided, and user experience is good.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the claims.
Example one
Fig. 1 is a block diagram schematic diagram illustrating an electric vehicle OTA upgrade system according to an exemplary embodiment, as shown in fig. 1, the system 1 comprising:
the system comprises a wireless communication module 101 and an intelligent terminal 102 in communication connection with the wireless communication module 101;
the wireless communication module 101 is connected to the processor 103, the controller 104, the memory 105 and the meter system 106 of the electric vehicle through 485 communication interfaces.
It should be noted that the technical solution provided in this embodiment is suitable for an electric two-wheeled vehicle or a three-wheeled vehicle that needs software upgrading.
It should be noted that, because the electric two-wheeled vehicle or the electric three-wheeled vehicle is a preferred scheme for medium-short distance traffic, and most vehicle owners are fixed, and have fixed travel laws and riding modes, in order to avoid inaccuracy caused by low version numbers of the devices when the vehicle owners operate and predict the travel laws and perform statistical analysis, the versions of the devices need to be updated in real time.
It should be noted that, in this embodiment, the wireless communication module is in communication connection with the intelligent terminal, and the wireless communication module is respectively connected with the processor, the controller, the memory and the instrument system of the electric vehicle, and when the intelligent terminal receives the version numbers sent by the processor, the controller, the memory and the instrument system, it is detected whether the version number is the latest version.
In particular practice, the processor model is the Beijing Junzheng X2000 series chip.
The chip is double
2 cores, the dominant frequency is 1.2GHz;
third core across boundary
0 (240 MHz), oriented to security management and real-time control;
h.264 codec 1080P @30fps;
built-in LPDDR3 128MB;
the double-camera Mipi interface + double ISPs can be synchronized in real time;
abundant peripheral interfaces.
In a specific practice, the wireless communication module is a bluetooth communication module.
In particular practice, the bluetooth communication module is in particular a jie principle AC6936D type chip.
It should be noted that, in this embodiment, the wireless communication module may be: 2G/3G/4G/5G/WiFi/Bluetooth/NFC/Zigbee and the like.
It should be noted that, in this embodiment, the bluetooth communication module main control chip adopts a zhhai jie principle AC6936D series SoC chip and a jie principle AC693N series chip, which creates a charging pin communication patent technology for the first time, and adopts a QFN 4 x 4mm ultra-small package design. The Jie's AC6936D supports Bluetooth 5.1, has 6mA ultra-low power consumption, automatic pairing, constant current charging, lossless decoding and HFi tone quality; the system has the advantages of supporting stereo double-ear conversation, starting up second connection, low delay of high-definition conversation, intelligent double-transmitter master-slave seamless switching, supporting aerial upgrading, intelligent charging bins, being convenient to produce and the like.
It should be noted that, in this embodiment, the chip used can automatically complete pairing, and provide basic device support for the electric vehicle in the master-slave mode.
Example two
Fig. 2 is a flowchart illustrating an electric vehicle OTA upgrade method according to an exemplary embodiment, as shown in fig. 2, the method including:
step S01, receiving software version numbers sent by a processor, a controller and an instrument system, and detecting whether the version numbers are latest versions;
s02, if yes, storing the software installation package into a memory of the electric vehicle;
and S03, if not, receiving a control instruction sent by the intelligent terminal, updating and upgrading the processor, the controller and the instrument system to the latest version, and storing the software installation package.
It should be noted that, according to the technical scheme of the embodiment, whether the software in the electric vehicle is the latest version can be detected in real time, and if not, the software is updated in time, so that inaccurate data results caused by too low software version to vehicle owner operation and trip rule prediction analysis are avoided, and the user experience is good.
It should be noted that detecting whether the version number is the latest version specifically includes: comparing the version number of the electric vehicle equipment with the version number stored in the background database, and if the storage number of the current equipment is: xxx.0101.01, while the version numbers stored in the background database are: xxx.0101.02, the device of the electric vehicle is not the latest version.
In specific practice, the method further comprises:
detecting whether other electric vehicles with the same wireless communication module exist in a preset distance around the electric vehicle;
if yes, the electric vehicle is in communication connection with other electric vehicles, and whether the software versions of the processor, the controller and the instrument system of the other electric vehicles are lower than that of the electric vehicle is detected;
and if so, sending the installation package stored in the electric vehicle memory to other electric vehicles through a wireless communication module so as to update and upgrade the software versions of other electric vehicles to the latest version.
In a specific practice, if the communication of the installation package is interrupted in the transmission process, the software versions of the processor, the controller and the instrument system automatically roll back to the last version number to continue working, and an upgrade failure identifier is recorded.
In a specific practice, if there is, the other electric vehicle is in communication connection with the other electric vehicle, specifically:
the wireless communication module of the electric vehicle starts a master-slave mode, the wireless communication module of the electric vehicle provided with the latest version processor, the controller and the instrument system is used as a relay, and meanwhile, the wireless communication modules of other electric vehicles are used as slave equipment for rapid matching communication.
In a specific practice, the preset distance is 60 meters.
It should be noted that, in the technical scheme of this embodiment, explain as wireless communication module with the bluetooth, after the car owner buys new electric motor car, download installation dedicated electric motor car APP through the smart mobile phone, the car owner is connected to the BLE bluetooth communication module of electric motor car through bluetooth of the mobile phone BLE module, the BLE bluetooth of electric motor car is connected to the treater of electric motor car through 485 communication interface, connect the controller of electric motor car through 485 communication interface, instrument system through 485 interface connection electric motor car, and send the treater, the controller, instrument system's software version number to the cell-phone above through bluetooth BLE module, after cell-phone and backstage database comparison version, confirm that it is electric motor car model and corresponding software version, if find that the software version is not up-to-date, give the controller of electric motor car through the cell-phone, instrument system, the automatic upgrade function is accomplished to the treater. If the software version is detected to be the latest version number, downloading the latest version software installation package of the electric vehicle into a storage of the electric vehicle, starting a master-slave mode by the Bluetooth of the synchronous electric vehicle, taking the Bluetooth of the electric vehicle with the latest software as a relay synchronously, detecting the electric vehicle with the same Bluetooth BLE module communication installed around the electric vehicle, taking the Bluetooth electric vehicle as slave equipment around the electric vehicle for quick matching communication, detecting that the electric vehicle equipment software version number of the slave Bluetooth is lower than the latest version, calling the latest version software installation package by the electric vehicle of the master Bluetooth equipment, upgrading a software system for equipment of the slave electric vehicle through BLE Bluetooth communication, and automatically starting a master-slave mode function and a mesh function of networking by the new slave Bluetooth electric vehicle after upgrading is completed. And starting the new surrounding electric vehicles to continuously upgrade the software systems of the relevant processors, instrument systems and controllers. The electric vehicles with the same Bluetooth communication can be circularly upgraded and networked with the mesh in such a way, and the function of quick and automatic upgrade is completed.
It should be noted that, in the technical solution of this embodiment, when the electric vehicle equipped with the master-slave bluetooth interrupts communication during upgrading, the processor, the controller, and the meter system software version number automatically roll back to the previous version number to continue working, and the processor records the identifier of the software upgrading failure.
It should be noted that in the technical solution of this embodiment, the BLE communication distance may reach more than 60 meters, and the meeting time of two electric vehicles exceeds 3S, which may complete the functions of identification, handshake communication, and software upgrade iteration of the master-slave electric vehicle.
Based on the above discussion, it can be known that there are various implementations of the technical solution of the present invention, and fig. 3 is a flowchart illustrating an OTA upgrading method for an electric vehicle according to another exemplary embodiment, as shown in fig. 3, the method includes:
s11, opening a mobile phone provided with an electric car APP;
s12, connecting the mobile phone with a wireless communication module of the electric vehicle;
s13, starting 485 handshake communication by the wireless communication module of the electric vehicle;
s14, reading the version number of the system equipment software of the electric vehicle;
s15, calling a corresponding version number of a background database by the mobile phone;
s16, comparing whether the version of the electric vehicle equipment system is the version number of the electric vehicle in the database;
s17, if yes, upgrading system software without OTA;
s18, if not, judging whether the electric vehicle completes OTA upgrade check and storage;
step S19, if not, marking upgrading failure and automatically rolling to the previous version software;
s20, if yes, the equipment which finishes the equipment system software upgrading becomes a networking role of master-slave uninterrupted switching;
s21, scanning the electric vehicles with the same wireless communication function from the electric vehicles and establishing handshaking communication;
s22, comparing the system version of the electric vehicle equipment with the version of the newly scanned electric vehicle equipment;
step S23, if not, the system software is not required to be upgraded by the OTA;
s24, if yes, the scanned new electric vehicle completes system upgrading, calibration and storage;
and S25, circulating in the way.
EXAMPLE III
Providing a computer readable storage medium having stored thereon an erasable computer program;
when the computer program is run on a computer device, it causes the computer device to perform the method described above.
It should be noted that the technical solution provided in this embodiment is suitable for an electric two-wheeled vehicle or a three-wheeled vehicle that needs software upgrading.
It should be noted that, in the technical scheme provided in this embodiment, the wireless communication module is in communication connection with the intelligent terminal, and the wireless communication module is respectively connected with the processor, the controller, the memory and the instrument system of the electric vehicle, and when the intelligent terminal receives the version numbers sent by the processor, the controller, the memory and the instrument system, it is detected whether the version number is the latest version.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present invention, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following technologies, which are well known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description of the specification, reference to the description of "one embodiment," "some embodiments," "an example," "a specific example," or "some examples" or the like means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are exemplary and not to be construed as limiting the present invention, and that changes, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.