A message verification method

By adding authentication information to Bluetooth broadcast messages and performing verification, the problem of repeated reception of Bluetooth broadcast messages is solved, ensuring the accuracy of device data utilization and user experience.

CN116347360BActive Publication Date: 2025-07-22ZHEJIANG SHAOXING SUPOR DOMESTIC ELECTRICAL APPLIANCE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211575004.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-08
Publication Date
2025-07-22
Estimated Expiration
2042-12-08

AI Technical Summary

Technical Problem

The recipient of a Bluetooth broadcast message may repeatedly receive the same message, resulting in abnormal device functionality and poor user experience.

Method used

Add authentication information to the Bluetooth broadcast message, verify the authentication information, determine whether the broadcast message is a received message, and discard the message when repeated.

Benefits of technology

It avoids the repeated reception and reuse of Bluetooth broadcast messages, improves the accuracy of data utilization by the device, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116347360B_ABST
    Figure CN116347360B_ABST
Patent Text Reader

Abstract

An embodiment of the present disclosure provides a message verification method, the method comprising: a first device obtains a first broadcast message, wherein the first broadcast message includes broadcast data and authentication information, and the authentication information is obtained by analyzing the broadcast data; according to the authentication information, verify whether the first broadcast message is a broadcast message that has been received before, and if the verification result indicates that the first broadcast message is a broadcast message that has been received before, then discard the first broadcast message. This method can avoid the device from repeatedly receiving and using broadcast messages, and make the device's utilization of data more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technologies, and in particular, to a message verification method. Background Art

[0002] With the development of technology, electronic devices such as mobile phones and computers have been increasingly used in our lives. Currently, for the vast majority of electronic devices, the Bluetooth function is generally used to connect and interact with other electronic devices. Since the broadcaster cannot know whether the receiver has received the broadcast message after the Bluetooth broadcast message is sent, the same message is generally sent repeatedly to improve the arrival rate of the Bluetooth broadcast message. As a result, the receiver may receive the same broadcast message repeatedly, causing the receiver to reuse the broadcast message repeatedly, which may lead to abnormal functions of the electronic device and poor user experience. Summary of the Invention

[0003] In view of this, embodiments of the present disclosure provide at least one message verification method.

[0004] Specifically, the embodiments of the present disclosure are implemented through the following technical solutions:

[0005] In a first aspect, a message verification method is provided. The method includes:

[0006] A first device obtains a first broadcast message, where the first broadcast message includes broadcast data and authentication information, and the authentication information is obtained by analyzing the broadcast data;

[0007] According to the authentication information, verify whether the first broadcast message is a broadcast message that has been received. If the verification result indicates that the first broadcast message is a broadcast message that has been received, discard the first broadcast message.

[0008] In a second aspect, a message verification device is provided. The device includes:

[0009] A data acquisition module, configured to: obtain a first broadcast message, where the first broadcast message includes broadcast data and authentication information, and the authentication information is obtained by analyzing the broadcast data;

[0010] A data verification module, configured to: verify whether the first broadcast message is a broadcast message that has been received according to the authentication information;

[0011] A data processing module, configured to: discard the first broadcast message if the verification result indicates that the first broadcast message is a broadcast message that has been received.

[0012] In a third aspect, an electronic device is provided, which includes a memory and a processor. The memory is used to store computer instructions that can run on the processor, and the processor is used to implement the message verification method described in any embodiment of the present disclosure when executing the computer instructions.

[0013] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, it implements the message verification method described in any embodiment of the present disclosure.

[0014] In the technical solutions of the above aspects, authentication information is provided in the broadcast message obtained by the first device. The authentication information is obtained by analyzing the broadcast data in the broadcast message. Therefore, when the first device receives a repeated broadcast message, the authentication information therein is consistent. This enables the first device to verify the authentication information to determine whether the broadcast message has been received previously. If so, it is discarded, thereby avoiding repeated reception and utilization of the same broadcast message, making the device's utilization of data more accurate and enhancing the user experience.

[0015] In some embodiments, verifying whether the first broadcast message has been received based on the authentication information includes:

[0016] Based on the authentication information, verify it against the authentication information of the broadcast messages received by the first device within a preset time. If the verification result is consistent, it indicates that the first broadcast message has been received previously;

[0017] Or, based on the authentication information, verify it against the authentication information of the last broadcast message received by the first device. If the verification result is consistent, it indicates that the first broadcast message has been received previously.

