CN116456022B - Equipment control method, device, equipment and storage medium based on Internet of things - Google Patents

Equipment control method, device, equipment and storage medium based on Internet of things Download PDF

Info

Publication number
CN116456022B
CN116456022B CN202310426714.8A CN202310426714A CN116456022B CN 116456022 B CN116456022 B CN 116456022B CN 202310426714 A CN202310426714 A CN 202310426714A CN 116456022 B CN116456022 B CN 116456022B
Authority
CN
China
Prior art keywords
decibel
song
type
data
environment
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
CN202310426714.8A
Other languages
Chinese (zh)
Other versions
CN116456022A (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.)
Dongguan Hengtai Digital Technology Co ltd
Original Assignee
Dongguan Hengtai Digital Technology Co 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 Dongguan Hengtai Digital Technology Co ltd filed Critical Dongguan Hengtai Digital Technology Co ltd
Priority to CN202310426714.8A priority Critical patent/CN116456022B/en
Publication of CN116456022A publication Critical patent/CN116456022A/en
Application granted granted Critical
Publication of CN116456022B publication Critical patent/CN116456022B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
    • 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
    • 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
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application discloses a device control method, a device and a storage medium based on the Internet of things, wherein the method comprises the following steps: receiving a control instruction triggered by a user, and determining a corresponding control mode according to the control instruction; if the control mode is a first control mode for representing playing songs, determining the environment type of the access equipment corresponding to the control instruction, and calculating a decibel factor under the corresponding environment type; determining a song type and a decibel value of a song to be played of the access equipment, and calculating a play decibel parameter of the song to be played according to the environment type, the decibel factor, the song type and the decibel value; and controlling the access equipment to play the song to be played according to the play decibel parameter. By the technical scheme provided by the application, the technical effect of reducing the power consumption generated in the music playing process of the access equipment is achieved.

Description

