[go: up one dir, main page]

CN111031105B - Statistical method, device, equipment and storage medium for message frequency in automatic driving - Google Patents

Statistical method, device, equipment and storage medium for message frequency in automatic driving Download PDF

Info

Publication number
CN111031105B
CN111031105B CN201911174489.3A CN201911174489A CN111031105B CN 111031105 B CN111031105 B CN 111031105B CN 201911174489 A CN201911174489 A CN 201911174489A CN 111031105 B CN111031105 B CN 111031105B
Authority
CN
China
Prior art keywords
message
frequency
sending module
module
message sending
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
CN201911174489.3A
Other languages
Chinese (zh)
Other versions
CN111031105A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201911174489.3A priority Critical patent/CN111031105B/en
Publication of CN111031105A publication Critical patent/CN111031105A/en
Application granted granted Critical
Publication of CN111031105B publication Critical patent/CN111031105B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a statistical method and device of message frequency, electronic equipment and a storage medium, relates to the technical field of information flow, and can be used for an operating system of automatic driving. The specific implementation scheme is as follows: the statistical method of the message frequency is executed by a statistical device of the message frequency, and the statistical device of the message frequency is arranged in a process; the message frequency counting device records a plurality of receiving moments of a plurality of messages in the process of receiving a plurality of messages which are sent by a message sending module and are subscribed in advance and located in the same process with the message frequency counting device; and counting the frequency of the message sending module for sending the message according to a plurality of receiving moments in a preset time span. The method and the device can overcome the technical problem that frequency statistics is inaccurate in the prior art, and because the frequency statistics occurs in the same process, cross-process communication time delay does not exist, and the accuracy of frequency statistics of the message sending module for sending the message can be effectively improved.

Description

Statistical method, device, equipment and storage medium for message frequency in automatic driving
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for processing an information stream, and an electronic device and a storage medium for counting message frequencies, which may be used in an operating system for automatic driving.
Background
In an automatic driving system, communication between two adjacent modules with a message transmission relationship, such as a sensor module, an obstacle recognition module, a planning module and the like, is realized by publishing and subscribing to topic (namely message data), the publication of topic of each module is also periodic, and if some module is abnormal, the output of the publication frequency of topic of the module is abnormal. Therefore, the statistics of the release frequency of the topic of the module is a very important work, and a worker can predict whether the module is normal or not based on the release frequency of the topic of the module.
However, in the statistical schemes for the message frequencies of various modules provided in the prior art, the statistical frequencies are not accurate enough, and it is urgently needed to provide a scheme capable of accurately counting the message frequencies.
Disclosure of Invention
In order to solve the above technical problems, the present application provides a statistical method, an apparatus, an electronic device, and a storage medium for a message frequency, which are used to provide a technical scheme capable of accurately counting frequencies.
In one aspect, the present application provides a statistical method for message frequency, where the statistical method is performed by a statistical apparatus for message frequency, and the statistical apparatus for message frequency is disposed in a process, and the method includes:
When a plurality of pre-subscribed statistical devices which are positioned in the same process with the message frequency and used for sending the messages are received, recording a plurality of sending moments of receiving the messages of the plurality of messages;
and counting the frequency of the message sending module for sending the message according to the plurality of receiving moments in the preset time span.
Further optionally, in the method described above, before receiving a plurality of messages sent by message sending modules which are pre-subscribed and co-located in the same process as the frequency statistics apparatus, the method further includes:
determining a module identifier of the message sending module according to the process identifier of the process;
and sending a subscription request for the message sent by the message sending module to a message management module, wherein the subscription request comprises the module identification.
Further optionally, in the method as described above, after counting the frequency of the messages sent by the message sending module, the method further includes:
and detecting whether the corresponding message sending module is abnormal or not according to the message sending frequency of the message sending module and a preset frequency threshold.
Further optionally, in the method as described above, after counting the frequency of sending messages by the message sending module, the method further includes:
Receiving a message frequency request sent by a frequency request end;
and sending the frequency of the message sent by the message sending module to the frequency request terminal, wherein the frequency of the message sent by the message sending module indicates whether the message sending module is abnormal or not.
On the other hand, the present application further provides a device for counting message frequencies, where the device for counting message frequencies is disposed in a process, and the device includes:
the recording module is used for recording a plurality of receiving moments of a plurality of messages in the process of receiving the plurality of messages sent by the message sending module which is subscribed in advance and is positioned in the same process with the statistical device of the message frequency;
and the counting module is used for counting the frequency of the message sent by the message sending module according to the plurality of receiving moments within the preset time length.
In another aspect, the present application further provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method as any one of above.
In yet another aspect, the present application also provides a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any of the above.
One embodiment in the above application has the following advantages or benefits: the statistical device of the message frequency arranged in a process records a plurality of receiving moments of a plurality of messages in the process of receiving the plurality of messages which are sent by the message sending module which is subscribed in advance and is positioned in the same process with the statistical device of the message frequency; according to a plurality of receiving moments within a preset time length, the frequency of the message sending module for sending the message is counted, the technical problem of inaccurate frequency counting in the prior art can be solved, and because the frequency counting of the embodiment of the application occurs in the same process, cross-process communication time delay does not exist, and the accuracy of the frequency counting of the message sending module for sending the message can be effectively improved.
Furthermore, the technical scheme of the application can detect whether the message sending module is abnormal or not based on the statistical frequency, can automatically and effectively detect whether the message sending module is abnormal or not, and can effectively expand the function and application of frequency statistics.
Furthermore, according to the technical scheme of the application, the frequency of the message sent by the message sending module counted in advance can be returned to the frequency request section according to the message frequency request of the frequency request section, the frequency of the message sent by the message sending module is not required to be calculated after the message frequency request is received, and the accuracy of the returned frequency can be effectively guaranteed.
Other effects of the above alternatives will be described below with reference to specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be considered limiting of the present application. Wherein:
FIG. 1 is a schematic diagram according to a first embodiment of the present application;
FIG. 2 is a schematic diagram according to a second embodiment of the present application;
FIG. 3 is a schematic illustration according to a third embodiment of the present application;
fig. 4 is a block diagram of an electronic device for implementing the frequency statistics method of the embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a flowchart of an embodiment of a frequency statistics method of the present application. As shown in fig. 1, the statistical method for message frequency according to this embodiment is executed by a statistical device for message frequency, where the statistical device for message frequency is set in a process, and the statistical method specifically includes the following steps:
s101, recording a plurality of receiving moments of a plurality of messages in the process of receiving the plurality of messages which are sent by a message sending module which is subscribed in advance and is positioned in the same process with a frequency counting device;
and S102, counting the frequency of the message sent by the message sending module according to a plurality of receiving moments within a preset time length.
That is, the main execution body of the statistical method of the message frequency of the embodiment is a statistical device of the message frequency, and the statistical device of the message frequency and the message sending module of the frequency to be counted are arranged in the same process to count the frequency of sending messages by the message sending module in the same process.
The message frequency statistical method of the embodiment can be used for counting the frequency of sending messages by any one of any two modules with information interaction in information flow.
Optionally, the statistical apparatus for message frequency in this embodiment may be an application-integrated software module, and may also be extended to be an electronic entity, configured to monitor message sending modules in the same process in business.
In this embodiment of the present application, an independent message frequency statistics module may also be used to perform cross-process statistics on the frequency of a message in any other process, for example, if the message frequency statistics module is set in a first process, when the frequency of a message sending module in a second process is counted and a message sending module in the second process issues topic message data, the topic message data belongs to cross-process operations from the second process to the message frequency statistics module in the first process, and there is a time delay, so that the time when the message frequency statistics module in the first process records the topic message data issued by the message sending module in the second process is not accurate enough. In addition, when other modules need the frequency of the message sending module, the cross-process may also request the frequency of the message sending module in the second process from the statistical module of the message frequency in the first process, and the request itself also has a communication delay.
In order to further improve the accuracy of the message frequency statistics, in this embodiment, a statistics device of the message frequency may be set in each process to perform statistics on the frequency of the message sent by the message sending module in the same process. Because the priority of information processing in the same process is the highest and is far greater than the information communication across processes, the time delay can be effectively shortened, and the accuracy of frequency statistics is improved.
Specifically, in this embodiment, the message of the message sending module in the same process needs to be subscribed in advance, so that the statistical device of the message frequency can receive the subscribed message only when the message sending module sends the message, and thus the receiving time of the message can be recorded. That is, although the statistical apparatus of the message frequency in this embodiment subscribes to the message of the message sending module in the same process, the statistical apparatus does not store the message of the message sending module, and records only the receiving time when the message sent by the message sending module is received.
In addition, in this embodiment, taking the duration used for statistics as the preset time length as an example, the statistical device of the message frequency records a plurality of receiving times of a plurality of messages during the process of receiving a plurality of messages sent by the message sending module subscribed in advance and located in the same process within the preset time length, that is, each message corresponds to one receiving time. In the same process, the time difference between the receiving time of each message received by the message frequency counting device and the sending time of the message sent by the message sending module is very small, so in this embodiment, the frequency of the message sent by the message sending module can be counted according to a plurality of receiving times of a plurality of messages sent by the message sending module within a preset time length. For example, the number of messages sent within a preset time period may be divided by the preset time period, so as to obtain the frequency of sending the messages by the corresponding message sending module.
The preset time length of the embodiment may be set according to the specific scene requirement in the practical application. For example, it may be 30s, 1min, or other length of time. For example, in a scenario where the frequency requirement is not accurate, a longer preset time length may be set, and in a scenario where the frequency requirement is very accurate, a relatively shorter preset time length may be set.
Optionally, a message management module is arranged outside the processes, and is configured to manage the message sending modules in the processes, and specifically record information of the message sending modules in the processes. In practical applications, the message management module may subscribe to the message of the message sending module, for example, the ID of the process where the current frequency statistics apparatus is located is "10", and the message management module may subscribe to the message of the message sending module where the ID of the process is "10". In a specific implementation, the statistical device of the message frequency may determine, according to the process identifier of the process, a module identifier of the message sending module to be subscribed, and then send, to the detailed management module, a subscription request for the message sent by the message sending module, that is, the subscription request carries the identifier of the message sending module. Thus, the message management module establishes the subscription relationship between the statistical device of the message frequency and the message sending module in the same process, and notifies the message sending module in the same process that the statistical device of the message frequency subscribes the message. Thus, when the message sending module in the same process sends message data, the message data is sent to the sending end, and also needs to be sent to the frequency statistics device according to the subscription relationship. The statistical device of the message frequency can receive and timely record the receiving time of the message sent by the message sending module, and the operations are completed in the same process, so that the time delay is very small.
In addition, in this embodiment, when an external frequency request is not received, the frequency of the message sending module may be counted in real time according to the manner of this embodiment, and when the frequency is externally required, the frequency is directly obtained and returned. The frequency obtained by counting does not need to take the preset time length forward according to the time of receiving the frequency request to count the frequency of the message sending module so as to ensure that the counted frequency is not influenced by the frequency request time delay, and the counted frequency is very accurate and can accurately reflect the condition of the message sending module for sending the message.
In the frequency statistical method of the embodiment, a frequency statistical device arranged in a process records a plurality of receiving moments of a plurality of messages in the process of receiving the plurality of messages which are subscribed in advance and sent by a message sending module in the same process; according to a plurality of receiving moments within a preset time length, the frequency of the message sending module for sending the message is counted, the technical problem of inaccurate frequency counting in the prior art can be solved, and because the frequency counting of the embodiment occurs in the same process, cross-process communication time delay does not exist, and the accuracy of the frequency counting of the message sending module for sending the message can be effectively improved.
Fig. 2 is a flowchart of another embodiment of a statistical method for message frequency according to the present application. As shown in fig. 2, the statistical method of message frequency in this embodiment is based on the embodiment shown in fig. 1, and takes the example that a plurality of message sending modules are included in the same process, so as to describe the technical solution of the present invention in detail. As shown in fig. 2, the statistical method for message frequency in this embodiment may specifically include the following steps:
s201, according to the current process identification, subscribing the message sent by the message sending module belonging to the same process from the message management module;
for example, the information stored in the message management module of this embodiment may include the following contents in table 1:
TABLE 1
Figure GDA0003514273350000061
Figure GDA0003514273350000071
For example, in the subscription, the statistical device of the message frequency may determine the identifier of the message sending module to be subscribed according to the identifier of the process in which the statistical device is located, in combination with table 1; and then sending a subscription request carrying the identifier of the message sending module to be subscribed to the message management module, and establishing a subscription relationship between the statistical device of the message frequency and the message sending module to be subscribed by the message management module, wherein the subscription relationship is identified by the subscription relationship between the identifier of the statistical device of the message frequency and the identifier of the message sending module. Moreover, the message management module needs to notify the message sending module of the subscription relationship, so that the message sending module can send the message to the subscribed statistical device of the message frequency at the same time when sending the message.
The difference between the frequency statistical method of this embodiment and the foregoing fig. 1 is that: in this embodiment, for example, a plurality of message sending modules are included in the same process, and the messages of each message sending module are respectively subscribed to count the frequency of each message sending module. Or in practical application, even if the same process includes multiple message sending modules, the frequency statistics apparatus may subscribe to only some messages of the message sending modules that need to focus on. In this case, the subscription may require external participation to select, for example, a worker inputs an identification of a part of the message sending modules in the co-process that needs to be subscribed to, or inputs which features of the message sending modules, and then establishes a subscription relationship with the frequency statistical device in the co-process based on the features of the message sending modules. At this time, correspondingly, information such as the characteristics of each message transmission module needs to be recorded in the message management module.
S202, in the process of receiving each message sent by each subscribed message sending module in the same process, recording the receiving time of each message sent by the message sending module in the message time cache corresponding to each message sending module;
In this embodiment, the same process includes multiple message sending modules, and a message time buffer may be configured for each message sending module, and is used to record the receiving time of the message sent by the corresponding message sending module, so as to ensure that the receiving times of the messages sent by different message sending modules are not mixed and recorded together.
S203, for each message sending module, dividing the receiving times within the preset time length by the preset time length based on the receiving time of all the messages recorded in the corresponding message time cache to obtain the message sending frequency of the corresponding message sending module;
the statistical apparatus for message frequency in this embodiment may specifically calculate the sending frequency of the message corresponding to each message sending module by creating a service in the same process, as the frequency of the message sending module, that is, the operating frequency.
And S204, for each message sending module, detecting whether the corresponding message sending module is abnormal or not according to the frequency of the message and a preset frequency threshold.
For a communication link, most modules need to perform message interaction with other modules, such as message sending and message receiving. In this embodiment, the frequency of the message sending module sending the message can also represent the operating frequency of the message sending module to a certain extent. If the working frequency is abnormal, the message sending module can be considered to be abnormal. In this embodiment, whether the corresponding message sending module is abnormal or not may be determined by monitoring the frequency of sending the message. Different frequency thresholds may be set for different messaging modules based on their operating mechanism. In this embodiment, the message frequency counting device may further detect whether the frequency of the message sent by each message sending module is lower than a corresponding preset frequency threshold, and if the frequency of the message sent by each message sending module is lower than the corresponding preset frequency threshold, the message sending module is considered to be abnormal, and if the frequency of the message sent by each message sending module is greater than or equal to the preset frequency threshold, the message sending module is considered to be normal.
In practical application, when a frequency request is sent to a frequency statistics device, the frequency statistics device sends a frequency request to the frequency statistics device, and the frequency statistics device feeds back the frequency obtained by statistics to the frequency request, so that time delay of communication among different processes in the prior art can be avoided, and accuracy of frequency is improved. For example, the technical solution included at this time may specifically include the following steps:
(a) receiving a message frequency request sent by a frequency request end;
(b) the frequency of the message sending module sending the message is sent to the frequency request terminal, and the frequency of the message sent by the message sending module indicates whether the message sending module is abnormal, so that the frequency request terminal can detect whether the corresponding message sending module is abnormal according to the frequency of the message and a preset frequency threshold, and the related records of the statistical device side of the message frequency are referred to in detail, which is not described herein again.
It should be noted that the frequency of sending messages by the message sending module returning to the frequency request end is the frequency of sending messages by the latest message sending module at the current time. That is, the frequency counting means always counts the frequency of the message in real time, and when a message frequency request is received, only the frequency of the message transmission module corresponding to the current time, that is, the latest frequency of the message transmission module is acquired without acquiring the historical message frequency of the message transmission module.
It should be noted that, if there is only one message sending module in the process, the frequency statistics apparatus may only count one message sending module according to the foregoing embodiment. If the process includes a plurality of message sending modules, the frequency of the message of each message sending module may be sent to the frequency request end according to the implementation manner of the foregoing embodiment. Or if the frequency request end only wants to request the frequency of the message of a certain message sending module, the identifier of the message sending module can be carried in the message frequency request. Correspondingly, the frequency statistical device obtains the frequency of the latest message corresponding to the identifier of the message sending module and returns the frequency to the frequency request end, so that the frequency request end can detect whether the message sending module is abnormal or not according to the frequency of the message and a preset frequency threshold value. Or may perform other service processing according to the frequency of the message sending module, which is not described in detail herein for example.
The statistical method of the message frequency of the embodiment can be applied to the field of automatic driving, and is used for detecting the message sending frequency of each module with a message transmission relation, such as a sensor module, an obstacle identification module, a planning module and the like, and further detecting whether the corresponding module is abnormal or not based on the frequency.
By adopting the above technical solution and the statistical device of the message frequency set in the process, the statistical method of the message frequency in this embodiment can perform statistics on the frequency of the message sent by each message sending module in the plurality of message sending modules in the same process, can overcome the problem of inaccurate frequency statistics in the prior art, can also avoid cross-process communication delay, and improve the accuracy of the frequency statistics of the message sent by the message sending module. In addition, in the embodiment, whether the message sending module is abnormal can be detected based on the statistical frequency, whether the message sending module is abnormal can be automatically and effectively detected, and meanwhile, the function and application of frequency statistics can be effectively expanded.
In addition, in this embodiment, according to the message frequency request of the frequency request segment, the frequency of the message sent by the message sending module, which is counted in advance, can be returned to the frequency request segment, and the frequency of the message sent by the message sending module does not need to be calculated after the message frequency request is received, so that the accuracy of the returned frequency can be effectively ensured.
Fig. 3 is a block diagram of an embodiment of a statistical apparatus for message frequency according to the present invention. As shown in fig. 3, the statistical apparatus 300 for message frequency of the present embodiment is arranged in a process, and includes:
The recording module 301 is configured to record a plurality of receiving moments of a plurality of messages in a process of receiving a plurality of messages sent by a message sending module which is subscribed in advance and located in the same process as the statistical device of the message frequency;
the counting module 302 is configured to count a frequency of a message sent by the message sending module according to a plurality of receiving moments within a preset time length.
Further optionally, as shown in fig. 3, the frequency statistics apparatus 300 of this embodiment further includes: a determining module 303, configured to determine a module identifier of the message sending module according to the process identifier of the process;
the sending module 304 is configured to send, to the message management module, a subscription request for the message sent by the message sending module, where the subscription request includes a module identifier.
Further optionally, as shown in fig. 3, the frequency statistics apparatus 300 of this embodiment further includes:
the detecting module 305 is configured to detect whether the message sending module is abnormal according to the frequency of the message sending module sending the message and a preset frequency threshold.
Further optionally, as shown in fig. 3, the frequency statistics apparatus 300 of this embodiment further includes:
the receiving module 306 is configured to receive a message frequency request sent by a frequency request end;
The sending module 304 is configured to send, to the frequency requesting end, a frequency at which the message sending module sends a message; the frequency of the message sending module sending the message indicates whether the message sending module is abnormal.
The frequency statistics apparatus of this embodiment, the implementation principle and technical effect of implementing frequency statistics by using the modules are the same as those of the related method embodiments, and details of the related method embodiments may be referred to and are not repeated herein.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 4 is a block diagram of an electronic device according to an embodiment of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 4, the electronic apparatus includes: one or more processors 401, memory 402, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 4, one processor 401 is taken as an example.
Memory 402 is a non-transitory computer readable storage medium as provided herein. Wherein the memory stores instructions executable by at least one processor to cause the at least one processor to perform the frequency statistics methods provided herein. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the frequency statistics method provided herein.
Memory 402, which is a non-transitory computer-readable storage medium, may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules (e.g., the relevant modules shown in fig. 3) corresponding to the frequency statistics method in the embodiments of the present application. The processor 401 executes various functional applications of the server and data processing, i.e., implements the frequency statistical method in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 402.
The memory 402 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the electronic device by the frequency statistical method, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 402 may optionally include memory located remotely from processor 401, which may be connected to the frequency statistics method electronics over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the frequency statistics method may further include: an input device 403 and an output device 404. The processor 401, memory 402, input device 403, and output device 404 may be connected by a bus or other means, as exemplified by the bus connection in fig. 4.
The input device 403 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the XXX electronic equipment, such as a touch screen, keypad, mouse, track pad, touch pad, pointing stick, one or more mouse buttons, track ball, joystick, etc. The output devices 404 may include a display device, auxiliary lighting devices (e.g., LEDs), and tactile feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, when the message is sent by the pre-subscribed message sending module in the same process, the sending time of the message is recorded; the method and the device have the advantages that the frequency of the message is counted according to the sending moments of the message within the preset time length, the technical problem of inaccurate frequency counting in the prior art can be solved, and the accuracy of frequency counting can be effectively improved because the frequency counting of the embodiment of the application is carried out in the same process and cross-process communication delay does not exist.
According to the technical scheme of the embodiment of the application, the frequency of each message sending module in a plurality of message sending modules in the same process can be counted, and the accuracy of frequency counting of each message sending module can be effectively ensured.
According to the technical scheme of the embodiment of the application, a message time cache can be configured for each message sending module and used for recording the sending time of the message sent by the corresponding message sending module, so that the frequency of the message sending module can be accurately counted in the follow-up process, and the occurrence of frequency counting errors when a plurality of message sending modules are put together for counting is avoided.
According to the technical scheme of the embodiment of the application, whether the message sending module is abnormal or not can be detected based on the statistical frequency, whether the message sending module is abnormal or not can be effectively detected automatically, and meanwhile, the function and application of frequency statistics can be effectively expanded.
According to the technical scheme of the embodiment of the application, the frequency of the message sending module which is counted in advance for sending the message can be returned to the frequency request section according to the message frequency request of the frequency request section, the frequency of the message sending module for sending the message is not required to be calculated after the message frequency request is received, and the accuracy of the returned frequency can be effectively guaranteed.
It should be understood that various forms of the flows shown above, reordering, adding or deleting steps, may be used. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A statistical method of message frequencies, the method being performed by a statistical apparatus of message frequencies, the statistical apparatus of message frequencies being provided in a process, the method comprising:
recording a plurality of receiving moments of a plurality of messages in the process of receiving the plurality of messages sent by the message sending module which is subscribed in advance and is positioned in the same process with the statistical device of the message frequency;
And counting the frequency of the message sending module for sending the message according to the plurality of receiving moments within the preset time length.
2. The method of claim 1, wherein before receiving a plurality of messages sent by a message sending module that is pre-subscribed to and co-located with the statistical means of message frequency, the method further comprises:
determining a module identifier of the message sending module according to the process identifier of the process;
and sending a subscription request for the message sent by the message sending module to a message management module, wherein the subscription request comprises the module identification.
3. The method according to claim 1 or 2, wherein after counting the frequency of messages sent by the message sending module, the method further comprises:
and detecting whether the message sending module is abnormal or not according to the frequency of the message sent by the message sending module and a preset frequency threshold.
4. The method according to claim 1 or 2, wherein after counting the frequency of the plurality of messages, the method further comprises:
receiving a message frequency request sent by a frequency request end;
and sending the frequency of the message sent by the message sending module to the frequency request terminal, wherein the frequency of the message sent by the message sending module indicates whether the message sending module is abnormal or not.
5. A device for counting message frequencies, wherein the device for counting message frequencies is arranged in a process, the device comprising:
the recording module is used for recording a plurality of receiving moments of a plurality of messages in the process of receiving the plurality of messages sent by the message sending module which is subscribed in advance and is in the same process with the statistical device of the message frequency;
and the statistical module is used for counting the frequency of the message sending module for sending the message according to the plurality of receiving moments in the preset time length.
6. The apparatus of claim 5, further comprising:
a determining module, configured to determine a module identifier of the message sending module according to the process identifier of the process;
and the sending module is used for sending a subscription request for the message sent by the message sending module to the message management module, wherein the subscription request comprises the module identifier.
7. The apparatus of claim 5 or 6, further comprising:
and the detection module is used for detecting whether the message sending module is abnormal or not according to the frequency of the message sent by the message sending module and a preset frequency threshold value.
8. The apparatus of claim 6, further comprising a receiving module;
the receiving module is used for receiving a message frequency request sent by a frequency request end;
the sending module is further configured to send a frequency at which the message sending module sends a message to the frequency request end; the frequency of the message sending module sending the message indicates whether the message sending module is abnormal.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4.
10. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-4.
CN201911174489.3A 2019-11-26 2019-11-26 Statistical method, device, equipment and storage medium for message frequency in automatic driving Active CN111031105B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911174489.3A CN111031105B (en) 2019-11-26 2019-11-26 Statistical method, device, equipment and storage medium for message frequency in automatic driving

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911174489.3A CN111031105B (en) 2019-11-26 2019-11-26 Statistical method, device, equipment and storage medium for message frequency in automatic driving