[0018] When verifying based on the authentication information, it can be verified against the broadcast messages received within a preset time, thereby narrowing the verification scope and improving the verification speed. Or it can be directly verified through the authentication information of the last received broadcast message, which is more convenient and faster, and improves the verification speed.

[0019] In some embodiments, the authentication information includes a checksum; the authentication information obtained by analyzing the broadcast data includes: calculating the accumulated value of the identification information in the broadcast data except for the timestamp, and determining the checksum based on the accumulated value.

[0020] The setting of the checksum can increase the uniqueness of the authentication information, enabling the first device to accurately identify that the received broadcast message is a repeatedly received broadcast message even when the timestamps of the broadcast messages received each time are different in the case of receiving the same broadcast message sent repeatedly.

[0021] In some embodiments, the authentication information further includes device identity data of a second device that sends a first broadcast message, and the authentication information is obtained by analyzing the broadcast data, including:

[0022] Obtain the device identity data of the second device in the broadcast data, where the device identity data is used to identify the identity information of different devices.

[0023] The dual determination using device identity data and checksum can prevent misjudgment caused by multiple devices sending broadcast messages simultaneously. The checksum of broadcast information sent by different devices may be the same, but the device identity data is different. Therefore, it can be determined as different broadcast information, further improving the reliability of the authentication information.

[0024] In some embodiments, the identification information includes at least one of the following: device category, device model, attribute name of device detection parameters, type of device detection parameters, value of device detection parameters, and device status attribute value.

[0025] The uniqueness of the checksum calculated from multiple types of identification information is very strong, making the verification result more credible.

[0026] In some embodiments, the step of verifying whether the first broadcast message is a previously received broadcast message according to the authentication information includes:

[0027] Verify the checksum and the device identity data against the checksum and device identity data of the broadcast messages previously received by the first device.

[0028] If the verification result is consistent, it indicates that the first broadcast message is a previously received broadcast message.

[0029] The checksum of broadcast information sent by different devices may be the same, but the device identity data must be different. If both are the same, it is determined that the broadcast information is a previously received broadcast message, further ensuring the accuracy of the verification result.

[0030] In some embodiments, the step of verifying whether the first broadcast message is a previously received broadcast message according to the authentication information includes:

[0031] Search for a second broadcast message with the same device identity data received by the first device according to the device identity data of the second device.

[0032] Verify whether the checksum in the authentication information is consistent with the checksum of the authentication information in the second broadcast message.

[0033] When the authentication information is inconsistent, the verification result is that the first broadcast message is not a broadcast message that has been received by the first device.

[0034] In a scenario where two or more devices communicate using the broadcast function, it is possible that broadcast messages are cross-sent by different devices. At this time, if the authentication information is directly verified against the authentication information of the broadcast message received last time, since the device identity data of different devices is inconsistent, the authentication information will surely be inconsistent. However, the broadcast message received this time may be the same broadcast message sent by the same device that was received the time before last. To prevent such missed detections and improve the verification efficiency, in this embodiment, when verifying the authentication information, first search for the received second broadcast message with the same device identity data as that in the first broadcast message received this time. The same device identity data indicates that the second broadcast message was also sent by the first device, and then verify whether the checksum in the two is consistent.

[0035] In some embodiments, the method further includes:

[0036] When the verification result indicates that the first broadcast message is not a broadcast message that has been received, control the operating parameters of the first device according to the broadcast data.

[0037] When the authentication information is inconsistent, it means that the broadcast message received this time is not a repeatedly received broadcast message, and consume the broadcast message received this time locally. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] To more clearly illustrate the technical solutions in one or more embodiments of the present disclosure or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments or related technologies. Obviously, the drawings described below are only some embodiments recorded in one or more embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0039] Figure 1 is a flowchart of a message verification method shown in at least one embodiment of the present disclosure;

[0040] Figure 2 is a schematic diagram of interaction between devices shown in at least one embodiment of the present disclosure;

[0041] Figure 3 is a block diagram of a message verification device shown in at least one embodiment of the present disclosure;

[0042] Figure 4 is a schematic hardware structure diagram of an electronic device shown in at least one embodiment of the present disclosure. Detailed implementation manners

[0043] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this specification. On the contrary, they are merely examples of devices and methods consistent with some aspects of this specification as detailed in the appended claims.