Equipment control method, device, equipment and storage medium based on Internet of things
Technical Field
The application relates to the technical field of the internet of things, in particular to a device control method, a device, equipment and a storage medium based on the internet of things.
Background
The intelligent Bluetooth equipment can be paired with different external intelligent Bluetooth equipment, when a user wants to play music through different access equipment operated by the main equipment, the situation that the volume of the access equipment is overlarge or overlarge can occur, the user needs to find the access equipment through the main equipment and then change the volume of the equipment, errors can occur when the access equipment is overlarge, meanwhile, in the process of continuously adjusting the volume, the system can be caused to frequently carry out encoding and decoding, the access equipment is found to carry out volume adjustment, and in the process of frequently carrying out encoding and decoding, the required power consumption is larger.
Disclosure of Invention
Aiming at the defects of the prior art, the application aims to provide a device control method, a device, equipment and a storage medium based on the Internet of things, so as to achieve the technical effect of reducing the power consumption generated in the process of playing music by an access device.
Other features and advantages of the present application will be apparent from the following detailed description, or may be learned in part by the practice of the application.
According to an aspect of the embodiments of the present application, there is provided an apparatus control method based on the internet of things, including:
Receiving a control instruction triggered by a user, and determining a corresponding control mode according to the control instruction;
if the control mode is a first control mode for representing playing songs, determining the environment type of the access equipment corresponding to the control instruction, and calculating a decibel factor under the corresponding environment type;
determining a song type and a decibel value of a song to be played of the access equipment, and calculating a play decibel parameter of the song to be played according to the environment type, the decibel factor, the song type and the decibel value;
and controlling the access equipment to play the song to be played according to the play decibel parameter.
Further, the determining the environment type of the access device corresponding to the control instruction includes:
acquiring an environment decibel value of an environment where the access equipment corresponding to the control instruction is located;
if the environment decibel value is larger than a preset environment decibel threshold value, determining the environment type as a first environment type representing noisy environment;
if the environmental decibel value is smaller than or equal to the preset environmental decibel threshold value, determining that the environmental type is a second environmental type representing a quiet environment;
the calculating the decibel factor under the corresponding environment type comprises the following steps:
And calculating the decibel factor under the corresponding environment type according to the environment decibel value and the decibel value of the song to be played.
Further, the calculating the play decibel parameter of the song to be played according to the environment type, the decibel factor, the song type and the decibel value includes:
determining a decibel mode of the access device according to the song type and the environment type;
acquiring the decibel weight under the corresponding decibel mode according to the decibel mode;
and calculating playing decibel parameters of the song to be played according to the decibel value, the decibel factor and the decibel weight.
Further, the determining the decibel mode of the access device according to the song type and the environment type includes:
if the song type is a first song type representing lyrics songs and the environment type is a first environment type representing noisy environments, determining that the decibel mode of the access equipment is a first decibel mode;
if the song type is a first song type representing a lyric song and the environment type is a second environment type representing a quiet environment, determining that the decibel mode of the access device is a second score Bei Moshi;
If the song type is a second song type representing a hyperthermia song and the environment type is a first environment type representing a noisy environment, determining that the decibel mode of the access equipment is a third decibel mode;
and if the song type is a second song type representing a hyperthermia song and the environment type is a second environment type representing a quiet environment, determining that the decibel mode of the access equipment is a fourth decibel mode.
Further, after the corresponding control mode is determined according to the control instruction, the method further includes:
if the control mode is a second control mode for representing transmission of data to be transmitted, acquiring the data to be transmitted and acquiring a current idle channel; the data to be transmitted comprises pictures and videos;
determining a transmission channel suitable for transmitting the data to be transmitted according to the current idle channel;
and transmitting the data to be transmitted to the access equipment through the transmission channel.
Further, the data to be transmitted includes at least two, and the transmitting the data to be transmitted to the access device through the transmission channel includes:
acquiring the data quantity of each data to be transmitted, and determining the transmission sequence of each data to be transmitted according to the data quantity;
Transmitting the current data to be transmitted to the corresponding access equipment through a transmission channel of the current data to be transmitted according to the transmission sequence;
determining a transmission channel with the maximum transmission rate in the transmission channels of the current data to be transmitted as a target channel, and dormancy is carried out on transmission channels except the target channel in the transmission channels of the current data to be transmitted;
determining a transmission channel of the next adjacent data to be transmitted of the current data to be transmitted according to the target channel and the current idle channel, and jumping to execute the step of transmitting the current data to be transmitted to the corresponding access equipment through the transmission channel of the current data to be transmitted until all the data to be transmitted are transmitted to the corresponding access equipment.
Further, after the corresponding control mode is determined according to the control instruction, the method further includes:
if the control mode is a third control mode for representing song playing and transmitting data to be transmitted, acquiring preset decibel parameters; the data to be transmitted comprises pictures and videos;
controlling access equipment corresponding to the data to be played to play the song to be played through the preset decibel parameter; and
And transmitting the data to be transmitted to the corresponding access equipment through the current idle channel, and dormancy is carried out on the current idle channel.
According to an aspect of the embodiments of the present application, there is provided an apparatus control device based on the internet of things, including:
the receiving module is configured to receive a control instruction triggered by a user and determine a corresponding control mode according to the control instruction;
the first determining module is configured to determine the environment type of the access equipment corresponding to the control instruction if the control mode is a first control mode for representing playing songs, and calculate a decibel factor under the corresponding environment type;
the second determining module is configured to determine a song type and a decibel value of a song to be played of the access equipment, and calculate a play decibel parameter of the song to be played according to the environment type, the decibel factor, the song type and the decibel value;
and the control module is configured to control the access equipment to play the song to be played according to the play decibel parameter.
According to an aspect of an embodiment of the present application, there is provided an electronic device including: one or more processors; and the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the electronic equipment realizes the equipment control method based on the Internet of things.
According to an aspect of the embodiments of the present application, there is provided a computer-readable storage medium having stored thereon computer-readable instructions, which when executed by a processor of a computer, cause the computer to perform the device control method based on the internet of things as described above.
According to an aspect of embodiments of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the device control method based on the internet of things provided in the above-mentioned various alternative embodiments.
In the technical scheme provided by the embodiment of the application, when a user wants to play a song, the environment type, the decibel factor, the song type and the decibel value of the song to be played are comprehensively considered to calculate the play decibel parameter corresponding to the song to be played, when the song to be played is played with the corresponding play decibel parameter, the song can be played with a relatively matched decibel value, when the song is played without an access device, the condition that the volume is too large or too small is avoided, the access device with the too large or too small volume is not required to be found through the main device, then the volume of the access device is changed, and further the power consumption increase caused by frequently coding and decoding the volume is not required to be continuously adjusted.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. It is apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art. In the drawings:
FIG. 1 is a schematic illustration of one implementation environment to which the present application relates;
fig. 2 is a flowchart of a device control method based on the internet of things according to the present application;
FIG. 3 is a flow chart of step S220 in one embodiment contemplated by the present application;
FIG. 4 is a flow chart of step S230 in one embodiment contemplated by the present application;
FIG. 5 is a flow chart of step S410 in one embodiment contemplated by the present application;
fig. 6 is a flowchart of a device control method in the internet of things according to another embodiment of the present application;
FIG. 7 is a flow chart of step S630 in one embodiment contemplated by the present application;
Fig. 8 is a flowchart of a device control method in the internet of things according to another embodiment of the present application;
fig. 9 is a block diagram of an equipment control device based on the internet of things according to the present application;
fig. 10 shows a schematic diagram of a computer system suitable for use in implementing the electronic device of the embodiments of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
Also to be described is: reference to "a plurality" in this application means two or more than two. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., a and/or B may represent: 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.
Referring to fig. 1, fig. 1 is a schematic diagram of an implementation environment according to the present application. The implementation environment includes a master device 120 and a plurality of access devices 110, where the master device 120 and the plurality of access devices 110 communicate over a wireless network, and in particular, may be connected via bluetooth. Both the master device 120 and the access device 110 include a bluetooth module and bluetooth radio and software to support the connection, forming a bluetooth device. When two bluetooth devices want to communicate with each other, they need to pair, and communication between the bluetooth devices takes place in a temporary network of short range (also called a piconet, which refers to a network where devices are connected using bluetooth technology).
Bluetooth technology actually has multiple "categories," i.e., different versions of the core specification. The most common at present are Bluetooth BR/EDR (Basic Rate/Enhanced Data Rate ) and Bluetooth low energy (Bluetooth Low Energy) technologies, which are mainly applied to Bluetooth version 2.0/2.1, and are generally used for products such as speakers and headphones; the low-power consumption Bluetooth technology is mainly applied to Bluetooth version 4.0/4.1/4.2, and is mainly applied to latest products in the market, such as a bracelet, intelligent household equipment, automobile electronics, medical equipment, a Beacon sensor (a small transmitter for transmitting data through the Bluetooth technology) and the like.
The main equipment and the access equipment are positioned in the Internet of things, all intelligent equipment (such as intelligent notebook computers, intelligent mobile phones, intelligent PADs and the like) are connected in one network domain by the Internet of things, an equipment control system based on the Internet of things is started, the access equipment is powered on to work, the access equipment has two working types, one of the two working types is that the access equipment can only play songs, the other one of the two working types is that the access equipment can not only play songs but also transmit data, and the transmitted data comprise pictures or videos and the like.
The device control system based on the Internet of things is arranged in the main device, and a work type identification module of the access device, an environment type identification and transmission channel determination module of the access device and a power consumption reduction module are arranged in the device control system based on the Internet of things, and the detailed description of each module is as follows;
And after the equipment control system based on the Internet of things is started, automatically matching the access equipment which is powered on, and marking the access equipment after successful pairing. Specifically, a command for playing songs is sent to all access devices, the access devices are marked as 1 after receiving the command, and information of the intelligent devices is sent to a device control system based on the Internet of things for storage; meanwhile, a picture is sent to the access equipment, the mark number is 2 after the picture is displayed by the access equipment, information of the intelligent equipment is sent to the equipment control system based on the Internet of things for storage, and the information of the intelligent equipment comprises the name and the mark number of the intelligent equipment. Assume that: the intelligent Bluetooth earphone can only play songs and cannot transmit pictures or videos, and then the intelligent Bluetooth earphone is marked as EJ-1, and EJ is the initial spelling of the earphone; the smart phone can play songs and transmit pictures or videos, and then the smart phone is marked as SJ-2, and SJ is the initial spelling of the mobile phone. The smart PAD can both play songs and transmit pictures or video, then the smart PAD is labeled PAD-2. And storing the label of the access equipment into a temporary storage area 01 of an equipment control system based on the Internet of things.
The user selects different songs to play different access devices or the user selects pictures or videos to be transmitted to different access devices, the device selected by the user is the main device, music is played, or the device receiving the pictures or videos is the access device, for example: the user can select to use the intelligent mobile phone of the main device to play the song through the intelligent PAD of the access device and the intelligent TV of the access device through the device control system based on the Internet of things. When the user needs to access the equipment to work, a control instruction is triggered on the main equipment, the control instruction has a corresponding control mode, and specifically, the control modes comprise three types, namely a first control mode for representing playing songs, a second control mode for representing transmitting data to be transmitted and a third control mode for representing playing songs and transmitting the data to be transmitted.
In a first control mode, a user selects different songs to enable different access devices to play, and after receiving 1S of a control instruction of the user, the device control system based on the Internet of things identifies the song type of the songs to be played. Specifically, the average db value of the song to be played is calculated as the corresponding db value, and the song to be played can be classified into two types according to the db value: when the decibel value is larger than or equal to the decibel threshold value, the decibel threshold value can be set to be 50dB, and 50dB of the song to be played is determined to be a hyperthermia song; when the decibel value is smaller than the decibel threshold value, determining that the song to be played is a lyric song, wherein the lyric song is used as a first song type, and the college entrance examination song is used as a second song type. The db values and song types of all songs to be played are saved in the scratch pad 02. And then the access device with the reference number 1 or the reference number 2 plays a first song to be played, for example, the first song played by the access device EJ-1 is "cool" and the first song played by the access device SJ-2 is "lone courier". The played songs of the access devices EJ-1 and SJ-2 are different in decibel values, but the decibel values of the songs in the song list to be played by all the access devices are stored in the temporary storage area 02, and the songs can be displayed as a lyric song in cool and 30dB in decibel value, a hyperthyroidism song in lone courier in decibel value of 50dB when stored in the temporary storage area 02.
In the second control mode, if the user only wants to transmit a picture or a video, for example, in the device control system based on the internet of things, the main device transmits the data to be transmitted to different access devices, for example, the main device smart phone transmits the data to be transmitted to the access device smart PAD and the access device smart TV through the bluetooth system.
And after the equipment control system based on the Internet of things receives 1S of the control instruction of the user, the equipment control system based on the Internet of things calculates the total data quantity of all the different access equipment to be subjected to data transmission, and the data quantity is stored in the temporary storage area 03 of the equipment control system based on the Internet of things. And then the device control system based on the Internet of things closes the song playing function of all access devices with the reference number 1, for example, the data size of the data to be transmitted of the access device SJ-2 is 30M, the data size of the data to be transmitted of the access device PAD-2 is 40M, and the data sizes of the access devices are all stored in the temporary storage area 03.
In a third control mode, the user selects different songs to play different access devices and selects pictures and videos to be transmitted, after the device control system based on the Internet of things receives 1S of the instruction of the user, the device control system based on the Internet of things sets the decibel values of all the access devices for playing songs to be a fixed decibel value, the fixed decibel value is used as a preset decibel parameter, and can be set to 40dB, wherein 40dB is the optimal decibel value for listening to songs by the user. Different access devices play songs to be played according to the corresponding song list of the access devices with the same decibel value, and meanwhile, data to be transmitted are transmitted in a second control mode.
And starting an environment type identification and transmission channel determination module of the access equipment according to different conditions of a work type identification module of the access equipment by the equipment control system based on the Internet of things, and creating a thread 1. The environment type identification and transmission channel determination module of the access equipment acquires an environment decibel value of an environment where the access equipment is located, if the environment decibel value is greater than or equal to a preset environment decibel threshold, the preset environment decibel threshold can be set to be 50dB, the environment where the access equipment is located is judged to be a noisy environment, the corresponding environment type is a first environment type, if the environment decibel value is smaller than the preset environment decibel threshold, the environment where the access equipment is judged to be a quiet environment, the corresponding environment type is a second environment type, and the equipment control system based on the Internet of things stores the environment decibel value in the temporary storage area 04.
The environment type identification and transmission channel determination module of the access device calculates a decibel factor, absolute value of decibel factor= (decibel value of song to be played-environment decibel value)/decibel value of song to be played. If the value of the decibel factor is more than 30dB, storing the value of the decibel factor into the temporary storage area 05; if the value of the decibel factor is smaller than or equal to 30dB, the module is ended, for example, the decibel value of the song to be played is 20dB, the corresponding environmental decibel value is 70, the absolute value of the subtraction of the two is 50dB, the obtained absolute value is divided by the 20dB value of the song to be played, and the obtained decibel factor is 2.5dB, because when the value of the decibel factor is smaller than or equal to 30dB, the high power consumption of the equipment control system based on the internet of things is not caused, and the operation of the power consumption reduction module is higher than the power consumption which does not originally carry out the operation.
And in 2S after the equipment control system based on the Internet of things closes the song playing function of all the access equipment with the number 1, the environment type identification and transmission channel determination module of the access equipment searches own idle channels, the data transmission rate of each channel is different, and the environment type identification and transmission channel determination module of the access equipment sets the data quantity transmitted by each channel according to the average value of the data transmission rates of all the idle channels, for example, the data quantity transmitted by each channel of the equipment control system based on the Internet of things is 10M.
According to the data amount stored in the temporary storage area 03, the number of idle channels required for transmitting the data to be transmitted=the data amount of all pictures or videos to be transmitted selected by the user/the data amount transmitted by each channel set by the equipment control system based on the internet of things is calculated, and the number of idle channels required for transmitting the data is stored in the temporary storage area 06.
The equipment control system based on the Internet of things starts a power consumption reduction module according to different conditions of the access equipment environment type identification and transmission channel determination module, creates a thread 2, and can automatically adjust decibel values when songs are played according to decibel playing parameters for the access equipment in a first control mode. Specifically, two different treatments are performed according to the classification of the lyrics song and the hyperthermia song within 1S after the decibel factor is calculated.
The device control system based on the internet of things firstly processes a first song played by the access device, and if the first song is a lyric song, the first song is processed according to the lyric song type, and then the songs which are not played yet are processed differently according to the classification of the song types in the temporary storage area 02. The decibel value of the played song is adjusted according to the environmental conditions, so that the power consumption of the Bluetooth system for encoding and decoding can be reduced more accurately.
In the lyric song type, the equipment control system based on the Internet of things reads the decibel value of the song in the temporary storage area 02, the environment type and the environment decibel value in the temporary storage area 04 and the decibel factor value in the temporary storage area 05. If the environment type is a quiet environment, the corresponding dB quantity of the playing dB parameter=the dB value of the song+the dB factor is a dB weight, for example, if the cool is a compact song, the dB value is 30dB, the dB weight is-5% in the quiet environment, and the dB factor is 40dB, then the dB quantity of the playing song=30+40 (-5%) =28 dB, and the equipment control system based on the internet of things enables the main equipment to automatically adjust to the dB quantity of the playing song, so that different access equipment plays the song according to the dB quantity. If the environment type is noisy, the corresponding decibel quantity of playing decibel parameters=the decibel value of the song+the decibel factor is the decibel weight, and the decibel weight under the condition is 20%, and the equipment control system based on the Internet of things enables the main equipment to automatically adjust to the decibel quantity of playing the song, so that different access equipment plays the song according to the decibel quantity. In the embodiment of the application, the maximum dB of the played song cannot exceed 80dB, the minimum dB of the played song cannot be less than 20dB, and if 80dB or 20dB is reached, the played song is played according to 40 dB.
In the hyperthyroidism song type, an equipment control system based on the internet of things reads the decibel value of the song in the temporary storage area 02, the environment type and the environment decibel value in the temporary storage area 04 and the value of the decibel factor in the temporary storage area 05. If the environment type is a quiet environment, the corresponding dB quantity of the playing dB parameter=the dB value of the song+the dB factor is a dB weight, for example, the "lone courier" is a hyperthermia song, the dB value is 60dB, the environment is noisy, the dB factor is 50dB, the corresponding dB weight is-20%, then the dB quantity of the playing song=60-50×20% =50 dB, and the equipment control system based on the internet of things enables the main equipment to automatically adjust to the dB quantity of the playing song, so that different access equipment plays the song according to the dB quantity. If the environment type is noisy, the corresponding decibel quantity of playing decibel parameters=the decibel value of the song+the decibel factor is the decibel weight, and the decibel weight under the condition is 5%, and the equipment control system based on the Internet of things enables the main equipment to automatically adjust to the decibel quantity of playing the song, so that different access equipment plays the song according to the decibel quantity.
In the second control mode, when data to be transmitted needs to be transmitted, the equipment control system based on the Internet of things allocates idle channels for data transmission, reads the number of idle channels required by the data to be transmitted in the temporary storage area 06, randomly allocates different idle channels for transmission according to the number of idle channels required by the data to be transmitted, and other idle channels enter a dormant state.
And when the data to be transmitted is required to be transmitted in the third control mode, after the access equipment plays the 1 st S of the first song. All idle channels are opened for transmitting data to be transmitted. If the idle channel is not enough to transmit all the data to be transmitted at one time, the rest data to be transmitted wait for the next transmission; if the idle channels can transmit all data to be transmitted at one time, after the data transmission is completed, all idle channels are dormant, and all access devices continue to play songs according to 40dB set by the device control system based on the Internet of things.
Fig. 2 is a flowchart illustrating a method of controlling devices based on the internet of things, according to an exemplary embodiment. The method can be applied to the implementation environment shown in fig. 1, and is specifically executed by the equipment control system based on the internet of things in the embodiment environment shown in fig. 1.
As shown in fig. 2, in an exemplary embodiment, the method for controlling a device based on the internet of things may include steps S210 to S240, which are described in detail as follows:
step S210, receiving a control instruction triggered by a user, and determining a corresponding control mode according to the control instruction.
In this embodiment of the present application, at least one access device is connected to a master device through a bluetooth module, and a user triggers on the master device to generate a control instruction, where the control mode includes three control modes as described above according to a control mode corresponding to the control instruction for removing the top.
Step S220, if the control mode is a first control mode representing song playing, determining the environment type of the access equipment corresponding to the control instruction, and calculating a decibel factor under the corresponding environment type.
In this embodiment, if the control mode is the first control mode, it is indicated that the user only wants to play the song without accessing the device, and the playing of the song may include playing the same song by all the accessing devices, and may also include playing different songs by different accessing devices. When the control mode is the first control mode, determining the environment type of the access equipment corresponding to the control instruction, namely determining the environment where the access of the song indicated by the control instruction is located, wherein the access equipment is greatly affected by the environment when the song is played, and calculating the decibel factor under the corresponding environment type.
Step S230, determining a song type and a db value of the song to be played by the access device, and calculating a play db parameter of the song to be played according to the environment type, the db factor, the song type and the db value.
In this embodiment, the song type and the db value of the song to be played of the access device are determined, different songs are provided, and the corresponding song type and db value are different. And calculating play decibel parameters of the songs to be played according to the environment type, the decibel factor, the song type and the decibel value, wherein the play decibel parameters represent the specific number of the songs to be played by the corresponding songs to be played.
And step S240, controlling the access equipment to play the song to be played according to the play decibel parameter.
In the embodiment of the application, the access device is controlled to play the song to be played according to the play decibel parameter. In the embodiment of the application, when a user wants to play a song, the environment type, the decibel factor, the song type and the decibel value of the song to be played are comprehensively considered to calculate the play decibel parameter corresponding to the song to be played, when the song to be played is played with the corresponding play decibel parameter, the song can be played with a proper decibel value, when the song played by the access equipment does not need to occur, the condition that the volume is too large or too small, the access equipment with the too large or too small volume does not need to be found by the main equipment, then the volume of the access equipment is changed, and further the power consumption increase caused by frequently encoding and decoding when the volume is adjusted is not needed in the process of continuously adjusting the volume.
In an exemplary embodiment of the present application, referring to fig. 3, in step S220, the determining the environment type of the access device corresponding to the control instruction includes steps S310 to S330, which are described in detail below:
step S310, obtaining an environment decibel value of the environment where the access equipment corresponding to the control instruction is located.
In this embodiment of the present application, an environmental db value of an environment in which an access device corresponding to a control instruction is located is obtained, and the obtained environmental db value is compared with a preset environmental db threshold, specifically, different access devices may be set with different preset environmental db thresholds, and the same preset environmental db threshold may also be set, which is not limited herein.
Step S320, if the environmental decibel value is greater than the preset environmental decibel threshold, determining the environmental type as the first environmental type representing noisy environment.
In this embodiment, if the environmental decibel value is greater than the preset environmental decibel threshold, it is determined that the environment where the access device is located is a noisy environment, and the corresponding environment type is a first environment type representing the noisy environment.
Step S330, if the environmental decibel value is less than or equal to the preset environmental decibel threshold, determining that the environmental type is a second environmental type representing a quiet environment.
In this embodiment of the present application, if the environmental decibel value is less than or equal to the preset environmental decibel threshold, the environment where the access device is located is determined to be a quiet environment, and the corresponding environment type is a second environment type representing the quiet environment.
The calculating the decibel factor under the corresponding environment type includes step S340, which is described in detail as follows: step S340, calculating a decibel factor under the corresponding environment type according to the environmental decibel value and the decibel value of the song to be played.
In this embodiment of the present application, a decibel factor under a corresponding environment type is calculated according to an environmental decibel value and a decibel value of a song to be played, specifically, an absolute value of a decibel factor= (decibel value of a song to be played-environmental decibel value)/a decibel value of a song to be played.
In an exemplary embodiment of the present application, referring to fig. 4, in step S230, the calculating the play decibel parameter of the song to be played according to the environment type, the decibel factor, the song type and the decibel value includes steps S410 to S430, which are described in detail below:
step S410, determining a decibel mode of the access device according to the song type and the environment type.
In the embodiment of the present application, when songs to be played of different song types are in different environment types, the decibel modes of the corresponding access device are different, and the decibel modes of the access device are determined according to the song types and the environment types.
Step S420, obtaining the decibel weight under the corresponding decibel mode according to the decibel mode.
In the embodiment of the application, the corresponding decibel weights are provided in different decibel modes.
Step S430, calculating playing decibel parameters of the song to be played according to the decibel value, the decibel factor and the decibel weight.
In this embodiment of the present application, a play db parameter of a song to be played is calculated according to a db value, a db factor and a db weight, and specifically, the play db parameter=the db value of the song to be played+the db factor.
In an exemplary embodiment of the present application, referring to fig. 5, determining the db mode of the access device according to the song type and the environment type in step S410 includes steps S510 to S540, which are described in detail below:
step S510, if the song type is a first song type representing a lyric, and the environment type is a first environment type representing a noisy environment, determining that the decibel mode of the access device is a first decibel mode.
In this embodiment, if the song type is a first song type representing a expressing song and the environment type is a first environment type representing a noisy environment, it is determined that the decibel mode of the access device is a first decibel mode, and the decibel weight corresponding to the first decibel mode may be set to 20%.
In step S520, if the song type is a first song type representing a lyric, and the environment type is a second environment type representing a quiet environment, it is determined that the decibel mode of the access device is a second decibel mode.
In this embodiment of the present application, if the song type is a first song type representing a lyric, and the environment type is a second environment type representing a quiet environment, it is determined that the decibel mode of the access device is a second score Bei Moshi, and the decibel weight corresponding to the second score mode may be set to-5%.
In step S530, if the song type is the second song type representing the hyperthermia song and the environment type is the first environment type representing the noisy environment, the decibel mode of the access device is determined to be the third decibel mode.
In this embodiment, if the song type is the second song type representing the hyperthyroidism song and the environment type is the first environment type representing the noisy environment, the decibel mode of the access device is determined to be the third decibel mode, and the decibel weight corresponding to the third decibel mode may be set to 5%.
Step S540, if the song type is the second song type characterizing the hyperthermia song and the environment type is the second environment type characterizing the quiet environment, determining that the decibel mode of the access device is the fourth decibel mode.
In this embodiment, if the song type is the second song type representing the hyperthyroidism song and the environment type is the second environment type representing the quiet environment, the decibel mode of the access device is determined to be the fourth decibel mode, and the decibel weight corresponding to the fourth decibel mode may be set to-20%. In the application, the song types and the environment types in the four decibel modes are not identical, different conditions can be used, and meanwhile, the corresponding decibel weights in each decibel mode are not identical, so that the requirements under various conditions can be met.
In an exemplary embodiment of the present application, referring to fig. 6, after determining the corresponding control mode according to the control command in step S210, the method further includes steps S610 to S630, which are described in detail below:
step S610, if the control mode is a second control mode for representing transmission of data to be transmitted, the data to be transmitted is obtained, and a current idle channel is obtained; the data to be transmitted comprises pictures and videos; .
In this embodiment, if the control mode is the second control mode for representing transmission of data to be transmitted, that is, the user only wants to transmit the data to be transmitted, the data to be transmitted includes pictures or videos, and the current idle channel, that is, the channel which is not currently transmitting data is obtained.
Step S620, determining a transmission channel suitable for transmitting the data to be transmitted according to the current idle channel.
In the embodiment of the application, a transmission channel suitable for transmitting data to be transmitted is determined according to the current idle channel. Specifically, the number of channels required by data to be transmitted for data transmission is obtained, the number of channels of a current idle channel is obtained, if the number of channels of the current idle channel is smaller than or equal to the number of channels required for data transmission, all idle channels are used as transmission channels for transmitting the data to be transmitted, and if the idle channels are not enough to transmit all the data to be transmitted at one time, the rest data to be transmitted wait for the next transmission. If the number of the current idle channels is larger than the number of channels required for transmitting the data to be transmitted, determining the idle channels with the number of the channels required for transmitting the data to be transmitted from the idle channels as transmission channels.
Step S630, transmitting the data to be transmitted to the access device through the transmission channel.
In the embodiment of the application, the data to be transmitted is transmitted to the access device through the transmission channel.
In an exemplary embodiment of the present application, referring to fig. 7, the data to be transmitted includes at least two data to be transmitted, and in step S630, the data to be transmitted is transmitted to the access device through the transmission channel, including steps S710 to S740, which are described in detail below:
step S710, obtaining the data quantity of each data to be transmitted, and determining the transmission sequence of each data to be transmitted according to the data quantity.
In the embodiment of the present application, when the data to be transmitted includes a plurality of data, the data to be transmitted is ordered according to the data amount, so as to obtain the transmission data. In another embodiment of the present application, the transmission order is obtained according to the order of calculating the data amount of each data to be transmitted, that is, if the data amount of the access device SJ-2 is calculated preferentially, and then the data amount of the access device PAD-2 is calculated, the corresponding transmission order is to transmit the data to be transmitted corresponding to the access device SJ-2 preferentially, and the data to be transmitted corresponding to the access device PAD-2 is transmitted.
Step S720, according to the transmission sequence, transmitting the current data to be transmitted to the corresponding access device through the transmission channel of the current data to be transmitted.
In the embodiment of the present application, data to be transmitted is transmitted according to a transmission sequence, and when data is transmitted, the data to be transmitted is transmitted to a corresponding access device through a transmission channel of the current data to be transmitted.
Step S730, determining a transmission channel with the largest transmission rate among the transmission channels of the current data to be transmitted as a target channel, and dormancy is performed on transmission channels other than the target channel among the transmission channels of the current data to be transmitted.
In this embodiment, after data transmission is completed, it is determined that a transmission channel with the largest transmission rate in the transmission channels of the current data to be transmitted is used as a target channel, if the transmission channels of the current data to be transmitted include channels 1, 2 and 3, and the data transmission rates corresponding to different channels are different, it is determined that the transmission channel with the largest transmission rate in the transmission channels of the current data to be transmitted is used as the target channel, if the transmission rate of channel 3 is the largest, channel 3 is used as the target channel, and transmission channels other than the target channel in the transmission channels of the current data to be transmitted are dormant, that is, the channels 1 and 2 are dormant.
Step S740, determining a transmission channel of the next adjacent data to be transmitted of the current data to be transmitted according to the target channel and the current idle channel, and jumping to perform the step of transmitting the current data to be transmitted to the corresponding access device through the transmission channel of the current data to be transmitted until all the data to be transmitted are transmitted to the corresponding access device.
In this embodiment of the present application, a transmission channel of next adjacent data to be transmitted of current data to be transmitted is determined according to a target channel and a current idle channel, for example, after the data to be transmitted of the access device SJ-2 is transmitted, the number of channels required by the access device PAD-2 is determined to be 4, and after the channel 3 is used as the transmission channel of the access device PAD-2, 3 idle channels are randomly selected from the idle channels to be used as the transmission channels of the access device PAD-2. And skipping to execute the step of transmitting the current data to be transmitted to the corresponding access equipment through the transmission channel of the current data to be transmitted until all the data to be transmitted are transmitted to the corresponding access equipment.
In an exemplary embodiment of the present application, referring to fig. 8, after determining the corresponding control mode according to the control command in step S210, the method further includes steps S810 to S830, which are described in detail below:
Step 810, if the control mode is a third control mode for representing playing songs and transmitting data to be transmitted, obtaining preset decibel parameters; the data to be transmitted comprises pictures and videos.
In this embodiment, if the user wants to play a song and wants to transmit data, the corresponding control mode is the third control mode, and the preset decibel parameter is obtained, where the preset decibel parameter is a preset optimal decibel value, such as 40dB, for listening to the song.
Step S820, controlling the access equipment corresponding to the data to be played to play the song to be played through the preset decibel parameter; and
in the embodiment of the application, all songs to be played are played according to the preset decibel parameters.
Step S830, transmitting the data to be transmitted to the corresponding access device through the current idle channel, and dormancy is performed on the current idle channel.
In the embodiment of the application, all the current idle channels are used for transmitting the data to be transmitted, and after the data transmission of the data to be transmitted is completed, all the current idle channels are dormant, and the access equipment for playing songs continues to play the songs.
In an exemplary embodiment of the present application, referring to fig. 9, fig. 9 is a device control apparatus based on the internet of things, which includes:
A receiving module 910, configured to receive a control instruction triggered by a user, and determine a corresponding control mode according to the control instruction;
a first determining module 920, configured to determine an environment type of the access device corresponding to the control instruction if the control mode is a first control mode representing playing songs, and calculate a decibel factor under the corresponding environment type;
a second determining module 930 configured to determine a song type and a decibel value of a song to be played by the access device, and calculate a play decibel parameter of the song to be played according to the environment type, the decibel factor, the song type and the decibel value;
and the control module 940 is configured to control the access device to play the song to be played according to the play decibel parameter.
In an exemplary embodiment of the present application, the first determining module 920 includes:
the first acquisition submodule is configured to acquire an environment decibel value of an environment where the access equipment corresponding to the control instruction is located;
the first determining submodule is configured to determine that the environment type is a first environment type representing a noisy environment if the environment decibel value is larger than a preset environment decibel threshold;
A second determining submodule configured to determine the environmental type as a second environmental type characterizing a quiet environment if the environmental decibel value is less than or equal to the preset environmental decibel threshold;
the first determining module 920 includes:
and the first calculating submodule is configured to calculate the decibel factor under the corresponding environment type according to the environment decibel value and the decibel value of the song to be played.
In an exemplary embodiment of the present application, the second determining module 930 includes:
a third determination sub-module configured to determine a decibel mode of the access device based on the song type and the environment type;
the second acquisition submodule is configured to acquire the decibel weight in the corresponding decibel mode according to the decibel mode;
and the second calculating submodule is configured to calculate playing decibel parameters of the song to be played according to the decibel value, the decibel factor and the decibel weight.
In one exemplary embodiment of the present application, the third determination sub-module includes:
the first determining unit is configured to determine that the decibel mode of the access device is a first decibel mode if the song type is a first song type representing a lyric song and the environment type is a first environment type representing a noisy environment;
A second determining unit configured to determine that the decibel mode of the access device is a second score Bei Moshi if the song type is a first song type representing a lyric song and the environment type is a second environment type representing a quiet environment;
a third determining unit configured to determine that the decibel mode of the access device is a third decibel mode if the song type is a second song type representing a hyperactive song and the environment type is a first environment type representing a noisy environment;
and the fourth determining unit is configured to determine that the decibel mode of the access equipment is a fourth decibel mode if the song type is a second song type representing a hyperthermia song and the environment type is a second environment type representing a quiet environment.
In an exemplary embodiment of the present application, the device control apparatus based on the internet of things further includes:
the first acquisition module is configured to acquire the data to be transmitted and acquire a current idle channel if the control mode is a second control mode for representing the data to be transmitted; the data to be transmitted comprises pictures and videos;
the third determining module is configured to determine a transmission channel applicable to the data to be transmitted according to the current idle channel;
And the first transmission module is configured to transmit the data to be transmitted to the access equipment through the transmission channel.
In an exemplary embodiment of the present application, the data to be transmitted includes at least two transmission modules, including:
the third acquisition submodule is configured to acquire the data quantity of each data to be transmitted, and determine the transmission sequence of each data to be transmitted according to the data quantity;
the transmission sub-module is configured to transmit the current data to be transmitted to the corresponding access equipment through a transmission channel of the current data to be transmitted according to the transmission sequence;
a fourth determining submodule configured to determine a transmission channel with the largest transmission rate among the transmission channels of the current data to be transmitted as a target channel and to sleep transmission channels other than the target channel among the transmission channels of the current data to be transmitted;
and a fifth determining submodule configured to determine a transmission channel of the next adjacent data to be transmitted of the current data to be transmitted according to the target channel and the current idle channel, and skip the step of transmitting the current data to be transmitted to the corresponding access device through the transmission channel of the current data to be transmitted until all the data to be transmitted are transmitted to the corresponding access device.
In an exemplary embodiment of the present application, the device control apparatus based on the internet of things further includes:
the second acquisition module is configured to acquire preset decibel parameters if the control mode is a third control mode for representing song playing and transmitting data to be transmitted; the data to be transmitted comprises pictures and videos;
the playing module is configured to control the access equipment corresponding to the data to be played to play the song to be played through the preset decibel parameter; and
and the second transmission module is configured to transmit the data to be transmitted to the corresponding access equipment through the current idle channel and dormant the current idle channel.
It should be noted that, the apparatus provided in the foregoing embodiments and the method provided in the foregoing embodiments belong to the same concept, and the specific manner in which each module and unit perform the operation has been described in detail in the method embodiments, which is not repeated herein.
The embodiment of the application also provides electronic equipment, which comprises: one or more processors; and the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the electronic equipment realizes the equipment control method based on the Internet of things provided in the above embodiments.
Fig. 10 shows a schematic diagram of a computer system suitable for use in implementing the electronic device of the embodiments of the present application.
It should be noted that, the computer system 1000 of the electronic device shown in fig. 10 is only an example, and should not impose any limitation on the functions and the application scope of the embodiments of the present application.
As shown in fig. 10, the computer system 1000 includes a central processing unit (Central Processing Unit, CPU) 1001 that can perform various appropriate actions and processes, such as performing the method described in the above embodiment, according to a program stored in a Read-Only Memory (ROM) 1002 or a program loaded from a storage section 1008 into a random access Memory (Random Access Memory, RAM) 1003. In the RAM 1003, various programs and data required for system operation are also stored. The CPU 1001, ROM 1002, and RAM 1003 are connected to each other by a bus 1004. An Input/Output (I/O) interface 1005 is also connected to bus 1004.
The following components are connected to the I/O interface 1005: an input section 1006 including a keyboard, a mouse, and the like; an output portion 1007 including a Cathode Ray Tube (CRT), a liquid crystal display (Liquid Crystal Display, LCD), and a speaker; a storage portion 1008 including a hard disk or the like; and a communication section 1009 including a network interface card such as a LAN (Local Area Network ) card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the internet. The drive 1010 is also connected to the I/O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is installed on the drive 1010 as needed, so that a computer program read out therefrom is installed into the storage section 1008 as needed.
In particular, according to embodiments of the present application, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 1009, and/or installed from the removable medium 1011. When executed by a Central Processing Unit (CPU) 1001, the computer program performs various functions defined in the system of the present application.
It should be noted that, the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium may be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-Only Memory (ROM), an erasable programmable read-Only Memory (Erasable Programmable Read Only Memory, EPROM), flash Memory, an optical fiber, a portable compact disc read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with a computer-readable computer program embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. A computer program embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Where each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented by means of software, or may be implemented by means of hardware, and the described units may also be provided in a processor. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
Another aspect of the present application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment or may exist alone without being incorporated in the electronic device.
Another aspect of the present application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the methods provided in the above-described respective embodiments.
The foregoing is merely a preferred exemplary embodiment of the present application and is not intended to limit the embodiments of the present application, and those skilled in the art may make various changes and modifications according to the main concept and spirit of the present application, so that the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (8)