Publications (2)

Publication Number Publication Date
CN111031105A CN111031105A (en) 2020-04-17
CN111031105B true CN111031105B (en) 2022-06-28

Family

ID=70202254

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911174489.3A Active CN111031105B (en) 2019-11-26 2019-11-26 Statistical method, device, equipment and storage medium for message frequency in automatic driving

Country Status (1)

Country Link
CN (1) CN111031105B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115123302A (en) * 2022-07-07 2022-09-30 九识(苏州)智能科技有限公司 Decision planning system and method for automatic driving vehicle and vehicle

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207808A (en) * 2012-01-13 2013-07-17 百度在线网络技术(北京)有限公司 Processing method and device in multi-core system
CN106899943A (en) * 2017-03-10 2017-06-27 广东欧珀移动通信有限公司 Control broadcast transmission person sends method, device and the terminal device of broadcast message
CN109756528A (en) * 2017-11-01 2019-05-14 广州腾讯科技有限公司 Control method for frequency and device, equipment, storage medium, server

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070297327A1 (en) * 2006-06-27 2007-12-27 International Business Machines Corporation Method for applying stochastic control optimization for messaging systems
CN101312554A (en) * 2007-05-25 2008-11-26 株洲南车时代电气股份有限公司 Control method for data wireless transmission in the field of traffic and application server
CN102811283A (en) * 2012-04-18 2012-12-05 中兴通讯股份有限公司 Terminal communication display method and terminal thereof
US10235278B2 (en) * 2013-03-07 2019-03-19 International Business Machines Corporation Software testing using statistical error injection
CN105511946A (en) * 2015-11-30 2016-04-20 青岛海尔智能家电科技有限公司 Intelligent home appliance equipment active degree statistic method and device and internet gateway
CN107483521A (en) * 2016-06-08 2017-12-15 阿里巴巴集团控股有限公司 An information display method, device and system
CN107797902B (en) * 2016-09-06 2021-07-30 北京百度网讯科技有限公司 Method and device for monitoring message transmission frequency of robot operating system
CN109194736B (en) * 2018-08-30 2021-04-27 百度在线网络技术(北京)有限公司 Message duplicate removal method and device, electronic equipment, medium and unmanned vehicle
CN109547282B (en) * 2018-10-22 2022-04-12 中国平安人寿保险股份有限公司 Overload protection method and device, computer readable storage medium and server
CN110399405A (en) * 2019-07-26 2019-11-01 广州虎牙科技有限公司 Log alarming method, apparatus, system and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207808A (en) * 2012-01-13 2013-07-17 百度在线网络技术(北京)有限公司 Processing method and device in multi-core system
CN106899943A (en) * 2017-03-10 2017-06-27 广东欧珀移动通信有限公司 Control broadcast transmission person sends method, device and the terminal device of broadcast message
CN109756528A (en) * 2017-11-01 2019-05-14 广州腾讯科技有限公司 Control method for frequency and device, equipment, storage medium, server