[0044] The terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit this specification. The singular forms "a", "the", and "said" used in this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

[0045] It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "while" or "in response to determining".

[0046] The devices mentioned in this specification are all electronic devices with a Bluetooth module capable of implementing Bluetooth functions. For example, they can be user mobile terminals such as mobile phones, tablets, and computers, or electrical appliances such as floor sweeping robots and smart speakers. The device can be a single Bluetooth device or a device with Bluetooth + other communication modules, such as a device with Bluetooth + Wi-Fi module.

[0047] Currently, for the built-in Bluetooth function of a device, it usually only recognizes basic information of a Bluetooth device such as the device ID (Identity document) and device address in the broadcast information, and other information can often be obtained through the data transmitted during the establishment of a Bluetooth connection. Therefore, for currently used Bluetooth broadcast devices, in order to improve the acceptance rate of Bluetooth broadcasts, the transmission frequency will be increased, but the receiving party will receive many duplicate messages, which will affect the receiving function of the receiving party itself and cause the receiving party to misuse the broadcast information.

[0048] Based on this, the present disclosure proposes at least one message verification method to solve the problem of duplicate reception of Bluetooth broadcast information through a new Bluetooth broadcast protocol. The protocol is provided with authentication information in the broadcast message sent by the device via Bluetooth. The authentication information is calculated from the original broadcast data to be sent. Therefore, when the device sends a duplicate broadcast message, since the authentication information therein is the same, the device that receives the broadcast message can verify the authentication information to determine whether the broadcast message has been received previously, thereby avoiding the redundancy of message reception by the receiver caused by the duplicate transmission of Bluetooth broadcast messages, as well as avoiding the reuse of messages and the incorrect use of data caused by duplicate reception of Bluetooth messages, making the device's utilization of data more accurate and improving the user experience.

[0049] As Figure 1 shown, Figure 1 is a flowchart of a message verification method shown in at least one embodiment of the present disclosure. This method can be used in a first device with Bluetooth communication function and includes the following steps:

[0050] In step 102, the first device acquires a first broadcast message, where the first broadcast message includes broadcast data and authentication information, and the authentication information is obtained by analyzing the broadcast data.

[0051] In step 104, according to the authentication information, it is verified whether the first broadcast message has been received before. If the verification result indicates that the first broadcast message has been received before, then the first broadcast message is discarded.

[0052] The method in this embodiment is applied to a scenario where two or more devices communicate using the Bluetooth broadcast function. The second device is the broadcaster of the Bluetooth broadcast message, and the first device is the receiver of the Bluetooth broadcast message. Of course, in other embodiments, both the second device and the first device can receive and send Bluetooth broadcast messages.

[0053] Broadcast data refers to the original information to be broadcast and sent to other devices, which can be Bluetooth broadcast data based on the standard Bluetooth broadcast protocol, such as identification information including device category, device model, attribute value, etc. In this embodiment, authentication information is newly added to the Bluetooth broadcast protocol. When the second device has original broadcast data to be sent, the authentication information is analyzed according to the information in the original broadcast data according to a certain algorithm, and the authentication information is set in the identification information of the first broadcast message and broadcast and sent, so that the first device that receives the first broadcast information can identify the authentication information in the identification information of the first broadcast information.

[0054] After the Bluetooth broadcast information is sent, the broadcasting party cannot know whether the receiving party has received the broadcast information. Generally, the message is repeatedly sent to improve the arrival rate of the Bluetooth broadcast message. The authentication information is calculated based on the original broadcast data, and the authentication information of the same broadcast message is the same. When the receiving party repeatedly receives the same broadcast message, it can identify whether the same broadcast message has been received previously by verifying the authentication information in the recognizable identification information.

[0055] In the case where the verification result indicates that the first broadcast message is a broadcast message that has been received by the first device, discard the first broadcast message.

[0056] For example, when the first device receives a broadcast message for the first time, it can locally store the authentication information in the broadcast message. When it receives the broadcast message for the second time, it compares the authentication message in the currently received broadcast message with the previously stored authentication message. When the two are consistent, it indicates that the currently received broadcast message is a broadcast message that has been received before, and the currently received broadcast message is discarded to avoid repeated use of the same data.

[0057] In one embodiment, the method further includes: in the case where the verification result indicates that the first broadcast message is not a broadcast message that has been received by the first device, controlling the operating parameters of the first device according to the broadcast data.

