CN113660648B - Multimedia data transmission method and device, electronic equipment and storage medium - Google Patents

Multimedia data transmission method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113660648B
CN113660648B CN202110931664.XA CN202110931664A CN113660648B CN 113660648 B CN113660648 B CN 113660648B CN 202110931664 A CN202110931664 A CN 202110931664A CN 113660648 B CN113660648 B CN 113660648B
Authority
CN
China
Prior art keywords
transmission
parameter
target
environment
quality parameter
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.)
Active
Application number
CN202110931664.XA
Other languages
Chinese (zh)
Other versions
CN113660648A (en
Inventor
柯良文
王笛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110931664.XA priority Critical patent/CN113660648B/en
Publication of CN113660648A publication Critical patent/CN113660648A/en
Application granted granted Critical
Publication of CN113660648B publication Critical patent/CN113660648B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0231Traffic management, e.g. flow control or congestion control based on communication conditions
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to a transmission method, a device, a terminal and a storage medium of multimedia data, and belongs to the technical field of communication. The method comprises the following steps: determining a first environment quality parameter, wherein the first environment quality parameter is used for representing the quality of transmission resources of the environment where the local electronic equipment is located; acquiring a target transmission parameter matched with the first environmental quality parameter; and transmitting the multimedia data based on the target transmission parameters. In the method, the first environment quality parameter is used for representing the quality of the transmission resource of the environment where the local electronic equipment is located, so that the target transmission parameter matched with the first environment quality parameter can be adapted to the environment where the first electronic equipment is located, the accuracy of the determined target transmission parameter is improved, and then the multimedia data is transmitted based on the target transmission parameter, so that the transmission performance can be improved.

Description

Multimedia data transmission method and device, electronic equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a method and a device for transmitting multimedia data, electronic equipment and a storage medium.
Background
Currently, most electronic devices are provided with a bluetooth module, and audio data can be transmitted between two electronic devices by means of the bluetooth module. And when audio data is transmitted between two electronic devices, transmission parameters such as a transmission rate, a sampling rate, a coding rate and the like are required to be relied on. In the related art, a fixed set of transmission parameters is set, that is, all electronic devices transmit multimedia data based on the transmission parameters.
The transmission parameters are not adaptive to all electronic devices, so that the performance of the electronic device for transmitting the multimedia data based on the transmission parameters is poor.
Disclosure of Invention
The embodiment of the application provides a method, a device, electronic equipment and a storage medium for transmitting multimedia data, which can improve the transmission performance. The technical scheme is as follows:
in one aspect, a method for transmitting multimedia data is provided, the method comprising:
determining a first environment quality parameter, wherein the first environment quality parameter is used for representing the quality of transmission resources of the environment where the local electronic equipment is located;
acquiring a target transmission parameter matched with the first environmental quality parameter;
and transmitting the multimedia data based on the target transmission parameters.
In another aspect, there is provided a transmission apparatus of multimedia data, the apparatus comprising:
the determining module is used for determining a first environment quality parameter, wherein the first environment quality parameter is used for representing the quality of transmission resources of the environment where the local electronic equipment is located;
the acquisition module is used for acquiring the target transmission parameters matched with the first environment quality parameters;
and the transmission module is used for transmitting the multimedia data based on the target transmission parameters.
In another aspect, an electronic device is provided that includes a processor and a memory; the memory stores at least one program code for execution by the processor to implement the method of transmitting multimedia data as described in the above aspects.
In another aspect, a computer readable storage medium is provided, the computer readable storage medium storing at least one program code for execution by a processor to implement a method of transmitting multimedia data as described in the above aspect.
In another aspect, a computer program product is provided, which when executed by a processor of an electronic device, enables the electronic device to perform the method of transmitting multimedia data as described in the above aspects.
In the embodiment of the application, since the first environmental quality parameter is used for representing the quality of the transmission resource of the environment where the local electronic equipment is located, the target transmission parameter matched with the first environmental quality parameter can be adapted to the environment where the first electronic equipment is located, so that the accuracy of the determined target transmission parameter is improved, the multimedia data is transmitted based on the target transmission parameter, and the transmission performance can be improved.
Drawings
FIG. 1 illustrates a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;
FIG. 2 illustrates a block diagram of a terminal provided in an exemplary embodiment of the present application;
fig. 3 illustrates a flowchart of a method for transmitting multimedia data according to an exemplary embodiment of the present application;
FIG. 4 illustrates a flowchart of determining a first environmental quality parameter, as shown in an exemplary embodiment of the present application;
FIG. 5 illustrates a flow chart of mode selection by the mode selection module shown in one exemplary embodiment of the present application;
FIG. 6 illustrates a schematic diagram of the transmission of multimedia data between two electronic devices as illustrated in an exemplary embodiment of the present application;
fig. 7 illustrates a flowchart of a method for transmitting multimedia data according to an exemplary embodiment of the present application;
Fig. 8 is a schematic diagram illustrating a method for transmitting multimedia data according to an exemplary embodiment of the present application;
fig. 9 illustrates a flowchart of a method for transmitting multimedia data according to an exemplary embodiment of the present application;
fig. 10 is a block diagram illustrating a structure of a multimedia data transmission apparatus according to an exemplary embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
References herein to "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
It should be noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
Referring to fig. 1, a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application is shown. The implementation environment includes a first electronic device 10 and a second electronic device 20; the first electronic device 10 and the second electronic device 20 are connected through a short-range communication module or a cellular mobile network, and multimedia data is transmitted through the connection. The multimedia data may include at least one of audio data and video data. In some embodiments, the short-range communication module may be at least one of a bluetooth module, an infrared module, a near field communication (Near Field Communication, NFC) module. The Bluetooth module is at least one of a classical Bluetooth module (BR), an enhanced Rate Bluetooth (Enhanced Data Rate, EDR) and a Low Power Bluetooth (LE). The cellular mobile network may be at least one of a second generation mobile communication technology (The 2nd Generation,2G) network, a third generation mobile communication technology (3G) network, a fourth generation mobile communication technology (4G) network, and a fifth generation mobile communication technology (5th Generation,5G) network.
In some embodiments, the first electronic device 10 and the second electronic device 20 are senders of each other; for example, the first electronic device 10 is a sender and the second electronic device 20 is a receiver; for another example, the first electronic device 10 is a receiving party and the second electronic device 20 is a transmitting party. In the embodiment of the present application, the first electronic device 10 is taken as a sender, and the second electronic device 20 is taken as a receiver for illustration. The first electronic device 10 and the second device may be at least one of a mobile phone, a sound box, a wearable device, a household device, and the like; the wearing device can be at least one of a bracelet, a watch, glasses and a ring; the home appliance may be at least one of an air conditioner, a refrigerator, a washing machine, a doorbell, a lamp, and the like.
The transmission method of the multimedia data provided by the embodiment of the application can be applied to the following scenes:
in some embodiments, the first electronic device 10 and the second electronic device 20 are connected by a short-range communication module, and then the first electronic device 10 multimedia data to the second electronic device 20 based on the connection.
In some embodiments, the first electronic device 10 and the second electronic device 20 install the same application, and the first electronic device 10 and the second electronic device 20 log in a server corresponding to the application through a cellular mobile network, so as to perform transmission of multimedia data. The application is any application such as a social application, a shopping application, a video playing application and the like; and the application can be a self-contained application of the system or a third party application.
It should be noted that the above scenario is only an exemplary illustration, and is not limited to the scenario of image correction, and the present application can be applied to any other scenario of image correction in addition to the above scenario.
In one possible implementation, the electronic device may be provided as a terminal, please refer to fig. 2, which shows a schematic structural diagram of the terminal 100 provided in an exemplary embodiment of the present application. The terminal 100 may be a mobile phone, a tablet computer, a computer, or an internet of things (Internet of Things, IOT) device, etc. having a function of transmitting multimedia data, etc. The terminal 100 in the present application may include one or more of the following components: processor 110, memory 120, display 130.
Processor 110 may include one or more processing cores. The processor 110 connects various parts within the overall terminal 100 using various interfaces and lines, performs various functions of the terminal 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and invoking data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 110 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a Neural network processor (Neural-network Processing Unit, NPU), a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen 130; the NPU is used to implement artificial intelligence (Artificial Intelligence, AI) functionality; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 110 and may be implemented by a single chip.
The Memory 120 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (ROM). Optionally, the memory 120 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 120 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described below, etc.; the storage data area may store data (e.g., audio data, phonebook) created according to the use of the terminal 100, etc.
The display 130 is a display component for displaying a user interface. Alternatively, the display screen 130 is a display screen with a touch function, through which a user can perform a touch operation on the display screen 130 using any suitable object such as a finger, a touch pen, or the like.
The display 130 is typically provided at the front panel of the terminal 100. The display 130 may be designed as a full screen, a curved screen, a contoured screen, a double-sided screen, or a folded screen. The display 130 may also be designed as a combination of a full screen and a curved screen, a combination of a special-shaped screen and a curved screen, etc., which is not limited in this embodiment.
In addition, it will be appreciated by those skilled in the art that the structure of the terminal 100 illustrated in the above-described figures does not constitute a limitation of the terminal 100, and the terminal 100 may include more or less components than illustrated, or may combine certain components, or may have a different arrangement of components. For example, the terminal 100 further includes a microphone, a speaker, a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (Wireless Fidelity, wi-Fi) module, a power supply, a bluetooth module, and the like, which are not described herein.
Referring to fig. 3, a flowchart of a method for transmitting multimedia data according to an exemplary embodiment of the present application is shown. In the embodiment of the application, the execution main body is an electronic device, and in the embodiment of the application, the electronic device is used for transmitting multimedia data based on a short-distance communication module, and the short-distance communication module is illustrated by taking bluetooth as an example. The method comprises the following steps:
step 301: the electronic device determines the number of available channels for bluetooth.
The number of available channels is used to represent the remaining resources. The number of available channels includes the number of available frequency hopping channels reflecting the number of other electronic devices in the environment in which the electronic device is located and the distance of the other electronic devices from the local electronic device. When there are many other co-band devices in the vicinity (co-band devices include 802.11b/g/n modulation devices, such as routers, mobile phone hotspots, etc., other bluetooth devices, zigbee protocol devices, such as smart home devices of various types), the available channels for frequency hopping can be reduced when the environment is noisy. When the vicinity is clear and the environment is quiet, the frequency hopping available channels increase.
Referring to fig. 4, an electronic device includes an adaptive frequency hopping (Adaptive Frequency Hopping, AFH) module and a bluetooth transmit/receive module therein; the Bluetooth transmitting/receiving module is communicated with the opposite-end electronic equipment through a physical link; the AFH module periodically determines the number of available channels for bluetooth. The scenes are classified through available channels of the multimedia data to be transmitted, the classification conditions of the scenes are judged, and the subsequent low-power transmission mode is decided to be entered or the default transmission mode is kept.
Step 302: the electronic device determines a first environmental quality parameter for which the number of available channels matches.
The first environmental quality parameter predicts the experience that the user obtains after the multimedia data is transmitted at this time. The first environmental quality parameter is inversely related to the number of available channels, and the first environmental quality parameter is used to indicate the quality of transmission resources of the environment in which the electronic device is located. And the electronic equipment carries out quantization processing on the number of the available channels to obtain a first environment quality parameter.
In some embodiments, the electronic device pre-stores a correspondence between the number of available channels and the environmental quality parameter; accordingly, the step of the electronic device determining a first environmental quality parameter for which the number of available channels matches comprises: the electronic equipment acquires a first environment quality parameter corresponding to the number of the available channels from the corresponding relation between the number of the available channels and the environment quality parameter. In the embodiment of the application, the electronic device determines the first environmental quality parameter directly based on the corresponding relation between the number of the available channels and the environmental quality parameter, so that the efficiency is improved.
With continued reference to fig. 4, the electronic device further includes an environmental information detection module, where the environmental detection module is electrically connected to the AFH module, and the environmental information detection module is in continuous operation, and after the AFH module detects the number of available channels, the number of available channels is transmitted to the environmental information detection module, and the environmental information detection module determines a first environmental quality parameter that matches the number of available channels. The environment information detection module carries out quantization processing on the number of the available channels to obtain a first environment quality parameter.
After the electronic equipment determines the first environmental quality parameter, determining whether the first environmental quality parameter is smaller than the reference environmental quality parameter; in case the first environmental quality parameter is smaller than the reference environmental quality parameter, performing step 303; executing step 304 in case the first environmental quality parameter is greater than the reference environmental quality parameter; in case the first environmental quality parameter is equal to the reference environmental quality parameter, step 305 is performed.
It should be noted that, the reference environmental quality parameter may be preset, or may be determined based on a historical environment of the electronic device; in the case where the reference environmental quality parameter is determined based on the historical environment of the electronic device, then the process of the electronic device determining the reference environmental quality parameter includes: the electronic equipment acquires a plurality of second environmental quality parameters, wherein the plurality of second environmental quality parameters are environmental quality parameters of the electronic equipment in a first historical preset time period; and determining the average value of the plurality of second environmental quality parameters to obtain the reference environmental quality parameters. The first preset time period can be set and changed according to needs, and in the embodiment of the present application, the preset time period is not specifically limited; for example, the first preset time period is 24 hours or 48 hours; in the case where the first preset time period is 48 hours, the electronic device determines an average value of environmental quality parameters of the past 48 hours as a reference environmental quality parameter.
Another point to be described is that after the electronic device obtains the first environmental quality parameter, the first environmental quality parameter and the current time are stored in an associated manner, so that the reference environmental quality parameter is updated based on the stored association relationship between the first environmental quality parameter and the current time. Referring to fig. 5, the electronic device receives a first environmental quality parameter, determines a reference environmental quality parameter through a mean value filtering algorithm, and stores the first environmental quality parameter in a ROM; it is determined whether the first environmental quality parameter is greater than a reference environmental quality parameter (average of environmental quality parameters over the past 48 hours).
In some embodiments, after determining the first environmental quality parameter, the electronic device obtains a plurality of third environmental quality parameters, where the plurality of third environmental quality parameters are environmental quality parameters of the electronic device in a second historical preset time period, determines a mean value of the first environmental quality parameter and the plurality of third environmental quality parameters, and if the mean value is smaller than the reference environmental quality parameter, performs the step of obtaining a transmission parameter corresponding to the first transmission mode in step 303, and determines the transmission parameter corresponding to the first transmission mode as a target transmission parameter; and if the average value is greater than the reference environmental quality parameter, executing the step of acquiring the transmission parameter corresponding to the second transmission mode in step 304, and determining the transmission parameter corresponding to the second transmission mode as the target transmission parameter.
The second preset time period is different from the first preset time period; for example, the first preset time period is the past 48 hours and the second preset time period is the past 24 hours; by determining the average value of the first environmental quality parameter and the plurality of third environmental quality parameters and comparing the average value with the reference environmental quality parameter, the transmission parameter is determined, a time domain average value filtering algorithm can be realized, the influence caused by environmental waves is eliminated, and the accuracy is improved.
Step 303: and under the condition that the first environmental quality parameter is smaller than the reference environmental quality parameter, the electronic equipment acquires the transmission parameter corresponding to the first transmission mode, and determines the transmission parameter corresponding to the first transmission mode as the target transmission parameter.
In this embodiment, a default transmission mode and a first transmission mode are set, where a transmission parameter corresponding to the first transmission mode is smaller than a transmission parameter corresponding to the default transmission mode, that is, the first transmission mode is a low-power transmission mode. The transmission parameters include at least one of a transmission rate, a sampling rate, and a coding rate. In the related art, only a default transmission mode is set in the electronic device, so that in order to preferentially ensure the transmission quality of the multimedia data, the sampling rate and the coding rate of the transmission rate corresponding to the default transmission mode are both kept the same, and are also larger values, and a transmission scheme for controlling the power consumption according to the environment in which the electronic device is located is lacking. Moreover, in the electronic device, in the scenes of noisy environment, dense people stream and the like, the user cannot perceive the quality of the multimedia data. At this time, high sound quality is still maintained, and modulation and coding resources of the electronic device are wasted. At this time, due to the severe environment, the work of copying the data packet, detecting whether the data is successfully sent or not, retransmitting the data packet and the like in the transmission process is increased, so that the work of the electronic equipment is increased, the power consumption and the heat generation are additionally increased, and the power consumption of the electronic equipment is high and the cruising ability is poor.
In this application, in addition to setting the default transmission mode, a first transmission mode is also set, and the first transmission mode is a low-power transmission mode. When the electronic equipment is in the scenes of noisy environment, dense people flow and the like, the electronic equipment enters a low-power transmission mode, so that the power consumption of the electronic equipment is additionally reduced on the basis of the existing protocol. In addition, in the scenes of quiet environment, sparse people flow and the like, the electronic equipment enters the default transmission mode, so that the electronic equipment can be dynamically and intelligently switched between the default transmission mode and the low-power transmission mode without operation of a user, and convenience is brought to the user. For example, with continued reference to fig. 5, if the first environmental quality parameter is greater than the reference environmental quality parameter (the average of the environmental quality parameters over the past 48 hours), then a default transmission mode is entered; if the first environmental quality parameter is less than the reference environmental quality parameter (the average of the environmental quality parameters over the past 48 hours), a low power transmission mode is entered.
It should be noted that the electronic device may set only one first transmission mode, that is, one low-power transmission mode, or may set a plurality of first transmission modes, that is, a plurality of low-power transmission modes; the transmission parameters corresponding to each first transmission mode are smaller than the transmission parameters corresponding to the default transmission mode, and the transmission parameters corresponding to each first transmission mode are different. Under the condition that a plurality of first transmission modes are set, the step of acquiring the transmission parameters corresponding to the first transmission modes by the electronic equipment comprises the following steps: the electronic equipment determines a first target transmission mode matched with the first environmental quality parameter based on the first environmental quality parameter, and obtains transmission parameters corresponding to the first target transmission mode.
In some embodiments, the electronic device sets each first transmission mode to correspond to a range of environmental quality parameters; accordingly, the step of the electronic device determining a first target transmission mode for which the first environmental quality parameter matches comprises: the electronic equipment determines a target environment quality parameter range based on the first environment quality parameters and the environment quality parameter range corresponding to each first transmission mode, wherein the target environment quality parameter range is the environment quality parameter range where the first environment quality parameters are located, and determines a first target transmission mode corresponding to the target environment quality parameter range.
In the embodiment of the application, the electronic equipment sets a plurality of low-power-consumption transmission modes, and determines the target low-power-consumption transmission mode based on the first environment quality parameter, so that the transmission parameter corresponding to the target low-power-consumption transmission mode can be accurately determined, and the accuracy is improved.
Step 304: and under the condition that the first environmental quality parameter is larger than the reference environmental quality parameter, the electronic equipment acquires the transmission parameter corresponding to the second transmission mode, and determines the transmission parameter corresponding to the second transmission mode as the target transmission parameter.
The transmission parameter corresponding to the second transmission mode is larger than the transmission parameter corresponding to the default transmission mode. In this application, in addition to the default transmission mode and the first transmission mode (low power transmission mode), a second transmission mode, that is, a high power transmission mode is set. In the scenes of quiet environment, sparse people flow and the like, the electronic equipment enters a high-power transmission mode, so that the quality of the transmitted multimedia data can be improved.
It should be noted that the electronic device may set only one second transmission mode, that is, one high-power transmission mode, or may set a plurality of second transmission modes, that is, a plurality of high-power transmission modes; the transmission parameters corresponding to each second transmission mode are larger than the transmission parameters corresponding to the default transmission mode, and the transmission parameters corresponding to each second transmission mode are different. In the case that a plurality of second transmission modes are set, the step of the electronic device obtaining the transmission parameters corresponding to the second transmission modes includes: the electronic equipment determines a second target transmission mode matched with the first environmental quality parameter based on the first environmental quality parameter, and obtains transmission parameters corresponding to the second target transmission mode.
In some embodiments, the electronic device sets each of the second transmission modes to correspond to a range of environmental quality parameters; accordingly, the step of the electronic device determining the second target transmission mode for which the first environmental quality parameter matches includes: the electronic equipment determines a target environment quality parameter range based on the first environment quality parameter and the environment quality parameter range corresponding to each second transmission mode, wherein the target environment quality parameter range is the environment quality parameter range where the first environment quality parameter is located, and the second target transmission mode corresponding to the target environment quality parameter range is determined.
In the embodiment of the application, the electronic equipment sets a plurality of high-power-consumption transmission modes, and determines the target high-power-consumption transmission mode based on the first environment quality parameter, so that the transmission parameter corresponding to the target high-power-consumption transmission mode can be accurately determined, and the accuracy is improved.
Step 305: under the condition that the first environmental quality parameter is equal to the reference environmental quality parameter, the electronic equipment acquires the transmission parameter corresponding to the default transmission mode, and determines the transmission parameter corresponding to the default transmission mode as the target transmission parameter.
With continued reference to fig. 4, the electronic device includes a mode selection module, where the mode selection module is electrically connected to the environmental information detection module, and after the environmental information detection module determines the first environmental quality parameter, the environmental information detection module transmits the first environmental quality parameter to the mode selection module, and the mode selection module performs mode selection, that is, selects whether to enter the low power transmission mode or the default transmission mode or the high power transmission mode.
Referring to fig. 6, the basic logic of the mode selection module to select the mode is: when the environment is noisy, the perception of the user to the multimedia quality is not strong, the requirement is not high, and the smooth transmission of the multimedia data is ensured at the moment, so that the quality of the multimedia data is not required to be pursued. Thus, in a noisy environment, the electronic device may reduce the transmission parameters, i.e. enter a low power transmission mode. When the environment is quiet and people are few, users expect a better and richer multimedia experience, and the electronic device needs to recover the original transmission parameters, that is, enter a default transmission mode. Of course, when the environment is very quiet and the environment is clear, users expect a better quality and richer multimedia experience, and the electronic device needs to raise the transmission parameters, that is, enter a high-power transmission mode. In fig. 6, the mode selection module is exemplified as switching between the default transmission mode and the low power transmission mode.
Step 306: the electronic device transmits the multimedia data based on the target transmission parameters.
The target transmission parameter includes at least one of a target transmission rate, a target sampling rate, and a target coding rate.
In some embodiments, the target transmission parameter includes a target transmission rate, and the step of transmitting the multimedia data by the electronic device based on the target transmission parameter includes: the electronic equipment transmits the multimedia data based on the target transmission rate; that is, the multimedia data is sent to the electronic device at the opposite terminal according to the transmission rate as the target transmission rate.
In some embodiments, the target transmission parameter comprises a target sampling rate, and the step of transmitting the multimedia data by the electronic device based on the target transmission parameter comprises: the electronic equipment samples the multimedia data based on the target sampling rate, and transmits the sampled multimedia data, namely, sends the sampled multimedia data to the opposite-end electronic equipment.
In some embodiments, the target transmission parameter includes a target coding rate, and the step of transmitting the multimedia data by the electronic device based on the target transmission parameter includes: the electronic equipment encodes the multimedia data based on the target encoding code rate, and transmits the encoded multimedia data, namely, transmits the encoded multimedia data to the opposite-end electronic equipment.
It should be noted that, in the case where the target transmission parameter includes a plurality of transmission parameters, the electronic device transmits the multimedia data based on the plurality of transmission parameters. For example, in the case where the target transmission parameter includes a target transmission rate, a target sampling rate, and a target coding rate, the step of transmitting the multimedia data by the electronic device based on the target transmission parameter includes: the electronic equipment samples the multimedia data based on the target sampling rate, codes the sampled multimedia data based on the target coding rate, and transmits the coded multimedia data based on the target transmission rate, namely transmits the coded multimedia data to the opposite-end electronic equipment.
Another point to be described is that in the low power transmission mode, by reducing the transmission parameters, that is, reducing the sampling rate of the multimedia data and reducing the coding rate of the multimedia data, the transmission is equivalent to the transmission after the compression processing of the multimedia data, and the transmission time is reduced without changing the transmission power, thereby reducing the power consumption of bluetooth. Meanwhile, due to the reduction of the transmission data quantity, the work of copying the data packet, detecting whether the data is successfully transmitted, discarding the data packet and the like in the transmission process is reduced, the resource consumption in the transmission process can be reduced, the power consumption of the electronic equipment is reduced, and the heating of the electronic equipment is reduced. In addition, the power consumption is reduced by means of reducing the coding code rate, the sampling rate and the like, the power consumption can be saved on the premise that the user cannot perceive the environment when the environment is noisy, and the environment is recovered and is automatically recovered after being quiet, so that the functions of intelligently reducing the power consumption, heating and prolonging the endurance are realized.
In the embodiment of the application, the electronic device adjusts the target sampling rate, the target coding rate and the target transmission rate, so that the electronic device is dynamically switched in a default transmission mode and a low-power transmission mode (or the electronic device is dynamically switched in the default transmission mode, the high-power transmission mode and the low-power transmission mode). By using the transmission mode and the switching algorithm in the scheme, the working consumption of a Bluetooth coder-decoder (codec) and a Bluetooth transmitting module is reduced, the resources consumed by a physical link are reduced, and the power consumption is reduced under the conditions that the user experience of the current activated application is ensured and the requirements of the electronic equipment on the data delay and the reliability are also ensured.
In the embodiment of the application, since the first environmental quality parameter is used for representing the quality of the transmission resource of the environment where the electronic device is located, the target transmission parameter matched with the first environmental quality parameter can be adapted to the environment where the first electronic device is located, so that the accuracy of the determined target transmission parameter is improved, and the multimedia data is transmitted based on the target transmission parameter, so that the transmission performance can be improved.
Referring to fig. 7, a flowchart of a method for transmitting multimedia data according to an exemplary embodiment of the present application is shown. In the embodiment of the present application, the execution body is an electronic device, and in the embodiment of the present application, an example is described in which the electronic device and the second electronic device communicate through a cellular mobile network. The method comprises the following steps:
Step 701: the electronic device determines at least one of a remaining frequency band and a remaining bandwidth of the cellular mobile network, and determines the at least one of the remaining frequency band and the remaining bandwidth as a remaining resource.
The remaining frequency band and the remaining bandwidth are used to represent the remaining resources. And the residual frequency band and the residual bandwidth can reflect whether the environment where the user is located is outdoor or indoor, and the people flow at the position where the user is located is dense or sparse, so that the accurate and reasonable power consumption allocation requirement is achieved through the judgment of the scene.
Step 702: the electronic device determines a first environmental quality parameter for which the remaining resources match.
The first environmental quality parameter is inversely related to the remaining resources; and the electronic equipment carries out quantization processing on the residual resources to obtain a first environment quality parameter.
In some embodiments, the electronic device pre-stores a correspondence between the remaining resources and the environmental quality parameter; accordingly, the step of the electronic device determining the first environmental quality parameter that the remaining resources match includes: the electronic equipment acquires a first environment quality parameter corresponding to the residual resource from the corresponding relation between the residual resource and the environment quality parameter. In the embodiment of the application, the electronic equipment directly determines the first environment quality parameter based on the corresponding relation between the residual resources and the environment quality parameter, so that the efficiency is improved.
Step 703: and under the condition that the first environmental quality parameter is smaller than the reference environmental quality parameter, the electronic equipment acquires the transmission parameter corresponding to the first transmission mode, and determines the transmission parameter corresponding to the first transmission mode as the target transmission parameter.
Step 704: and under the condition that the first environmental quality parameter is larger than the reference environmental quality parameter, the electronic equipment acquires the transmission parameter corresponding to the second transmission mode, and determines the transmission parameter corresponding to the second transmission mode as the target transmission parameter.
The transmission parameter corresponding to the second transmission mode is larger than the transmission parameter corresponding to the default transmission mode.
Step 705: under the condition that the first environmental quality parameter is equal to the reference environmental quality parameter, the electronic equipment acquires the transmission parameter corresponding to the default transmission mode, and determines the transmission parameter corresponding to the default transmission mode as the target transmission parameter.
Step 706: the electronic device transmits the multimedia data based on the target transmission parameters.
It should be noted that the implementation process of steps 703-706 is the same as the implementation process of steps 303-306, and will not be described here again.
In the embodiment of the application, since the first environmental quality parameter is used for representing the quality of the transmission resource of the environment where the electronic device is located, the target transmission parameter matched with the first environmental quality parameter can be adapted to the environment where the first electronic device is located, so that the accuracy of the determined target transmission parameter is improved, and the multimedia data is transmitted based on the target transmission parameter, so that the transmission performance can be improved.
Referring to fig. 8, a flowchart of a method for transmitting multimedia data according to an exemplary embodiment of the present application is shown. In the embodiment of the present application, the execution body is an electronic device, and in the embodiment of the present application, description is given taking as an example whether the electronic device can be allowed to adjust transmission parameters. The method comprises the following steps:
step 801: the electronic device determines to transmit the instructional information.
The transmission guide information is used for indicating whether the electronic equipment is allowed to adjust transmission parameters; the transmission guide information includes at least one of device type information of the electronic device, an application of the application program, and attribute information of the multimedia data, the application program being an application program for transmitting the multimedia data on the electronic device. Steps 802-804 are performed in case the transmission guidance information is used to indicate that the electronic device is allowed to adjust the transmission parameters; in case the transmission guidance information is used to indicate that the electronic device is not allowed to adjust the transmission parameters, step 805 is performed.
In some embodiments, the transmission guidance information includes device type information of the electronic device; then in the case where the device type information is used to indicate that the electronic device is not the target electronic device, the electronic device determines that the transmission guidance information indicates that the electronic device is permitted to adjust the transmission parameters, and the target electronic device prohibits adjusting the transmission parameters. In the case where the device type information is used to indicate that the electronic device is a target electronic device, the electronic device determines that the transmission guidance information indicates that the electronic device is not permitted to adjust the transmission parameters. For example, the target electronic device is a device such as a speaker that has a high sound quality requirement for multimedia data.
In the embodiment of the application, at least one target electronic device is set in advance, and the transmission parameters of the electronic device are adjusted only when the electronic device is not the target electronic device, and the adjustment generally means that the transmission parameters of the electronic device are reduced, so that the power consumption of the electronic device can be reduced. Under the condition that the electronic equipment is target electronic equipment, transmission parameters of the electronic equipment are not adjusted, so that multimedia data are transmitted through default transmission parameters, the default transmission parameters are often larger, and better data transmission quality can be obtained.
In some embodiments, the transmission guidance information includes an application of the application; in the case where the application information is used to indicate that the application is not the target application, the electronic device determines that the transmission guidance information indicates that the electronic device is permitted to adjust the transmission parameters, and the target application prohibits adjusting the transmission parameters. In the case where the application information is used to indicate that the application is a target application, the electronic device determines that the transmission guidance information indicates that the electronic device is not permitted to adjust the transmission parameters.
In this embodiment of the present application, at least one target application is set in advance, and the transmission parameters of the electronic device are adjusted only when the application for transmitting the multimedia data is not the target application, where adjusting generally refers to reducing the transmission parameters of the electronic device, so that the power consumption of the electronic device can be reduced. Under the condition that the application program is a target application program, the transmission parameters of the electronic equipment are not adjusted, so that multimedia data is transmitted through default transmission parameters, and the default transmission parameters are often larger, and better data transmission quality can be obtained.
In some embodiments, the transmission guide information includes attribute information of the multimedia data; in case the attribute information is used to indicate that the multimedia data is not the target type of multimedia data, the electronic device determines that the transmission guidance information indicates that the electronic device is allowed to adjust the transmission parameters, and the target type of multimedia data prohibits the adjustment of the transmission parameters. In case the attribute information is used to indicate that the multimedia data is multimedia data of the target type, the electronic device determines that the transmission guidance information indicates that the electronic device is not allowed to adjust the transmission parameters.
In this embodiment of the present application, at least one target type is set in advance, and the transmission parameters of the electronic device are adjusted only when the multimedia data to be transmitted is not the multimedia data of the target type, where the adjustment generally refers to reducing the transmission parameters of the electronic device, so that the power consumption of the electronic device can be reduced. In the case that the multimedia data to be transmitted is the target type multimedia data, the transmission parameters of the electronic device are not adjusted, so that the transmission of the multimedia data is performed through default transmission parameters, and the default transmission parameters are often larger, so that better data transmission quality can be obtained.
Step 802: and the electronic equipment determines a first environment quality parameter under the condition that the transmission guide information is used for indicating that the electronic equipment is allowed to adjust the transmission parameters, and the first environment quality parameter is used for indicating the quality of transmission resources of the environment where the electronic equipment is located.
Wherein the step of the electronic device determining the first environmental quality parameter comprises: the electronic equipment determines residual resources which are used for representing the quantity of residual transmission resources of the environment where the electronic equipment is located; and determining the first environment quality parameter matched with the residual resource, wherein the first environment quality parameter and the residual resource are in negative correlation.
In some embodiments, the electronic device transmits the multimedia data through the short-range communication module, and the electronic device determines remaining resources, including: the electronic device determines a number of available channels of the short-range communication module, and determines the number of available channels as the remaining resources. In some embodiments, the electronic device transmits multimedia data over a cellular mobile network, and the electronic device determines remaining resources, including: the electronic device determines at least one of a remaining frequency band and a remaining bandwidth of the cellular mobile network, and determines the at least one of the remaining frequency band and the remaining bandwidth as the remaining resource.
Step 803: the electronic equipment obtains target transmission parameters matched with the first environment quality parameters.
Under the condition that the first environmental quality parameter is smaller than the reference environmental quality parameter, the electronic equipment acquires the transmission parameter corresponding to the first transmission mode, and the transmission parameter corresponding to the first transmission mode is smaller than the transmission parameter corresponding to the default transmission mode; and determining the transmission parameter corresponding to the first transmission mode as a target transmission parameter. Under the condition that the first environmental quality parameter is not smaller than the reference environmental quality parameter, the electronic equipment acquires the transmission parameter corresponding to the second transmission mode, and the transmission parameter corresponding to the second transmission mode is larger than the transmission parameter corresponding to the default transmission mode; and determining the transmission parameter corresponding to the second transmission mode as a target transmission parameter.
Step 804: the electronic device transmits the multimedia data based on the target transmission parameters.
It should be noted that the implementation process of step 804 is the same as that of step 306, and will not be described herein.
Step 805: and the electronic equipment acquires default transmission parameters under the condition that the transmission guide information is used for indicating that the electronic equipment is not allowed to adjust the transmission parameters, and transmits the multimedia data based on the default transmission parameters.
The default transmission parameters include at least one of a default transmission rate, a default sampling rate, and a default coding rate; the implementation process of transmitting the multimedia data by the electronic device based on the default transmission parameter is the same as the implementation process of transmitting the multimedia data by the electronic device based on the target transmission parameter in step 306, and will not be described herein.
The default transmission parameters may be transmission parameters corresponding to the default transmission mode, and in the case of only setting two transmission modes, for example, the first transmission mode and the default transmission mode, the transmission parameters corresponding to the default transmission mode are often larger than the transmission parameters corresponding to the first transmission mode, that is, the transmission quality can be improved through the transmission parameters corresponding to the default transmission mode.
In the embodiment of the application, since the first environmental quality parameter is used for representing the quality of the transmission resource of the environment where the electronic device is located, the target transmission parameter matched with the first environmental quality parameter can be adapted to the environment where the first electronic device is located, so that the accuracy of the determined target transmission parameter is improved, and the multimedia data is transmitted based on the target transmission parameter, so that the transmission performance can be improved.
Referring to fig. 9, a flowchart of a method for transmitting multimedia data according to an exemplary embodiment of the present application is shown. In the embodiment of the present application, the execution body is an electronic device, and in the embodiment of the present application, an example is described in which the electronic device periodically adjusts a transmission parameter. The method comprises the following steps:
step 901: the electronic device determines a first environmental quality parameter indicative of a quality of a transmission resource of an environment in which the electronic device is located.
Step 902: the electronic equipment obtains target transmission parameters matched with the first environment quality parameters.
Steps 901-902 may be implemented by steps 301-305, which are not described herein; alternatively, steps 901-902 may be implemented by steps 701-705, which are not described in detail herein.
Step 903: the electronic device transmits the multimedia data based on the target transmission parameters.
This step is the same as step 306 and will not be described in detail here.
Step 904: the electronic device detects whether the environment is changed.
In the case where the electronic device detects that the environment is changed, step 605 is executed; and if the electronic equipment does not detect the change of the environment, continuously detecting whether the environment is changed.
In some embodiments, if the position of the electronic device changes, determining that the environment in which the electronic device is located changes; in some embodiments, the number of available channels of the electronic device changes, and the environment in which the electronic device is located is determined to change; in some embodiments, at least one of the remaining frequency band and the remaining bandwidth of the electronic device changes, and it is determined that the environment in which the electronic device is located changes.
The electronic device can periodically detect whether the environment is changed; the electronic device may also directly periodically determine the first environmental quality parameter, and execute step 905 when the first environmental quality parameter changes.
Step 905: and under the condition that the electronic equipment detects that the environment is changed, updating the first environment quality parameter.
The electronic device updates the first environmental quality parameter based on the updated number of available channels, and the specific process is similar to step 302, and will not be described again. Alternatively, the electronic device updates the first environmental quality parameter based on at least one of the remaining frequency band and the remaining bandwidth, and the specific process is similar to step 702 and will not be described again.
Step 906: the electronic device re-determines the target transmission parameter based on the updated first environmental quality parameter.
The specific process of the electronic device re-determining the target transmission parameter based on the updated first environmental quality parameter is similar to steps 303-305, and will not be described here again.
Step 907: the electronic device transmits the multimedia data based on the redetermined target transmission parameters.
The specific process of the electronic device transmitting the multimedia data based on the redetermined target transmission parameters is similar to step 306, and will not be described herein.
In the embodiment of the application, since the first environmental quality parameter is used for representing the quality of the transmission resource of the environment where the electronic device is located, the target transmission parameter matched with the first environmental quality parameter can be adapted to the environment where the first electronic device is located, so that the accuracy of the determined target transmission parameter is improved, and the multimedia data is transmitted based on the target transmission parameter, so that the transmission performance can be improved.
Referring to fig. 10, a block diagram of a multimedia data transmission apparatus 1000 according to an exemplary embodiment of the present application is shown. The device comprises:
a determining module 1001, configured to determine a first environmental quality parameter, where the first environmental quality parameter is used to represent quality of a transmission resource of an environment where the local electronic device is located;
An obtaining module 1002, configured to obtain a target transmission parameter matched with the first environmental quality parameter;
a transmission module 1003, configured to transmit the multimedia data based on the target transmission parameter.
In some examples, the determination module 1001 includes:
a first determining unit, configured to determine a remaining resource, where the remaining resource is used to represent how much of a remaining transmission resource of an environment where the local electronic device is located;
and the second determining unit is used for determining the first environment quality parameter matched with the residual resource, and the first environment quality parameter and the residual resource have negative correlation.
In some embodiments, the local electronic device transmits multimedia data through a short-range communication module;
the first determining unit is configured to determine the number of available channels of the short-range communication module, and determine the number of available channels as the remaining resources.
In some embodiments, the home electronic device transmits multimedia data over a cellular mobile network;
the first determining unit is configured to determine at least one of a remaining frequency band and a remaining bandwidth of the cellular mobile network, and determine the at least one of the remaining frequency band and the remaining bandwidth as the remaining resource.
In some embodiments, the obtaining module 1002 is configured to obtain a transmission parameter corresponding to a first transmission mode, where the transmission parameter corresponding to the first transmission mode is smaller than a transmission parameter corresponding to a default transmission mode, if the first environmental quality parameter is smaller than a reference environmental quality parameter; and determining the transmission parameter corresponding to the first transmission mode as the target transmission parameter.
In some embodiments, the obtaining module 1002 is configured to obtain, when the first environmental quality parameter is not less than the reference environmental quality parameter, a transmission parameter corresponding to a second transmission mode, where the transmission parameter corresponding to the second transmission mode is greater than a transmission parameter corresponding to a default transmission mode; and determining the transmission parameter corresponding to the second transmission mode as the target transmission parameter.
In some embodiments, the obtaining module 1002 is further configured to obtain a plurality of second environmental quality parameters, where the plurality of second environmental quality parameters are environmental quality parameters of the home electronic device in a historical preset time period; and determining the average value of the plurality of second environmental quality parameters to obtain the reference environmental quality parameter.
In some embodiments, the target transmission parameter comprises at least one of a target transmission rate, a target sampling rate, and a target coding rate;
The transmission module 1003 is configured to transmit the multimedia data based on the target transmission rate;
the transmission module 1003 is configured to sample the multimedia data based on the target sampling rate, and transmit the sampled multimedia data;
the transmission module 1003 is configured to encode the multimedia data based on the target encoding rate, and transmit the encoded multimedia data.
In some embodiments, the apparatus further comprises:
the updating module is used for updating the first environment quality parameter under the condition that the environment where the local electronic equipment is located changes;
the determining module 1001 is further configured to re-determine the target transmission parameter based on the updated first environmental quality parameter;
the transmission module 1003 is further configured to transmit the multimedia data based on the redetermined target transmission parameter.
In some embodiments, the apparatus further comprises:
the determining module 1001 is further configured to determine transmission guiding information, where the transmission guiding parameter is used to indicate whether the local electronic device is allowed to adjust the transmission parameter; and determining a first environment quality parameter under the condition that the transmission guide information is used for indicating that the local electronic equipment is allowed to adjust the transmission parameter.
In some embodiments, the transmission guide information includes at least one of device type information of the home electronic device, an application of the application program, and attribute information of the multimedia data, the application program being an application for transmitting the multimedia data on the home electronic device;
the determining module 1001 is further configured to determine that the transmission instruction information indicates that the local electronic device is allowed to adjust the transmission parameter if the device type information indicates that the local electronic device is not the target electronic device, and the target electronic device prohibits adjusting the transmission parameter;
the determining module 1001 is further configured to determine that the transmission guiding information indicates that the local electronic device is allowed to adjust the transmission parameter if the application information indicates that the application is not a target application, where the target application is prohibited from adjusting the transmission parameter;
the determining module 1001 is further configured to determine that the transmission guiding information indicates that the local electronic device is allowed to adjust the transmission parameter if the attribute information is used to indicate that the multimedia data is not the target type of multimedia data, where the target type of multimedia data is prohibited from adjusting the transmission parameter.
In some embodiments, the obtaining module 1002 is further configured to obtain a default transmission parameter if the transmission instruction information is used to indicate that the local electronic device is not allowed to adjust the transmission parameter;
the transmission module 1003 is further configured to transmit the multimedia data based on the default transmission parameter.
In the embodiment of the application, since the first environmental quality parameter is used for representing the quality of the transmission resource of the environment where the electronic device is located, the target transmission parameter matched with the first environmental quality parameter can be adapted to the environment where the first electronic device is located, so that the accuracy of the determined target transmission parameter is improved, and the multimedia data is transmitted based on the target transmission parameter, so that the transmission performance can be improved.
In an embodiment of the present application, an electronic device is provided, including a processor and a memory; the memory stores at least one program code for execution by the processor to perform the method of transmitting multimedia data provided by embodiments of the present application.
The embodiments of the present application also provide a computer readable storage medium storing at least one program code for execution by a processor to implement the transmission method of multimedia data as shown in the above embodiments.
The embodiments of the present application also provide a computer program product, which when executed by an electronic device of the electronic device, enables the electronic device to perform the method of transmitting multimedia data as shown in the above embodiments.
In some embodiments, the computer program related to the embodiments of the present application may be deployed to be executed on one electronic device or on a plurality of electronic devices located at one site, or alternatively, executed on a plurality of electronic devices distributed at a plurality of sites and interconnected by a communication network, where a plurality of electronic devices distributed at a plurality of sites and interconnected by a communication network may constitute a blockchain system.
Those skilled in the art will appreciate that in one or more of the examples described above, the functions described in the embodiments of the present application may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, these functions may be stored on or transmitted over as one or more program codes or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The foregoing description of the preferred embodiments is merely exemplary in nature and is in no way intended to limit the invention, since it is intended that all modifications, equivalents, improvements, etc. that fall within the spirit and scope of the invention.

Claims (13)

1. A method of transmitting multimedia data, the method comprising:
determining the number of available channels of a short-distance communication module, and determining the number of available channels as residual resources, wherein the residual resources are used for representing the quantity of residual transmission resources of an environment where a local electronic device is located, the number of available channels comprises the number of frequency modulation available channels, and the number of frequency modulation available channels is used for reflecting the number of other electronic devices in the environment where the local electronic device is located and the distance between the other electronic devices and the local electronic device;
determining a first environment quality parameter matched with the residual resources, wherein the first environment quality parameter and the residual resources are in negative correlation, the first environment quality parameter is used for representing the quality of transmission resources of the environment where the local electronic equipment is located, and the first environment quality parameter is also used for representing whether the environment where the local electronic equipment is located is quiet or noisy;
Acquiring a target transmission parameter matched with the first environmental quality parameter;
transmitting audio data through the short-range communication module based on the target transmission parameters;
the first environment quality parameter indicates a noisy environment, and the transmission power consumption corresponding to the target transmission parameter is lower, so that the quality of the transmitted audio data is lower.
2. The transmission method according to claim 1, characterized in that the method further comprises:
determining at least one of a remaining frequency band and a remaining bandwidth of a cellular mobile network, and determining the at least one of the remaining frequency band and the remaining bandwidth as a remaining resource;
determining a first environment quality parameter matched with the residual resources, wherein the first environment quality parameter and the residual resources are in negative correlation, and the first environment quality parameter is also used for indicating whether the environment where the local electronic equipment is located is quiet or noisy;
acquiring a target transmission parameter matched with the first environmental quality parameter;
and transmitting the audio data through the cellular mobile network based on the target transmission parameters.
3. The transmission method according to claim 1, wherein the obtaining the target transmission parameter matched to the first environmental quality parameter includes:
Under the condition that the first environmental quality parameter is smaller than the reference environmental quality parameter, acquiring a transmission parameter corresponding to a first transmission mode, wherein the transmission parameter corresponding to the first transmission mode is smaller than a transmission parameter corresponding to a default transmission mode;
and determining the transmission parameters corresponding to the first transmission mode as the target transmission parameters.
4. The transmission method according to claim 1, wherein the obtaining the target transmission parameter matched to the first environmental quality parameter includes:
under the condition that the first environmental quality parameter is not smaller than the reference environmental quality parameter, acquiring a transmission parameter corresponding to a second transmission mode, wherein the transmission parameter corresponding to the second transmission mode is larger than the transmission parameter corresponding to a default transmission mode;
and determining the transmission parameters corresponding to the second transmission mode as the target transmission parameters.
5. The transmission method according to claim 3 or 4, wherein the process of acquiring the reference environmental quality parameter comprises:
acquiring a plurality of second environmental quality parameters, wherein the plurality of second environmental quality parameters are environmental quality parameters of the local electronic equipment in a historical preset time period;
And determining the average value of the plurality of second environmental quality parameters to obtain the reference environmental quality parameter.
6. The transmission method according to claim 1, wherein the target transmission parameter includes at least one of a target transmission rate, a target sampling rate, and a target coding rate;
the transmitting the audio data through the short-distance communication module based on the target transmission parameters comprises at least one implementation mode of:
transmitting the audio data through the short-range communication module based on the target transmission rate;
sampling the audio data based on the target sampling rate, and transmitting the sampled audio data through the short-distance communication module;
and encoding the audio data based on the target encoding code rate, and transmitting the encoded audio data through the short-distance communication module.
7. The method according to claim 1, wherein the method further comprises:
updating the first environment quality parameter under the condition that the environment where the local electronic equipment is located changes;
re-determining a target transmission parameter based on the updated first environmental quality parameter;
The audio data is transmitted based on the redetermined target transmission parameters.
8. The method of claim 1, wherein prior to the determining the first environmental quality parameter for which the remaining resources match, the method further comprises:
determining transmission guide information, wherein the transmission guide information is used for indicating whether the local electronic equipment is allowed to adjust transmission parameters;
and executing the step of determining the first environment quality parameter under the condition that the transmission guide information is used for representing that the local electronic equipment is allowed to adjust the transmission parameter.
9. The method of claim 8, wherein the transmission guide information includes at least one of device type information of the home electronic device, application information of an application program, which is an application program for transmitting audio data on the home electronic device, and attribute information of the audio data;
the method further comprises at least one implementation of:
if the equipment type information is used for indicating that the local electronic equipment is not a target electronic equipment, determining that the transmission guide information indicates that the local electronic equipment is allowed to adjust transmission parameters, wherein the target electronic equipment is forbidden to adjust the transmission parameters;
If the application information is used for indicating that the application program is not a target application program, determining that the transmission guide information indicates that the local electronic equipment is allowed to adjust transmission parameters, wherein the target application program prohibits adjustment of the transmission parameters;
and if the attribute information is used for indicating that the audio data is not the audio data of the target type, determining that the transmission guide information indicates that the local electronic equipment is allowed to adjust the transmission parameters, wherein the audio data of the target type is forbidden to adjust the transmission parameters.
10. The method of claim 8, wherein the method further comprises:
acquiring default transmission parameters under the condition that the transmission guide information is used for indicating that the local electronic equipment is not allowed to adjust the transmission parameters;
and transmitting the audio data based on the default transmission parameters.
11. A multimedia data transmission apparatus, the apparatus comprising:
the system comprises a determining module, a short-distance communication module and a receiving module, wherein the determining module is used for determining the number of available channels of the short-distance communication module, determining the number of available channels as residual resources, wherein the residual resources are used for representing the quantity of residual transmission resources of an environment where a local electronic device is located, the number of available channels comprises the number of frequency modulation available channels, and the number of frequency modulation available channels is used for reflecting the number of other electronic devices in the environment where the local electronic device is located and the distance between the other electronic devices and the local electronic device; determining a first environment quality parameter matched with the residual resources, wherein the first environment quality parameter and the residual resources are in negative correlation, the first environment quality parameter is used for representing the quality of transmission resources of the environment where the local electronic equipment is located, and the first environment quality parameter is also used for representing whether the environment where the local electronic equipment is located is quiet or noisy;
The acquisition module is used for acquiring the target transmission parameters matched with the first environment quality parameters;
the transmission module is used for transmitting the audio data through the short-distance communication module based on the target transmission parameters;
the first environment quality parameter indicates a noisy environment, and the transmission power consumption corresponding to the target transmission parameter is lower, so that the quality of the transmitted audio data is lower.
12. An electronic device comprising a processor and a memory; the memory stores at least one program code for execution by the processor to implement the method of transmitting multimedia data according to any one of claims 1 to 10.
13. A computer readable storage medium, characterized in that the computer readable storage medium stores at least one program code for execution by a processor to implement a method of transmission of multimedia data according to any one of claims 1 to 10.
CN202110931664.XA 2021-08-13 2021-08-13 Multimedia data transmission method and device, electronic equipment and storage medium Active CN113660648B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110931664.XA CN113660648B (en) 2021-08-13 2021-08-13 Multimedia data transmission method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110931664.XA CN113660648B (en) 2021-08-13 2021-08-13 Multimedia data transmission method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113660648A CN113660648A (en) 2021-11-16
CN113660648B true CN113660648B (en) 2024-04-05

Family

ID=78479840

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110931664.XA Active CN113660648B (en) 2021-08-13 2021-08-13 Multimedia data transmission method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113660648B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109257820A (en) * 2017-07-14 2019-01-22 华为技术有限公司 Communication means and equipment
CN110299943A (en) * 2019-06-13 2019-10-01 Oppo广东移动通信有限公司 Data transfer control method and Related product
CN110391989A (en) * 2018-04-17 2019-10-29 网宿科技股份有限公司 A kind of method and apparatus carried out data transmission
CN111225404A (en) * 2018-11-23 2020-06-02 华为技术有限公司 Network quality monitoring method and device
CN112532345A (en) * 2020-11-03 2021-03-19 广州技象科技有限公司 Link self-adaption method and device based on user data type requirements
CN112532346A (en) * 2020-11-03 2021-03-19 广州技象科技有限公司 Link self-adaption method and device based on user time requirement

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109257820A (en) * 2017-07-14 2019-01-22 华为技术有限公司 Communication means and equipment
CN110391989A (en) * 2018-04-17 2019-10-29 网宿科技股份有限公司 A kind of method and apparatus carried out data transmission
CN111225404A (en) * 2018-11-23 2020-06-02 华为技术有限公司 Network quality monitoring method and device
CN110299943A (en) * 2019-06-13 2019-10-01 Oppo广东移动通信有限公司 Data transfer control method and Related product
CN112532345A (en) * 2020-11-03 2021-03-19 广州技象科技有限公司 Link self-adaption method and device based on user data type requirements
CN112532346A (en) * 2020-11-03 2021-03-19 广州技象科技有限公司 Link self-adaption method and device based on user time requirement

Also Published As

Publication number Publication date
CN113660648A (en) 2021-11-16

Similar Documents

Publication Publication Date Title
WO2020063311A1 (en) Resource selecting method and terminal
CN111130728B (en) Transmission method, terminal and network side equipment
CN113472480B (en) Transmission processing method and equipment
CN103002106B (en) Mobile terminal and the control method of mobile terminal loudness
CN111817831B (en) Transmission method and communication equipment
CN111199743B (en) Audio coding format determining method and device, storage medium and electronic equipment
CN110381463B (en) Method and equipment for transmitting sidelink information
CN110149167B (en) Method and device for dynamically adjusting codes, mobile terminal and storage medium
CN113438354B (en) Data transmission method and device, electronic equipment and storage medium
CN110460352B (en) Communication control method and related equipment
CN108377157B (en) Control method and device of Wi-Fi antenna
CN103702061A (en) Automatic adjustment method of resolution of video call of intelligent terminal
CN109121126B (en) Electronic equipment, message pushing method and related product
CN113223539B (en) Audio transmission method and electronic equipment
CN110324809B (en) Asynchronous uplink transmission method, terminal and network equipment
CN111371705B (en) Download task execution method and electronic device
CN112564872B (en) PUSCH (physical uplink shared channel) resource selection method and related equipment
CN109819458B (en) Network connection method, terminal device and computer readable storage medium
CN109005581B (en) Transmission power control method and device
CN102868819A (en) Method and device for processing communication service of public account
CN113660648B (en) Multimedia data transmission method and device, electronic equipment and storage medium
CN109196936A (en) A kind of resource allocation indicating method and device, base station and terminal
CN107105503B (en) Data transmission method, communication equipment and system
CN110167117B (en) Device control method and device, host device, mobile terminal and storage medium
CN111277972B (en) Method for determining QoS parameter of direct communication interface and related equipment

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