Online state determination method and device, electronic equipment and vehicle

By obtaining the subscriber list in DDS and sending subscription data to update the subscriber status, the problem of high bandwidth and poor monitoring of static discovery protocols is solved, and fine online status monitoring and DDS middleware stability are achieved for publishers and subscribers. Improvement of sex.

CN119012169APending Publication Date: 2024-11-22BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310575872.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-19
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The existing static discovery protocol in DDS discovers the online status of domain participants by sending announcement messages regularly, resulting in high bandwidth occupancy and difficulty in meticulously monitoring the online situation of each publisher and subscriber.

Method used

By obtaining the subscriber list when the data subscription is updated, sending subscription data to online subscribers, and updating its status as offline without receiving a response message, reducing the sending of announcement messages and improving the stability of DDS middleware sex.

Benefits of technology

It realizes fine online status monitoring of publishers and subscribers, reduces bandwidth usage, and improves the stability of DDS middleware.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119012169A_ABST
    Figure CN119012169A_ABST
Patent Text Reader

Abstract

The invention provides an online state determination method and device, electronic equipment and a vehicle, and relates to the technical field of communication, and the method comprises the steps: obtaining a first subscriber list associated with subscribed data under the condition of determining that any subscribed data is updated, the first subscriber list comprises an identifier of a subscriber subscribing the subscribed data and an online state of the subscriber; sending the subscribed data to a first subscriber in an online state in the first subscriber list; and under the condition that a response message returned by any first subscriber is not received, updating the online state of any first subscriber in the first subscriber list to an offline state. Therefore, the state of the subscriber can be updated by sending the subscription data without sending an announce message, so that the bandwidth can be reduced, and the stability of the DDS middleware can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to an online status determination method, device, electronic device and vehicle. Background Art

[0002] The Data Distribution Service (DDS) provides a variety of services and features for applications, such as communication or data sharing. The default discovery system provided by DDS requires the use of DDS's publish-subscribe transport mechanism, allowing any two DDS programs to communicate directly.

[0003] In the related art, the static discovery protocol provided in DDS relies on domain participants to periodically send announce messages to each other to discover each other's online status, which consumes a lot of bandwidth. Summary of the invention

[0004] The present disclosure aims to solve one of the technical problems in the related art at least to some extent.

[0005] The first embodiment of the present disclosure provides a method for determining an online status, including:

[0006] In the case where it is determined that any subscribed data is updated, obtaining a first subscriber list associated with the subscribed data, wherein the first subscriber list includes a subscriber identifier who subscribes to the subscribed data and an online status of the subscriber;

[0007] Sending the subscribed data to a first subscriber in the first subscriber list who is online;

[0008] In the case where no response message returned by any first subscriber is received, the online status of any first subscriber in the first subscriber list is updated to an offline status.

[0009] The second aspect of the present disclosure provides a method for determining an online status, including:

[0010] In response to receiving the subscribed data, reply a response message to the data publisher and record the reply time;

[0011] In response to a time interval between the current time and the reply time being greater than a preset threshold, sending a second message to the publisher;

[0012] In response to not receiving a second response message within a specified time period after sending the second message, it is determined that the data publisher is in an offline state.

[0013] The third aspect of the present disclosure provides an online status determination device, including:

[0014] an acquisition module, configured to acquire a first subscriber list associated with any subscribed data when it is determined that any subscribed data is updated, wherein the first subscriber list includes a subscriber identifier subscribing to the subscribed data and an online status of the subscriber;

[0015] A first sending module, configured to send the subscribed data to a first subscriber in the first subscriber list who is online;

[0016] The updating module is used to update the online state of any first subscriber in the first subscriber list to an offline state when no response message returned by any first subscriber is received.

[0017] The fourth aspect of the present disclosure provides an online status determination device, including:

[0018] The receiving module is used to reply a response message to the data publisher in response to receiving the subscribed data, and record the reply time;

