Equipment communication method, system and device, electronic equipment and storage medium

By dividing periodic broadcast events into sub-events and setting response information, bidirectional communication between audio devices is realized, solving the problem of unidirectional transmission in existing audio systems, reducing power consumption, and improving the system's anti-interference capabilities.

CN121645579APending Publication Date: 2026-03-10ACTIONS ZHUHAI MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

Existing audio broadcasting systems are typically unidirectional, making it difficult to achieve bidirectional communication between audio devices, which leads to increased equipment load, improper bandwidth allocation, and poor interference resistance.

Method used

The periodic broadcast event is divided into multiple sub-events, and the response information for each sub-event is determined, including the responding device identifier and response time. The audio device determines the target sub-event and sends response data based on the response information, and the communication mode is optimized by setting delay slots.

Benefits of technology

Without affecting the performance and bandwidth of the original broadcast audio system, bidirectional communication between audio devices was achieved, saving bidirectional communication bandwidth costs, reducing power consumption from frequent switching of transmission and reception modes, and improving the system's anti-interference capability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121645579A_ABST
    Figure CN121645579A_ABST
Patent Text Reader

Abstract

The invention provides an equipment communication method, system and device, electronic equipment and a computer readable storage medium, and the method comprises the steps: dividing a periodic broadcast event into at least two sub-events, and determining response information corresponding to the sub-events; the response information comprises a response equipment identifier and response time; sending corresponding response information to a second audio device at the sub-event, so that the second audio device determines a target sub-event according to a response device identifier corresponding to the sub-event; and switching a receiving mode according to the response time corresponding to the target sub-event, and receiving response data of the second audio equipment. According to the invention, two-way communication of low-power-consumption and high-performance audio equipment can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of Bluetooth transmission technology, and particularly relates to a device communication method, system and device, an electronic device and a computer readable storage medium. BACKGROUND

[0002] Low Energy Audio (LE Audio) technology can broadcast audio to other devices supporting this function to receive audio and achieve audio sharing.

[0003] However, in actual scenarios, some audio systems hope to be able to be linked as a whole, such as synchronization of light and control, etc. In this case, bidirectional communication between the broadcaster and the receiver is required.

[0004] However, the existing audio broadcast system is usually one-way transmission, and the broadcaster transmits information to the receiving device. The receiver usually cannot transmit information to the broadcasting device. SUMMARY

[0005] Embodiments of the present application provide a device communication method, system, apparatus, electronic device and computer readable storage medium, aiming to realize bidirectional communication of low-power high-performance audio devices.

[0006] In a first aspect, embodiments of the present application provide a device communication method, applied to a first audio device, the method comprising:

[0007] dividing a periodic broadcast event into at least two sub-events, and determining response information corresponding to the sub-events; the response information comprising a response device identifier and a response time;

[0008] sending the response information corresponding to the sub-events to a second audio device, so that the second audio device determines a target sub-event according to the response device identifier corresponding to the sub-event;

[0009] switching a receiving mode according to the response time corresponding to the target sub-event, and receiving response data of the second audio device.

[0010] In a second aspect, embodiments of the present application provide a device communication method, applied to a second audio device, the method comprising:

[0011] receiving a sub-event broadcast by a first audio device, and obtaining response information corresponding to the sub-event; the sub-event being formed by the first audio device dividing a periodic broadcast event, and the response information comprising a response device identifier and a response time;

[0012] The target sub-event is determined based on the responding device identifier corresponding to the sub-event;

[0013] The response mode is switched according to the response time corresponding to the target sub-event, and the response data for the target sub-event is sent to the first audio device.

[0014] Thirdly, embodiments of this application provide a device communication system, the device communication system including a first audio device and a second audio device, wherein,

[0015] A first audio device is configured to divide a periodic broadcast event into at least two sub-events and determine the response information corresponding to the sub-events; the response information includes: a response device identifier and a response time;

[0016] The first audio device is used to send corresponding response information to the second audio device during the sub-event.

[0017] The second audio device is used to determine the target sub-event based on the responding device identifier corresponding to the sub-event;

[0018] The second audio device is used to switch the response mode according to the response time corresponding to the target sub-event, and send the response data for the target sub-event to the first audio device;

[0019] The first audio device is used to switch the receiving mode according to the response time corresponding to the target sub-event and receive the response data from the second audio device.

[0020] Fourthly, embodiments of this application provide a device communication apparatus, the device communication apparatus being provided with a first audio device, including:

[0021] The information determination module is used to divide a periodic broadcast event into at least two sub-events and determine the response information corresponding to the sub-events; the response information includes: the responding device identifier and the response time;

[0022] The event sending module is used to send corresponding response information to the second audio device when the sub-event occurs, so that the second audio device can determine the target sub-event based on the response device identifier corresponding to the sub-event.

[0023] The data receiving module is used to switch the receiving mode according to the response time corresponding to the target sub-event and receive the response data of the second audio device.

[0024] Fifthly, embodiments of this application provide a device communication apparatus, the device communication apparatus being provided with a second audio device, including:

[0025] The information acquisition module is used to receive sub-events broadcast by the first audio device and acquire response information corresponding to the sub-events; the sub-events are formed by the first audio device dividing periodic broadcast events, and the response information includes: response device identifier and response time;

[0026] The event determination module is used to determine the target sub-event based on the response device identifier corresponding to the sub-event;

[0027] The data transmission module is used to switch the response mode according to the response time corresponding to the target sub-event, and send the response data for the target sub-event to the first audio device.

[0028] Sixthly, embodiments of this application provide an electronic device including a processor and a memory, the memory storing multiple instructions; the processor loads instructions from the memory to execute the steps of the above-described device communication method.

[0029] In a seventh aspect, embodiments of this application provide a computer-readable storage medium including a processor and a memory, the memory storing a plurality of instructions; the processor loads instructions from the memory to perform the steps of the device communication method described above.

[0030] The beneficial effects of the embodiments of this application are as follows:

