WO2021092839A1 - Data transmission method, electronic devices, system and storage medium - Google Patents

Data transmission method, electronic devices, system and storage medium Download PDF

Info

Publication number
WO2021092839A1
WO2021092839A1 PCT/CN2019/118357 CN2019118357W WO2021092839A1 WO 2021092839 A1 WO2021092839 A1 WO 2021092839A1 CN 2019118357 W CN2019118357 W CN 2019118357W WO 2021092839 A1 WO2021092839 A1 WO 2021092839A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
link
electronic device
isosynchronous
transmission
Prior art date
Application number
PCT/CN2019/118357
Other languages
French (fr)
Chinese (zh)
Inventor
郭仕林
Original Assignee
深圳市汇顶科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市汇顶科技股份有限公司 filed Critical 深圳市汇顶科技股份有限公司
Priority to CN201980005105.7A priority Critical patent/CN111264079B/en
Priority to PCT/CN2019/118357 priority patent/WO2021092839A1/en
Publication of WO2021092839A1 publication Critical patent/WO2021092839A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of data transmission technology, in particular to a data transmission method, electronic equipment, system and storage medium.
  • Communication systems based on wireless networks are widely used, with typical topologies: one-to-one, one-to-many, and many-to-many.
  • the one-to-many topology can be used for the transmission of multiple related data streams.
  • split stereo headset multi-channel wireless home theater, drone cluster control system, etc.
  • an asynchronous link is usually established in the communication system to transmit the data stream.
  • the timeliness of data delivery is higher than the accuracy of data delivery, such as calls, real-time video surveillance, and live TV.
  • the asynchronous link in the communication system cannot meet the timeliness requirements of data delivery.
  • another synchronization link needs to be established in the communication system to ensure the timeliness of data stream transmission.
  • This application provides a data transmission method, electronic equipment, system, and storage medium, aiming to solve the technical problem of the coexistence of a synchronous link and an asynchronous link in the prior art, which increases the hardware overhead and communication bandwidth of the communication system.
  • the present invention provides a data transmission method applied to a first electronic device, including:
  • the asynchronous link data packet is sent to the second electronic device through the transmission link.
  • the present invention provides a data transmission method applied to a second device, including:
  • the data packet including an isosynchronous link data packet or an asynchronous link data packet
  • the present invention provides a first electronic device, including:
  • the obtaining module is used to obtain the isosynchronous link data packet to be transmitted
  • a sending module configured to send isosynchronous link data packets to the second electronic device through the transmission link
  • the obtaining module is also used to obtain the asynchronous link data packet when the isosynchronous link data packet is completely sent to the second electronic device;
  • the sending module is also used to send asynchronous link data packets to the second electronic device through the transmission link.
  • the present invention provides a second electronic device, including:
  • the receiving module is configured to receive the data packet sent by the first electronic device through the transmission link, and the data packet includes an isosynchronous link data packet or an asynchronous link data packet;
  • the extraction module is used to extract the data type of the data packet
  • the second storage module is used to determine a buffer area for storing data packets according to the data type.
  • the present invention provides an electronic device, including: at least one processor and a memory;
  • the memory stores computer execution instructions
  • At least one processor executes computer-executable instructions stored in the memory, so that at least one processor executes the data transmission method involved in the first aspect and the optional solution.
  • the present invention provides a computer-readable storage medium in which computer-executable instructions are stored.
  • the processor executes the computer-executed instructions, the data transmission method involved in the first aspect and the optional solutions is implemented .
  • This application provides a data transmission method, electronic equipment, system, and storage medium.
  • an isosynchronous link data packet that has strict timeliness requirements is first transmitted through a transmission link, and the isosynchronous link data packet is waited for After the transmission is completed, the asynchronous link data packet is transmitted through the transmission link to ensure that the isosynchronous link data packet is delivered in real time, and the receiving device can accurately decode the received data, and realize the transmission on the same link, etc.
  • Synchronous link data packets and asynchronous link data packets are transmitted. There is no need to establish two links to transmit the above data, which reduces the hardware consumption of the communication system and reduces the transmission bandwidth.
  • Figure 1 is a schematic diagram of an existing asynchronous link transmission
  • Figure 2 is a schematic diagram of an existing synchronous link transmission
  • Fig. 3 is a schematic structural diagram of a data transmission system according to an exemplary embodiment of the present invention.
  • Fig. 4 is a schematic flowchart of a data transmission method according to an exemplary embodiment of the present invention.
  • Fig. 5 is a schematic flowchart of a data transmission method according to another exemplary embodiment of the present invention.
  • FIG. 6 is a schematic diagram showing the structure of a buffer area of a first electronic device according to an exemplary embodiment of the present invention.
  • Fig. 7 is a flowchart showing an isosynchronous link transmission instruction according to an exemplary embodiment of the present invention.
  • FIG. 8 is a schematic diagram of the present invention showing an isosynchronous link transmission configuration instruction based on the embodiment shown in FIG. 7;
  • FIG. 9 is a schematic diagram showing the first A-ACL data sending moment based on the embodiment shown in FIG. 7 according to the present invention.
  • FIG. 10 is a flowchart of a data storage instruction of a first electronic device according to an embodiment of the present invention.
  • FIG. 11 is a diagram of the original ACL data structure shown in the embodiment of the present invention.
  • FIG. 12 is a flowchart of a first electronic device data sending instruction shown in an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of the structure of the A-ACL buffer area of the second electronic device shown in the embodiment shown in FIG. 12 of the present invention.
  • FIG. 14 is a schematic diagram of the A-ACL refresh mechanism of the present invention based on the embodiment shown in FIG. 12;
  • FIG. 15 is a schematic diagram of data arrangement according to the embodiment shown in FIG. 12 according to the present invention.
  • Fig. 16 is a flowchart showing a second electronic device data receiving instruction according to an exemplary embodiment of the present invention.
  • FIG. 17 is a schematic diagram showing the structure of a buffer area of a second electronic device according to an exemplary embodiment of the present invention.
  • FIG. 18 is a schematic diagram showing a structure of data transmission through an air interface according to an exemplary embodiment of the present invention.
  • Fig. 19 is a schematic structural diagram of a first electronic device according to an exemplary embodiment of the present invention.
  • Fig. 20 is a schematic structural diagram of a second electronic device according to an exemplary embodiment of the present invention.
  • Fig. 21 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present invention.
  • Wireless Personal Area Network refers to computing devices (such as computers, telephones, handheld terminals (Personal Digital Assistant, PDA), digital cameras) within a personal range (carried with you or within a few meters) Etc.) constitute a wireless communication network.
  • the wireless personal area network can be used to exchange data between these devices, and can also be used to connect to high-level networks or the Internet.
  • Wireless network data transmission has more and more applications in personal area networks (PAN, Personal Area Network), such as wireless headsets, various wearable data sensors, etc.
  • PAN personal area networks
  • Common wireless link bearer methods include WIFI, infrared transmission technology (infrared data association, IrDA for short) or Bluetooth, etc.
  • FIG. 1 is a schematic diagram of an existing asynchronous link transmission. As shown in Figure 1, the data transmitted on the asynchronous link will be retransmitted indefinitely before receiving the confirmation from the peer to ensure that the data will be delivered, but the timeliness is not guaranteed, and it is suitable for transmitting important non-real-time information.
  • FIG. 2 is a schematic diagram of the existing synchronization link transmission. As shown in Figure 2, T_IFS and T_MSS represent time. If the message is not received within the validity period, it will always be retransmitted. After the validity period has expired, the data beyond the validity period will be refreshed, and no transmission will be performed. The data will enter the sending queue to ensure that the data transmission will not be delayed and the data will not be hoarded; the timeliness of the data delivery can be ensured, and the data delivery is not guaranteed.
  • This application provides a data transmission method, electronic equipment, system, and storage medium, aiming to solve the technical problem of the coexistence of a synchronous link and an asynchronous link in the prior art, which increases the hardware overhead and communication bandwidth of the communication system.
  • Fig. 3 is a schematic structural diagram of a data transmission system according to an exemplary embodiment of the present invention.
  • the data transmission system 100 provided by the embodiment of the present invention includes a first electronic device 101 and a second electronic device 102.
  • the first electronic device 101 and the second electronic device 102 are connected through a wireless local area network.
  • the above-mentioned second electronic device and the first electronic device may both be wireless earphones, various wearable data sensors, telephones, handheld terminals, digital cameras, and the like.
  • the first electronic device When the above-mentioned data transmission system transmits data, the first electronic device first receives the user command input by the user. If the user command is to enable isosynchronous transmission, the first electronic device sends the isosynchronous transmission configuration command to the second electronic device for the The first electronic device and the second electronic device complete the isosynchronous transmission configuration. After the above-mentioned data transmission system completes the isosynchronous transmission configuration, the first electronic device obtains the isosynchronous link (Automatically flushable Asynchronous Connection-Less, A-ACL) data, and judges whether the current moment is refresh at the beginning of each event At time, if the current time is the refresh time, the A-ACL data is re-acquired, and the updated A-ACL data is sent.
  • A-ACL Automatically flushable Asynchronous Connection-Less
  • A-ACL data is not updated, and the A-ACL data is directly sent.
  • the asynchronous link (Asynchronous Connection-Less, referred to as ACL) data is obtained, and the above ACL data is sent.
  • Fig. 4 is a schematic flowchart of a data transmission method according to an exemplary embodiment of the present invention. As shown in Figure 4, the data transmission method provided in this embodiment includes:
  • S201 The first electronic device obtains an isosynchronous link data packet to be transmitted.
  • isochronous link data packets have high requirements for real-time transmission.
  • the refresh time arrives, it is allowed to discard the data packets being transmitted and obtain new isochronous link data packets to ensure that the data is delivered on time.
  • the first electronic device determines whether the current time is the refresh time.
  • the current moment is the refresh moment, which means that the refresh moment has arrived.
  • the isochronous link data packet that has been acquired and to be transmitted needs to be discarded, and the isochronous link data packet of the next moment needs to be obtained.
  • the isosynchronous link data packet at the current time is obtained.
  • S202 The first electronic device sends an isosynchronous link data packet to the second electronic device through the transmission link.
  • the current time is the refresh time
  • the refreshed isosynchronous link data packet is sent, and if the refresh time does not come, the isosynchronous link data packet is directly sent.
  • the transmission link is an asynchronous transmission link. Since the asynchronous link ensures the accurate delivery of data packets, there is no data packet loss. Therefore, this application can communicate between the first electronic device and the second electronic device. On the transmission link, isosynchronous link data transmission is performed. And there is only one asynchronous transmission link between the first electronic device and the second electronic device, but there may be multiple other types of links.
  • the first electronic device judges whether the isochronous link data packet is completely sent, and if the judgment result is yes, acquires the asynchronous link data packet.
  • Asynchronous link data packets do not have strict requirements on timeliness, and do not need to be refreshed when the refresh time arrives, but only need to be guaranteed to be delivered.
  • the isochronous link data has strict requirements on timeliness. If the data of the current frame is not transmitted in time before the refresh time, then the data of the current frame will be lost and the data of the next frame will be transmitted. Therefore, in this embodiment, after ensuring that the isochronous link data has been completely transmitted, the asynchronous link data packet is acquired.
  • S204 The first electronic device sends the asynchronous link data packet through the transmission link.
  • the data packet includes an isosynchronous link data packet or an asynchronous link data packet.
  • the second electronic device extracts the data type of the data packet.
  • the second electronic device After receiving the data packet sent by the first electronic device, the second electronic device extracts the data packet type.
  • the second electronic device determines a buffer area for storing the data packet according to the data type.
  • the data type is an isosynchronous link data packet
  • the data packet is stored in the buffer area for storing the asynchronous link data packet. If the data type is a link layer control data packet, the data packet is stored in a buffer area for storing asynchronous link data packets.
  • the data transmission method firstly transmit isosynchronous link data packets that have strict requirements on timeliness, and wait for the completion of the transmission of the isochronous link data packets, and then transmit the asynchronous link data packets, so as to be in the same chain. Both isochronous link data packets and asynchronous link data packets are transmitted on the road. There is no need to establish two links to transmit the above data, which reduces the hardware consumption of the communication system and reduces the transmission bandwidth.
  • Fig. 5 is a schematic structural diagram of a data transmission method according to another exemplary embodiment of the present invention. As shown in FIG. 5, based on the embodiment shown in FIG. 4, the following steps are further included before S201:
  • the first electronic device obtains a user command.
  • the user command is used to determine whether to start isochronous link transmission between the second electronic device and the first electronic device.
  • S302 Determine whether the user command is an open command, and if the judgment result is yes, the first electronic device sends an isosynchronous transmission configuration command. Otherwise, the asynchronous link data is acquired and sent.
  • the refresh time is included in the above isosynchronous transmission configuration command.
  • the second electronic device completes the configuration according to the isosynchronous transmission configuration command.
  • the second electronic device After receiving the isosynchronous transmission configuration command, the second electronic device completes the isosynchronous transmission configuration, and the second electronic device and the first electronic device start isosynchronous link transmission.
  • the first electronic device determines the refresh time according to the isosynchronous transmission configuration command.
  • the first electronic device acquires the data packet to be transmitted and the data packet type of the data packet.
  • data packets received by the application layer can be divided into original asynchronous link data packets and Link Layer Control Protocol (LLCP) data packets
  • the first electronic device stores the corresponding data packet in the corresponding buffer area according to the type of the data packet.
  • FIG. 6 is a schematic diagram showing the structure of a buffer area of the first electronic device according to an exemplary embodiment of the present invention.
  • the buffer is divided into ACL buffer area and LLCP buffer area.
  • the ACL buffer area is used to store asynchronous link data packets, and asynchronous link data packets do not need to be refreshed. Refresh at any time.
  • the LLP buffer area is used to store LLCP buffer data.
  • an A-ACL buffer area is additionally set in the buffer area to store isosynchronous link data, and the isosynchronous link data is allowed to be refreshed.
  • the data packet type can be determined according to the header of the original asynchronous link data packet and the link layer control data packet.
  • the original asynchronous link data packets are further classified and processed, and the original asynchronous link data packets are divided into isosynchronous link data packets and asynchronous link data packets. And store the above-mentioned data packets to the corresponding buffer area respectively.
  • the first electronic device extracts the isosynchronous link data packet from the buffer area storing the isosynchronous link data packet.
  • the second electronic device After receiving the data sent by the first electronic device, the second electronic device will store the corresponding data packet in the corresponding buffer area according to the data packet type. So that the second electronic device decodes the isochronous link data packet and the asynchronous link data.
  • the original ACL data issued by the application layer (Human-Computer Interaction, HCI) interface is classified, the ACL is divided into ACL data and A-ACL data, and the classified The data is packetized into different data buffer areas.
  • the A-ACL buffer area is dedicated to storing A-ACL data, and the ACL data is placed in the ACL buffer area.
  • the first electronic device control layer distinguishes and prioritizes the buffer area. Management, select the corresponding data for transmission.
  • the A-ACL data has not been sent within the agreed time, that is, it has not been confirmed by the peer, and the data will be refreshed, that is, the data will not be sent again, and the pointer will be moved down to the next buffer area to prepare Transfer new data.
  • FIG. 7 is a flow chart of the isosynchronous link transmission command shown in the embodiment shown in FIG. 6 according to the present invention.
  • the second electronic device includes an application layer and a control layer
  • the first electronic device also includes an application layer and a control layer.
  • the second electronic device and the first electronic device need to send the following instructions to establish synchronous link data transmission. :
  • the first electronic device application layer sends an HCI_A_ACL_FLUSH_CONFIG_CMD instruction.
  • the first electronic device application layer obtains the user command, and sends the HCI_A_ACL_FLUSH_CONFIG_CMD instruction according to the user command, and the instruction is used to make the first electronic device initiate an initialization process.
  • S402 The first electronic device control layer replies to the HCI_CMD_CS_EVT instruction.
  • the first electronic device controls the layer and sends an LL_A_ACL_REQ instruction to the second electronic device.
  • the first electronic device control layer replies the HCI_CMD_CS_EVT command to the first electronic device application layer, and at the same time converts the parameters in the HCI_A_ACL_FLUSH_CONFIG_CMD command to link layer parameters, and then initiates to the second electronic device through LL_A_ACL_REQ request.
  • the second electronic device control layer sends the HCI_A_ACL_FLUSH_REQ_EVT instruction to the second electronic device application layer.
  • the second electronic device control layer after receiving the LL_A_ACL_REQ instruction, notifies the second electronic device application layer through the HCI_A_ACL_FLUSH_REQ_EVT instruction, and waits for a reply from the application layer.
  • S405 The second electronic device application layer replies the HCI_A_ACL_FLUSH_ACC_CMD instruction to the second electronic device control layer.
  • the second electronic device application layer replies to the second electronic device control layer through the HCI_A_ACL_FLUSH_ACC_CMD instruction.
  • the second electronic device control layer sends HCI_CMD_CS_EVT to the second electronic device application layer.
  • the second electronic device control layer replies the LL_A_ACL_RSP instruction to the first electronic device control layer.
  • the second electronic device control layer determines whether to respond to the peer request according to the parameters in the HCI_A_ACL_FLUSH_ACC_CMD command, and replies to the first electronic device control layer through the LL_A_ACL_RSP instruction.
  • the first electronic device control layer sends the LL_A_ACL_IND instruction to establish an isosynchronous link transmission configuration between the first electronic device and the second electronic device.
  • FIG. 8 is a schematic diagram showing the transmission configuration instruction of an isosynchronous link based on the embodiment shown in FIG. 7 according to the present invention.
  • FIG. 9 is a schematic diagram showing the first A-ACL data sending time based on the embodiment shown in FIG. 7 according to the present invention.
  • the initiator in the LL_A_ACL_IND message specifies the transmission time point of the first A-ACL data through the Event Counter, and the refresh time of each data packet also starts from the time point corresponding to the first occurrence. Calculation.
  • the LL_A_ACL_IND instruction needs to be sent in advance at the time of the event timer.
  • the most recent event will start to be transmitted according to the parameters agreed in LL_A_ACL_IND.
  • the A-ACL data to be transmitted in the past events are uniformly refreshed in the recent events.
  • the second electronic device and the first electronic device control layer send the LE_A_ACL_FLUSH_CONFIG_CMP_EVT instruction to the local application layer.
  • both parties use LE_A_ACL_FLUSH_CONFIG_CMP_EVT to report that their respective application layer and other synchronization link transmission configurations are completed.
  • FIG. 10 is a flowchart of a data storage instruction of a first electronic device according to an embodiment of the present invention.
  • FIG. 11 is a diagram of the original ACL data structure shown in the embodiment of the present invention. As shown in Figures 10 and 11, the data storage instruction flow is specifically as follows:
  • S501 The first electronic device receives original ACL data sent by the application layer.
  • S506 Set the state of Rx to Rx-A-ACL.
  • S510 Judge whether the currently used cache is an A-ACL cache, and if the judgment result is yes, then go to S511; otherwise, go to S512.
  • FIG. 12 is a flowchart of a first electronic device data sending instruction shown in an embodiment of the present invention. As shown in Figure 12, the sending instruction process is specifically as follows:
  • S602 Determine whether the refresh timer is equal to the event timer. If the judgment result is yes, go to S603; otherwise, go to S604.
  • S604 Determine whether the LLCP buffer is empty; if it is empty, go to S606; otherwise, go to S605.
  • S605 Send the data in the LLCP buffer.
  • S607 Determine whether the ACL cache is empty, if yes, go to S609; otherwise, go to S608.
  • S608 Send ACL data. And transfer to S613.
  • S610 Determine whether the event is completed, and if the result of the determination is yes, then proceed to S614. Otherwise, go to S611.
  • S611 Determine whether the current A-ACL cache is used up, if yes, go to S612, otherwise go to S609.
  • FIG. 13 is a schematic diagram of the structure of the A-ACL buffer area according to the embodiment shown in FIG. 12 according to the present invention.
  • each A-ACL buffer area contains n 251-byte data storage units.
  • the specific data size stored in the data storage unit is determined by the PDU Data length.
  • the number of n data storage units used is determined by the PDU Data length.
  • the BPN decides that the BPN cannot exceed n, and the PDU Data length cannot exceed 251.
  • FIG. 14 is a schematic diagram of the A-ACL refresh mechanism according to the embodiment shown in FIG. 12 according to the present invention.
  • the data frames sent by the application layer are arranged in the same event.
  • the timing of occurrence is as shown in 1, 2 in the above figure.
  • the refresh time of data packet No. 9 unsuccessfully sent to data 7, 8, and 9 has been reached. At this time, data packet No. 13 is sent directly in the next event.
  • FIG. 15 is a schematic diagram of data arrangement based on the embodiment shown in FIG. 12 according to the present invention.
  • A-ACL data transmission if other data that is not allowed to be refreshed, such as ACL and LLCP, needs to be transmitted in the transmission queue, the transmission sequence and transmission timing are shown in Figure 15.
  • LLC data is only allowed Transmission is performed in the first data in the event. Before each event, it is necessary to check whether there is LLCP data to be transmitted, and only one LLC data transmission is performed in each Event. ACL data that is not allowed to be refreshed is only allowed in each event. After the A-ACL data is completely sent, check the switching transmission.
  • the A-ACL data is fragmented, it is not allowed to insert the ACL data frame transmission during the fragmented transmission, that is, the ACL data can be transmitted after the complete transmission of the A-ACL data.
  • the time slot occupied by the transmission of the ACL data packet and the LLCP data packet does not affect the calculation of the refresh timer, that is, it still needs to be refreshed when the refresh time is up.
  • Fig. 16 is a flow chart showing a second electronic device data receiving instruction according to an exemplary embodiment of the present invention. As shown in Figure 16, the received instructions include:
  • S702 Determine whether the refresh timer is the same as the event timer, and if the determination result is yes, go to S703, otherwise, go to S704.
  • S704 Determine whether the LLID of the data is 11, if yes, go to S705, otherwise, go to S705.
  • S705 Store the data packet in the LLCP buffer.
  • S707 Store the data packet in the ACL cache, and enter S710.
  • S708 Store the data packet in the A-ACL cache, and enter S711.
  • S712 Judge whether the current buffer is completely stored, if the judgement result is yes, go to S713, otherwise go to S717.
  • Fig. 17 is a schematic diagram showing a structure of a buffer area of a second electronic device according to an exemplary embodiment of the present invention.
  • Fig. 18 is a schematic diagram showing a structure of data transmission over an air interface according to an exemplary embodiment of the present invention.
  • the ACL data packet will continue to be filtered, and the isosynchronous data stream A-ACL is judged by the reserved LLID, and placed in the corresponding buffer, stored in the header in turn, each PDU stores an A -ACL storage unit.
  • the refresh timer When the refresh timer is equal to the event timer, it means that the current A-ACL data refresh time has arrived, and the opposite end will transmit a new data packet. If the data packet is not received completely, it will report the received part through HCI or other interfaces. Data, and need to mark that the data is incomplete, and point the pointer to the A-ACL cache to the next cache. Wait for new ACL-U data.
  • Fig. 19 is a schematic structural diagram of a first electronic device according to an exemplary embodiment of the present invention. As shown in FIG. 19, the present invention provides a first electronic device, including:
  • the obtaining module 801 is used to obtain the isosynchronous link data packet to be transmitted;
  • the sending module 802 is configured to send isosynchronous link data packets to the second electronic device through the transmission link;
  • the obtaining module 801 is further configured to obtain an asynchronous link data packet when the isosynchronous link data packet is completely sent to the second electronic device;
  • the sending module 802 is further configured to send an asynchronous link data packet to the second electronic device through the transmission link.
  • the obtaining module 801 is specifically used for:
  • the isosynchronous link data packet at the current time is obtained.
  • the obtaining module is also used to obtain user commands
  • the sending module 802 is also used to determine whether the user command is an open command, and if the user command is an open command, send an isosynchronous transmission configuration command to the second electronic device; wherein the isosynchronous transmission configuration command is used to determine the refresh time.
  • the transmission link is an asynchronous transmission link.
  • the electronic device further includes a first storage module 803, wherein:
  • the obtaining module 801 is also used to obtain the data packet to be transmitted and the data packet type of the data packet; wherein, the data packet type includes: isosynchronous link data packet, asynchronous link data packet, and link layer control data packet;
  • the first storage module 803 is configured to store the data packet in the corresponding buffer area according to the type of the data packet.
  • the obtaining module 801 is specifically used for:
  • the isochronous link data packet is extracted from the buffer area where the isochronous link data packet is stored.
  • the obtaining module 801 is further configured to obtain the link layer control data packet from a buffer area storing the link layer control data packet;
  • the sending module 802 is further configured to send a link layer control data packet to the second electronic device through the transmission link.
  • Fig. 20 is a schematic structural diagram of a second electronic device according to an exemplary embodiment of the present invention.
  • the present invention provides a second electronic device, including:
  • the receiving module 901 is configured to receive a data packet sent by the first electronic device through a transmission link, and the data packet includes an isosynchronous link data packet or an asynchronous link data packet;
  • the extraction module 902 is used to extract the data type of the data packet
  • the second storage module 903 is configured to determine a buffer area for storing data packets according to the data type.
  • the second storage module 903 is specifically configured to:
  • the data packet is stored in the buffer area for storing the isosynchronous link data packet at the next time;
  • the data packet is stored in the buffer area for storing the isosynchronous link data packet at the current time.
  • the second electronic device further includes a determining module 904; wherein,
  • the sending module 901 is further configured to receive a synchronous transmission configuration command sent by the first electronic device;
  • the determining module 904 is configured to determine the refresh time according to the synchronous transmission configuration command.
  • the sending module 901 is further configured to receive the link layer control data packet sent by the first electronic device through the transmission link.
  • the transmission link is an asynchronous transmission link.
  • Fig. 21 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present invention. As shown in FIG. 21, the electronic device of this embodiment includes a processor 1001 and a memory 1002.
  • the memory 1002 is used to store computer execution instructions
  • the processor 1001 is configured to execute computer-executable instructions stored in the memory to implement various steps executed by the receiving device in the foregoing embodiment. For details, refer to the relevant description in the foregoing method embodiment.
  • the memory 1002 may be independent or integrated with the processor 1001.
  • the flow control device further includes a bus 1003 for connecting the memory 1002 and the processor 1001.
  • the embodiment of the present invention also provides a computer-readable storage medium, and the computer-readable storage medium stores computer-executable instructions.
  • the processor executes the computer-executed instructions, the above data transmission method is realized.
  • a person of ordinary skill in the art can understand that all or part of the steps in the foregoing method embodiments can be implemented by a program instructing relevant hardware.
  • the aforementioned program can be stored in a computer readable storage medium. When the program is executed, it executes the steps including the foregoing method embodiments; and the foregoing storage medium includes: ROM, RAM, magnetic disk, or optical disk and other media that can store program codes.