[0058] Continuing with the above example, when the broadcast message is received for the second time, the authentication message in the currently received broadcast message is compared with the previously stored authentication message. When the two are inconsistent, it indicates that the currently received broadcast message is not a broadcast message that has been received before, and the currently received broadcast message can be consumed and utilized. The operating parameters of the first device are control parameters related to the operation of the first device. For example, when the first device is a humidifier and the broadcast data contains the humidity information of the room, the humidifier adjusts the operating power during humidification according to the humidity information of the room.

[0059] In one embodiment, the authentication information includes a checksum; the authentication information is obtained by analyzing the broadcast data, including calculating the cumulative value of the identification information in the broadcast data except the timestamp, and determining the checksum according to the cumulative value.

[0060] The checksum is the cumulative checksum of all other identification information in the identification information except the timestamp information. In other examples, it can also be the cumulative checksum of some other identification information except the timestamp information. The cumulative identification information needs to include information of key variables, such as the attribute name of the detection parameter, the type of the detection parameter, and the value of the detection parameter, etc., and can also include the unique code of the device.

[0061] In one embodiment, the identification information includes at least one of the following: device category, device model, attribute name of device detection parameter, type of device detection parameter, value of device detection parameter, and device status attribute value.

[0062] Among them, during the operation of the device, different device detection parameters and device status attribute values indicating the operating status of the device are generated. The device detection parameters have an attribute name, a type, and a value. For example, when the device is a temperature sensor, the attribute name of the device detection parameter generated by it is the actual temperature, the type is temperature, and the value is 26 °C; the device status attribute value is on, indicating that the temperature sensor is running. The device status attribute value can be not only the switch status, but also other statuses such as the child lock status and the abnormal operation status.

[0063] The broadcast data contains identification information such as device category, device model, attribute value, and timestamp. The timestamp contains the time when the original broadcast data is generated. When the device repeatedly sends the same broadcast message, the timestamps in the broadcast messages sent each time are different. Therefore, in order to ensure that the authentication information in the repeatedly sent same broadcast message is the same, in this embodiment, the timestamp is not considered when calculating the checksum of the identification information.

[0064] The setting of the checksum can increase the uniqueness of the authentication information, so that when the first device receives the same broadcast information repeatedly sent by the second device, even if the timestamps of the broadcast information received each time are different, it can accurately identify that the received broadcast message is a previously received broadcast message.

[0065] In one embodiment, the authentication information further includes the device identity data of the second device that sends the first broadcast message. The authentication information is obtained by analyzing the broadcast data and includes:

[0066] Obtain the device identity data of the second device in the broadcast data, where the device identity data is used to identify the identity information of different devices

[0067] In a scenario where two or more devices communicate using the Bluetooth broadcast function, it is possible that the checksum information in the broadcast messages sent by different devices is the same. In this example, the authentication information further includes device identity data to distinguish different devices. The dual determination using device identity data and checksum can prevent misjudgment caused by multiple Bluetooth devices sending messages simultaneously. The checksum of the Bluetooth broadcast information sent by different Bluetooth devices may be the same, but the device identity data is different. Therefore, it can be determined as different broadcast information, further improving the reliability of the authentication information.

[0068] In one embodiment, according to the authentication information, verifying whether the first broadcast message is a previously received broadcast message includes:

[0069] According to the checksum and the device identity data, verify them against the checksum and device identity data of the broadcast messages previously received by the first device; if the verification result is consistent, it indicates that the first broadcast message is a previously received broadcast message.

[0070] During verification, both the checksum and the device identity data are verified simultaneously. Although the checksums of the broadcast messages sent by different devices may be the same, the device identity data must be different. If both are the same, it is determined that the broadcast message is a previously received broadcast message, further ensuring the accuracy of the verification result.

[0071] Exemplarily, as Figure 2 shown, the device identity data and checksum information of the second device are provided in the Bluetooth broadcast identification information. When the second device sends repeated Bluetooth broadcast information, the device identity data remains consistent, and the checksum is the cumulative checksum of all other identification information in the broadcast identification information except the timestamp information. After the receiving first device receives the Bluetooth broadcast information, it verifies whether the device identity data and the checksum are the same as those of the previously received broadcast information. If both are the same, it is determined that it is a previously received broadcast message of the same broadcast information, and the receiving party discards the new broadcast information. If any one is different, it is determined that it is not a previously received broadcast message of the same broadcast information, and the first device consumes the broadcast data of the Bluetooth broadcast packet.