[0031] Therefore, in this embodiment, the first audio device divides the periodic broadcast event into multiple sub-events, and then determines the response information for each sub-event. This response information includes, but is not limited to, the responding device identifier and the response time. After determining the multiple sub-events, the first audio device can send the response information corresponding to the sub-events to the second audio device. The second audio device, based on the responding device identifier in the response information, determines the target sub-event and sends response data to the first audio device based on the response time of the target sub-event. This allows the first audio device to switch to receiving mode at the response time of the target sub-event, receiving the response data sent by the second audio device, thus achieving bidirectional communication between the audio broadcasting device and the audio receiving device. It is evident that in this embodiment, without affecting the performance and bandwidth of the original broadcast audio system, the first audio device can pre-determine the responding device identifier and response time of the second audio device. This allows the second audio device to directly respond at the response time corresponding to the event after synchronizing with the first audio device. While achieving bidirectional communication between the audio broadcasting device and the audio receiving device, this saves bidirectional communication bandwidth costs, avoids frequent switching of transmission and reception modes, effectively reduces communication power consumption, and ensures the bidirectional communication performance of the devices. Attached Figure Description

[0032] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0033] Figure 1 This is a schematic diagram of the first process of device communication flow provided in one embodiment of this application;

[0034] Figure 2 This is a schematic diagram of the time delay slot partitioning provided in one embodiment of this application;

[0035] Figure 3 This is a schematic diagram of the response command format provided in one embodiment of this application;

[0036] Figure 4 This is a schematic diagram of the second process of device communication provided in the embodiments of this application;

[0037] Figure 5 This is a first schematic diagram of the structure of the device communication device provided in the embodiments of this application;

[0038] Figure 6 This is a second schematic diagram of the structure of the device communication device provided in the embodiments of this application;

[0039] Figure 7 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0040] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. In addition, it should be understood that the specific embodiments described herein are only for illustration and explanation of this application and are not intended to limit this application. In this application, unless otherwise stated, directional terms such as "upper" and "lower" generally refer to the upper and lower positions of the device in actual use or operation, specifically the drawing direction in the accompanying drawings; while "inner" and "outer" refer to the outline of the device. At the same time, in the description of the embodiments of this application, the terms "first," "second," etc., are only used to distinguish descriptions and should not be construed as indicating or implying relative importance. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.

[0041] To meet users' needs for Bluetooth audio, the Bluetooth Special Interest Group (SIG) introduced LE Audio (Low Energy Audio) technology, which brings new audio experience features. Among them, the broadcast audio technology broadcasts audio so that other devices that support this function can receive the audio and achieve audio sharing.

[0042] However, in real-world scenarios, some audio systems require overall coordination, such as synchronized lighting and synchronized control. In such cases, bidirectional communication between audio broadcasting equipment and audio receiving equipment is necessary.

[0043] The working logic of audio broadcasting includes: the audio broadcasting device creates an Extended Advertising (EA) and a Periodic Advertising (PA) that depends on this Extended Advertising; then, it creates a Broadcast Isochronous Group (BIG); the audio receiving device scans for the corresponding Extended Advertising (EA), synchronizes with the corresponding Periodic Advertising (PA), and then synchronizes with the BIG, obtaining the corresponding Broadcast Isochronous Group information (BIG INFO), and then receives, decodes, and outputs the subsequent audio data. When transmitting relevant synchronization requirements to the receiving device, the audio broadcasting device typically relies on the PA to broadcast the information, which is then received by the audio receiving device.

[0044] Currently, audio broadcasting systems typically operate on a one-way transmission model, meaning the broadcaster can transmit messages to the audio receiving device. While existing technologies can also achieve message transmission from the audio receiving device to the broadcaster using methods other than broadcast audio, these methods all present numerous problems.

[0045] For example, a link is established between the broadcaster and the receiver. However, in a typical broadcast audio system, there will be more than one receiving device. This will inevitably increase the number of links between the broadcaster and each receiving device as the number of receiving devices increases. This will increase the load on the broadcasting device and also divert its corresponding transmission bandwidth, thus affecting the performance of the broadcasting device.

[0046] For example, Periodic Advertising with Responses (PAWR) can be used to transmit data from the receiving device to the master device. However, this would increase the number of components in the PAWR itself, such as the EA and PA. For the broadcast audio system, this would inevitably divert bandwidth away from the original broadcast audio system due to time-division multiplexing. Furthermore, the PAWR itself cannot carry BIG information and cannot be used for broadcast audio alone, which would affect the performance of the original audio broadcast and reduce its anti-interference capability.

[0047] For example, if an audio broadcasting device starts a separate scan and all broadcast audio receiving devices start a separate broadcast, the time it takes for the audio broadcasting device to receive the data sent by the broadcast audio receiving devices is uncertain. This is related to the scanning cycle of the audio broadcasting device, the broadcasting cycle of the audio broadcast receivers, and their current bandwidth usage. If the scanning cycle and broadcasting cycle are set too frequently, it will affect the broadcasting and reception of audio and reduce the anti-interference capability.

[0048] Therefore, in order to solve the above problems, this application provides a device communication method, system, apparatus, electronic device, computer-readable storage medium, and computer program product, which can realize bidirectional communication between audio broadcasting equipment and audio receiving equipment without affecting the performance and bandwidth of the original broadcast audio system, and the audio receiving equipment does not need to frequently switch receiving modes, effectively saving system power consumption.

[0049] The device communication method in the embodiments of this application, such as Figure 1 As shown, the device communication method can be applied to a first audio device. In this embodiment, the first audio device can specifically be an audio broadcasting device. In addition, the second audio device in this application can specifically be an audio receiving device. The following descriptions will use the example of the first audio device being an audio broadcasting device and the second audio device being an audio receiving device to illustrate each embodiment. The device communication method can at least include the following steps:

[0050] S10, the periodic broadcast event is divided into at least two sub-events, and the response information corresponding to the sub-events is determined; the response information includes: the responding device identifier and the response time;