[0019] A second sending module, configured to send a second message to the publisher in response to a time interval between the current time and the reply time being greater than a preset threshold;

[0020] A determination module is used to determine that the data publisher is offline in response to not receiving a second response message within a specified time period after sending the second message.

[0021] The fifth aspect embodiment of the present disclosure proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the online status determination method proposed in the first aspect embodiment or the second aspect embodiment of the present disclosure is implemented.

[0022] The sixth aspect embodiment of the present disclosure proposes a non-temporary computer-readable storage medium storing a computer program, which, when executed by a processor, implements the online status determination method proposed in the first aspect embodiment or the second aspect embodiment of the present disclosure.

[0023] The online status determination method, device, equipment and storage medium provided by the present disclosure have the following beneficial effects:

[0024] In the disclosed embodiment, the device first obtains the first subscriber list associated with the subscribed data when it is determined that any subscribed data is updated, wherein the first subscriber list includes the identifier of the subscriber who subscribes to the subscribed data and the online status of the subscriber, and then sends the subscribed data to the first subscriber in the first subscriber list who is online, and then updates the online status of any first subscriber in the first subscriber list to an offline status if no response message is received from any first subscriber. Thus, the subscriber status can be updated by sending subscription data without sending an announce message, thereby reducing bandwidth and improving the stability of the DDS middleware.

[0025] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0027] Figure 1 A flowchart of a method for determining an online status provided by the first embodiment of the present disclosure;

[0028] Figure 2 A flowchart of a method for determining an online status provided in the second embodiment of the present disclosure;

[0029] Figure 3 A schematic diagram of a publisher finding that a subscriber is offline provided by an embodiment of the present disclosure;

[0030] Figure 4 A schematic diagram of a flow chart of an online status determination method provided in the third embodiment of the present disclosure;

[0031] Figure 5 A flowchart of a method for determining an online status provided in the fourth embodiment of the present disclosure;

[0032] Figure 6 A schematic diagram of a subscriber finding that a publisher is offline provided by an embodiment of the present disclosure;

[0033] Figure 7 A structural block diagram of an online status determination device provided by an embodiment of the present disclosure;

[0034] Figure 8 A structural block diagram of an online status determination device provided by an embodiment of the present disclosure;

[0035] Fig. 9A block diagram of an exemplary computer device suitable for implementing embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0036] Embodiments of the present disclosure are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.

[0037] It should be noted that the static discovery protocol relies on periodic sending of announce messages to discover each other based on domain participants, and sends a deregistration message to cancel the connection when the domain participant is deleted, so it can only be prompted to go offline based on the domain participants. Among them, a domain participant may contain multiple publishers, or multiple domain participants. If the publishers and subscribers in the domain participants are discovered by domain participants sending announce messages to each other regularly, it is not fine enough and has a large granularity. It is also difficult to discover the online status of each publisher and subscriber in a timely manner, and the announce message usually contains a lot of relevant information about publishers and subscribers, so it contains a certain amount of data and occupies bandwidth. The online status determination method proposed in the embodiment of the present disclosure can monitor publishers and subscribers, so the granularity is small, and it can be more finely known whether publishers and subscribers are online.

[0038] The following describes an online status determination method, apparatus, computer device, and storage medium according to embodiments of the present disclosure with reference to the accompanying drawings.

[0039] Figure 1 A flowchart of the online status determination method provided in the first embodiment of the present disclosure.

[0040] The execution subject of the online status determination method provided in the first embodiment of the present disclosure is the data publisher.

[0041] like Figure 1 As shown, the online status determination method may include the following steps:

[0042] Step 101: when it is determined that any subscribed data is updated, obtain a first subscriber list associated with the subscribed data, wherein the first subscriber list includes a subscriber identifier who subscribes to the subscribed data and an online status of the subscriber.