1. The equipment control method based on the Internet of things is characterized by comprising the following steps of:
receiving a control instruction triggered by a user, and determining a corresponding control mode according to the control instruction;
if the control mode is a first control mode for representing playing songs, determining the environment type of the access equipment corresponding to the control instruction, and calculating a decibel factor under the corresponding environment type;
determining a song type and a decibel value of a song to be played of the access equipment, and calculating a play decibel parameter of the song to be played according to the environment type, the decibel factor, the song type and the decibel value;
controlling the access equipment to play the song to be played according to the play decibel parameter;
wherein the calculating the decibel factor for the corresponding environment type comprises:
calculating the absolute value of the difference between the environment decibel value of the environment where the access equipment is located and the decibel value of the song to be played, and dividing the absolute value by the decibel value of the song to be played to obtain a decibel factor under the corresponding environment type;
wherein the determining the song type of the song to be played of the access device includes:
if the decibel value of the song to be played is smaller than the decibel threshold value, determining that the song type of the song to be played is a first song type representing the lyrics, and if the decibel value of the song to be played is larger than or equal to the decibel threshold value, determining that the song type of the song to be played is a second song type representing the hyperthermia song;
If the control mode is a second control mode for representing transmission of data to be transmitted, acquiring the data to be transmitted and acquiring a current idle channel; the data to be transmitted comprises pictures and videos;
determining a transmission channel suitable for transmitting the data to be transmitted according to the current idle channel;
transmitting the data to be transmitted to the access equipment through the transmission channel;
if the control mode is a third control mode for representing song playing and transmitting data to be transmitted, acquiring preset decibel parameters; the data to be transmitted comprises pictures and videos;
controlling access equipment corresponding to the data to be played to play the song to be played through the preset decibel parameter; and
and transmitting the data to be transmitted to the corresponding access equipment through the current idle channel, and dormancy is carried out on the current idle channel.
2. The method for controlling a device based on the internet of things according to claim 1, wherein the determining the environment type of the access device corresponding to the control instruction includes:
acquiring an environment decibel value of an environment where the access equipment corresponding to the control instruction is located;
if the environment decibel value is larger than a preset environment decibel threshold value, determining the environment type as a first environment type representing noisy environment;
And if the environment decibel value is smaller than or equal to the preset environment decibel threshold value, determining that the environment type is a second environment type representing the quiet environment.
3. The internet of things-based device control method of claim 1, wherein the calculating the play decibel parameter of the song to be played according to the environment type, the decibel factor, the song type, and the decibel value comprises:
determining a decibel mode of the access device according to the song type and the environment type;
acquiring the decibel weight under the corresponding decibel mode according to the decibel mode;
and calculating playing decibel parameters of the song to be played according to the decibel value, the decibel factor and the decibel weight.
4. The internet of things-based device control method of claim 3, wherein the determining the decibel mode of the access device according to the song type and the environment type comprises:
if the song type is a first song type representing lyrics songs and the environment type is a first environment type representing noisy environments, determining that the decibel mode of the access equipment is a first decibel mode;
If the song type is a first song type representing a lyric song and the environment type is a second environment type representing a quiet environment, determining that the decibel mode of the access device is a second score Bei Moshi;
if the song type is a second song type representing a hyperthermia song and the environment type is a first environment type representing a noisy environment, determining that the decibel mode of the access equipment is a third decibel mode;
and if the song type is a second song type representing a hyperthermia song and the environment type is a second environment type representing a quiet environment, determining that the decibel mode of the access equipment is a fourth decibel mode.
5. The device control method based on the internet of things according to claim 1, wherein the data to be transmitted includes at least two, and the transmitting the data to be transmitted to the access device through the transmission channel includes:
acquiring the data quantity of each data to be transmitted, and determining the transmission sequence of each data to be transmitted according to the data quantity;
transmitting the current data to be transmitted to the corresponding access equipment through a transmission channel of the current data to be transmitted according to the transmission sequence;
Determining a transmission channel with the maximum transmission rate in the transmission channels of the current data to be transmitted as a target channel, and dormancy is carried out on transmission channels except the target channel in the transmission channels of the current data to be transmitted;
determining a transmission channel of the next adjacent data to be transmitted of the current data to be transmitted according to the target channel and the current idle channel, and jumping to execute the step of transmitting the current data to be transmitted to the corresponding access equipment through the transmission channel of the current data to be transmitted until all the data to be transmitted are transmitted to the corresponding access equipment.
6. An equipment control device based on thing networking, characterized by comprising:
the receiving module is configured to receive a control instruction triggered by a user and determine a corresponding control mode according to the control instruction;
the first determining module is configured to determine the environment type of the access equipment corresponding to the control instruction if the control mode is a first control mode for representing playing songs, and calculate a decibel factor under the corresponding environment type;
the second determining module is configured to determine a song type and a decibel value of a song to be played of the access equipment, and calculate a play decibel parameter of the song to be played according to the environment type, the decibel factor, the song type and the decibel value;
The control module is configured to control the access equipment to play the song to be played according to the play decibel parameter;
wherein the first determining module includes:
calculating the absolute value of the difference between the environment decibel value of the environment where the access equipment is located and the decibel value of the song to be played, and dividing the absolute value by the decibel value of the song to be played to obtain a decibel factor under the corresponding environment type;
wherein the determining the song type of the song to be played of the access device includes:
if the decibel value of the song to be played is smaller than the decibel threshold value, determining that the song type of the song to be played is a first song type representing the lyrics, and if the decibel value of the song to be played is larger than or equal to the decibel threshold value, determining that the song type of the song to be played is a second song type representing the hyperthermia song;
the equipment control device based on the internet of things further comprises:
the first acquisition module is configured to acquire the data to be transmitted and acquire a current idle channel if the control mode is a second control mode for representing the data to be transmitted; the data to be transmitted comprises pictures and videos;
the third determining module is configured to determine a transmission channel applicable to the data to be transmitted according to the current idle channel;
A first transmission module configured to transmit the data to be transmitted to the access device through the transmission channel;
the equipment control device based on the internet of things further comprises:
the second acquisition module is configured to acquire preset decibel parameters if the control mode is a third control mode for representing song playing and transmitting data to be transmitted; the data to be transmitted comprises pictures and videos;
the playing module is configured to control the access equipment corresponding to the data to be played to play the song to be played through the preset decibel parameter; and
and the second transmission module is configured to transmit the data to be transmitted to the corresponding access equipment through the current idle channel and dormant the current idle channel.
7. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs that, when executed by the one or more processors, cause the electronic device to implement the internet of things-based device control method of any of claims 1-5.
8. A computer-readable storage medium having stored thereon computer-readable instructions, which when executed by a processor of a computer, cause the computer to perform the internet of things-based device control method of any one of claims 1 to 5.
CN202310426714.8A 2023-04-19 2023-04-19 Equipment control method, device, equipment and storage medium based on Internet of things Active CN116456022B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310426714.8A CN116456022B (en) 2023-04-19 2023-04-19 Equipment control method, device, equipment and storage medium based on Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310426714.8A CN116456022B (en) 2023-04-19 2023-04-19 Equipment control method, device, equipment and storage medium based on Internet of things

