CN116708511B - Method, equipment and medium based on microcontroller integrated vehicle-machine interconnection technology - Google Patents

Method, equipment and medium based on microcontroller integrated vehicle-machine interconnection technology Download PDF

Info

Publication number
CN116708511B
CN116708511B CN202310878972.XA CN202310878972A CN116708511B CN 116708511 B CN116708511 B CN 116708511B CN 202310878972 A CN202310878972 A CN 202310878972A CN 116708511 B CN116708511 B CN 116708511B
Authority
CN
China
Prior art keywords
difference value
compression
sequence
operation element
compressed
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
CN202310878972.XA
Other languages
Chinese (zh)
Other versions
CN116708511A (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.)
Guangdong Icar Guard Information Technology Co ltd
Original Assignee
Guangdong Icar Guard Information 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 Guangdong Icar Guard Information Technology Co ltd filed Critical Guangdong Icar Guard Information Technology Co ltd
Priority to CN202310878972.XA priority Critical patent/CN116708511B/en
Publication of CN116708511A publication Critical patent/CN116708511A/en
Application granted granted Critical
Publication of CN116708511B publication Critical patent/CN116708511B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a method, equipment and medium based on a microcontroller integrated vehicle-machine interconnection technology, belonging to the technical field of data processing, and specifically comprising the following steps: installing an embedded system in the vehicle, wherein the embedded system is provided with a microcontroller, a memory and a communication module and is used for reading vehicle sensor data and executing vehicle functions; installing a matched application program in the smart phone, wherein the application program is used for updating data; the application program compresses the digital data stream through the communication module and then transmits the compressed digital data stream to the embedded system, and the embedded system restores the digital data stream to update the vehicle functions; according to the invention, the matched application program is installed in the smart phone and is in communication connection with the embedded system, so that the data are efficiently and accurately compressed, and the real-time updating and data transmission of the vehicle functions are realized by means of the computing power and the network of the smart phone.

Description