Abstract

A data transmission method, electronic devices, a system and a storage medium, the method comprising: acquiring an isosynchronous link data packet to be transmitted; sending the isosynchronous link data packet to a second electronic device by means of a transmission link; when the isosynchronous link data packet is completely sent to the second electronic device, acquiring an asynchronous link data packet; and sending the asynchronous link data packet to the second electronic device by means of the transmission link. The isosynchronous link data packet that has strict timeliness requirements is first transmitted, and once the transmission of the isosynchronous link data packet is complete, the asynchronous link data packet is transmitted to achieve the transmission of both the isosynchronous link data packet and the asynchronous link data packet on the same link.

Description

数据传输方法、电子设备、系统及存储介质Data transmission method, electronic equipment, system and storage medium 技术领域Technical field
本发明涉及数据传输技术领域,尤其涉及一种数据传输方法、电子设备、系统及存储介质。The present invention relates to the field of data transmission technology, in particular to a data transmission method, electronic equipment, system and storage medium.
背景技术Background technique
基于无线网络的通信系统应用非常广泛,典型的拓扑结构:一对一、一对多、多对多。其中,一对多的拓扑结构中可以使用于多个相关数据流的传输。比如:分体式立体声耳机、多声道无线家庭影院、无人机集群控制系统等。Communication systems based on wireless networks are widely used, with typical topologies: one-to-one, one-to-many, and many-to-many. Among them, the one-to-many topology can be used for the transmission of multiple related data streams. For example: split stereo headset, multi-channel wireless home theater, drone cluster control system, etc.
在一些应用场景中,为确保数据流准确及时送达,通常在通信系统中建立异步链路以传输数据流。在另一些应用场景下,数据送达的时效性要求高于数据送达的准确性,如:通话、实时视频监控、电视直播等。然而,通信系统中异步链路无法满足数据送达的时效性要求。此时,需在通信系统中另外建立同步链路,以确保数据流传输的时效性。In some application scenarios, in order to ensure that the data stream is delivered accurately and in time, an asynchronous link is usually established in the communication system to transmit the data stream. In other application scenarios, the timeliness of data delivery is higher than the accuracy of data delivery, such as calls, real-time video surveillance, and live TV. However, the asynchronous link in the communication system cannot meet the timeliness requirements of data delivery. At this time, another synchronization link needs to be established in the communication system to ensure the timeliness of data stream transmission.
现有的同步链路与异步链路并存的方案,能够实现即传输时效性要求高的数据,也能够传输要求准确送达的数据,然而,也增加了通信系统的硬件开销及通信带宽。The existing solution of synchronous link and asynchronous link coexisting can realize the transmission of data requiring high timeliness and data requiring accurate delivery. However, it also increases the hardware overhead and communication bandwidth of the communication system.
发明内容Summary of the invention
本申请提供一种数据传输方法、电子设备、系统及存储介质,旨在解决现有技术采用同步链路与异步链路并存的方案,增加了通信系统的硬件开销及通信带宽的技术问题。This application provides a data transmission method, electronic equipment, system, and storage medium, aiming to solve the technical problem of the coexistence of a synchronous link and an asynchronous link in the prior art, which increases the hardware overhead and communication bandwidth of the communication system.
第一方面,本发明提供一种数据传输方法,应用于第一电子设备,包括:In a first aspect, the present invention provides a data transmission method applied to a first electronic device, including:
获取待传输的等同步链路数据包;Obtain the isosynchronous link data packet to be transmitted;
通过传输链路向第二电子设备发送等同步链路数据包;Sending an isosynchronous link data packet to the second electronic device through the transmission link;
在将等同步链路数据包完整发送给第二电子设备时,获取异步链路数据包;When the isochronous link data packet is completely sent to the second electronic device, acquiring the asynchronous link data packet;
通过传输链路向第二电子设备发送异步链路数据包。The asynchronous link data packet is sent to the second electronic device through the transmission link.
第二方面,本发明提供一种数据传输方法,应用于第二设备,包括:In a second aspect, the present invention provides a data transmission method applied to a second device, including:
通过传输链路接收第一电子设备发送的数据包,数据包包括等同步链路数据包或异步链路数据包;Receiving a data packet sent by the first electronic device through a transmission link, the data packet including an isosynchronous link data packet or an asynchronous link data packet;
提取数据包的数据类型;Extract the data type of the data packet;
根据数据类型确定用于存储数据包的缓存区。Determine the buffer area for storing data packets according to the data type.
第三方面,本发明提供一种第一电子设备,包括:In a third aspect, the present invention provides a first electronic device, including:
获取模块,用于获取待传输的等同步链路数据包;The obtaining module is used to obtain the isosynchronous link data packet to be transmitted;
发送模块,用于通过传输链路向第二电子设备发送等同步链路数据包;A sending module, configured to send isosynchronous link data packets to the second electronic device through the transmission link;
获取模块还用于在将等同步链路数据包完整发送给第二电子设备时,获取异步链路数据包;The obtaining module is also used to obtain the asynchronous link data packet when the isosynchronous link data packet is completely sent to the second electronic device;
发送模块还用于通过传输链路向第二电子设备发送异步链路数据包。The sending module is also used to send asynchronous link data packets to the second electronic device through the transmission link.
第四方面,本发明提供一种第二电子设备,包括:In a fourth aspect, the present invention provides a second electronic device, including:
接收模块,用于通过传输链路接收第一电子设备发送的数据包,数据包包括等同步链路数据包或异步链路数据包;The receiving module is configured to receive the data packet sent by the first electronic device through the transmission link, and the data packet includes an isosynchronous link data packet or an asynchronous link data packet;
提取模块,用于提取数据包的数据类型;The extraction module is used to extract the data type of the data packet;
第二存储模块,用于根据数据类型确定用于存储数据包的缓存区。The second storage module is used to determine a buffer area for storing data packets according to the data type.
第五方面,本发明提供一种电子设备,包括:至少一个处理器和存储器;In a fifth aspect, the present invention provides an electronic device, including: at least one processor and a memory;
其中,存储器存储计算机执行指令;Wherein, the memory stores computer execution instructions;
至少一个处理器执行存储器存储的计算机执行指令,使得至少一个处理器执行第一方面以及可选方案所涉及的数据传输方法。At least one processor executes computer-executable instructions stored in the memory, so that at least one processor executes the data transmission method involved in the first aspect and the optional solution.
第六方面,本发明提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机执行指令,当处理器执行计算机执行指令时,实现第一方面以及可选方案所涉及的数据传输方法。In a sixth aspect, the present invention provides a computer-readable storage medium in which computer-executable instructions are stored. When the processor executes the computer-executed instructions, the data transmission method involved in the first aspect and the optional solutions is implemented .
本申请提供一种数据传输方法、电子设备、系统及存储介质,该数据传输方法中,先通过传输链路传输对时效性有严格要求的等同步链路数据包,待等同步链路数据包传输完毕,再通过传输链路传输异步链路数据包,保证等同步链路数据包实时送达,并使接收设备能准确对接收到的数据进行解码,实现在同一个链路上即传输等同步链路数据包,又传输异步链路数据包,无需建立两个链路以传输上述数据,减少了通信系统的硬件消耗,并且减少了 传输带宽。This application provides a data transmission method, electronic equipment, system, and storage medium. In the data transmission method, an isosynchronous link data packet that has strict timeliness requirements is first transmitted through a transmission link, and the isosynchronous link data packet is waited for After the transmission is completed, the asynchronous link data packet is transmitted through the transmission link to ensure that the isosynchronous link data packet is delivered in real time, and the receiving device can accurately decode the received data, and realize the transmission on the same link, etc. Synchronous link data packets and asynchronous link data packets are transmitted. There is no need to establish two links to transmit the above data, which reduces the hardware consumption of the communication system and reduces the transmission bandwidth.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor.
图1为现有的异步链路传输示意图;Figure 1 is a schematic diagram of an existing asynchronous link transmission;
图2为现有的同步链路传输示意图;Figure 2 is a schematic diagram of an existing synchronous link transmission;
图3为本发明根据一示例性实施例示出的数据传输系统的结构示意图;Fig. 3 is a schematic structural diagram of a data transmission system according to an exemplary embodiment of the present invention;
图4为本发明根据一示例性实施例示出的数据传输方法的流程示意图;Fig. 4 is a schematic flowchart of a data transmission method according to an exemplary embodiment of the present invention;
图5为本发明根据另一示例性实施例示出的数据传输方法的流程示意图;Fig. 5 is a schematic flowchart of a data transmission method according to another exemplary embodiment of the present invention;
图6为本发明根据一示例性实施例示出的第一电子设备缓存区的结构示意图;6 is a schematic diagram showing the structure of a buffer area of a first electronic device according to an exemplary embodiment of the present invention;
图7为本发明根据一示例性实施例示出的等同步链路传输指令流程图;Fig. 7 is a flowchart showing an isosynchronous link transmission instruction according to an exemplary embodiment of the present invention;
图8为本发明基于图7所示实施例示出等同步链路传输配置指令的示意图;FIG. 8 is a schematic diagram of the present invention showing an isosynchronous link transmission configuration instruction based on the embodiment shown in FIG. 7;
图9为本发明基于图7所示实施例示出首个A-ACL数据发送时刻示意图;FIG. 9 is a schematic diagram showing the first A-ACL data sending moment based on the embodiment shown in FIG. 7 according to the present invention;
图10为本发明提出的实施例示出的第一电子设备数据存储指令流程图;FIG. 10 is a flowchart of a data storage instruction of a first electronic device according to an embodiment of the present invention;
图11为本发明所示实施例示出的原始ACL数据结构图;FIG. 11 is a diagram of the original ACL data structure shown in the embodiment of the present invention;
图12为本发明提出的实施例示出的第一电子设备数据发送指令流程图;FIG. 12 is a flowchart of a first electronic device data sending instruction shown in an embodiment of the present invention;
图13为本发明图12所示实施例示出的第二电子设备A-ACL缓存区的结构示意图;13 is a schematic diagram of the structure of the A-ACL buffer area of the second electronic device shown in the embodiment shown in FIG. 12 of the present invention;
图14为本发明基于图12所示实施例示出的A-ACL刷新机制示意图;FIG. 14 is a schematic diagram of the A-ACL refresh mechanism of the present invention based on the embodiment shown in FIG. 12;
图15为本发明基于图12所示实施例示出的数据排布示意图;FIG. 15 is a schematic diagram of data arrangement according to the embodiment shown in FIG. 12 according to the present invention;
图16为本发明根据一示例性实施例示出的第二电子设备数据接收指 令流程图;Fig. 16 is a flowchart showing a second electronic device data receiving instruction according to an exemplary embodiment of the present invention;
图17为本发明根据一示例性实施例示出的第二电子设备缓存区的结构示意图;FIG. 17 is a schematic diagram showing the structure of a buffer area of a second electronic device according to an exemplary embodiment of the present invention;
图18为本发明根据一示例性实施例示出的空口传输数据的结构示意图;FIG. 18 is a schematic diagram showing a structure of data transmission through an air interface according to an exemplary embodiment of the present invention;
图19为本发明根据一示例性实施例示出的第一电子设备的结构示意图;Fig. 19 is a schematic structural diagram of a first electronic device according to an exemplary embodiment of the present invention;
图20为本发明根据一示例性实施例示出的第二电子设备的结构示意图;Fig. 20 is a schematic structural diagram of a second electronic device according to an exemplary embodiment of the present invention;
图21为本发明根据一示例性实施例示出的电子设备的结构示意图。Fig. 21 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present invention.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by a person of ordinary skill in the art without creative work shall fall within the protection scope of this application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例,例如能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects, without having to use To describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein, for example, can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations of them are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those clearly listed. Those steps or units may include other steps or units that are not clearly listed or are inherent to these processes, methods, products, or equipment.
无线个人局域网(Wireless Personal Area Network,缩写为WPAN),是指指个人范围(随身携带或数米之内)的计算设备(如计算机、电话、手持终端(Personal Digital Assistant,简称PDA)、数码相机等)组成的无线通信网络。无线个人局域网既可用于这些设备之间互相交换数据,也可以用于连 接到高层网络或互联网。Wireless Personal Area Network (Wireless Personal Area Network, abbreviated as WPAN), refers to computing devices (such as computers, telephones, handheld terminals (Personal Digital Assistant, PDA), digital cameras) within a personal range (carried with you or within a few meters) Etc.) constitute a wireless communication network. The wireless personal area network can be used to exchange data between these devices, and can also be used to connect to high-level networks or the Internet.
无线网络数据传送在个人局域网中(PAN,Personal Area Network)有着越来越多的应用,比如:无线耳机、各种穿戴式的数据传感器等,通用的无线链路承载方式包括WIFI、红外传输技术(infrared data association,简称:IrDA)或蓝牙等。Wireless network data transmission has more and more applications in personal area networks (PAN, Personal Area Network), such as wireless headsets, various wearable data sensors, etc. Common wireless link bearer methods include WIFI, infrared transmission technology (infrared data association, IrDA for short) or Bluetooth, etc.
有些无线网络数据只需保证数据流准确及时送达,通常在通信系统中建立异步链路以传输上述数据流。图1为现有的异步链路传输示意图。如图1所示,异步链路上传输数据,在未收到对端确认前会无限次的进行重传,保证数据一定送达,但不保证时效性,适合传输重要的非实时信息。Some wireless network data only needs to ensure that the data stream is delivered accurately and in time, and an asynchronous link is usually established in the communication system to transmit the above data stream. Figure 1 is a schematic diagram of an existing asynchronous link transmission. As shown in Figure 1, the data transmitted on the asynchronous link will be retransmitted indefinitely before receiving the confirmation from the peer to ensure that the data will be delivered, but the timeliness is not guaranteed, and it is suitable for transmitting important non-real-time information.
另一些无线网络数据,数据送达的时效性要求高于数据送达的准确性,如:实时通话数据、实时视频监控数据、电视直播数据等。然而,通信系统中异步链路无法满足数据送达的时效性要求。此时,需在通信系统中另外建立同步链路,以确保数据流传输的时效性。图2为现有的同步链路传输示意图。如图2所示,T_IFS和T_MSS表示时间,在消息的有效期内未收到对端回复会一直重传,在超过有效期以后将对超过时效期的数据进行刷新,不再进行传输,同时新的数据将进入发送队列,确保数据传输不会被延时,数据不被囤积;能够确保数据送达的时效性,不保证数据一定送达。For other wireless network data, the timeliness of data delivery is higher than the accuracy of data delivery, such as real-time call data, real-time video surveillance data, and live TV data. However, the asynchronous link in the communication system cannot meet the timeliness requirements of data delivery. At this time, another synchronization link needs to be established in the communication system to ensure the timeliness of data stream transmission. Figure 2 is a schematic diagram of the existing synchronization link transmission. As shown in Figure 2, T_IFS and T_MSS represent time. If the message is not received within the validity period, it will always be retransmitted. After the validity period has expired, the data beyond the validity period will be refreshed, and no transmission will be performed. The data will enter the sending queue to ensure that the data transmission will not be delayed and the data will not be hoarded; the timeliness of the data delivery can be ensured, and the data delivery is not guaranteed.
本申请提供一种数据传输方法、电子设备、系统及存储介质,旨在解决现有技术采用同步链路与异步链路并存的方案,增加了通信系统的硬件开销及通信带宽的技术问题。This application provides a data transmission method, electronic equipment, system, and storage medium, aiming to solve the technical problem of the coexistence of a synchronous link and an asynchronous link in the prior art, which increases the hardware overhead and communication bandwidth of the communication system.
图3为本发明根据一示例性实施例示出的数据传输系统的结构示意图。如图3所示,本发明实施例提供的数据传输系统100包括第一电子设备101和第二电子设备102。在上述数据传输系统100中,第一电子设备101与第二电子设备102通过无线局域网连接。其中,上述第二电子设备和第一电子设备均可以为无线耳机、各种穿戴式的数据传感器、电话、手持终端、数码相机等。Fig. 3 is a schematic structural diagram of a data transmission system according to an exemplary embodiment of the present invention. As shown in FIG. 3, the data transmission system 100 provided by the embodiment of the present invention includes a first electronic device 101 and a second electronic device 102. In the above-mentioned data transmission system 100, the first electronic device 101 and the second electronic device 102 are connected through a wireless local area network. Wherein, the above-mentioned second electronic device and the first electronic device may both be wireless earphones, various wearable data sensors, telephones, handheld terminals, digital cameras, and the like.
当上述数据传输系统传输数据时,第一电子设备先接收用户输入的用户命令,若用户命令为开启等同步传输,则第一电子设备向第二电子设备发送等同步传输配置命令,用于在第一电子设备和第二电子设备完成等同步传输配置。待上述数据传输系统完成等同步传输配置后,第一电子设备获取等同 步链路(Automatically flushable Asynchronous Connection-Less,简称:A-ACL)数据,并在每个事件开始时判断当前时刻是否为刷新时刻,若当前时刻为刷新时刻,则重新获取A-ACL数据,并发送更新后的A-ACL数据。若刷新时刻并未到来,则不更新A-ACL数据,直接发送A-ACL数据。待A-ACL数据发送完后,再获取异步链路(Asynchronous Connection-Less,简称:ACL)数据,并发送上述ACL数据。When the above-mentioned data transmission system transmits data, the first electronic device first receives the user command input by the user. If the user command is to enable isosynchronous transmission, the first electronic device sends the isosynchronous transmission configuration command to the second electronic device for the The first electronic device and the second electronic device complete the isosynchronous transmission configuration. After the above-mentioned data transmission system completes the isosynchronous transmission configuration, the first electronic device obtains the isosynchronous link (Automatically flushable Asynchronous Connection-Less, A-ACL) data, and judges whether the current moment is refresh at the beginning of each event At time, if the current time is the refresh time, the A-ACL data is re-acquired, and the updated A-ACL data is sent. If the refresh time has not arrived, the A-ACL data is not updated, and the A-ACL data is directly sent. After the A-ACL data is sent, the asynchronous link (Asynchronous Connection-Less, referred to as ACL) data is obtained, and the above ACL data is sent.
在上述数据传输系统中,仅在第二电子设备和第一电子设备之间建立一条链路,即可实现ACL数据和A-ACL数据的传输。无需建立两个链路以传输上述数据,减少了通信系统的硬件消耗,并且减少了传输带宽。In the above-mentioned data transmission system, only by establishing a link between the second electronic device and the first electronic device, the transmission of ACL data and A-ACL data can be realized. There is no need to establish two links to transmit the above data, which reduces the hardware consumption of the communication system and reduces the transmission bandwidth.
图4为本发明根据一示例性实施例示出的数据传输方法的流程示意图。如图4所示,本实施例提供的数据传输方法包括:Fig. 4 is a schematic flowchart of a data transmission method according to an exemplary embodiment of the present invention. As shown in Figure 4, the data transmission method provided in this embodiment includes:
S201、第一电子设备获取待传输的等同步链路数据包。S201: The first electronic device obtains an isosynchronous link data packet to be transmitted.
更具体地,等同步链路数据包对传输的实时性要求高,在刷新时刻到来时,允许丢弃正在传输的数据包,获取新等同步链路数据包,以保证数据准时送达。More specifically, isochronous link data packets have high requirements for real-time transmission. When the refresh time arrives, it is allowed to discard the data packets being transmitted and obtain new isochronous link data packets to ensure that the data is delivered on time.
第一电子设备判断当前时刻是否为刷新时刻。当前时刻为刷新时刻,表示刷新时刻已经到来,需要丢弃已经获取的待传输的等同步链路数据包,获取下一时刻的等同步链路数据包。The first electronic device determines whether the current time is the refresh time. The current moment is the refresh moment, which means that the refresh moment has arrived. The isochronous link data packet that has been acquired and to be transmitted needs to be discarded, and the isochronous link data packet of the next moment needs to be obtained.
若当前时刻不是刷新时刻,则获取当前时刻的等同步链路数据包。If the current time is not the refresh time, the isosynchronous link data packet at the current time is obtained.
S202、第一电子设备通过传输链路向第二电子设备发送等同步链路数据包。S202: The first electronic device sends an isosynchronous link data packet to the second electronic device through the transmission link.
更具体地,若当前时刻是刷新时刻,待刷新等同步链路数据包后,再发送刷新后的等同步链路数据包,若刷新时刻并未到来,则直接发送等同步链路数据包。More specifically, if the current time is the refresh time, after the isosynchronous link data packet is to be refreshed, the refreshed isosynchronous link data packet is sent, and if the refresh time does not come, the isosynchronous link data packet is directly sent.
其中,传输链路为异步传输链路,由于异步链路确保数据包准确送达,不存在数据包丢包,由此,本申请可以在第一电子设备和第二电子设备原先已建立的异步传输链路上,进行等同步链路数据传输。且在第一电子设备和第二电子设备之间仅存在一条异步传输链路,但其他类型链路可以为多条。Among them, the transmission link is an asynchronous transmission link. Since the asynchronous link ensures the accurate delivery of data packets, there is no data packet loss. Therefore, this application can communicate between the first electronic device and the second electronic device. On the transmission link, isosynchronous link data transmission is performed. And there is only one asynchronous transmission link between the first electronic device and the second electronic device, but there may be multiple other types of links.
S203、在将等同步链路数据包完整发送给第二电子设备时,第一电子设 备获取异步链路数据包。S203. When the isosynchronous link data packet is completely sent to the second electronic device, the first electronic device obtains the asynchronous link data packet.
第一电子设备判断是否完整发送等同步链路数据包,若判断结果为是,获取异步链路数据包。异步链路数据包对时效性要求不严格,不需要在刷新时刻到来时进行刷新,只需要确保送达。而等同步链路数据对时效性要求严格,如果未在刷新时刻之前及时传输当前帧的数据,那么,就会丢掉当前帧的数据,传输下一帧的数据。因此,本实施例中,在确保已经完整发送等同步链路数据后,再获取异步链路数据包。The first electronic device judges whether the isochronous link data packet is completely sent, and if the judgment result is yes, acquires the asynchronous link data packet. Asynchronous link data packets do not have strict requirements on timeliness, and do not need to be refreshed when the refresh time arrives, but only need to be guaranteed to be delivered. The isochronous link data has strict requirements on timeliness. If the data of the current frame is not transmitted in time before the refresh time, then the data of the current frame will be lost and the data of the next frame will be transmitted. Therefore, in this embodiment, after ensuring that the isochronous link data has been completely transmitted, the asynchronous link data packet is acquired.
S204、第一电子设备通过传输链路发送异步链路数据包。S204: The first electronic device sends the asynchronous link data packet through the transmission link.
更具体地,数据包包括等同步链路数据包或异步链路数据包。More specifically, the data packet includes an isosynchronous link data packet or an asynchronous link data packet.
S205、第二电子设备提取数据包的数据类型。S205. The second electronic device extracts the data type of the data packet.
第二电子设备在接收到第一电子设备发送的数据包后,并提取数据包类型。After receiving the data packet sent by the first electronic device, the second electronic device extracts the data packet type.
S206、第二电子设备根据数据类型确定用于存储数据包的缓存区。S206: The second electronic device determines a buffer area for storing the data packet according to the data type.
更具体地,若数据类型为等同步链路数据包,则确定当前时刻是否为刷新时刻;若当前时刻是刷新时刻,则将数据包存储在用于存储下一时刻的等同步链路数据包的缓存区;若当前时刻不是刷新时刻,则将数据包存储在用于存储当前时刻的等同步链路数据包的缓存区。More specifically, if the data type is an isosynchronous link data packet, it is determined whether the current time is the refresh time; if the current time is the refresh time, the data packet is stored in the isosynchronous link data packet for storing the next time If the current time is not the refresh time, the data packet is stored in the buffer area used to store the isosynchronous link data packet at the current time.
若数据类型为异步链路数据包,则将数据包存储在用于存储异步链路数据包的缓存区。若数据类型为链路层控制数据包,则将数据包存储在用于存储异步链路数据包的缓存区。If the data type is an asynchronous link data packet, the data packet is stored in the buffer area for storing the asynchronous link data packet. If the data type is a link layer control data packet, the data packet is stored in a buffer area for storing asynchronous link data packets.
在本实施例提供的数据传输方法中,先传输对时效性有严格要求的等同步链路数据包,待等同步链路数据包传输完毕,再传输异步链路数据包,实现在同一个链路上既传输等同步链路数据包,又传输异步链路数据包,无需建立两个链路以传输上述数据,减少了通信系统的硬件消耗,并且减少了传输带宽。In the data transmission method provided in this embodiment, firstly transmit isosynchronous link data packets that have strict requirements on timeliness, and wait for the completion of the transmission of the isochronous link data packets, and then transmit the asynchronous link data packets, so as to be in the same chain. Both isochronous link data packets and asynchronous link data packets are transmitted on the road. There is no need to establish two links to transmit the above data, which reduces the hardware consumption of the communication system and reduces the transmission bandwidth.
图5为本发明根据另一示例性实施例示出的数据传输方法的结构示意图。如图5所示,在上述图4所示实施例基础上,在S201之前还包括如下步骤:Fig. 5 is a schematic structural diagram of a data transmission method according to another exemplary embodiment of the present invention. As shown in FIG. 5, based on the embodiment shown in FIG. 4, the following steps are further included before S201:
S301、第一电子设备获取用户命令。S301. The first electronic device obtains a user command.
更具体地,用户命令用于确定是否在第二电子设备和第一电子设备之间开启等同步链路传输。More specifically, the user command is used to determine whether to start isochronous link transmission between the second electronic device and the first electronic device.
S302、判断用户命令是否为开启命令,若判断结果为是,则第一电子设备发送等同步传输配置命令。否则,则获取并发送异步链路数据。S302: Determine whether the user command is an open command, and if the judgment result is yes, the first electronic device sends an isosynchronous transmission configuration command. Otherwise, the asynchronous link data is acquired and sent.
更具体地,在上述等同步传输配置命令中包含有刷新时刻。More specifically, the refresh time is included in the above isosynchronous transmission configuration command.
S303、第二电子设备根据等同步传输配置命令完成配置。S303. The second electronic device completes the configuration according to the isosynchronous transmission configuration command.
更具体地,第二电子设备在接收到等同步传输配置命令后,完成等同步传输配置,第二电子设备和第一电子设备开始进行等同步链路传输。More specifically, after receiving the isosynchronous transmission configuration command, the second electronic device completes the isosynchronous transmission configuration, and the second electronic device and the first electronic device start isosynchronous link transmission.
S304、第一电子设备根据等同步传输配置命令确定刷新时刻。S304. The first electronic device determines the refresh time according to the isosynchronous transmission configuration command.
S305、第一电子设备获取待传输的数据包和数据包的数据包类型。S305. The first electronic device acquires the data packet to be transmitted and the data packet type of the data packet.
更具体地,在实际数据传输中,应用层接收到数据包可以分为原始异步链路数据包以及链路层控制(Link layer Control Protocol,简称:LLCP)数据包More specifically, in actual data transmission, data packets received by the application layer can be divided into original asynchronous link data packets and Link Layer Control Protocol (LLCP) data packets
S306、第一电子设备根据数据包类型将对应数据包存储至对应缓存区。S306. The first electronic device stores the corresponding data packet in the corresponding buffer area according to the type of the data packet.
更具体地,图6为本发明根据一示例性实施例示出的第一电子设备缓存区的结构示意图。如图6所示,现有的异步链路通信方案中,缓存区分为ACL缓存区及LLCP缓存区,其中,ACL缓存区用于存储异步链路数据包,异步链路数据包不需要在刷新时刻进行刷新。LLP缓存区用于存储LLCP缓存数据。在现有基础之上,在缓存区中另外设置A-ACL缓存区,用于存储等同步链路数据,等同步链路数据允许刷新。More specifically, FIG. 6 is a schematic diagram showing the structure of a buffer area of the first electronic device according to an exemplary embodiment of the present invention. As shown in Figure 6, in the existing asynchronous link communication scheme, the buffer is divided into ACL buffer area and LLCP buffer area. The ACL buffer area is used to store asynchronous link data packets, and asynchronous link data packets do not need to be refreshed. Refresh at any time. The LLP buffer area is used to store LLCP buffer data. On the existing basis, an A-ACL buffer area is additionally set in the buffer area to store isosynchronous link data, and the isosynchronous link data is allowed to be refreshed.
在应用层接收到数据包时,根据原始异步链路数据包以及链路层控制数据包的包头即可确定数据包类型。再对原始异步链路数据包进一步分类处理,将原始异步链路数据包分为等同步链路数据包和异步链路数据包。并将上述数据包分别存储至相应缓存区。When a data packet is received at the application layer, the data packet type can be determined according to the header of the original asynchronous link data packet and the link layer control data packet. The original asynchronous link data packets are further classified and processed, and the original asynchronous link data packets are divided into isosynchronous link data packets and asynchronous link data packets. And store the above-mentioned data packets to the corresponding buffer area respectively.
S307、第一电子设备从存储有等同步链路数据包的缓存区提取等同步链路数据包。S307. The first electronic device extracts the isosynchronous link data packet from the buffer area storing the isosynchronous link data packet.
另外,第二电子设备在接收到第一电子设备发送的数据之后,会根据数据包类型将对应数据包存储至对应缓存区。以便第二电子设备对等同步链路数据包和异步链路数据进行解码处理。In addition, after receiving the data sent by the first electronic device, the second electronic device will store the corresponding data packet in the corresponding buffer area according to the data packet type. So that the second electronic device decodes the isochronous link data packet and the asynchronous link data.
在本实施例提供的数据传输方法中,对应用层(Human–Computer  Interaction,简称:HCI)接口下发的原始ACL数据进行分类,将ACL分为ACL数据和A-ACL数据,将分类后的数据分包放入不同的数据缓存区,其中,A-ACL缓存区专门用于存储A-ACL数据,ACL数据放入ACL缓存区,第一电子设备控制层通过对缓存区的区分及优先级管理,选择对应的数据进行传输。其中,A-ACL数据在实现约定的时间内没有完成发送,即未得到对端确认,也将对数据进行刷新,即不再发送该数据,将指针向下移动至下一个缓存区,以准备传输新的数据。In the data transmission method provided in this embodiment, the original ACL data issued by the application layer (Human-Computer Interaction, HCI) interface is classified, the ACL is divided into ACL data and A-ACL data, and the classified The data is packetized into different data buffer areas. Among them, the A-ACL buffer area is dedicated to storing A-ACL data, and the ACL data is placed in the ACL buffer area. The first electronic device control layer distinguishes and prioritizes the buffer area. Management, select the corresponding data for transmission. Among them, the A-ACL data has not been sent within the agreed time, that is, it has not been confirmed by the peer, and the data will be refreshed, that is, the data will not be sent again, and the pointer will be moved down to the next buffer area to prepare Transfer new data.
图7为本发明基于图6所示实施例示出的等同步链路传输指令流程图。如图7所示,第二电子设备包括应用层和控制层,第一电子设备也包括应用层和控制层,在第二电子设备和第一电子设备建立等同步链路数据传输需要发送如下指令:FIG. 7 is a flow chart of the isosynchronous link transmission command shown in the embodiment shown in FIG. 6 according to the present invention. As shown in Figure 7, the second electronic device includes an application layer and a control layer, and the first electronic device also includes an application layer and a control layer. The second electronic device and the first electronic device need to send the following instructions to establish synchronous link data transmission. :
S401、第一电子设备应用层发送HCI_A_ACL_FLUSH_CONFIG_CMD指令。S401. The first electronic device application layer sends an HCI_A_ACL_FLUSH_CONFIG_CMD instruction.
更具体地,第一电子设备应用层获取用户命令,并根据用户命令发送HCI_A_ACL_FLUSH_CONFIG_CMD指令,该指令用于让第一电子设备发起初始化流程。More specifically, the first electronic device application layer obtains the user command, and sends the HCI_A_ACL_FLUSH_CONFIG_CMD instruction according to the user command, and the instruction is used to make the first electronic device initiate an initialization process.
S402、第一电子设备控制层回复HCI_CMD_CS_EVT指令。S402: The first electronic device control layer replies to the HCI_CMD_CS_EVT instruction.
S403、第一电子设备控制层并向第二电子设备发送LL_A_ACL_REQ指令。S403. The first electronic device controls the layer and sends an LL_A_ACL_REQ instruction to the second electronic device.
更具体地,第一电子设备控制层收到HCI_A_ACL_FLUSH_CONFIG_CMD命令后,向第一电子设备应用层回复HCI_CMD_CS_EVT指令,同时将HCI_A_ACL_FLUSH_CONFIG_CMD指令中的参数转换为链路层参数,然后通过LL_A_ACL_REQ向第二电子设备发起请求。More specifically, after receiving the HCI_A_ACL_FLUSH_CONFIG_CMD command, the first electronic device control layer replies the HCI_CMD_CS_EVT command to the first electronic device application layer, and at the same time converts the parameters in the HCI_A_ACL_FLUSH_CONFIG_CMD command to link layer parameters, and then initiates to the second electronic device through LL_A_ACL_REQ request.
S404、第二电子设备控制层向第二电子设备应用层发送HCI_A_ACL_FLUSH_REQ_EVT指令。S404: The second electronic device control layer sends the HCI_A_ACL_FLUSH_REQ_EVT instruction to the second electronic device application layer.
更具体地,第二电子设备控制层收到LL_A_ACL_REQ指令后通过HCI_A_ACL_FLUSH_REQ_EVT指令通知第二电子设备应用层,并等待应用层的回复。More specifically, after receiving the LL_A_ACL_REQ instruction, the second electronic device control layer notifies the second electronic device application layer through the HCI_A_ACL_FLUSH_REQ_EVT instruction, and waits for a reply from the application layer.
S405、第二电子设备应用层向第二电子设备控制层回复HCI_A_ACL_FLUSH_ACC_CMD指令。S405: The second electronic device application layer replies the HCI_A_ACL_FLUSH_ACC_CMD instruction to the second electronic device control layer.
更具体地,第二电子设备应用层通过HCI_A_ACL_FLUSH_ACC_CMD指令回复第二电子设备控制层。More specifically, the second electronic device application layer replies to the second electronic device control layer through the HCI_A_ACL_FLUSH_ACC_CMD instruction.
S406、第二电子设备控制层向第二电子设备应用层发送HCI_CMD_CS_EVT。S406: The second electronic device control layer sends HCI_CMD_CS_EVT to the second electronic device application layer.
S407、第二电子设备控制层向第一电子设备控制层回复LL_A_ACL_RSP指令。S407. The second electronic device control layer replies the LL_A_ACL_RSP instruction to the first electronic device control layer.
更具体地,第二电子设备控制层根据HCI_A_ACL_FLUSH_ACC_CMD命令中的参数判断是否应答对端请求,并通过LL_A_ACL_RSP指令回复第一电子设备控制层。More specifically, the second electronic device control layer determines whether to respond to the peer request according to the parameters in the HCI_A_ACL_FLUSH_ACC_CMD command, and replies to the first electronic device control layer through the LL_A_ACL_RSP instruction.
S408、若LL_A_ACL_RSP指令为允许建立等同步链路传输,第一电子设备控制层发送LL_A_ACL_IND指令,用于在第一电子设备和第二电子设备之间建立等同步链路传输配置。S408. If the LL_A_ACL_RSP instruction allows the establishment of isosynchronous link transmission, the first electronic device control layer sends the LL_A_ACL_IND instruction to establish an isosynchronous link transmission configuration between the first electronic device and the second electronic device.
更具体地,图8为本发明基于图7所示实施例示出等同步链路传输配置指令的示意图。图9为本发明基于图7所示实施例示出首个A-ACL数据发送时刻示意图。如图8和图9所示,在LL_A_ACL_IND报文中发起端通过Event Counter指定第一个A-ACL数据的传输时刻点,每一个数据包的刷新时间也从对应第一次出现的时刻点开始计算。其中,LL_A_ACL_IND指令需要提前在事件计时器的时刻点进行发送,若出现重传导致LL_A_ACL_IND指令晚于事件计时器的时刻点,此时以最近的事件开始按照LL_A_ACL_IND中约定的参数进行传输,对于在已经过去的事件中要传输的A-ACL数据统一在最近的事件中刷新。More specifically, FIG. 8 is a schematic diagram showing the transmission configuration instruction of an isosynchronous link based on the embodiment shown in FIG. 7 according to the present invention. FIG. 9 is a schematic diagram showing the first A-ACL data sending time based on the embodiment shown in FIG. 7 according to the present invention. As shown in Figure 8 and Figure 9, the initiator in the LL_A_ACL_IND message specifies the transmission time point of the first A-ACL data through the Event Counter, and the refresh time of each data packet also starts from the time point corresponding to the first occurrence. Calculation. Among them, the LL_A_ACL_IND instruction needs to be sent in advance at the time of the event timer. If a retransmission causes the LL_A_ACL_IND instruction to be later than the time of the event timer, the most recent event will start to be transmitted according to the parameters agreed in LL_A_ACL_IND. The A-ACL data to be transmitted in the past events are uniformly refreshed in the recent events.
S409、第二电子设备和第一电子设备控制层向本端应用层发送LE_A_ACL_FLUSH_CONFIG_CMP_EVT指令。S409. The second electronic device and the first electronic device control layer send the LE_A_ACL_FLUSH_CONFIG_CMP_EVT instruction to the local application layer.
更具体地,双方通过LE_A_ACL_FLUSH_CONFIG_CMP_EVT报告各自应用层等同步链路传输配置完成。More specifically, both parties use LE_A_ACL_FLUSH_CONFIG_CMP_EVT to report that their respective application layer and other synchronization link transmission configurations are completed.
图10为本发明提出的实施例示出的第一电子设备数据存储指令流程图。图11为本发明所示实施例示出的原始ACL数据结构图。如图10和 11所示,数据存储指令流程具体为:FIG. 10 is a flowchart of a data storage instruction of a first electronic device according to an embodiment of the present invention. FIG. 11 is a diagram of the original ACL data structure shown in the embodiment of the present invention. As shown in Figures 10 and 11, the data storage instruction flow is specifically as follows:
S501、第一电子设备接收应用层发送原始ACL数据。S501: The first electronic device receives original ACL data sent by the application layer.
S502、提取原始ACL数据中PB Flag值。S502. Extract the PB Flag value from the original ACL data.
S503、若PB Flag值为00,则将原始ACL数据存储至ACL缓存。S503: If the PB Flag value is 00, store the original ACL data in the ACL cache.
S504、将Rx的状态设置为Rx-ACL。S504. Set the state of Rx to Rx-ACL.
S505、若PB Flag的值为10,则将原始ACL数据存储至A-ACL缓存。S505: If the value of PBFlag is 10, store the original ACL data in the A-ACL cache.
S506、将Rx的状态设置为Rx-A-ACL。S506: Set the state of Rx to Rx-A-ACL.
S507、若PB Flag的值为01,且Rx的状态为Rx-A-ACL,则进入S505,若PB Flag的值为01,且Rx的状态为Rx-ACL,则进入S503。S507. If the value of PBFlag is 01 and the state of Rx is Rx-A-ACL, then proceed to S505. If the value of PBFlag is 01 and the state of Rx is Rx-ACL, then proceed to S503.
S508、判断数据是否接收完整,若判断结果为是,进入S509,否则,进入S512S508. Judge whether the data is received completely, if the judgement result is yes, go to S509, otherwise, go to S512
S509、将Rx的状态设置为等待。S509. Set the state of Rx to waiting.
S510、判断当前使用缓存是否为A-ACL缓存,若判断结果为是,则进入S511;否则,进入S512。S510: Judge whether the currently used cache is an A-ACL cache, and if the judgment result is yes, then go to S511; otherwise, go to S512.
S511、将指向A-ACL缓存的指针下移一个A-ACL缓存。S511. Move the pointer to the A-ACL cache down by one A-ACL cache.
S512、结束。S512. End.
图12为本发明提出的实施例示出的第一电子设备数据发送指令流程图。如图12所示,发送指令流程具体为:FIG. 12 is a flowchart of a first electronic device data sending instruction shown in an embodiment of the present invention. As shown in Figure 12, the sending instruction process is specifically as follows:
S601、事件开始S601, the event begins
S602、判断刷新计时器是否等于事件计时器。若判断结果为是,则进入S603;否则,进入S604。S602: Determine whether the refresh timer is equal to the event timer. If the judgment result is yes, go to S603; otherwise, go to S604.
S603、将指向A-ACL缓存的指针指向下一缓存。S603. Point the pointer to the A-ACL cache to the next cache.
S604、判断LLCP缓存是否为空;若为空,则进入S606,否则,进入S605。S604: Determine whether the LLCP buffer is empty; if it is empty, go to S606; otherwise, go to S605.
S605、发送LLCP缓存中数据。S605: Send the data in the LLCP buffer.
S606、判断A-ACL数据是否完整发送,若是,则进入S607,否则,进入S609。S606. Judge whether the A-ACL data is sent completely, if yes, go to S607, otherwise, go to S609.
S607、判断ACL缓存是否为空,若是,则进入S609,否则,进入S608。S607: Determine whether the ACL cache is empty, if yes, go to S609; otherwise, go to S608.
S608、发送ACL数据。并转入S613。S608: Send ACL data. And transfer to S613.
S609、继续发送A-ACL数据。S609. Continue to send A-ACL data.
S610、判断事件是否完成,若判断结果为是,则进入S614。否则,进入S611。S610: Determine whether the event is completed, and if the result of the determination is yes, then proceed to S614. Otherwise, go to S611.
S611、判断当前A-ACL缓存是否使用完,若是,则进入S612,否则进入S609。S611: Determine whether the current A-ACL cache is used up, if yes, go to S612, otherwise go to S609.
S612、将指向A-ACL缓存的指针指向下一缓存。S612. Point the pointer to the A-ACL cache to the next cache.
S613、判断事件是否完成,若是,则进入S602;否则,进入S614。S613. Judge whether the event is completed, if yes, go to S602; otherwise, go to S614.
S614、事件结束。S614. The event ends.
图13为本发明根据图12所示实施例示出的A-ACL缓存区的结构示意图。如图13所示,每一个A-ACL缓存区中包含n个251字节的数据存储单元,数据存储单元中存放具体的数据大小由PDU Data length决定,n个数据存储单元具体使用多少个由BPN决定,其中,BPN不能超过n,PDU Data length不能超过251。FIG. 13 is a schematic diagram of the structure of the A-ACL buffer area according to the embodiment shown in FIG. 12 according to the present invention. As shown in Figure 13, each A-ACL buffer area contains n 251-byte data storage units. The specific data size stored in the data storage unit is determined by the PDU Data length. The number of n data storage units used is determined by the PDU Data length. The BPN decides that the BPN cannot exceed n, and the PDU Data length cannot exceed 251.
图14为本发明基于图12所示实施例示出的A-ACL刷新机制示意图。如图14所示,在数据传输中,根据LL_A_ACL_IND报文中PDU Data length、BPN参数将应用层发送的数据帧放在同一个事件进行排布,理想情况下发生时序如上图中1、2、3和4、5、6数据包的发送序列;当数据由于传输丢包、Event中数据传输总数限制在约定的刷新时间内未成功送达,此时将对旧数据进行刷新,需要切换发送队列,让新产生的数据得到发送。如上图中9号数据包未成功发送7、8、9数据的刷新时间已经达到,此时在接下来的事件中直接发送13号数据包。FIG. 14 is a schematic diagram of the A-ACL refresh mechanism according to the embodiment shown in FIG. 12 according to the present invention. As shown in Figure 14, in data transmission, according to the PDU Data length and BPN parameters in the LL_A_ACL_IND message, the data frames sent by the application layer are arranged in the same event. Ideally, the timing of occurrence is as shown in 1, 2 in the above figure. The sending sequence of 3 and 4, 5, and 6 data packets; when the data is not successfully delivered within the agreed refresh time due to packet loss and the total number of data transmissions in the Event, the old data will be refreshed and the sending queue needs to be switched , Let the newly generated data be sent. As shown in the figure above, the refresh time of data packet No. 9 unsuccessfully sent to data 7, 8, and 9 has been reached. At this time, data packet No. 13 is sent directly in the next event.
图15为本发明基于图12所示实施例示出的数据排布示意图。如图15所示,在A-ACL数据传输时,若有其他如ACL、LLCP等不允许刷新的数据在传输队列中需要传输时,传输顺序及传输时机如图15所示,LLCP数据只允许在事件中的第一个数据中进行传输,每一个事件开始前均需要检查是否有LLCP数据需要传输,且每一个Event中只进行一次LLCP数据传输,不允许刷新的ACL数据只允许在每一个A-ACL数据完整发送后,进行检查切换传输,A-ACL数据若出现分片,在分片传输过程中不允许插入ACL数据帧传输,即A-ACL数据完整传输后,才能传输ACL数据。ACL数据包、LLCP数据包传输占用的时隙不影响刷新计时器计算,即刷新时刻到时仍需要刷新。FIG. 15 is a schematic diagram of data arrangement based on the embodiment shown in FIG. 12 according to the present invention. As shown in Figure 15, during A-ACL data transmission, if other data that is not allowed to be refreshed, such as ACL and LLCP, needs to be transmitted in the transmission queue, the transmission sequence and transmission timing are shown in Figure 15. LLC data is only allowed Transmission is performed in the first data in the event. Before each event, it is necessary to check whether there is LLCP data to be transmitted, and only one LLC data transmission is performed in each Event. ACL data that is not allowed to be refreshed is only allowed in each event. After the A-ACL data is completely sent, check the switching transmission. If the A-ACL data is fragmented, it is not allowed to insert the ACL data frame transmission during the fragmented transmission, that is, the ACL data can be transmitted after the complete transmission of the A-ACL data. The time slot occupied by the transmission of the ACL data packet and the LLCP data packet does not affect the calculation of the refresh timer, that is, it still needs to be refreshed when the refresh time is up.
图16为本发明根据一示例性实施例示出的第二电子设备数据接收指令流程图。如图16所示,接收指令包括:Fig. 16 is a flow chart showing a second electronic device data receiving instruction according to an exemplary embodiment of the present invention. As shown in Figure 16, the received instructions include:
S701、接收到数据。S701. Receive data.
S702、判断刷新计时器是否与事件计时器相同,若判断结果为是,进入S703,否则,进入S704。S702: Determine whether the refresh timer is the same as the event timer, and if the determination result is yes, go to S703, otherwise, go to S704.
S703、将指向A-ACL缓存的指针指向下一缓存。S703. Point the pointer to the A-ACL cache to the next cache.
S704、判断数据的LLID是否为11,若是,则进入S705,否则,进入S705。S704: Determine whether the LLID of the data is 11, if yes, go to S705, otherwise, go to S705.
S705、将数据包存入LLCP缓存。S705: Store the data packet in the LLCP buffer.
S706、若LLID是10,则进入S707,若LLID是00,则进入S708,若LLID是01,则进入S709。S706. If the LLID is 10, go to S707, if the LLID is 00, go to S708, and if the LLID is 01, go to S709.
S707、将数据包存入ACL缓存,并进入S710。S707: Store the data packet in the ACL cache, and enter S710.
S708、将数据包存入A-ACL缓存,并进入S711。S708: Store the data packet in the A-ACL cache, and enter S711.
S709、Rx的状态为Rx-A-ACL,则进入S708,Rx的状态为Rx-ACL,则进入S707。In S709, the state of Rx is Rx-A-ACL, then enter S708, and the state of Rx is Rx-ACL, then enter S707.
S710、将Rx的状态设置为Rx-ACL。S710. Set the state of Rx to Rx-ACL.
S711、将Rx的状态设置为Rx-A-ACL。S711. Set the state of Rx to Rx-A-ACL.
S712、判断当前缓存是否存完,若判断结果为是,进入S713,否则进入S717。S712: Judge whether the current buffer is completely stored, if the judgement result is yes, go to S713, otherwise go to S717.
S713、Rx的状态为Rx-A-ACL,则进入S714,Rx的状态为Rx-ACL,则进入S715。In S713, the state of Rx is Rx-A-ACL, then enter S714, and the state of Rx is Rx-ACL, then enter S715.
S714、将指向A-ACL缓存的指针指向下一缓存。S714. Point the pointer to the A-ACL cache to the next cache.
S715、将数据发送至第二电子设备应用层。S715. Send the data to the application layer of the second electronic device.
S716、将Rx的状态设置为空闲。S716: Set the state of Rx to idle.
S717、结束。S717. End.
图17为本发明根据一示例性实施例示出的第二电子设备缓存区的结构示意图。图18为本发明根据一示例性实施例示出的空口传输数据的结构示意图。Fig. 17 is a schematic diagram showing a structure of a buffer area of a second electronic device according to an exemplary embodiment of the present invention. Fig. 18 is a schematic diagram showing a structure of data transmission over an air interface according to an exemplary embodiment of the present invention.
如图17和18所示。在本实施例中,在空口传输时,参考蓝牙传输协议, header部分格式由对应的协议规定,可以将LLID=00b用于A-ACL数据包的起始帧。第二电子设备通过LLID过滤后ACL数据包将被继续过滤,通过保留的LLID判断出等同步数据流A-ACL,并将其放入对应缓存,由头部依次存放,每一个PDU存放一个A-ACL存储单元。As shown in Figures 17 and 18. In this embodiment, during air interface transmission, referring to the Bluetooth transmission protocol, the format of the header part is specified by the corresponding protocol, and LLID=00b can be used for the initial frame of the A-ACL data packet. After the second electronic device passes the LLID filtering, the ACL data packet will continue to be filtered, and the isosynchronous data stream A-ACL is judged by the reserved LLID, and placed in the corresponding buffer, stored in the header in turn, each PDU stores an A -ACL storage unit.
当接收到的PDU个数等于BPN时,则认为当前数据已经完整接收,通过HCI或者其他接口上报数据,将指向A-ACL缓存的指针指向下一缓存。When the number of received PDUs is equal to BPN, it is considered that the current data has been completely received, and the data is reported through HCI or other interfaces, and the pointer to the A-ACL buffer is pointed to the next buffer.
当刷新计时器与事件计时器相等时,说明当前A-ACL数据刷新时机到来,对端将传输新的数据包,此时数据包若未完整接收将通过HCI或者其他接口上报已经收到的部分数据,且需标记数据不完整,将指向A-ACL缓存的指针指向下一缓存。等待新的ACL-U数据。When the refresh timer is equal to the event timer, it means that the current A-ACL data refresh time has arrived, and the opposite end will transmit a new data packet. If the data packet is not received completely, it will report the received part through HCI or other interfaces. Data, and need to mark that the data is incomplete, and point the pointer to the A-ACL cache to the next cache. Wait for new ACL-U data.
图19为本发明根据一示例性实施例示出的第一电子设备的结构示意图。如图19所示,本发明提供一种第一电子设备,包括:Fig. 19 is a schematic structural diagram of a first electronic device according to an exemplary embodiment of the present invention. As shown in FIG. 19, the present invention provides a first electronic device, including:
获取模块801,用于获取待传输的等同步链路数据包;The obtaining module 801 is used to obtain the isosynchronous link data packet to be transmitted;
发送模块802,用于通过传输链路向第二电子设备发送等同步链路数据包;The sending module 802 is configured to send isosynchronous link data packets to the second electronic device through the transmission link;
获取模块801还用于在将等同步链路数据包完整发送给第二电子设备时,获取异步链路数据包;The obtaining module 801 is further configured to obtain an asynchronous link data packet when the isosynchronous link data packet is completely sent to the second electronic device;
发送模块802还用于通过传输链路向第二电子设备发送异步链路数据包。The sending module 802 is further configured to send an asynchronous link data packet to the second electronic device through the transmission link.
可选地,获取模块801,具体用于:Optionally, the obtaining module 801 is specifically used for:
若当前时刻为刷新时刻,则获取下一时刻的等同步链路数据包;If the current time is the refresh time, obtain the isosynchronous link data packet at the next time;
若当前时刻不是刷新时刻,则获取当前时刻的等同步链路数据包。If the current time is not the refresh time, the isosynchronous link data packet at the current time is obtained.
可选地,获取模块还用于获取用户命令;Optionally, the obtaining module is also used to obtain user commands;
发送模块802还用于确定用户命令是否为开启命令,若用户命令为开启命令,则向第二电子设备发送等同步传输配置命令;其中,等同步传输配置命令用于确定刷新时刻。The sending module 802 is also used to determine whether the user command is an open command, and if the user command is an open command, send an isosynchronous transmission configuration command to the second electronic device; wherein the isosynchronous transmission configuration command is used to determine the refresh time.
可选地,传输链路为异步传输链路。Optionally, the transmission link is an asynchronous transmission link.
可选地,电子设备还包括第一存储模块803,其中,Optionally, the electronic device further includes a first storage module 803, wherein:
获取模块801还用于获取待传输的数据包和数据包的数据包类型;其中,数据包类型包括:等同步链路数据包、异步链路数据包以及链路层控制数据 包;The obtaining module 801 is also used to obtain the data packet to be transmitted and the data packet type of the data packet; wherein, the data packet type includes: isosynchronous link data packet, asynchronous link data packet, and link layer control data packet;
第一存储模块803用于根据数据包类型将数据包存储至对应缓存区。The first storage module 803 is configured to store the data packet in the corresponding buffer area according to the type of the data packet.
可选地,获取模块801,具体用于:Optionally, the obtaining module 801 is specifically used for:
从存储有等同步链路数据包的缓存区提取等同步链路数据包。The isochronous link data packet is extracted from the buffer area where the isochronous link data packet is stored.
可选地,获取模块801还用于从存储有链路层控制数据包的缓存区获取链路层控制数据包;Optionally, the obtaining module 801 is further configured to obtain the link layer control data packet from a buffer area storing the link layer control data packet;
发送模块802还用于通过传输链路向第二电子设备发送链路层控制数据包。The sending module 802 is further configured to send a link layer control data packet to the second electronic device through the transmission link.
图20为本发明根据一示例性实施例示出的第二电子设备的结构示意图。本发明提供一种第二电子设备,包括:Fig. 20 is a schematic structural diagram of a second electronic device according to an exemplary embodiment of the present invention. The present invention provides a second electronic device, including:
接收模块901,用于通过传输链路接收第一电子设备发送的数据包,数据包包括等同步链路数据包或异步链路数据包;The receiving module 901 is configured to receive a data packet sent by the first electronic device through a transmission link, and the data packet includes an isosynchronous link data packet or an asynchronous link data packet;
提取模块902,用于提取数据包的数据类型;The extraction module 902 is used to extract the data type of the data packet;
第二存储模块903,用于根据数据类型确定用于存储数据包的缓存区。The second storage module 903 is configured to determine a buffer area for storing data packets according to the data type.
可选地,第二存储模块903具体用于:Optionally, the second storage module 903 is specifically configured to:
若数据类型为等同步链路数据包,则确定当前时刻是否为刷新时刻;If the data type is an isosynchronous link data packet, determine whether the current time is the refresh time;
若当前时刻是刷新时刻,则将数据包存储在用于存储下一时刻的等同步链路数据包的缓存区;If the current time is the refresh time, the data packet is stored in the buffer area for storing the isosynchronous link data packet at the next time;
若当前时刻不是刷新时刻,则将数据包存储在用于存储当前时刻的等同步链路数据包的缓存区。If the current time is not the refresh time, the data packet is stored in the buffer area for storing the isosynchronous link data packet at the current time.
可选地,第二电子设备还包括确定模块904;其中,Optionally, the second electronic device further includes a determining module 904; wherein,
发送模块901还用于接收第一电子设备发送的同步传输配置命令;The sending module 901 is further configured to receive a synchronous transmission configuration command sent by the first electronic device;
确定模块904用于根据同步传输配置命令确定刷新时刻。The determining module 904 is configured to determine the refresh time according to the synchronous transmission configuration command.
可选地,发送模块901还用于通过传输链路接收第一电子设备发送的链路层控制数据包。Optionally, the sending module 901 is further configured to receive the link layer control data packet sent by the first electronic device through the transmission link.
可选地,传输链路为异步传输链路。Optionally, the transmission link is an asynchronous transmission link.
图21为本发明根据一示例性实施例示出的电子设备的结构示意图。如图21所示,本实施例的电子设备包括:处理器1001以及存储器1002。Fig. 21 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present invention. As shown in FIG. 21, the electronic device of this embodiment includes a processor 1001 and a memory 1002.
其中。存储器1002,用于存储计算机执行指令;among them. The memory 1002 is used to store computer execution instructions;
处理器1001,用于执行存储器存储的计算机执行指令,以实现上述实 施例中接收设备所执行的各个步骤。具体可以参见前述方法实施例中的相关描述。The processor 1001 is configured to execute computer-executable instructions stored in the memory to implement various steps executed by the receiving device in the foregoing embodiment. For details, refer to the relevant description in the foregoing method embodiment.
可选的,存储器1002既可以是独立的,也可以跟处理器1001集成在一起。Optionally, the memory 1002 may be independent or integrated with the processor 1001.
当存储器1002独立设置时,该流量控制设备还包括总线1003,用于连接存储器1002和处理器1001。When the memory 1002 is independently provided, the flow control device further includes a bus 1003 for connecting the memory 1002 and the processor 1001.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机执行指令,当处理器执行计算机执行指令时,实现如上的数据传输方法。The embodiment of the present invention also provides a computer-readable storage medium, and the computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executed instructions, the above data transmission method is realized.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。A person of ordinary skill in the art can understand that all or part of the steps in the foregoing method embodiments can be implemented by a program instructing relevant hardware. The aforementioned program can be stored in a computer readable storage medium. When the program is executed, it executes the steps including the foregoing method embodiments; and the foregoing storage medium includes: ROM, RAM, magnetic disk, or optical disk and other media that can store program codes.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions recorded in the foregoing embodiments can still be modified, or some or all of the technical features can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present invention. range.