[0051] In this embodiment, the audio broadcasting device can pre-divide the periodic broadcast event PA event into multiple subevents, such as subevent0, subevent1, subevent2, etc., and then determine the response information corresponding to each subevent. The response information includes, but is not limited to, the response device identifier and the response time.

[0052] It should be noted that in this embodiment, all audio receiving devices (i.e., the second audio device in this application embodiment) can be grouped and numbered in advance, such as audio receiving device 0, audio receiving device 1, etc., to ensure that each audio receiving device has a corresponding response time after the device synchronization is successful. Based on this, the response device identifier in this embodiment can specifically be the device number of the audio receiving device.

[0053] In addition, the above-mentioned response time can be understood as the time it takes for the audio receiving device to send response data to the audio broadcasting device. This response time can also be pre-allocated by the audio broadcasting device. In this way, bidirectional communication between the audio broadcasting device and the audio receiving device can be achieved without affecting the performance and bandwidth of the broadcast audio system.

[0054] S20, the corresponding response information is sent to the second audio device in the sub-event, so that the second audio device determines the target sub-event based on the response device identifier corresponding to the sub-event;

[0055] In this embodiment, after determining multiple sub-events, the audio broadcasting device can send the corresponding response information of the sub-events to the audio receiving device. It is understood that the audio receiving device can synchronize at least one sub-event. In the sub-event, the audio broadcasting device may or may not allocate a corresponding response time for the audio receiving device. For example, if the audio receiving device synchronizes sub-events subevent0 and subevent1, but the audio broadcasting device only requires the audio receiving device to respond within the response time r0 of subevent0, then the audio receiving device determines the target sub-event based on the response device identifier in the sub-event. For example, the target sub-event can be determined to be subevent0.

[0056] It should be noted that in this embodiment, the number of audio receiving devices can be at least one. When there are multiple audio receiving devices, the audio broadcasting device can send the above-mentioned multiple sub-events to each audio receiving device, so that the audio receiving device can determine the corresponding target sub-event and send response data to the audio broadcasting device according to the response time of the target sub-event.

[0057] In addition, one or more audio receiving devices can synchronize to the same sub-event. In this scenario, after synchronizing to the sub-event, the audio receiving device can directly use the sub-event as the target sub-event and respond according to the response time of the target sub-event. It is worth noting that in this embodiment, if the audio receiving device only synchronizes to a single sub-event, and there is no corresponding response time for the audio receiving device in that single sub-event (i.e., the audio broadcasting device does not require the audio receiving device to respond), then the audio receiving device can discard the response information and not respond.

[0058] S30, switch the receiving mode according to the response time corresponding to the target sub-event, and receive the response data of the second audio device.

[0059] In this embodiment, after the audio broadcasting device sends the response information to the audio receiving device, and the audio receiving device determines the target sub-event, it can adjust the response mode at the response time corresponding to the target sub-event and send the response data to the audio broadcasting device. In this embodiment, the specific content of the response data is not specifically limited.

[0060] Based on this, the audio broadcasting device can switch the transmit / receive mode according to the response time corresponding to the target sub-event, and adjust the audio broadcasting device to receive mode. In this receiving mode, the audio broadcasting device can receive the response data sent by the audio receiving device at the response time corresponding to the target sub-event. In this way, bidirectional communication between the audio broadcasting device and the audio receiving device is realized.

[0061] Therefore, in this embodiment, the first audio device can pre-divide the periodic broadcast event (PA event) into multiple sub-events, and then determine the response information corresponding to each sub-event. This response information includes, but is not limited to, the responding device identifier and the response time. After determining the multiple sub-events, the audio broadcasting device can send the response information to the second audio device. The second audio device, based on the responding device identifier corresponding to the sub-event, determines the target sub-event and, based on the response time corresponding to the target sub-event, sends response data to the first audio device. This allows the first audio device to switch to receiving mode during the response time of the target sub-event, receiving the response data sent by the second audio device, thus achieving bidirectional communication between the audio broadcasting device and the audio receiving device. As can be seen, in this embodiment of the application, without affecting the performance and bandwidth of the original broadcast audio system, the first audio device can predetermine the responding device identifier and response time of the second audio device, so that the second audio device can directly respond at the response time of the event after receiving the event sent by the first audio device. While realizing bidirectional communication between the audio broadcasting device and the audio receiving device, it can save the bidirectional communication bandwidth cost, avoid the device frequently switching the transmission and reception modes, effectively reduce communication power consumption, and ensure the bidirectional communication performance of the device.

[0062] In one embodiment, before "determining the response information corresponding to the sub-event" in S10, the following may be included:

[0063] Step A: Based on the number of all second audio devices, set a corresponding delay slot for all the sub-events, and set the delay time corresponding to the delay slot to a preset response time.

[0064] It should be noted that, in this embodiment, as Figure 2As shown, each PA event can be divided into multiple subevents, such as subevent0, subevent1, subevent2, etc. After each subevent, a slot delay is set, and a certain number of delay slots are set. Each delay slot can have a fixed time and a fixed interval, so that the audio receiving device can synchronize to the corresponding subevent and send data on the corresponding delay slot. The audio receiving device only needs to scan the synchronized subevent, while the audio broadcasting device can receive response data at these delay slot time points, saving system power consumption.

[0065] Based on this, in this embodiment, such as Figure 2 As shown, the audio broadcasting device can pre-set corresponding delay slots for all sub-events based on the number of all audio receiving devices, so that the delay time of the delay slot can be used as the response time of the audio receiving device, and also as the time for the audio broadcasting device to switch to receiving mode.

[0066] For example, audio receiving device 0 synchronizes to subevent0, and audio receiving device 1 synchronizes to subevent1. The delay slot corresponding to audio receiving device 0 is time point r0 within subevent0, and the delay slot corresponding to audio receiving device 1 is time point r0 within subevent1. Audio receiving devices 0 and 1 send response data using their respective delay slots within subevent0 and subevent1, respectively. Based on this, after audio receiving device 0 successfully receives data in its corresponding subevent0, it sends response data at time point r0. Meanwhile, the audio broadcasting device switches to receive mode at time point r0, the pre-allocated delay slot in its corresponding subevent0, to receive the corresponding response data.