[0043] The subscribed data is pre-subscribed data, which may include multiple types of subscribed data, such as image data, audio data, text data, etc., which are not limited here. It should be noted that the data publisher can pre-register with multiple data subscribers. The data subscribed by different subscribers may be the same or different.

[0044] The data publisher can obtain the first subscriber list associated with the subscribed data from the database when detecting that any subscribed data is currently updated. For example, if the number of subscribed data A increases, the data publisher can obtain the first subscriber list X associated with the subscribed data A according to the preset mapping relationship, where X includes the identifiers of each subscriber who subscribes to the subscribed data A and the online status of the subscriber.

[0045] The first subscriber list includes the identifier of the subscriber who subscribes to the subscribed data and the online status of the subscriber. The subscriber identifier can be used to represent the subscriber who subscribes to the subscribed data.

[0046] For example, the first subscriber list a includes subscriber identifiers d1, d2, and d3, wherein the online status corresponding to d1 and d2 is online, and the online status corresponding to d3 is offline, which is not limited here.

[0047] Step 102: Send subscribed data to a first subscriber in a first subscriber list who is online.

[0048] It is understandable that communication can be performed only when the subscriber is online, so the data publisher can send subscribed data to the first subscriber in the first subscriber list who is online.

[0049] The first subscriber may be an online subscriber in the first subscriber list.

[0050] Step 103: When no response message returned by any first subscriber is received, the online state of any first subscriber in the first subscriber list is updated to an offline state.

[0051] The response message may be a reply message sent by the first subscriber after receiving the subscribed data, for indicating that the first subscriber has received the data.

[0052] Specifically, the data publisher can use a timer to count when sending the subscribed data, that is, record the sending time, and then update the online status of any first subscriber in the first subscriber list to an offline status if no response message is received from any first subscriber within a specified time period after sending the subscribed data.

[0053] The specified time period may be a pre-set time period, such as 10 ms, which is not limited here.

[0054] It should be noted that the designated time periods corresponding to different data publishers may be the same or different.

[0055] In the disclosed embodiment, the device first obtains the first subscriber list associated with the subscribed data when it is determined that any subscribed data is updated, wherein the first subscriber list includes the identifier of the subscriber who subscribes to the subscribed data and the online status of the subscriber, and then sends the subscribed data to the first subscriber in the first subscriber list who is online, and then updates the online status of any first subscriber in the first subscriber list to an offline status if no response message is received from any first subscriber. Thus, the subscriber status can be updated by sending subscription data without sending an announce message, thereby reducing bandwidth and improving the stability of the DDS middleware.

[0056] Figure 2 This is a flow chart of a method for determining an online status according to a second embodiment of the present disclosure.

[0057] The execution subject of the online status determination method provided in the second embodiment of the present disclosure is the data publisher.

[0058] like Figure 2 As shown, the online status determination method may include the following steps:

[0059] Step 201: when it is determined that any subscribed data is updated, obtain a first subscriber list associated with the subscribed data, wherein the first subscriber list includes a subscriber identifier who subscribes to the subscribed data and an online status of the subscriber.

[0060] Step 202: Send the subscribed data to a first subscriber in a first subscriber list who is online.

[0061] It should be noted that the specific implementation of steps 201 and 202 can refer to the above embodiment and will not be described in detail here.

[0062] Step 203: In response to receiving a response message returned by any first subscriber containing a lost data identifier, first data corresponding to the lost data identifier is sent to any first subscriber.

[0063] The missing data indicator is used to indicate the missing data when the subscribed data is currently being sent.

[0064] The first data may be data corresponding to the lost data identifier.

[0065] like Figure 3 As shown in the schematic diagram, the publisher uses a reliable transmission mode to send subscribed data DATA1, DATA2, DATA3, DATA4, and DATA5 to the first subscriber, and the response message returned by the subscriber is ACK, wherein the ACK includes a lost data identifier DATA2. Therefore, the publisher needs to retransmit the first data DATA2, for example, three times, which is not limited here.