Claims (26)

  1. 一种数据传输方法,其特征在于,应用于第一电子设备,包括:A data transmission method, characterized in that it is applied to a first electronic device, and includes:
    获取待传输的等同步链路数据包;Obtain the isosynchronous link data packet to be transmitted;
    通过传输链路向第二电子设备发送所述等同步链路数据包;Sending the isosynchronous link data packet to the second electronic device through a transmission link;
    在将所述等同步链路数据包完整发送给所述第二电子设备时,获取异步链路数据包;Acquiring an asynchronous link data packet when the isosynchronous link data packet is completely sent to the second electronic device;
    通过所述传输链路向所述第二电子设备发送所述异步链路数据包。Sending the asynchronous link data packet to the second electronic device through the transmission link.
  2. 根据权利要求1所述的方法,其特征在于,所述获取待传输的等同步链路数据包,具体包括:The method according to claim 1, wherein said obtaining the isosynchronous link data packet to be transmitted specifically comprises:
    若当前时刻为刷新时刻,则获取下一时刻的所述等同步链路数据包;If the current moment is the refresh moment, acquiring the isosynchronous link data packet at the next moment;
    若所述当前时刻不是所述刷新时刻,则获取当前时刻的所述等同步链路数据包。If the current time is not the refresh time, the isosynchronous link data packet at the current time is acquired.
  3. 根据权利要求2所述的方法,其特征在于,在所述获取待传输的等同步链路数据包,之前还包括:The method according to claim 2, characterized in that, before said obtaining the isosynchronous link data packet to be transmitted, the method further comprises:
    获取用户命令;Get user commands;
    确定所述用户命令是否为开启命令,若所述用户命令为所述开启命令,则向所述第二电子设备发送等同步传输配置命令;其中,所述等同步传输配置命令用于确定所述刷新时刻。It is determined whether the user command is an opening command, and if the user command is the opening command, an isosynchronous transmission configuration command is sent to the second electronic device; wherein, the isosynchronous transmission configuration command is used to determine the Refresh moment.
  4. 根据权利要求1或2所述的方法,其特征在于,所述传输链路为异步传输链路。The method according to claim 1 or 2, wherein the transmission link is an asynchronous transmission link.
  5. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, wherein the method further comprises:
    获取待传输的数据包和所述数据包的数据包类型;其中,所述数据包类型包括:所述等同步链路数据包、所述异步链路数据包以及链路层控制数据包;Acquiring the data packet to be transmitted and the data packet type of the data packet; wherein the data packet type includes: the isosynchronous link data packet, the asynchronous link data packet, and the link layer control data packet;
    根据所述数据包类型将所述数据包存储至对应缓存区。The data packet is stored in the corresponding buffer area according to the data packet type.
  6. 根据权利要求5所述的方法,其特征在于,所述获取待传输的等同步链路数据包,包括:The method according to claim 5, wherein said obtaining isosynchronous link data packets to be transmitted comprises:
    从存储有所述等同步链路数据包的缓存区提取所述等同步链路数据包。Extract the isosynchronous link data packet from the buffer area storing the isosynchronous link data packet.
  7. 根据权利要求5所述的方法,其特征在于,所述通过传输链路向第二电子设备发送所述等同步链路数据包之前,所述方法还包括:The method according to claim 5, wherein before the sending the isosynchronous link data packet to the second electronic device through a transmission link, the method further comprises:
    从存储有所述链路层控制数据包的缓存区获取所述链路层控制数据包;Acquiring the link layer control data packet from a buffer area storing the link layer control data packet;
    通过所述传输链路向所述第二电子设备发送所述链路层控制数据包。Sending the link layer control data packet to the second electronic device through the transmission link.
  8. 一种数据传输方法,其特征在于,应用于第二设备,包括:A data transmission method, characterized in that it is applied to a second device, and includes:
    通过传输链路接收第一电子设备发送的数据包,所述数据包包括等同步链路数据包或异步链路数据包;Receiving a data packet sent by the first electronic device through a transmission link, where the data packet includes an isosynchronous link data packet or an asynchronous link data packet;
    提取所述数据包的数据类型;Extract the data type of the data packet;
    根据所述数据类型确定用于存储所述数据包的缓存区。A buffer area for storing the data packet is determined according to the data type.
  9. 根据权利要求8所述的方法,其特征在于,所述根据所述数据类型确定用于存储所述数据包的缓存区,具体包括:The method according to claim 8, wherein the determining a buffer area for storing the data packet according to the data type specifically comprises:
    若所述数据类型为等同步链路数据包,则确定当前时刻是否为刷新时刻;If the data type is an isosynchronous link data packet, it is determined whether the current moment is the refresh moment;
    若所述当前时刻是刷新时刻,则将所述数据包存储在用于存储下一时刻的等同步链路数据包的缓存区;If the current time is the refresh time, storing the data packet in a buffer area for storing the isosynchronous link data packet of the next time;
    若所述当前时刻不是刷新时刻,则将所述数据包存储在用于存储所述当前时刻的等同步链路数据包的缓存区。If the current time is not the refresh time, the data packet is stored in a buffer area for storing the isosynchronous link data packet of the current time.
  10. 根据权利要求9所述的方法,其特征在于,在所述通过传输链路接收第一电子设备发送的数据包,之前还包括:The method according to claim 9, characterized in that, before the receiving the data packet sent by the first electronic device through the transmission link, the method further comprises:
    接收所述第一电子设备发送的同步传输配置命令;Receiving a synchronous transmission configuration command sent by the first electronic device;
    根据所述同步传输配置命令确定所述刷新时刻。The refresh time is determined according to the synchronous transmission configuration command.
  11. 根据权利要求8或9所述的方法,其特征在于,所述通过传输链路接收第一电子设备发送的数据包之前,所述方法还包括:The method according to claim 8 or 9, characterized in that, before the receiving the data packet sent by the first electronic device through the transmission link, the method further comprises:
    通过所述传输链路接收所述第一电子设备发送的链路层控制数据包。Receiving the link layer control data packet sent by the first electronic device through the transmission link.
  12. 根据权利要求8或9所述的方法,其特征在于,所述传输链路为异步传输链路。The method according to claim 8 or 9, wherein the transmission link is an asynchronous transmission link.
  13. 一种第一电子设备,其特征在于,包括:A first electronic device, characterized by comprising:
    获取模块,用于获取待传输的等同步链路数据包;The obtaining module is used to obtain the isosynchronous link data packet to be transmitted;
    发送模块,用于通过传输链路向第二电子设备发送所述等同步链路数据包;A sending module, configured to send the isosynchronous link data packet to the second electronic device through a transmission link;
    所述获取模块还用于在将所述等同步链路数据包完整发送给所述第二电子设备时,获取异步链路数据包;The obtaining module is further configured to obtain an asynchronous link data packet when the isosynchronous link data packet is completely sent to the second electronic device;
    所述发送模块还用于通过所述传输链路向所述第二电子设备发送所述异 步链路数据包。The sending module is further configured to send the asynchronous link data packet to the second electronic device through the transmission link.
  14. 根据权利要求13所述的电子设备,其特征在于,所述获取模块,具体用于:The electronic device according to claim 13, wherein the acquiring module is specifically configured to:
    若当前时刻为刷新时刻,则获取下一时刻的所述等同步链路数据包;If the current moment is the refresh moment, acquiring the isosynchronous link data packet at the next moment;
    若所述当前时刻不是所述刷新时刻,则获取当前时刻的所述等同步链路数据包。If the current time is not the refresh time, the isosynchronous link data packet at the current time is acquired.
  15. 根据权利要求14所述的电子设备,其特征在于,The electronic device according to claim 14, wherein:
    所述获取模块还用于获取用户命令;The acquiring module is also used to acquire user commands;
    所述发送模块还用于确定所述用户命令是否为开启命令,若所述用户命令为所述开启命令,则向所述第二电子设备发送等同步传输配置命令;其中,所述等同步传输配置命令用于确定所述刷新时刻。The sending module is also used to determine whether the user command is an open command, and if the user command is the open command, send an isosynchronous transmission configuration command to the second electronic device; wherein, the isosynchronous transmission The configuration command is used to determine the refresh time.
  16. 根据权利要求13或14所述的电子设备,其特征在于,所述传输链路为异步传输链路。The electronic device according to claim 13 or 14, wherein the transmission link is an asynchronous transmission link.
  17. 根据权利要求13或14所述的电子设备,其特征在于,所述电子设备还包括第一存储模块,其中,The electronic device according to claim 13 or 14, wherein the electronic device further comprises a first storage module, wherein:
    所述获取模块还用于获取待传输的数据包和所述数据包的数据包类型;其中,所述数据包类型包括:所述等同步链路数据包、所述异步链路数据包以及链路层控制数据包;The acquisition module is also used to acquire the data packet to be transmitted and the data packet type of the data packet; wherein, the data packet type includes: the isosynchronous link data packet, the asynchronous link data packet, and the chain Road layer control data packet;
    所述第一存储模块用于根据所述数据包类型将所述数据包存储至对应缓存区。The first storage module is configured to store the data packet in a corresponding buffer area according to the data packet type.
  18. 根据权利要求17所述的电子设备,其特征在于,所述获取模块,具体用于:The electronic device according to claim 17, wherein the acquiring module is specifically configured to:
    从存储有所述等同步链路数据包的缓存区提取所述等同步链路数据包。Extract the isosynchronous link data packet from the buffer area storing the isosynchronous link data packet.
  19. 根据权利要求17所述的电子设备,其特征在于,The electronic device according to claim 17, wherein:
    所述获取模块还用于从存储有所述链路层控制数据包的缓存区获取所述链路层控制数据包;The obtaining module is further configured to obtain the link layer control data packet from a buffer area storing the link layer control data packet;
    所述发送模块还用于通过所述传输链路向所述第二电子设备发送所述链路层控制数据包。The sending module is further configured to send the link layer control data packet to the second electronic device through the transmission link.
  20. 一种第二电子设备,其特征在于,包括:A second electronic device, characterized by comprising:
    接收模块,用于通过传输链路接收第一电子设备发送的数据包,所述数 据包包括等同步链路数据包或异步链路数据包;A receiving module, configured to receive a data packet sent by the first electronic device through a transmission link, the data packet including an isosynchronous link data packet or an asynchronous link data packet;
    提取模块,用于提取所述数据包的数据类型;An extraction module for extracting the data type of the data packet;
    第二存储模块,用于根据所述数据类型确定用于存储所述数据包的缓存区。The second storage module is configured to determine a buffer area for storing the data packet according to the data type.
  21. 根据权利要求20所述的电子设备,其特征在于,所述第二存储模块具体用于:The electronic device according to claim 20, wherein the second storage module is specifically configured to:
    若所述数据类型为等同步链路数据包,则确定当前时刻是否为刷新时刻;If the data type is an isosynchronous link data packet, it is determined whether the current moment is the refresh moment;
    若所述当前时刻是刷新时刻,则将所述数据包存储在用于存储下一时刻的等同步链路数据包的缓存区;If the current time is the refresh time, storing the data packet in a buffer area for storing the isosynchronous link data packet of the next time;
    若所述当前时刻不是刷新时刻,则将所述数据包存储在用于存储所述当前时刻的等同步链路数据包的缓存区。If the current time is not the refresh time, the data packet is stored in a buffer area for storing the isosynchronous link data packet of the current time.
  22. 根据权利要求21所述的电子设备,其特征在于,所述第二电子设备还包括确定模块;其中,The electronic device according to claim 21, wherein the second electronic device further comprises a determining module; wherein,
    所述发送模块还用于接收所述第一电子设备发送的同步传输配置命令;The sending module is further configured to receive a synchronous transmission configuration command sent by the first electronic device;
    所述确定模块用于根据所述同步传输配置命令确定所述刷新时刻。The determining module is configured to determine the refresh time according to the synchronous transmission configuration command.
  23. 根据权利要求20至22任一项所述的电子设备,其特征在于,The electronic device according to any one of claims 20 to 22, wherein:
    所述发送模块还用于通过所述传输链路接收所述第一电子设备发送的链路层控制数据包。The sending module is further configured to receive the link layer control data packet sent by the first electronic device through the transmission link.
  24. 根据权利要求20至22任一项所述的电子设备,其特征在于,所述传输链路为异步传输链路。The electronic device according to any one of claims 20 to 22, wherein the transmission link is an asynchronous transmission link.
  25. 一种电子设备,其特征在于,包括:至少一个处理器和存储器;An electronic device, characterized by comprising: at least one processor and a memory;
    其中,所述存储器存储计算机执行指令;Wherein, the memory stores computer execution instructions;
    所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如权利要求1至7任一项所述的数据传输方法。The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the data transmission method according to any one of claims 1 to 7.
  26. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如权利要求1至7任一项所述的数据传输方法。A computer-readable storage medium, wherein a computer-executable instruction is stored in the computer-readable storage medium, and when the processor executes the computer-executable instruction, the computer-executable instruction is implemented as described in any one of claims 1 to 7 Data transmission method.