[0067] Thus, in this embodiment, by setting delay slots, corresponding response times can be allocated to each audio receiving device. The audio receiving device only needs to scan the synchronized subevent and respond according to the response time determined by the delay slot in each subevent. This eliminates the need to increase the number of communication links, divert transmission bandwidth, affect the performance of the broadcasting device, and reduce the system's anti-interference capability. Furthermore, it ensures the time determinism of the response data sent by the audio receiving device, without affecting the audio transmission and reception process. In addition, in this embodiment, both the audio broadcasting device and the audio receiving device transmit and receive at fixed times, eliminating the need for frequent switching of transmission and reception modes and effectively reducing system power consumption.

[0068] In one embodiment, S30 above, "switching the receiving mode according to the response time corresponding to the target sub-event and receiving the response data of the second audio device" may include:

[0069] S301, determine the number of second audio devices to be responded to based on the responding device identifier;

[0070] S302, if the quantity is multiple, then determine the target response time of each of the second audio devices, and when the corresponding target response time is reached, switch the receiving mode and receive the response data sent by the corresponding second audio device at the target response time;

[0071] S303, if the quantity is a single one, then at the earliest response time within the target sub-event, switch the receiving mode and receive the response data sent by the second audio device.

[0072] It should be noted that, in this embodiment, according to the above description, multiple audio receiving devices can also synchronize to the same sub-event. For example, audio receiving device 0 and audio receiving device 1 can both synchronize to subevent0. The delay slot 0 corresponding to audio receiving device 0 is time point r0 within subevent0, and the delay slot 1 corresponding to audio receiving device 1 is time point r1 within subevent0. Thus, audio receiving devices 0 and 1 can use their corresponding delay slots to send response data to the audio broadcasting device within the subevent0 event. For example, after successfully receiving data in the corresponding subevent0, audio receiving device 0 sends response data at time point r0; after successfully receiving data in the corresponding subevent0, audio receiving device 1 sends response data at time point r1, and so on. Simultaneously, the audio broadcasting device switches to receiving mode at the pre-allocated time points r0 and r1 to receive the corresponding response data.

[0073] Based on this, in this embodiment, the audio broadcasting device can determine the number of audio receiving devices to be responded to based on the responding device identifier. If there are multiple audio receiving devices to be responded to, it means that multiple audio receiving devices are synchronized to the same sub-event. The target response time corresponding to each audio receiving device can be determined separately. For example, the response times of audio receiving device 0 and audio receiving device 1 can be time points r0 and r1, respectively.

[0074] In this way, multiple audio receiving devices can send corresponding response data to the audio broadcasting device at their respective target response times. The audio broadcasting device can then switch to receive mode at the aforementioned target response times and receive the response data sent by the audio receiving devices at their corresponding target response times, until it has received the response data sent by all the audio receiving devices awaiting response.

[0075] If the number of audio receiving devices awaiting response is determined to be single based on the responding device identifier, it means that the audio broadcasting device has designated only one audio receiving device to respond within the target sub-event. Therefore, the earliest response time within the target sub-event can be obtained, allowing the audio receiving device to send corresponding response data to the audio broadcasting device at that earliest response time. The audio broadcasting device can then switch to receive mode at that earliest response time to receive the response data sent by the audio receiving device.

[0076] In one specific embodiment, S20 above, "sending corresponding response information to the second audio device in the sub-event" may include:

[0077] S201, Assemble a response command based on the response information corresponding to the sub-event, wherein the response command includes the response device identifier and response time corresponding to each sub-event;

[0078] S202, within the sub-event, the response command is broadcast to the second audio device.

[0079] In this embodiment, when the audio broadcasting device sends the response information corresponding to the sub-event to the audio receiving device, it can assemble a response command cmd according to the response information corresponding to the sub-event. The response command cmd may include the response device identifier and response time of the audio receiving device specified by the audio broadcasting device.

[0080] Furthermore, the audio broadcasting device can broadcast the corresponding response command to the synchronous audio receiving device within the sub-event, so that the audio receiving device can determine its response time based on the received cmd command.

[0081] For example, if an audio broadcasting device requires all devices to respond during the subevent0 event, then it sends the corresponding cmd during the subevent0 event to instruct the corresponding audio receiving device to respond. The cmd format can be as follows: Figure 3 As shown:

[0082] subevent0;dev0,cmd;dev1,cmd……devn,cmd

[0083] After receiving the corresponding instruction command, all audio receiving devices synchronized to subevent0 send response data in their assigned delay slots (i.e., response times).

[0084] For example, if an audio broadcasting device needs an audio receiving device 0 to respond in the subevent0 event, it sends the corresponding cmd in the subevent0 event, such as: subevent0: dev0, cmd; if an audio broadcasting device needs an audio receiving device 1 to respond in the subevent1 event, it sends the corresponding cmd in the subevent1 event, such as: subevent1; dev1, cmd.

[0085] After receiving the aforementioned cmd in subevent0, audio receiving device 0 sends data in the pre-allocated delay slot r0 of subevent0. After receiving the aforementioned cmd in subevent1, audio receiving device 1 sends data in the pre-allocated delay slot r0 of subevent1.

[0086] The audio broadcasting device receives the response data sent by the audio receiving device 0 in the delay slot r0 after the subevent0 event, and receives the data sent by the audio receiving device 1 in the delay slot r0 after the subevent1 event.

[0087] Therefore, in this embodiment, the response device and response time of the audio broadcasting device can be flexibly determined according to communication requirements. The audio broadcasting device selects the corresponding response device and response time by sending the corresponding cmd command within the sub-event. The audio receiving device only needs to scan the synchronized sub-event, which effectively saves system power consumption.