[0072] In one embodiment, the verifying whether the first broadcast message is a previously received broadcast message according to the authentication information includes:

[0073] According to the authentication information, verify it against the authentication information of the broadcast messages received by the first device within a preset time. If the verification result is consistent, it indicates that the first broadcast message is a previously received broadcast message;

[0074] Or, according to the authentication information, verify it against the authentication information of the previously received broadcast message of the first device. If the verification result is consistent, it indicates that the first broadcast message is a previously received broadcast message.

[0075] The preset time is a time period, which is set by those skilled in the art according to actual needs. When verifying according to the authentication information, it can be verified against the previously received broadcast messages within the preset time, rather than comparing with all the previously received broadcast messages, so as to narrow the verification scope and improve the verification speed. It can also be directly verified through the authentication information of the previously received broadcast message, which is more convenient and fast, and improves the verification speed.

[0076] In other embodiments, it may also be to check whether the authentication information is consistent with the authentication information of all previously received broadcast messages, or to customize the range of broadcast messages to be verified.

[0077] The identification information in a Bluetooth broadcast message is exemplified in Table 1 below and is illustrated in conjunction with two scenarios.

[0078]

[0079] Table 1

[0080] Scenario illustration 1: Broadcast information sent by the same device

[0081] The broadcast message content of a Bluetooth device, a kitchen scale (the second device), is that the weight of beef is 500g. Among them, the attribute name of the device detection parameter is beef, the type of the device detection parameter is weight, and the value of the device detection parameter is 500g; it is continuously sent 3 times. At this time, all information other than the timestamps (if there are timestamps) of the 3 broadcast messages remains unchanged; there is a receiving party, the chef machine (the first device), subscribing to the broadcast. After receiving the first broadcast message of the kitchen scale, it is parsed and utilized; after receiving the second broadcast message, it compares the device identity data and checksum of the second and the first broadcast messages and finds them to be consistent, so it determines that they are the same message and discards the second broadcast message; similarly, the third broadcast message is discarded. At this time, the kitchen scale Bluetooth sends a new broadcast message content that the weight of tomatoes is 200g. Among them, the attribute name of the device detection parameter is tomatoes, the type of the device detection parameter is weight, and the value of the device detection parameter is 200g; it is continuously sent 3 times. At this time, in the identification information of the broadcast message, the device category, device model, device identity data, and the type of the device detection parameter remain unchanged, while the attribute name and attribute value of the device detection parameter are modified (beef becomes tomatoes, and the weight changes from 500g to 200g). Since there are parameter changes, the checksum also changes. After the chef machine receives this broadcast message, it compares the device identity data with the checksum and finds that the device identity data remains unchanged while the checksum has changed, so it determines that it is a new broadcast message, receives it, parses it, and utilizes it. At this time, the chef machine knows that there are 500g of beef and 200g of tomatoes.

[0082] Scenario illustration 2: Broadcast information sent by different devices

[0083] There are 2 Bluetooth devices, kitchen scales (both are the second devices), weighing. One sends the weight of beef as 500g, and the other also sends the weight of beef as 500g. There is a receiving master chef machine (the first device) subscribing to the broadcast. After receiving the first broadcast message from the kitchen scale, it is parsed and utilized. After receiving the second broadcast message, the device identity data and checksum of the second broadcast message are compared with those of the first broadcast message. Since there are 2 devices, the device identity data must be different, and it is determined as a new broadcast message. The master chef machine receives this broadcast message and parses and utilizes it. At this time, the master chef machine knows that there are 2 portions of beef, each 500g, totaling 1000g.

[0084] In one embodiment, the authentication information includes the device identity data and checksum of the second device;

[0085] Checking whether the first broadcast message is a broadcast message that has been received according to the authentication information includes:

[0086] According to the device identity data of the second device, search for a second broadcast message with the same device identity data that has been received by the first device;

[0087] Check whether the checksum in the authentication information is consistent with the checksum of the authentication information in the second broadcast message;

[0088] When the authentication information is inconsistent, the verification result is that the first broadcast message is not a broadcast message that has been received by the first device.

