CN114710755B - Message processing method, vehicle-mounted communication device, electronic equipment and storage medium - Google Patents

Message processing method, vehicle-mounted communication device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114710755B
CN114710755B CN202210323994.5A CN202210323994A CN114710755B CN 114710755 B CN114710755 B CN 114710755B CN 202210323994 A CN202210323994 A CN 202210323994A CN 114710755 B CN114710755 B CN 114710755B
Authority
CN
China
Prior art keywords
message
functional module
message processing
module
processing module
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
CN202210323994.5A
Other languages
Chinese (zh)
Other versions
CN114710755A (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.)
Chengdu Thunder Software Technology Co ltd
Original Assignee
Chengdu Thunder Software 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 Chengdu Thunder Software Technology Co ltd filed Critical Chengdu Thunder Software Technology Co ltd
Priority to CN202210323994.5A priority Critical patent/CN114710755B/en
Publication of CN114710755A publication Critical patent/CN114710755A/en
Application granted granted Critical
Publication of CN114710755B publication Critical patent/CN114710755B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • 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]
    • H04W4/48Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for in-vehicle communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Small-Scale Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a message processing method, a vehicle-mounted communication device, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving a first message sent by a second message processing module; determining a message type of the first message; and sending the first message to the first functional module under the condition that the message type is the target message type corresponding to the first functional module. The message processing method provided by the invention realizes that the received first message is subjected to descreening through the independently arranged message processing module, and only the message required by the first functional module is sent to the first functional module, so that the first functional module only needs to directly process the received first message and does not need to distinguish and judge the received message. The processing pressure of the first functional module is reduced.

Description

Message processing method, vehicle-mounted communication device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of internal communication of vehicle-mounted devices, and in particular, to a message processing method, a vehicle-mounted communication device, an electronic apparatus, and a storage medium.
Background
The current TBox is a general car networking terminal for the current car factories and is a bridge for connecting the background and the whole car network. The CAN transceiver is directly connected with the gateway to communicate with the whole vehicle network, CAN acquire the data of the entertainment CAN and the diagnosis CAN, and CAN control the BCM, the VCU and the like or issue diagnosis commands. TBox has many built-in and built-in resources, such as GPS, GSensor, BLE modules. The BLE module can realize that the mobile phone can directly control some functions of the vehicle without a background. The TBox is connected with the entertainment host through the USB, provides a network for the entertainment host, and carries out information transfer.
The TBox is used as the only control unit of the vehicle body which can be networked, and takes the mission of monitoring and controlling the state of the vehicle body. The TBox is mainly used for collecting vehicle related information including position information, attitude information, vehicle state information (by connecting with a CAN bus on the vehicle) and the like, and the information collected from the CAN bus is subjected to mutual coordination processing through a plurality of processes in the TBox MPU, and certain signal conversion processing and condition judgment are carried out to be reported to the cloud as effective signal notification; the instructions from the cloud end also need to be subjected to operations such as deserialization and decryption, and the operations are divided into work processes by the process inside the TBox.
In most TBoxs, internal process communication is realized by adopting a shared memory or point-to-point communication mode, but the methods have the problems of large internal resource occupation, low efficiency and the like.
Disclosure of Invention
In view of the above, the present invention provides a message processing method and a vehicle-mounted communication device, which at least partially solve the problems in the prior art.
According to one aspect of the application, a message processing method is provided, and the message processing method is applied to a first message processing module in a vehicle-mounted communication device, wherein the first message processing module has an association relationship with a first functional module in the vehicle-mounted communication device, at least one second functional module is arranged in the vehicle-mounted communication device, and each second functional module is provided with a corresponding second message processing module;
the method comprises the following steps:
receiving a first message sent by a second message processing module;
determining a message type of the first message;
and sending the first message to the first functional module under the condition that the message type is the target message type corresponding to the first functional module.
In an exemplary embodiment of the present application, the first message is sent by the second message processing module in a broadcast form.
In an exemplary embodiment of the present application, the method further comprises:
receiving a second message sent by the first functional module;
and sending the second messages in a broadcast mode so that each second message processing module can acquire the second messages.
In an exemplary embodiment of the present application, before the receiving the first message sent by the second message processing module, the method further includes:
receiving registration information sent by the first functional module; the registration information comprises at least one target message type corresponding to the first functional module;
and storing the registration information.
In an exemplary embodiment of the present application, the determining whether the message type is a target message type corresponding to the first functional module includes:
comparing the message type of the first message with the registration information, and determining whether the registration information has the same target message type as the message type of the first message.
In an exemplary embodiment of the present application, after the sending the first message to the first functional module, the method further includes:
sending notification information to the first functional module;
the notification information is used for notifying the first functional module that the first message arrives.
In an exemplary embodiment of the present application, after the sending of the notification information to the first functional module, the method further includes:
receiving feedback information sent by the first functional module;
the feedback information is sent to the first message processing module after the first functional module adds the first message to a message queue; the feedback information is used for notifying the first message processing module that the first message has been received, so that the first message processing module can continue to send messages to the first functional module.
In an exemplary embodiment of the present application, the first message processing module is established for the vehicle-mounted communication device in response to the activation of the first functional module.
In an exemplary embodiment of the present application, the determining a message type of the first message includes:
and acquiring target content of a setting field in the first message, wherein the target content is used for representing the message type of the first message.
According to an aspect of the present application, there is provided an in-vehicle communication apparatus including:
a first functional module;
the first message processing module has a corresponding relation with the first functional module;
at least one second functional module, each of the second functional modules having a corresponding second message processing module;
wherein the first message processing module is configured to perform the following method:
receiving a first message sent by a second message processing module;
determining a message type of the first message;
and sending the first message to the first functional module under the condition that the message type is the target message type corresponding to the first functional module.
According to one aspect of the present application, there is provided an electronic device comprising a processor and a memory;
the processor is configured to perform the steps of any of the methods described above by invoking a program or instruction stored in the memory.
According to one aspect of the present application, there is provided a computer-readable storage medium storing a program or instructions that cause a computer to perform the steps of any one of the methods described above.
According to the message processing method, the message type of the received first message can be determined through the first message processing module, and whether the first message is sent to the first functional module is determined according to whether the message type is the target message type corresponding to the associated first functional module or not. Therefore, the method and the device realize that the received first message is subjected to descreening through the independently arranged message processing module, and only the message required by the first functional module is sent to the first functional module, so that the first functional module only needs to directly process the received first message and does not need to distinguish and judge the received message. The processing pressure of the first functional module is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a message processing method provided in the present embodiment;
fig. 2 is a timing diagram of a message processing method according to the present embodiment;
fig. 3 is a schematic structural diagram of a vehicle-mounted communication device according to the present embodiment.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
It should be noted that, without conflict, the following embodiments and features in the embodiments may be combined with each other; and, based on the embodiments in this disclosure, all other embodiments that may be made by one of ordinary skill in the art without inventive effort are within the scope of the present disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the following claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the present disclosure, one skilled in the art will appreciate that one aspect described herein may be implemented independently of any other aspect, and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. In addition, such apparatus may be implemented and/or such methods practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
Referring to fig. 1, according to an aspect of the present application, a message processing method is provided and applied to a first message processing module in a vehicle-mounted communication device, where the first message processing module has an association relationship with a first functional module in the vehicle-mounted communication device, and a plurality of second functional modules are disposed in the vehicle-mounted communication device, and each of the second functional modules is provided with a corresponding second message processing module.
The method comprises the following steps:
step S100, a first message sent by a second message processing module is received.
Step S200, determining a message type of the first message.
Step S300, when the message type is the target message type corresponding to the first functional module, sending the first message to the first functional module.
Wherein, step S300, when implemented, may include the following steps:
step S310, determining whether the message type is a target message type corresponding to the first functional module;
if yes, go to step S320; otherwise, step S330 is performed.
Step S320, sending the first message to the first functional module.
Step S330 does not respond to the first message or discards the first message.
In this embodiment, the distinction between "first" and "second" in the first functional module and the second functional module is only limited to clearly illustrate the specific technology of this embodiment. It is understood that the vehicle-mounted communication device may have a plurality of functional modules having the same or different functions therein, and the first functional module and the second functional module in the present embodiment refer to any two of the plurality of functional modules described above. Accordingly, the first message processing module and the second message processing module are similar to those described above, and only serve to distinguish their corresponding functional modules. It is to be understood to a certain extent that each functional module or at least some functional modules within the vehicle-mounted communication device is provided with a message processing module which corresponds exclusively to it. The first functional module and the second functional module may be implemented as a process, an application program, or the like in the in-vehicle processing device.
In this embodiment, the MPU in the TBox (vehicle-mounted communication device) is implemented based on an embedded Linux system, and the Linux kernel is provided with dbus, and accordingly, the first message processing module and the second message processing module are built by encapsulating the dbus.
The target message type corresponding to the first functional module can be simply understood as the message type of interest to the first functional module. The meaning of interest is that the first functional module will respond and process messages of the message type of interest. It does not take additional action without attention. The target message types corresponding to the first functional module may be plural.
According to the message processing method provided by the embodiment, the message type of the received first message can be determined through the first message processing module, and whether the first message is sent to the first functional module is determined according to whether the message type is the target message type corresponding to the associated first functional module or not. Therefore, the method and the device realize that the received first message is subjected to descreening through the independently arranged message processing module, and only the message required by the first functional module is sent to the first functional module, so that the first functional module only needs to directly process the received first message and does not need to distinguish and judge the received message. The processing pressure of the first functional module is reduced. Meanwhile, the first message processing module is used for receiving and primarily processing the first message, so that the problem of delay in processing the terminal or responding by the first functional module caused by receiving a new message can be avoided.
In an exemplary embodiment of the present application, the first message is sent by the second message processing module in a broadcast form.
In some technologies, communication between processes adopts a point-to-point mode to communicate, so that before a process of sending out a message is required to send out the message, the processes in the vehicle-mounted communication device are set inside; meanwhile, it is also determined that the process is required to process the message to be sent, and a communication connection with the target process is established in the network, so that point-to-point communication can be realized. The method occupies great processing capacity of the process, and has complicated flow and low efficiency.
In this embodiment, the first message (i.e., the message sent by the second functional module through the second message processing module) is sent directly through the broadcast. Therefore, when the second functional module sends out the message, the second functional module does not need to determine in advance who needs to process the message, does not need to establish a response communication channel, and only needs to label the message to be sent with the message type and then directly send the message. In this way, all processes in the vehicle-mounted communication device can theoretically receive the first message, and the first function module is used for taking an example, at this time, the first message processing module acts as a middleware, and can judge all received messages (first messages) in advance, determine whether the message type of the received messages is the target message type concerned by the corresponding first function module, and only if so, the message type is sent to the first function module. Therefore, even if the first message processing module can receive the message sent by all the functional modules, the computing resources of the corresponding first functional modules are not occupied, the overall processing speed is not influenced, and the computing amount of the functional modules for sending the message is reduced.
In an exemplary embodiment of the present application, the method further comprises:
receiving a second message sent by the first functional module;
and sending the second messages in a broadcast mode so that each second message processing module can acquire the second messages.
In this embodiment, when the first functional module needs to send the second message outwards, the first functional module only needs to directly send the second message to be sent to the first message processing module corresponding to the first functional module. The first message processing module transmits the received second message in the form of a broadcast. Therefore, the first functional module and the first message processing module do not need to judge to whom the second message is to be sent, and do not need to set any functional module in the vehicle-mounted communication module in the internal storage area and other positions in advance, and only the first functional module needs to add an identifier or a character capable of representing the message type of the second message in the position (set byte) set in the second message when the first functional module generates the second message. The operation amount is extremely low, and complicated logic judgment is not required.
In this embodiment, the second message is sent out by the first processing module in a broadcast manner, so that the sender does not need to know which functional modules are in the vehicle-mounted communication device, and does not need to determine who receives the second message. Therefore, even if the first functional module is newly arranged in the vehicle-mounted communication device, the communication system in the vehicle-mounted communication device can be directly compatible, and after the new functional module is added into the vehicle-mounted communication device, configuration files and the like in the interior of each functional module are not required to be modified so as to inform that the new functional module is added into the vehicle-mounted communication device. Therefore, efficient and concise new function module addition is realized.
Accordingly, in an exemplary embodiment of the present application, the determining the message type of the first message includes:
and acquiring target content of a setting field in the first message, wherein the target content is used for representing the message type of the first message.
The target content is a preset identifier or character capable of representing the message type, and in this embodiment, different message types are represented in a digital manner. All the functional modules in the vehicle-mounted communication device follow a unified message type representation mode, so that each functional module and each message processing module can distinguish and determine the message type of each message according to a unified standard.
In particular, the first message and the second message may include a message type field, a message length field, and a message content field therein. The message content field is used for storing an identifier or character representing the type of the message, the message length field represents the length of the message contained in the communication, and the message content field stores specific message content.
In an exemplary embodiment of the present application, before the receiving the first message sent by the second message processing module, the method further includes:
receiving registration information sent by the first functional module; the registration information comprises at least one target message type corresponding to the first functional module;
and storing the registration information.
The determining whether the message type is the target message type corresponding to the first functional module includes:
comparing the message type of the first message with the registration information, and determining whether the registration information has the same target message type as the message type of the first message.
In this embodiment, the first functional module may send registration information to the corresponding first message processing module at the set node. To inform the first message handling module of the type of target message of interest to itself. The first message processing module can judge whether the received first message needs to be sent to the first functional module according to the registration information. The registration message may exist in a vector, a set, a list or the like, and stores all target message types currently focused by the first functional module in the registration message. Meanwhile, the first functional module can also send a new registration message to the first processing module again after the function or the requirement of the first functional module is changed so as to update the registration information stored by the first message processing module.
Fig. 2 is a schematic diagram of a processing flow sequence among the first functional module, the first message processing module, the second functional module, and the second message processing module.
In an exemplary embodiment of the present application, the first message processing module is established for the vehicle-mounted communication device in response to the activation of the first functional module.
In this embodiment, the first message processing module is not a module that is always present, but is built in real time by calling a resource (such as dbus) in the vehicle-mounted communication device in response to the start of the first function module, and correspondingly, after the first function module is turned off, the first message processing module is also turned off, and the called resource is correspondingly released. Thus, when the first functional module does not work, the resource called by the first message processing module can be released to perform other works. The method realizes the dynamic adjustment of resources in the vehicle-mounted communication device and achieves the purpose of reasonable utilization of the resources. It should be noted that, since the first message processing module is released after the first functional module is turned off, after each time the first functional module is started and after the first message processing module is built, the first functional module needs to send registration information to the first message processing module, so that the first message processing module can work normally.
In an exemplary embodiment of the present application, after the sending the first message to the first functional module, the method further includes:
sending notification information to the first functional module;
the notification information is used for notifying the first functional module that the first message arrives.
In this embodiment, after the first message processing module sends the first message to the first functional module, the first message processing module sends notification information to the first functional module to inform the first functional module that the first message has arrived, so that the first functional module reads the first message in time for processing.
Accordingly, in an exemplary embodiment of the present application, after the sending notification information to the first functional module, the method further includes:
receiving feedback information sent by the first functional module;
the feedback information is sent to the first message processing module after the first functional module adds the first message to a message queue; the feedback information is used for notifying the first message processing module that the first message has been received, so that the first message processing module can continue to send messages to the first functional module.
In practical applications, the first message processing module will always continuously receive a plurality of messages, so that in order to make the messages orderly and effectively sent to the first functional module, the first message processing module will continue to send new messages after receiving the feedback information sent by the first functional module. In order to improve the sending and receiving efficiency of the messages and the sequential processing of the messages, the first functional module stores the received messages in a message queue, and then sequentially takes and processes the messages according to the sequence of storing the messages in the message queue. Meanwhile, after the first message is added into the message queue, feedback information is sent to the first message processing module, so that the first message processing module can continue to send the message to the first functional module. In this embodiment, the first functional module stores the first message through the message queue and transmits the feedback message after the storing is completed, instead of waiting for the first message to be processed or starting to be processed before the feedback message is transmitted. The method and the device avoid the blocking of the subsequent messages in the first message processing module, quicken the transmission efficiency of the messages, and reduce the working pressure of the first message processing module, so that the first message processing module only needs to call smaller registers or memory resources (such as only needs to reserve the memory space for storing 2-10 messages) when being built.
According to an aspect of the present application, there is provided an in-vehicle communication apparatus including:
a first functional module;
the first message processing module has a corresponding relation with the first functional module;
at least one second functional module, each of the second functional modules having a corresponding second message processing module;
wherein the first message processing module is configured to perform the following method:
receiving a first message sent by a second message processing module;
determining a message type of the first message;
and sending the first message to the first functional module under the condition that the message type is the target message type corresponding to the first functional module.
Furthermore, although the steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order or that all illustrated steps be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
Those skilled in the art will appreciate that the various aspects of the invention may be implemented as a system, method, or program product. Accordingly, aspects of the invention may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device according to this embodiment of the invention. The electronic device is merely an example, and should not impose any limitations on the functionality and scope of use of embodiments of the present invention.
The electronic device is in the form of a general purpose computing device. Components of an electronic device may include, but are not limited to: the at least one processor, the at least one memory, and a bus connecting the various system components, including the memory and the processor.
Wherein the memory stores program code that is executable by the processor to cause the processor to perform steps according to various exemplary embodiments of the invention described in the "exemplary methods" section of this specification.
The storage may include readable media in the form of volatile storage, such as Random Access Memory (RAM) and/or cache memory, and may further include Read Only Memory (ROM).
The storage may also include a program/utility having a set (at least one) of program modules including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
The bus may be one or more of several types of bus structures including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.
The electronic device may also communicate with one or more external devices (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device, and/or with any device (e.g., router, modem, etc.) that enables the electronic device to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface. And, the electronic device may also communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through a network adapter. As shown, the network adapter communicates with other modules of the electronic device over a bus. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with an electronic device, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium having stored thereon a program product capable of implementing the method described above in the present specification is also provided. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the invention as described in the "exemplary methods" section of this specification, when said program product is run on the terminal device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
Furthermore, the above-described drawings are only schematic illustrations of processes included in the method according to the exemplary embodiment of the present invention, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any changes or substitutions easily contemplated by those skilled in the art within the scope of the present invention should be included in the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (11)

1. The message processing method is characterized by being applied to a first message processing module in a vehicle-mounted communication device, wherein the first message processing module has an association relationship with a first functional module in the vehicle-mounted communication device, at least one second functional module is arranged in the vehicle-mounted communication device, and each second functional module is provided with a corresponding second message processing module;
the method comprises the following steps:
receiving a first message sent by a second message processing module;
determining a message type of the first message;
transmitting the first message to the first functional module under the condition that the message type is a target message type corresponding to the first functional module;
the first message is sent out by the second message processing module in a broadcast mode.
2. The message processing method according to claim 1, characterized in that the method further comprises:
receiving a second message sent by the first functional module;
and sending the second messages in a broadcast mode so that each second message processing module can acquire the second messages.
3. The message processing method of claim 1, wherein prior to said receiving the first message sent by the second message processing module, the method further comprises:
receiving registration information sent by the first functional module; the registration information comprises at least one target message type corresponding to the first functional module;
and storing the registration information.
4. A message processing method according to claim 3, wherein said determining whether the message type is a target message type corresponding to the first functional module comprises:
comparing the message type of the first message with the registration information, and determining whether the registration information has the same target message type as the message type of the first message.
5. The message processing method according to claim 1, wherein after said sending the first message to the first functional module, the method further comprises:
sending notification information to the first functional module;
the notification information is used for notifying the first functional module that the first message arrives.
6. The message processing method according to claim 5, wherein after the sending of notification information to the first functional module, the method further comprises:
receiving feedback information sent by the first functional module;
the feedback information is sent to the first message processing module after the first functional module adds the first message to a message queue; the feedback information is used for notifying the first message processing module that the first message has been received, so that the first message processing module can continue to send messages to the first functional module.
7. The message processing method of claim 1, wherein the first message processing module is established for the vehicle-mounted communication device in response to activation of the first functional module.
8. The message processing method according to claim 1, wherein the determining the message type of the first message includes:
and acquiring target content of a setting field in the first message, wherein the target content is used for representing the message type of the first message.
9. A vehicle-mounted communication device, characterized by comprising:
a first functional module;
the first message processing module has a corresponding relation with the first functional module;
at least one second functional module, each of the second functional modules having a corresponding second message processing module;
wherein the first message processing module is configured to perform the following method:
receiving a first message sent by a second message processing module;
determining a message type of the first message;
transmitting the first message to the first functional module under the condition that the message type is a target message type corresponding to the first functional module;
the first message is sent out by the second message processing module in a broadcast mode.
10. An electronic device comprising a processor and a memory;
the processor is adapted to perform the steps of the method according to any of claims 1 to 8 by invoking a program or instruction stored in the memory.
11. A computer readable storage medium storing a program or instructions for causing a computer to perform the steps of the method according to any one of claims 1 to 8.
CN202210323994.5A 2022-03-29 2022-03-29 Message processing method, vehicle-mounted communication device, electronic equipment and storage medium Active CN114710755B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210323994.5A CN114710755B (en) 2022-03-29 2022-03-29 Message processing method, vehicle-mounted communication device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210323994.5A CN114710755B (en) 2022-03-29 2022-03-29 Message processing method, vehicle-mounted communication device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114710755A CN114710755A (en) 2022-07-05
CN114710755B true CN114710755B (en) 2024-04-05

Family

ID=82170309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210323994.5A Active CN114710755B (en) 2022-03-29 2022-03-29 Message processing method, vehicle-mounted communication device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114710755B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104754018A (en) * 2013-12-31 2015-07-01 上海博泰悦臻网络技术服务有限公司 Message transmission method, device and system
CN109697848A (en) * 2017-10-23 2019-04-30 普天信息技术有限公司 A kind of method and device obtaining vehicle various dimensions information
CN110263276A (en) * 2019-06-14 2019-09-20 北京字节跳动网络技术有限公司 Message distributing method, device, equipment and storage medium
CN111954168A (en) * 2020-08-27 2020-11-17 深圳成谷智能科技有限公司 Method and device for realizing differentiated LTE-V broadcast message
US10917760B1 (en) * 2020-06-02 2021-02-09 Envisionit Llc Point-to-multipoint non-addressed message processing system
CN112584352A (en) * 2019-09-30 2021-03-30 北京百度网讯科技有限公司 Vehicle message transmission method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104754018A (en) * 2013-12-31 2015-07-01 上海博泰悦臻网络技术服务有限公司 Message transmission method, device and system
CN109697848A (en) * 2017-10-23 2019-04-30 普天信息技术有限公司 A kind of method and device obtaining vehicle various dimensions information
CN110263276A (en) * 2019-06-14 2019-09-20 北京字节跳动网络技术有限公司 Message distributing method, device, equipment and storage medium
CN112584352A (en) * 2019-09-30 2021-03-30 北京百度网讯科技有限公司 Vehicle message transmission method and device, electronic equipment and storage medium
US10917760B1 (en) * 2020-06-02 2021-02-09 Envisionit Llc Point-to-multipoint non-addressed message processing system
CN111954168A (en) * 2020-08-27 2020-11-17 深圳成谷智能科技有限公司 Method and device for realizing differentiated LTE-V broadcast message

Also Published As

Publication number Publication date
CN114710755A (en) 2022-07-05

Similar Documents

Publication Publication Date Title
JP4896904B2 (en) Method, device and process for distributing tasks over time in mobile terminals
CN113596171B (en) Cloud computing data interaction method, system, electronic equipment and storage medium
CN114205183A (en) Communication method and system of AT instruction protocol stack based on real-time operating system
CN105141603A (en) Communication data transmission method and system
CN113609059B (en) Communication system and communication method
CN113656164B (en) Task execution method, system, electronic device and computer storage medium
CN114064091A (en) OTA (over the air) upgrade control method and device, electronic equipment and automatic driving vehicle
CN112422485A (en) Communication method and device of transmission control protocol
CN114710755B (en) Message processing method, vehicle-mounted communication device, electronic equipment and storage medium
CN109981778B (en) Method, device, equipment and storage medium for realizing service of content distribution network
WO2023051315A1 (en) Application control method and apparatus, electronic device, and storage medium
CN111324387A (en) Application task control method, device, terminal and system
CN113381987B (en) Data processing method of Internet of vehicles service, electronic equipment and computer storage medium
CN114710454A (en) Message processing method, vehicle-mounted communication device, electronic equipment and storage medium
JP7427775B2 (en) Stored procedure execution method, device, database system, and storage medium
CN114815714A (en) Remote vehicle control method and device and electronic equipment
CN113849449A (en) Communication system and information interaction method, device and medium
CN112615916A (en) File deployment method and device, electronic equipment and storage medium
CN111937366B (en) Web request processing method and device
CN111212404A (en) Robot communication method, system, device, robot and storage medium
CN109710432B (en) Multi-node communication method and system for application program development
CN113821248B (en) Service method of vehicle-end software, vehicle-end software and related equipment thereof
CN115038127B (en) Resource scheduling method and device, storage medium and electronic equipment
CN114500593B (en) Remote driving system, method and equipment
WO2022250004A1 (en) Information processing 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
GR01 Patent grant
GR01 Patent grant