Also Published As

Publication number Publication date
CN111031105A (en) 2020-04-17

Similar Documents

Publication Publication Date Title
CN112437018B (en) Flow control method, device, equipment and storage medium of distributed cluster
US10360299B2 (en) Maintaining conversational cadence in an online social relationship
CN111858248A (en) Application monitoring method, device, equipment and storage medium
JP6921277B2 (en) Target detection and tracking methods, devices, electronic devices, storage media, and programs
CN111835856A (en) File downloading method, device, equipment and storage medium
CN111090691B (en) Data processing method and device, electronic equipment and storage medium
CN111865720B (en) Method, apparatus, device and storage medium for processing request
CN112561332B (en) Model management method, device, electronic equipment, storage medium and program product
CN111897694A (en) Method, device and equipment for processing messages in applet and storage medium
CN110659184B (en) Health state checking method, device and system
CN112802325A (en) Vehicle queuing length detection method and device
CN111866071A (en) Data uploading method and device of business application, electronic equipment and storage medium
CN111726402B (en) User behavior data processing method and device, electronic equipment and storage medium
CN111031105B (en) Statistical method, device, equipment and storage medium for message frequency in automatic driving
CN110958250B (en) Port monitoring method and device and electronic equipment
CN111917814B (en) Data publishing method, data subscribing method, data publishing device, data subscribing system and readable storage medium
CN112351042B (en) Attack flow calculation method and device, electronic equipment and storage medium
CN111597026B (en) Method and device for acquiring information
TWI511060B (en) Device, method and non-transitory computer readable storage medium for performing instant message communication
CN113746933A (en) Method and device for displaying information
CN112581157B (en) Information delivery control method, device, equipment, system and medium
CN112752323A (en) Method and device for changing hotspot access state
CN111787131B (en) ID generation method and electronic device
CN111833024B (en) Method, apparatus, device and storage medium for outputting information
CN117472475A (en) File reduction method and 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