[0089] In a scenario where more than three devices communicate using the Bluetooth broadcast function, there may be a situation where broadcast messages are cross-sent by different devices. At this time, if directly checking whether the authentication information is consistent with the authentication information of the previously received broadcast message, since the device identity data of different devices is inconsistent, this authentication information must be inconsistent. However, the broadcast information received this time may be the same broadcast message sent by the same device as the one received the time before last. To prevent this missed detection situation and improve the verification efficiency, in this embodiment, when verifying the authentication information, first search for a second broadcast message that has been received and has the same device identity data as the device identity data in the first broadcast message received this time. The same device identity data indicates that this second broadcast message is also sent by the second device. Then, check whether the checksums in the two are consistent. If they are consistent, it means that the first broadcast message is a repeated message sent by the second device and has been received by the first device, and discard this repeated broadcast packet; if they are inconsistent, it means that the first broadcast message is information that has not been received by the first device, and obtain the data information of this Bluetooth broadcast packet, improving the verification speed while ensuring verification accuracy.

[0090] The embodiments of the present disclosure also provide a message verification device, as Figure 3 shownFigure 3 It is a block diagram of a message verification device shown in at least one embodiment of the present disclosure. The device is applied to a device with a Bluetooth module. The method includes:

[0091] A data acquisition module 31, configured to: acquire a first broadcast message, where the first broadcast message includes broadcast data and authentication information, and the authentication information is obtained by analyzing the broadcast data;

[0092] A data verification module 32, configured to: verify whether the first broadcast message is a received broadcast message according to the authentication information;

[0093] A data processing module 33, configured to: discard the first broadcast message if the verification result indicates that the first broadcast message is a received broadcast message.

[0094] In some embodiments, the data verification module 32 is specifically configured to:

[0095] Verify the authentication information according to the authentication information against the authentication information of the broadcast messages received by the first device within a preset time. If the verification result is consistent, it indicates that the first broadcast message is a received broadcast message; or, verify the authentication information according to the authentication information against the authentication information of the last received broadcast message of the first device. If the verification result is consistent, it indicates that the first broadcast message is a received broadcast message.

[0096] In some embodiments, the authentication information includes a checksum; the authentication information is obtained by analyzing the broadcast data, including: calculating the accumulated value of the identification information in the broadcast data except the timestamp, and determining the checksum according to the accumulated value.

[0097] In some embodiments, the authentication information further includes the device identity data of the second device that sends the first broadcast message. The authentication information is obtained by analyzing the broadcast data, including: acquiring the device identity data of the second device in the broadcast data, where the device identity data is used to identify the identity information of different devices.

[0098] In some embodiments, the data verification module 32 is specifically configured to: verify the checksum and the device identity data according to the checksum and the device identity data against the checksum and the device identity data of the broadcast messages previously received by the first device; if the verification result is consistent, it indicates that the first broadcast message is a received broadcast message.

[0099] In some embodiments, the data verification module 32 is specifically configured to: search for a second broadcast message with the same device identity data received by the first device according to the device identity data of the second device; verify whether the checksum in the authentication information is consistent with the checksum of the authentication information in the second broadcast message; when the authentication information is inconsistent, the verification result is that the first broadcast message is not a broadcast message that the first device has received before.

[0100] In some embodiments, the data processing module 33 is further configured to:

[0101] When the verification result indicates that the first broadcast message is not a broadcast message that has been received before, control the operating parameters of the first device according to the broadcast data.

[0102] For the specific implementation process of the functions and roles of each module in the above device, please refer to the implementation process of the corresponding steps in the above method for details, which will not be elaborated here.

[0103] Embodiments of the present disclosure further provide an electronic device, as Figure 4 shown, the electronic device includes a memory 41 and a processor 42. The memory 41 is used to store computer instructions that can run on the processor, and the processor 42 is used to implement the message verification method according to any embodiment of the present disclosure when executing the computer instructions.

[0104] Embodiments of the present disclosure further provide a computer program product, which includes computer programs / instructions. When the computer programs / instructions are executed by a processor, the information verification method according to any embodiment of the present disclosure is implemented.

[0105] Embodiments of the present disclosure further provide a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the message verification method according to any embodiment of the present disclosure is implemented.

[0106] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only illustrative. The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place, or may be distributed to multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in this specification. Those of ordinary skill in the art can understand and implement it without creative efforts.