Method, equipment and medium based on microcontroller integrated vehicle-machine interconnection technology
Technical Field
The invention relates to the technical field of data processing, in particular to a method, equipment and medium based on a microcontroller integrated vehicle-machine interconnection technology.
Background
After the existing car machine is interconnected with the mobile phone, the content of the mobile phone is projected to the car machine end through usb or wifi, and the car machine end is directly displayed or is modified to be displayed. The main operation is carried out at the mobile phone end, so that the app at the mobile phone end is very light and handy, too many bugs are avoided, and the mobile phone end can be connected with other wifi at any time, so that even if the bugs are to be upgraded, the mobile phone end is very easy.
Meanwhile, the operation performance of the automobile engine of most middle-grade automobile types at present is not too high, and the mechanism can effectively lighten the operation load of the automobile engine, so that the phenomenon of blocking caused by the fact that the operation of the automobile engine is not finished is reduced.
However, this method has a certain defect, and the main problem is that the frames are compressed and transmitted to the vehicle terminal after the display of the mobile phone terminal is completed, and then decompressed and displayed by the vehicle terminal. The problem that this brings is that the vehicle-mounted terminal has limited operation capability, if the transmitted data is larger, the vehicle-mounted terminal still can cause the phenomenon of blocking caused by that the decoding is not finished or the transmission speed reaches the bottleneck.
Disclosure of Invention
The invention aims to provide a method, equipment and medium based on a microcontroller integrated vehicle-machine interconnection technology, which solve the following technical problems:
when receiving mobile phone transmission data, the vehicle terminal has limited computing capability, and if the transmitted data is larger, the vehicle terminal can still cause the phenomenon of blocking caused by incapability of decoding or bottleneck of transmission speed.
The aim of the invention can be achieved by the following technical scheme:
a method based on a microcontroller integrated vehicle-machine interconnection technology comprises the following steps:
installing an embedded system in the vehicle, wherein the embedded system is provided with a microcontroller, a memory and a communication module and is used for reading vehicle sensor data and executing vehicle functions;
installing a matched application program in the smart phone, wherein the application program is used for updating data;
the application program compresses the digital data stream through the communication module and then transmits the compressed digital data stream to the embedded system, and the embedded system restores the digital data stream to update the vehicle functions.
As a further scheme of the invention: the microcontroller reads the sensor data in real time and displays vehicle information including oil quantity, speed and mileage to a user in real time through a smart phone application program; and transmits a hardware malfunction alarm and an abnormal collision alarm to the user.
As a further scheme of the invention: the data compression process comprises the following steps:
taking absolute values of all elements in the digital data stream, marking the absolute values as operation elements, storing positive and negative signs corresponding to all the elements in sequence, sequentially calculating differences between the operation elements and the previous operation element, enabling the first element to be unchanged, and sequentially generating a difference sequence from the differences;
and dividing the difference sequence by using a preset compression coefficient to obtain a compression difference, setting compression intervals [ A, B ], wherein A and B are preset thresholds, screening the compression difference with the value not in the compression interval, carrying out assignment again, marking the compression difference as an abnormal compression difference, and sequentially generating the compression difference sequence from the compression difference and the abnormal compression difference.
As a further scheme of the invention: the process of data compression further comprises:
multiplying the compressed difference value sequence by a compression coefficient and sequentially restoring the compressed difference value sequence based on a first operation element, marking the operation element obtained by recovering the abnormal compressed difference value as a pending operation element, marking the operation element corresponding to the normal compressed difference value as a common operation element, recalculating the difference value between the normal operation element at the next position of the pending operation element and the pending operation element, marking the difference value as the pending difference value, compressing to obtain a compressed pending difference value, replacing the compressed difference value corresponding to the normal operation element at the previous position with the compressed pending difference value, generating a new compressed difference value sequence, and adding the first initial element to the new compressed difference value sequence to obtain the compressed digital data stream.
As a further scheme of the invention: the process of restoring the digital data stream is as follows:
and multiplying the compressed difference value sequence by a compression coefficient in sequence to obtain a difference value sequence, adding a first difference value in the difference value sequence and a first operation element to obtain a second operation element, adding a subsequent difference value with the operation element of the previous bit in sequence to generate an operation element sequence, and obtaining a positive sign and a negative sign corresponding to the operation element to obtain the element of the restored digital data stream.
As a further scheme of the invention: the process of compressing the difference value of which the value is not in the compression interval and carrying out assignment again is as follows:
in the quantization interval [ A, B ], A is smaller than B, when the abnormal compression difference value is smaller than A, the abnormal compression difference value is reassigned to A, and when the abnormal compression difference value is larger than B, the abnormal compression difference value is reassigned to B.
As a further scheme of the invention: marking the sequence of the abnormal compression difference values in the digital data stream, and independently transmitting the abnormal compression difference value sequence to the embedded system through an application program.
A computer device comprising a display screen, a memory, a processor and a computer program, wherein the memory stores the computer program, which when executed by the processor, causes the processor to perform the steps of the method based on the integrated microcontroller vehicle-machine interconnection technology.
A readable storage medium having stored thereon a computer program which, when executed by a processor, causes the processor to perform the steps of the method based on microcontroller integrated vehicle-machine interconnection technology.
The invention has the beneficial effects that:
the invention provides a method based on a microcontroller integrated vehicle-computer interconnection technology, which is characterized in that a matched application program is installed in a smart phone and is in communication connection with an embedded system, and real-time updating and data transmission of vehicle functions are realized by means of calculation power and a network of the smart phone;
in the data compression process, a preset compression coefficient and a compression interval are adopted, a compression difference value of which the value is not in the compression interval is reassigned, marked as an abnormal compression difference value, and subjected to secondary compression, so that the data transmission efficiency and reliability are improved, and the data compression efficiency and accuracy are ensured.
Drawings
The invention is further described below with reference to the accompanying drawings.
Fig. 1 is a flow chart of a method based on the microcontroller integrated vehicle-machine interconnection technology of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, the invention discloses a method, a device and a medium based on a microcontroller integrated vehicle-machine interconnection technology, comprising the following steps:
installing an embedded system in the vehicle, wherein the embedded system is provided with a microcontroller, a memory and a communication module and is used for reading vehicle sensor data and executing vehicle functions;
installing a matched application program in the smart phone, wherein the application program is used for updating data;
the application program compresses the digital data stream through the communication module and then transmits the compressed digital data stream to the embedded system, and the embedded system restores the digital data stream to update the vehicle functions;
the invention provides a method based on a microcontroller integrated vehicle-computer interconnection technology, which is characterized in that a matched application program is installed in a smart phone and is in communication connection with an embedded system, and real-time updating and data transmission of vehicle functions are realized by means of calculation power and a network of the smart phone.
In a preferred embodiment of the invention, the microcontroller reads the sensor data in real time and displays vehicle information to the user in real time through a smart phone application program, including oil quantity, speed and mileage; and transmits a hardware malfunction alarm and an abnormal collision alarm to the user.
In another preferred embodiment of the present invention, the data compression process includes:
taking absolute values of all elements in the digital data stream, marking the absolute values as operation elements, storing positive and negative signs corresponding to all the elements in sequence, sequentially calculating differences between the operation elements and the previous operation element, enabling the first element to be unchanged, and sequentially generating a difference sequence from the differences;
and dividing the difference sequence by using a preset compression coefficient to obtain a compression difference, setting compression intervals [ A, B ], wherein A and B are preset thresholds, screening the compression difference with the value not in the compression interval, carrying out assignment again, marking the compression difference as an abnormal compression difference, and sequentially generating the compression difference sequence from the compression difference and the abnormal compression difference.
In a preferred case of this embodiment, the process of data compression further includes:
multiplying the compressed difference value sequence by a compression coefficient and sequentially restoring the compressed difference value sequence based on a first operation element, marking the operation element obtained by recovering the abnormal compressed difference value as a pending operation element, marking the operation element corresponding to the normal compressed difference value as a common operation element, recalculating the difference value between the normal operation element at the next position of the pending operation element and the pending operation element, marking the difference value as the pending difference value, compressing to obtain a compressed pending difference value, replacing the compressed difference value corresponding to the normal operation element at the previous position with the compressed pending difference value, generating a new compressed difference value sequence, and adding the first initial element to the new compressed difference value sequence to obtain the compressed digital data stream.
In another preferred case of this embodiment, the process of reducing the digital data stream is:
multiplying the compressed difference sequence by a compression coefficient in sequence to obtain a difference sequence, adding a first difference value in the difference sequence and a first operation element to obtain a second operation element, adding a subsequent difference value with the operation element of the previous bit in sequence to generate an operation element sequence, and obtaining a positive sign and a negative sign corresponding to the operation element to obtain elements of the restored digital data stream;
in the data compression process, a preset compression coefficient and a compression interval are adopted, a compression difference value of which the value is not in the compression interval is reassigned, marked as an abnormal compression difference value, and subjected to secondary compression, so that the data transmission efficiency and reliability are improved, and the data compression efficiency and accuracy are ensured.
In another preferred case of this embodiment, the process of assigning the compressed difference value of the value not in the compression interval again is:
in the quantization interval [ A, B ], A is smaller than B, when the abnormal compression difference value is smaller than A, the abnormal compression difference value is reassigned to A, and when the abnormal compression difference value is larger than B, the abnormal compression difference value is reassigned to B.
In another preferred case of this embodiment, the order of the outlier compressed difference in the digital data stream is marked and the outlier compressed difference sequence is sent individually to the embedded system by the application.
A computer device comprising a display screen, a memory, a processor and a computer program, wherein the memory stores the computer program, which when executed by the processor, causes the processor to perform the steps of the method based on the integrated microcontroller vehicle-machine interconnection technology.
A readable storage medium having stored thereon a computer program which, when executed by a processor, causes the processor to perform the steps of the method based on microcontroller integrated vehicle-machine interconnection technology.
The foregoing describes one embodiment of the present invention in detail, but the description is only a preferred embodiment of the present invention and should not be construed as limiting the scope of the invention. All equivalent changes and modifications within the scope of the present invention are intended to be covered by the present invention.

