The invention discloses a communication method of vehicle-mounted software and a vehicle-mounted unit and vehicle-mounted equipment, and the communication method is applied to the vehicle-mounted software and comprises the following steps: carrying out communication connection with the vehicle-mounted unit; receiving a message body sent by the vehicle-mounted unit, wherein various types of messages are integrated in the message body; performing message queue entering processing on the message body; adding the message queue into a task stack of a thread pool, and starting a plurality of sub-threads for processing; and performing UI interface refreshing on task results processed by the plurality of sub-threads through the main thread. According to the method and the device, various types of messages are integrated into one message body, so that the problem of high concurrency of the messages is solved. Moreover, a plurality of sub-threads execute time-consuming operation tasks, and UI interface refreshing is only executed in the main thread, so that a large number of messages from the vehicle-mounted unit can be efficiently processed in real time, the responsiveness of the UI interface is ensured in the whole processing process, and the UI interface of the vehicle-mounted software is smoother.

    本发明公开了车载软件与车载单元的通信方法及车载设备,该通信方法应用于车载软件,包括以下步骤:与车载单元进行通信连接;接收车载单元发出的消息体,消息体中已整合多种类型的消息;将消息体进行消息队列入队处理;将消息队列添加到线程池的任务栈中,开启多个子线程进行处理;将多个子线程处理的任务结果通过主线程进行UI界面的刷新。本发明通过将多种类型的消息整合成一条消息体,解决了消息高并发的问题。并且,由多个子线程执行耗时操作的任务,UI界面刷新只在主线程中执行,因此能够实时、高效地处理来自车载单元的大量消息,并且整个处理过程确保了UI界面的响应性,使车载软件的UI界面更加流畅。


    Access

    Download


    Export, share and cite



    Title :

    Communication method of vehicle-mounted software and vehicle-mounted unit and vehicle-mounted equipment


    Additional title:

    车载软件与车载单元的通信方法及车载设备


    Contributors:
    LI BO (author)

    Publication date :

    2024-11-12


    Type of media :

    Patent


    Type of material :

    Electronic Resource


    Language :

    Chinese


    Classification :

    IPC:    G06F ELECTRIC DIGITAL DATA PROCESSING , Elektrische digitale Datenverarbeitung / B60R Fahrzeuge, Fahrzeugausstattung oder Fahrzeugteile, soweit nicht anderweitig vorgesehen , VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR / H04W WIRELESS COMMUNICATION NETWORKS , Drahtlose Kommunikationsnetze



    Vehicle-mounted communication equipment

    DONG GUANGMING | European Patent Office | 2022

    Free access

    Vehicle-mounted communication system and vehicle-mounted communication method

    NISHIYAMA HIROHITO / ITO MASUO / MORITA KEISUKE et al. | European Patent Office | 2015

    Free access

    Vehicle-mounted communication method, vehicle-mounted communication system, medium and computer equipment

    JIANG ZHIYONG / LUO JUAN / DONG ZONGXIANG et al. | European Patent Office | 2024

    Free access

    Vehicle-mounted communication equipment

    ZOU GUIBING | European Patent Office | 2020

    Free access

    Vehicle-mounted software updating method and vehicle-mounted system

    GOTO JUN | European Patent Office | 2022

    Free access