[0107] The above description has been made of specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve the desired result. Additionally, the processes depicted in the figures do not necessarily require the particular order or sequential order shown to achieve the desired result. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0108] Those skilled in the art will readily conceive of other embodiments of this specification after considering the specification and practicing the invention herein. This specification is intended to cover any variations, uses, or adaptations of this specification that follow the general principles of this specification and include the common general knowledge or conventional technical means in the technical field not claimed in this specification. The specification and embodiments are to be considered exemplary only, and the true scope and spirit of this specification are pointed out by the following claims.

[0109] It should be understood that this specification is not limited to the exact structures described above and shown in the figures, and various modifications and changes can be made without departing from its scope. The scope of this specification is limited only by the appended claims.

[0110] The above are only the preferred embodiments of this specification and are not intended to limit this specification. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this specification shall be included within the scope of protection of this specification.

Claims

1. A message verification method, characterized in that, The method includes: The first device obtains a first broadcast message, where the first broadcast message includes broadcast data and authentication information, and the authentication information is obtained by analyzing the broadcast data; the authentication information includes a checksum, calculates the cumulative value of the identification information in the broadcast data except the timestamp, and determines the checksum according to the cumulative value; the authentication information further includes the device identity data of the second device that sends the first broadcast message; According to the authentication information, verify whether the first broadcast message is a broadcast message that has been received. If the verification result indicates that the first broadcast message is a broadcast message that has been received, then discard the first broadcast message; Among them, the step of verifying whether the first broadcast message is a broadcast message that has been received according to the authentication information includes: verifying the checksum and the device identity data with the checksum and the device identity data of the broadcast messages previously received by the first device according to the checksum and the device identity data; if the verification result is consistent, it indicates that the first broadcast message is a broadcast message that has been received.

2. The method according to claim 1, wherein The step of verifying whether the first broadcast message is a broadcast message that has been received according to the authentication information includes: Verifying the authentication information with the authentication information of the broadcast messages received by the first device within a preset time according to the authentication information. If the verification result is consistent, it indicates that the first broadcast message is a broadcast message that has been received; Or, verifying the authentication information with the authentication information of the last broadcast message received by the first device according to the authentication information. If the verification result is consistent, it indicates that the first broadcast message is a broadcast message that has been received.

3. The method according to claim 1, wherein The authentication information is obtained by analyzing the broadcast data, including: Obtaining the device identity data of the second device in the broadcast data, where the device identity data is used to identify the identity information of different devices.

4. The method according to claim 1, wherein The identification information includes at least one of the following: device category, device model, attribute name of device detection parameter, type of device detection parameter, value of device detection parameter, and device status attribute value.

5. The method according to claim 3, wherein The step of verifying whether the first broadcast message is a broadcast message that has been received according to the authentication information includes: Searching for a second broadcast message with the same device identity data received by the first device according to the device identity data of the second device; Verifying whether the checksum in the authentication information is consistent with the checksum in the authentication information of the second broadcast message; When the authentication information is inconsistent, the verification result is that the first broadcast message is not a broadcast message received by the first device.

6. The method according to claim 1, characterized in that, The method further includes: When the verification result indicates that the first broadcast message is not a broadcast message that has been received, controlling the operating parameters of the first device according to the broadcast data.

7. A message verification device, characterized in that, The device includes: A data acquisition module, configured to: acquire a first broadcast message, where the first broadcast message includes broadcast data and authentication information, and the authentication information is obtained by analyzing the broadcast data; the authentication information includes a checksum, calculate the cumulative value of the identification information in the broadcast data except the timestamp, and determine the checksum according to the cumulative value; the authentication information further includes the device identity data of a second device that sends the first broadcast message. A data verification module, configured to: verify whether the first broadcast message is a received broadcast message according to the authentication information; wherein, according to the checksum and the device identity data, verify with the checksum and the device identity data of the broadcast message received by the first device before; if the verification result is consistent, it means that the first broadcast message is a received broadcast message. A data processing module, configured to: discard the first broadcast message when the verification result indicates that the first broadcast message is a received broadcast message.

8. An electronic device, characterized in that, The device includes a memory and a processor, the memory is used to store computer instructions that can run on the processor, and the processor is used to implement the method according to any one of claims 1 to 6 when executing the computer instructions.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program implements the method according to any one of claims 1 to 6 when executed by the processor.

Citation Information

Patent Citations

  • Message receiving method and intelligent terminal in converged communication

    CN105871686A