[0066] Step 204: if no response message returned by any first subscriber is received within a specified time period after sending the first data, update the online state of any first subscriber in the first subscriber list to an offline state.

[0067] The data publisher may perform timing after sending the first data, so as to update the online state of any first subscriber in the first subscriber list to an offline state if no response message returned by the first subscriber is received within a specified time period.

[0068] like Figure 3 As shown in the schematic diagram, after the first data DATA2 is retransmitted, the time is off-line after the specified time period timeout has passed, and no response message returned by the subscriber is received, the online status of the first subscriber in the first subscriber list can be updated to offline status.

[0069] In the disclosed embodiment, the device first obtains the first subscriber list associated with the subscribed data when it is determined that any subscribed data is updated, wherein the first subscriber list includes the identifier of the subscriber who subscribes to the subscribed data and the online status of the subscriber, and then sends the subscribed data to the first subscriber in the first subscriber list who is online, and then in response to receiving a response message returned by any first subscriber containing a lost data identifier, sends the first data corresponding to the lost data identifier to any first subscriber, and finally, within a specified time period after sending the first data, if no response message returned by any first subscriber is received, updates the online status of any first subscriber in the first subscriber list to an offline state. In this way, it is possible to timely discover whether the subscriber is online or offline during the data communication process, and since it is judged by whether a response message is received, less bandwidth is occupied, and the determination of the online status is relatively timely.

[0070] Figure 4 A schematic flow chart of an online status determination method provided in the third embodiment of the present disclosure.

[0071] The execution subject of the online status determination method provided in the second embodiment of the present disclosure is the data publisher.

[0072] like Figure 4 As shown, the online status determination method may include the following steps:

[0073] Step 301: when it is determined that any subscribed data is updated, obtain a first subscriber list associated with the subscribed data, wherein the first subscriber list includes a subscriber identifier who subscribes to the subscribed data and an online status of the subscriber.

[0074] Step 302: Send the subscribed data to a first subscriber in a first subscriber list who is online.

[0075] It should be noted that the specific implementation of steps 301 and 302 can refer to the above embodiment and will not be described in detail here.

[0076] Step 303: upon receiving a response message returned by any first subscriber, determining that the online status of any first subscriber in the first subscriber list is online.

[0077] It should be noted that, if the data publisher receives a response message returned by any first subscriber, it can be determined that the online status of any first subscriber in the first subscriber list is online.

[0078] For example, if the data publisher currently sends subscribed data to the first subscribers y1, y2, and y3 respectively, and only the first subscriber y1 returns a response message, it means that only the online status of y1 is online.

[0079] Step 304: In response to the time interval between the current time and the time when the response message is received reaching a preset threshold, a first message is sent to any one of the first subscribers.

[0080] The first message may be a heartbeat message HEARTBEAT, and the first message is used to monitor the online status of any first subscriber.

[0081] Specifically, when sending the first message to any first subscriber, the message may be sent multiple times at a preset time interval, for example, the first message may be sent three times.

[0082] For example, if the preset threshold is 1.2s, and the time interval between the response time received by the data publisher and the current time is 1.2s, the first message can be published to the first subscriber.

[0083] Step 305: if no response message returned by any first subscriber is received within a specified time period after the first message is sent, update the online state of any first subscriber in the first subscriber list to an offline state.

[0084] In the embodiment of the present disclosure, the device first obtains a first subscriber list associated with the subscribed data when it is determined that any subscribed data is updated, wherein the first subscriber list includes a subscriber identifier subscribing to the subscribed data and an online status of the subscriber, and then sends the subscribed data to the first subscriber in the first subscriber list who is in an online state, and when a response message returned by any first subscriber is received, determines that the online state of any first subscriber in the first subscriber list is online, and in response to the time interval between the current time and the time when the response message is received reaching a preset threshold, sends a first message to any first subscriber, and when no response message returned by any first subscriber is received within a specified time period after sending the first message, updates the online state of any first subscriber in the first subscriber list to an offline state. Thus, by sending the first message, it is possible to timely find out whether the subscriber is online or offline during the data communication process, and since it is judged by whether a response message is received, the bandwidth occupied is small, and the determination of the online state is relatively timely.