[0088] Furthermore, after S30, "switching the receiving mode according to the response time corresponding to the target sub-event and receiving the response data from the second audio device," it may also include:

[0089] S40, switch the receiving mode of the first audio device to broadcast mode;

[0090] S50, in the broadcast mode, the response information corresponding to other sub-events after the target sub-event in the periodic broadcast event is sent to the second audio device.

[0091] In this embodiment, after receiving the response data sent by the audio receiving device within the target sub-event in the receiving mode, the audio broadcasting device can switch back to the broadcast mode. This allows the audio broadcasting device to send response information corresponding to other sub-events after the target sub-event to the audio receiving device in the broadcast mode. For example, it can send the response information corresponding to the other sub-event 1 after the target sub-event 0 to the audio receiving device. The audio receiving device can determine the target sub-event based on the response device identifier in the response information and send response data to the audio broadcasting device within the response time of the target sub-event. This will not be elaborated further here, but can be referred to the above embodiment for description.

[0092] In another embodiment, response information can be sent directly to all audio receiving devices within the first subevent0 of the periodic broadcast event PA event (the response information includes the responding device identifiers and corresponding response times of all subevents). This allows each audio receiving device to determine its own response time based on its responding device identifier, eliminating the need to send corresponding response information to the audio receiving devices in each subevent. This method can also reduce the switching of device operating modes to a certain extent and save system power consumption.

[0093] As can be seen, in this embodiment, the audio broadcasting master device can send all sub-events to the audio receiving device by switching back and forth between working modes, and enable the audio receiving device to respond to the audio broadcasting device at the corresponding response time until the current cycle broadcast event is completed. By setting a delay slot, the audio broadcasting device and the audio receiving device can switch working modes in a timely and orderly manner, which reduces system power consumption and ensures normal bidirectional communication between devices.

[0094] In one embodiment, this application also proposes a device communication method that can be applied to a second audio device. Specifically, the second audio device in this embodiment can be an audio receiving device, and the following description will focus on the second audio device specifically being an audio receiving device. Based on this, the device communication method in this embodiment is as follows: Figure 4 As shown, it may include the following steps:

[0095] S60, receive a sub-event broadcast by the first audio device, and obtain response information corresponding to the sub-event; the sub-event is formed by the first audio device dividing periodic broadcast events, and the response information includes: response device identifier and response time;

[0096] In this embodiment, referring to the above embodiments, the audio broadcasting device can pre-divide the periodic broadcast event PAevent into multiple sub-events, such as subevent0, subevent1, subevent2, etc., and then determine the response information corresponding to each sub-event. This response information includes, but is not limited to, the responding device identifier and the response time. After determining the multiple sub-events, the audio broadcasting device can send the response information corresponding to the sub-events to the synchronous audio receiving device.

[0097] The audio receiving device can synchronize with the sub-events broadcast by the audio broadcasting device and obtain the response information within those sub-events.

[0098] S70, determine the target sub-event based on the responding device identifier corresponding to the sub-event;

[0099] It should be noted that in this embodiment, the number of audio receiving devices can be at least one. For each audio receiving device, the audio broadcasting device can send the response information corresponding to the above multiple sub-events to the audio receiving device. The audio receiving device can determine the target sub-event and send response data to the audio broadcasting device according to the response time of the target sub-event.

[0100] In addition, one or more audio receiving devices can synchronize to the same sub-event. In this scenario, after synchronizing to the sub-event, the audio receiving device can directly use the sub-event as the target sub-event and respond according to the response time corresponding to the target sub-event. It is worth noting that in this embodiment, if the audio receiving device only synchronizes to a single sub-event, and there is no response time corresponding to the audio receiving device in that single sub-event (i.e., the audio broadcasting device does not need the audio receiving device to respond), then the audio receiving device can discard the response information and not respond. That is, even if the audio receiving device synchronizes to a certain sub-event, it may not necessarily respond to the audio broadcasting device. Whether the audio receiving device needs to respond to the audio broadcasting device in the sub-event can be configured in advance by the audio broadcasting device.

[0101] S80, switch the response mode according to the response time corresponding to the target sub-event, and send the response data for the target sub-event to the first audio device.

[0102] In this embodiment, after determining the target sub-event, the audio receiving device sends response data to the audio broadcasting device at the response time within the target sub-event. This allows the audio broadcasting device to switch its transmission and reception modes according to the response time of the target sub-event, adjusting itself to a receiving mode. In this receiving mode, the audio broadcasting device can receive the response data sent by the audio receiving device at the response time corresponding to the target sub-event. Thus, bidirectional communication between the audio broadcasting device and the audio receiving device is achieved.

[0103] Furthermore, in the above S70, "determining the target sub-event based on the response device identifier corresponding to the sub-event" may include:

[0104] S701, compare the responding device identifier corresponding to the sub-event with the self-responding device identifier of the second audio device to determine the target sub-event.

[0105] In this embodiment, after receiving at least two sub-events sent by the audio broadcasting device, the audio receiving device can compare the responding device identifier corresponding to the sub-event with its own responding device identifier.

[0106] If the response information of the sub-event contains a response device identifier that matches the response device identifier of the audio receiving device, then the corresponding sub-event can be identified as the target sub-event.

[0107] Furthermore, in S701 above, "comparing the responding device identifier corresponding to the sub-event with the self-responding device identifier of the second audio device to determine the target sub-event" may include:

[0108] S7011, if the responding device identifier and the self-responding device identifier are different, then discard the response command corresponding to the sub-event and receive the next sub-event of the periodic broadcast event; or,

[0109] S7012, if the responding device identifier is the same as the self-responding device identifier, then the sub-event is set as the target sub-event to respond to the response command of the target sub-event.

[0110] In this embodiment, the audio receiving device can compare the responding device identifier corresponding to the sub-event with its own responding device identifier.