Publications (2)

Publication Number Publication Date
CN116456022A CN116456022A (en) 2023-07-18
CN116456022B true CN116456022B (en) 2024-02-23

Family

ID=87133300

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310426714.8A Active CN116456022B (en) 2023-04-19 2023-04-19 Equipment control method, device, equipment and storage medium based on Internet of things

Country Status (1)

Country Link
CN (1) CN116456022B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812581A (en) * 2016-05-12 2016-07-27 乐视控股(北京)有限公司 Volume automatic adjustment method and device
CN106339198A (en) * 2016-08-19 2017-01-18 惠州Tcl移动通信有限公司 Method and system for automatically adjusting sound volume of electronic equipment through ambient volume
CN106648524A (en) * 2016-09-30 2017-05-10 四川九洲电器集团有限责任公司 Audio paying method and audio playing equipment
CN109375893A (en) * 2018-11-20 2019-02-22 北京小米移动软件有限公司 Audio frequency playing method and device
CN110012386A (en) * 2019-03-29 2019-07-12 维沃移动通信有限公司 A kind of volume adjusting method and terminal of terminal
CN110799936A (en) * 2017-08-18 2020-02-14 Oppo广东移动通信有限公司 Volume adjusting method and device, terminal equipment and storage medium
WO2021180174A1 (en) * 2020-03-11 2021-09-16 广州酷狗计算机科技有限公司 Song playing method, apparatus, and system and computer storage medium
CN114745451A (en) * 2022-04-26 2022-07-12 Oppo广东移动通信有限公司 Data transmission method and device, electronic equipment and computer readable medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812581A (en) * 2016-05-12 2016-07-27 乐视控股(北京)有限公司 Volume automatic adjustment method and device
CN106339198A (en) * 2016-08-19 2017-01-18 惠州Tcl移动通信有限公司 Method and system for automatically adjusting sound volume of electronic equipment through ambient volume
CN106648524A (en) * 2016-09-30 2017-05-10 四川九洲电器集团有限责任公司 Audio paying method and audio playing equipment
CN110799936A (en) * 2017-08-18 2020-02-14 Oppo广东移动通信有限公司 Volume adjusting method and device, terminal equipment and storage medium
CN109375893A (en) * 2018-11-20 2019-02-22 北京小米移动软件有限公司 Audio frequency playing method and device
CN110012386A (en) * 2019-03-29 2019-07-12 维沃移动通信有限公司 A kind of volume adjusting method and terminal of terminal
WO2021180174A1 (en) * 2020-03-11 2021-09-16 广州酷狗计算机科技有限公司 Song playing method, apparatus, and system and computer storage medium
CN114745451A (en) * 2022-04-26 2022-07-12 Oppo广东移动通信有限公司 Data transmission method and device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
CN116456022A (en) 2023-07-18