[0085] Figure 5 This is a flowchart of a method for determining an online status provided in a fourth embodiment of the present disclosure.

[0086] The execution subject of the online status determination method provided in the fourth embodiment of the present disclosure is the subscriber.

[0087] like Figure 5 As shown, the online status determination method may include the following steps:

[0088] Step 401: in response to receiving the subscribed data, reply a response message to the data publisher and record the reply time.

[0089] The subscribed data is pre-subscribed data, which may include multiple types of subscribed data, such as image data, audio data, text data, etc., which are not limited here. It should be noted that the data publisher can pre-register with multiple data subscribers. The data subscribed by different subscribers may be the same or different.

[0090] The response message may be a reply message sent by the subscriber after receiving the subscribed data, which is used to indicate that the subscriber has received the data.

[0091] Specifically, after receiving the subscribed data sent by the data publisher, the data publisher may reply with a response message to the data publisher to inform the data publisher that the data has been received and whether all the data has been received.

[0092] The reply time may be the time for sending the response message.

[0093] Optionally, in response to the lack of first data in the currently received subscribed data, the subscriber may also reply a response message to the data publisher, wherein the response message contains a missing data identifier corresponding to the first data.

[0094] Step 402: In response to the time interval between the current time and the reply time being greater than a preset threshold, a second message is sent to the publisher.

[0095] The second message may be a heartbeat message HEARTBEAT, which may be used to monitor the publisher's node and confirm that it is online normally.

[0096] Specifically, when sending the second message to the publisher, it may be sent multiple times at preset time intervals, for example, the second message may be sent three times.

[0097] Specifically, when sending the second message to the publisher, it may be sent multiple times at preset time intervals, for example, the second message may be sent three times.

[0098] For example, if the preset threshold is 1.2s, and the time interval between the time when the subscriber receives the response and the current time is 1.2s, the second message can be published to the publisher.

[0099] Step 403: In response to not receiving a second response message within a specified time period after sending the second message, determining that the data publisher is offline.

[0100] The second response message may be a response message that the data publisher should return after receiving the second message.

[0101] like Figure 6 As shown in the schematic diagram, the publisher uses a reliable transmission mode to send the subscribed data DATA1, DATA2, DATA3, DATA4, and DATA5 to the first subscriber, and the response message returned by the subscriber is ACK. After a certain time interval, the subscriber can send a second message to the data publisher. For example, it can send three HEARTBEAT messages. After that, within a specified time period, that is, after the timeout time, the time is off-line. If the second response message returned by the data publisher is still not received, it can be determined that the data publisher is offline.

[0102] In the disclosed embodiment, the subscriber first responds to the data publisher in response to receiving the subscribed data, and records the response time, then responds to the time interval between the current time and the response time being greater than a preset threshold, sends a second message to the publisher, and then responds to the failure to receive a second response message within a specified time period after sending the second message, determines that the data publisher is offline. Thus, the subscriber can promptly discover that the publisher is offline during the data transmission process, reduce the number of announce messages sent, and promptly discover the online status of each publisher or subscriber in the domain participant, thereby reducing bandwidth and improving the stability of the DDS middleware.

[0103] In order to implement the above embodiment, the present disclosure also proposes an online status determination device.

[0104] Figure 7 This is a structural block diagram of an online status determination device provided in the third embodiment of the present disclosure.

[0105] like Figure 7 As shown, the online status determining device 700 may include:

[0106] The acquisition module 710 is used to acquire a first subscriber list associated with the subscribed data when it is determined that any subscribed data is updated, wherein the first subscriber list includes a subscriber identifier who subscribes to the subscribed data and an online status of the subscriber;