[0111] If the comparison result shows that the responding device identifier corresponding to the sub-event is different from the responding device identifier of the audio receiving device, the responding command corresponding to the sub-event can be discarded, and the next sub-event of the periodic broadcast event can be received. It is understood that in this embodiment, there are audio receiving devices that have been synchronized to the sub-event but do not respond to the audio broadcasting device.

[0112] If the comparison result shows that the responding device identifier corresponding to the sub-event is the same as the responding device identifier of the audio receiving device, then the sub-event can be identified as the target sub-event.

[0113] For example, according to the above description, multiple audio receiving devices can synchronize to the same sub-event. For instance, audio receiving device 0 synchronizes to subevent0 and subevent1. However, only subevent0 contains a response device identifier that matches the audio receiving device's own response device identifier. Therefore, the audio receiving device can identify subevent0 as the target sub-event and discard the response command of subevent1.

[0114] Furthermore, in the above S80, "sending the response data for the target sub-event to the first audio device" may include:

[0115] S801, determine whether the number of second audio devices to be responded to is one based on the responding device identifier of the target sub-event;

[0116] S802, if the number of devices is not one, then obtain the earliest response time within the target sub-event;

[0117] S803, switch the response mode according to the earliest response time, and send the response data to the first audio device.

[0118] It should be noted that, in this embodiment, according to the above description, multiple audio receiving devices can be synchronized to the same sub-event, that is, multiple delay slots can be allocated as response times within the same sub-event.

[0119] Based on this, the audio receiving device can first determine whether the number of devices waiting to respond is one, according to the responding device identifier corresponding to the target sub-event. If it is determined that the number of devices waiting to respond is one, it means that the audio broadcasting device has designated only one audio receiving device to respond within the target sub-event. In this case, the earliest response time within the target sub-event can be obtained, and the corresponding response data can be sent to the audio broadcasting device at that earliest response time.

[0120] For example, if the audio broadcasting device only needs the audio receiving device 4 to respond under the subevent0 event, then the corresponding response command is sent in the subevent0 event, such as subevent0;dev4,cmd.

[0121] Thus, after receiving this cmd (other audio receiving devices can discard this cmd), the audio receiving device 4 can respond with data at time r4. However, in this embodiment, since there is no data to transmit in other delay slots, the audio receiving device 4 can send response data at time r0 (i.e., the earliest response time in this embodiment).

[0122] Furthermore, this embodiment can also release the bandwidth occupied by the remaining delay slots, allowing the audio broadcasting equipment to use this bandwidth to perform other actions, thereby achieving the goal of dynamically saving bandwidth.

[0123] Therefore, in this embodiment, based on the original audio broadcasting system, bidirectional communication between the audio broadcasting device and the audio receiving device is achieved by adding a response device identifier and a delay slot. There is no need to design a separate bidirectional communication method, which saves and optimizes bandwidth as much as possible, increases bandwidth utilization, and improves anti-interference. At the same time, it ensures the timeliness and controllability of data transmission as much as possible. In addition, the audio receiving device only needs to monitor the time point of its own synchronization event, which also saves power consumption.

[0124] This embodiment also provides a device communication apparatus, such as... Figure 5 As shown, it includes:

[0125] The information determination module 1001 is used to divide a periodic broadcast event into at least two sub-events and determine the response information corresponding to the sub-events; the response information includes: a response device identifier and a response time;

[0126] Event sending module 1002 is used to send corresponding response information to the second audio device in the sub-event, so that the second audio device can determine the target sub-event according to the response device identifier corresponding to the sub-event;

[0127] The data receiving module 1003 is used to switch the receiving mode according to the response time corresponding to the target sub-event and receive the response data of the second audio device.

[0128] Optionally, the above-mentioned communication device further includes:

[0129] The setting module is used to set a corresponding delay slot for all the sub-events according to the number of all second audio devices, and the delay time corresponding to the delay slot is set to a pre-set response time.

[0130] Optionally, the data receiving module 1003 described above is further used for:

[0131] The number of second audio devices to be responded to is determined based on the responding device identifier;

[0132] If the quantity is multiple, then the target response time of each second audio device is determined, and when the corresponding target response time is reached, the receiving mode is switched to receive the response data sent by the corresponding second audio device at the target response time;

[0133] If the quantity is a single value, then at the earliest response time within the target sub-event, switch the receiving mode and receive the response data sent by the second audio device.

[0134] Optionally, the device communication apparatus in this embodiment further includes:

[0135] The mode switching module is used to switch the receiving mode of the first audio device to broadcast mode;

[0136] The sub-event sending module is used in the broadcast mode to send the response information corresponding to other sub-events after the target sub-event in the periodic broadcast event to the second audio device.

[0137] Optionally, the event sending module 1002 described above is further configured to:

[0138] A response command is assembled based on the response information corresponding to the sub-events, and the response command includes the response device identifier and response time corresponding to each sub-event.

[0139] The response command is broadcast to the second audio device within the sub-event.

[0140] This embodiment also provides a device communication apparatus, such as... Figure 6 As shown, it includes:

[0141] Information acquisition module 1004 is used to receive sub-events broadcast by the first audio device and acquire response information corresponding to the sub-events; the sub-events are formed by the first audio device dividing periodic broadcast events, and the response information includes: response device identifier and response time;

[0142] The event determination module 1005 is used to determine the target sub-event based on the response device identifier corresponding to the sub-event;

[0143] The data transmission module 1006 is used to switch the response mode according to the response time corresponding to the target sub-event, and send the response data for the target sub-event to the first audio device.

[0144] Optionally, the event determination module 1005 described above is also used for:

[0145] The target sub-event is determined by comparing the responding device identifier corresponding to the sub-event with the responding device identifier of the second audio device.

[0146] Optionally, the event determination module 1005 described above is also used for:

[0147] If the responding device identifier and the self-responding device identifier are different, then the responding command corresponding to the sub-event is discarded, and the next sub-event of the periodic broadcast event is received; or,