Claims (4)

1. The method based on the microcontroller integrated vehicle-machine interconnection technology is characterized by comprising the following steps of:
installing an embedded system in the vehicle, wherein the embedded system is provided with a microcontroller, a memory and a communication module and is used for reading vehicle sensor data and executing vehicle functions;
installing a matched application program in the smart phone, wherein the application program is used for updating data;
the application program compresses the digital data stream through the communication module and then transmits the compressed digital data stream to the embedded system, and the embedded system restores the digital data stream to update the vehicle functions;
the process of compressing the digital data stream comprises the following steps:
taking absolute values of all elements in the digital data stream, marking the absolute values as operation elements, storing positive and negative signs corresponding to all the elements in sequence, sequentially calculating differences between the operation elements and the previous operation element, enabling the first element to be unchanged, and sequentially generating a difference sequence from the differences;
dividing the difference sequence by using a preset compression coefficient to obtain a compression difference value, setting compression intervals [ A, B ], wherein A and B are preset thresholds, screening the compression difference value of which the value is not in the compression interval, carrying out assignment again, marking the compression difference value as an abnormal compression difference value, and sequentially generating a compression difference value sequence by the compression difference value and the abnormal compression difference value;
the process of compressing the digital data stream further comprises:
multiplying the compressed difference value sequence by a compression coefficient and sequentially restoring the compressed difference value sequence based on a first operation element, marking the operation element obtained by recovering the abnormal compressed difference value as a pending operation element, marking the operation element corresponding to the normal compressed difference value as a common operation element, recalculating the difference value between the normal operation element at the next position of the pending operation element and the pending operation element, marking the difference value as the pending difference value, compressing to obtain a compressed pending difference value, replacing the compressed difference value corresponding to the original normal operation element at the next position with the compressed pending difference value, generating a new compressed difference value sequence, and adding the first initial element to the new compressed difference value sequence to obtain a compressed digital data stream;
the process of compressing the difference value of which the value is not in the compression interval and carrying out assignment again is as follows:
in the quantization interval [ A, B ], A is smaller than B, when the abnormal compression difference value is smaller than A, the abnormal compression difference value is reassigned to A, and when the abnormal compression difference value is larger than B, the abnormal compression difference value is reassigned to B;
marking the sequence of the abnormal compression difference values in the digital data stream, and independently transmitting the abnormal compression difference value sequence to the embedded system through an application program;
the process of restoring the digital data stream is as follows:
and multiplying the compressed difference value sequence by a compression coefficient in sequence to obtain a difference value sequence, adding a first difference value in the difference value sequence and a first operation element to obtain a second operation element, adding a subsequent difference value with the operation element of the previous bit in sequence to generate an operation element sequence, and obtaining a positive sign and a negative sign corresponding to the operation element to obtain the element of the restored digital data stream.
2. The method based on the integrated vehicle-machine interconnection technology of the microcontroller according to claim 1, wherein the microcontroller reads the sensor data in real time and displays vehicle information including oil quantity, speed and mileage to a user in real time through a smart phone application program; and transmits a hardware malfunction alarm and an abnormal collision alarm to the user.
3. A computer device comprising a display screen, a memory, a processor and a computer program, wherein the memory has stored therein the computer program which, when executed by the processor, causes the processor to perform the steps of the method based on the integrated microcontroller vehicle-machine interconnection technique of any one of claims 1-2.
4. A readable storage medium, characterized in that it has stored thereon a computer program, which, when executed by a processor, causes the processor to perform the steps of the method based on the integrated microcontroller vehicle-machine interconnection technique according to any one of claims 1-2.
CN202310878972.XA 2023-07-18 2023-07-18 Method, equipment and medium based on microcontroller integrated vehicle-machine interconnection technology Active CN116708511B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310878972.XA CN116708511B (en) 2023-07-18 2023-07-18 Method, equipment and medium based on microcontroller integrated vehicle-machine interconnection technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310878972.XA CN116708511B (en) 2023-07-18 2023-07-18 Method, equipment and medium based on microcontroller integrated vehicle-machine interconnection technology

Publications (2)

Publication Number Publication Date
CN116708511A CN116708511A (en) 2023-09-05
CN116708511B true CN116708511B (en) 2024-02-02

Family

ID=87824077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310878972.XA Active CN116708511B (en) 2023-07-18 2023-07-18 Method, equipment and medium based on microcontroller integrated vehicle-machine interconnection technology

Country Status (1)

Country Link
CN (1) CN116708511B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117439146B (en) * 2023-12-06 2024-03-19 广东车卫士信息科技有限公司 Data analysis control method and system for charging pile

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105357772A (en) * 2015-11-12 2016-02-24 广东翼卡车联网服务有限公司 Method and system for interconnecting vehicle navigation system and mobile phone
CN105516371A (en) * 2016-02-25 2016-04-20 王利 Vehicular and mobile terminal interactive system on basis of internet of things
CN106020011A (en) * 2015-12-09 2016-10-12 展视网(北京)科技有限公司 Vehicle-mounted cloud intelligent control system
CN110288666A (en) * 2019-06-28 2019-09-27 深圳前海微众银行股份有限公司 A kind of data compression method and apparatus
CN115442447A (en) * 2022-08-22 2022-12-06 南京森特智能科技有限公司 Edge compression computing device for multi-source data access
CN115918104A (en) * 2020-06-05 2023-04-04 Oppo广东移动通信有限公司 Target image data generation method, electronic device, and non-transitory computer-readable medium
CN116033034A (en) * 2023-03-30 2023-04-28 湖南迈克森伟电子科技有限公司 Data processing system for wireless receiving and transmitting platform

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105357772A (en) * 2015-11-12 2016-02-24 广东翼卡车联网服务有限公司 Method and system for interconnecting vehicle navigation system and mobile phone
CN106020011A (en) * 2015-12-09 2016-10-12 展视网(北京)科技有限公司 Vehicle-mounted cloud intelligent control system
CN105516371A (en) * 2016-02-25 2016-04-20 王利 Vehicular and mobile terminal interactive system on basis of internet of things
CN110288666A (en) * 2019-06-28 2019-09-27 深圳前海微众银行股份有限公司 A kind of data compression method and apparatus
CN115918104A (en) * 2020-06-05 2023-04-04 Oppo广东移动通信有限公司 Target image data generation method, electronic device, and non-transitory computer-readable medium
CN115442447A (en) * 2022-08-22 2022-12-06 南京森特智能科技有限公司 Edge compression computing device for multi-source data access
CN116033034A (en) * 2023-03-30 2023-04-28 湖南迈克森伟电子科技有限公司 Data processing system for wireless receiving and transmitting platform