[0107] A first sending module 720, configured to send the subscribed data to a first subscriber in the first subscriber list who is online;

[0108] The updating module 730 is configured to update the online state of any first subscriber in the first subscriber list to an offline state when no response message returned by any first subscriber is received.

[0109] Optionally, the update module is specifically used to:

[0110] If no response message returned by any first subscriber is received within a specified time period after sending the subscribed data, the online state of any first subscriber in the first subscriber list is updated to an offline state.

[0111] Optionally, the first sending module is further used to:

[0112] In response to receiving a response message returned by any first subscriber containing a lost data identifier, sending the first data corresponding to the lost data identifier to the any first subscriber;

[0113] If no response message returned by any first subscriber is received within a specified time period after the first data is sent, the online state of any first subscriber in the first subscriber list is updated to an offline state.

[0114] Optionally, the first sending module is further used to:

[0115] In case of receiving a response message returned by any first subscriber, determining that the online status of any first subscriber in the first subscriber list is online;

[0116] In response to a time interval between the current time and the time when the response message is received reaching a preset threshold, sending a first message to any one of the first subscribers;

[0117] If no response message returned by any first subscriber is received within a specified time period after sending the first message, the online state of any first subscriber in the first subscriber list is updated to an offline state.

[0118] In the disclosed embodiment, the device first obtains the first subscriber list associated with the subscribed data when it is determined that any subscribed data is updated, wherein the first subscriber list includes the identifier of the subscriber who subscribes to the subscribed data and the online status of the subscriber, and then sends the subscribed data to the first subscriber in the first subscriber list who is online, and then updates the online status of any first subscriber in the first subscriber list to an offline status if no response message is received from any first subscriber. Thus, the subscriber status can be updated by sending subscription data without sending an announce message, thereby reducing bandwidth and improving the stability of the DDS middleware.

[0119] Figure 8 This is a structural block diagram of an online status determination device provided in the third embodiment of the present disclosure.

[0120] like Figure 8 As shown, the online status determining device 800 may include:

[0121] The receiving module is used to reply a response message to the data publisher in response to receiving the sent subscribed data, and record the reply time;

[0122] A second sending module, configured to send a second message to the publisher in response to a time interval between the current time and the reply time being greater than a preset threshold;

[0123] A determination module is used to determine that the data publisher is offline in response to not receiving a second response message within a specified time period after sending the second message.

[0124] Optionally, the device further comprises:

[0125] The reply module is used to reply a response message to the data publisher in response to the lack of first data in the currently received subscribed data, wherein the response message contains a missing data identifier corresponding to the first data.

[0126] In the disclosed embodiment, the subscriber first responds to the receipt of the subscribed data by replying a response message to the data publisher and recording the reply time, then responds to the time interval between the current time and the reply time being greater than a preset threshold, sends a second message to the publisher, and then responds to the failure to receive a second reply message within a specified time period after sending the second message, determines that the data publisher is offline. Thus, the subscriber can promptly discover that the publisher is offline during the data transmission process, reduce the number of announce messages sent, and promptly discover the online status of each publisher or subscriber in the domain participant, thereby reducing bandwidth and improving the stability of the DDS middleware.

[0127] In order to implement the above embodiments, the present disclosure further proposes a computer device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the online status determination method proposed in the above embodiments of the present disclosure is implemented.

[0128] In order to implement the above embodiments, the present disclosure further proposes a non-transitory computer-readable storage medium storing a computer program, which, when executed by a processor, implements the online status determination method proposed in the above embodiments of the present disclosure.

[0129] In order to implement the above embodiments, the present disclosure further proposes a computer program product. When an instruction processor in the computer program product executes, the online status determination method proposed in the above embodiments of the present disclosure is executed.

[0130] Fig. 9 A block diagram of an exemplary computer device suitable for implementing embodiments of the present disclosure is shown. Fig. 9 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0131] like Fig. 9 As shown, the computer device 12 is in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0132] The bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.

[0133] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.

