Lightweight multi-scene campus broadcasting system
By designing a lightweight multi-scenario campus broadcast system, using smart speaker equipment, servers and control modules, combined with Internet of Things technology and MQTT protocol, the problems of complex wiring, limited sound quality, and insufficient flexibility in the existing system are solved, and an efficient, flexible and intelligent campus broadcast system is achieved.
Patent Information
- Application Number
- CN202411593553.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2025-03-25
AI Technical Summary
The existing campus broadcast system has problems such as complex wiring, limited sound quality, insufficient flexibility, difficult control and management, and lack of intelligent functions.
A lightweight multi-scenario campus broadcasting system is designed, using smart speaker equipment, servers and control modules to realize real-time transmission of audio data and issue control instructions through Internet of Things technology and MQTT protocol. The system includes acquisition units, analysis units and processing units, which are used to monitor and adjust transmission policies in real time to ensure efficient transmission of audio data and system flexibility.
It significantly reduces the construction cost and installation and debugging complexity of campus broadcasting systems, improves the flexibility and convenience of the system, supports multi-functional and multi-scene use, and realizes real-time broadcast and emergency broadcast functions.
Smart Images

Figure CN119696717A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of broadcasting systems, and in particular to a lightweight multi-scenario campus broadcasting system. Background Art
[0002] By applying the Internet of Things technology, remote control and data transmission of smart speaker devices can be realized through mobile phone applications. Smart speaker devices can be equipped with an Internet of Things card or connected to the Internet through a wired network, and use network protocols to exchange data and control signals. This solution does not require the additional deployment of special network lines, and realizes control and data transmission without distance restrictions. After incorporating the smart speaker device into the system and binding it to its school, authorized personnel can log in to the mobile phone application through a specific account to command and control the smart speakers in the entire school or a specific area, and transmit data such as audio streams and audio files to them. The core hardware of the traditional campus broadcasting system includes microphones, CD / DVD players, computers or media players as sound source devices, mixers, equalizers and amplifiers as audio processing devices, and speakers and headphones as output devices. These hardware devices are connected through audio signal transmission lines (such as coaxial cables and twisted pairs) to form a local area network, transmit analog audio signals, and ensure smooth operation of the system.
[0003] In modern campus broadcasting systems, data transmission technology may also use digital audio transmission, such as transmitting digital signals through Ethernet. In this case, network devices such as network switches and routers are used to distribute digital audio signals to various speakers to ensure signal stability and quality. However, the current campus broadcasting system has problems such as complex wiring, limited sound quality, insufficient flexibility, difficulty in control and management, and lack of intelligent functions. Summary of the invention
[0004] In view of this, the present invention proposes a lightweight multi-scenario campus broadcasting system, aiming to solve the problems existing in the current technology, such as complex wiring, limited sound quality, insufficient flexibility, difficult control and management, and lack of intelligent functions.
[0005] The present invention proposes a lightweight multi-scenario campus broadcasting system, comprising:
[0006] There are several smart speaker devices, wherein the several smart speaker devices are arranged inside the campus, an Internet of Things card is arranged inside the smart speaker device, the smart speaker device is connected to the campus network through the Internet of Things card or a wired network, and the smart speaker device is used to play audio data;
[0007] A server, connected to the smart speaker device, and configured to store and manage the audio data;
[0008] A control module connected to the server, the control module comprising a collection unit, an analysis unit and a processing unit;
[0009] The collection unit is configured to collect the audio data; and is also configured to collect the transmission mode of the audio data, and determine an initial transmission strategy according to the transmission mode of the audio data; wherein the transmission mode includes real-time audio streaming transmission and pre-recorded audio file transmission;
[0010] The analysis unit is configured to, when the transmission mode is real-time audio streaming transmission, control the collection unit to collect the first time when the audio data is sent from the collection unit to the server; collect the second time when the smart speaker device receives the audio data from the server, obtain the total transmission time according to the first time and the second time, compare the total transmission time with the standard transmission time, and determine whether to adjust the initial transmission strategy according to the comparison result, and when the total transmission time is greater than the standard transmission time, determine to adjust the initial transmission strategy; and is also configured to, when the transmission mode is pre-recorded audio file transmission, control the collection unit to collect the audio quality of the audio data, compare the audio quality with the audio quality threshold, and determine whether to adjust the initial transmission strategy according to the comparison result;
[0011] The processing unit is configured to, when the transmission mode is real-time audio stream transmission and it is determined that the initial transmission strategy needs to be adjusted, compare the first time with the first time threshold and the second time with the second time threshold, and adjust the initial transmission strategy according to the comparison result; and is also configured to, when the transmission mode is pre-recorded audio file transmission and it is determined that the initial transmission strategy needs to be adjusted, adjust the initial transmission strategy according to the transmission requirements.
[0012] Furthermore, the lightweight multi-scenario campus broadcasting system uses the MQTT protocol to publish control instructions and the transmission of the audio data, and forwards the control instructions to the corresponding smart speaker device;
[0013] The control instruction includes starting to play the audio data, stopping to play the audio data and adjusting the volume of the audio data.
[0014] Furthermore, the lightweight multi-scenario campus broadcasting system further includes:
[0015] The attendance device is connected to the smart speaker device, the server and the control module. The attendance device is used to record the student's sign-in information data and upload the sign-in information data to the server; the server processes the sign-in information data and sends the sign-in information data to the smart speaker device of the class corresponding to the student through the MQTT protocol for playback.
[0016] Furthermore, the control module further includes:
[0017] A timing unit, when the transmission method is a pre-recorded audio file transmission, the timing unit is used to control the server to push the audio data to the smart speaker device through the MQTT protocol at a specified time; after the smart speaker device receives the audio data, it plays the audio data according to the scheduled time.
[0018] Furthermore, the control module further includes:
[0019] The identity authentication unit is configured to perform identity authentication when the smart speaker device establishes a connection with the server, and to assign different usage permissions according to the user's level.
[0020] Furthermore, the control module further includes:
[0021] The emergency broadcast unit is configured to immediately interrupt the currently playing audio data in an emergency situation and send an emergency broadcast instruction to all the smart speaker devices through the MQTT protocol; after receiving the emergency broadcast instruction, the smart speaker device immediately switches to the emergency broadcast mode and plays the pre-set emergency broadcast audio data.
[0022] Furthermore, when the transmission mode is real-time audio streaming transmission, the total transmission time is compared with the standard transmission time, and whether to adjust the initial transmission strategy is determined according to the comparison result, including:
[0023] When the total transmission time is less than or equal to the standard transmission time, the analysis unit determines not to adjust the initial transmission strategy;
[0024] When the total transmission time is longer than the standard transmission time, the analyzing unit determines to adjust the initial transmission strategy.
[0025] Further, when the transmission mode is real-time audio stream transmission, and it is determined that the initial transmission strategy is to be adjusted, the first time is compared with the first time threshold, and the second time is compared with the second time threshold, and the initial transmission strategy is adjusted according to the comparison result, including:
[0026] When the first time is less than or equal to the first time threshold, and the second time is less than or equal to the second time threshold, maintaining the initial transmission strategy;
[0027] When the first time is less than or equal to the first time threshold, and the second time is greater than the second time threshold, optimizing the transmission path from the server to the smart speaker device;
[0028] When the first time is greater than the first time threshold and the second time is less than or equal to the second time threshold, optimizing the transmission path from the server to the smart speaker device;
[0029] When the first time is greater than the first time threshold and the second time is greater than the second time threshold, both the transmission path from the server to the smart speaker device and the transmission path from the server to the smart speaker device are optimized.
[0030] Further, when the transmission mode is pre-recorded audio file transmission, the audio quality is compared with the audio quality threshold, and whether to adjust the initial transmission strategy is determined according to the comparison result, including:
[0031] When the audio quality is less than the audio quality threshold, the analyzing unit determines not to adjust the initial transmission strategy;
[0032] When the audio quality is greater than or equal to the audio quality threshold, the analyzing unit determines to adjust the initial transmission strategy.
[0033] Further, when the transmission mode is pre-recorded audio file transmission, and it is determined that the initial transmission strategy is to be adjusted, the initial transmission strategy is adjusted according to the transmission demand, including:
[0034] When the transmission requirement is to increase the transmission speed of the audio file, the processing unit optimizes the network bandwidth allocation;
[0035] When the transmission requirement is to reduce the transmission power consumption of the audio file, the processing unit reduces the size of the data packet and reduces the transmission frequency;
[0036] When the transmission requirement is to ensure the stability of audio file transmission, the processing unit adds redundant data packets and an error detection mechanism;
[0037] When the transmission requirement is to improve the security of audio file transmission, the processing unit will enable the identity authentication unit and start the identity authentication mechanism.
[0038] Compared with the prior art, the beneficial effects of the present invention are: the present invention greatly reduces the construction cost of the campus broadcasting system: compared with the traditional broadcasting solution, the cost can be reduced to 1 / 5 to 1 / 4 of the original, thereby significantly reducing the economic burden on the school. At the same time, the complexity of installation and debugging work has also been effectively reduced: by simplifying the wiring and debugging process, the installation and debugging time can be shortened by about 70%, greatly improving work efficiency. In addition, the system realizes a multi-functional one-machine multi-purpose, which can adapt to more usage scenarios in schools. It not only supports traditional voice shouting and timed broadcasting functions, but also can easily access a variety of scenarios such as kindergarten attendance broadcasting to meet different needs. Most importantly, the system breaks the limitations of time and space, making it possible to broadcast anytime and anywhere, greatly improving the flexibility and convenience of campus broadcasting. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0040] Figure 1 A structural block diagram of a lightweight multi-scenario campus broadcasting system provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0041] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art. It should be noted that, in the absence of conflict, the embodiments of the present invention and the features described in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0042] See also Figure 1 As shown, in some embodiments of the present application, this embodiment provides a lightweight multi-scenario campus broadcasting system, including:
[0043] There are several smart speaker devices, which are arranged inside the campus. An Internet of Things card is arranged inside the smart speaker device. The smart speaker device is connected to the campus network through the Internet of Things card or a wired network. The smart speaker device is used to play audio data;
[0044] A server, connected to the smart speaker device, and used to store and manage audio data;
[0045] A control module is connected to the server, and includes a collection unit, an analysis unit and a processing unit;
[0046] A collection unit is configured to collect audio data; further configured to collect a transmission mode of the audio data and determine an initial transmission strategy according to the transmission mode of the audio data; wherein the transmission mode includes real-time audio streaming transmission and pre-recorded audio file transmission;
[0047] The analysis unit is configured to, when the transmission mode is real-time audio streaming transmission, control the collection unit to collect the first time when the audio data is sent from the collection unit to the server; collect the second time when the smart speaker device receives the audio data from the server, obtain the total transmission time according to the first time and the second time, compare the total transmission time with the standard transmission time, and determine whether to adjust the initial transmission strategy according to the comparison result, and when the total transmission time is greater than the standard transmission time, determine to adjust the initial transmission strategy; and is also configured to, when the transmission mode is pre-recorded audio file transmission, control the audio quality of the audio data collected by the collection unit, compare the audio quality with the audio quality threshold, and determine whether to adjust the initial transmission strategy according to the comparison result;
[0048] The processing unit is configured to, when the transmission mode is real-time audio stream transmission and it is determined that the initial transmission strategy needs to be adjusted, compare the first time with the first time threshold and the second time with the second time threshold, and adjust the initial transmission strategy according to the comparison result; and is also configured to, when the transmission mode is pre-recorded audio file transmission and it is determined that the initial transmission strategy needs to be adjusted, adjust the initial transmission strategy according to the transmission demand.
[0049] In some embodiments of the present invention, smart speaker devices are set up inside the campus, including each classroom, each classroom office, corridors of teaching buildings and dormitory buildings, playgrounds and other areas. These smart speaker devices are connected to the campus network through an Internet of Things card or a wired network to ensure the stable transmission of audio data; the server is used to store and manage audio data, and also has a strong data processing capability. Through close cooperation with the control module, the server can monitor the transmission status of audio data in real time and adjust the strategy as needed to ensure the efficient transmission of audio data. The control module is used to collect audio data and determine the initial transmission strategy according to the transmission mode; the collection unit collects the transmission time of the audio data, and the analysis unit determines whether the initial transmission strategy needs to be adjusted according to the comparison result of the transmission time and the standard transmission time; the processing unit adjusts the initial transmission strategy accordingly according to the judgment result of the analysis unit to meet different transmission requirements.
[0050] In some embodiments of the present invention, the lightweight multi-scenario campus broadcasting system also has a timed broadcasting function. By setting a timed task, the system can automatically play preset audio content, such as physical exercises and flag-raising ceremonies, without manual intervention, greatly improving the degree of automation of campus broadcasting. In addition, the system also supports multi-scenario access, such as kindergarten attendance broadcasting. By connecting to the attendance system, the system can automatically broadcast student attendance according to attendance data, making it convenient for parents and teachers to understand students' attendance.
[0051] In some embodiments of the present invention, the system also supports an identity authentication mechanism. By enabling the identity authentication unit, the system can authenticate the user, ensuring that only authorized users can access and control the system, thereby improving the security of the system.
[0052] It is understandable that the lightweight multi-scenario campus broadcasting system of the present invention not only has the functions of the traditional broadcasting system, but also has a variety of innovative features, such as reducing construction costs, simplifying installation and debugging work, achieving multi-purpose use of one machine, breaking time and space restrictions, etc. These features make the system more efficient, convenient and safe, bringing a new experience to campus broadcasting.
[0053] Specifically, the lightweight multi-scenario campus broadcasting system uses the MQTT protocol to publish control instructions and audio data transmission, and forwards the control instructions to the corresponding smart speaker devices;
[0054] The control instructions include starting to play audio data, stopping to play audio data and adjusting the volume of audio data.
[0055] It is understandable that the MQTT (Message Queuing Telemetry Transport) protocol is a lightweight message transmission protocol, which is particularly suitable for environments with limited or unstable network bandwidth. In the multi-scenario campus broadcasting system, the MQTT protocol can ensure that the audio protocol has the characteristics of low bandwidth occupancy and high transmission efficiency, making the lightweight multi-scenario campus broadcasting system perform better in the campus network environment. Through the MQTT protocol, the system can implement a fast and stable message publishing and subscription mechanism to ensure the real-time transmission of audio data and control instructions. In addition, the MQTT protocol also supports offline message caching. When the smart speaker device is temporarily unable to connect to the network, the control instructions can be cached and automatically executed after the device is reconnected to the network, ensuring the reliability and flexibility of the system.
[0056] Specifically, the lightweight multi-scenario campus broadcasting system also includes:
[0057] The attendance device is connected to the smart speaker device, server and control module. The attendance device is used to record the students' sign-in information data and upload the sign-in information data to the server; the server processes the sign-in information data and sends the sign-in information data to the smart speaker device of the student's corresponding class through the MQTT protocol for playback.
[0058] It is understandable that by connecting the attendance device with the smart speaker device, the server and the control module, the lightweight multi-scenario campus broadcasting system of the present invention can realize automated attendance information broadcasting. When students enter the classroom or campus, they sign in through the attendance device, and the sign-in information data is uploaded to the server. After the server processes these data, it sends the sign-in information data to the smart speaker device of the corresponding class for playback through the MQTT protocol. In this way, parents and teachers can understand the attendance of students in real time without manual intervention, which greatly improves the efficiency and transparency of campus management.
[0059] Specifically, the control module also includes:
[0060] Timing unit: When the transmission method is pre-recorded audio file transmission, the timing unit is used to control the server to push audio data to the smart speaker device through the MQTT protocol at a specified time; after the smart speaker device receives the audio data, it plays the audio data according to the scheduled time.
[0061] It is understandable that the timing unit plays a vital role in the lightweight multi-scenario campus broadcasting system. Through precise time control, the timing unit ensures that the audio content is played on time at the predetermined time point, thereby meeting the needs of various scheduled broadcasts on campus. For example, the flag-raising ceremony, physical exercises, lunch break music, etc. every morning can all be accurately arranged through the timing unit to ensure the timeliness and accuracy of the broadcast content.
[0062] In some embodiments of the present invention, the timing unit also has a flexible adjustment function. When the campus activity schedule changes, the system administrator can adjust the timing task through the control module without rewriting the program code. This flexibility greatly improves the adaptability of the campus broadcasting system, allowing the system to quickly respond to various temporary or sudden broadcasting needs. The timing unit also supports the setting of holidays and special dates. The system can pre-set the broadcasting plan for holidays to ensure that the corresponding audio content, such as holiday greetings, special event notifications, etc., is automatically played on these special dates. Such a design not only improves the pertinence of the broadcast content, but also enhances the atmosphere of campus culture.
[0063] Specifically, the control module also includes:
[0064] The authentication unit is configured to perform authentication when the smart speaker device establishes a connection with the server, and assign different usage permissions according to the user's level.
[0065] It is understandable that the authentication unit plays a vital security role in the lightweight multi-scenario campus broadcasting system. Through the authentication unit, the system can ensure that only authorized users can access and control the broadcasting system, thereby effectively preventing unauthorized access and potential security threats. The authentication unit supports multiple authentication methods, such as password authentication, biometric authentication, etc., to meet the security needs in different scenarios.
[0066] In some embodiments of the present invention, the identity authentication unit also has a rights management function. The system administrator can assign different rights according to the user's role and responsibility. For example, a teacher can have the right to play audio content, while an administrator can have the right to modify system settings and manage user rights. Through this rights management mechanism, the system can achieve refined access control and ensure the security and stability of the broadcasting system.
[0067] Specifically, the control module also includes:
[0068] The log recording unit is used to record system operation logs and user activity logs. The log recording unit can record the operation process of the broadcast system and the user's behavior in detail, which is convenient for system administrators to conduct audits and troubleshooting. The log recording unit supports multiple log formats, such as text, JSON, etc., and can store log information locally or on a remote server to ensure the security and traceability of log data.
[0069] In some embodiments of the present invention, the log recording unit also has a real-time monitoring function. The system can monitor the operating status of the broadcast system and user operation behavior in real time. Once an abnormal situation is found, the system will immediately issue an alarm and record relevant information so that timely countermeasures can be taken. This real-time monitoring mechanism greatly improves the reliability and security of the broadcast system.
[0070] Specifically, the control module also includes:
[0071] The emergency broadcast unit is configured to immediately interrupt the currently playing audio data in an emergency and send emergency broadcast instructions to all smart speaker devices through the MQTT protocol; after receiving the emergency broadcast instructions, the smart speaker device immediately switches to the emergency broadcast mode and plays the pre-set emergency broadcast audio data.
[0072] Understandably, the emergency broadcast unit plays a vital role in the lightweight multi-scenario campus broadcast system. In emergency situations, such as fires, earthquakes or other emergencies, the system can respond quickly to ensure that information can be conveyed to everyone on campus in a timely manner. The emergency broadcast unit sends emergency broadcast instructions to all smart speaker devices via the MQTT protocol. These instructions have the highest priority and can immediately interrupt the currently playing audio data to ensure that the emergency information can cover other broadcast content.
[0073] In some embodiments of the present invention, the emergency broadcast unit also has the function of customizing emergency broadcast content. The system administrator can pre-set different emergency broadcast audio files according to different types of emergency situations, such as fire escape guides, earthquake shelter instructions, etc. When an emergency occurs, the system will automatically select emergency broadcast content that matches the current situation for playback to ensure the accuracy and practicality of the information.
[0074] Specifically, when the transmission mode is real-time audio streaming transmission, the total transmission time is compared with the standard transmission time, and whether to adjust the initial transmission strategy is determined according to the comparison result, including:
[0075] When the total transmission time is less than or equal to the standard transmission time, the analysis unit determines not to adjust the initial transmission strategy;
[0076] When the total transmission time is longer than the standard transmission time, the analyzing unit determines to adjust the initial transmission strategy.
[0077] In some embodiments of the present invention, the analysis unit will take different adjustment measures according to the degree of difference between the total transmission time and the standard transmission time. For example, if the total transmission time only slightly exceeds the standard transmission time, the analysis unit will choose to optimize the network transmission parameters, such as adjusting the data packet size or compression rate, to improve the transmission efficiency. If the total transmission time significantly exceeds the standard transmission time, the analysis unit may consider switching to a faster transmission channel or increasing the bandwidth to ensure that the audio data can be delivered to the smart speaker device in a timely manner.
[0078] Specifically, when the transmission mode is real-time audio stream transmission, and it is determined that the initial transmission strategy is to be adjusted, the first time is compared with the first time threshold, and the second time is compared with the second time threshold, and the initial transmission strategy is adjusted according to the comparison result, including:
[0079] When the first time is less than or equal to the first time threshold, and the second time is less than or equal to the second time threshold, maintaining the initial transmission strategy;
[0080] When the first time is less than or equal to the first time threshold, and the second time is greater than the second time threshold, optimizing the transmission path from the server to the smart speaker device;
[0081] When the first time is greater than a first time threshold and the second time is less than or equal to a second time threshold, optimizing a transmission path from the server to the smart speaker device;
[0082] When the first time is greater than the first time threshold and the second time is greater than the second time threshold, both the transmission path from the server to the smart speaker device and the transmission path from the server to the smart speaker device are optimized.
[0083] In some embodiments of the present invention, when optimizing the transmission path, the process includes:
[0084] First, if bandwidth is sufficient, increase the transmission rate;
[0085] Secondly, in case of network congestion, choose a route with shorter distance and lower latency, or choose a path with lighter load among multiple paths.
[0086] Specifically, when the transmission method is pre-recorded audio file transmission, the audio quality is compared with the audio quality threshold, and whether to adjust the initial transmission strategy is determined according to the comparison result, including:
[0087] When the audio quality is less than the audio quality threshold, the analyzing unit determines not to adjust the initial transmission strategy;
[0088] When the audio quality is greater than or equal to the audio quality threshold, the analyzing unit determines to adjust the initial transmission strategy.
[0089] In some embodiments of the present invention, when the audio quality does not meet a preset threshold, the analysis unit will take a series of measures to optimize the transmission effect of the audio file.
[0090] Specifically, when the transmission mode is pre-recorded audio file transmission and it is determined that the initial transmission strategy is to be adjusted, the initial transmission strategy is adjusted according to the transmission demand, including:
[0091] When the transmission requirement is to increase the transmission speed of the audio file, the processing unit optimizes the network bandwidth allocation;
[0092] When the transmission requirement is to reduce the transmission power consumption of the audio file, the processing unit reduces the size of the data packet and reduces the transmission frequency;
[0093] When the transmission requirement is to ensure the stability of audio file transmission, the processing unit adds redundant data packets and error detection mechanisms;
[0094] When the transmission requirement is to improve the security of audio file transmission, the processing unit will enable the authentication unit and start the authentication mechanism.
[0095] In some embodiments of the present invention, when the transmission requirement is to increase the transmission speed of the audio file, the processing unit optimizes the network bandwidth allocation.
[0096] To ensure that the audio file can be transmitted to the target device in the shortest time. Methods for optimizing network bandwidth allocation include dynamically adjusting bandwidth resources, giving priority to bandwidth requirements for audio file transmission, and reasonably allocating other network traffic to avoid transmission delays caused by insufficient bandwidth.
[0097] When the transmission requirement is to reduce the power consumption of audio file transmission, the processing unit will take a series of energy-saving measures. In addition to reducing the size of the data packet and reducing the transmission frequency, low-power transmission protocols such as Bluetooth Low Energy (BLE) technology can also be used to reduce the energy consumption of the device when receiving audio files. In addition, the system can also intelligently adjust the transmission strategy according to the power status of the device to ensure that power consumption is reduced as much as possible without affecting the user experience.
[0098] When the transmission requirement is to ensure the stability of audio file transmission, the processing unit will add redundant data packets and error detection mechanisms. Redundant data packets can ensure that when packet loss or errors occur during transmission, the receiving device can recover the lost information through redundant data packets, thereby ensuring the integrity and continuity of the audio file. The error detection mechanism uses methods such as verification and parity checking to promptly detect and correct errors in the transmission process, further improving the reliability of transmission.
[0099] When the transmission requirement is to improve the security of audio file transmission, the processing unit will enable the authentication unit and start the authentication mechanism. The authentication unit uses encryption technology to ensure that the audio file is not illegally intercepted or tampered with during transmission. The authentication mechanism can use a variety of encryption algorithms, such as AES (Advanced Encryption Standard) or RSA (Public Key Cryptography Algorithm) to ensure the confidentiality and integrity of the audio file during transmission. In addition, the system can also set access control policies to restrict only authorized users to receive and play specific audio files, thereby further improving the security of the system.
[0100] In summary, the present invention achieves high reliability and security of the broadcast system through technical means such as real-time monitoring mechanism, emergency broadcast unit, transmission strategy adjustment and optimization, etc. Whether it is to respond quickly in an emergency or to optimize the transmission effect of audio files during daily transmission, the present invention provides a comprehensive and effective solution to ensure that information can be conveyed to each receiving device in a timely, accurate and safe manner.
[0101] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0102] The present application is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0103] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0104] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0105] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A lightweight multi-scenario campus broadcasting system, characterized in that: include: There are several smart speaker devices, wherein the several smart speaker devices are arranged inside the campus, an Internet of Things card is arranged inside the smart speaker device, the smart speaker device is connected to the campus network through the Internet of Things card or a wired network, and the smart speaker device is used to play audio data; A server, connected to the smart speaker device, and configured to store and manage the audio data; A control module connected to the server, the control module comprising a collection unit, an analysis unit and a processing unit; The collection unit is configured to collect the audio data; and is also configured to collect the transmission mode of the audio data, and determine an initial transmission strategy according to the transmission mode of the audio data; wherein the transmission mode includes real-time audio streaming transmission and pre-recorded audio file transmission; The analysis unit is configured to, when the transmission mode is real-time audio streaming transmission, control the collection unit to collect the first time when the audio data is sent from the collection unit to the server; collect the second time when the smart speaker device receives the audio data from the server, obtain the total transmission time according to the first time and the second time, compare the total transmission time with the standard transmission time, and determine whether to adjust the initial transmission strategy according to the comparison result, and when the total transmission time is greater than the standard transmission time, determine to adjust the initial transmission strategy; and is also configured to, when the transmission mode is pre-recorded audio file transmission, control the collection unit to collect the audio quality of the audio data, compare the audio quality with the audio quality threshold, and determine whether to adjust the initial transmission strategy according to the comparison result; The processing unit is configured to, when the transmission mode is real-time audio stream transmission and it is determined that the initial transmission strategy needs to be adjusted, compare the first time with the first time threshold and the second time with the second time threshold, and adjust the initial transmission strategy according to the comparison result; and is also configured to, when the transmission mode is pre-recorded audio file transmission and it is determined that the initial transmission strategy needs to be adjusted, adjust the initial transmission strategy according to the transmission requirements.
2. The lightweight multi-scenario campus broadcasting system according to claim 1 is characterized in that: The lightweight multi-scenario campus broadcasting system uses the MQTT protocol to publish control instructions and the transmission of the audio data, and forwards the control instructions to the corresponding smart speaker device; The control instruction includes starting to play the audio data, stopping to play the audio data and adjusting the volume of the audio data.
3. The lightweight multi-scenario campus broadcasting system according to claim 2 is characterized in that: The lightweight multi-scenario campus broadcasting system further includes: The attendance device is connected to the smart speaker device, the server and the control module. The attendance device is used to record the student's sign-in information data and upload the sign-in information data to the server; the server processes the sign-in information data and sends the sign-in information data to the smart speaker device of the class corresponding to the student through the MQTT protocol for playback.
4. The lightweight multi-scenario campus broadcasting system according to claim 2 is characterized in that: The control module further includes: A timing unit, when the transmission method is a pre-recorded audio file transmission, the timing unit is used to control the server to push the audio data to the smart speaker device through the MQTT protocol at a specified time; after the smart speaker device receives the audio data, it plays the audio data according to the scheduled time.
5. The lightweight multi-scenario campus broadcasting system according to claim 2 is characterized in that: The control module further includes: The identity authentication unit is configured to perform identity authentication when the smart speaker device establishes a connection with the server, and to assign different usage permissions according to the user's level.
6. The lightweight multi-scenario campus broadcasting system according to claim 5 is characterized in that: The control module further includes: The emergency broadcast unit is configured to immediately interrupt the currently playing audio data in an emergency situation and send an emergency broadcast instruction to all the smart speaker devices through the MQTT protocol; after receiving the emergency broadcast instruction, the smart speaker device immediately switches to the emergency broadcast mode and plays the pre-set emergency broadcast audio data.
7. The lightweight multi-scenario campus broadcasting system according to claim 6 is characterized in that: When the transmission mode is real-time audio stream transmission, comparing the total transmission time with the standard transmission time, and judging whether to adjust the initial transmission strategy according to the comparison result, including: When the total transmission time is less than or equal to the standard transmission time, the analysis unit determines not to adjust the initial transmission strategy; When the total transmission time is longer than the standard transmission time, the analyzing unit determines to adjust the initial transmission strategy.
8. The lightweight multi-scenario campus broadcasting system according to claim 7 is characterized in that: When the transmission mode is real-time audio stream transmission, and it is determined that the initial transmission strategy is to be adjusted, the first time is compared with the first time threshold, and the second time is compared with the second time threshold, and the initial transmission strategy is adjusted according to the comparison result, including: When the first time is less than or equal to the first time threshold, and the second time is less than or equal to the second time threshold, maintaining the initial transmission strategy; When the first time is less than or equal to the first time threshold, and the second time is greater than the second time threshold, optimizing the transmission path from the server to the smart speaker device; When the first time is greater than the first time threshold and the second time is less than or equal to the second time threshold, optimizing the transmission path from the server to the smart speaker device; When the first time is greater than the first time threshold and the second time is greater than the second time threshold, both the transmission path from the server to the smart speaker device and the transmission path from the server to the smart speaker device are optimized.
9. The lightweight multi-scenario campus broadcasting system according to claim 8 is characterized in that: When the transmission mode is pre-recorded audio file transmission, comparing the audio quality with an audio quality threshold, and determining whether to adjust the initial transmission strategy according to the comparison result, including: When the audio quality is less than the audio quality threshold, the analyzing unit determines not to adjust the initial transmission strategy; When the audio quality is greater than or equal to the audio quality threshold, the analyzing unit determines to adjust the initial transmission strategy.
10. The lightweight multi-scenario campus broadcasting system according to claim 9 is characterized in that: When the transmission mode is pre-recorded audio file transmission, and it is determined that the initial transmission strategy is to be adjusted, the initial transmission strategy is adjusted according to the transmission demand, including: When the transmission requirement is to increase the transmission speed of the audio file, the processing unit optimizes the network bandwidth allocation; When the transmission requirement is to reduce the transmission power consumption of the audio file, the processing unit reduces the size of the data packet and reduces the transmission frequency; When the transmission requirement is to ensure the stability of audio file transmission, the processing unit adds redundant data packets and an error detection mechanism; When the transmission requirement is to improve the security of audio file transmission, the processing unit will enable the identity authentication unit and start the identity authentication mechanism.