[0148] If the responding device identifier is the same as the self-responding device identifier, then the sub-event is set as the target sub-event to respond to the response command of the target sub-event.

[0149] Optionally, the data sending module 1006 described above is further configured to:

[0150] Based on the responding device identifier of the target sub-event, determine whether the number of second audio devices to be responded to is one;

[0151] If the number of devices is one, then obtain the earliest response time within the target sub-event;

[0152] The response mode is switched according to the earliest response time, and the response data is sent to the first audio device.

[0153] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0154] Accordingly, embodiments of this application also provide a device communication system, which includes a first audio device and a second audio device, wherein,

[0155] A first audio device is configured to divide a periodic broadcast event into at least two sub-events and determine the response information corresponding to the sub-events; the response information includes: a response device identifier and a response time;

[0156] The first audio device is used to send corresponding response information to the second audio device during the sub-event.

[0157] The second audio device is used to determine the target sub-event based on the responding device identifier corresponding to the sub-event;

[0158] The second audio device is used to switch the response mode according to the response time corresponding to the target sub-event, and send the response data for the target sub-event to the first audio device;

[0159] The first audio device is used to switch the receiving mode according to the response time corresponding to the target sub-event and receive the response data from the second audio device.

[0160] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0161] Accordingly, embodiments of this application also provide an electronic device, such as... Figure 7 As shown, Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device 1100 includes a processor 1101 with one or more processing cores, a memory 1102 with one or more computer-readable storage media, and a computer program stored on the memory 1102 and executable on the processor. The processor 1101 and the memory 1102 are electrically connected. Those skilled in the art will understand that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0162] The processor 1101 is the control center of the electronic device 1100. It connects various parts of the electronic device 1100 via various interfaces and lines. By running or loading software programs and / or units stored in the memory 1102, and by calling data stored in the memory 1102, it executes various functions of the electronic device 1100 and processes data, thereby providing overall monitoring of the electronic device 1100. The processor 1101 can be a CPU or a network processor (NP), etc., and can implement or execute the methods, steps, and logic diagrams disclosed in the embodiments of this application.

[0163] In this embodiment, the processor 1101 in the electronic device 1100 loads the instructions corresponding to the processes of one or more applications into the memory 1102 according to the following steps, and the processor 1101 runs the applications stored in the memory 1102 to realize various functions, such as:

[0164] The periodic broadcast event is divided into at least two sub-events, and the response information corresponding to the sub-events is determined; the response information includes: the responding device identifier and the response time;

[0165] The corresponding response information is sent to the second audio device in the sub-event, so that the second audio device can determine the target sub-event based on the response device identifier corresponding to the sub-event;

[0166] The receiving mode is switched according to the response time corresponding to the target sub-event, and the response data of the second audio device is received.

[0167] Receive a sub-event broadcast by a first audio device and obtain response information corresponding to the sub-event; the sub-event is formed by the first audio device dividing periodic broadcast events, and the response information includes: response device identifier and response time;

[0168] The target sub-event is determined based on the responding device identifier corresponding to the sub-event;

[0169] The response mode is switched according to the response time corresponding to the target sub-event, and the response data for the target sub-event is sent to the first audio device.

[0170] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0171] Optional, such as Figure 7 As shown, the electronic device 1100 further includes: a radio frequency circuit 1103, an audio circuit 1104, an input unit 1105, and a power supply 1106. The processor 1101 is electrically connected to the radio frequency circuit 1103, the audio circuit 1104, the input unit 1105, and the power supply 1106. Those skilled in the art will understand that... Figure 7 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0172] The radio frequency circuit 1103 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other electronic devices, and to transmit and receive signals with network devices or other electronic devices.

[0173] Audio circuit 1104 can be used to provide an audio interface between a user and an electronic device via a speaker and a microphone. Audio circuit 1104 can convert received audio data into electrical signals and transmit them to the speaker, where the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuit 1104, converted back into audio data, and then processed by processor 1101 before being transmitted via radio frequency circuit 1103 to, for example, another electronic device, or output to memory 1102 for further processing. Audio circuit 1104 may also include an earphone jack to provide communication between peripheral headphones and electronic devices.

[0174] The input unit 1105 can be used to receive input numbers, characters, or user characteristic information (such as fingerprints, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.

[0175] Power supply 1106 is used to supply power to various components of electronic device 1100. Optionally, power supply 1106 can be logically connected to processor 1101 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. Power supply 1106 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0176] although Figure 7 As not shown in the diagram, the electronic device 1100 may also include sensors, wireless fidelity modules, Bluetooth modules, etc., which will not be described in detail here.

[0177] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0178] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0179] Therefore, embodiments of this application provide a computer-readable storage medium storing a plurality of computer programs. These computer programs can be loaded by a processor to execute any of the device communication methods provided in this application. The computer program can execute the steps of the following device communication method:

[0180] The periodic broadcast event is divided into at least two sub-events, and the response information corresponding to the sub-events is determined; the response information includes: the responding device identifier and the response time;

[0181] The corresponding response information is sent to the second audio device in the sub-event, so that the second audio device can determine the target sub-event based on the response device identifier corresponding to the sub-event;

[0182] The receiving mode is switched according to the response time corresponding to the target sub-event, and the response data of the second audio device is received.

[0183] Receive a sub-event broadcast by a first audio device and obtain response information corresponding to the sub-event; the sub-event is formed by the first audio device dividing periodic broadcast events, and the response information includes: response device identifier and response time;

[0184] The target sub-event is determined based on the responding device identifier corresponding to the sub-event;

[0185] The response mode is switched according to the response time corresponding to the target sub-event, and the response data for the target sub-event is sent to the first audio device.

[0186] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0187] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0188] Since the computer program stored in the computer-readable storage medium can execute any of the device communication methods provided in the embodiments of this application, the beneficial effects that any of the device communication methods provided in the embodiments of this application can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.