[0134] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Fig. 9 not shown, usually called a "hard drive"). Although Fig. 9 Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the various embodiments of the present disclosure.

[0135] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described in the present disclosure.

[0136] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed via an input / output (I / O) interface 22. In addition, the computer device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the computer device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0137] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the methods mentioned in the above embodiments.

[0138] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0139] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0140] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present disclosure includes additional implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present disclosure belong.

[0141] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0142] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0143] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0144] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0145] The storage medium mentioned above may be a read-only memory, a disk or an optical disk, etc. Although the embodiments of the present disclosure have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations of the present disclosure. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present disclosure.

Claims

1. A method for determining an online status, characterized in that: include: In the case where it is determined that any subscribed data is updated, obtaining a first subscriber list associated with the subscribed data, wherein the first subscriber list includes a subscriber identifier who subscribes to the subscribed data and an online status of the subscriber; Sending the subscribed data to a first subscriber in the first subscriber list who is online; In the case where no response message returned by any first subscriber is received, the online status of any first subscriber in the first subscriber list is updated to an offline status.

2. The method according to claim 1, characterized in that The updating the online status of any first subscriber in the first subscriber list to an offline status when no response message returned by any first subscriber is received includes: If no response message returned by any first subscriber is received within a specified time period after sending the subscribed data, the online state of any first subscriber in the first subscriber list is updated to an offline state.

3. The method according to claim 1, characterized in that After sending the subscribed data to the first subscriber in the first subscriber list who is online, the method further includes: In response to receiving a response message returned by any first subscriber containing a lost data identifier, sending the first data corresponding to the lost data identifier to the any first subscriber; If no response message returned by any first subscriber is received within a specified time period after the first data is sent, the online state of any first subscriber in the first subscriber list is updated to an offline state.

4. The method according to claim 1, characterized in that: After sending the subscribed data to the first subscriber in the first subscriber list who is online, the method further includes: In case of receiving a response message returned by any first subscriber, determining that the online status of any first subscriber in the first subscriber list is online; In response to a time interval between the current time and the time when the response message is received reaching a preset threshold, sending a first message to any of the first subscribers, wherein the first message is used to monitor the online status of any of the first subscribers; If no response message returned by any first subscriber is received within a specified time period after sending the first message, the online state of any first subscriber in the first subscriber list is updated to an offline state.

5. A method for determining an online status, characterized in that: include: In response to receiving the subscribed data, reply a response message to the data publisher and record the reply time; In response to a time interval between the current time and the reply time being greater than a preset threshold, sending a second message to the publisher; In response to not receiving a second response message within a specified time period after sending the second message, it is determined that the data publisher is in an offline state.

6. The method according to claim 5, characterized in that The step of replying a response message to the data publisher in response to receiving the subscribed data includes: In response to the lack of first data in the currently received subscribed data, a response message is replied to the data publisher, wherein the response message contains a missing data identifier corresponding to the first data.

7. An online status determination device, characterized in that: include: an acquisition module, configured to acquire a first subscriber list associated with any subscribed data when it is determined that any subscribed data is updated, wherein the first subscriber list includes a subscriber identifier subscribing to the subscribed data and an online status of the subscriber; A first sending module, configured to send the subscribed data to a first subscriber in the first subscriber list who is online; The updating module is used to update the online state of any first subscriber in the first subscriber list to an offline state when no response message returned by any first subscriber is received.

8. An online status determination device, characterized in that: include: The receiving module is used to reply a response message to the data publisher in response to receiving the subscribed data, and record the reply time; A second sending module, configured to send a second message to the publisher in response to a time interval between the current time and the reply time being greater than a preset threshold; A determination module is used to determine that the data publisher is offline in response to not receiving a second response message within a specified time period after sending the second message.

9. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the online status determination method as described in any one of claims 1 to 4 or 5 to 6 is implemented.

10. A vehicle, characterized in that: The electronic device comprising claim 9.