Also Published As

Publication number Publication date
CN116708511A (en) 2023-09-05

Similar Documents

Publication Publication Date Title
CN116708511B (en) Method, equipment and medium based on microcontroller integrated vehicle-machine interconnection technology
CN108900843B (en) Monochrome image compression method, apparatus, medium, and electronic device
EP2605133A1 (en) Software version upgrading method, terminal and system
CN109756568B (en) File processing method and device and computer readable storage medium
CN112637598B (en) Video compression and decompression method, device, equipment and readable storage medium
CN108092667B (en) Method and device for compressing time series data and inquiring time series data
CN112948151A (en) Program interface image transmission method, substrate management controller and remote control equipment
CN115567589A (en) Compression transmission method, device, equipment and storage medium of JSON data
CN112994804B (en) Rocket telemetry data processing method and device, electronic equipment and storage medium
CN112579140A (en) Software upgrading method and device
CN112347650A (en) Hardware-in-loop simulation test method and system for automatic driving
CN116033034B (en) Data processing system for wireless receiving and transmitting platform
CN103391537A (en) Method and device for writing international mobile equipment identify (IMEI) number through mobile terminal
CN114257879A (en) Method and system for playing video
CN111950679A (en) Electronic tag display method and device and computer readable storage medium
CN116394762B (en) Fuel cell vehicle data processing system and method and fuel cell vehicle
CN111538651A (en) Interface testing method, device, server and storage medium
CN111831211A (en) Data transmission method, device, equipment and storage medium
CN114172897B (en) Method and system for transmitting files of PC (personal computer) end and Android end
CN112331125B (en) Data processing method and device for display panel
CN115629913A (en) Automobile driving mileage storage and verification method and device, electronic equipment and storage medium
CN117873515A (en) Firmware updating method, device and equipment
CN116434377A (en) Vehicle driving video and audio storage method and device, electronic equipment and storage medium
CN115361032A (en) Antenna unit for 5G communication
CN114070890A (en) File compression method, system, terminal and computer readable storage medium

Legal Events

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