[0189] In the above-described device communication system, device communication apparatus, computer-readable storage medium, and electronic device, the descriptions of each embodiment have different focuses. Parts not described in detail in a particular embodiment can be referred to in the relevant descriptions of other embodiments. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes and beneficial effects of the above-described device communication system, device communication apparatus, computer-readable storage medium, computer program product, electronic device, and their corresponding units can be referred to the description of the device communication method in the above embodiments, and will not be repeated here.

[0190] The foregoing has provided a detailed description of a device communication method, system, apparatus, electronic device, and computer-readable storage medium provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A device communication method characterized by, The device communication method is applied to a first audio device, and the method comprises: dividing a periodic broadcast event into at least two sub-events, and determining corresponding response information of the sub-events; the response information comprises a response device identifier and a response time; sending the corresponding response information of the sub-events to a second audio device, so that the second audio device determines a target sub-event according to the response device identifier corresponding to the sub-event; switching a receiving mode according to the response time corresponding to the target sub-event, and receiving response data of the second audio device.

2. The device communication method of claim 1, wherein, Before the determination of the response information corresponding to the sub-events, the method comprises: setting a corresponding time delay slot for all the sub-events according to the number of all the second audio devices, and setting a time delay time corresponding to the time delay slot as a pre-set response time.

3. The device communication method of claim 1, wherein, The switching of the receiving mode according to the response time corresponding to the target sub-event, and the receiving of the response data of the second audio device, comprise: determining the number of the second audio devices to be responded according to the response device identifier; if the number is multiple, determining a target response time of each of the second audio devices, and switching the receiving mode when the corresponding target response time is reached, and receiving the response data sent by the corresponding second audio device at the target response time; if the number is single, switching the receiving mode at the earliest response time within the target sub-event, and receiving the response data sent by the second audio device.

4. The device communication method of claim 1, wherein, After the switching of the receiving mode according to the response time corresponding to the target sub-event, and the receiving of the response data of the second audio device, the method comprises: switching the receiving mode of the first audio device to a broadcast mode; in the broadcast mode, sending the response information corresponding to other sub-events after the target sub-event in the periodic broadcast event to the second audio device.

5. The device communication method according to any one of claims 1 to 4, wherein, The sending of the corresponding response information of the sub-events to the second audio device comprises: assembling a response command according to the response information corresponding to the sub-event, and containing the response device identifier and the response time corresponding to each of the sub-events in the response command; broadcasting the response command to the second audio device within the sub-event.

6. A device communication method characterized by comprising: The device communication method is applied to a second audio device, and the method comprises: receiving a sub-event broadcast by a first audio device, and obtaining response information corresponding to the sub-event; the sub-event is formed by the first audio device dividing a periodic broadcast event, and the response information comprises a response device identifier and a response time; determining a target sub-event according to the response device identifier corresponding to the sub-event; switching a response mode according to the response time corresponding to the target sub-event, and sending response data for the target sub-event to the first audio device.

7. The device communication method of claim 6, wherein, The determination of the target sub-event according to the response device identifier corresponding to the sub-event comprises: comparing the response device identifier corresponding to the sub-event with a self response device identifier of the second audio device, and determining the target sub-event.

8. The device communication method of claim 7, wherein, The comparison of the response device identifier corresponding to the sub-event with the self response device identifier of the second audio device, and the determination of the target sub-event, comprise: If the responder device identifier and the self-responder device identifier are different, the responder command corresponding to the sub-event is discarded, and the next sub-event of the periodic broadcast event is received; or, If the responder device identifier and the self-responder device identifier are the same, the sub-event is set as a target sub-event, and a responder command responding to the target sub-event is received.

9. The device communication method according to any one of claims 6 to 8, wherein, The sending of the responder data for the target sub-event to the first audio device comprises: According to the responder device identifier corresponding to the target sub-event, it is determined whether the number of second audio devices to be responded is one; If the number of devices is one, the earliest response time in the target sub-event is obtained; According to the earliest response time, the response mode is switched, and the responder data is sent to the first audio device.

10. A device communication system, characterized by The device communication system comprises a first audio device and a second audio device, wherein, The first audio device is configured to divide a periodic broadcast event into at least two sub-events, and determine responder information corresponding to the sub-event; the responder information comprises a responder device identifier and a response time; The first audio device is configured to send the corresponding responder information of the sub-event to the second audio device; The second audio device is configured to determine a target sub-event according to the responder device identifier corresponding to the sub-event; The second audio device is configured to switch the response mode according to the response time corresponding to the target sub-event, and send the responder data for the target sub-event to the first audio device; The first audio device is configured to switch the receiving mode according to the response time corresponding to the target sub-event, and receive the responder data of the second audio device.

11. An apparatus for communicating comprising: The device communication device is provided with a first audio device, comprising: An information determination module is configured to divide a periodic broadcast event into at least two sub-events, and determine responder information corresponding to the sub-event; the responder information comprises a responder device identifier and a response time; An event sending module is configured to send the corresponding responder information of the sub-event to the second audio device, so that the second audio device determines a target sub-event according to the responder device identifier corresponding to the sub-event; A data receiving module is configured to switch the receiving mode according to the response time corresponding to the target sub-event, and receive the responder data of the second audio device.

12. An apparatus for communicating comprising: The device communication device is provided with a second audio device, comprising: An information acquisition module is configured to receive a sub-event broadcast by a first audio device, and acquire responder information corresponding to the sub-event; the sub-event is formed by the first audio device dividing a periodic broadcast event, and the responder information comprises a responder device identifier and a response time; An event determination module is configured to determine a target sub-event according to the responder device identifier corresponding to the sub-event; A data sending module is configured to switch the response mode according to the response time corresponding to the target sub-event, and send the responder data for the target sub-event to the first audio device.

13. An electronic device, comprising: It comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method in any one of claims 1-9. It comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method in any one of claims 1-9.

14. A computer-readable storage medium, characterized in that, It comprises a computer program for causing an electronic device to perform the steps of the method according to any one of claims 1 to 9 when the computer program is run on the electronic device.