PCT/CN2019/118357 2019-11-14 2019-11-14 Data transmission method, electronic devices, system and storage medium WO2021092839A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201980005105.7A CN111264079B (en) 2019-11-14 2019-11-14 Data transmission method, electronic device, system and storage medium
PCT/CN2019/118357 WO2021092839A1 (en) 2019-11-14 2019-11-14 Data transmission method, electronic devices, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/118357 WO2021092839A1 (en) 2019-11-14 2019-11-14 Data transmission method, electronic devices, system and storage medium

Publications (1)

Publication Number Publication Date
WO2021092839A1 true WO2021092839A1 (en) 2021-05-20

Family

ID=70953425

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/118357 WO2021092839A1 (en) 2019-11-14 2019-11-14 Data transmission method, electronic devices, system and storage medium

Country Status (2)

Country Link
CN (1) CN111264079B (en)
WO (1) WO2021092839A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112749197B (en) * 2021-01-12 2024-04-05 中国平安财产保险股份有限公司 Data fragment refreshing method, device, equipment and storage medium
CN113630445B (en) * 2021-07-19 2022-10-14 山东区块链研究院 Data storage method and device based on block chain network
CN115915348A (en) * 2021-08-20 2023-04-04 华为技术有限公司 Communication method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777321A (en) * 2004-11-15 2006-05-24 华为技术有限公司 Bluetooth accessing point link management method
US20080144645A1 (en) * 2006-10-31 2008-06-19 Motorola, Inc. Methods and devices of a queue controller for dual mode bidirectional audio communication
CN101917487A (en) * 2010-08-23 2010-12-15 中国电信股份有限公司 Method and system for optimizing communication between mobile terminal and server
CN103262557A (en) * 2010-12-14 2013-08-21 三星电子株式会社 Method and system for asynchronous and isochronous data transmission in a high speed video network
CN103841158A (en) * 2012-11-26 2014-06-04 中兴通讯股份有限公司 Transmission method and device for data stream and data packet

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8682844B2 (en) * 2005-01-28 2014-03-25 Sap Ag Method and apparatus for collision resolution in an asynchronous database system
US8964703B2 (en) * 2006-11-01 2015-02-24 Qualcomm Incorporated Sub-band dependent resource management
WO2011026508A1 (en) * 2009-09-01 2011-03-10 Telefonaktiebolaget L M Ericsson (Publ) Method for distributing data traffic over radio links
CN107168663A (en) * 2017-03-30 2017-09-15 联想(北京)有限公司 Information processing method and electronic equipment
CN108597551B (en) * 2018-04-26 2020-12-08 上海交通大学 Memory refreshing method and system for read-intensive big data processing
CN109041262B (en) * 2018-08-23 2020-06-16 Oppo广东移动通信有限公司 Data transmission method and related device
CN109561426A (en) * 2018-11-20 2019-04-02 浙江威星智能仪表股份有限公司 A kind of reliability method of less radio-frequency GFSK networking communication

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777321A (en) * 2004-11-15 2006-05-24 华为技术有限公司 Bluetooth accessing point link management method
US20080144645A1 (en) * 2006-10-31 2008-06-19 Motorola, Inc. Methods and devices of a queue controller for dual mode bidirectional audio communication
CN101917487A (en) * 2010-08-23 2010-12-15 中国电信股份有限公司 Method and system for optimizing communication between mobile terminal and server
CN103262557A (en) * 2010-12-14 2013-08-21 三星电子株式会社 Method and system for asynchronous and isochronous data transmission in a high speed video network
CN103841158A (en) * 2012-11-26 2014-06-04 中兴通讯股份有限公司 Transmission method and device for data stream and data packet

