CN111405534A - Information transmission method, first terminal and computer storage medium - Google Patents
Information transmission method, first terminal and computer storage medium Download PDFInfo
- Publication number
- CN111405534A CN111405534A CN202010168281.7A CN202010168281A CN111405534A CN 111405534 A CN111405534 A CN 111405534A CN 202010168281 A CN202010168281 A CN 202010168281A CN 111405534 A CN111405534 A CN 111405534A
- Authority
- CN
- China
- Prior art keywords
- time slot
- terminal
- information
- wireless connection
- determining
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 78
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000004590 computer program Methods 0.000 claims description 4
- 238000005538 encapsulation Methods 0.000 claims description 2
- 238000004891 communication Methods 0.000 abstract description 15
- 230000009286 beneficial effect Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 2
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/04—Arrangements for maintaining operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/04—Wireless resource allocation
- H04W72/044—Wireless resource allocation based on the type of the allocated resource
- H04W72/0446—Resources in time domain, e.g. slots or frames
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/50—Allocation or scheduling criteria for wireless resources
- H04W72/51—Allocation or scheduling criteria for wireless resources based on terminal or device properties
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the application discloses an information transmission method, a first terminal and a storage medium, wherein the first terminal carries out information transmission with a second terminal through a first wireless connection, the first wireless connection is a Bluetooth connection, and the method comprises the following steps: acquiring first information and determining the number of first time slots occupied by the first information; determining a second time slot number according to the first time slot number, and encapsulating the first information according to the second time slot number to obtain a first packet, wherein the second time slot number is greater than the first time slot number; determining a transmission time slot of the first packet, and transmitting the first packet to the second terminal according to the transmission time slot and the first time slot number through the first wireless connection; the transmission time slot of the first packet comprises an idle time slot, and the idle time slot is used for the first terminal to transmit information through the second wireless connection. By means of long packet and short transmission, the probability of collision of communication signals of a plurality of wireless connections in the same terminal device can be reduced.
Description
Technical Field
The present invention relates to the field of wireless communication technologies, and in particular, to an information transmission method, a first terminal, and a computer storage medium.
Background
In one aspect, a single terminal device may generally support multiple Wireless communication technologies, such as Wireless-Fidelity (Wi-Fi), Radio Frequency Identification (RFID), and Bluetooth (Bluetooth) technologies. Therefore, it is a common phenomenon that a plurality of connections using different wireless communication technologies exist in the same terminal device at the same time (e.g., connection a using Wi-Fi and connection B using bluetooth exist in terminal device 1 at the same time). On the other hand, it is also common that a plurality of connections using the same wireless communication technology exist in the same terminal device at the same time (e.g., connection C using bluetooth and connection D using bluetooth exist in terminal device 2 at the same time). Meanwhile, the wireless communication signals of multiple connections existing in the same terminal equipment often collide, so that the receiving end cannot normally receive the wireless communication signals, information retransmission is caused, the efficiency of a communication system is reduced, and the power consumption of the terminal equipment is increased.
Disclosure of Invention
The technical problem to be solved by the present application is how to reduce the probability of collision of communication signals of multiple wireless connections in the same terminal device.
In a first aspect, the present application provides an information transmission method, which is applied to a first terminal, where the first terminal performs information transmission with a second terminal through a first wireless connection, where the first wireless connection is a bluetooth connection, and the information transmission method includes:
acquiring first information, and determining a first time slot number occupied by the first information, wherein the first time slot number is a positive number;
determining a second time slot number according to the first time slot number, and encapsulating the first information according to the second time slot number to obtain a first packet, wherein the second time slot number is an integer and is greater than the first time slot number;
determining a transmission time slot of the first packet, and transmitting the first packet to the second terminal according to the transmission time slot and the first time slot number through the first wireless connection;
the transmission time slot of the first packet includes an idle time slot, the idle time slot is used for the first terminal to transmit information through the second wireless connection, the transmission time slot is determined according to the transmission time slot and the second time slot number, and the idle time slot is determined according to the transmission time slot, the first time slot number and the second time slot number.
In the Bluetooth connection, the idle time slot is reserved for other wireless connections to transmit information through long packet short transmission, the probability of collision of communication signals of a plurality of wireless connections in the same terminal device can be reduced, and the communication efficiency is improved.
As an optional implementation manner, determining the second number of slots according to the first number of slots includes:
acquiring an electric quantity value of the first terminal;
and determining a second time slot number according to the electric quantity value and the first time slot number.
As another optional implementation, determining the second number of slots according to the first number of slots includes:
determining the number of wireless connections currently established by the first terminal;
and determining a second time slot number according to the wireless connection number and the first time slot number.
As an alternative implementation, the free time slot is used for the first terminal to transmit information with the second terminal through the second wireless connection.
As another alternative, the free time slot is used for the first terminal to transmit information with the third terminal via the second wireless connection.
In this embodiment, the second wireless connection is a bluetooth connection.
As an optional implementation manner, in the first wireless connection, the first terminal is a bluetooth master device or a bluetooth slave device.
In a second aspect, the present application provides a first terminal comprising means and means for performing the method of the first aspect and possible method embodiments of the first aspect described above. Specifically, the first terminal performs information transmission with the second terminal through a first wireless connection, where the first wireless connection is a bluetooth connection, and the first terminal includes:
the acquisition module is used for acquiring first information;
a determining module, configured to determine a first number of time slots occupied by the first information, where the first number of time slots is a positive number;
the determining module is further configured to determine a second number of timeslots according to the first number of timeslots, where the second number of timeslots is an integer and is greater than the first number of timeslots;
the encapsulation module is used for encapsulating the first information according to the second time slot number to obtain a first packet;
the determining module is further configured to determine a transmission slot of the first packet;
a sending module, configured to send the first packet to the second terminal according to the sending timeslot and the first timeslot number through the first wireless connection;
the transmission time slot of the first packet includes an idle time slot, the idle time slot is used for the first terminal to transmit information through the second wireless connection, the transmission time slot is determined according to the transmission time slot and the second time slot number, and the idle time slot is determined according to the transmission time slot, the first time slot number and the second time slot number.
As an optional implementation, the determining module includes:
the acquiring unit is used for acquiring the electric quantity value of the first terminal;
and the first determining unit is used for determining the second time slot number according to the electric quantity value and the first time slot number.
As another optional implementation, the determining module includes:
a second determining unit, configured to determine the number of currently established wireless connections of the first terminal;
the second determining unit is further configured to determine a second number of timeslots according to the number of wireless connections and the first number of timeslots.
As an alternative implementation, the free time slot is used for the first terminal to transmit information with the second terminal through the second wireless connection.
As another alternative, the free time slot is used for the first terminal to transmit information with the third terminal via the second wireless connection.
In this embodiment, the second wireless connection may be a bluetooth connection.
As an optional implementation manner, in the first wireless connection, the first terminal is a bluetooth master device or a bluetooth slave device.
Based on the same inventive concept, as the principle and the advantageous effects of the first terminal for solving the problems can refer to the method of the first aspect and each possible implementation manner of the first aspect and the advantageous effects brought thereby, the implementation of the first terminal can refer to the method of the first aspect and each possible implementation manner of the first aspect, and repeated details are not repeated.
In a third aspect, the present application provides a first terminal, comprising: a memory for storing one or more programs; the implementation and beneficial effects of the first terminal for solving the problems may refer to the method of the first aspect, each possible implementation and beneficial effects of the first aspect, and repeated details are omitted.
In a fourth aspect, the present application provides a computer-readable storage medium, where a computer program is stored, where the computer program includes computer instructions, and when the computer instructions are executed by a processor, the processor is enabled to execute the method of the first aspect and each possible implementation manner of the first aspect and the beneficial effects brought by the first aspect, and repeated details are omitted here.
Drawings
Fig. 1 is a schematic flowchart of an information transmission method according to an embodiment of the present application;
fig. 2 is a schematic diagram illustrating a use of an idle timeslot according to an embodiment of the present application;
fig. 3 is a schematic diagram of a framework of a first terminal according to an embodiment of the present application;
fig. 4 is a schematic frame diagram of another first terminal according to an embodiment of the present disclosure.
Detailed Description
The embodiments of the present application will be described in detail below with reference to the drawings.
Referring to fig. 1, fig. 1 is a schematic flow chart of an information transmission method according to an embodiment of the present disclosure. The information transmission method can be specifically applied to the first terminal. In the embodiment of the application, the first terminal performs information transmission with the second terminal through the first wireless connection. Wherein the first wireless connection is a bluetooth connection. The first terminal and the second terminal may be mobile phones (e.g., Android phones, iOS phones, etc.), tablet computers, desktop computers, Mobile Internet Devices (MIDs), Personal Digital Assistants (PDAs), and other terminal Devices having wireless transmission capability. As shown in fig. 1, the information transmission method includes the following steps:
s11, acquiring the first information and determining the first time slot number occupied by the first information.
Wherein the first time slot number is a positive number. In this embodiment, the first number of slots is the number of slots actually occupied by the first information. For example, the first number of slots may be 1 or 2.5.
And S12, determining a second time slot number according to the first time slot number, and encapsulating the first information according to the second time slot number to obtain a first packet.
In this embodiment, the first number of slots is the actual length of the first message, and the second number of slots is the number of slots used by the first terminal to transmit the first message, i.e. the second number of slots is the number of slots occupied by the first packet. Wherein, the second time slot number is larger than the first time slot number.
Under the bluetooth standard, the transmission timing of a packet is in units of slots (slots), and the packet length is divided into three types of 1 slot, 3 slots, and 5 slots. Therefore, in the embodiment of the present application, the second number of slots may be 1, 3, or 5.
For example, when the first number of time slots occupied by the first information (i.e., the actual length of the first information) is 2.5 time slots, the first terminal may determine the second number of time slots to be 3 or 5.
In a specific embodiment, after determining the first number of timeslots occupied by the first message, the first terminal may determine whether the first number of timeslots is greater than or equal to 3 and less than 5; if yes, the first terminal may directly determine the second timeslot number as 5; if not, the first terminal may determine the second number of slots in the following two ways.
As an optional implementation manner, the determining, by the first terminal, the second number of slots according to the first number of slots may specifically include: acquiring an electric quantity value of the first terminal; and determining a second time slot number according to the electric quantity value and the first time slot number.
Wherein, the electric quantity value can be specifically an electric quantity percentage.
In a specific embodiment, the determining, by the first terminal, the second number of slots according to the electric quantity value and the first number of slots may specifically include: if the electric quantity value of the first terminal is less than or equal to the electric quantity threshold value, the first terminal may determine that the number of the second time slots is greater than 3; if the power value of the first terminal is greater than the power threshold, the first terminal may determine the second timeslot number to be 5.
For example, when the first timeslot number is 1.6 and the preset power threshold is 20%, if the power value of the first terminal is less than or equal to 20%, the first terminal may determine the second timeslot number to be 3; if the electric quantity value of the first terminal is greater than 20%, the first terminal may determine the second slot number to be 5.
As another optional implementation, the determining, by the first terminal, the second number of slots according to the first number of slots may specifically include: determining the number of wireless connections currently established by the first terminal; and determining a second time slot number according to the wireless connection number and the first time slot number.
In a specific embodiment, the determining, by the first terminal, the second number of time slots according to the number of wireless connections and the first number of time slots may specifically include: if the number of the currently established wireless connections of the first terminal is less than or equal to a first threshold, the first terminal may determine that the number of the second time slots is 3; if the number of currently established wireless connections of the first terminal is greater than the first threshold, the first terminal may determine that the second number of timeslots is 5.
For example, when the first timeslot number is 0.9 and the preset first threshold is 1, if the number of currently established wireless connections of the first terminal is equal to 1, that is, the first terminal only establishes the first wireless connection, the first terminal may determine the second timeslot number to be 3; if the number of the currently established wireless connections of the first terminal is greater than 1, that is, the first terminal establishes other wireless connections except the first wireless connection, the first terminal may determine the second number of time slots to be 5.
As another optional implementation manner, the determining, by the first terminal, the second number of slots according to the first number of slots may specifically include: acquiring the attribute of the information to be transmitted and/or the transmission requirement of the information to be transmitted in the second wireless connection; and determining the second time slot number according to the attribute of the information to be transmitted and/or the transmission requirement of the information to be transmitted.
In the embodiment of the present application, the attribute of the information to be transmitted may include, but is not limited to, a data type, a data size, and the like of the information to be transmitted. The transmission requirement of the information to be transmitted may include, but is not limited to, a transmission time requirement of the information to be transmitted, where the transmission time requirement may be a time required for the information to be transmitted to complete transmission in the second wireless connection.
In a specific embodiment, the determining, by the first terminal, the second time slot number according to the attribute of the information to be transmitted and/or the transmission requirement of the information to be transmitted may specifically include: if the transmission time requirement of the information to be transmitted is less than or equal to the first time threshold, the first terminal may determine that the second timeslot number is 3; if the transmission time requirement of the information to be transmitted is greater than the first time threshold, the first terminal may determine the second timeslot number to be 5.
For example, when the first number of timeslots is 1 and the preset first time threshold is 2, if the transmission time requirement of the information to be transmitted in the second wireless connection is 1 timeslot, the first terminal may determine the second number of timeslots as 3; if the transmission time requirement of the information to be transmitted in the second radio connection is 4 timeslots, the first terminal may determine the second timeslot number to be 5.
In this embodiment, the first terminal determines a second number of timeslots according to the first number of timeslots, and encapsulates the first information according to the second number of timeslots in order to reserve free timeslots for other wireless connections, except the first wireless connection, established by the first terminal. The idle timeslot is a timeslot of the timeslot occupied by the first packet except for a timeslot occupied by the first information, or the idle timeslot is a timeslot remaining after transmission of the first information in the timeslot occupied by the first packet is completed.
S13, determining the transmission time slot of the first packet, and transmitting the first packet to the second terminal according to the transmission time slot and the first time slot number via the first wireless connection.
For convenience of description, the transmission time slot, the first time slot number, and the second time slot number are denoted as k, i, and j, respectively.
In the first wireless connection, the first terminal may be a bluetooth master (master) or a bluetooth slave (slave). When the first terminal is a Bluetooth master device, k is an even number; when the first terminal is a Bluetooth slave device, k is an odd number.
In this embodiment, the sending, by the first terminal, the first packet to the second terminal according to the sending timeslot and the first timeslot number through the first wireless connection may specifically include: the first terminal starts to send the first packet to the second terminal at the kth time slot through the first wireless connection, and the first information is sent at the k + i time slot.
Wherein, the packet header of the first packet includes a packet type for indicating the second time slot number occupied by the first packet. Thus, when the second terminal receives the packet header of the first packet, it knows that this packet occupies a total of several time slots, and the next several time slots are occupied by the first packet, and the second terminal will not transmit packets to the first terminal until the end of the time slot occupied by the first packet. And the first terminal can transmit information according to the actual packet length, and the remaining time slot after the information transmission is finished is the idle time slot reserved for other wireless connections by the first terminal. Since the second terminal does not transmit packets to the first terminal in the idle time slot, the probability of collision of communication signals of the first wireless connection with other wireless connections can be reduced. In the embodiment of the application, the idle time slot is a time slot from the k + i th time slot to the k + j th time slot, and the length of the idle time slot is j-i.
As an alternative implementation, the first terminal may transmit information with the second terminal through the second wireless connection in an idle time slot between the (k + i) th time slot and the (k + j) th time slot. In this embodiment, the second wireless connection may be, for example, a Wi-Fi connection.
As another alternative, in the idle time slot between the k + i th time slot and the k + j th time slot, the first terminal may transmit information with the third terminal through the second wireless connection. In this embodiment, the second wireless connection may be a Bluetooth connection or a Wi-Fi connection.
Referring to fig. 2, fig. 2 schematically illustrates the use of free time slots. In fig. 2, the one terminal is a bluetooth slave device, and the second terminal is a bluetooth master device. In the k-1 th slot, the second terminal sends a second packet of length 1 slots to the first terminal over the first wireless connection, the second packet including second information of length 0.5 slots.
When receiving the second packet, the first terminal starts to reply to the second terminal with a first packet of length 5 including first information of length 0.3 slot through the first wireless connection at the k-th slot. In the k +0.3 time slot, the first terminal finishes sending the first information.
Correspondingly, the second terminal starts receiving the first packet at the k-th slot. In the k +0.3 time slot, the second terminal finishes receiving the first information, but 4.7 time slots between the k +0.3 time slot and the k +5 time slot are still occupied by the first packet, and the time slot is an idle time slot. And the second terminal continues to send a third packet with the length of 1 to the first terminal through the first wireless connection until the k +5 time slot, wherein the third packet comprises third information with the length of 0.5 time slot.
And in the idle time slot between the k +0.3 time slot and the k +5 time slot, the first terminal can transmit information through other wireless connections. As shown in fig. 2, the first terminal may receive a fourth packet of length 3 from the third terminal over the second wireless connection at the k +0.8 time slot. Wherein the second wireless connection is a Wi-Fi connection. In the k +4 th time slot, the first terminal may reply with a fifth packet of length 0.5 to the third terminal over the second radio connection.
In a particular embodiment, the second terminal may obtain its charge value when receiving the first packet; if the power value is smaller than the preset power threshold, the second terminal may send a low power notification to the first terminal, so that the first terminal does not reserve idle time slots exclusively for other wireless connections when determining the second number of time slots again.
In the Bluetooth connection, the idle time slot is reserved for other wireless connections to transmit information through long packet short transmission, the probability of collision of communication signals of a plurality of wireless connections in the same terminal device can be reduced, and the communication efficiency is improved.
Referring to fig. 3, fig. 3 is a schematic diagram of a framework of a first terminal according to an embodiment of the present disclosure. As shown in fig. 3, the first terminal 30 may include an obtaining module 31, a determining module 32, an encapsulating module 33, and a transmitting module 34.
The obtaining module 31 is configured to obtain the first information.
The determining module 32 is configured to determine a first number of time slots occupied by the first information. Wherein the first time slot number is a positive number.
The determining module 32 is further configured to determine a second number of time slots according to the first number of time slots. The second time slot number is an integer and is greater than the first time slot number.
As an alternative implementation, the determining module 32 may include an obtaining unit 321 and a first determining unit 322.
The obtaining unit 321 is configured to obtain an electric quantity value of the first terminal 30.
The first determining unit 322 is configured to determine a second number of slots according to the electric quantity value and the first number of slots.
As another alternative, the determination module 32 may include a second determination unit 323.
The second determining unit 323 is configured to determine the number of currently established wireless connections of the first terminal 30.
The second determining unit 323 is further configured to determine a second number of timeslots according to the number of wireless connections and the first number of timeslots.
The encapsulating module 33 is configured to encapsulate the first information according to the second number of time slots to obtain a first packet.
The determining module 32 is further configured to determine a transmission slot of the first packet.
The sending module 34 is configured to send the first packet to the second terminal according to the sending timeslot and the first timeslot number through the first wireless connection.
In an embodiment of the application, the transmission slots of the first packet include an idle slot, the idle slot is used for the first terminal 30 to transmit information through the second wireless connection, the transmission slot is determined according to the transmission slot and the second slot number, and the idle slot is determined according to the transmission slot, the first slot number and the second slot number.
As an alternative implementation, the free time slot is used for the first terminal to transmit information with the second terminal through the second wireless connection.
As another alternative, the free time slot is used for the first terminal to transmit information with the third terminal via the second wireless connection.
In this embodiment, the second wireless connection may be a bluetooth connection.
As an optional implementation manner, in the first wireless connection, the first terminal is a bluetooth master device or a bluetooth slave device.
Based on the same inventive concept, the principle and the beneficial effect of the first terminal 30 provided in the embodiment of the present application for solving the problem are similar to those of the embodiment of the information transmission method shown in fig. 1 of the present application, so that the implementation of the first terminal 30 may refer to the implementation of the information transmission method shown in fig. 1, and repeated details are not repeated.
Referring to fig. 4, fig. 4 is a schematic diagram of a framework of a first terminal 40 according to an embodiment of the present disclosure. As shown in fig. 4, the first terminal 40 may include: a bus 41, a processor 42, a memory 43, and an input/output interface 44. The bus 41 is used for interconnecting the processor 42, the memory 43 and the input/output interface 44 and enabling the above elements to communicate with each other. The memory 43 is used to store one or more computer programs comprising computer instructions. The input/output interface 44 is used to control the communication connection between the first terminal 40 and other devices, such as a second terminal.
In particular, the processor 42 is configured to invoke the computer instructions to perform:
acquiring first information, and determining a first time slot number occupied by the first information, wherein the first time slot number is a positive number;
determining a second time slot number according to the first time slot number, and encapsulating the first information according to the second time slot number to obtain a first packet, wherein the second time slot number is an integer and is greater than the first time slot number;
determining a transmission time slot of the first packet, and transmitting the first packet to the second terminal according to the transmission time slot and the first time slot number through the first wireless connection;
the transmission time slot of the first packet includes an idle time slot, the idle time slot is used for the first terminal to transmit information through the second wireless connection, the transmission time slot is determined according to the transmission time slot and the second time slot number, and the idle time slot is determined according to the transmission time slot, the first time slot number and the second time slot number.
As an alternative embodiment, the processor 42 is configured to invoke the computer instruction to execute, according to the first time slot number, specifically when determining the second time slot number, the following steps are executed:
acquiring an electric quantity value of the first terminal;
and determining a second time slot number according to the electric quantity value and the first time slot number.
As another alternative embodiment, the processor 42 is configured to invoke the computer instruction to execute, according to the first time slot number, specifically, when determining the second time slot number, the following steps are executed:
determining the number of wireless connections currently established by the first terminal;
and determining a second time slot number according to the wireless connection number and the first time slot number.
As an alternative implementation, the free time slot is used for the first terminal to transmit information with the second terminal through the second wireless connection.
As another alternative, the free time slot is used for the first terminal to transmit information with the third terminal via the second wireless connection.
In this embodiment, the second wireless connection is a bluetooth connection.
As an optional implementation manner, in the first wireless connection, the first terminal is a bluetooth master device or a bluetooth slave device.
The processor 42 may be a Central Processing Unit (CPU). The Memory 43 may be any type of Memory, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a nonvolatile Random Access Memory (RAM), and the like.
Based on the same inventive concept, the principle and the beneficial effect of the first terminal 40 provided in the embodiment of the present application for solving the problem are similar to those of the embodiment of the information transmission method shown in fig. 1 of the present application, so that the implementation of the first terminal 40 may refer to the implementation of the information transmission method shown in fig. 1, and repeated details are not repeated.
Claims (17)
1. An information transmission method is applied to a first terminal, and the first terminal performs information transmission with a second terminal through a first wireless connection, wherein the first wireless connection is a bluetooth connection, and the method comprises the following steps:
acquiring first information, and determining a first time slot number occupied by the first information, wherein the first time slot number is a positive number;
determining a second time slot number according to the first time slot number, and encapsulating the first information according to the second time slot number to obtain a first group, wherein the second time slot number is an integer and is greater than the first time slot number;
determining a transmission time slot of the first packet, and transmitting the first packet to the second terminal according to the transmission time slot and the first time slot number through the first wireless connection;
wherein, the transmission time slot of the first packet includes an idle time slot, the idle time slot is used for the first terminal to transmit information through a second wireless connection, the transmission time slot is determined according to the sending time slot and the second time slot number, and the idle time slot is determined according to the sending time slot, the first time slot number and the second time slot number.
2. The method of claim 1, wherein determining a second number of slots based on the first number of slots comprises:
acquiring an electric quantity value of the first terminal;
and determining a second time slot number according to the electric quantity value and the first time slot number.
3. The method of claim 1, wherein determining a second number of slots based on the first number of slots comprises:
determining the number of wireless connections currently established by the first terminal;
and determining a second time slot number according to the wireless connection number and the first time slot number.
4. The method of claim 1, wherein determining a second number of slots based on the first number of slots comprises:
acquiring the attribute of the information to be transmitted in the second wireless connection and/or the transmission requirement of the information to be transmitted;
and determining a second time slot number according to the attribute of the information to be transmitted and/or the transmission requirement of the information to be transmitted.
5. The method of claim 1, wherein the idle time slot is used for the first terminal to communicate information with the second terminal over a second wireless connection.
6. The method of claim 1, wherein the idle time slot is used for the first terminal to communicate information with a third terminal over a second wireless connection.
7. The method of claim 6, wherein the second wireless connection is a Bluetooth connection.
8. The method according to any of claims 1-7, wherein in the first wireless connection, the first terminal is a Bluetooth master or a Bluetooth slave.
9. A first terminal, characterized in that the first terminal and a second terminal perform information transmission through a first wireless connection, wherein the first wireless connection is a Bluetooth connection, and the first terminal comprises:
the acquisition module is used for acquiring first information;
a determining module, configured to determine a first number of timeslots occupied by the first information, where the first number of timeslots is a positive number;
the determining module is further configured to determine a second number of timeslots according to the first number of timeslots, where the second number of timeslots is an integer and is greater than the first number of timeslots;
the encapsulation module is used for encapsulating the first information according to the second time slot number to obtain a first packet;
the determining module is further configured to determine a transmission slot of the first packet;
a sending module, configured to send the first packet to the second terminal according to the sending timeslot and the first timeslot number through the first wireless connection;
wherein, the transmission time slot of the first packet includes an idle time slot, the idle time slot is used for the first terminal to transmit information through a second wireless connection, the transmission time slot is determined according to the sending time slot and the second time slot number, and the idle time slot is determined according to the sending time slot, the first time slot number and the second time slot number.
10. The first terminal of claim 9, wherein the determining module comprises:
the acquisition unit is used for acquiring the electric quantity value of the first terminal;
and the first determining unit is used for determining the second time slot number according to the electric quantity value and the first time slot number.
11. The first terminal of claim 9, wherein the determining module comprises:
a second determining unit, configured to determine the number of currently established wireless connections of the first terminal;
the second determining unit is further configured to determine a second number of timeslots according to the number of wireless connections and the first number of timeslots.
12. The first terminal of claim 9, wherein the idle time slot is used for the first terminal to communicate information with the second terminal over a second wireless connection.
13. The first terminal of claim 9, wherein the free time slot is used for the first terminal to communicate information with a third terminal over a second wireless connection.
14. The first terminal of claim 13, wherein the second wireless connection is a bluetooth connection.
15. The first terminal according to any of claims 9-14, wherein in the first wireless connection, the first terminal is a bluetooth master or a bluetooth slave.
16. A first terminal, characterized in that the first terminal comprises a processor and a memory, the processor and the memory are connected with each other, wherein the processor executes computer instructions in the memory to realize the information transmission method according to any one of claims 1 to 8.
17. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to execute the information transmission method according to any one of claims 1 to 8.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010168281.7A CN111405534B (en) | 2020-03-11 | 2020-03-11 | Information transmission method, first terminal and computer storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010168281.7A CN111405534B (en) | 2020-03-11 | 2020-03-11 | Information transmission method, first terminal and computer storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111405534A true CN111405534A (en) | 2020-07-10 |
| CN111405534B CN111405534B (en) | 2023-08-25 |
Family
ID=71413336
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010168281.7A Active CN111405534B (en) | 2020-03-11 | 2020-03-11 | Information transmission method, first terminal and computer storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111405534B (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114025430A (en) * | 2021-11-10 | 2022-02-08 | 上海山景集成电路股份有限公司 | Bluetooth communication method, communication equipment and system |
| WO2022033320A1 (en) * | 2020-08-13 | 2022-02-17 | 华为技术有限公司 | Bluetooth communication method, terminal device, and computer-readable storage medium |
| CN115167669A (en) * | 2022-06-30 | 2022-10-11 | 恒玄科技(上海)股份有限公司 | Intelligent glasses, synchronous display method and medium |
| WO2025073115A1 (en) * | 2023-10-07 | 2025-04-10 | 深圳市逸文科技有限公司 | Binocular display method and binocular display device |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101461191A (en) * | 2006-06-02 | 2009-06-17 | 高通股份有限公司 | Efficient operation for co-located WLAN and Bluetooth |
| US20120314639A1 (en) * | 2010-03-10 | 2012-12-13 | Ricoh Company, Ltd. | Radio communication device and radio communication method |
| CN103313256A (en) * | 2012-03-06 | 2013-09-18 | 华为终端有限公司 | Transmission method and transmission system for realizing data and voice service coexistence and communication equipment |
| US20160249356A1 (en) * | 2015-02-23 | 2016-08-25 | Intricon Corporation | Enabling Concurrent Proprietary Audio And Bluetooth Low Energy Using Enhanced LE Link Layer For Hearing Device |
| CN107006015A (en) * | 2014-12-03 | 2017-08-01 | 华为技术有限公司 | The method and communication equipment communicated using frequency spectrum resource |
| CN107889087A (en) * | 2016-09-29 | 2018-04-06 | 英特尔Ip公司 | Dispatched using the bluetooth WIFI of the coordination of Bluetooth slots availability mask |
| CN109429206A (en) * | 2018-05-30 | 2019-03-05 | 展讯通信(上海)有限公司 | A kind of Bluetooth data transfer method, apparatus and user equipment |
| CN109618317A (en) * | 2018-12-17 | 2019-04-12 | 珠海市杰理科技股份有限公司 | Time-sharing communication method, device, computer equipment and storage medium |
-
2020
- 2020-03-11 CN CN202010168281.7A patent/CN111405534B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101461191A (en) * | 2006-06-02 | 2009-06-17 | 高通股份有限公司 | Efficient operation for co-located WLAN and Bluetooth |
| US20120314639A1 (en) * | 2010-03-10 | 2012-12-13 | Ricoh Company, Ltd. | Radio communication device and radio communication method |
| CN103313256A (en) * | 2012-03-06 | 2013-09-18 | 华为终端有限公司 | Transmission method and transmission system for realizing data and voice service coexistence and communication equipment |
| CN107006015A (en) * | 2014-12-03 | 2017-08-01 | 华为技术有限公司 | The method and communication equipment communicated using frequency spectrum resource |
| US20160249356A1 (en) * | 2015-02-23 | 2016-08-25 | Intricon Corporation | Enabling Concurrent Proprietary Audio And Bluetooth Low Energy Using Enhanced LE Link Layer For Hearing Device |
| CN107889087A (en) * | 2016-09-29 | 2018-04-06 | 英特尔Ip公司 | Dispatched using the bluetooth WIFI of the coordination of Bluetooth slots availability mask |
| CN109429206A (en) * | 2018-05-30 | 2019-03-05 | 展讯通信(上海)有限公司 | A kind of Bluetooth data transfer method, apparatus and user equipment |
| CN109618317A (en) * | 2018-12-17 | 2019-04-12 | 珠海市杰理科技股份有限公司 | Time-sharing communication method, device, computer equipment and storage medium |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2022033320A1 (en) * | 2020-08-13 | 2022-02-17 | 华为技术有限公司 | Bluetooth communication method, terminal device, and computer-readable storage medium |
| CN114079893A (en) * | 2020-08-13 | 2022-02-22 | 华为技术有限公司 | Bluetooth communication method, terminal device and computer-readable storage medium |
| CN114079893B (en) * | 2020-08-13 | 2023-10-13 | 华为技术有限公司 | Bluetooth communication method, terminal device and computer-readable storage medium |
| CN114025430A (en) * | 2021-11-10 | 2022-02-08 | 上海山景集成电路股份有限公司 | Bluetooth communication method, communication equipment and system |
| CN114025430B (en) * | 2021-11-10 | 2022-07-19 | 上海山景集成电路股份有限公司 | Bluetooth communication method, communication device and system |
| US12317129B2 (en) | 2021-11-10 | 2025-05-27 | Shanghai Mountain View Silicon Co., Ltd. | Bluetooth communication method, device and system for point-to-point link |
| CN115167669A (en) * | 2022-06-30 | 2022-10-11 | 恒玄科技(上海)股份有限公司 | Intelligent glasses, synchronous display method and medium |
| WO2025073115A1 (en) * | 2023-10-07 | 2025-04-10 | 深圳市逸文科技有限公司 | Binocular display method and binocular display device |
| WO2025073144A1 (en) * | 2023-10-07 | 2025-04-10 | 深圳市逸文科技有限公司 | Binocular display method and binocular display device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111405534B (en) | 2023-08-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111405534B (en) | Information transmission method, first terminal and computer storage medium | |
| CN111836329B (en) | Data transmission method and related device | |
| CN112350809A (en) | Sensing method and communication device | |
| EP3518589B1 (en) | Power distribution method and device | |
| CN104135339A (en) | Bluetooth low-power-consumption communication method, Bluetooth equipment and system | |
| CN114077568B (en) | Inter-core communication method, device, electronic component and electronic device | |
| CN106879070B (en) | Transmission method and device of trigger frame in wireless local area network | |
| CN109313623A (en) | Switch the method and device of serial data transmission state | |
| CN104936211A (en) | Wireless resource distribution method | |
| CN105100000B (en) | Interface conversion device and network system | |
| CN112713974B (en) | Resource mapping method, equipment and storage medium | |
| CN110933761B (en) | Resource scheduling method and equipment | |
| US12490285B2 (en) | Method and apparatus for identifying reduced capability user equipment type, base station, and user equipment | |
| CN113316230B (en) | Method and device for scheduling data sending task, electronic equipment and storage medium | |
| CN115982090A (en) | Method and device for realizing remote memory access by cooperation of software and hardware | |
| CN112752296B (en) | Data transmission method and device and electronic equipment | |
| US7779186B2 (en) | Master-slave card system and method for operating the same | |
| EP4124149A1 (en) | Wifi communication method and electronic device | |
| CN115687215A (en) | Serial port multiplexing method, device, equipment and storage medium | |
| KR20110001628A (en) | Control packet receiving apparatus and method | |
| CN111818571A (en) | Response method among multiple nodes, network node and readable storage medium | |
| CN114828218A (en) | Method for determining validity of reference signal transmission opportunity and user equipment | |
| CN107094084B (en) | Data sharing method and device | |
| US20250267629A1 (en) | Application of allocating wireless links of access point multi-link device for wireless stations | |
| CN107690194B (en) | Method and equipment for configuring network beacon in wireless sensor network |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |