Method and device for configuring a channel for transmitting multicast services
By utilizing the interaction information between the basic service layer and access layer of electronic devices in the new generation of short-range communication technology, a mapping relationship between service channels and logical channels is established, which solves the problem of multicast service channel configuration and realizes one-to-many multicast service transmission and flexible multicast member management.
Patent Information
- Application Number
- CN202111334961.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-11
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2041-11-11
AI Technical Summary
How to configure channels for transmitting multicast services to achieve one-to-many service data transmission, especially in the new generation of short-distance communication technologies, such as Star Flash Alliance access technology, the channel configuration of multicast services has not been effectively solved.
Through information exchange between the basic service layer and access layer of the first electronic device, a mapping relationship between service channels and logical channels is established using the device information and multicast member information of the electronic device, thereby achieving one-to-many multicast service transmission. Specific steps include sending and receiving information to indicate the mapping between service channels and logical channels, establishing and releasing data paths, and supporting multicast member management and flexible communication.
The invention realizes the multicast service transmission between the first electronic device and multiple electronic devices, simplifies the multicast member management process, and improves the flexibility of communication and the resource utilization efficiency.
Smart Images

Figure CN116112447B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and more particularly, to a method and apparatus for configuring a channel for transmitting a multicast service. Background Art
[0002] Short-range communication enables communication between electronic devices that are relatively close together. With the development of the Internet of Things (IoT), new application scenarios such as smart cars, smart homes, smart terminals, and smart manufacturing have emerged, prompting the emergence of a new generation of short-range access technologies, such as SparkLink Alliance access technologies. For example, SparkLink Alliance access technologies include but are not limited to SparkLink Basic (SLB) and SparkLink Low Energy (SLE).
[0003] To support the next generation of wireless short-range communication technology and enable the complete process of short-range services, service transmission must be designed within a new protocol framework. When a single electronic device sends the same service data to multiple electronic devices, a one-to-many transmission of service data, known as multicast, can be performed between the single electronic device and the multiple electronic devices. Services transmitted via multicast are referred to as multicast services.
[0004] However, how to configure channels for transmitting multicast services has become an urgent problem that needs to be solved. Summary of the Invention
[0005] The present application provides a method and apparatus for configuring a channel for transmitting a multicast service, which can realize the transmission of a one-to-many service.
[0006] In a first aspect, a method for configuring a channel for transmitting multicast services is provided, which is applied to a first electronic device, wherein the first electronic device includes a first basic service layer and a first access layer, the first basic service layer is configured with a first service channel, the first access layer is configured with a first logical channel, the first service channel and the first logical channel have a mapping relationship, and the first service channel and the first logical channel are used to transmit first data. The method includes: the first basic service layer sends first information to a second electronic device, the first information is used to instruct the second electronic device to establish a second service channel; the first basic service layer receives second information sent by the second electronic device, the second information is used to indicate that the second service channel establishes a mapping relationship with the first service channel, wherein the second service channel has a mapping relationship with the first logical channel, and the second service channel is used to receive the first data from the first logical channel; the first basic service layer sends third information to a third electronic device, the third information is used to instruct the third electronic device to establish a third service channel; the first basic service layer receives fourth information sent by the third electronic device, the fourth information is used to indicate that the third service channel establishes a mapping relationship with the first service channel, wherein the third service channel has a mapping relationship with the first logical channel, and the third service channel is used to receive the first data from the first logical channel.
[0007] In an embodiment of the present application, after the first electronic device, the second electronic device, and the third electronic device have respectively established a mapping relationship between the first service channel, the second service channel, the third service channel, and the first logical channel, a one-to-many multicast service can be performed between the first electronic device and the second electronic device and the third electronic device. Specifically, the first electronic device can transmit the first data to the second electronic device and the third electronic device through the first service channel and the first logical channel. Correspondingly, the second electronic device receives the first data from the first logical channel through the second service channel, and the third electronic device receives the first data from the first logical channel through the third service channel. In this way, a multicast service transmission in which the first electronic device sends a copy of the data and the second electronic device and the third electronic device receive the data respectively can be realized.
[0008] In combination with the first aspect, in a possible implementation method, before the first basic service layer sends the first information to the second electronic device, it also includes: the first basic service layer establishes the first business channel; the first basic service layer sends fifth information to the first access layer, and the fifth information is used to apply for a logical channel for the first business channel; the first basic service layer receives sixth information sent by the first access layer, and the sixth information is used to indicate that a mapping relationship is established between the first business channel and the first logical channel.
[0009] In combination with the first aspect, in a possible implementation, the fifth information includes an identifier of the first service channel and device information of the second electronic device, wherein the device information of the second electronic device in the fifth information is used to indicate that the first access layer establishes a logical link between the first electronic device and the second electronic device; the sixth information includes an identifier of the first service channel, an identifier of the first logical channel and device information of the second electronic device, wherein the device information of the second electronic device in the sixth information is used to indicate that the establishment of the logical link between the first electronic device and the second electronic device is completed.
[0010] In the embodiment of the present application, the upper and lower layers of the electronic device can interact with each other through the device information of the electronic device that can be recognized by each layer, thereby facilitating the management of multicast members.
[0011] In combination with the first aspect, in a possible implementation, the fifth information includes an identifier of the first service channel and multicast member information, the multicast member information includes a device identifier and / or device address of an electronic device used to receive the first data, wherein the multicast member information in the fifth information is used to instruct the first access layer to establish a logical link between the first electronic device and each electronic device in the electronic device used to receive the first data; the sixth information includes an identifier of the first service channel, an identifier of the first logical channel and the multicast member information, wherein the multicast member information is used to indicate that the logical link between the first electronic device and each electronic device in the electronic device used to receive the first data is established.
[0012] The first basic service layer and the first access layer exchange multicast member information. In this way, when the first electronic device needs to establish a data path with multiple multicast members, the first basic service layer does not need to send the member device information to the first access layer multiple times, nor does it need to receive the member device information sent by the first access layer multiple times, which can simplify the process.
[0013] In combination with the first aspect, in a possible implementation, the fifth information includes an identifier of the first service channel and multicast member information, the multicast member information includes a device identifier and / or device address of an electronic device used to receive the first data, wherein the multicast member information in the fifth information is used to instruct the first access layer to establish a logical link between the first electronic device and each electronic device in the electronic device used to receive the first data; the sixth information includes an identifier of the first service channel, an identifier of the first logical channel and device information of the second electronic device, wherein the device information of the second electronic device in the sixth information indicates that the logical link between the first electronic device and the second electronic device is established.
[0014] The first basic service layer notifies the first access layer of the multicast member information. This allows the first electronic device to establish data paths with multiple multicast members without having to send the member device information to the first access layer multiple times, simplifying the process. The first basic service layer can provide individual feedback on the data path establishment status for each member device.
[0015] In combination with the first aspect, in a possible implementation, the first electronic device also includes a first basic application layer, and before the first basic service layer establishes the first business channel, it also includes: the first basic service layer receives seventh information sent by the first basic application layer, and the seventh information is used to indicate an application for a business channel for a first port, wherein the first port is a port used by the first electronic device to transmit the first data; the method also includes: the first basic service layer sends eighth information to the first basic application layer, and the eighth information is used to indicate a mapping relationship between the first port and the first business channel.
[0016] In combination with the first aspect, in a possible implementation, the seventh information includes the identifier of the first port, the multicast member information and the port information of the multicast member, wherein the multicast member information includes the device identifier and / or device address of the electronic device used to receive the first data, and the port information of the multicast member includes the identifier of the port used by the electronic device used to receive the first data; the eighth information includes the identifier of the first port, the identifier of the first service channel and the device information of the second electronic device; or, the eighth information includes the identifier of the first port, the identifier of the first service channel and the multicast member information.
[0017] The first basic application layer notifies the first basic service layer of the multicast member information and the port information of the multicast members. In this way, when the first electronic device needs to establish a data path with multiple multicast members, the first basic application layer does not need to send the member device information and the port information used by the members to the first basic service layer multiple times, which can simplify the process.
[0018] In combination with the first aspect, in a possible implementation, the port used by the electronic device for receiving the first data is obtained through negotiation between the first basic application layer of the first electronic device and each electronic device in the electronic devices for receiving the first data.
[0019] The data exchanged during the negotiation process can be transmitted through the default service channel.
[0020] In combination with the first aspect, in a possible implementation method, before the first basic service layer sends the first information to the second electronic device, it also includes: the first basic service layer sends the ninth information to the first access layer, and the ninth information is used to instruct the first access layer to establish a logical link between the first electronic device and the second electronic device; the first basic service layer receives the tenth information sent by the first access layer, and the tenth information is used to indicate that the logical link between the first electronic device and the second electronic device is completed; before the first basic service layer sends the third information to the third electronic device, it also includes: the first basic service layer sends the eleventh information to the first access layer, and the eleventh information is used to instruct the first access layer to establish a logical link between the first electronic device and the third electronic device; the first basic service layer receives the twelfth information sent by the first access layer, and the twelfth information is used to indicate that the logical link between the first electronic device and the third electronic device is completed.
[0021] In combination with the first aspect, in one possible implementation, the logical link between the first electronic device and the second electronic device includes the first logical channel and the second logical channel, wherein the second logical channel has a mapping relationship with the first business channel and the second business channel respectively, and the second logical channel is used to transmit data sent by the second electronic device to the first electronic device; the logical link between the first electronic device and the third electronic device includes the first logical channel and the third logical channel, wherein the third logical channel has a mapping relationship with the first business channel and the third business channel respectively, and the third logical channel is used to transmit data sent by the third electronic device to the first electronic device; the first logical channel is used to transmit data sent by the first electronic device to the second electronic device and the third electronic device.
[0022] In the embodiment of the present application, the underlying logical link between the first electronic device and the member devices may include a logical channel for transmitting downlink data and a logical channel for transmitting uplink data. For example, the first electronic device may send a multicast service (i.e., downlink data) to different member devices via the same logical channel (i.e., the first logical channel), and different member devices may send data to the first electronic device via their respective logical channels for transmitting uplink data.
[0023] In combination with the first aspect, in a possible implementation, the ninth information includes the device information of the second electronic device and the identifier of the first business channel; the tenth information includes the device information of the second electronic device, the identifier of the first business channel, the identifier of the first logical channel and the identifier of the second logical channel; the eleventh information includes at least one of the identifier of the first business channel and the identifier of the first logical channel and the device information of the third electronic device; the twelfth information includes the device information of the third electronic device, the identifier of the first business channel, the identifier of the first logical channel and the identifier of the third logical channel.
[0024] In the embodiment of the present application, different electronic devices use different logical channels to send data to the first electronic device. The first electronic device can distinguish data from different devices by different logical channel identifiers.
[0025] In combination with the first aspect, in one possible implementation, the device information of the second electronic device includes the device identification and / or device address of the second electronic device; the device information of the third electronic device includes the device identification and / or device address of the third electronic device.
[0026] In combination with the first aspect, in a possible implementation, the first basic service layer sends the eighth information to the first basic application layer, including: after the first basic service layer receives the second information and before sending the third information, the eighth information is sent to the first basic application layer; before the first basic service layer sends the third information to the third electronic device, it also includes: the first basic service layer receives the thirteenth information sent by the first basic application layer, and the thirteenth information is used to apply for reconfiguration of the first service channel to transmit multicast services between the first electronic device and the third electronic device; the first basic service layer sends the fourteenth information to the first access layer, and the fourteenth information is used to instruct the first access layer to establish a logical link between the first electronic device and the third electronic device; the first basic service layer receives the fifteenth information sent by the first access layer, and the fifteenth information is used to indicate that the logical link between the first electronic device and the third electronic device is completed; after the first basic service layer receives the fourth information sent by the third electronic device, it also includes: the first basic service layer sends the sixteenth information to the first basic application layer, and the sixteenth information is used to indicate that the reconfiguration of the first service channel is successful.
[0027] In an embodiment of the present application, after the application for the first service channel is successful, during the process of members joining the multicast, the first service channel can be reconfigured to establish a data path between the first electronic device and the new member device, thereby realizing multicast service transmission between the first electronic device and the new member device, making multicast communication more flexible.
[0028] In combination with the first aspect, in a possible implementation, the thirteenth information includes the device information of the third electronic device and the identifier of the first business channel; the fourteenth information includes at least one of the identifier of the first business channel and the identifier of the first logical channel and the device information of the third electronic device; the fifteenth information includes the device information of the third electronic device, the identifier of the first business channel and the identifier of the first logical channel; the sixteenth information includes the device information of the third electronic device and the identifier of the first business channel.
[0029] In combination with the first aspect, in a possible implementation, the first information includes an identifier of a second port, an identifier of the first business channel, and an identifier of the first logical channel, wherein the second port is a port used by the second electronic device to transmit the first data; the second information includes an identifier of the second business channel, wherein the second business channel and the second port have a mapping relationship; the third information includes an identifier of a third port, an identifier of the first business channel, and an identifier of the first logical channel, wherein the third port is a port used by the third electronic device to transmit the first data; the fourth information includes an identifier of the third business channel, wherein the third business channel and the third port have a mapping relationship.
[0030] In the embodiment of the present application, a mapping relationship is established between the first port and the first service channel, a mapping relationship is established between the first service channel and the first logical channel, a mapping relationship is established between the first logical channel and the second service channel and the third service channel, respectively, a mapping relationship is established between the second service channel and the second port, and a mapping relationship is established between the third service channel and the third port. In this way, the first electronic device and the second and third electronic devices implement one-to-many multicast service transmission.
[0031] In combination with the first aspect, in a possible implementation, when it is necessary to release the channel for transmitting the first data between the first electronic device and the second electronic device, the method also includes: the first basic service layer sends seventeenth information to the first access layer, and the seventeenth information is used to instruct the first access layer to release the mapping relationship between the first logical channel and the second business channel; the first basic service layer receives eighteenth information sent by the first access layer, and the eighteenth information is used to indicate that the mapping relationship between the first logical channel and the second business channel is successfully released; the first basic service layer sends nineteenth information to the second electronic device, and the nineteenth information is used to instruct the second electronic device to release the second business channel; the first basic service layer receives twentieth information sent by the second electronic device, and the twentieth information is used to indicate that the second business channel is successfully released.
[0032] When the second electronic device leaves the multicast, the mapping relationship between the second service channel and the first logical channel can be released, thereby releasing the second service channel, making the multicast communication more flexible.
[0033] In combination with the first aspect, in one possible implementation, the seventeenth information includes an identifier of the first service channel and device information of the second electronic device; or, the seventeenth information includes an identifier of the first service channel and / or an identifier of the first logical channel.
[0034] In combination with the first aspect, in a possible implementation, the method also includes: the first basic service layer receives twenty-first information sent by the first basic application layer, and the twenty-first information is used to indicate the release of the channel between the first electronic device and the second electronic device for transmitting the first data; wherein, the twenty-first information includes the identifier of the first service channel and the device information of the second electronic device.
[0035] In the method provided in the present application, a channel for transmitting a multicast service between a first electronic device and a certain electronic device can be released.
[0036] In combination with the first aspect, in a possible implementation, the method also includes: the first basic service layer receives the twenty-first information sent by the first basic application layer, and the twenty-first information is used to indicate the release of the first service channel; wherein the twenty-first information includes the identifier of the first service channel and / or the device information of all online devices used to receive the multicast service sent by the first electronic device.
[0037] In the method provided in the present application, a channel for transmitting multicast services between a first electronic device and multiple electronic devices can be released.
[0038] In combination with the first aspect, in a possible implementation, the second electronic device is the last device connected to the main device for receiving the first data, and the method also includes: the first basic service layer releases the mapping relationship between the first business channel and the first port to release the first business channel, wherein the first port is the port used by the first electronic device to transmit the first data; the first basic service layer sends twenty-second information to the first basic application layer, and the twenty-second information is used to instruct the first basic application layer to release the first port.
[0039] When the multicast service is stopped or ended, the multicast service channel used by the first electronic device to transmit the multicast service can be released, thereby improving resource utilization efficiency.
[0040] In combination with the first aspect, in a possible implementation, the first access layer supports Star Flash Basic SLB access technology and / or Star Flash Low Power SLE access technology.
[0041] In a second aspect, an apparatus for configuring a channel for transmitting a multicast service is provided, comprising a module or unit for executing the method of the first aspect or any possible implementation of the first aspect. The module or unit may be implemented as hardware circuitry, software, or a combination of hardware circuitry and software.
[0042] Optionally, the device may be an electronic device or a chip within an electronic device.
[0043] In one possible design, the device includes a processing unit and a transceiver unit. When the device is an electronic device, the processing unit may be a processor, and the transceiver unit may be a transceiver. When the device is a chip within an electronic device, the processing unit may be a processor, and the transceiver unit may be an input / output interface, pin, or circuit. The transceiver unit may be referred to as a communication interface.
[0044] In one possible design, the device further includes a storage unit, the storage unit being used to store instructions, and the processing unit executes the instructions stored in the storage unit, so that the device performs the method in the first aspect or any possible implementation of the first aspect. When the device is an electronic device, the storage unit may be a memory. When the device is a chip in an electronic device, the storage unit may be a storage unit in the chip (for example, a register, a cache, etc.), or a storage unit in the electronic device located outside the chip (for example, a read-only memory, a random access memory, etc.).
[0045] In a third aspect, a device for configuring a channel for transmitting multicast services is provided, comprising: a memory for storing a computer program; and a processor for executing the computer program stored in the memory, so that the device performs the method in the above-mentioned first aspect or any possible implementation of the first aspect.
[0046] Optionally, the device further includes a transceiver.
[0047] In a fourth aspect, a device for configuring a channel for transmitting multicast services is provided, comprising: at least one processor and a communication interface, wherein the communication interface is used to provide input or output of instructions and / or data for the at least one processor, and the at least one processor executes code instructions so that the device executes the method in the above-mentioned first aspect or any possible implementation of the first aspect.
[0048] In a fifth aspect, a chip system is provided, comprising at least one processor, which, when program instructions are executed in the at least one processor, enables the at least one processor to execute the method in the above-mentioned first aspect or any possible implementation of the first aspect.
[0049] In one possible design, the chip system further includes a memory for storing program instructions and / or data. The chip system can be composed of a chip, or can include a chip and other discrete devices.
[0050] In one possible design, the chip system also includes a transceiver for providing input or output of instructions and / or data for the at least one processor.
[0051] In a sixth aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.
[0052] It should be noted that the above-mentioned computer program code can be stored in whole or in part on the first storage medium, wherein the first storage medium can be packaged together with the processor or separately packaged with the processor, and the embodiments of the present application do not specifically limit this.
[0053] In a seventh aspect, a computer-readable medium is provided, storing computer-executable instructions. When the computer-executable instructions are executed on a computer, the computer is caused to execute the method in the above-mentioned first aspect or any possible implementation of the first aspect.
[0054] In an eighth aspect, a communication system is provided, comprising the first electronic device, the second electronic device and the third electronic device mentioned above.
[0055] Optionally, the first electronic device may be the device described in any one of the second to fourth aspects above. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 It is a schematic diagram of a communication system to which an embodiment of the present application is applicable.
[0057] Figure 2 This is a schematic diagram of the protocol architecture provided in an embodiment of the present application.
[0058] Figure 3 This is a flowchart of creating a multicast service channel provided by an embodiment of the present application.
[0059] Figure 4 This is a flowchart of creating a multicast service channel provided by another embodiment of the present application.
[0060] Figure 5 This is a schematic diagram of a multicast service transmission path provided by an embodiment of the present application.
[0061] Figure 6 This is a schematic diagram of the access layer supporting multicast technology provided in an embodiment of the present application.
[0062] Figure 7 This is a flowchart of a member device joining a multicast provided by an embodiment of the present application.
[0063] Figure 8 This is a flowchart of a member device leaving a multicast according to an embodiment of the present application.
[0064] Figure 9-10 This is a flowchart of releasing a multicast service channel provided by an embodiment of the present application.
[0065] Figure 11-13 This is a schematic flowchart of a method for configuring a channel for transmitting multicast services provided by an embodiment of the present application.
[0066] Figure 14 This is a schematic flowchart of a method for configuring a channel for transmitting multicast services provided in another embodiment of the present application.
[0067] Figure 15 This is a schematic flowchart of a method for configuring a channel for transmitting multicast services provided in another embodiment of the present application.
[0068] Figure 16-17 This is a schematic flowchart of a method for configuring a channel for transmitting multicast services provided by another embodiment of the present application.
[0069] Figure 18 It is a schematic structural diagram of a device provided in one embodiment of the present application.
[0070] Figure 19 It is a schematic structural diagram of a device provided in another embodiment of the present application. DETAILED DESCRIPTION
[0071] The technical solution in this application will be described below with reference to the accompanying drawings.
[0072] Short-range communication can realize communication between electronic devices that are close to each other. The mainstream access technologies in current short-range communications include wireless fidelity (Wi-Fi) technology, Bluetooth technology and ZigBee technology. With the development of the Internet of Things, new application scenarios such as smart cars, smart homes, smart terminals and smart manufacturing have emerged, and a new generation of short-range access technologies (for example, sparklink alliance access technology) has come into being. Taking sparklink alliance access technology as an example, it includes but is not limited to sparklink basic (SLB) access technology and sparklink low energy (SLE) access technology. Among them, SLB access technology can support the transmission of large-bandwidth services such as screen projection, virtual reality (VR), and in-vehicle communications, and SLE access technology can support the transmission of small-bandwidth, low-rate, and low-power services such as audio playback, keyboard, mouse, and electronic pen. For the convenience of description, SLB access technology may be referred to as SLB in the following embodiments, and SLE access technology may be referred to as SLE. In addition, unless otherwise specified, the access technology mentioned in the following description refers to short-distance access technology.
[0073] Figure 1 A schematic diagram of a communication system provided in an embodiment of the present application is shown.
[0074] like Figure 1 As shown, the communication system 100 includes a first electronic device (e.g., first electronic device 110) and at least one second electronic device (e.g., second electronic devices 121, 122). The first electronic device and each second electronic device can establish a connection to communicate via a short-range access technology. It should be understood that Figure 1 The communication system shown is for illustrative purposes only. The communication system 100 may also include other devices (such as base stations, etc.), which is not limited in the embodiments of the present application.
[0075] In the embodiment of the present application, the first electronic device or the second electronic device can be any device with wireless transceiver function, including but not limited to cellular phones, cordless phones, session initiation protocol (SIP) phones, smart phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication functions, computing devices, vehicle-mounted devices, wearable devices, drone devices, electronic devices in the Internet of Things or the Internet of Vehicles, other devices connected to wireless modems, etc.
[0076] The first electronic device or the second electronic device may also be an electronic device in virtual reality (VR), an electronic device in augmented reality (AR), an electronic device in industrial control (such as smart manufacturing), an electronic device in self-driving, an electronic device in remote medical, an electronic device in a smart grid, an electronic device in a smart city, an electronic device in a smart home, etc.
[0077] The first electronic device or the second electronic device can also be a personal portable electronic device, a computer peripheral device and various household or industrial electrical appliances, including but not limited to smart phones, smart screens, smart air conditioners, smart alarm clocks, sweeping robots, smart speakers (such as artificial intelligence (AI) speakers, high fidelity (HiFi) speakers), smart sensors, televisions, wireless headphones, VR headsets, tablet computers, displays, cameras, laptops, laptop computers, in-vehicle computers, in-vehicle terminals (such as microphones, speakers, etc.), projectors, printers, keyboards, mice, e-books, smart wristbands, smart watches, smart glasses, smart cars, smart lathes, smart monitoring equipment, etc.
[0078] By way of example and not limitation, Figure 1The communication system 100 shown includes a first electronic device 110, a second electronic device 121, and a second electronic device 122, where the first electronic device 110 is a mobile phone, the second electronic device 121 is a smart speaker, and the second electronic device 122 is a headset. It is understandable that the communication system 100 may include any number of first and second electronic devices, and the first and second electronic devices may be any of the aforementioned electronic devices. The embodiments of the present application do not impose any restrictions on the number and type of the first and second electronic devices included in the communication system 100.
[0079] In the embodiment of the present application, the first electronic device and the second electronic device may support at least one short-range access technology, for example, support SLB access technology and / or SLE access technology.
[0080] A first electronic device can perform one-to-many service transmission (i.e., multicast or multicast) with at least one second electronic device, that is, the first electronic device sends a copy of service data, and at least one second electronic device receives it. Here, the service sent by multicast can be referred to as a multicast service. The first electronic device can be referred to as a master device or a central device, and when sending a multicast service, it can also be referred to as a sender or a service sender. The at least one second electronic device can be referred to as a slave device or an external device, and when receiving a multicast service, it can also be referred to as a receiver or a service receiver.
[0081] In order to support the new generation of wireless short-range communication technology and realize the complete process of short-range business, a new protocol framework needs to be established. Figure 2 The following is a schematic diagram of the protocol architecture of wireless short-range communication provided by the embodiment of the present application. The protocol architecture can be applied to any electronic device that can achieve short-range communication, for example, Figure 1 The communication system 100 is shown as a first electronic device and a second electronic device.
[0082] like Figure 2 As shown, the protocol architecture 200 includes but is not limited to a host and a controller. The host is the upper layer protocol of the controller, and includes a basic application layer 230 and a basic service layer 220. The controller, also known as the access layer 210, is the lowest layer of the protocol architecture.
[0083] refer to Figure 2 That is, the protocol architecture 200 may include, from bottom to top, an access layer 210, a basic service layer 220, and a basic application layer 230. The access layer 210, the basic service layer 220, and the basic application layer 230 are described in detail below.
[0084] The access layer 210 is mainly responsible for the processing of the underlying logical links, such as the establishment, reconfiguration, and deletion of logical links, in order to undertake the business needs of the basic service layer 220 (such as reliable data, real-time data, etc.), wherein the logical link is used to transmit services between two electronic devices. The access layer 210 can support a variety of access technologies, including but not limited to the access technology of the SparkLink Basic (SLB) short-range wireless communication system, the access technology of the SparkLink Low Energy (SLE) short-range wireless communication system, and other access technologies, such as Bluetooth Low Energy (BLE) technology, other future SparkLink Alliance access technologies, etc. In the embodiments of this application, only the SLB and SLE access technologies are used as examples to briefly introduce the architecture of the access layer 210.
[0085] like Figure 2 As shown, the access layer 210 may further include a data link layer and a physical layer. The data link layer is used to implement functions such as resource management, access control, data segmentation, cascading, and reordering to ensure reliable data transmission. The physical layer uses a transmission medium to provide a physical connection for the data link layer to achieve transparent transmission of bit streams. In some embodiments, the data link layer may include a link control layer and a media access layer. The link control layer is mainly based on the links established between nodes, and exchanges link control protocols (LCP) on the control link to perform functions such as physical / logical link management and device behavior control. The media access layer is responsible for wireless resource allocation and provides data transmission services for the link control layer. Each sublayer in the access layer 210 implements its own functions to support the access layer 210.
[0086] In an embodiment of the present application, for an electronic device that supports two access technologies such as SLB and SLE, its access layer can respectively implement SLB access and SLE access through different modules, or can implement SLB access and SLE access through the same module, which is not limited here. SLB access technology is mainly responsible for the transmission of large bandwidth, high speed, and high power consumption services (such as video playback services), and SLE access technology is mainly responsible for the transmission of small bandwidth, low speed, and low power consumption services (such as audio playback services). It can be understood that the names of the two Star Alliance access technologies introduced above are merely exemplary and should not be understood as limitations on the embodiments of the present application. In other embodiments or in future architectures, SLB and SLE may also use other names.
[0087] The access layer 210 establishes a logical channel (LC). This logical channel serves as the foundation for the transmission channel (TC) in the upper-layer basic service layer 220. Only after the logical channel is successfully established can the transmission channel of the basic service layer 220 be used. A logical channel pair can support multiple transmission channel mappings. To distinguish logical channels, a logical channel identification (LCID) is defined to uniquely identify the logical channel.
[0088] The basic service layer 220 is a protocol layer located between the access layer 210 and the basic application layer 230. It includes multiple functional units, is decoupled from the business, and implements a common functional process. Specifically, the basic service layer 220 can be responsible for the creation, addition, deletion, and release of transmission channels, as well as the control of logical links (such as the selection of access technology) to meet the business requirements of the basic application layer 230 (such as traffic, rate, sound quality, and resolution). The design goal of the basic service layer 220 is to be compatible with multiple access layer technologies, such as the SLB and SLE access technologies introduced above, and to retain the ability to be compatible with more access technologies in the future.
[0089] The basic service layer 220 may include multiple modules or functional units to achieve the above-mentioned design goals, including but not limited to: device discovery module, service management module, connection management module, quality of service (QoS) management module, security management module, measurement management module, multi-domain coordination module, 5G fusion module, and transmission and control adaptation module.
[0090] The device discovery module is used to discover devices when there is no connection with the device. Specifically, the device discovery module is used to broadcast the capabilities of its own device and scan for peer devices that meet service requirements.
[0091] The service management module is used to discover and operate services on the device. Specifically, the service management module is used to define a data structure, which provides a data module for sending control instructions and small data for the business function set of the basic application layer.
[0092] The connection management module manages transmission channels, including creating, adding, deleting, and releasing them. Specifically, the connection management module allows the basic application layer to request transmission channels for data stream transmission based on the business identifier (BID) and the service's QoS capabilities. It also manages the establishment and release of transmission channels for services and maintains the mapping between transmission channels and logical links. This will be discussed in detail later and is not detailed here.
[0093] The QoS management module is used to manage and negotiate the QoS of transmission. Specifically, the QoS management module is used to manage the static table of QoS requests for services and negotiate QoS with the peer device.
[0094] The security management module is responsible for the secure connection of the basic service layer.
[0095] The measurement management module is used to configure the underlying measurement and scheduling for power control, etc.
[0096] In scenarios where there are multiple domains (subnets), the multi-domain coordination module enables information interaction between domains, interference avoidance between multiple domains, and load balancing.
[0097] The 5G fusion module is used to establish a channel with cellular 5G remote management capabilities and realize devices with cellular 5G remote control functions through authentication and authorization mechanisms.
[0098] The transmission and control adaptation module is used for data transmission and implements functions such as segmentation and reorganization, flow control, and diversion aggregation of data on the transmission channel.
[0099] The basic service layer 220 establishes a transmission channel (TC) for transmitting service plane data and control plane data. To distinguish transmission channels, a transmission channel identification (TCID) is defined to uniquely identify the transmission channel. A transmission channel can support multiple port mappings upstream and multiple transmission channels can be mapped to the same logical channel.
[0100] On the one hand, the transmission of the basic service layer 220 can be divided into transmission on the control plane and transmission on the business plane. Accordingly, the transmission channel of the basic service layer 220 may include a control channel and a business channel, wherein the control channel is used to transmit data on the control plane, and the business channel is used to transmit data on the business plane. The establishment of the control channel is the basis for establishing a business channel between electronic devices. The following embodiments of this application mainly describe the relevant processes of the business channel in detail. The relevant processes of the business channel are executed on the basis of the establishment of the control channel. Regarding the establishment process of the control channel, this application will not describe it in detail.
[0101] Service channels may include unicast service channels, multicast service channels, and broadcast service channels. A unicast service channel is a service channel used to transmit unicast services, which can achieve point-to-point transmission. A multicast service channel is a service channel used to transmit multicast services, which can achieve point-to-group transmission. It has feedback (ack) at the bottom layer and has a certain bottom layer reliability. A broadcast service channel is a service channel used to transmit broadcast services, which can achieve connectionless transmission. It has no feedback (ack) at the bottom layer and needs to be sent multiple times to ensure reliability. The following embodiments of this application mainly introduce in detail the relevant processes for establishing multicast service channels.
[0102] On the other hand, depending on whether the transmission channel is established by default, the transmission channels in the basic service layer 220 may include default transmission channels and non-default transmission channels. The default transmission channel is generally automatically established after the underlying default logical link is established. The non-default transmission channel is established based on service needs.
[0103] The basic application layer 230 is primarily responsible for meeting the diverse business needs of upper-layer applications (APPs) and routing data to the basic service layer 220. Depending on the business classification, the basic application layer 230 may include multiple different business function sets (also known as business modules or business frameworks). These different business function sets include categorized data processing for the business.
[0104] For example, Figure 2 As shown, the application layer 230 may include a basic communication framework, a universal perception framework, a universal audio framework, a universal data framework, and an in-vehicle control framework. The basic communication framework includes communication data processing; the universal perception framework includes perception data processing; the universal audio framework includes audio data processing, such as encoding and decoding; the universal video framework includes video data processing; the universal data framework includes file data processing, such as encryption and compression; and the in-vehicle control framework includes in-vehicle data processing. Different business function sets can be distinguished by business identification (BID).
[0105] The channel in the basic application layer 230 is a port, which can undertake the business needs of the application at the top and realize the mapping of multiple ports to the same transmission channel at the bottom.
[0106] In the embodiments of the present application, the basic service layer 220 and the basic application layer 230 may be collectively referred to as the upper layer protocol or host protocol. The host protocol is adaptable to the underlying access layer 210 to support the needs of different services. Regardless of the access technology supported by the access layer, the upper layer can adopt a unified host protocol, that is, the upper layer is compatible with multiple access technologies. Specifically, the host protocol can be provided to the service module to initiate service requests and transmit and control service data.
[0107] In order to achieve complete transmission of the business, there is a mapping relationship between the channels of different layers in the protocol architecture 200. Specifically, the port in the basic application layer 230 has a mapping relationship with the transmission channel in the basic service layer 220, wherein multiple ports can be mapped to the same transmission channel. The transmission channel in the basic service layer 220 has a mapping relationship with the logical channel in the access layer 210, wherein multiple transmission channels can be mapped to the same logical channel. One logical channel corresponds to one access technology. When there is business data to be transmitted, the basic application layer 230 transmits the data from the port to the basic service layer 220 through a data flow, and the basic service layer 220 selects one or more transmission channels for transmission. Since the transmission channel and the logical channel have a mapping relationship, accordingly, after receiving the data, the access layer 210 uses the corresponding logical channel to continue transmission.
[0108] In some embodiments, the channels in the protocol architecture 200 can transmit multicast service data (e.g., audio multicast services) to support an electronic device (referred to as a master device or a central device, e.g., Figure 1 The first electronic device 110 in the embodiment of the present invention) and multiple electronic devices (which may be referred to as slave devices or peripheral devices, such as Figure 1 In the embodiment of the present application, the transmission channel used for transmitting multicast services in the basic service layer 220 can be referred to as a multicast service channel. Specifically, the multicast service channel can support service transmission from one master device to multiple slave devices, wherein the master device sends a copy of data, and multiple slave devices receive it separately. If a slave device wants to send data to the master device, it can send it to the master device separately.
[0109] In an embodiment of the present application, the basic application layer includes a device group management protocol that maintains the concept of device groups. For example, multiple slave devices receiving multicast services can be considered a device group. The basic application layer, basic service layer, and access layer of the electronic device can identify the device information (such as device identification and / or device address) of the device to facilitate interaction between the upper and lower layers. In addition, the device group management protocol can manage the devices within the group for unified operations, such as creating multicast service channels, unified device volume management, and latency processing.
[0110] The embodiments of the present application relate to the relevant processes of the multicast service channel, mainly including: the process of creating a multicast service channel, the process of members joining the multicast, the process of members leaving the multicast, and the process of releasing the multicast service channel.
[0111] Specifically, the process of creating a multicast service channel is the process of creating a new channel for transmitting multicast services. The process of adding a member to a multicast service is the process of adding a new device to the device group receiving the multicast service based on an existing multicast service channel. The process of leaving a multicast service is the process of removing a device from the device group receiving the multicast service based on an existing multicast service channel. The process of releasing a multicast service channel is the process of releasing an existing multicast service channel.
[0112] In the following, taking the first electronic device and at least one second electronic device as an example, Figure 2 The protocol architecture shown in the figure describes each of the above processes in detail through the interaction between a first electronic device and at least one second electronic device (the following embodiments take two second electronic devices as an example) and between various layers within each electronic device. Among them, the module involved in the basic service layer in the first electronic device and at least one second electronic device is a connection management module.
[0113] Figure 3 A schematic diagram of a process for creating a multicast service channel provided by an embodiment of the present application is shown.
[0114] In the implementation process of this process, a master device, a first slave device and a second slave device are involved. The master device is an example of a first electronic device. The first slave device and the second slave device are an example of a second electronic device. The master device, the first slave device and the second slave device all have the following Figure 2 The protocol architecture 200 shown includes a basic application layer, a basic service layer and an access layer.
[0115] When the master device needs to send a multicast service to the first slave device and the second slave device, for example, the master device plays a mono audio through the first slave device and the second slave device (for example, the master device is a mobile phone, and the first slave device and the second slave device are left and right earphones), or the master device makes a group call with the first slave device and the second slave device (for example, the master device, the first slave device, and the second slave device are all mobile phones), the master device and the first slave device and the second slave device can communicate with each other as follows: Figure 3 The process shown. Figure 3 The method 300 shown includes steps S301 to S324 , and each step is described in detail below with reference to the accompanying drawings.
[0116] S301: The basic application layer of the master device performs port negotiation with the basic application layer of the first slave device.
[0117] S302: The basic application layer of the master device performs port negotiation with the basic application layer of the second slave device.
[0118] Steps S301 and S302 are similar, except that the objects of port negotiation with the master device are different. In step S301, the data involved in the negotiation process can be transmitted through the default service channel that has been established between the master device and the first slave device. In step S302, the data involved in the negotiation process can be transmitted through the default service channel that has been established between the master device and the second slave device. The default service channel is automatically established by the service management module in the basic service layer after the control channel is established and is used to transmit service management data. Here, the default service channel between the master device and the first slave device and the default service channel between the master device and the second slave device are unicast service channels.
[0119] In some embodiments, in steps S301 and S302, the basic application layer of the master device can also conduct service negotiation and application service quality (QoS) negotiation with the basic application layer of the first slave device and the basic application layer of the second slave device. For example, the service type (the service type in the embodiment of the present application is a multicast service) is negotiated through the service negotiation process, and the QoS that needs to be met by the service transmission is negotiated through the QoS negotiation process. The service negotiation, QoS negotiation and port negotiation between the master device and the first slave device and the second slave device can all be uniformly transmitted on the default service channel using the data template provided by the service management module through the service framework in the basic application layer. The embodiment of the present application mainly focuses on the results of the port negotiation between the master device and the first slave device and the second slave device. Therefore, other negotiation processes, such as service negotiation, QoS negotiation, etc., are not described in detail here.
[0120] Exemplarily, the result of the negotiation between the master device and the first slave device may be that the master device uses the first port (for example, represented by port1 (which may be abbreviated as P1)), and the first slave device uses the second port (for example, represented by port2 (which may be abbreviated as P2)). The result of the negotiation between the master device and the second slave device may be that the master device uses the first port (port1), and the second slave device uses the third port (for example, represented by port3 (which may be abbreviated as P3)). Accordingly, the first port port1 and the second port port2 have a mapping relationship, and the basic application layer of the master device and the basic application layer of the first slave device need to maintain the mapping relationship between the first port and the second port. The first port port1 and the third port port3 have a mapping relationship, and the basic application layer of the master device and the basic application layer of the second slave device need to maintain the mapping relationship between the first port and the third port.
[0121] In an embodiment of the present application, the identifiers of the second port used by the first slave device and the third port used by the second slave device may be the same or different. The identifiers of the second port and the third port are specifically allocated by the first slave device and the second slave device respectively, and the master device does not interfere. For the master device, it can distinguish the ports by the device information of the slave device. In other words, each port has a corresponding relationship with the device information of the device to which the port belongs. This corresponding relationship can be established by the master device, for example, the master device has obtained the device information of the slave device in advance, and at the same time obtained the port information during the port negotiation process, so that a corresponding relationship between the port and the device information of the device to which the port belongs can be established. Alternatively, this corresponding relationship can also be established by the slave device, for example, during the port negotiation process, the slave device not only sends the port information to the master device, but also sends the device information of the slave device, so that the master device can also establish a corresponding relationship between the port and the device information of the device to which the port belongs based on the information obtained. In an embodiment of the present application, the device information of the slave device may include a device identifier and / or a device address.
[0122] It is understood that the master device needs to obtain the service recipient before initiating the service. Therefore, before executing steps S301 and S302, the master device needs to obtain information about the device receiving the multicast service (e.g., device identification and / or device address). In this way, when executing method 300, the master device can perform port negotiation with each slave device that needs to receive the multicast service.
[0123] The present embodiment of the present application does not specifically limit the execution order of step S301 and step S302; the two steps can be executed sequentially or simultaneously. Furthermore, the present embodiment of the present application uses only two slave devices as an example to illustrate the process of establishing a multicast service channel. In other embodiments, a greater or lesser number of slave devices may be involved. In this case, the master device needs to perform port negotiation with each slave device separately. The negotiation process is similar to steps S301 and S302 and is not described in detail here.
[0124] S303: The basic application layer of the master device applies for a service channel from the basic service layer of the master device.
[0125] In this step, the basic application layer of the master device applies for service channels for the first port and the second port, and for the first port and the third port from the connection management module in the basic service layer.
[0126] Specifically, in step S303, the basic application layer of the master device may send information #3A to the connection management module. The information #3A is used to apply for a service channel for the ports (eg, the negotiated first port, second port, and third port).
[0127] The information #3A may include one or more of service channel type indication information, port information, device information of the slave device, quality of service (QoS) parameters, and the like.
[0128] The service channel type indication information is used to indicate the type of service channel being applied for. Service channel types may include unicast service channels, multicast service channels, and broadcast service channels. In the embodiment of the present application, during the process of creating a multicast service channel, the service channel type indication information is used to indicate that the applied service channel is a multicast service channel.
[0129] The port information is used to indicate the port mapped to the service channel, i.e., the port negotiated in steps S301 and S302. In the example of two slave devices, the port information may include identifiers of a first port, a second port, and a third port, where the first port is used for mapping to the service channel on the master device side, the second port is used for mapping to the service channel on the first slave device side, and the third port is used for mapping to the service channel on the second slave device side.
[0130] In some embodiments, port information can be transmitted in the form of a member port list (portlist). This member port list includes the ports used by each slave device for receiving multicast services, that is, the ports determined by each slave device during the port negotiation process. In this way, when a master device needs to establish connections with multiple slave devices, the master device's basic application layer does not need to send port information to the basic service layer multiple times, which can simplify the process and save transmission resources.
[0131] In other embodiments, the port information may also include the identifier of the port used by the first slave device connected to the master device to create a multicast service channel and the identifier of the port of the master device. For example, if the first slave device is the first slave device to establish a connection with the master device when creating a multicast service channel, the information #3A may include the identifiers of the first port and the second port. When the master device establishes a connection with other slave devices, the basic application layer of the master device can then send information carrying the ports used by the master device and other slave devices to the basic service layer, thereby establishing a channel for the master device and other slave devices to transmit multicast services. In this way, the master device does not need to wait for all slave devices to complete port negotiation with the master device before proceeding to the next process, but can flexibly execute the process of establishing connections with multiple slave devices.
[0132] The device information of a slave device is used to indicate the slave device receiving the multicast service, that is, the slave device performing port negotiation with the master device. In an example using two slave devices, the device information of the slave device includes the device information of the first slave device and the device information of the second slave device. The device information of the first slave device corresponds to the second port used by the first slave device, and the device information of the second slave device corresponds to the third port used by the second slave device.
[0133] In the embodiment of the present application, the device information of the slave device may include the device identification and / or device address of the slave device. Accordingly, the device information of the first slave device may include the device identification and / or device address of the first slave device, and the device information of the second slave device may include the device identification and / or device address of the second slave device.
[0134] In some embodiments, the device information of the slave devices can be transmitted in the form of a member list. The member list includes the device identification and / or device address of each slave device used to receive the multicast service. In this way, when the master device needs to establish connections with multiple slave devices, the master device's basic application layer does not need to send the slave device information to the basic service layer multiple times, which can simplify the process and save transmission resources.
[0135] In other embodiments, the device information of the slave device may also include the device information of the first slave device connected to the master device to establish a multicast service channel. For example, if the first slave device is the first slave device to establish a connection with the master device when creating a multicast service channel, then information #3A may include the device information of the first slave device. When the master device establishes a connection with other slave devices, the basic application layer of the master device can send the device information of the other slave devices to the basic service layer, thereby establishing a channel for the master device and the other slave devices to transmit multicast services. In this way, the master device can flexibly execute the process of establishing connections with multiple slave devices.
[0136] It is understood that the content included in the device information of the slave device may correspond to the content included in the port information. For example, if the port information includes a member port list, then the device information of the slave device includes a member list. For another example, if the port information includes identifiers of a first port and a second port, then the device information of the slave device includes the device information of the first slave device. Of course, the device information of all slave devices can be pre-acquired before executing method 300. Therefore, in step S303, the device information of the slave device may include a member list, while the port information includes identifiers of the first port and the second port. Figure 3 In the illustrated process, the port information includes a member port list, and the device information of the slave device includes a member list.
[0137] QoS parameters are used to indicate the requirements of multicast services for service channels. QoS parameters may include the SparkLink QoS Identifier (SLQI) and other parameters used to confirm service QoS. The SLQI is used to indicate common parameters related to quality of service, such as transmission rate, latency, packet loss rate, communication cycle, maximum packet size, etc. The other parameters used to confirm service QoS are used to indicate special parameters related to quality of service, such as audio sampling rate, bit depth, etc.
[0138] In some embodiments, information #3A may also include additional parameters, such as transmission mode indication information, dedicated carrier indication information, etc.
[0139] The transmission mode indication information is used to indicate the transmission mode of the data, where the transmission mode may include basic mode, transparent transmission mode, streaming mode, reliable mode, etc.
[0140] Basic mode is the default transmission mode. When using basic mode for transmission, there is no packet splitting, no packet aggregation, no retransmission, and no flow control.
[0141] Transparent transmission mode maps service channels to logical channels one-to-one. Transparent transmission mode does not involve packet splitting or aggregation, and does not include transmission or control module headers.
[0142] When using streaming mode transmission, one-way real-time synchronization of data is required, and the sending end has a flush timeout value to control the flushing of unsent packets.
[0143] Reliable mode provides a reliable transmission mechanism. Data is retransmitted at the transmission control layer. Retransmission occurs when a NACK is received from the peer or a timer expires. Retransmitted packets are not grouped or aggregated, but are retransmitted as a whole. When the maximum number of retransmissions is reached, the corresponding service channel is disconnected and a report is sent to the upper layer.
[0144] The dedicated carrier indication information is used to indicate whether the multicast service channel is dedicated to transmitting data of a certain service. A multicast service channel dedicated to transmitting a certain service will not be reused to transmit other multicast services in other subsequent processes.
[0145] In the embodiment of the present application, if information #3A includes additional parameters, the connection management module may set the relevant parameters according to the additional parameters in information #3A. If information #3A does not include additional parameters, the connection management module may set the relevant parameters independently or according to preset rules, which is not limited in the embodiment of the present application.
[0146] It should be noted that step S303 can be executed after the master device completes the port negotiation process with all slave devices, so that the member port list and the member list can be included in the information #3A. Of course, step S303 can also be executed after the master device completes the port negotiation process with a slave device, so that the information #3A can include the port negotiated by the master device and the slave device, as well as the member list (the device information of the slave device has been pre-acquired before executing method 300). The master device can first apply for a service channel for the negotiated port. After the master device and other slave devices complete the port negotiation, the basic application layer of the master device can again apply for a service channel from the basic service layer for other negotiated ports, that is, execute the process of members joining the multicast. This will be explained in detail later in conjunction with the accompanying drawings and will not be described in detail here.
[0147] In the former solution, the master device completes port negotiation with all slave devices before applying for service channels for each port. This simplifies the process and facilitates management on the master device side. The following embodiments will use this solution as an example. However, it is understood that the latter solution can also be adopted in other embodiments, and will not be further described here.
[0148] S304: The basic service layer of the master device generates an identifier of the first service channel.
[0149] Here, the first service channel refers to the service channel on the master device. For ease of description, the identifier of the first service channel can be represented by TCID-s. In actual applications, the service channels used to transmit data between the master and slave devices include the service channel on the master device and the service channel on the slave device. The identifiers of the service channels on the master device and the slave device are different.
[0150] S305: The basic service layer of the master device applies for a logical channel from the access layer of the master device.
[0151] In this step, the basic service layer of the master device applies to the access layer for a logical channel for the first service channel.
[0152] Specifically, in step S305, the basic service layer (specifically, the connection management module) of the master device may send information #3B to the access layer. This information #3B is used to request a logical channel from the access layer for the first service channel. Alternatively, it can be understood that this information #3B is used to instruct the establishment of an underlying logical link between the master device and the first slave device.
[0153] The information #3B may include an identifier of the first service channel, logical channel type indication information, quality of service QoS, device information of the first slave device, and the like.
[0154] The identifier TCID-s of the first service channel is used by the access layer to establish a mapping relationship between the first service channel and the logical channel.
[0155] The logical channel type indication information is used to indicate the type of the requested logical channel. Logical channel types can include unicast logical channels, multicast logical channels, and broadcast logical channels. In the embodiment of the present application, during the process of creating a multicast service channel, the logical channel type indication information is used to indicate that the requested logical channel is a multicast logical channel.
[0156] QoS is used at the access layer to select logical channels or configure related parameters of logical channels.
[0157] The device information of the first slave device is used to indicate the first slave device that establishes a logical link with the master device.
[0158] In some embodiments, the information #3B may only include the device information of the first slave device, but not necessarily the device information of other slave devices. In other embodiments, the information #3B may include the device information of the first slave device as well as the device information of other slave devices.
[0159] In other words, in step S305, information #3B may include the device information of a member receiving the multicast service, or may include the device information of all members receiving the multicast service (e.g., including a member list). For example, when the logical channel selected by the basic service layer of the master device corresponds to the SLB access technology, information #3B may include the device information of the first slave device. For another example, when the logical channel selected by the basic service layer of the master device corresponds to the SLE access technology, since SLE needs to allocate uplink physical resources to each slave device, information #3B needs to include the device information of all slave devices, such as Figure 3 In the example, information #3B needs to include device information of the first slave device and device information of the second slave device.
[0160] Whether information #3B includes a single member or a list of members depends on the selected access technology. The following section briefly introduces the support for multicast technology in SLB and SLE access technologies and does not elaborate on this topic.
[0161] In some embodiments, information #3B may also include additional parameters, such as dedicated bearer indication information. The dedicated bearer indication information is used to indicate whether the service channel exclusively occupies the logical channel. Here, the access layer can select the logical channel or configure related parameters of the logical channel based on the dedicated bearer indication information.
[0162] In step S305, the basic service layer of the master device applies for a logical channel from the access layer of the master device, which can be broadly understood as applying for a channel for transmitting data in the access layer for the first service channel. In an embodiment of the present application, the data sent by the master device to the slave device can be called downlink data, and the data sent by the slave device to the master device can be called uplink data. Specifically, the basic service layer can apply to the access layer for a logical channel group, and the logical channel group includes a logical channel for transmitting downlink data and a logical channel for transmitting uplink data. When there are multiple slave devices, the logical channel group includes a logical channel for transmitting downlink data, and multiple logical channels for transmitting uplink data. The master device sends multicast service data to multiple slave devices through the logical channel for transmitting downlink data, and receives data sent by the slave device through the logical channel for transmitting uplink data between the master device and each slave device. In some embodiments, the logical channel group can be collectively referred to as a multicast logical channel.
[0163] S306 : Establish a first logical channel and a second logical channel between the access layer of the master device and the access layer of the first slave device.
[0164] The first logical channel is used to transmit data sent by the master device to the first slave device, and the second logical channel is used to transmit data sent by the first slave device to the master device. In practice, the first logical channel is the logical channel used to transmit downlink data sent by the master device to each slave device. For ease of understanding, the identifier of the first logical channel can be LCID1, which is used to identify the first logical channel; the identifier of the second logical channel can be LCID2, which is used to identify the second logical channel.
[0165] In this step, the access layer of the master device can also establish a mapping relationship between the first service channel and the logical channel. Specifically, a mapping relationship exists between the first logical channel LCID1 and the first service channel TCID-s, allowing the first logical channel LCID1 to receive data from the first service channel TCID-s. A mapping relationship exists between the second logical channel LCID2 and the first service channel TCID-s, allowing the second logical channel LCID2 to send data to the first service channel TCID-s. Step S306 can be understood as establishing an underlying logical link between the master device and the first slave device.
[0166] S307 , the access layer of the master device feeds back to the basic service layer of the master device that the logical channel application is successful.
[0167] Specifically, in this step, the access layer of the master device may send information #3C to the basic service layer. This information #3C is used to indicate that the logical channel application is successful, and may also indicate that the mapping relationship between the first service channel, the first logical channel, and the second logical channel has been established. In fact, information #3C can be understood as indicating that the logical link between the master device and the first slave device is established.
[0168] This information #3C may include the identifier of the first service channel, the identifier of the first logical channel, the identifier of the second logical channel, and the device information of the first slave device. For example, the identifier of the first service channel is TCID-s. The identifiers of the first logical channel and the second logical channel are LCID1 and LCID2, respectively. The device information of the first slave device includes the device identifier and / or device address of the first slave device, hereinafter referred to as Ter-ID1.
[0169] After receiving the mapping relationship between the first service channel and the logical channel, the basic service layer of the master device considers that the underlying logical link is ready for transmission.
[0170] S308: The basic service layer of the master device sends a request to create a transmission channel to the basic service layer of the first slave device.
[0171] The Create Transmission Channel Request is used to notify the first slave device of the establishment of the mapping relationship between the first service channel on the master device and the first logical channel and the second logical channel. It is also used to instruct the first slave device to establish a second service channel. The second service channel is the service channel on the first slave device, used to receive multicast services sent from the master device via the first service channel.
[0172] Specifically, in this step, the basic service layer of the master device can send information #3D to the basic service layer of the first slave device. The information #3D is used to indicate that the master device has established a mapping relationship between the local service channel and the logical channel, and is also used to indicate that the first slave device has established a mapping relationship between the opposite service channel and the logical channel.
[0173] The information #3D may include the port information used by the first slave device, the identifier of the first service channel, the identifier of the first logical channel, and the identifier of the second logical channel. Exemplarily, the port information used by the first slave device includes the identifier P2 of the second port, the identifier of the first service channel is TCID-s, the identifier of the first logical channel is LCID1, and the identifier of the second logical channel is LCID2.
[0174] S309: The basic service layer of the first slave device generates an identifier of the second service channel.
[0175] Here, the second service channel is a service channel on the first slave device side. For the convenience of description, the identifier of the second service channel can be represented by TCID-d1.
[0176] After step S309 is completed, the first slave device can assume that the basic service layers of the two devices (the first slave device and the master device) have established a connection between the first service channel TCID-s and the second service channel TCID-d1, thus determining the mapping relationship between the first service channel TCID-s and the second service channel TCID-d1. The first slave device can also establish a mapping relationship between the second service channel and the logical channel, specifically, a mapping relationship between the second service channel TCID-d1 and the first logical channel LCID1, and a mapping relationship between the second service channel TCID-d1 and the second logical channel LCID2.
[0177] S310: The basic service layer of the first slave device sends the port information and service channel information of the first slave device to the basic application layer of the first slave device for port mapping.
[0178] Specifically, in this step, the basic service layer of the first slave device may send information #3E to the basic application layer, where the information #3E indicates the mapping relationship between the service channel and the port on the first slave device side. The basic application layer of the first slave device performs the second port mapping according to the information #3E.
[0179] The information #3E may include the identifier of the second port used by the first slave device and the identifier of the second service channel, so as to be used by the basic application layer of the first slave device to establish a mapping relationship between the second port and the second service channel. For example, the identifier of the second port is P2, and the identifier of the second service channel is TCID-d1.
[0180] S311 : The basic application layer of the first slave device feeds back to the basic service layer of the first slave device that the port mapping is successful.
[0181] S312: The basic service layer of the first slave device sends a transmission channel creation response to the basic service layer of the master device.
[0182] The create transmission channel response is used to notify the master device that the establishment of the second service channel on the first slave device side is complete.
[0183] Specifically, in this step, the basic service layer of the first slave device may send information #3F to the basic service layer of the master device, where the information #3F is used to indicate that the second service channel on the first slave device side is established and can be used to transmit service data.
[0184] The information #3F may include the identifier TCID-d1 of the second service channel. Optionally, the information #3F may also include the identifier LCID1 of the first logical channel and / or the identifier LCID2 of the second logical channel.
[0185] It should be noted that in step S308 and step S312, the data interacting between the basic service layer of the master device and the basic service layer of the first slave device can be transmitted through the control channel established between the master device and the first slave device. In addition, the signaling carried in step S308 corresponds to the signaling carried in step S312. For example, if the signaling is sent with a request of a certain identifier, the response should be replied with the same identifier. Exemplarily, the request to create a transmission channel sent in step S308 and the response to create a transmission channel sent in step S312 should carry the same identifier, so that the master device can determine that the signaling received in step S312 is a response to the request sent in step S308 based on the information of the identifier. It should be understood that Figure 3 The request signaling and response signaling involved in the illustrated embodiment and other embodiments described below are also subject to the above rules and will not be described in detail for the sake of brevity.
[0186] After step S312 is completed, the master device can consider that the basic service layer of the two electronic devices (the master device and the first slave device) has established a connection between the first business channel TCID-s and the second business channel TCID-d1, that is, it can determine and maintain the mapping relationship between the first business channel TCID-s and the second business channel TCID-d1.
[0187] S313: The basic service layer of the master device notifies the basic application layer of the master device that the service channel application is successful.
[0188] Specifically, in this step, the basic service layer of the master device may send information #3G to the basic application layer, where the information #3G is used to indicate a mapping relationship between the first service channel TCID-s of the master device and the first port P1.
[0189] The information #3G may include port information used by the master device, such as the first port identifier P1, the first service channel identifier TCID-s, device information of the first slave device, etc. The device information of the first slave device includes the device identifier and / or device address of the first slave device (represented by Ter-ID1).
[0190] At this point, the master device has successfully applied for a service channel for the first port P1 and the second port P2, that is, a channel for transmitting services has been established between the master device and the first slave device. The following mapping relationship is established between the channels of each layer of the master device and the first slave device:
[0191] A mapping relationship between the first port P1 and the first service channel TCID-s;
[0192] The mapping relationship between the first service channel TCID-s and the first logical channel LCID1;
[0193] The mapping relationship between the first service channel TCID-s and the second logical channel LCID2;
[0194] A mapping relationship between the second port P2 and the second service channel TCID-d1;
[0195] The mapping relationship between the second service channel TCID-d1 and the first logical channel LCID1;
[0196] The mapping relationship between the second service channel TCID-d1 and the second logical channel LCID2;
[0197] A mapping relationship between the first port P1 and the second port P2;
[0198] The mapping relationship between the first service channel TCID-s and the second service channel TCID-d1.
[0199] It should be noted that the first logical channel LCID1 and the second logical channel LCID2 belong to the same logical channel group.
[0200] S314: The basic service layer of the master device determines that the first slave device is ready.
[0201] In other words, the basic service layer of the master device determines that the data path between the master device and the first slave device is established.
[0202] This step S314 is an optional step. In actual applications, the basic service layer of the master device can determine that the first slave device is ready when it receives the transmission channel creation response sent in step S312 or when it feeds back the successful service channel application to the basic application layer.
[0203] Next, the master device can establish a data path with the second slave device.
[0204] S315: The basic service layer of the master device applies to the access layer of the master device for reconfiguration of the logical channel.
[0205] In this step, the basic service layer of the master device requests the access layer to reconfigure the logical channel group requested in step S307. Since a logical channel has already been successfully established between the master device and the first slave device in step S307, when a new member joins the multicast, the master device also needs to establish a logical channel with the new member. This changes the multicast members corresponding to the logical channel group, necessitating reconfiguration of the logical channel group.
[0206] Specifically, in step S315, the basic service layer (specifically, the connection management module) of the master device may send a message #3H to the access layer, requesting the access layer to reconfigure the logical channel. Alternatively, it can be understood that the message #3H is used to instruct the establishment of an underlying logical link between the master device and the second slave device.
[0207] The information #3H may include at least one of the identifier TCID-s of the first service channel and the identifier LCID1 of the first logical channel, device information of the second slave device, and the like.
[0208] The identifier of the first service channel and / or the identifier of the first logical channel is used to indicate the reconfigured logical channel group.
[0209] The device information of the second slave device is used to indicate the second slave device that establishes a logical link with the master device. The device information of the second slave device may include a device identification and / or a device address of the second slave device, hereinafter represented by Ter-ID2.
[0210] In some embodiments, information #3H may include only the device information of the second slave device, and need not include the device information of other slave devices. In other embodiments, information #3H may include not only the device information of the second slave device, but also the device information of other slave devices. In other words, information #3H may include the device information of a member receiving the multicast service, or may include the device information of all members receiving the multicast service (e.g., including a member list).
[0211] S316 , establishing a first logical channel and a third logical channel between the access layer of the master device and the access layer of the second slave device.
[0212] The first logical channel LCID1 is used to transmit data sent from the master device to the second slave device, and the third logical channel is used to transmit data sent from the second slave device to the master device. For ease of understanding, the identifier of the third logical channel can be LCID3, which is used to identify the third logical channel.
[0213] In step S306, the access layer of the master device has already established a mapping relationship between the first logical channel LCID1 and the first service channel TCID-s. Therefore, in step S316, the access layer of the master device can also establish a mapping relationship between the third logical channel LCID3 and the first service channel TCID-s. The third logical channel LCID3 can send data to the first service channel TCID-s.
[0214] This step can be understood as establishing an underlying logical link between the master device and the second slave device.
[0215] S317: The access layer of the master device feeds back to the basic service layer of the master device that the logical channel reconfiguration is successful.
[0216] Specifically, in this step, the access layer of the master device can send information #3J to the basic service layer. This information #3J is used to indicate that the logical channel reconfiguration is successful, that is, to indicate that the mapping relationship between the first service channel, the first logical channel, and the third logical channel has been established. In fact, it can be understood that information #3J is used to indicate that the logical link between the master device and the second slave device is established.
[0217] The information #3J may include an identifier of the first service channel, an identifier of the first logical channel, an identifier of the third logical channel, and device information of the second slave device. For example, the identifier of the first service channel is TCID-s. The identifiers of the first logical channel and the third logical channel are LCID1 and LCID3, respectively. The device information of the second slave device includes a device identifier and / or a device address (represented by Ter-ID2) of the second slave device.
[0218] After receiving the information #3J, the basic service layer of the master device considers that the underlying logical link between the master device and the second slave device is ready for transmission.
[0219] S318: The basic service layer of the master device sends a request to create a transmission channel to the basic service layer of the second slave device.
[0220] The Create Transmission Channel Request is used to notify the second slave device of the establishment of the mapping relationship between the first service channel on the master device and the first and second logical channels. It is also used to instruct the second slave device to establish a third service channel. The third service channel is a service channel on the second slave device that is used to receive multicast services sent from the master device via the first service channel.
[0221] Specifically, in this step, the basic service layer of the master device can send information #3K to the basic service layer of the second slave device. The information #3K is used to indicate that the master device has established a mapping relationship between the local service channel and the logical channel, and is also used to indicate that the second slave device has established a mapping relationship between the opposite service channel and the logical channel.
[0222] The information #3K may include the port information used by the second slave device, the identifier of the first service channel, the identifier of the first logical channel, and the identifier of the third logical channel. Exemplarily, the port information used by the second slave device includes the identifier P3 of the third port, the identifier of the first service channel is TCID-s, the identifier of the first logical channel is LCID1, and the identifier of the second logical channel is LCID3.
[0223] S319: The basic service layer of the second slave device generates an identifier of the third service channel.
[0224] Here, the third service channel is a service channel on the second slave device side. For the convenience of description, the identifier of the third service channel can be represented by TCID-d2.
[0225] After step S319 is completed, the second slave device can assume that the basic service layers of the two devices (the second slave device and the master device) have established a connection between the first service channel TCID-s and the third service channel TCID-d2, thus determining the mapping relationship between the first service channel TCID-s and the third service channel TCID-d2. The second slave device can also establish a mapping relationship between the third service channel and the logical channel, specifically, a mapping relationship between the third service channel TCID-d2 and the first logical channel LCID1, and a mapping relationship between the third service channel TCID-d2 and the third logical channel LCID3.
[0226] S320: The basic service layer of the second slave device sends the port information and service channel information of the second slave device to the basic application layer of the second slave device for port mapping.
[0227] Specifically, in this step, the basic service layer of the second slave device may send information #3L to the basic application layer, where the information #3L indicates the mapping relationship between the service channel and the port on the second slave device side. The basic application layer of the second slave device performs the third port mapping according to the information #3L.
[0228] The information #3L may include an identifier of the third port and an identifier of the third service channel used by the second slave device, so as to establish a mapping relationship between the third port and the third service channel at the basic application layer of the second slave device. For example, the identifier of the third port is P3, and the identifier of the third service channel is TCID-d2.
[0229] S321: The basic application layer of the second slave device feeds back to the basic service layer of the second slave device that the port mapping is successful.
[0230] S322: The basic service layer of the second slave device sends a create transmission channel response to the basic service layer of the master device.
[0231] The create transmission channel response is used to notify the master device that the establishment of the third service channel on the second slave device side is complete.
[0232] Specifically, in this step, the basic service layer of the second slave device may send information #3M to the basic service layer of the master device, where the information #3M is used to indicate that the third service channel on the second slave device side is established and can be used to transmit service data.
[0233] The information #3M may include the identifier TCID-d2 of the third service channel. Optionally, the information #3M may also include the identifier LCID1 of the first logical channel and / or the identifier LCID3 of the third logical channel.
[0234] It should be noted that in step S318 and step S322, the data exchanged between the basic service layer of the master device and the basic service layer of the second slave device can be transmitted through the control channel established between the master device and the second slave device.
[0235] After step S322 is completed, the master device can assume that the basic service layer of the two electronic devices (the master device and the second slave device) has established a connection between the first business channel TCID-s and the third business channel TCID-d2, that is, it can determine and maintain the mapping relationship between the first business channel TCID-s and the third business channel TCID-d2.
[0236] S323 , the basic service layer of the master device notifies the basic application layer of the master device that the service channel reconfiguration is successful.
[0237] Specifically, in this step, the basic service layer of the master device may send information #3N to the basic application layer, where the information #3N is used to indicate that the first service channel of the master device is successfully reconfigured.
[0238] Since the first service channel has been successfully applied for in step S131, when a new member joins the multicast, the multicast member corresponding to the first service channel changes, so the first service channel needs to be reconfigured.
[0239] The information #3N may include the port information used by the master device, such as the first port identifier P1, the first service channel identifier TCID-s, the device information of the second slave device, etc. The device information of the second slave device includes the device identifier and / or device address of the second slave device (represented by Ter-ID2).
[0240] At this point, the master device has successfully established a service transmission channel between the master device and the second slave device by reconfiguring the first service channel. The following mapping relationship is established between the channels of each layer of the master device and the second slave device:
[0241] A mapping relationship between the first port P1 and the first service channel TCID-s;
[0242] The mapping relationship between the first service channel TCID-s and the first logical channel LCID1;
[0243] The mapping relationship between the first service channel TCID-s and the third logical channel LCID3;
[0244] A mapping relationship between the third port P3 and the third service channel TCID-d2;
[0245] The mapping relationship between the third service channel TCID-d2 and the first logical channel LCID1;
[0246] The mapping relationship between the third service channel TCID-d2 and the third logical channel LCID3;
[0247] A mapping relationship between the first port P1 and the third port P3;
[0248] The mapping relationship between the first service channel TCID-s and the third service channel TCID-d2.
[0249] It should be noted that during the interaction between the master device and the first slave device, a mapping relationship between the first port P1 and the first service channel TCID-s and a mapping relationship between the first service channel TCID-s and the first logical channel LCID1 have been established. This is emphasized again here to reflect the path for data transmission between the master device and the second slave device.
[0250] Furthermore, the first logical channel LCID1, the second logical channel LCID2, and the third logical channel LCID3 all belong to the same logical channel group, which is used to provide services for the first service channel TCID-s. In this embodiment of the present application, during the process of establishing a data path between the master device and the first slave device, for example, in step S306, the master device's access layer has already generated the logical channel group and allocated transmission resources for the logical channel group. The logical channels established between the master device and each slave device are centrally scheduled by the master device's access layer.
[0251] S324: The basic service layer of the master device determines that the second slave device is ready.
[0252] In other words, the basic service layer of the master device determines that the data path between the master device and the second slave device is established.
[0253] This step S324 is an optional step. In actual application, the basic service layer of the master device can determine that the second slave device is ready when it receives the creation transmission channel response sent in step S322 or when it feeds back to the basic application layer that the service channel reconfiguration is successful.
[0254] This embodiment of the present application only uses the example of a master device establishing a service channel with two slave devices. If other slave devices have established data channels with the master device, the master device can then establish data channels with the other slave devices. The steps are similar to steps S315-S324 and are not further described for brevity.
[0255] As mentioned above, the multicast service channel is the channel for transmitting multicast services. Figure 3In the example, multicast service channels can include a first service channel TCID-s, a second service channel TCID-d1, and a third service channel TCID-d2. That is, the service channels established between the master device and multiple slave devices are collectively referred to as multicast service channels. The channels used to transmit multicast services between the master device and the first slave device include the first service channel TCID-s and the second service channel TCID-d1; the channels used to transmit multicast services between the master device and the second slave device include the first service channel TCID-s and the third service channel TCID-d2.
[0256] The multicast logical channel is used to provide the underlying transmission for the multicast service channel. Figure 3 In the example, the multicast logical channel includes a first logical channel LCID1, a second logical channel LCID2 and a third logical channel LCID3, wherein the first logical channel LCID1 is used to transmit downlink data sent by the master device to each slave device, and the second logical channel LCID2 and the third logical channel LCID3 are respectively used to transmit uplink data sent by the slave device to the master device.
[0257] It should be noted that in Figure 3 In the example of FIG, the logical channel group (or multicast logical channel) involved in step S306 and step S316 is a newly created logical channel.
[0258] In other embodiments, the access layer of the master device may also choose to directly reuse the existing multicast logical channel. For example, when the multicast members corresponding to the existing multicast logical channel are the same as the multicast members corresponding to the newly applied service channel (i.e., the first service channel), and the QoS capability of the existing multicast logical channel can meet the requirements of the newly applied service channel, the existing multicast logical channel may be directly reused in step S306. When establishing a data path between the master device and subsequent slave devices, the execution of Figure 3 Steps S315 to S317 are shown.
[0259] In other embodiments, the access layer of the master device may also choose to reconfigure the existing multicast logical channel and then reuse the reconfigured multicast logical channel. For example, when the multicast members corresponding to the existing multicast logical channel are the same as the multicast members corresponding to the newly applied service channel, but the QoS capability of the existing multicast logical channel cannot meet the requirements of the newly applied service channel, the existing multicast logical channel can be reconfigured so that its QoS capability meets the requirements, and then the reconfigured multicast logical channel can be reused. Similarly, when establishing a data path between the master device and subsequent slave devices, the execution of Figure 3 Steps S315 to S317 are shown.
[0260] It should be understood that, in specific implementations, the access layer of the master device may select a solution to establish the underlying logical link based on the transmission conditions. Furthermore, the aforementioned solutions and applicable scenarios are merely exemplary. In other embodiments, the access layer may select other solutions when establishing the underlying logical link. The aforementioned solutions may also be applicable in other scenarios, which are not described here one by one.
[0261] In some embodiments, before executing step S306 or S316 , the basic service layer of the master device may negotiate channel parameters with the basic service layer of the corresponding slave device.
[0262] Specifically, the master device's basic service layer can send a channel parameter negotiation request to the slave device's basic service layer. In response, the slave device's basic service layer can send a channel parameter negotiation response to the master device's basic service layer. Channel parameter negotiation is performed through this interactive process. During the negotiation process, information that the master and slave devices need to exchange can be transmitted over the control channel.
[0263] Figure 4 A schematic diagram of a process for creating a multicast service channel provided in another embodiment of the present application is shown.
[0264] Figure 4 The method 400 shown is similar to the method 300, except that the execution order of some steps is different, or some steps are merged. Only the differences are described in detail below. For other parts not described in detail, please refer to the relevant description of method 300.
[0265] S401: The basic application layer of the master device performs port negotiation with the basic application layer of the first slave device.
[0266] S402: The basic application layer of the master device performs port negotiation with the basic application layer of the second slave device.
[0267] S403: The basic application layer of the master device applies for a service channel from the basic service layer of the master device.
[0268] S404: The basic service layer of the master device generates an identifier of the first service channel.
[0269] Steps S401-S404 are the same as steps S301-S304 in method 300, and the message #4A sent in step S403 is similar to the message #3A sent in method 300. For detailed descriptions of each step and the content of message #4A, please refer to the relevant description of method 300 and will not be repeated here for the sake of brevity.
[0270] S405: The basic service layer of the master device applies for a logical channel from the access layer of the master device.
[0271] Specifically, in step S405, the basic service layer (specifically, the connection management module) of the master device may send information #4B to the access layer. This information #4B is used to request a logical channel from the access layer for the first service channel. Alternatively, it can be understood that this information #4B is used to instruct the master device to establish a bottom-level logical link with each slave device.
[0272] The information #4B may include the identifier TCID-s of the first service channel, device information of each slave device (such as a member list), etc. Figure 4 In the example of , the device information of each slave device includes the device information Ter-ID1 of the first slave device and the device information Ter-ID2 of the second slave device.
[0273] The information #4B may also include logical channel type indication information, quality of service (QoS), etc. For a description of the specific information, please refer to the description of the information #3B.
[0274] S406 , establishing a first logical channel LCID1 and a second logical channel LCID2 between the access layer of the master device and the access layer of the first slave device.
[0275] This step is similar to step S306 in method 300 and is used to establish an underlying logical link between the master device and the first slave device. For the description of step S406, reference can be made to the relevant description of step S306, which will not be repeated here for brevity.
[0276] S407 , establishing a first logical channel LCID1 and a third logical channel LCID3 between the access layer of the master device and the access layer of the second slave device.
[0277] This step is used to establish the underlying logical link between the master device and the second slave device. This step S407 is similar to step S316 in method 300. For details, please refer to the relevant description of step S316. For the sake of brevity, it will not be repeated here.
[0278] It is understandable that if there are other slave devices connected to the master device to transmit multicast services, the master device will perform steps similar to step S407 to add the logical channels established between the master device and other slave devices to the logical channel group.
[0279] Step S406 and step S407 may be performed sequentially or simultaneously, which is not limited in the embodiment of the present application.
[0280] S408: The access layer of the master device feeds back to the basic service layer of the master device that the logical channel application is successful.
[0281] Specifically, in this step, the access layer of the master device can send information #4C to the basic service layer. This information #C is used to indicate that the logical channel application is successful, and can also indicate that the mapping relationship between the first service channel and the first logical channel LCID1, the second logical channel LCID2, and the third logical channel LCID3 has been established. In fact, information #4C can be understood as indicating that the logical link between the master device and the first slave device and the logical link between the master device and the second slave device have been established.
[0282] The information #4C may include the identifier of the first service channel, the identifier of the multicast logical channel, and device information of each slave device to which a connection has been established.
[0283] Illustratively, the identifier of the first service channel is TCID-s. The identifiers of the multicast logical channels include the identifier LCID1 of the first logical channel, the identifier LCID2 of the second logical channel, and the identifier LCID3 of the third logical channel. The slave devices that have established a connection with the master device include a first slave device and a second slave device. Therefore, the device information of the slave devices may include the device identifier and / or device address Ter-ID1 of the first slave device, and the device identifier and / or device address Ter-ID2 of the second slave device.
[0284] After receiving the information #4C, the basic service layer of the master device considers that the underlying logical link is ready for transmission.
[0285] S409: The basic service layer of the master device sends a request to create a transmission channel to the basic service layer of the first slave device.
[0286] The transmission channel creation request is used to instruct the first slave device to establish a second service channel.
[0287] S410: The basic service layer of the first slave device generates an identifier TCID-d1 of a second service channel.
[0288] S411 : The basic service layer of the first slave device sends the port information and service channel information of the first slave device to the basic application layer of the first slave device for port mapping.
[0289] S412: The basic application layer of the first slave device feeds back to the basic service layer of the first slave device that the port mapping is successful.
[0290] S413: The basic service layer of the first slave device sends a transmission channel creation response to the basic service layer of the master device.
[0291] The create transmission channel response is used to indicate that the second service channel on the first slave device side is established completely and can be used to transmit service data.
[0292] S414 , the basic service layer of the master device notifies the basic application layer of the master device that the service channel application is successful.
[0293] Steps S409-S414 are the same as steps S308-S313 in method 300. The information #4D, #4E, #4F, and #4G involved therein are similar to the information #3D, #3E, #3F, and #3G involved in method 300, respectively. For detailed descriptions of each step and the content of each information, refer to the relevant description of method 300 and are not repeated here for the sake of brevity.
[0294] S415 , the basic service layer of the master device sends a request to create a transmission channel to the basic service layer of the second slave device.
[0295] The transmission channel creation request is used to instruct the second slave device to establish a third service channel.
[0296] S416: The basic service layer of the second slave device generates an identifier TCID-d2 of the third service channel.
[0297] S417 , the basic service layer of the second slave device sends the port information and service channel information of the second slave device to the basic application layer of the second slave device for port mapping.
[0298] S418: The basic application layer of the second slave device feeds back to the basic service layer of the second slave device that the port mapping is successful.
[0299] S419: The basic service layer of the second slave device sends a create transmission channel response to the basic service layer of the master device.
[0300] The create transmission channel response is used to indicate that the second service channel on the second slave device side is established completely and can be used to transmit service data.
[0301] S420 , the basic service layer of the master device notifies the basic application layer of the master device that the service channel reconfiguration is successful.
[0302] Steps S415-S420 are the same as steps S318-S323 in method 300. The information #4K, #4L, #4M, and #4N involved therein are similar to the information #3K, #3L, #3M, and #3N involved in method 300, respectively. For detailed descriptions of each step and the content of each information, please refer to the relevant description of method 300 and will not be repeated here for the sake of brevity.
[0303] In summary, method 400 differs from method 300 in that, after the master device's access layer receives an instruction to apply for a logical channel (i.e., after executing step S405), it establishes an underlying logical link with each slave device. After the master device establishes logical links with all slave devices to be connected, the master device's basic service layer establishes a service channel for transmitting multicast services with each slave device, i.e., establishes a multicast service channel.
[0304] In the embodiment of the present application, steps S409-S413 describe the process of establishing a multicast service channel between the master device and the first slave device, and each step has a sequential order. Steps S415-S419 describe the process of establishing a multicast service channel between the master device and the second slave device, and each step has a sequential order. However, the process of establishing a multicast service channel between the master device and the first slave device and the process of establishing a multicast service channel between the master device and the second slave device can be relatively independent. The master device can establish a multicast service channel with each slave device in sequence, or it can establish a multicast service channel with multiple slave devices simultaneously. This embodiment of the present application does not limit this.
[0305] In some embodiments, the basic service layer of the master device may send feedback to the basic application layer of the master device after receiving a create transmission channel response from the slave device, for example Figure 3 Steps S313 and S323 shown, and Figure 4 Steps S414 and S420 are shown.
[0306] In other embodiments, the basic service layer of the master device may also uniformly feedback the successful service channel application to the basic application layer of the master device after receiving the transmission channel creation response from all multicast members. Figure 3 Step S313 and step S323 shown in FIG. 3 can be combined into one step and executed after step S322; or Figure 4 Steps S414 and S420 shown can be combined into one step and executed after step S419. The information fed back by the basic service layer of the master device may include the port information used by the master device, the identifier of the first service channel, and the device information of each slave device. For example, the port information used by the master device includes the identifier P1 of the first port, the identifier of the first service channel is TCID-s, and the device information of the slave devices may include the device identifier and / or device address of the first slave device, and the device identifier and / or device address of the second slave device.
[0307] In other embodiments, the basic service layer of the master device may further uniformly send feedback to the basic application layer of the master device after a preset time has elapsed. The feedback information indicates that the multicast service channel between the master device and some of the slave devices has been successfully established. After the preset time has elapsed, the basic service layer of the master device sends feedback to the basic application layer of the master device after each transmission channel creation response received from a slave device. The feedback information indicates that the multicast service channel between the master device and the slave device has been successfully established.
[0308] implement Figure 3 The method 300 shown or Figure 4 After the method 400 shown, the master device can establish a multicast service channel with at least one slave device. Specifically, the master device is responsible for establishing the service channel of the sender (for example, the first service channel) and spreading the service channel information through broadcast messages. The slave device is responsible for receiving the service channel information of the sender and establishing the service channel of the receiver (for example, the second service channel and the third service channel) based on the information. The master device can send service data through the first service channel, and the first slave device and the second slave device receive service data through the second service channel and the third service channel respectively, so that a one-to-many multicast service can be performed. For ease of understanding, Figure 5 A schematic diagram showing the mapping relationship between channels of various devices and the data transmission path.
[0309] like Figure 5 As shown, the master device may include a host A and a controller A, wherein a first service channel TCID-s is established in the basic service layer of the host A.
[0310] The first slave device may include a host B1 and a controller B1 , wherein a second service channel TCID-d1 is established in the basic service layer of the host B1 .
[0311] The second slave device may include a host B2 (Host B2) and a controller B2 (Controller B2), wherein a third service channel TCID-d2 is established in the basic service layer of the host B2.
[0312] A multicast logical channel is established between the master device and the first slave device and the second slave device. The multicast logical channel includes a first logical channel LCID1, a second logical channel LCID2, and a third logical channel LCID3.
[0313] The mapping relationships maintained on the master device include:
[0314] The mapping relationship between the first service channel and the first logical channel (i.e., TCID-s and LCID1);
[0315] The mapping relationship between the first service channel and the second logical channel (i.e., TCID-s and LCID2);
[0316] The mapping relationship between the first service channel and the third logical channel (i.e., TCID-s and LCID3);
[0317] The mapping relationship between the first service channel and the second service channel (i.e., TCID-s and TCID-d1);
[0318] The mapping relationship between the first service channel and the third service channel (ie, TCID-s and TCID-d2).
[0319] The mapping relationships maintained by the first slave device include:
[0320] The mapping relationship between the second service channel and the first logical channel (i.e., TCID-d1 and LCID1);
[0321] The mapping relationship between the second service channel and the second logical channel (i.e., TCID-d1 and LCID2);
[0322] The mapping relationship between the second service channel and the first service channel (ie, TCID-d1 and TCID-s).
[0323] The mapping relationships maintained by the second slave device include:
[0324] The mapping relationship between the third service channel and the first logical channel (i.e., TCID-d2 and LCID1);
[0325] The mapping relationship between the third service channel and the third logical channel (i.e., TCID-d2 and LCID3);
[0326] The mapping relationship between the third service channel and the first service channel (ie, TCID-d2 and TCID-s).
[0327] When performing a multicast service, the master device, as the sender, transmits service data to the first slave device and the second slave device through the first service channel TCID-s and the first logical channel LCID1. The first slave device and the second slave device, as the receiver, receive the multicast service data sent by the master device from the first logical channel LCID1 through the second service channel TCID-d1 and the third service channel TCID-d2 respectively. The data transmission path is as follows: Figure 5 Shown as solid line with arrow.
[0328] When the first slave device needs to send data to the master device, the first slave device transmits the data to the master device through the second service channel TCID-d1 and the second logical channel LCID2. The master device receives the data sent by the first slave device from the second logical channel LCID2 through the first service channel TCID-s.
[0329] Similarly, when the second slave device needs to send data to the master device, the second slave device transmits the data to the master device via the third service channel TCID-d2 and the third logical channel LCID3. The master device receives the data sent by the second slave device via the first service channel TCID-s from the third logical channel LCID3.
[0330] Since different slave devices use different identifiers for the logical channels used to transmit uplink data, the master device can distinguish which slave device the data is received from based on the identifier of the logical channel. Figure 5 Shown as dashed line with arrow.
[0331] In the technical solution provided by the embodiments of the present application, a master device can establish data paths with multiple slave devices. When performing multicast services, the master device only needs to send a copy of the service data, and the slave devices will each receive it, thereby realizing a one-to-many multicast service. The master device does not need to send data to each slave device separately, nor does it require intermediate nodes to forward it, avoiding the problem of the master device having to send the same data multiple times to multiple slave devices. In addition, after the master device sends data, the slave device can feedback an ACK, or it can send uplink data to the master device.
[0332] It should be noted that Figures 3 to 5 In the example, the access layer between the master device and each slave device establishes a logical channel for transmitting uplink data, allowing the slave device to send data to the master device. In other embodiments, if the slave device does not need to send data to the master device, a logical channel for transmitting downlink data may be established between the master device and the slave device.
[0333] In the embodiment of the present application, the access layers of the master device, the first slave device, and the second slave device can all support multiple access technologies, such as SLB access technology and SLE access technology. When the master device performs multicast services on multiple slave devices, the user does not need to select or specify which access technology to use for service transmission. Instead, after the basic application layer of the master device issues the service requirements, the basic service layer of the master device selects the underlying access technology based on the service requirements and establishes a service channel for transmission. In the embodiment of the present application, the access layers of the master device and the slave devices support multicast technology in order to enable the master device to perform multicast services with multiple slave devices. The following is combined with Figure 6 This section briefly introduces the support that SLE and SLB access technologies provide for multicast technology.
[0334] 1) SLE multicast
[0335] like Figure 6 As shown, a master device (the access layer can be called G node) and two slave devices (the first slave device and the second slave device, the access layer can be called T1 node and T2 node) perform multicast as an example. Figure 6 The horizontal axis represents the timeline, and different rows on the vertical axis represent data packets on different links (the first row represents data packets sent between node G and node T1, the second row represents data packets sent between node G and node T2, and the third row represents data packets sent between node G and nodes T1 and T2). The last row represents the data packets finally aggregated and sent on the air interface.
[0336] Figure 6 In the figure, there are four superframes (a superframe is the periodic transmission unit of SLE) from left to right in chronological order. In each superframe, a square represents a data packet. A square with the superscript G indicates a data packet sent by node G, a square with the superscript T1 indicates a data packet sent by node T1, a square with the superscript T2 indicates a data packet sent by node T2, and a square with the superscript C (e.g., C, C1, C2, C12) indicates a scheduled packet.
[0337] Figure 6 In the figure, the link corresponding to the first row represents the logical channel corresponding to the control channel pre-established between the G node and the T1 node. The link corresponding to the second row represents the logical channel corresponding to the control channel pre-established between the G node and the T2 node. On this basis, the link corresponding to the third row represents the logical channel corresponding to the multicast service channel established between the G node and the T1 node and the T2 node.
[0338] Referring to superframe 1, the multicast service transmission channel between node G and nodes T1 and T2 has not yet been established. Node G, T1, and T2 are exchanging information on the control channel to establish multicast link information. Referring to superframe 2, the multicast service transmission channel between node G and T1 has been established, but the multicast service transmission channel between node G and T2 has not yet been established. Node G sends multicast service data, and node T1 can successfully receive and reply to the data packets, but node T2 cannot receive the multicast service data packets. Referring to superframes 3 and 4, the multicast service transmission channels between node G and nodes T1 and T2 have been established. Node G sends multicast service data, and both nodes T1 and T2 can successfully receive and reply to the data packets.
[0339] During the specific transmission process, data packets between different transmission events will perform frequency hopping. The specific frequency hopping frequency is indicated by the information carried in the access signaling (such as ChannelMap) during the access process, and can be updated through scheduling packet signaling after access.
[0340] 2) SLB multicast
[0341] Data transmission in SLB is based on scheduling. Specifically, the G node can send control information to the T node to indicate whether the T node needs to receive data or whether to schedule the T node to send data. The T node will blindly detect the control information sent by the G node. When the blind detection indicates that the control information belongs to it, it will receive or send data based on the control information sent by the G node. The control information sent by the G node may include wireless resource information, coding information, and other information to instruct the T node to receive data or schedule the T node to send data.
[0342] The control information sent by the G node will be scrambled with the physical layer identifier. Only the T node with the corresponding physical layer identifier can blindly detect the corresponding control information. If a multicast service is being carried out, all receivers in the group will be assigned the same multicast physical layer identifier, so that all devices in the group can blindly detect the multicast control information.
[0343] Combined with the above Figure 3-5 The process of establishing a multicast service channel between the master device and at least one slave device is described. During the multicast process between the master device and the at least one device, new multicast members may join or leave the multicast. Figure 7 and Figure 8 Describe the process of members joining and leaving a multicast session.
[0344] Figure 7 A schematic diagram of a process for a member device to join a multicast according to an embodiment of the present application is shown, specifically involving a process for establishing a channel for transmitting multicast services between a master device and a new member when a member joins a multicast.
[0345] Figure 7 Taking the new member device as the third slave device as an example, the implementation of this process involves the master device and the third slave device. The master device is an example of the first electronic device, which has established a channel for transmitting multicast services with the first slave device and the second slave device. The third slave device is another example of the second electronic device, which serves as a new receiver of the multicast service. The third slave device also has Figure 2 The protocol architecture 200 shown includes a basic application layer, a basic service layer and an access layer.
[0346] When a master device is performing multicast with at least one slave device, and a new slave device (such as a third slave device) joins the multicast, for example, a user first uses one headset to make a call and then puts on a second headset, or a user uses two headsets to make a call and then joins a conference call with another pair of headsets, the master device and the new slave device (such as the third slave device) can perform the following multicasting operations: Figure 7 The process shown. Figure 7 The method 700 shown includes steps S701 to S713 , and each step is described in detail below with reference to the accompanying drawings.
[0347] S701: The basic application layer of the master device performs port negotiation with the basic application layer of the third slave device.
[0348] In this step, the data involved in the negotiation process may be transmitted through the default service channel established between the master device and the third slave device.
[0349] In some embodiments, in step S701, the basic application layer of the master device and the basic application layer of the third slave device may further perform service negotiation and QoS negotiation. The negotiation process in this step is similar to steps S301 and S302 in method 300 and steps S401 and S402 in method 400. For details, please refer to the relevant description of method 300 or 400. For the sake of brevity, it is not repeated here.
[0350] For example, the negotiation result between the master device and the third slave device may be that the master device uses the first port (P1) and the third slave device uses the fourth port (e.g., represented by port4 (abbreviated as P4)). Accordingly, the first port P1 and the fourth port P4 have a mapping relationship, and the basic application layer of the master device and the basic application layer of the third slave device need to maintain the mapping relationship between the first port and the fourth port.
[0351] S702: The basic application layer of the master device applies to the basic service layer of the master device for reconfiguring the service channel.
[0352] The master device's basic application layer needs to request service channels from the connection management module in the basic service layer for the first and fourth ports. In this embodiment of the present application, after joining an existing multicast, the third slave device also needs to receive multicast service data from the first service channel TCID-s. Therefore, the multicast member corresponding to the first service channel TCID-s changes. This step is the master device's basic application layer requesting the basic service layer to reconfigure the first service channel. Step S702 can also be understood as the master device's basic application layer notifying the master device's basic service layer of the addition of a new service recipient.
[0353] Specifically, in step S702, the basic application layer of the master device may send message #7A to the connection management module. Message #7A is used to request the connection management module in the basic service layer to reconfigure the first service channel. Alternatively, message #7A can be understood as instructing the master device to establish a channel for transmitting the multicast service between the master device and the third slave device based on the existing multicast service.
[0354] The information #7A may include the identifier of the first service channel TCID-s, device information of the third slave device, port information of the third slave device such as the identifier of the fourth port P4, etc. The device information of the third slave device includes the device identifier and / or device address of the third slave device, hereinafter represented by Ter-ID3.
[0355] Optionally, the information #7A may also include QoS parameters for indicating the requirements of the multicast service for the service channel.
[0356] S703: The basic service layer of the master device applies to the access layer of the master device for reconfiguration of the logical channel.
[0357] Specifically, in this step, the master device's basic service layer (specifically, the connection management module) can send message #7B to the access layer. This message #7B is used to request the access layer to reconfigure the logical channel. Since a multicast logical channel (i.e., the aforementioned logical channel group) has already been successfully applied for the first service channel prior to method 700, when a new member joins the multicast, the multicast members corresponding to the multicast logical channel change, necessitating reconfiguration of the multicast logical channel. This message #7B can also be understood as instructing the establishment of an underlying logical link between the master device and the third slave device.
[0358] The information #7B may include at least one of the first service channel identifier TCID-s and the first logical channel identifier LCID1, device information of the third slave device, etc. The device information of the third slave device includes the device identifier and / or device address Ter-ID3 of the third slave device.
[0359] In this step, information #7B includes the identifier TCID-s of the first service channel and / or the identifier LCID1 of the first logical channel. The access layer of the main device can determine which logical channel group to be reconfigured based on the identifier TCID-s of the first service channel and / or the identifier LCID1 of the first logical channel.
[0360] Optionally, the information #7A may also include quality of service (QoS).
[0361] S704: Establish a first logical channel and a fourth logical channel between the access layer of the master device and the access layer of the third slave device.
[0362] The first logical channel LCID1 is used to transmit data sent from the master device to the third slave device, and the fourth logical channel is used to transmit data sent from the third slave device to the master device. For ease of understanding, the identifier of the fourth logical channel can be LCID4, which is used to identify the fourth logical channel.
[0363] exist Figure 3 In the illustrated method 300, the access layer of the master device has already established a mapping relationship between the first logical channel LCID1 and the first service channel TCID-s. Therefore, in step S704, the access layer of the master device may also establish a mapping relationship between the fourth logical channel LCID4 and the first service channel TCID-s. The fourth logical channel LCID4 may send data to the first service channel TCID-s.
[0364] Step S704 can be understood as a process in which the master device and the third slave device establish a logical link between the master device and the third slave device based on the already applied multicast logical channel.
[0365] S705 : The access layer of the master device feeds back to the basic service layer of the master device that the logical channel reconfiguration is successful.
[0366] Specifically, in this step, the access layer of the master device may send information #7C to the basic service layer, where the information #7C is used to indicate that the logical channel reconfiguration is successful. In fact, the information #7C is used to indicate that the logical link between the master device and the third slave device is established.
[0367] The information #7C may include the identifier of the first service channel TCID-s, the identifier of the first logical channel LCID1, the identifier of the fourth logical channel LCID4, and the device information of the third slave device. The device information of the third slave device includes the device identifier and / or device address Ter-ID3 of the third slave device.
[0368] After receiving the information #7C, the basic service layer of the master device considers that the underlying logical link between the master device and the third slave device is ready for transmission.
[0369] S706: The basic service layer of the master device sends a request to create a transmission channel to the basic service layer of the third slave device.
[0370] The transmission channel creation request is used to instruct the third slave device to establish a fourth service channel. The fourth service channel is a service channel on the third slave device side, and is used to receive the multicast service sent from the master device through the first service channel.
[0371] Specifically, in this step, the basic service layer of the master device may send information #7D to the basic service layer of the third slave device, where the information #7D is used to instruct the third slave device to establish a mapping relationship between the service channel and the logical channel.
[0372] This information #7D may include the port information used by the third slave device, the identifier of the first service channel, the identifier of the first logical channel, and the identifier of the fourth logical channel. For example, the port information used by the third slave device includes the identifier P4 of the fourth port. The identifier of the first service channel is TCID-s. The identifier of the first logical channel is LCID1, and the identifier of the fourth logical channel is LCID4.
[0373] S707: The basic service layer of the third slave device generates an identifier of a fourth service channel.
[0374] Here, the fourth service channel is a service channel on the third slave device side. For the convenience of description, the identifier of the fourth service channel can be represented by TCID-d3.
[0375] After step S707 is completed, the third slave device can assume that the basic service layer has established a connection between the first service channel TCID-s and the fourth service channel TCID-d3, and can therefore determine and maintain a mapping relationship between the first service channel TCID-s and the fourth service channel TCID-d3. The third slave device can also establish a mapping relationship between the fourth service channel and the logical channel. Specifically, it can establish a mapping relationship between the fourth service channel TCID-d3 and the first logical channel LCID1, and a mapping relationship between the fourth service channel TCID-d3 and the fourth logical channel LCID4.
[0376] S708 : The basic service layer of the third slave device sends the port information and service channel information of the third slave device to the basic application layer of the third slave device for port mapping.
[0377] Specifically, in this step, the basic service layer of the third slave device may send information #7E to the basic application layer. The basic application layer of the third slave device performs fourth port mapping according to the information #7E.
[0378] The information #7E may include the identifier P4 of the fourth port used by the third slave device and the identifier TCID-d3 of the fourth service channel, so as to enable the basic application layer of the third slave device to establish a mapping relationship between the fourth port and the fourth service channel.
[0379] S709 : The basic application layer of the third slave device feeds back to the basic service layer of the third slave device that the port mapping is successful.
[0380] S710 : The basic service layer of the third slave device sends a create transmission channel response to the basic service layer of the master device.
[0381] The create transmission channel response is used to notify the master device that the establishment of the fourth service channel on the third slave device side is complete.
[0382] Specifically, in this step, the basic service layer of the third slave device may send information #7F to the basic service layer of the master device. This information #7F may include the identifier TCID-d3 of the fourth service channel. Optionally, this information #7F may also include the identifier LCID1 of the first logical channel and / or the identifier LCID4 of the fourth logical channel.
[0383] It should be noted that in step S706 and step S710, the data exchanged between the basic service layer of the master device and the basic service layer of the third slave device can be transmitted through the control channel established between the master device and the third slave device.
[0384] After step S710 is completed, the master device can assume that the basic service layer of the two electronic devices (the master device and the third slave device) has established a connection between the first business channel TCID-s and the fourth business channel TCID-d3, that is, it can determine and maintain the mapping relationship between the first business channel TCID-s and the fourth business channel TCID-d3.
[0385] S711: The basic service layer of the master device notifies the basic application layer of the master device that the service channel reconfiguration is successful.
[0386] Specifically, in this step, the basic service layer of the master device may send information #7G to the basic application layer to indicate that the first service channel is successfully reconfigured.
[0387] The information #7G may include the port information used by the master device, such as the first port identifier P1, the first service channel identifier TCID-s, the device information of the third slave device, etc. The device information of the third slave device includes the device identifier and / or device address Ter-ID3 of the third slave device.
[0388] At this point, the first service channel is successfully reconfigured, and a channel for transmitting multicast services is successfully established between the master device and the third slave device. The following mapping relationships are established between the channels of each layer of the master device and the third slave device:
[0389] A mapping relationship between the first port port1 and the first service channel TCID-s;
[0390] The mapping relationship between the first service channel TCID-s and the first logical channel LCID1;
[0391] The mapping relationship between the first service channel TCID-s and the fourth logical channel LCID4;
[0392] A mapping relationship between the fourth port P4 and the fourth service channel TCID-d3;
[0393] The mapping relationship between the fourth service channel TCID-d3 and the first logical channel LCID1;
[0394] The mapping relationship between the fourth service channel TCID-d3 and the fourth logical channel LCID4;
[0395] A mapping relationship between the first port P1 and the fourth port P4;
[0396] The mapping relationship between the first service channel TCID-s and the fourth service channel TCID-d3.
[0397] It should be noted that during the interaction between the master device and the first slave device, a mapping relationship between the first port P1 and the first service channel TCID-s and a mapping relationship between the first service channel TCID-s and the first logical channel LCID1 have been established. This is emphasized again here to reflect the path for data transmission between the master device and the third slave device.
[0398] In addition, the first logical channel LCID1 and the fourth logical channel LCID4 belong to the same logical channel group, which also includes the established second logical channel LCID2 and the third logical channel LCID3.
[0399] Optionally, the method 700 further includes:
[0400] S712: The basic service layer of the master device determines that the third slave device has joined successfully.
[0401] In other words, the basic service layer of the master device determines that the data path between the master device and the third slave device is established. This step is optional. In actual applications, the basic service layer of the master device can determine that the third slave device has successfully connected to the master device upon receiving the transmission channel creation response sent in step S710 or upon feeding back to the basic application layer that the service channel reconfiguration is successful.
[0402] It is understood that step S701 does not necessarily need to be performed in the same process as step S702 and subsequent steps. It is sufficient as long as the master device and the third slave device complete port negotiation before the third slave device joins the multicast. For example, step S701 can be performed simultaneously with or sequentially with steps S301 and S302 in method 300, while steps S702-S712 can be performed after step S324 in method 300, or simultaneously with steps S315-S324 in method 300.
[0403] In the embodiment of the present application, if the master device actively adds a new multicast member, the master device may directly execute step S702 , that is, the master device applies for reconfiguration of the first service channel.
[0404] If the new slave device requests to join the multicast or to establish a channel for transmitting the multicast service with the master device, before step S702, the method 700 may further include:
[0405] S713: The basic application layer of the third slave device requests the basic application layer of the master device to join the multicast.
[0406] That is, if the service receiver (ie, the third slave device) initiates an action of joining the multicast, the service receiver needs to notify the basic application layer of the service initiator (ie, the master device).
[0407] The information involved in step S713 may be transmitted through a default service channel established between the master device and the third slave device.
[0408] The method provided in the embodiment of the present application can enable new member devices to join an existing multicast, thereby achieving flexible multicast communication.
[0409] Figure 8 A schematic diagram of a process of a member device leaving a multicast according to an embodiment of the present application is shown, specifically involving a process of releasing a channel for transmitting multicast services between a master device and the leaving member when the member leaves the multicast.
[0410] When a master device is performing multicast with at least one slave device, and a slave device (such as the third slave device) leaves the multicast, for example, one earphone is removed during a double-ear call, or one person leaves the conference call during a two-person conference call on the same mobile phone, the master device and the slave device (such as the third slave device) that is about to leave can perform the following operations: Figure 8 The process shown. Figure 8 The method 800 shown includes steps S801 to S812 , and each step is described in detail below with reference to the accompanying drawings.
[0411] S801: The basic application layer of the master device applies to the basic service layer of the master device for reconfiguration of a service channel.
[0412] After the third slave device leaves the multicast, the multicast member corresponding to the first service channel changes. Therefore, this step allows the master device's basic application layer to request the basic service layer to reconfigure the first service channel. Step S801 can also be understood as requesting the release of the channel used to transmit multicast services between the master device and the member leaving the multicast (e.g., the third slave device).
[0413] Specifically, in step S801, the basic application layer of the master device can send information #8A to the connection management module, and the information #8A is used to apply to the connection management module to reconfigure the first service channel to release the service channel between the master device and the third slave device for transmitting multicast services.
[0414] Information #8A may include the identifier TCID-s of the first service channel, device information of the member leaving the multicast, etc. Exemplarily, the device information of the member leaving the multicast may include the device identifier and / or device address Ter-ID3 of the third slave device.
[0415] In some embodiments, the member leaving the multicast may be passively leaving the multicast, and the master device may directly execute step S801. In other embodiments, the member leaving the multicast may be actively leaving the multicast, and the method 800 may further include:
[0416] S812: The basic application layer of the third slave device requests the basic application layer of the master device to leave the multicast.
[0417] That is, if the service receiver (ie, the third slave device) initiates an action of leaving the multicast, the service receiver needs to notify the basic application layer of the service initiator (ie, the master device).
[0418] The information exchanged in step S812 may be transmitted through a default service channel created by the service management module of the master device and the third slave device.
[0419] S802: The basic service layer of the master device applies to the access layer of the master device for reconfiguration of the logical channel.
[0420] When a member leaves the multicast group, the multicast member corresponding to the multicast logical channel changes, necessitating reconfiguration of the multicast logical channel. Specifically, in this step, the master device's basic service layer (specifically, the connection management module) can send message #8B to the access layer, requesting reconfiguration of the multicast logical channel to release the logical channel between the master device and the third slave device. Alternatively, it can be understood that message #8B instructs the removal of the logical link between the master device and the third slave device, thereby releasing the mapping relationship between the multicast logical channel and the fourth service channel.
[0421] The information #8B may include the identifier of the first service channel TCID-s, at least one of the identifier of the first logical channel LCID1 and the identifier of the fourth logical channel LCID4, device information of the third slave device, etc. The device information of the third slave device includes the device identifier and / or device address Ter-ID3 of the third slave device.
[0422] S803 , releasing the fourth logical channel LCID4 and the first logical channel LCID1 on the third slave device side.
[0423] In this step, since the third slave device has left the multicast, it no longer sends data to the master device. Therefore, the fourth logical channel LCID4 used to transmit uplink data between the third slave device and the master device can be released. Although the third slave device no longer receives data from the master device, since the first logical channel LCID1 used to transmit downlink data is used not only to send data to the third slave device, but also to send data to the first and second slave devices, only LCID1 on the third slave device side is released in this step, while LCID1 on the master device side can still be used to send data to other members in the multicast.
[0424] In this step, the logical channel can be released by unmapping the multicast logical channel from the fourth service channel. Specifically, the third slave device can unmap the fourth service channel TCID-d3 from the first logical channel LCID1, and also unmap the fourth service channel TCID-d3 from the fourth logical channel LCID4. The master device can unmap the first service channel TCID-s from the fourth logical channel LCID4. This frees up the resources corresponding to the fourth logical channel LCID4, and frees up the resources corresponding to the first logical channel LCID1 used by the third slave device.
[0425] S804: The access layer of the master device feeds back to the basic service layer of the master device that the logical channel reconfiguration is successful.
[0426] Specifically, in this step, the access layer of the master device can send information #8C to the basic service layer, and the information #8C is used to indicate that the logical channel reconfiguration is successful, or it can be understood that the information #8C is used to indicate that the logical link between the master device and the third slave device is successfully removed.
[0427] Optionally, the information #8C may include a device identification and / or a device address of the third slave device.
[0428] After receiving the information #8C, the basic service layer of the master device considers that the underlying logical link between the master device and the third slave device is removed.
[0429] S805: The basic service layer of the master device sends a request to delete the transmission channel to the basic service layer of the third slave device.
[0430] The transmission channel deletion request is used to instruct the third slave device to release the fourth service channel.
[0431] Specifically, in this step, the basic service layer of the master device may send information #8D to the basic service layer of the third slave device. The information #8D may include the identifier TCID-d3 of the fourth service channel and the identifier P4 of the fourth port.
[0432] S806: The basic service layer of the third slave device requests the basic application layer of the third slave device to release the port mapping.
[0433] Specifically, in this step, the basic service layer of the third slave device sends information #8E to the basic application layer of the third slave device, where the information #8E is used to request to release the mapping relationship between the fourth port and the fourth service channel.
[0434] The information #8E may include the identifier of the fourth service channel TCID-d3 and the identifier of the fourth port P4.
[0435] S807: The basic application layer of the third slave device releases the fourth port.
[0436] Specifically, in this step, the basic application layer of the third slave device releases the fourth port, that is, cancels the mapping relationship between the fourth port and the fourth service channel.
[0437] S808: The basic application layer of the third slave device feeds back to the basic service layer of the third slave device that the port unbinding is successful.
[0438] S809: The basic service layer of the third slave device releases the fourth service channel.
[0439] In this step, the basic service layer of the third slave device removes the mapping relationship between the fourth service channel and the multicast logical channel. Specifically, the mapping relationship between the fourth service channel TCID-d3 and the first logical channel LCID1 and the mapping relationship between the fourth service channel TCID-d3 and the fourth logical channel LCID4 are removed.
[0440] S810: The basic service layer of the third slave device sends a delete transmission channel response to the basic service layer of the master device.
[0441] The transmission channel deletion response is used to notify the master device that the service channel on the third slave device side is released successfully.
[0442] Specifically, in this step, the basic service layer of the third slave device may send information #8F to the basic service layer of the master device. Information #8F may include the identifier TCID-d3 of the fourth service channel.
[0443] S811: The basic service layer of the master device feeds back to the basic application layer of the master device that the service channel reconfiguration is successful.
[0444] Specifically, in this step, the basic service layer of the master device may send information #8G to the basic application layer of the master device. Optionally, the information #8G may include the device identification and / or device address Ter-ID3 of the third slave device.
[0445] The method provided in the embodiment of the present application can enable member devices to leave the existing multicast and realize flexible multicast communication.
[0446] It should be noted that Figure 8 In the method 800 shown, the third slave device can be any slave device among the multicast members. Accordingly, the content related to the third slave device involved in the process can be directly replaced by the content corresponding to other member devices that need to leave the multicast, which will not be described in detail here.
[0447] When the multicast service between the master device and at least one slave device is stopped, or when the last slave device leaves the multicast service, the multicast service channel can be released.
[0448] Figure 9 A schematic diagram of a process for releasing a multicast service channel provided in an embodiment of the present application is shown. Figure 9 The method 900 shown includes steps S901 to S914. The following describes the steps of the method 900 in detail with reference to the accompanying drawings, taking the last device to leave the multicast as the first slave device as an example.
[0449] S901: The basic application layer of the master device applies to the basic service layer of the master device for releasing a service channel.
[0450] This step can also be understood as releasing the multicast service channel between the master device and each slave device. In the embodiment of the present application, the master device can release the data path with each slave device one by one, or release the data path with all multicast members in a unified manner.
[0451] Specifically, in step S901, the basic application layer of the master device may send information #9A to the basic service layer of the master device to apply for releasing the first service channel.
[0452] The information #9A may include the identifier TCID-s of the first service channel. The basic service layer of the master device may determine to release the first service channel according to the identifier of the first service channel in the information #9A.
[0453] In some embodiments, the information #9A may also include device information of all multicast members (eg, device identification and / or device address), to indicate the release of the multicast service channel between the master device and all multicast members.
[0454] In some embodiments, the leaving multicast member may be a passive leaving of the multicast. When the last slave device leaves the multicast, the master device may directly execute step S901.
[0455] In other embodiments, the leaving multicast member may actively leave the multicast, and the method 900 may further include:
[0456] S914: The basic application layer of the first slave device requests the basic application layer of the master device to leave the multicast.
[0457] Here, the first slave device is the last device to leave the multicast.
[0458] S902: The basic service layer of the master device applies to the access layer of the master device for releasing the logical channel.
[0459] The logical channel is a multicast logical channel (or logical channel group). This step can also be understood as applying to the access layer to release the logical link between the master device and the last slave device.
[0460] Specifically, in this step, the basic service layer (specifically, the connection management module) of the master device may send information #9B to the access layer to request the release of the logical channel between the master device and the first slave device.
[0461] The information #9B may include the identifier of the first service channel TCID-s and / or the identifier of the first logical channel LCID1.
[0462] Optionally, the information #9B may also include device information of all multicast members (eg, device identification and / or device address), to instruct the release of the logical links between the master device and all multicast members.
[0463] S903: The access layer of the master device releases the first logical channel and the second logical channel.
[0464] In this step, since the first slave device is the last member to leave the multicast, the master device no longer sends data to the slave device, and the first slave device no longer receives data from the slave device, so the logical channel between the master device and the first slave device can be released.
[0465] Specifically, the logical channel can be released by unmapping the multicast logical channel from the service channels on the master device and the first slave device (i.e., the first service channel and the second service channel). More specifically, the master device can unmap the first service channel from the first logical channel and the second logical channel, and the first slave device can unmap the second service channel from the first logical channel and the second logical channel. This releases the resources corresponding to both the first and second logical channels.
[0466] S904: The access layer of the master device feeds back to the basic service layer of the master device that the logical channel is released successfully.
[0467] Specifically, in this step, the access layer of the master device may send information #9C to the basic service layer, where the information #9C is used to indicate that the multicast logical channel is released successfully.
[0468] Optionally, the information #9C may include an identifier of the first service channel and / or an identifier of the first logical channel.
[0469] S905 : The basic service layer of the master device sends a request to delete the transmission channel to the basic service layer of the first slave device.
[0470] The transmission channel deletion request is used to instruct the first slave device to release the second service channel.
[0471] Specifically, in this step, the basic service layer of the master device may send information #9D to the basic service layer of the first slave device. The information #9D may include the identifier TCID-d1 of the second service channel and the identifier P2 of the second port.
[0472] S906: The basic service layer of the first slave device requests the basic application layer of the first slave device to release the port mapping.
[0473] Specifically, in this step, the basic service layer of the first slave device sends information #9E to the basic application layer of the first slave device, where the information #9E is used to request to release the mapping relationship between the second port and the second service channel.
[0474] The information #9E may include the identifier of the second service channel TCID-d1 and the identifier of the second port P2.
[0475] S907: The basic application layer of the first slave device releases the second port.
[0476] This step is to release the mapping relationship between the second port and the second service channel.
[0477] S908: The basic application layer of the first slave device feeds back to the basic service layer of the first slave device that the port unbinding is successful.
[0478] S909: The basic service layer of the first slave device releases the second service channel.
[0479] In this step, the basic service layer of the first slave device unmaps the second service channel from the multicast logical channel. Specifically, the mapping relationship between the second service channel identifier TCID-d1 and the first logical channel LCID1 and the mapping relationship between the second service channel identifier TCID-d1 and the second logical channel LCID2 are unmapped.
[0480] S910 , the basic service layer of the first slave device sends a delete transmission channel response to the basic service layer of the master device.
[0481] The transmission channel deletion response is used to notify the master device that the service channel on the first slave device side is released successfully.
[0482] Specifically, in this step, the basic service layer of the first slave device may send information #9F to the basic service layer of the master device. The information #9F may include the identifier TCID-d1 of the second service channel.
[0483] S911: The basic service layer of the master device releases the first service channel.
[0484] Here, the identifier of the first service channel is TCID-s. In this step, the basic service layer of the master device may release the mapping relationship between the first service channel and the first logical channel and the second logical channel.
[0485] S912: The basic service layer of the master device feeds back to the basic application layer of the master device that the service channel is released successfully.
[0486] Specifically, in this step, the basic service layer of the master device may send information #9G to the basic application layer of the master device. Optionally, the information #9G may include the identifier TCID-s of the first service channel.
[0487] S913: The basic application layer of the master device releases the first port.
[0488] In this step, the basic application layer of the master device may release the mapping relationship between the first port and the first service channel.
[0489] It should be noted that when the first slave device is the last device to leave the multicast service, the master device can communicate with the first slave device as follows when releasing the multicast service channel. Figure 9 When the multicast service is stopped between the master device and at least one slave device, the master device and at least one slave device can execute the following Figure 10 The process of releasing the multicast service channel is shown.
[0490] Figure 10 A schematic diagram of a process for releasing a multicast service channel provided in another embodiment of the present application is shown. Figure 10 The method 1000 shown includes steps S1001 to S1020. The following describes in detail the steps of the method 1000 by taking the master device and the first slave device and the second slave device executing the method 1000 as an example with reference to the accompanying drawings.
[0491] S1001: The basic application layer of the master device applies to the basic service layer of the master device for releasing a service channel.
[0492] Specifically, in this step, the basic application layer of the master device may send information #10A to the basic service layer of the master device to apply for releasing the first service channel.
[0493] The information #10A may include the identifier TCID-s of the first service channel.
[0494] Optionally, the information #10A may also include device information of all multicast members. Figure 10 As shown in the example, the information #10A may include the device identification and / or device address of the first slave device, and the device identification and / or device address of the second slave device.
[0495] The basic service layer of the master device determines to release the first service channel according to the identifier of the first service channel in the information #10A or the device information of all multicast members.
[0496] S1002: The basic service layer of the master device applies to the access layer of the master device for releasing a logical channel.
[0497] The logical channel is the aforementioned logical channel group. This step can also be understood as applying to the access layer to release the logical links between the master device and each slave device.
[0498] Specifically, in this step, the basic service layer (specifically, the connection management module) of the master device may send information #10B to the access layer. This information #10B may include at least one of the identifier of the first service channel TCID-s, the identifier of the first logical channel LCID1, and device information of all multicast members.
[0499] The access layer of the master device determines to release the multicast logical channel according to information #10B.
[0500] S1003 : The access layer of the master device and the access layer of the second slave device release the first logical channel LCID1 and the third logical channel LCID3 .
[0501] S1004 : The access layer of the master device and the access layer of the first slave device release the first logical channel LCID1 and the second logical channel LCID2 .
[0502] The access layer of the master device removes the logical links between the master device and each slave device in sequence or simultaneously. Specifically, the access layer of the master device removes the mapping relationship between the multicast logical channel and the service channel on each slave device side.
[0503] It should be noted that since the first logical channel LCID1 is used to send multicast service data to multiple slave devices, during the process of releasing the logical channel, the release of LCID1 involved in step S1003 can be understood as releasing LCID1 on the second slave device side, and the release of LCID1 involved in step S1004 can be understood as releasing LCID1 on the first slave device side. When the master device completes the removal of the logical link with the last slave device, LCID1 on the master device side is released.
[0504] S1005: The access layer of the master device feeds back to the basic service layer of the master device that the logical channel is released successfully.
[0505] Specifically, in this step, the access layer of the master device may send information #10C to the basic service layer to indicate that the multicast logical channel is released successfully, and also to indicate that the master device has released the logical link with each slave device.
[0506] Optionally, the information #10C may include the device identification and / or device address of the slave device that has released the logical link with the master device. Figure 10 In the example, the information #10C may include an identifier of the first service channel and / or an identifier of the first logical channel.
[0507] S1006: The basic service layer of the master device sends a request to delete the transmission channel to the basic service layer of the second slave device.
[0508] The transmission channel deletion request is used to instruct the second slave device to release the third service channel.
[0509] Specifically, in this step, the basic service layer of the master device may send information #10D to the basic service layer of the second slave device. The information #10D may include the identifier TCID-d2 of the third service channel and the identifier P3 of the third port.
[0510] S1007: The basic service layer of the second slave device requests the basic application layer of the second slave device to release the port mapping.
[0511] Specifically, in this step, the basic service layer of the second slave device sends information #10E to the basic application layer of the second slave device. The information #10E may include the identifier TCID-d2 of the third service channel and the identifier P3 of the third port, which is used to request to release the mapping relationship between the third port and the third service channel.
[0512] S1008 : The basic application layer of the second slave device releases the third port.
[0513] This step cancels the mapping relationship between the third port and the third service channel.
[0514] S1009: The basic application layer of the second slave device feeds back to the basic service layer of the second slave device that the port unbinding is successful.
[0515] S1010 , the basic service layer of the second slave device releases the third service channel (TCID-d2).
[0516] In this step, the basic service layer of the second slave device removes the mapping relationship between the third service channel and the multicast logical channel. Specifically, the basic service layer of the second slave device removes the mapping relationship between the third service channel TCID-d2 and the first logical channel LCID1, and removes the mapping relationship between the third service channel TCID-d2 and the third logical channel LCID3.
[0517] S1011 , the basic service layer of the second slave device sends a delete transmission channel response to the basic service layer of the master device.
[0518] The transmission channel deletion response is used to notify the master device that the service channel on the second slave device side is released successfully.
[0519] Specifically, in this step, the basic service layer of the second slave device may send information #10F to the basic service layer of the master device. The information #10F may include the identifier TCID-d2 of the third service channel.
[0520] S1012: The basic service layer of the master device sends a request to delete the transmission channel to the basic service layer of the first slave device.
[0521] The transmission channel deletion request is used to instruct the first slave device to release the second service channel.
[0522] Specifically, in this step, the basic service layer of the master device may send information #10K to the basic service layer of the first slave device. The information #10K may include the identifier TCID-d1 of the second service channel and the identifier P2 of the second port.
[0523] S1013: The basic service layer of the first slave device requests the basic application layer of the first slave device to release the port mapping.
[0524] Specifically, in this step, the basic service layer of the first slave device sends information #10L to the basic application layer of the first slave device. The information #10L may include the identifier TCID-d1 of the second service channel and the identifier P2 of the second port, which is used to request to release the mapping relationship between the second port and the second service channel.
[0525] S1014: The basic application layer of the first slave device releases the second port.
[0526] This step cancels the mapping relationship between the second port and the second service channel.
[0527] S1015 : The basic application layer of the first slave device feeds back to the basic service layer of the first slave device that the port unbinding is successful.
[0528] S1016 , the basic service layer of the first slave device releases the second service channel (TCID-d1).
[0529] In this step, the basic service layer of the first slave device unmaps the second service channel from the multicast logical channel. Specifically, the basic service layer of the first slave device unmaps the second service channel TCID-d1 from the first logical channel LCID1, and unmaps the second service channel TCID-d1 from the second logical channel LCID2.
[0530] S1017: The basic service layer of the first slave device sends a delete transmission channel response to the basic service layer of the master device.
[0531] The transmission channel deletion response is used to notify the master device that the service channel on the first slave device side is released successfully.
[0532] Specifically, in this step, the basic service layer of the first slave device may send information #10M to the basic service layer of the master device. The information #10M may include the identifier TCID-d1 of the second service channel.
[0533] It is understandable that if more slave devices are disconnected from the master device, the master device and each slave device will perform steps similar to steps S1006-S1011 or steps S1012-1017. Here, only two slave devices are used as an example, but the application does not limit the number of slave devices.
[0534] When the underlying logical links between the master device and the multicast member devices are removed, proceed to the next step.
[0535] S1018: The basic service layer of the master device releases the first service channel.
[0536] This step is to release the mapping relationship between the first service channel and the multicast logical channel. Specifically, the basic service layer of the master device releases the mapping relationship between the first service channel TCID-s and the first logical channel LCID1.
[0537] S1019: The basic service layer of the master device feeds back to the basic application layer of the master device that the service channel is released successfully.
[0538] Specifically, in this step, the basic service layer of the master device may send information #10N to the basic application layer of the master device. Optionally, the information #10N may include the identifier TCID-s of the first service channel.
[0539] S1020: The basic application layer of the master device releases the first port.
[0540] This step is to release the mapping relationship between the first port P1 and the first service channel TCID-s.
[0541] In the methods 900 and 1000 provided in the embodiments of the present application, when the multicast service ends or the last multicast member leaves the multicast, the multicast service channel of the master device can be released, thereby releasing transmission resources and improving resource utilization.
[0542] The device identification involved in the above embodiments can be an identification obtained by the electronic device when it leaves the factory, such as a device identification (Device ID), a unique device identifier (UDID), a universally unique identifier (UUID), an international mobile equipment identity (IMEI), etc.; it can also be an identification assigned by other electronic devices (such as the first electronic device).
[0543] The device address involved in the above embodiments may be an address obtained by the electronic device when it leaves the factory, such as a media access control (MAC) address, a physical address, etc.; or it may be an address assigned by the network after the electronic device is connected to the network.
[0544] In combination with the above embodiments and drawings, the embodiment of the present application provides a method for configuring a channel for transmitting a multicast service. Figure 1 The communication system 100 shown is implemented, more specifically, in a system having Figure 2 The protocol architecture shown is implemented in an electronic device, such as a first electronic device. The first electronic device may include a basic application layer, a basic service layer, and an access layer. The basic application layer may configure ports, the basic service layer may configure service channels, and the access layer may configure logical channels. Ports and service channels have a mapping relationship, and service channels have a mapping relationship with logical channels. Once the mapping relationship between port, service channel, and logical channel is completed, the formed channel can be considered to be usable for transmitting services.
[0545] Figure 11 A schematic flow chart of a method for configuring a channel for transmitting a multicast service provided by an embodiment of the present application is shown. The method 1100 can be applied to a first electronic device, wherein the first electronic device includes a first basic service layer and a first access layer. The first basic service layer is configured with a first service channel, and the first access layer is configured with a first logical channel. The first service channel and the first logical channel have a mapping relationship. The first logical channel can receive data from the first service channel. In the embodiment of the present application, the first service channel and the first logical channel are used to transmit first data, and the first data is multicast service data.
[0546] like Figure 11 As shown, the method 1100 may include steps S1101 to S1106.
[0547] S1101, the first basic service layer sends first information to the second electronic device.
[0548] The first information is used to instruct the second electronic device to establish a second service channel.
[0549] In the embodiment of the present application, the second electronic device has the following Figure 2 The architecture shown includes a basic service layer. The second service channel is a service channel on the second electronic device side, specifically a channel in the basic service layer of the second electronic device.
[0550] S1102: The second electronic device establishes a second service channel.
[0551] Specifically, this step can be performed by the basic service layer (specifically, the connection management module) of the second electronic device. After the second electronic device establishes the second service channel, it can establish a mapping relationship between the second service channel and the first logical channel, and establish a mapping relationship between the second service channel and the first service channel.
[0552] S1103: The first basic service layer receives second information sent by the second electronic device.
[0553] The second information is used to indicate that a mapping relationship is established between the second service channel and the first service channel.
[0554] After a mapping relationship is established between the second service channel and the first service channel, the second service channel can be used to receive first data from the first logical channel, wherein the first data transmitted in the first logical channel comes from the first service channel.
[0555] S1104: The first basic service layer sends third information to the third electronic device.
[0556] The third information is used to instruct the third electronic device to establish a third service channel.
[0557] In the embodiment of the present application, the third electronic device has the following Figure 2 The architecture shown includes a basic service layer. The third service channel is a service channel on the third electronic device side, specifically a channel in the basic service layer of the third electronic device.
[0558] S1105: The third electronic device establishes a third service channel.
[0559] Specifically, this step can be performed by the basic service layer (specifically, the connection management module) of the third electronic device. After the third electronic device establishes the third service channel, it can establish a mapping relationship between the third service channel and the first logical channel, and establish a mapping relationship between the third service channel and the first service channel.
[0560] S1106: The first basic service layer receives fourth information sent by the third electronic device.
[0561] The fourth information is used to indicate that a mapping relationship is established between the third service channel and the first logical channel.
[0562] After a mapping relationship is established between the third service channel and the first service channel, the third service channel is used to receive first data from the first service channel, wherein the first data transmitted in the first logical channel comes from the first service channel.
[0563] That is, after the first electronic device, the second electronic device, and the third electronic device have respectively established a mapping relationship between the first service channel, the second service channel, the third service channel, and the first logical channel, a one-to-many multicast service can be performed between the first electronic device and the second electronic device and the third electronic device. Specifically, the first electronic device can transmit the first data to the second electronic device and the third electronic device through the first service channel and the first logical channel. Correspondingly, the second electronic device receives the first data from the first logical channel through the second service channel, and the third electronic device receives the first data from the first logical channel through the third service channel. In this way, a multicast service transmission can be implemented in which the first electronic device sends a copy of the data and the second and third electronic devices receive it respectively.
[0564] In the embodiment of the present application, the first electronic device is an example of the master device mentioned above, for example Figure 1 The first electronic device 110 in the embodiment. The second electronic device and the third electronic device are examples of slave devices, for example Figure 1 The second electronic device 121 and the second electronic device 122 in the embodiment.
[0565] In the embodiment of the present application, the first information and the second information exchanged between the first electronic device and the second electronic device can be transmitted through the control channel between the first electronic device and the second electronic device. The second information and the fourth information exchanged between the first electronic device and the third electronic device can be transmitted through the control channel between the first electronic device and the third electronic device.
[0566] In some embodiments, the first information may include an identifier of the second port, an identifier of the first service channel, and an identifier of the first logical channel, wherein the second port is a port used by the second electronic device to transmit the first data.
[0567] Here, the identifier of the second port is used by the second electronic device to establish a mapping relationship between the second service channel and the second port. The identifier of the first service channel is used by the second electronic device to establish a mapping relationship between the second service channel and the first service channel. The identifier of the first logical channel is used by the second electronic device to establish a mapping relationship between the second service channel and the first logical channel.
[0568] The second port is obtained through negotiation between the second electronic device and the first electronic device.
[0569] In some embodiments, the second information may include an identifier of a second service channel. The second service channel has a mapping relationship with the second port, and the second service channel has a mapping relationship with the first logical channel. Optionally, the second information may also include an identifier of an underlying logical channel, such as an identifier of the first logical channel.
[0570] In some embodiments, the third information may include an identifier of a third port, an identifier of the first service channel, and an identifier of the first logical channel, wherein the third port is a port used by the third electronic device to transmit the first data.
[0571] Here, the identifier of the third port is used by the third electronic device to establish a mapping relationship between the third service channel and the third port. The identifier of the first service channel is used by the third electronic device to establish a mapping relationship between the third service channel and the first service channel. The identifier of the first logical channel is used by the third electronic device to establish a mapping relationship between the third service channel and the first logical channel.
[0572] The third port is obtained through negotiation between the third electronic device and the first electronic device.
[0573] In some embodiments, the fourth information may include an identifier of a third service channel. The third service channel is mapped to the third port, and the third service channel is mapped to the first logical channel. Optionally, the fourth information may also include an identifier of an underlying logical channel, such as an identifier of the first logical channel.
[0574] In some embodiments, the first information and the third information may be carried in a create transmission channel request message, and the second information and the fourth information may be carried in a create transmission channel response message.
[0575] As an example and not a limitation, the first information may be Figure 3 Information in #3D, Figure 4 Information in #4D, or Figure 7 The second information can be, for example, Figure 3 Information in #3F, Figure 4 Information #4F in, or Figure 7 The third information can be, for example, Figure 3Information in #3K, Figure 4 Information in #4K, or Figure 7 The fourth information can be, for example, Figure 3 Information in #3M, Figure 4 Information in #4M, or Figure 7 Information #7F in the . For the explanation of various information, please refer to the relevant description above. For the sake of brevity, it will not be repeated here.
[0576] As mentioned above, the first service channel is a service channel on the first electronic device side, which has a mapping relationship with the first logical channel. Therefore, before step S1101, the first electronic device needs to establish a mapping relationship between the first service channel and the first logical channel.
[0577] refer to Figure 12 In some embodiments, before step S1101, method 1100 further includes:
[0578] S1107: The first basic service layer establishes a first service channel.
[0579] Specifically, this step can be performed by the first electronic device connection management module.
[0580] S1108. The first basic service layer sends fifth information to the first access layer.
[0581] The fifth information is used to apply for a logical channel for the first service channel.
[0582] Accordingly, the first access layer maps the first service channel to the first logical channel based on the fifth information. The first logical channel may be an existing logical channel of the first access layer, a reconfigured logical channel in the first access layer, or a newly created logical channel in the first access layer. The first access layer may determine the first logical channel based on transmission conditions.
[0583] S1109: The first basic service layer receives the sixth information sent by the first access layer.
[0584] The sixth information is used to indicate that a mapping relationship is established between the first service channel and the first logical channel.
[0585] In an embodiment of the present application, the process of the first electronic device establishing a mapping relationship between the first service channel and the first logical channel (i.e., steps S1107-S1109) can be performed during the process of establishing a data transmission path between the first electronic device and the second electronic device, can be performed during the process of establishing a data transmission path between the first electronic device and the third electronic device, and can also be performed before the process of establishing a data transmission path between the first electronic device and the second electronic device and the third electronic device (i.e., performed during the process of establishing a data transmission path between the first electronic device and electronic devices other than the second electronic device and the third electronic device).
[0586] In other words, steps S1107-S1109 are executed in the process of establishing a data transmission path between the first electronic device and the first slave device, where the first slave device can be the second electronic device, the third electronic device, or any other electronic device other than the second electronic device and the third electronic device.
[0587] In some embodiments, the second electronic device may be a slave device that is the first to establish a data channel with the first electronic device. The fifth information may include: an identifier of the first service channel and device information of the second electronic device.
[0588] That is, when the first basic service layer of the first electronic device applies for a logical channel, it may indicate information of a slave device to the first access layer, ie, the first slave device that establishes a data path with the first electronic device.
[0589] Here, the identifier of the first service channel is used by the first access layer to establish a mapping relationship between the first service channel and the first logical channel. The device information of the second electronic device is used to instruct the first access layer to establish a logical link between the first electronic device and the second electronic device. In other words, the device information of the second electronic device is used to instruct the first electronic device to establish a data path with the second electronic device.
[0590] Optionally, the device information of the second electronic device may include a device identification and / or a device address of the second electronic device.
[0591] The device identifier of the second electronic device may be an identifier obtained by the second electronic device when it leaves the factory, such as a device ID, UDID, UUID, IMEI, etc. The device identifier of the second electronic device may also be an identifier assigned by the first electronic device. For example, the master device may assign an identifier to a slave device receiving a multicast service to distinguish between different slave devices.
[0592] The device address of the second electronic device may be a device address obtained when the second electronic device leaves the factory, such as a MAC address, a physical address, etc. The device address of the second electronic device may also be an address assigned by the network after the second electronic device is connected to the network.
[0593] In the embodiment of the present application, the device identification of the second electronic device and the device address of the second electronic device may have a corresponding relationship, and based on one piece of information and the corresponding relationship between the two, the other piece of information may be obtained. For example, based on the device identification of the second electronic device and the corresponding relationship, the device address of the second electronic device may be obtained.
[0594] In other embodiments, the second electronic device may be the first slave device to establish a data path with the first electronic device. The fifth information may include: an identifier of the first service channel and multicast member information. The multicast member information includes device information of the electronic device used to receive the first data.
[0595] That is, when the first basic service layer of the first electronic device applies for a logical channel, it may indicate information of multiple slave devices to the first access layer, ie, multiple slave devices that need to establish data paths with the first electronic device.
[0596] Here, the identifier of the first service channel is used by the first access layer to establish a mapping relationship between the first service channel and the first logical channel. The multicast member information is used to instruct the first access layer to establish a logical link between the first electronic device and each electronic device receiving the first data. In other words, the multicast member information is used to instruct the first electronic device to establish a data path with each electronic device receiving the first data.
[0597] Optionally, the device information of the electronic device used to receive the first data includes a device identification and / or a device address of the electronic device used to receive the first data.
[0598] The device identification involved here may be an identification obtained by the electronic device when it leaves the factory, such as device ID, UDID, UUID, IMEI, etc., or may be an identification assigned by the first electronic device.
[0599] The device address involved here may be an address obtained by the electronic device when it leaves the factory, such as a MAC address, a physical address, etc., or may be an address assigned by the network after the electronic device is connected to the network.
[0600] In the embodiment of the present application, the device identification of the electronic device and the device address of the electronic device may have a corresponding relationship, and the other information may be obtained based on one of the information and the corresponding relationship between the two.
[0601] As an example and not limitation, the fifth information may be Figure 3 Information #3B in , or Figure 4 Information #4B in the . For the explanation of various information, please refer to the relevant description above. For the sake of brevity, it will not be repeated here.
[0602] As mentioned above, the sixth information is used to indicate the establishment of a mapping relationship between the first service channel and the first logical channel. The sixth information can be sent to the first basic service layer after the first access layer completes the establishment of the logical link between the first electronic device and the first slave device, or it can be sent to the first basic service layer after the first access layer completes the establishment of the logical link between the first electronic device and multiple slave devices (including the first slave device that establishes a data path with the first electronic device).
[0603] In some embodiments, still taking the second electronic device as the first slave device to establish a data path with the first electronic device as an example, the sixth information may include: an identifier of the first service channel, an identifier of the first logical channel, and device information of the second electronic device.
[0604] That is, after the first access layer of the first electronic device completes the establishment of the logical link between the first electronic device and the first slave device, it feeds back to the first basic service layer that the application for the first service channel is successful.
[0605] Here, the identifier of the first service channel and the identifier of the first logical channel are used to indicate that a mapping relationship has been established between the first service channel and the first logical channel. The device information of the second electronic device is used to indicate that the logical link between the first electronic device and the second electronic device is established.
[0606] In the embodiment of the present application, the first logical channel is established between the first electronic device and each slave device.
[0607] In some other embodiments, still taking the second electronic device as the first slave device to establish a data path with the first electronic device as an example, the sixth information may include: an identifier of the first service channel, an identifier of the first logical channel, and multicast member information.
[0608] That is, after the first access layer of the first electronic device completes the establishment of the logical links between the first electronic device and the multiple slave devices, it feeds back to the first basic service layer that the first service channel application is successful.
[0609] Here, the identifier of the first service channel and the identifier of the first logical channel are used to indicate that a mapping relationship has been established between the first service channel and the first logical channel. The multicast member information is used to indicate that a logical link between the first electronic device and each of the multiple electronic devices for receiving the first data is established.
[0610] As an example and not limitation, the sixth information may be Figure 3 Information #3C in, or Figure 4 Information #4C in the . For the explanation of various information, please refer to the relevant description above. For the sake of brevity, it will not be repeated here.
[0611] In an embodiment of the present application, the multiple electronic devices for receiving the first data are the electronic devices indicated by the first basic service layer in the fifth information. Exemplarily, when the fifth information includes the device information of the second electronic device and the device information of the third electronic device, it instructs the first access layer to establish a logical link between the first electronic device and the second electronic device and a logical link between the first electronic device and the third electronic device. When the first access layer is established, the first access layer sends the sixth information to the first basic service layer, wherein the sixth information includes the device information of the second electronic device and the device information of the third electronic device to indicate that the logical link between the first electronic device and the second electronic device is established, and the logical link between the first electronic device and the third electronic device is established.
[0612] refer to Figure 13 In some embodiments, the first electronic device further includes a first basic application layer. Before step S1107, the method 1100 further includes:
[0613] S1110. The first basic service layer receives seventh information sent by the first basic application layer.
[0614] The seventh information is used to indicate application for a service channel for a first port, where the first port is a port used by the first electronic device to transmit first data.
[0615] That is, the first basic service layer may establish the first service channel according to the instruction of the first basic application layer.
[0616] The seventh information may include: an identifier of the first port.
[0617] Here, the identifier of the first port is used by the first basic service layer to establish a mapping relationship between the first service channel and the first port.
[0618] In some embodiments, still taking the second electronic device as the first slave device to establish a data path with the first electronic device as an example, the seventh information may also include: device information of the second electronic device and an identifier of the second port, where the second port is the port used by the second electronic device to receive the first data.
[0619] That is to say, before the first basic service layer establishes the first business channel, the first basic application layer can indicate to the first basic service layer the device information and the port used of the first slave device that establishes a data path with the first electronic device, so as to instruct the first service layer to complete the application for the first business channel in the process of establishing the data path between the first electronic device and the first slave device.
[0620] In other embodiments, still taking the second electronic device as the first slave device to establish a data path with the first electronic device as an example, the seventh information may further include: multicast member information and port information of the multicast member.
[0621] The multicast member information includes device information (e.g., device identification and / or device address) of the electronic device used to receive the first data, and is used to indicate the electronic device that establishes a data path with the first electronic device (specifically, the electronic device that needs to establish a data path with the first electronic device before transmitting the multicast service). The port information of the multicast member includes the identification of the port used by the electronic device for receiving the first data, and is used to indicate the port used by the electronic device for receiving the first data. More specifically, the port information of the multicast member is used to subsequently establish a mapping relationship between the port and the service channel for each electronic device that receives the first data.
[0622] It should be understood that the electronic device for receiving the first data referred to herein refers to an electronic device that needs to receive the first data before the first electronic device performs multicast service transmission.
[0623] As an example and not a limitation, the seventh information may be Figure 3 Information #3A in , or Figure 4 Information #4A in the . For explanations of various information, please refer to the relevant descriptions above. For the sake of brevity, we will not repeat them here.
[0624] In the embodiment of the present application, the port used by the electronic device for receiving the first data is obtained through negotiation between the first basic application layer of the first electronic device and each electronic device in the electronic devices for receiving the first data.
[0625] That is to say, before the first basic service layer establishes the first business channel, the first basic application layer can indicate to the first basic service layer the device information and used ports of multiple slave devices that establish data paths with the first electronic device, so as to instruct the first service layer to complete the application for the first business channel in the process of establishing the data paths between the first electronic device and the multiple slave devices.
[0626] Corresponding to step S1110, method 1100 further includes:
[0627] S1111. The first basic service layer sends eighth information to the first basic application layer.
[0628] The eighth information is used to indicate that a mapping relationship is established between the first port and the first service channel.
[0629] In the embodiment of the present application, step S1111 may be performed after step S1103 and before step S1104. Figure 13As shown in step S1111 indicated by the solid line, the eighth information can be sent after the data path between the first electronic device and the second electronic device is established and before the data path between the first electronic device and the third electronic device is established. The second electronic device is the first slave device to establish a data path with the first electronic device.
[0630] In this embodiment, the eighth information may include: an identifier of the first port, an identifier of the first service channel, and device information of the second electronic device.
[0631] Here, the identifier of the first port and the identifier of the first service channel are used to indicate that a mapping relationship has been established between the first port and the first service channel. The device information of the second electronic device is used to indicate that the data path between the first electronic device and the second electronic device has been established, and the second electronic device can receive the multicast service data sent by the first electronic device.
[0632] Optionally, step S1111 may also be performed after step S1104, such as Figure 13 That is, the eighth information may be sent after the data paths between the first electronic device and the plurality of slave devices are established, wherein the plurality of slave devices include the first slave device that establishes the data path with the first electronic device.
[0633] In this embodiment, the eighth information may include: an identifier of the first port, an identifier of the first service channel, and multicast member information.
[0634] Here, the identifier of the first port and the identifier of the first service channel are used to indicate that a mapping relationship has been established between the first port and the first service channel. The multicast member information includes device information (e.g., device identifiers and / or device addresses) of multiple electronic devices that have established data paths with the first electronic device, indicating electronic devices that can receive multicast service data sent by the first electronic device.
[0635] As an example and not limitation, the eighth information may be Figure 3 Information in #3G, or Figure 4 Information in #4G. For explanations of various information, please refer to the relevant descriptions above. For the sake of brevity, we will not repeat them here.
[0636] In the above embodiment, the second electronic device and the third electronic device may be electronic devices that need to establish a data path with the first electronic device during the process of applying for a service channel (or before performing a multicast service) at the first basic service layer. Figures 3 and 4 The first slave device involved in the description, the third electronic device may be the aforementioned Figures 3 and 4 The description relates to a second slave device.
[0637] Figure 14 A schematic flowchart of another method for configuring a channel for transmitting a multicast service provided by an embodiment of the present application is shown. Method 1400 can be applied to a first electronic device, where the first electronic device includes a first basic application layer, a first basic service layer, and a first access layer. Method 1400 includes steps S1401 to S1415.
[0638] S1401: The first basic service layer receives seventh information sent by the first basic application layer.
[0639] The seventh information is used to indicate application for a service channel for a first port, where the first port is a port used by the first electronic device to transmit first data.
[0640] In some embodiments, the seventh information may include: an identifier of the first port, device information of the second electronic device, and an identifier of the second port, where the second port is a port used by the second electronic device to receive the first data. In this example, the second electronic device is the first slave device to establish a data path with the first electronic device.
[0641] Here, the identifier of the first port is used by the first basic service layer to establish a mapping relationship between the first service channel and the first port. The device information and the second port of the second electronic device are used to indicate the device information and the port used by the first slave device that establishes a data path with the first electronic device.
[0642] In other embodiments, the seventh information may include: an identifier of the first port, multicast member information, and port information of the multicast member.
[0643] Here, the identifier of the first port is used by the first basic service layer to establish a mapping relationship between the first service channel and the first port. The multicast member information includes device information (e.g., device identifier and / or device address) of the electronic device used to receive the first data, which is used to indicate the electronic device that established a data path with the first electronic device before performing the multicast service. The port information of the multicast member includes the identifier of the port used by the electronic device used to receive the first data, which is used to indicate the port used by the electronic device to receive the first data.
[0644] The content included in the seventh information involved in step S1401 is similar to the content included in the seventh information involved in step S1110 of method 1100. It is only briefly explained here. For other unclear details, please refer to the relevant description of step S1110.
[0645] It should be noted that the multicast member information involved in method 1100 may include the second electronic device and the third electronic device, but the multicast member information involved in method 1400 includes the second electronic device but does not include the third electronic device. This is because in method 1400, the second electronic device needs to establish a data path with the first electronic device before performing the multicast service, while the third electronic device needs to establish a data path with the first electronic device during the multicast service. However, it can be understood that the optional embodiments described in method 1100 are also applicable to method 1400, as long as the third electronic device is replaced with other electronic devices that need to establish a data path with the first electronic device before transmitting the multicast service in the relevant description of the third electronic device. For the sake of brevity, only a brief description is given in the description of method 1400. For detailed description, please refer to the relevant description of method 1100.
[0646] S1402: The first basic service layer establishes a first service channel.
[0647] S1403: The first basic service layer sends fifth information to the first access layer.
[0648] The fifth information is used to apply for a logical channel for the first service channel. Accordingly, the first access layer maps the first service channel to the first logical channel according to the fifth information.
[0649] In some embodiments, the fifth information may include: an identifier of the first service channel and device information of the second electronic device.
[0650] Here, the identifier of the first service channel is used by the first access layer to establish a mapping relationship between the first service channel and the first logical channel. The device information of the second electronic device is used to instruct the first access layer to establish a logical link between the first electronic device and the second electronic device.
[0651] In other embodiments, the fifth information may include: an identifier of the first service channel and multicast member information.
[0652] Here, the identifier of the first service channel is used by the first access layer to establish a mapping relationship between the first service channel and the first logical channel. The multicast member information instructs the first access layer to establish a logical link between the first electronic device and each of the electronic devices used to receive the first data. The electronic devices used to receive the first data referred to herein are electronic devices that need to establish a data path with the first electronic device before transmitting the multicast service.
[0653] S1404: The first basic service layer receives sixth information sent by the first access layer.
[0654] The sixth information is used to indicate that a mapping relationship is established between the first service channel and the first logical channel.
[0655] In some embodiments, the sixth information may include: an identifier of the first service channel, an identifier of the first logical channel, and device information of the second electronic device.
[0656] Here, the identifier of the first service channel and the identifier of the first logical channel are used to indicate that a mapping relationship is established between the first service channel and the first logical channel. The device information of the second electronic device is used to indicate that the logical link between the first electronic device and the second electronic device is established.
[0657] In some other embodiments, the sixth information may include: an identifier of the first service channel, an identifier of the first logical channel, and multicast member information.
[0658] Here, the identifier of the first service channel and the identifier of the first logical channel are used to indicate that a mapping relationship has been established between the first service channel and the first logical channel. The multicast member information is used to indicate that a logical link has been established between the first electronic device and each of the multiple electronic devices for receiving the first data. The electronic devices for receiving the first data referred to here are electronic devices that need to establish a data path with the first electronic device before transmitting the multicast service.
[0659] S1405: The first basic service layer sends first information to the second electronic device.
[0660] The first information is used to instruct the second electronic device to establish a second service channel.
[0661] Optionally, the first information may include: an identifier of a second port, an identifier of a first service channel, and an identifier of a first logical channel, wherein the second port is a port used by the second electronic device to transmit the first data.
[0662] S1406: The second electronic device establishes a second service channel.
[0663] At the same time, the second electronic device establishes a mapping relationship between the second service channel and the first service channel, and establishes a mapping relationship between the second service channel and the first logical channel.
[0664] S1407: The first basic service layer receives the second information sent by the second electronic device.
[0665] The second information is used to indicate that a mapping relationship is established between the second service channel and the first service channel.
[0666] Optionally, the second information may include: an identifier of the second service channel. Optionally, the second information may also include an identifier of the first logical channel. The second service channel has a mapping relationship with the second port, and the second service channel has a mapping relationship with the first logical channel.
[0667] S1408. The first basic service layer sends eighth information to the first basic application layer.
[0668] The eighth information is used to indicate that a mapping relationship is established between the first port and the first service channel.
[0669] In some embodiments, the eighth information may include: an identifier of the first port, an identifier of the first service channel, and device information of the second electronic device.
[0670] Here, the identifier of the first port and the identifier of the first service channel are used to indicate that a mapping relationship has been established between the first port and the first service channel. The device information of the second electronic device is used to indicate that the data path between the first electronic device and the second electronic device has been established, and the second electronic device can receive the multicast service data sent by the first electronic device.
[0671] In other embodiments, the eighth information may include: an identifier of the first port, an identifier of the first service channel, and multicast member information.
[0672] Here, the identifier of the first port and the identifier of the first service channel are used to indicate that a mapping relationship has been established between the first port and the first service channel. The multicast member information includes device information (such as device identifiers and / or device addresses) of multiple electronic devices that have established data paths with the first electronic device, and is used to indicate electronic devices that can receive multicast service data sent by the first electronic device. The multiple electronic devices that have established data paths with the first electronic device referred to here refer to electronic devices that need to establish data paths with the first electronic device before multicast service transmission.
[0673] The above steps S1402-S1408 are similar to steps S1107, S1108, S0019, S1101, S1102, S1103, and S1111 in method 1100. For the specific content of the information carried in each step in S1402-S1408, please refer to the relevant description of the corresponding steps in method 1100, which will not be repeated here.
[0674] After completing step S1408, the first electronic device can transmit the multicast service. During the transmission of the multicast service, the third electronic device is a new electronic device that joins the multicast. The process of establishing a data path between the first electronic device and the third electronic device is as follows: Figure 14 Continue to refer to steps S1409-S1415. Figure 14 .
[0675] S1409: The first basic service layer receives the thirteenth information sent by the first basic application layer.
[0676] The thirteenth information is used to apply for reconfiguration of the first service channel to transmit the multicast service between the first electronic device and the third electronic device.
[0677] Optionally, the thirteenth information may include: device information of the third electronic device and an identifier of the first service channel.
[0678] Here, the device information of the third electronic device is used to indicate that the electronic device that establishes a data path with the first electronic device is the third electronic device. The identifier of the first service channel is used to instruct the first basic service layer to reconfigure the first service channel so that the first electronic device can transmit multicast service data (such as the aforementioned first data) to the third electronic device through the first service channel.
[0679] S1410. The first basic service layer sends fourteenth information to the first access layer.
[0680] The fourteenth information is used to instruct the first access layer to establish a logical link between the first electronic device and the third electronic device. Specifically, the fourteenth information is used to instruct the first access layer to establish a logical channel between the access layer of the first electronic device and the access layer of the third electronic device. The logical channel established between the access layer of the first electronic device and the access layer of the third electronic device includes the first logical channel.
[0681] Optionally, the fourteenth information may include: at least one of an identifier of the first service channel and an identifier of the first logical channel, and device information of the third electronic device.
[0682] Here, the identifier of the first service channel and / or the identifier of the first logical channel is used to indicate the establishment of the first logical channel between the access layer of the first electronic device and the third electronic device. In the embodiment of the present application, a mapping relationship has been established between the first service channel and the first logical channel. Therefore, the first access layer can determine that the logical channel to be established between the first electronic device and the third electronic device includes the first logical channel based on the identifier of the first service channel. The device information of the third electronic device is used to instruct the first access layer to establish a logical link between the first electronic device and the third electronic device.
[0683] Optionally, the device information of the third electronic device may include a device identification and / or a device address of the third electronic device.
[0684] The device identifier of the third electronic device may be an identifier obtained by the third electronic device when it leaves the factory, such as device ID, UDID, UUID, IMEI, or the like, or may be an identifier assigned by the first electronic device.
[0685] The device address of the third electronic device may be an address obtained by the third electronic device before leaving the factory, such as a MAC address or a physical address, or may be an address assigned by the network after the third electronic device is connected to the network.
[0686] S1411, the first basic service layer receives the fifteenth information sent by the first access layer.
[0687] The fifteenth information is used to indicate that the logical link between the first electronic device and the third electronic device is established successfully.
[0688] Optionally, the fifteenth information may include an identifier of the first service channel, an identifier of the first logical channel, and device information of the third electronic device.
[0689] Here, the device information of the third electronic device is used to indicate that the establishment of the logical link between the first electronic device and the third electronic device is complete, thereby completing the reconfiguration of the first service channel.
[0690] S1412: The first basic service layer sends third information to the third electronic device.
[0691] The third information is used to instruct the third electronic device to establish a third service channel.
[0692] Optionally, the third information may include: an identifier of a third port, an identifier of the first service channel, and an identifier of the first logical channel, wherein the third port is a port used by the third electronic device to transmit the first data.
[0693] S1413: The third electronic device establishes a third service channel.
[0694] S1414: The first basic service layer receives fourth information sent by the third electronic device.
[0695] The fourth information is used to indicate that a mapping relationship is established between the third service channel and the first service channel.
[0696] Optionally, the fourth information may include: an identifier of a third service channel. Optionally, the fourth information may also include an identifier of a first logical channel. The third service channel has a mapping relationship with the third port, and the third service channel has a mapping relationship with the first logical channel.
[0697] The above steps S1412-S1414 are similar to steps S1104-S1106 in method 1100. For the specific content of the information carried in each step in S1412-S1414, please refer to the relevant description of the corresponding steps in method 1100, which will not be repeated here.
[0698] S1415. The first basic service layer sends sixteenth information to the first basic application layer.
[0699] The sixteenth information is used to indicate that the first service channel is successfully reconfigured, and the multicast service can be transmitted between the first electronic device and the third electronic device through the first service channel.
[0700] Optionally, the sixteenth information may include device information of the third electronic device and an identifier of the first service channel.
[0701] Here, the device information of the third electronic device is used to indicate that the data path between the first electronic device and the third electronic device is established successfully, and the third electronic device can receive the multicast service data sent by the first electronic device.
[0702] Optionally, the sixteenth information may include an identifier of the first port.
[0703] Here, the identifier of the first service channel and / or the identifier of the first port is used to indicate that the reconfiguration of the first service channel is successful.
[0704] As an example and not a limitation, the thirteenth information may be Figure 7 The fourteenth information may be, for example, Figure 7 The fifteenth information can be, for example, Figure 7 The sixteenth information may be, for example, Figure 7 Information in #7G. For explanations of various information, please refer to the relevant descriptions above. For the sake of brevity, we will not repeat them here.
[0705] In the embodiment described in method 1400, the second electronic device may be an electronic device that needs to establish a data path with the first electronic device during the process of applying for a service channel at the first basic service layer (or before performing a multicast service), and the third electronic device may be an electronic device that needs to establish a data path with the first electronic device to join the multicast during the process of transmitting a multicast service to the first electronic device. For example, the second electronic device may be the aforementioned Figures 3 and 4 The first slave device involved in the description, the third electronic device may be the aforementioned Figure 7 The third slave device involved in the description.
[0706] Figure 15 A schematic flow chart of another method for configuring a channel for transmitting a multicast service provided by an embodiment of the present application is shown. The method 1500 can be applied to a first electronic device, wherein the first electronic device includes a first basic application layer, a first basic service layer, and a first access layer. The first basic service layer is configured with a first service channel, and the first access layer is configured with a first logical channel. The first service channel and the first logical channel have a mapping relationship. The first logical channel can receive data (e.g., first data) from the first service channel.
[0707] The method 1500 is mainly used to describe a process of establishing a logical link between a first electronic device and other electronic devices. The method 1500 includes steps S1501 to S1510.
[0708] S1501: The first basic service layer sends ninth information to the first access layer.
[0709] The ninth information is used to instruct the first access layer to establish a logical link between the first electronic device and the second electronic device.
[0710] Optionally, the ninth information may include: device information of the second electronic device and an identifier of the first service channel.
[0711] In some embodiments, the logical link between the first electronic device and the second electronic device includes a first logical channel. The first logical channel is used to transmit data sent from the first electronic device to the other electronic device.
[0712] In some embodiments, the logical link between the first electronic device and the second electronic device includes a first logical channel and a second logical channel. The first logical channel and the second logical channel are both mapped to the first service channel, where the first logical channel is used to transmit data sent from the first electronic device to the second electronic device, and the second logical channel is used to transmit data sent from the second electronic device to the first electronic device. In other words, the first logical channel and the second logical channel are used to transmit uplink and downlink data, respectively.
[0713] S1502: The first basic service layer receives the tenth information sent by the first access layer.
[0714] The tenth information is used to indicate that the logical link between the first electronic device and the second electronic device is established.
[0715] Optionally, if a first logical channel is established between the first electronic device and the second electronic device in step S1501, the tenth information may include device information of the second electronic device, an identifier of the first service channel, and an identifier of the first logical channel.
[0716] Optionally, if in step S1501, a first logical channel and a second logical channel are established between the first electronic device and the second electronic device, the tenth information may include device information of the second electronic device, an identifier of the first service channel, an identifier of the first logical channel, and an identifier of the second logical channel.
[0717] Optionally, the device information of the second electronic device may include a device identification and / or a device address of the second electronic device.
[0718] S1503: The first basic service layer sends first information to the second electronic device.
[0719] The first information is used to instruct the second electronic device to establish a second service channel.
[0720] S1504: The second electronic device establishes a second service channel.
[0721] Optionally, if a first logical channel is established between the first electronic device and the second electronic device in step S1501, then in this step, the second electronic device may further establish a mapping relationship between a second service channel and the first logical channel.
[0722] Optionally, if in step S1501, a first logical channel and a second logical channel are established between the first electronic device and the second electronic device, then in this step, the second electronic device may also establish a mapping relationship between the second service channel and the first logical channel, and a mapping relationship between the second service channel and the second logical channel.
[0723] S1505: The first basic service layer receives second information sent by the second electronic device.
[0724] The second information is used to indicate that a mapping relationship is established between the second service channel and the first service channel.
[0725] The above steps S1503-S1505 are similar to steps S1101-S1103 in method 1100. For the specific content of the information carried in each step of S1503-S1505, please refer to the relevant description of the corresponding steps in method 1100, which will not be repeated here.
[0726] S1506. The first basic service layer sends eleventh information to the first access layer.
[0727] The eleventh information is used to instruct the first access layer to establish a logical link between the first electronic device and the third electronic device.
[0728] Optionally, the eleventh information may include: at least one of an identifier of the first service channel and an identifier of the first logical channel, and device information of the third electronic device.
[0729] In some embodiments, the logical link between the first electronic device and the third electronic device includes a first logical channel. The first logical channel is used to transmit data sent from the first electronic device to the other electronic device.
[0730] In some embodiments, the logical link between the first electronic device and the second electronic device includes a first logical channel and a third logical channel. Both the first logical channel and the third logical channel are mapped to the first service channel, where the first logical channel is used to transmit data sent from the first electronic device to the third electronic device, and the third logical channel is used to transmit data sent from the third electronic device to the first electronic device. In other words, the first logical channel and the third logical channel are used to transmit uplink and downlink data, respectively.
[0731] That is, the first electronic device can establish a first logical channel with each of the second and third electronic devices. The first logical channel is used to transmit service data multicasted by the first electronic device to the second and third electronic devices. Furthermore, a logical channel is established between the first electronic device and the second electronic device, and between the first electronic device and the third electronic device, respectively, for transmitting data sent to the first electronic device.
[0732] S1507: The first basic service layer receives the twelfth information sent by the first access layer.
[0733] The twelfth information is used to indicate that the logical link between the first electronic device and the third electronic device is established successfully.
[0734] Optionally, if in step S1506, a first logical channel is established between the first electronic device and the third electronic device, the twelfth information may include device information of the third electronic device, an identifier of the first service channel, and an identifier of the first logical channel.
[0735] Optionally, if in step S1506, a first logical channel and a third logical channel are established between the first electronic device and the third electronic device, the tenth information may include device information of the third electronic device, an identifier of the first service channel, an identifier of the first logical channel, and an identifier of the third logical channel.
[0736] Optionally, the device information of the third electronic device may include a device identification and / or a device address of the third electronic device.
[0737] S1508: The first basic service layer sends third information to the third electronic device.
[0738] The third information is used to instruct the third electronic device to establish a third service channel.
[0739] S1509: The third electronic device establishes a third service channel.
[0740] Optionally, if a first logical channel is established between the first electronic device and the third electronic device in step S1506, then in this step, the third electronic device may further establish a mapping relationship between a third service channel and the first logical channel.
[0741] Optionally, if in step S1506, a first logical channel and a third logical channel are established between the first electronic device and the third electronic device, then in this step, the third electronic device may also establish a mapping relationship between the third service channel and the first logical channel, and a mapping relationship between the third service channel and the third logical channel.
[0742] S1510, the first basic service layer receives fourth information sent by the third electronic device.
[0743] The fourth information is used to indicate that a mapping relationship is established between the third service channel and the first service channel.
[0744] The above steps S1508-S1510 are similar to steps S1104-S1106 in method 1100. For the specific content of the information carried in each step in S1508-S1510, please refer to the relevant description of the corresponding steps in method 1100, which will not be repeated here.
[0745] As an example and not limitation, the ninth information may be Figure 3 The tenth information can be, for example, Figure 3 The eleventh information may be, for example, Figure 3 The twelfth information can be, for example, Figure 3 Information in #3J.
[0746] As an example and not a limitation, the ninth information and the eleventh information may be combined into Figure 4 The tenth information and the twelfth information can be combined into, for example, Figure 4 Information in #4C.
[0747] For the description of various information, please refer to the relevant description above. For the sake of brevity, we will not repeat it here.
[0748] In an embodiment of the present application, each logical channel established between the first electronic device and the multicast member device can be a unidirectional transmission channel. For example, the aforementioned first logical channel is used to transmit data sent by the first electronic device to other electronic devices; the second logical channel is used to transmit data sent by the second electronic device to the first electronic device; and the third logical channel is used to transmit data sent by the third electronic device to the first electronic device. The service channel established in the basic service layer of the electronic device can be a bidirectional transmission channel. For example, the first service channel on the first electronic device side can transmit data sent by the first electronic device to other electronic devices, and can also transmit data sent by other electronic devices to the first electronic device. Specifically, the first service channel can send data to the first logical channel, and can receive data from the second logical channel or the third logical channel.
[0749] The second electronic device and the third electronic device involved in method 1500 can be any electronic device that establishes a data path with the first electronic device to transmit the multicast service. For example, the second electronic device and the third electronic device can be any two of the first slave device, the second slave device, and the third slave device mentioned in the aforementioned embodiments.
[0750] The embodiments involved in the aforementioned methods 1100 and 1400 can also be applied to method 1500. It should be noted that when the second electronic device is the first slave device to establish a data path with the first electronic device, the fifth information mentioned above can be combined with the ninth information in step S1501 and sent in a single message, and the sixth information mentioned above can be combined with the tenth information in step S1502 and sent in a single message.
[0751] It should be noted that if in the aforementioned methods 1100 and 1400, a logical channel for transmitting uplink data and a logical channel for transmitting downlink data need to be established between the first electronic device and each electronic device receiving multicast service data, for example, corresponding actions are performed in steps S1108-S1109 in method 1100 or steps S1403-S1404, S140-S1411 in method 1400, then the first access layer, in addition to feeding back the identifier of the downlink logical channel (such as the first logical channel) to the first basic service layer, can also feed back the identifier of the corresponding uplink logical channel (such as the second logical channel, the third logical channel).
[0752] Combined with the above Figures 11 to 15 The invention describes the process of creating a multicast service channel and the process of members joining the multicast in the method of configuring a channel for transmitting multicast services provided by the embodiment of the present invention. Figure 16-17 The present invention describes the release process of a multicast service channel and the process of a member leaving a multicast service in a method for configuring a channel for transmitting a multicast service provided by an embodiment of the present application.
[0753] Figure 16 A schematic flowchart of another method for configuring a channel for transmitting multicast services provided by an embodiment of the present application is shown. Figure 16 Method 1600 illustrates the process of a multicast member leaving a multicast, using a second electronic device as an example. The second electronic device may be any slave device receiving a multicast service sent by a first electronic device, such as the aforementioned first slave device, second slave device, or third slave device. Method 1600 includes steps S1601 through S1607.
[0754] S1601: The first basic service layer receives the twenty-first information sent by the first basic application layer.
[0755] The twenty-first information is used to instruct to release a channel for transmitting the first data between the first electronic device and the second electronic device.
[0756] Optionally, the twenty-first information may include: an identifier of the first service channel and device information of the second electronic device.
[0757] Here, the identifier of the first service channel is used to indicate the reconfigured service channel. The device information of the second electronic device is used to indicate the electronic device that has released the data path with the first electronic device, that is, the electronic device that has left the multicast.
[0758] S1602. The first basic service layer sends seventeenth information to the first access layer.
[0759] The seventeenth information is used to instruct the first access layer to release the mapping relationship between the first logical channel and the second service channel.
[0760] Optionally, the seventeenth information may include at least one of an identifier of the first service channel and an identifier of the first logical channel, and device information of the second electronic device.
[0761] Here, the identifier of the first service channel and / or the identifier of the first logical channel is used to indicate the released logical channel. The device information of the second electronic device is used to indicate the electronic device that releases the logical link with the first electronic device.
[0762] In this step, the mapping relationship between the first logical channel and the second logical channel is released. Accordingly, the second electronic device can release the first logical channel on the second electronic device side. If other logical channels are established between the first electronic device and the second electronic device, such as the aforementioned second logical channel, the second electronic device can also release the second logical channel.
[0763] S1603: The first basic service layer receives the eighteenth information sent by the first access layer.
[0764] The eighteenth information is used to indicate that the mapping relationship between the first logical channel and the second service channel is successfully released.
[0765] Optionally, the eighteenth information may include device information of the second electronic device.
[0766] S1604: The first basic service layer sends nineteenth information to the second electronic device.
[0767] The nineteenth information is used to instruct the second electronic device to release the second service channel.
[0768] Optionally, the nineteenth information may include an identifier of a second port and an identifier of a second service channel, wherein the second port is a port used by the second electronic device to receive multicast service data from the first electronic device.
[0769] S1605: The second electronic device releases the second service channel.
[0770] Specifically, the second electronic device may include a second basic service layer and a second basic application layer. The second basic service layer applies to the second basic application layer to release the mapping relationship between the second service channel and the second port according to the nineteenth information. After the mapping relationship between the second service and the second port is successfully released, the second basic service layer releases the second service channel.
[0771] S1606, the first basic service layer receives the twentieth information sent by the second electronic device.
[0772] The twentieth information is used to indicate that the second service channel is released successfully. Accordingly, the first basic service layer can determine that the data path between the second electronic device and the first electronic device is released according to the twentieth information.
[0773] S1607. The first basic service layer sends the twenty-second information to the first basic application layer.
[0774] The twenty-second information is used to indicate that the data path between the second electronic device and the first electronic device is released successfully.
[0775] pass Figure 16 In the illustrated method 1600 , any electronic device that receives multicast service data from the first electronic device may leave the multicast.
[0776] When the second electronic device is the last electronic device connected to the first electronic device to receive multicast service data (eg, first data), the multicast service channel between the first electronic device and the slave device may be released.
[0777] Specifically, refer to Figure 17 , the method 1600 may further include:
[0778] S1608: The first basic service layer releases the first service channel.
[0779] Step S1608 may be performed after step S1606 and before step S1607. The first basic service layer may release the mapping relationship between the first service channel and the first port to release the first service channel. The first port is a port used by the first electronic device to transmit the first data.
[0780] The method 1600 further includes:
[0781] S1609: The first basic application layer releases the first port.
[0782] Step S1609 may be performed after step S1607. The first basic service layer may release the mapping relationship between the first port and the first service channel to release the first port.
[0783] It should be noted that when the second electronic device is the last electronic device connected to the first electronic device to receive multicast service data, the twenty-first information sent in step S1601 can be understood as instructing the release of the first service channel. In this case, the twenty-first information can include: an identifier of the first service channel, without including the device information of the electronic device.
[0784] Similarly, the twenty-second information sent in step S1607 can be understood as also being used to instruct the release of the first port.
[0785] As an example and not limitation, the seventeenth information may be Figure 8 Information #8B in Figure 9 Message #9B in , or Figure 10 The eighteenth information can be, for example, Figure 8 Information in #8C, Figure 9 Information #9C in, or Figure 10 The nineteenth information may be, for example, Figure 8 Information in #8D, Figure 9 Message #9D in, or Figure 10 The twentieth information may be, for example, information #10D or information #10K. Figure 8 Information in #8F, Figure 9 Message #9F in , or Figure 10 The twenty-first information may be, for example, information #10F or information #10M. Figure 8 Information #8A in Figure 9 Information #9A in , or Figure 10 The twenty-second information may be, for example, Figure 9 Information in #9G, or Figure 10 For the description of various information, please refer to the relevant description above. For the sake of brevity, we will not repeat them here.
[0786] Figure 17 The description is given by taking the process of removing the data path between a certain electronic device and the first electronic device as an example. Figure 17 The process shown is also applicable to the process of releasing the data paths between multiple electronic devices and the first electronic device. For example, when the multicast service stops or ends, the data paths between the first electronic device and multiple multicast members can be released uniformly. Figure 17 The process shown in FIG. 1 illustrates the differences between the processes in the two scenarios.
[0787] refer to Figure 17 , when the multicast service stops or ends,
[0788] In step S1601, the first basic application layer may send twenty-first information to the first basic service layer.
[0789] The twenty-first information is used to instruct the release of the first service channel.
[0790] Optionally, the twenty-first information may include: an identifier of the first service channel and / or device information of all online devices used to receive the multicast service sent by the first electronic device.
[0791] Correspondingly, the first basic service layer determines to release the first service channel according to the twenty-first information, so as to release the channel for receiving the multicast service between the first electronic device and other slave devices.
[0792] In step S1602, the first basic service layer may send seventeenth information to the first access layer.
[0793] The seventeenth information is used to instruct the release of the first logical channel. In the case where a logical channel for transmitting uplink data is established between the first electronic device and other electronic devices, it can be understood that the seventeenth information is used to instruct the release of the logical channels established between the first electronic device and each slave device.
[0794] Optionally, the seventeenth information may include: an identifier of the first service channel and / or an identifier of the first logical channel.
[0795] Accordingly, the first access layer may determine to release the first logical channel according to the seventeenth information to release and remove the logical links between the first electronic device and other slave devices. Specifically, the first access layer may remove the logical links between the first electronic device and each slave device sequentially or simultaneously.
[0796] After the first access layer removes the logical link between the first electronic device and the last slave device, the first access layer sends the eighteenth message to the first basic service layer to indicate that the first logical channel has been successfully released. Alternatively, each time a logical link between a slave device and the first electronic device is removed, the first access layer sends the eighteenth message to the first basic service layer to indicate that the logical link between a slave device and the first electronic device has been successfully removed, and also to indicate that the mapping relationship between the first logical channel and a service channel on the slave device side has been released.
[0797] Exemplarily, taking the second electronic device as an example, the eighteenth information sent by the first access layer in step S1603 is used to indicate that the mapping relationship between the first logical channel and the second service channel is released.
[0798] Afterwards, the first basic service layer repeats steps S1604 to S1606 with each slave device to release the service channel on each slave device side.
[0799] After all service channels on the slave device side are released, in step S1608, the first basic service layer releases the first service channel. Specifically, the first basic service layer releases the mapping relationship between the first service channel and the first port, and releases the mapping relationship between the first service channel and the first logical channel, completing the release of the first service channel.
[0800] In step S1607, the first basic service layer sends twenty-second information to the first basic application layer, for instructing the first basic application layer to release the first port.
[0801] Correspondingly, the first basic application layer releases the first port according to the 22nd information, and completes the release of the multicast service channel.
[0802] pass Figure 16 and Figure 17 The method shown can enable an electronic device to leave multicast and release a multicast service channel, thereby achieving flexible multicast communication.
[0803] above Figure 11-17 In the method shown, the basic application layer can be Figure 2 The basic application layer 230 shown in FIG. 2 may include operations performed by the basic application layer, such as Figure 2 The basic service layer can be Figure 2 The basic service layer 220 shown in FIG. 2 may include operations performed by the basic service layer, such as Figure 2 The access layer can be Figure 2 The access layer 210 shown in FIG. 2 may include operations performed by the access layer, such as Figure 2 The corresponding access module in the access layer 210 is shown to execute.
[0804] Combined with the above Figures 1 to 17 The method embodiment of the present application is described in detail. Figures 18 and 19 , the device embodiment of the present application is described in detail. It should be understood that the description of the method embodiment corresponds to the description of the device embodiment, so for parts not described in detail, reference can be made to the previous method embodiment.
[0805] Figure 18 It is a schematic structural diagram of the device provided in the embodiment of the present application. Figure 18 The device 1800 may be Figure 1 or Figure 2 A specific example of the first electronic device. Figure 18 The apparatus 1800 shown may be used to perform Figures 11 to 17 The method shown can be implemented specifically Figures 3 to 10The illustrated embodiments will not be described again in order to avoid redundancy.
[0806] Figure 18 The device 1800 shown includes a service module 1801 , a connection management module 1802 and an access module 1803 .
[0807] The business module 1801 can execute Figures 11 to 17 The various steps or operations performed by the first basic application layer in the method shown, or the execution Figures 3 to 10 The various steps or operations performed by the basic application layer of the host device in the illustrated embodiment, or other processes of performing the methods described herein, are processes performed by the basic application layer of the electronic device, for example.
[0808] The connection management module 1802 can execute Figures 11 to 17 The steps or operations performed by the first basic service layer in the method shown, or the execution Figures 3 to 10 The various steps or operations in the illustrated embodiments are performed by the basic service layer of the master device, or other processes of performing the methods described herein, such as processes performed by the basic service layer of the electronic device.
[0809] The access module 1803 can execute Figures 11 to 17 The steps or operations performed by the first access layer in the method shown, or the execution Figures 3 to 10 In the illustrated embodiments, various steps or operations are performed by an access layer of a master device, or other processes of performing the methods described herein are performed, for example, by an access layer of an electronic device.
[0810] By way of example and not limitation, the service module 1801 may be Figure 2 Any business module in the basic application layer 230 shown. The connection management module 1802 can be Figure 2 The connection management module in the basic service layer 220 shown. The access module 1803 can be Figure 2 The module in the access layer 210 shown supports the SLB access technology, or the module supports the SLE access technology.
[0811] Figure 19 It is a schematic structural diagram of a device provided in another embodiment of the present application. Figure 19 The device 1900 shown may correspond to the device described above, such as the first electronic device or the main device. Specifically, the device 1900 may be Figure 1 or Figure 2 A specific example of the first electronic device.
[0812] The device 1900 includes a processor 1902. In the embodiment of the present application, the processor 1902 is used to implement corresponding control management operations, for example, the processor 1902 is used to support the device to execute the aforementioned embodiment. Figures 11 to 17 The method or operation or function shown, and Figures 3 to 10 The methods, operations, or functions of the illustrated embodiments.
[0813] Optionally, the device 1900 may further include: a memory 1901 and a communication interface 1903. The processor 1902, the communication interface 1903, and the memory 1901 may be interconnected or connected to each other through a bus 1904. Among them, the communication interface 1903 is used to support the device to communicate, and the memory 1110 is used to store the program code and data of the device. The processor 1902 calls the code or data stored in the memory 1901 to implement the corresponding operation. The memory 1901 may be coupled to the processor or not. The coupling in the embodiment of the present application is an indirect coupling or communication connection between devices, units or modules, which can be electrical, mechanical or other forms, and is used for information exchange between devices, units or modules.
[0814] Among them, the processor 1902 can be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute the various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and so on. The communication interface 1903 can be a transceiver, a circuit, a bus, a module or other type of communication interface. The bus 1904 can be a peripheral component interconnect standard (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 13 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0815] An embodiment of the present application further provides a communication system, comprising the first electronic device and the second electronic device described above, and optionally, further comprising the third electronic device described above.
[0816] An embodiment of the present application further provides a computer-readable storage medium having program instructions. When the program instructions are executed by a processor, the processor executes the aforementioned method for configuring a channel for transmitting a multicast service.
[0817] An embodiment of the present application also provides a chip system, which includes at least one processor. When program instructions are executed in the at least one processor, the at least one processor executes the method for configuring a channel for transmitting multicast services mentioned above.
[0818] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0819] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0820] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0821] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0822] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0823] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0824] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A method for configuring a channel for transmitting a multicast service, characterized in that: Applied to a first electronic device, the first electronic device includes a first basic service layer and a first access layer, the first basic service layer is configured with a first service channel, the first access layer is configured with a first logical channel, the first service channel and the first logical channel have a mapping relationship, and the first service channel and the first logical channel are used to transmit first data, the method including: The first basic service layer sends first information to the second electronic device, where the first information is used to instruct the second electronic device to establish a second service channel; The first basic service layer receives second information sent by the second electronic device, where the second information is used to indicate that a mapping relationship is established between the second service channel and the first service channel, wherein the second service channel has a mapping relationship with the first logical channel, and the second service channel is used to receive the first data from the first logical channel; The first basic service layer sends third information to the third electronic device, where the third information is used to instruct the third electronic device to establish a third service channel; The first basic service layer receives fourth information sent by the third electronic device, and the fourth information is used to indicate that a mapping relationship is established between the third service channel and the first service channel, wherein the third service channel has a mapping relationship with the first logical channel, and the third service channel is used to receive the first data from the first logical channel.
2. The method according to claim 1, characterized in that Before the first basic service layer sends the first information to the second electronic device, the method further includes: The first basic service layer establishes the first service channel; The first basic service layer sends fifth information to the first access layer, where the fifth information is used to apply for a logical channel for the first service channel; The first basic service layer receives sixth information sent by the first access layer, where the sixth information is used to indicate that a mapping relationship is established between the first service channel and the first logical channel.
3. The method according to claim 2, characterized in that The fifth information includes an identifier of the first service channel and device information of the second electronic device, wherein the device information of the second electronic device in the fifth information is used to instruct the first access layer to establish a logical link between the first electronic device and the second electronic device; The sixth information includes the identifier of the first service channel, the identifier of the first logical channel and the device information of the second electronic device, wherein the device information of the second electronic device in the sixth information is used to indicate that the logical link between the first electronic device and the second electronic device is established.
4. The method according to claim 2, characterized in that The fifth information includes an identifier of the first service channel and multicast member information, the multicast member information including a device identifier and / or a device address of an electronic device for receiving the first data, wherein the multicast member information in the fifth information is used to instruct the first access layer to establish a logical link between the first electronic device and each of the electronic devices for receiving the first data; The sixth information includes the identifier of the first service channel, the identifier of the first logical channel and the multicast member information, wherein the multicast member information is used to indicate that the logical link between the first electronic device and each electronic device in the electronic device for receiving the first data is established.
5. The method according to claim 2, characterized in that The fifth information includes an identifier of the first service channel and multicast member information, the multicast member information including a device identifier and / or a device address of an electronic device for receiving the first data, wherein the multicast member information in the fifth information is used to instruct the first access layer to establish a logical link between the first electronic device and each of the electronic devices for receiving the first data; The sixth information includes the identifier of the first service channel, the identifier of the first logical channel and the device information of the second electronic device, wherein the device information of the second electronic device in the sixth information indicates that the logical link between the first electronic device and the second electronic device is established.
6. The method according to any one of claims 2 to 5, characterized in that The first electronic device further includes a first basic application layer, and before the first basic service layer establishes the first service channel, further includes: The first basic service layer receives seventh information sent by the first basic application layer, where the seventh information is used to indicate applying for a service channel for a first port, where the first port is a port used by the first electronic device to transmit the first data; The method further comprises: The first basic service layer sends eighth information to the first basic application layer, where the eighth information is used to indicate that a mapping relationship is established between the first port and the first service channel.
7. The method according to claim 6, characterized in that The seventh information includes an identifier of the first port, multicast member information, and port information of the multicast member, wherein the multicast member information includes a device identifier and / or device address of an electronic device for receiving the first data, and the multicast member port information includes an identifier of a port used by the electronic device for receiving the first data; The eighth information includes the identifier of the first port, the identifier of the first service channel, and the device information of the second electronic device; or, The eighth information includes the identifier of the first port, the identifier of the first service channel, and the multicast member information.
8. The method according to claim 7, characterized in that The port used by the electronic device for receiving the first data is obtained through negotiation between the first basic application layer of the first electronic device and each electronic device in the electronic devices for receiving the first data.
9. The method according to claim 1 or 2, characterized in that Before the first basic service layer sends the first information to the second electronic device, the method further includes: The first basic service layer sends ninth information to the first access layer, where the ninth information is used to instruct the first access layer to establish a logical link between the first electronic device and the second electronic device; The first basic service layer receives tenth information sent by the first access layer, where the tenth information is used to indicate that establishment of a logical link between the first electronic device and the second electronic device is complete; Before the first basic service layer sends the third information to the third electronic device, the method further includes: The first basic service layer sends eleventh information to the first access layer, where the eleventh information is used to instruct the first access layer to establish a logical link between the first electronic device and the third electronic device; The first basic service layer receives twelfth information sent by the first access layer, where the twelfth information is used to indicate that establishment of a logical link between the first electronic device and the third electronic device is complete.
10. The method according to claim 9, characterized in that The logical link between the first electronic device and the second electronic device includes the first logical channel and the second logical channel, wherein the second logical channel is mapped to the first service channel and the second service channel respectively, and the second logical channel is used to transmit data sent from the second electronic device to the first electronic device; The logical link between the first electronic device and the third electronic device includes the first logical channel and a third logical channel, wherein the third logical channel is mapped to the first service channel and the third service channel respectively, and the third logical channel is used to transmit data sent by the third electronic device to the first electronic device; The first logical channel is used to transmit data sent from the first electronic device to the second electronic device and the third electronic device.
11. The method according to claim 10, characterized in that The ninth information includes device information of the second electronic device and an identifier of the first service channel; The tenth information includes device information of the second electronic device, an identifier of the first service channel, an identifier of the first logical channel, and an identifier of the second logical channel; The eleventh information includes at least one of an identifier of the first service channel and an identifier of the first logical channel, and device information of the third electronic device; The twelfth information includes device information of the third electronic device, an identifier of the first service channel, an identifier of the first logical channel, and an identifier of the third logical channel.
12. The method according to claim 11, characterized in that The device information of the second electronic device includes a device identification and / or a device address of the second electronic device; The device information of the third electronic device includes a device identification and / or a device address of the third electronic device.
13. The method according to claim 6, characterized in that The first basic service layer sends eighth information to the first basic application layer, including: After the first basic service layer receives the second information and before sending the third information, sending the eighth information to the first basic application layer; Before the first basic service layer sends the third information to the third electronic device, the method further includes: The first basic service layer receives thirteenth information sent by the first basic application layer, where the thirteenth information is used to apply for reconfiguration of the first service channel to transmit a multicast service between the first electronic device and the third electronic device; The first basic service layer sends fourteenth information to the first access layer, where the fourteenth information is used to instruct the first access layer to establish a logical link between the first electronic device and the third electronic device; The first basic service layer receives fifteenth information sent by the first access layer, where the fifteenth information is used to indicate that establishment of a logical link between the first electronic device and the third electronic device is complete; After the first basic service layer receives the fourth information sent by the third electronic device, the method further includes: The first basic service layer sends sixteenth information to the first basic application layer, where the sixteenth information is used to indicate that the first service channel is successfully reconfigured.
14. The method according to claim 13, characterized in that The thirteenth information includes device information of the third electronic device and an identifier of the first service channel; The fourteenth information includes at least one of the identifier of the first service channel and the identifier of the first logical channel, and the device information of the third electronic device; The fifteenth information includes the device information of the third electronic device, the identifier of the first service channel, and the identifier of the first logical channel; The sixteenth information includes the device information of the third electronic device and the identifier of the first service channel.
15. The method according to any one of claims 1 to 5, characterized in that The first information includes an identifier of a second port, an identifier of the first service channel, and an identifier of the first logical channel, wherein the second port is a port used by the second electronic device to transmit the first data; The second information includes an identifier of the second service channel, wherein the second service channel has a mapping relationship with the second port; The third information includes an identifier of a third port, an identifier of the first service channel, and an identifier of the first logical channel, wherein the third port is a port used by the third electronic device to transmit the first data; The fourth information includes an identifier of the third service channel, wherein the third service channel has a mapping relationship with the third port.
16. The method according to any one of claims 1 to 5, characterized in that When it is necessary to release the channel between the first electronic device and the second electronic device for transmitting the first data, the method further includes: The first basic service layer sends seventeenth information to the first access layer, where the seventeenth information is used to instruct the first access layer to release the mapping relationship between the first logical channel and the second service channel; The first basic service layer receives eighteenth information sent by the first access layer, where the eighteenth information is used to indicate that the mapping relationship between the first logical channel and the second service channel is successfully released; The first basic service layer sends nineteenth information to the second electronic device, where the nineteenth information is used to instruct the second electronic device to release the second service channel; The first basic service layer receives twentieth information sent by the second electronic device, where the twentieth information is used to indicate that the second service channel is released successfully.
17. The method according to claim 16, characterized in that The seventeenth information includes the identifier of the first service channel and the device information of the second electronic device; or, The seventeenth information includes an identifier of the first service channel and / or an identifier of the first logical channel.
18. The method according to claim 16, characterized in that The first electronic device further includes a first basic application layer, and the method further includes: The first basic service layer receives twenty-first information sent by the first basic application layer, where the twenty-first information is used to instruct to release a channel between the first electronic device and the second electronic device for transmitting the first data; The twenty-first information includes the identifier of the first service channel and the device information of the second electronic device.
19. The method according to claim 16, wherein The first electronic device further includes a first basic application layer, and the method further includes: The first basic service layer receives twenty-first information sent by the first basic application layer, where the twenty-first information is used to instruct to release the first service channel; The twenty-first information includes an identifier of the first service channel and / or device information of all online devices for receiving the multicast service sent by the first electronic device.
20. The method according to claim 19, characterized in that The second electronic device is the last device connected to the first electronic device for receiving the first data, and the method further includes: The first basic service layer releases the mapping relationship between the first service channel and the first port to release the first service channel, wherein the first port is a port used by the first electronic device to transmit the first data; The first basic service layer sends twenty-second information to the first basic application layer, where the twenty-second information is used to instruct the first basic application layer to release the first port.
21. The method according to any one of claims 1 to 5, characterized in that The first access layer supports Star Flash basic SLB access technology and / or Star Flash low power consumption SLE access technology.
22. A device for configuring a channel for transmitting a multicast service, characterized in that: include: memory for storing computer programs; A processor, configured to execute the computer program stored in the memory, so that the apparatus performs the method according to any one of claims 1 to 21.
23. A device for configuring a channel for transmitting a multicast service, characterized in that: The device comprises at least one processor and a communication interface, wherein the communication interface is used to provide input or output of instructions and / or data for the at least one processor, and the at least one processor executes code instructions so that the device performs the method according to any one of claims 1 to 21.
24. A computer-readable storage medium, characterized in that Computer-executable instructions are stored, and when the computer-executable instructions are run on a computer, the computer is caused to perform the method according to any one of claims 1 to 21.
25. A chip system, characterized in that: The method comprises at least one processor, and when the program instructions are executed in the at least one processor, the at least one processor is caused to perform the method according to any one of claims 1 to 21.
Citation Information
Patent Citations
Communication method and device
CN110769377A
Data packet transmission method based on network service quality and related equipment
CN113630902A