Similar Documents

Publication Publication Date Title
WO2018082412A1 (en) Electronic equipment control method, device and electronic equipment
US20180152163A1 (en) Noise control method and device
US11822854B2 (en) Automatic volume adjustment method and apparatus, medium, and device
CN111033614A (en) Volume adjusting method and device, mobile terminal and storage medium
CN110297532A (en) Cooling control method and electronic equipment
CN114143660A (en) Wireless earphone control method and device and electronic equipment
CN108566706A (en) flash lamp control method, device, terminal device and storage medium
WO2019076002A1 (en) Right control method and apparatus for terminal device
CN108829370B (en) Audio resource playing method and device, computer equipment and storage medium
CN113824835A (en) Volume control method and device, electronic equipment and storage medium
CN116456022B (en) Equipment control method, device, equipment and storage medium based on Internet of things
CN107483734B (en) Volume adjusting method and device, terminal equipment and storage medium
CN112188342A (en) Equalization parameter determination method and device, electronic equipment and storage medium
CN112863545A (en) Performance test method and device, electronic equipment and computer readable storage medium
KR20200108348A (en) Data transfer
CN112106101A (en) Method and apparatus for identifying a signal using a low power watermark
CN112883222B (en) Song recommendation playing method, electronic equipment and computer readable storage medium
CN112307161B (en) Method and apparatus for playing audio
US20100121901A1 (en) Moving-picture processing device and moving-picture processing method
CN114121050A (en) Audio playing method and device, electronic equipment and storage medium
WO2021042538A1 (en) Method and device for audio processing, and computer storage medium
CN108810596B (en) Video editing method and device and terminal
CN116095396A (en) Volume balancing method and device based on video loudness
CN110489572B (en) Multimedia data processing method, device, terminal and storage medium
CN116567725B (en) Multi-edge server network task unloading method with minimum time delay

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