Also Published As

Publication number Publication date
CN111264079A (en) 2020-06-09
CN111264079B (en) 2022-07-08

Similar Documents

Publication Publication Date Title
CN108990031B (en) Optimized bluetooth scheduling for accessory devices
WO2021092839A1 (en) Data transmission method, electronic devices, system and storage medium
CN109769232A (en) Wireless blue tooth audio communication system, method and transceiver
JP2018521585A (en) Method and apparatus for selecting a first base station or a second base station and transmitting a packet data unit (PDU) to a user apparatus (UE)
CN112771941B (en) Data synchronization method, device, equipment, system and storage medium
WO2016029737A1 (en) Data transmission method and base station
US9148895B2 (en) Bridge mode firewall mobility
JP2009273188A (en) User device, base station and method for use in mobile communication system
US10819623B2 (en) Method and device for transmitting data
CN109548096A (en) Communication means, base station, terminal device and system
EP3021555B1 (en) Message processing method and device
WO2012046402A1 (en) Wireless communication system, data transmitter apparatus, data wireless receiver apparatus, and wireless communication method
WO2011052201A1 (en) Communication terminal and communication method
WO2012119564A1 (en) Method and device for processing user plane configuration parameters
JP2006114973A (en) Radio base station and radio terminal equipment
CN115119153B (en) Frame header compression method of Ethernet frame, communication node and storage medium
JP6338694B2 (en) RLC layer data packet processing method and RLC entity
JP4900477B2 (en) Mobile communication system, network device, and packet order control method
JP6516402B2 (en) User apparatus and layer 2 state control method
CN113950099A (en) Network congestion control method and equipment
WO2022027311A1 (en) Communication method and apparatus
WO2018137443A1 (en) Data mapping method and device, and wireless apparatus
WO2020140970A1 (en) Data transmission method and network node
US20230401115A1 (en) Apparatus and method for reducing delay of buffering in short range wireless communication system
EP4167527A1 (en) Communication method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19952660

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19952660

Country of ref document: EP

Kind code of ref document: A1