Audio and video communication method and system of student card, storage medium and electronic equipment
By dynamically selecting communication methods based on relative distance and network status in the student card's audio and video communication system, the problem of signal instability between the student card and the target terminal is solved, and the quality and stability of audio and video communication is improved.
Patent Information
- Application Number
- CN202410879957.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-12-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing audio and video communication methods change the relative position between the student card and the target communication terminal, resulting in unstable signal and affect communication quality.
By determining the relative distance between the student card and the target communication terminal, establishing a communication connection, and calculating the communication preference coefficient based on the audio and video information, network status and relative distance of the communication method, dynamically selecting the best communication method to improve communication quality and stability.
It effectively avoids the problem of signal instability, improves the quality and stability of audio communication, and ensures the reliability of audio and video communication in campus environments.
Smart Images

Figure CN119136186A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data communication, and in particular to an audio and video communication method, system, storage medium and electronic device for a student card. Background Art
[0002] With the continuous development of communication technology, audio and video communication has become an indispensable part of people's daily life. In the campus environment, students and teachers are increasingly using audio and video communication to communicate and learn.
[0003] However, existing audio and video communication methods still have some problems in practical applications. For example, when students use student cards to communicate with the target communication terminal, the relative position between the student and the target communication terminal is constantly changing, which may cause problems such as unstable signals and reduced communication quality during the communication process. These problems not only affect the user experience of audio and video communication, but also bring certain troubles to teaching activities and management work on campus.
[0004] Therefore, how to provide an audio and video communication method for a student card to address the above-mentioned technical problems existing in the audio and video communication process of the student card so as to ensure the communication quality and stability is a technical problem that urgently needs to be solved. Summary of the invention
[0005] The present application provides an audio and video communication method, system, storage medium and electronic device for a student card, which can improve the quality and stability of audio communication.
[0006] In a first aspect of the present application, the present application provides an audio and video communication method of a student card, which is applied to a server and includes: When it is determined that the relative distance between the student card and the target communication terminal is less than a distance threshold, controlling the student card to establish a communication connection with the target communication terminal in at least one communication mode; Acquire audio and video information to be transmitted by the target communication terminal, and calculate the communication preference coefficient of each communication method according to the audio and video information, the network status of each communication method and the relative distance; The communication mode with the highest communication preference coefficient is determined as the target communication mode, and the target communication terminal is controlled to send the audio and video information to the student card in the target communication mode.
[0007] Optionally, calculating the communication preference coefficient of each communication method according to the audio and video information, the network status of each communication method and the relative distance includes: Substituting the communication requirements of the audio and video information, the audio and video ratio in the audio and video information, the communication network status of each communication method, and the relative distance into a first preset formula to obtain a communication preference coefficient of each communication method; Among them, the first preset formula is: In the formula, C i represents the communication preference coefficient of the i-th communication mode, α, β, γ, δ represent the weight coefficients of the corresponding parameters respectively, t i represents the actual transmission time of the audio and video information transmitted by the i-th communication method, t max The maximum transmission time required, t min Indicates the minimum value of the required transmission time, v i represents the video transmission quality of the i-th communication mode, a i represents the audio transmission quality of the i-th communication mode, w video 、w audio They represent the relative weights of audio transmission quality and video transmission quality, S i represents the communication network status of the i-th communication mode, d i Indicates relative distance.
[0008] Optionally, the method further includes: The number of devices connected to the target communication terminal is obtained, and the weight coefficient of the corresponding parameter is adjusted according to the number of devices.
[0009] Optionally, before controlling the student card to establish a communication connection with the communication terminal in at least one communication mode, the method further includes: The current position of the student card is obtained by a positioning technology, and the relative position of the student card and each communication terminal is calculated according to the current position of the student card, wherein the positioning technology includes at least one of Beidou positioning, GPS positioning, WIFI positioning and base station positioning; The communication terminal with the smallest relative position is determined as the target communication terminal.
[0010] Optionally, after controlling the target communication terminal to send the audio and video information to the student card in the target communication mode, the method further includes: When the audio and video information is detected to be played, the audio and video information is allocated to the local cache space of the student card; the audio and video information is received in real time through the target communication method and stored in the local cache space, and the communication network status of the target communication method is obtained; When it is detected that the communication network state of the target communication mode is lower than a preset threshold, or when a state instruction to switch to another communication mode is received, data is read from the local cache space and the pre-cached audio and video information; After the communication mode is switched, the information to be transmitted is received through the switched communication mode, and the data stored in the local cache space and the pre-cached audio and video information are updated.
[0011] Optionally, the communication method includes at least one of WiFi communication, Bluetooth communication, RFID communication and 4G / 5G communication.
[0012] Optionally, the method further includes, when it is determined that the communication preference coefficient of each of the communication modes is greater than or equal to a coefficient threshold, using a preset communication mode as the target communication mode.
[0013] In a second aspect of the present application, there is provided an audio and video communication system for a student card, comprising: A communication connection establishing module, used for controlling the student card to establish a communication connection with the target communication terminal in at least one communication mode when it is determined that the relative distance between the student card and the target communication terminal is less than a distance threshold; A communication preference coefficient calculation module, used to obtain audio and video information to be transmitted by the target communication terminal, and calculate the communication preference coefficient of each communication method according to the audio and video information, the network status of each communication method and the relative distance; The target communication mode determination module is used to determine the communication mode with the highest communication preference coefficient as the target communication mode, and control the target communication terminal to send the audio and video information to the student card in the target communication mode.
[0014] In a third aspect of the present application, a computer storage medium is provided, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above method steps.
[0015] In a fourth aspect of the present application, an electronic device is provided, comprising: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.
[0016] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: By controlling the student card to establish a communication connection with the target communication terminal in at least one communication mode when it is determined that the relative distance between the student card and the target communication terminal is less than the distance threshold, the problem of unstable signals in the communication process caused by the constant change in the relative position between the student and the target communication terminal in the prior art is overcome. Furthermore, by obtaining the audio and video information to be transmitted by the target communication terminal, the communication preference coefficient of each communication mode is calculated according to the audio and video information, the network status of each communication mode and the relative distance, and the communication mode with the highest communication preference coefficient is determined as the target communication mode, and the target communication terminal is controlled to send the audio and video information to the student card in the target communication mode.
[0017] Compared with the existing technology, the present application can dynamically select the best communication method according to the relative distance between the student card and the target communication terminal. While ensuring the stability of the communication connection, it can also comprehensively consider factors such as the characteristics of the audio and video content and the network conditions to select the optimal data transmission solution, thereby effectively avoiding the problem of decreased communication quality and improving the quality and stability of audio communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a flow chart of an audio and video communication method of a student card provided in an embodiment of the present application; Figure 2 It is a structural diagram of an audio and video communication system of a student card provided in an embodiment of the present application; Figure 3 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.
[0019] Description of reference numerals: 300, electronic device; 301, processor; 302, communication bus; 303, user interface; 304, network interface; 305, memory. DETAILED DESCRIPTION
[0020] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.
[0021] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.
[0022] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0023] Please refer to Figure 1 , Figure 1 This is a flow chart of an audio and video communication method for a student card provided in an embodiment of the present application. The method can be implemented by a computer program, can be implemented by a single-chip microcomputer, or can be run on an audio and video communication system of a student card. The computer program can be integrated into an application or run as an independent tool application. Specifically, the audio and video communication method for a student card can include the following steps: S101: When it is determined that the relative distance between the student card and the target communication terminal is less than a distance threshold, control the student card and the target communication terminal to establish a communication connection in at least one communication mode.
[0024] Among them, the student card refers to a portable intelligent terminal device, which can be understood in the embodiment of the present application as an intelligent hardware product that integrates multiple wireless communication modules, positioning modules, audio and video modules and certain computing capabilities, and is used to realize data interaction, audio and video communication and other functions with servers or other terminals.
[0025] Correspondingly, the target communication terminal refers to the peer device with which the student card needs to establish a communication connection. In the embodiment of the present application, it can be understood as an intelligent terminal device with the same or similar communication function as the student card, including but not limited to other student cards, smart phones, tablet computers, etc., which are used to interact with the student card for audio and video calls, data exchange, etc.
[0026] The relative distance refers to the actual physical distance between the student card and the target communication terminal. In the embodiment of the present application, it can be understood that the precise location coordinates of the student card and the target communication terminal are obtained by positioning technology, and then the relative distance value between the two is calculated using the distance formula to evaluate the communication conditions between the two.
[0027] Specifically, the server first uses one or more positioning technologies such as Beidou positioning, GPS positioning, WiFi positioning, and base station positioning to accurately obtain the current location coordinates of the student card and each potential target communication terminal. Then, based on these location coordinates, the distance formula is used to calculate the relative distance between the student card and each terminal. The reason why the relative distance needs to be calculated first is that in the process of wireless communication, the longer the transmission distance of the signal, the more serious the attenuation and interference will be, and the greater the energy loss will be, which will lead to adverse effects such as decreased communication quality, increased delay, and increased power consumption. Therefore, appropriately limiting the maximum distance between the two communicating parties is conducive to ensuring communication quality and reducing power consumption, improving communication stability and the energy efficiency of the system.
[0028] Next, the system sets a distance threshold. When it detects that the relative distance between a target communication terminal and the student card is less than the threshold, it is considered that the terminal is close enough to the student card to establish a stable short-distance communication connection. After meeting the distance requirement, the student card will actively establish a connection with the target terminal using at least one communication method, such as WiFi, Bluetooth, RFID or 4G / 5G. Different wireless communication technologies have different characteristics and are suitable for different scenarios. By establishing a communication connection first, the system can further intelligently evaluate the communication preference of various communication methods in subsequent steps based on multiple factors such as audio and video communication requirements and network status, and select the one with the highest preference as the final target communication method to achieve high-quality and efficient audio and video data transmission.
[0029] Based on the above embodiment, as an optional embodiment, before controlling the student card to establish a communication connection with the communication terminal in at least one communication mode, the following steps may be further included: The current position of the student card is obtained through positioning technology. According to the current position of the student card, the relative position of the student card and each communication terminal is calculated. The positioning technology includes at least one of Beidou positioning, GPS positioning, WIFI positioning and base station positioning. The communication terminal with the smallest relative position is determined as the target communication terminal.
[0030] In actual applications, in order to determine the target communication terminal that is most suitable for establishing a communication connection with the student card, this application adopts a method that combines multi-dimensional positioning technologies. Specifically, the system first obtains the current location of the student card through a variety of positioning technologies, including but not limited to Beidou positioning, GPS positioning, WIFI positioning, and base station positioning. The reason for using multiple positioning technologies is that a single positioning method may have problems such as insufficient accuracy or being greatly affected by the environment, and the combination of multiple positioning technologies can complement each other and improve the accuracy and reliability of positioning. For example, in an open outdoor environment, GPS positioning may be more accurate; while in indoor or weak signal environments, WIFI positioning or base station positioning may be more effective. The system will intelligently select the optimal positioning method or integrate multiple positioning results based on the current environment and signal strength to obtain the most accurate location information of the student card.
[0031] After obtaining the student card position, the system will further calculate the relative position of the student card and each potential communication terminal. This step can be achieved by comparing the coordinate difference between the student card and each terminal. For example, a three-dimensional coordinate system can be used to calculate the distance difference between the student card and each terminal on the x, y, and z axes, and then the actual physical distance between them can be obtained through the distance formula. This calculation not only takes into account the plane distance, but may also include the height difference, thereby more comprehensively reflecting the actual spatial relationship between the devices.
[0032] After the calculation is completed, the system will compare these relative positions and determine the communication terminal with the smallest relative position as the target communication terminal. The selection of the terminal with the smallest relative position as the target is based on the following consideration: in wireless communication, the signal strength is inversely proportional to the distance. The closer the distance, the stronger the signal and the better the communication quality. Therefore, selecting the nearest terminal can maximize the stability and quality of communication.
[0033] S102: Acquire audio and video information to be transmitted by the target communication terminal, and calculate the communication preference coefficient of each communication method according to the audio and video information, the network status of each communication method, and the relative distance.
[0034] Among them, the audio and video information to be transmitted refers to the digitized audio, video or audio and video mixed data stream that the target communication terminal needs to send to the student card. This information can be generated in real time, such as voice and image signals in online video calls, or it can be pre-recorded, such as sent video messages or teaching videos. Specifically, these audio and video information contains rich technical parameters, such as audio sampling rate and bit depth, video resolution and frame rate, encoding format (such as MP3, AAC for audio, H.264, H.265 for video), and overall data bit rate, total amount and duration. These parameters are crucial for evaluating the applicability of different communication methods because they directly affect the bandwidth requirements and quality requirements of transmission.
[0035] The audio and video information to be transmitted plays a core role in the communication system of the student card, and is mainly used to realize various remote interactive functions. For example, in the remote education scenario, teachers can explain the course content through high-quality videos; students can have real-time online discussions and exchanges with each other or between students and teachers; schools or parents can send important audio or video notifications; in addition, it can also be used to share multimedia learning materials, such as teaching videos or voice notes. These application scenarios have different requirements for audio and video quality and transmission stability, so accurately defining and analyzing the audio and video information to be transmitted is crucial for the system to select the best transmission solution.
[0036] The network status of a communication method refers to the current working performance and quality indicators of various available communication technologies. These communication methods may include wireless communication technologies such as WiFi, Bluetooth, 4G / 5G mobile networks, and RFID. The network status is a comprehensive indicator that reflects the real-time operation and reliability of a specific communication method in the current environment.
[0037] Specifically, the network status of a communication method can be understood as a collection of a series of quantitative technical parameters and quality indicators. These parameters may include signal strength, available bandwidth, network latency, packet loss rate, jitter, current network load, etc. For example, for a WiFi network, its status may include signal strength (in dBm), current connection rate, channel congestion, etc.; for a 4G / 5G network, it may include signal strength, base station distance, network type (such as 4G LTE or 5G NR), current network congestion, etc.
[0038] This network status information is used to evaluate and predict the performance of various communication methods when transmitting audio and video data. By monitoring and analyzing this status information in real time, the system can make more intelligent and dynamic decisions. For example, when the WiFi signal is weak or the network is congested, the system may choose to switch to a more stable 4G / 5G network; or when communicating at close range, it may give priority to low-power Bluetooth connections.
[0039] In addition, network status information is also used to predict possible communication problems and take measures in advance. For example, when the network status is detected to be deteriorating, the system may start the data cache mechanism in advance or reduce the video quality to ensure the continuity of the call. This intelligent adaptation mechanism based on network status can not only improve the stability and quality of communication, but also optimize resource utilization and avoid unnecessary energy consumption and bandwidth waste.
[0040] The communication preference coefficient is a comprehensive scoring indicator used to quantitatively evaluate the applicability and pros and cons of various communication methods for transmitting audio and video information under current conditions. This coefficient is a numerical result obtained by considering multiple key factors and using a preset calculation formula.
[0041] Specifically, the communication preference coefficient can be understood as a numerical expression that reflects the transmission efficiency, quality, and reliability of a specific communication method in a given situation. It comprehensively considers factors in multiple dimensions, such as the characteristics of the audio and video information to be transmitted (such as data volume, encoding format, quality requirements, etc.), the real-time network status of each communication method (such as signal strength, bandwidth, latency, etc.), and the relative distance between devices. This coefficient is calculated through a complex mathematical formula that includes the weights of each factor to reflect their relative importance in different scenarios.
[0042] The communication preference coefficient is mainly used to intelligently select the best option among multiple available communication methods. The system calculates a preference coefficient for each available communication method, then compares the sizes of these coefficients and selects the communication method with the highest coefficient as the final transmission channel. This method enables the system to make the best decision in complex and changing network environments and diverse communication needs.
[0043] For example, when transmitting high-definition video streams, if WiFi has the highest communication preference coefficient, the system will choose WiFi as the transmission channel; while when making a simple voice call, if Bluetooth has a higher preference coefficient, the system may choose Bluetooth connection to reduce power consumption. Through this dynamic selection mechanism, the system can optimize resource utilization and improve energy efficiency while ensuring communication quality.
[0044] In addition, the communication preference coefficient is also used to continuously monitor and evaluate the suitability of the currently selected communication method. If the preference coefficient of a certain communication method drops significantly during the communication process, the system may trigger a real-time switch of the communication method to maintain the best communication experience.
[0045] Based on the above embodiment, as an optional embodiment, in S102: obtaining the audio and video information to be transmitted by the target communication terminal, and calculating the communication preference coefficient of each communication mode according to the audio and video information, the network status of each communication mode and the relative distance, this step may specifically include the following steps: Substituting the communication requirements of the audio and video information, the proportion of audio and video in the audio and video information, the communication network status of each communication method, and the relative distance into the first preset formula to obtain the communication preference coefficient of each communication method; Among them, the first preset formula is: In the formula, C i represents the communication preference coefficient of the i-th communication mode, α, β, γ, δ represent the weight coefficients of the corresponding parameters respectively, t i represents the actual transmission time of the audio and video information transmitted by the i-th communication method, t max The maximum transmission time required, t min Indicates the minimum value of the required transmission time, v i represents the video transmission quality of the i-th communication mode, a i represents the audio transmission quality of the i-th communication mode, w video 、w audio They represent the relative weights of audio transmission quality and video transmission quality, S i represents the communication network status of the i-th communication mode, d i Indicates relative distance.
[0046] The communication requirements of audio and video information refer to a series of technical indicators and performance expectations for the communication system in order to ensure the quality of audio and video communication and user experience. These requirements reflect the needs of specific audio and video communication tasks for network resources and transmission quality.
[0047] Specifically, the communication requirements of audio and video information can be understood as a set of quantitative technical parameters and quality standards, which define the minimum conditions required for the successful transmission and playback of audio and video content. These requirements may include but are not limited to: minimum bandwidth requirements: the minimum network bandwidth to ensure smooth transmission of audio and video data streams; maximum delay tolerance: the maximum acceptable time difference between the sending and receiving of audio and video data; maximum packet loss rate: the tolerable proportion of packet loss without affecting the user experience; jitter limit: the maximum allowable range of changes in the arrival time of audio and video data packets; minimum resolution and frame rate: the minimum standard to ensure video clarity and smoothness; audio sampling rate and bit depth: the minimum requirement to ensure audio quality; codec requirements: the ability to support specific audio and video codec formats.
[0048] The audio and video ratio in audio and video information refers to the proportion or weight of audio data and video data in the entire communication data stream. This concept reflects the relative importance and resource requirements of audio and video elements in a specific audio and video communication task.
[0049] Specifically, the audio and video ratio in the audio and video information can be understood as a numerical ratio that describes the distribution of audio and video data. This ratio can be expressed in many ways, such as: data volume ratio: the ratio of the size of audio data to the size of video data; bandwidth occupancy ratio: the ratio of network bandwidth occupied by audio streams and video streams respectively; quality weight: the relative weight given according to the emphasis of specific communication tasks on audio and video quality requirements.
[0050] The concept of audio and video ratio is mainly used in the following aspects: First, it is used to optimize the allocation of communication resources. Different types of audio and video communication tasks may have different requirements for audio and video. For example, in a voice call, the audio ratio may be higher, and the system will prioritize audio quality; in a video conference, the video ratio may be larger, and the system will allocate more resources to ensure the clarity and smoothness of the video.
[0051] Secondly, it is used to adjust the communication method selection strategy. When the system chooses between multiple available communication methods, it considers each method's support for audio and video transmission and weighs the choice based on the audio and video ratio of the current task. For example, if the video ratio is high, the system may tend to choose a communication method with a larger bandwidth.
[0052] Video transmission quality and audio transmission quality refer to comprehensive performance indicators such as the clarity, smoothness, and fidelity of the video image and audio sound with the original signal during the audio and video communication process. In the embodiment of the present application, these two indicators can be understood as a collection of a series of quantified technical parameters, which together reflect the ability and effect of the communication system in transmitting and reproducing audio and video information. For video transmission quality, it mainly involves parameters such as video resolution, frame rate, bit rate, coding efficiency, and picture stability; while audio transmission quality mainly includes sampling rate, bit depth, bit rate, audio coding format, sound restoration, delay, and echo. These parameters not only determine the image clarity and sound quality that the user ultimately feels, but also directly affect the system's resource consumption and network bandwidth requirements.
[0053] The relative weight of audio transmission quality and video transmission quality can be understood as a dynamically adjusted numerical ratio, which is used to guide the system on how to balance the transmission requirements of audio and video when allocating resources and formulating communication strategies. This weight is not fixed, but will be adjusted in real time based on factors such as communication content, user needs, and network conditions. For example, in a voice-based call, the weight of audio may be set higher; while in scenarios such as video conferencing or online courses, the weight of video may be increased accordingly.
[0054] The relative weights of audio transmission quality and video transmission quality are mainly used to optimize the overall performance and user experience of the student card audio and video communication system. Specifically, this weight parameter plays a role in multiple key links of the system. First, when allocating communication resources, the system will decide how to allocate limited resources such as bandwidth and processing power based on this weight to ensure that the more important parts receive sufficient support. Secondly, in the process of selecting a communication method, the relative weight will affect the calculation of the communication preference coefficient, thereby affecting the final choice of communication method. For example, if the audio weight is high, the system may tend to choose a communication method with better audio transmission performance. In addition, when network conditions fluctuate, the system will decide whether to prioritize audio quality or video quality based on this weight to maintain the best overall communication effect.
[0055] In practical applications, this dynamic weight mechanism enables the student card audio and video communication system to flexibly respond to various complex communication scenarios. For example, in a distance education environment, the system may automatically adjust the relative weights of audio and video according to the characteristics of the course content. For subjects that require a lot of visual demonstrations, such as art or physics labs, the weight of video transmission quality may be increased; while for foreign language courses that focus on language communication, the weight of audio transmission quality may be increased accordingly. This intelligent weight adjustment can not only optimize resource utilization, but also significantly improve the user's learning experience and results.
[0056] Among them, the actual transmission time of the audio and video information transmitted by the communication method, the maximum value of the required transmission time, and the minimum value of the required transmission time refer to the three key parameters related to the data transmission time in the audio and video communication process. In the embodiment of the present application, these parameters can be understood as describing the actual value and allowable range of the time required for the audio and video data to be transmitted from the sender to the receiver. The actual transmission time reflects the actual time required to fully transmit the data using a specific communication method; the maximum value represents the longest delay acceptable to the system or user; the minimum value represents the shortest transmission time under ideal conditions.
[0057] These three parameters play an important role in the student card audio and video communication system, and are mainly used to evaluate and optimize system performance. They are the key basis for calculating the communication preference coefficient. The system evaluates the suitability of a specific communication method by comparing the actual transmission time with the maximum and minimum values. At the same time, these parameters are also used for adaptive adjustment of the system. When the actual transmission time is close to the maximum value, the system will trigger optimization measures; when it is close to the minimum value, it may consider improving the audio and video quality.
[0058] In practical applications, this dynamic adjustment mechanism based on time parameters can significantly improve user experience. For example, in a remote real-time interactive classroom, the system will strictly control the actual transmission time to ensure that it does not exceed the maximum value to maintain smooth conversation, while striving to compress it to a minimum value to reduce the sense of delay. In addition, these parameters also provide important performance indicators for the system. Through long-term monitoring and analysis, system administrators can evaluate network performance, identify potential bottlenecks, and develop targeted optimization strategies.
[0059] Among them, α, β, γ, and δ represent the weight coefficients of the corresponding parameters, which refer to the numerical parameters used to adjust the relative importance of each factor when calculating the communication preference coefficient. These weight coefficients reflect the emphasis of the system on each performance indicator when evaluating different communication methods.
[0060] In the embodiments of the present application, these weight coefficients can be understood as a set of dynamically adjusted values used to quantify the relative importance of each performance indicator in a specific communication scenario. Specifically, α represents the weight of the transmission time factor, β represents the weight of the audio and video quality factor, γ reflects the weight of the network status factor, and δ represents the weight of the distance factor between devices. The values of these coefficients are usually between 0 and 1, and their sum is 1 to ensure the relative balance of each factor.
[0061] These weight coefficients are mainly used to optimize the decision-making process of the student card audio and video communication system, so that it can make the most suitable choice according to different communication needs and environmental conditions. By adjusting these coefficients, the system can flexibly adapt to various complex communication scenarios. For example, in remote teaching that requires real-time interaction, the system may increase the value of α to emphasize the importance of transmission time; when playing high-quality recorded courses, the value of β may be increased to ensure better audio and video quality. Similarly, in an environment with unstable network conditions, the value of γ may be increased to take more account of the network status; and in a mobile scenario, the value of δ may be increased to better cope with changes in the distance between devices.
[0062] Specifically, because in actual audio and video communications, there are many factors that affect the quality of communication, and a single indicator cannot fully reflect the pros and cons of the communication method. Therefore, the embodiment of the present application adopts an evaluation method that comprehensively considers multiple factors. This method calculates the communication preference coefficient of each communication method by substituting key parameters such as the communication requirements of audio and video information, the proportion of audio and video in audio and video information, the communication network status of each communication method, and the relative distance into a preset formula.
[0063] In the specific implementation process, the system first collects all necessary parameters, including the actual transmission time, video quality, audio quality, network status, and relative distance of various communication methods. At the same time, the system sets and according to the current communication needs, and determines the relative weights and of audio and video quality. Then, the system sets weight coefficients α, β, γ, δ according to the current communication scenario and strategy. Finally, the system substitutes these parameters into the first preset formula to calculate a communication preference coefficient for each available communication method.
[0064] Based on the above embodiment, as an optional embodiment, the above method may further include: obtaining the number of devices connected to the target communication terminal, and adjusting the weight coefficient of the corresponding parameter according to the number of devices.
[0065] Specifically, in the actual application of the student card audio and video communication system, in order to further improve the adaptability and performance of the system, the embodiment of the present application introduces a mechanism for dynamically adjusting the weight coefficient based on the number of connected devices. This mechanism obtains the number of devices connected to the target communication terminal and adjusts the weight coefficient of the corresponding parameter in the communication preference coefficient calculation formula according to this number, thereby achieving more accurate communication mode selection.
[0066] The main reason is that the number of connected devices directly affects the allocation and utilization efficiency of network resources. When the number of connected devices increases, the available network bandwidth, processing power and other resources will be dispersed, which may lead to a decrease in communication quality. Therefore, by considering the number of devices and adjusting the weight coefficient accordingly, the system can more accurately reflect the actual situation of the current network environment, thereby making a more reasonable choice of communication method.
[0067] In specific implementation, the system will first monitor the number of devices connected to the target communication terminal in real time. This can be achieved by querying the network management system or directly obtaining relevant data from the target communication terminal. After obtaining the number of devices, the system will adjust the weight coefficients α, β, γ, and δ according to the preset algorithm or rules. For example, when the number of connected devices increases, the system may increase the value of γ to take more account of the impact of the network status; at the same time, it may reduce the value of β because, in the case of limited resources, it may be necessary to appropriately reduce the requirements for audio and video quality to ensure smooth communication.
[0068] The specific adjustment method can adopt a linear or nonlinear mapping relationship. For example, the system can set a benchmark device number N base , when the actual number of devices N actual More than N base When , adjust the weight coefficient as follows: γ new =γ original *(1+k*(N actual -N base ) / N base );β new =β original / (1+k*(N actual -N base ) / N base ); Among them, k is an adjustment factor used to control the magnitude of the adjustment. At the same time, the system will ensure that the sum of all weight coefficients after adjustment is still 1 to maintain the overall balance of the influence of various factors.
[0069] This method of dynamically adjusting weight coefficients based on the number of devices brings many positive effects. First, it improves the system's sensitivity and adaptability to changes in the network environment. Under high load conditions, the system can choose communication methods more carefully, giving priority to network status and transmission efficiency, thereby maintaining communication stability. Second, this method makes the system's decision-making more flexible and intelligent. By dynamically adjusting weights, the system can find the best balance point under different network load conditions, ensuring communication quality while avoiding resource waste. Furthermore, this mechanism also provides a basis for system load balancing. By analyzing the optimal weight configuration under different numbers of devices, system administrators can better understand network capacity and performance bottlenecks, thereby formulating more reasonable resource allocation strategies.
[0070] S103: Determine the communication method with the highest communication preference coefficient as the target communication method, and control the target communication terminal to send audio and video information to the student card in the target communication method.
[0071] Specifically, the higher the communication preference coefficient, the more the communication method can meet the needs of audio and video transmission in the current environment. After selecting the target communication method, the system will send a command to the target communication terminal, requiring it to switch to the communication method. At the same time, the system will also adjust related parameters, such as encoding method, transmission protocol, etc., to fully utilize the advantages of the selected communication method.
[0072] For example, if a high-bandwidth WiFi connection is selected, the system may increase the video resolution and frame rate; if a relatively low-bandwidth 4G network is selected, the system may use a more efficient compression algorithm. The above-mentioned dynamic selection and adjustment mechanism based on the communication preference coefficient can bring many positive effects. First, it can maximize the communication quality under the current network conditions and ensure the smoothness and clarity of audio and video transmission. Secondly, this method can effectively adapt to changes in the network environment and find the best transmission strategy in different scenarios. Furthermore, by intelligently selecting the most suitable communication method, the system can optimize resource utilization and avoid bandwidth waste or excessive consumption of device power.
[0073] Based on the above embodiment, as an optional embodiment, the audio and video communication method of the student card may further include the following steps: When it is determined that the communication preference coefficient of each communication mode is greater than or equal to the coefficient threshold, the preset communication mode is used as the target communication mode.
[0074] Specifically, in order to further optimize the communication method selection process and improve the stability of the system, we introduced a judgment mechanism based on coefficient thresholds. Specifically, the system will first set a suitable coefficient threshold, which represents the minimum standard for meeting the communication quality requirements. After calculating the communication preference coefficients of each communication method, the system will compare each coefficient with this threshold. If all coefficients exceed or equal to the threshold, the system will start the preset communication method.
[0075] For example, in a school environment, the preset communication method may be the campus WiFi network, because it usually provides sufficient bandwidth and coverage. This threshold-based selection mechanism brings many positive effects. First, it simplifies the decision-making process, quickly determines the communication method among multiple feasible options, and reduces the system's computational burden and response time. Second, by selecting a preset and verified communication method, the system can reduce the potential risks of switching and improve the stability of communication.
[0076] Furthermore, this mechanism provides a way for system administrators to intervene and optimize. By adjusting the coefficient threshold and the preset communication method, the system behavior can be flexibly adjusted according to the actual operation situation. Finally, from the perspective of user experience, when multiple communication methods can meet the needs, maintaining a consistent connection method may provide users with a smoother and more predictable experience than frequent switching.
[0077] Based on the above embodiment, as an optional embodiment, the audio and video communication method of the student card may further include the following steps: S201: When the playing of audio and video information is detected, the audio and video information is allocated to the local cache space of the student card.
[0078] Specifically, in order to improve the stability of communication and user experience, the embodiment of the present application introduces an intelligent cache mechanism. When the system detects that the audio and video information starts to be played, the audio and video information will be immediately allocated to the local cache space of the student card.
[0079] Specifically, the system will first allocate a dedicated local cache space in the student card's memory. The size of this space can be dynamically adjusted based on the device performance and the expected amount of audio and video data. When the play command is triggered, the system will immediately start the cache program and write the audio and video data stream to be played in segments into this local cache space. Specific cache strategies may include pre-caching content for a certain length of time, or dynamically adjusting the cache amount based on the current network conditions.
[0080] The above-mentioned pre-caching mechanism brings many positive effects. First, it significantly improves the smoothness of audio and video playback. Even during a short network interruption or switching process, the system can still read data from the local cache to maintain the continuity of playback. Secondly, this mechanism reduces the dependence on real-time network transmission and reduces the freeze or image quality degradation caused by network delays or packet loss. Furthermore, by intelligently managing cached data, the system can more effectively utilize network bandwidth, while ensuring playback quality and optimizing data transmission efficiency. Finally, this local cache mechanism provides a buffer for the subsequent dynamic switching of communication methods, enabling the system to flexibly respond to changes in the network environment without affecting the user experience.
[0081] S202: Receive audio and video information in real time through the target communication method and store it in the local cache space, and obtain the communication network status of the target communication method.
[0082] Specifically, in order to ensure the continuous stability of communication quality and the intelligent adaptability of the system, the embodiment of the present application designs a mechanism that combines real-time reception with network status monitoring. The system receives audio and video information in real time through the target communication method and stores it in the local cache space, while continuously obtaining the communication network status of the target communication method. The design purpose of this step is to ensure the real-time update of audio and video data and to prepare for possible network fluctuations or communication method switching.
[0083] Specifically, the system will first establish a data transmission channel through the previously determined target communication method (such as WiFi, 4G / 5G, etc.). Subsequently, the audio and video data stream will be received in real time and written to the local cache space of the student card. This process is continuous, and the system will continuously update the contents of the cache to ensure that the locally stored audio and video data is always up to date. At the same time, the system will periodically detect and record the communication network status of the target communication method, including key indicators such as signal strength, bandwidth, delay, and packet loss rate. These network status data will be analyzed in real time to evaluate the performance and stability of the current communication method.
[0084] The above-mentioned mechanism combining real-time reception with network status monitoring continuously updates the local cache, so that the system can maintain smooth playback for a certain period of time when the network conditions suddenly deteriorate, greatly improving the continuity of the user experience. Secondly, the real-time network status information provides the system with valuable decision-making basis, enabling it to identify potential network problems in a timely manner and trigger the switching of communication methods when necessary, thereby preventing possible communication interruptions. Furthermore, this mechanism can optimize bandwidth utilization, and the system can dynamically adjust the data transmission strategy according to the current network conditions, such as increasing the cache amount when the network status is good and reducing data requests when the network is congested.
[0085] In addition, by continuously monitoring the network status, the system can also accumulate a large amount of valuable performance data. This data can be used to optimize the system's communication mode selection algorithm in the long term, so that the system can make the best communication strategy decisions in different environments.
[0086] S203: When it is detected that the communication network state of the target communication mode is lower than a preset threshold, or when a state instruction to switch to another communication mode is received, data is read from the local cache space and the pre-cached audio and video information.
[0087] Specifically, in order to cope with the risk of communication interruption caused by deterioration of network conditions or switching of communication modes, an intelligent switching mechanism is designed in the embodiment of the present application. Specifically, when the system detects that the communication network status of the target communication mode is lower than the preset threshold, or receives a status instruction to switch to another communication mode, it will immediately read data from the local cache space and pre-cached audio and video information. The design purpose of this step is to ensure that audio and video playback can remain continuous and smooth during network instability or switching of communication modes.
[0088] Specifically, the system will first continuously monitor the communication network status of the target communication method, including key indicators such as signal strength, bandwidth, latency, and packet loss rate. These indicators will be compared with pre-set thresholds in real time. The determination of the preset thresholds is usually based on a large amount of measured data and user experience feedback to ensure that the switching mechanism can be triggered before the network conditions begin to affect the user experience. At the same time, the system will also monitor status instructions from the network management module, which may originate from system-level network switching decisions, such as switching from WiFi to 4G / 5G networks.
[0089] Furthermore, when any of the above situations is detected, the system will immediately start the data reading program. This program will read from two data sources at the same time: one is the local cache space, and the other is the pre-cached audio and video information. The local cache space stores the most recently received real-time data, while the pre-cached audio and video information is the content downloaded in advance by the system based on user behavior and network conditions. The system will intelligently select the most appropriate data source for reading based on the current playback progress to ensure the continuity of playback and the real-time nature of the content.
[0090] S204: After the communication mode is switched, the information to be transmitted is received through the switched communication mode, and the data stored in the local cache space and the pre-cached audio and video information are updated.
[0091] Specifically, in order to ensure the communication quality and data consistency after the communication mode is switched, the embodiment of the present application designs a data synchronization and update mechanism after the switch. Specifically, after the communication mode is switched, the system will immediately receive the information to be transmitted through the new communication mode, and synchronously update the data stored in the local cache space and the pre-cached audio and video information. The design purpose of this step is to maintain the continuity of communication, ensure that users can continue to receive the latest audio and video content seamlessly after the communication mode is switched, and ensure the timeliness and accuracy of the local cached data.
[0092] Specifically, the system will first confirm that the new communication method has been successfully connected. Then, the system will immediately start receiving the audio and video information to be transmitted through this new channel. This process is seamless and aims to minimize data transmission interruptions caused by switching. The new data received will be written to the local cache space in real time, overwriting or updating the original cache content. At the same time, the system will evaluate and update the pre-cached audio and video information. If the pre-cached content deviates significantly from the current playback progress, or the content is outdated, the system will immediately start downloading the latest pre-cached data.
[0093] Furthermore, the data synchronization and update mechanism after the switch ensures the smoothness of the communication mode switch, and the user will hardly feel the switch during the whole process, thus providing a continuous, high-quality audio and video experience. Secondly, by timely updating the local cache and pre-cached content, the system can quickly recover to the best state under the new communication mode and prepare for the next possible network fluctuation.
[0094] Reference Figure 2 , the present application also provides an audio and video communication system for a student card, comprising: A communication connection establishing module, used for controlling the student card to establish a communication connection with the target communication terminal in at least one communication mode when it is determined that the relative distance between the student card and the target communication terminal is less than a distance threshold; A communication preference coefficient calculation module, used to obtain audio and video information to be transmitted by the target communication terminal, and calculate the communication preference coefficient of each communication method according to the audio and video information, the network status of each communication method and the relative distance; The target communication mode determination module is used to determine the communication mode with the highest communication preference coefficient as the target communication mode, and control the target communication terminal to send the audio and video information to the student card in the target communication mode.
[0095] Based on the above embodiment, as an optional embodiment, the communication preference coefficient calculation module is further used to substitute the communication requirements of the audio and video information, the proportion of audio and video in the audio and video information, the communication network status of each communication method and the relative distance into a first preset formula to obtain the communication preference coefficient of each communication method; Among them, the first preset formula is: In the formula, C i represents the communication preference coefficient of the i-th communication mode, α, β, γ, δ represent the weight coefficients of the corresponding parameters respectively, t i represents the actual transmission time of the audio and video information transmitted by the i-th communication method, t max The maximum transmission time required, t min Indicates the minimum value of the required transmission time, v i represents the video transmission quality of the i-th communication mode, a i represents the audio transmission quality of the i-th communication mode, w video 、w audio They represent the relative weights of audio transmission quality and video transmission quality, S i represents the communication network status of the i-th communication mode, d i Indicates relative distance.
[0096] Based on the above embodiment, as an optional embodiment, the communication preference coefficient calculation module is further used to obtain the number of devices connected to the target communication terminal, and adjust the weight coefficient of the corresponding parameter according to the number of devices.
[0097] On the basis of the above embodiment, as an optional embodiment, the communication connection establishment module is also used to obtain the current position of the student card through positioning technology, and calculate the relative position of the student card and each communication terminal according to the current position of the student card, and the positioning technology includes at least one of Beidou positioning, GPS positioning, WIFI positioning and base station positioning; determine the communication terminal with the smallest relative position as the target communication terminal.
[0098] On the basis of the above embodiments, as an optional embodiment, the audio and video communication system of the student card also includes a cache module, which is used to allocate the audio and video information to the local cache space of the student card when the audio and video information is detected to be played; receive the audio and video information in real time through the target communication method and store it in the local cache space, and obtain the communication network status of the target communication method; when it is detected that the communication network status of the target communication method is lower than a preset threshold, or, when a status instruction to switch to another communication method is received, read data from the local cache space and the pre-cached audio and video information; after completing the communication method switching, receive the information to be transmitted through the switched communication method, and update the data stored in the local cache space and the pre-cached audio and video information.
[0099] Based on the above embodiment, as an optional embodiment, the target communication mode determination module is further used to use a preset communication mode as the target communication mode when it is determined that the communication preference coefficient of each communication mode is greater than or equal to a coefficient threshold.
[0100] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0101] The embodiment of the present application also provides a computer storage medium, which can store multiple instructions. The instructions are suitable for being loaded by a processor and executing the audio and video communication method of the student card in the above embodiment. The specific execution process can refer to the specific description of the embodiment shown, which will not be repeated here.
[0102] The present application also discloses an electronic device. Figure 3 , Figure 3 The electronic device 300 may include: at least one processor 301 , at least one network interface 304 , a user interface 303 , a memory 305 , and at least one communication bus 302 .
[0103] The communication bus 302 is used to realize the connection and communication between these components.
[0104] The user interface 303 may include a display interface and a camera interface. The optional user interface 303 may also include a standard wired interface and a wireless interface.
[0105] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0106] Among them, the processor 301 may include one or more processing cores. The processor 301 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 305, and calling data stored in the memory 305. Optionally, the processor 301 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 301 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface diagrams and applications, etc.; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 301, and it can be implemented separately through a chip.
[0107] Among them, the memory 305 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 305 may optionally also be at least one storage device located away from the aforementioned processor 301. Refer to Figure 3 , the memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface module and an application program of an audio and video communication method of a student card.
[0108] exist Figure 3 In the electronic device 300 shown, the user interface 303 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 301 can be used to call the application program of the audio and video communication method of a student card stored in the memory 305, and when executed by one or more processors 301, the electronic device 300 executes one or more of the methods described in the above embodiments. It should be noted that for the aforementioned method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described order of actions, because according to the present application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.
[0109] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0110] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0111] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0112] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0113] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.
[0114] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, those skilled in the art will easily think of other embodiments of the present disclosure.
[0115] This application is intended to cover any variation, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art not described in the present disclosure. The description and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. An audio and video communication method for a student card, characterized in that: Applicable to servers, including: When it is determined that the relative distance between the student card and the target communication terminal is less than a distance threshold, controlling the student card to establish a communication connection with the target communication terminal in at least one communication mode; Acquire audio and video information to be transmitted by the target communication terminal, and calculate the communication preference coefficient of each communication method according to the audio and video information, the network status of each communication method and the relative distance; The communication mode with the highest communication preference coefficient is determined as the target communication mode, and the target communication terminal is controlled to send the audio and video information to the student card in the target communication mode.
2. The audio and video communication method of the student card according to claim 1, characterized in that: The calculating the communication preference coefficient of each communication method according to the audio and video information, the network status of each communication method and the relative distance comprises: substituting the communication requirements of the audio and video information, the proportion of audio and video in the audio and video information, the communication network status of each communication method and the relative distance into a first preset formula to obtain the communication preference coefficient of each communication method; Among them, the first preset formula is: In the formula, C i represents the communication preference coefficient of the i-th communication mode, α, β, γ, δ represent the weight coefficients of the corresponding parameters respectively, t i represents the actual transmission time of the audio and video information transmitted by the i-th communication method, t max The maximum transmission time required, t min Indicates the minimum value of the required transmission time, v i represents the video transmission quality of the i-th communication mode, a i represents the audio transmission quality of the i-th communication mode, w video 、w audio They represent the relative weights of audio transmission quality and video transmission quality, S i represents the communication network status of the i-th communication mode, d i Indicates relative distance.
3. The audio and video communication method of the student card according to claim 2, characterized in that: The method further comprises: The number of devices connected to the target communication terminal is obtained, and the weight coefficient of the corresponding parameter is adjusted according to the number of devices.
4. The audio and video communication method of the student card according to claim 1, characterized in that: Before controlling the student card to establish a communication connection with the communication terminal in at least one communication mode, the method further includes: The current position of the student card is obtained by a positioning technology, and the relative position of the student card and each communication terminal is calculated according to the current position of the student card, wherein the positioning technology includes at least one of Beidou positioning, GPS positioning, WIFI positioning and base station positioning; The communication terminal with the smallest relative position is determined as the target communication terminal.
5. The audio and video communication method of the student card according to claim 1, characterized in that: After controlling the target communication terminal to send the audio and video information to the student card in the target communication mode, the method further includes: When the audio and video information is detected to be played, the audio and video information is allocated to the local cache space of the student card; the audio and video information is received in real time through the target communication method and stored in the local cache space, and the communication network status of the target communication method is obtained; When it is detected that the communication network state of the target communication mode is lower than a preset threshold, or when a state instruction to switch to another communication mode is received, data is read from the local cache space and the pre-cached audio and video information; After the communication mode is switched, the information to be transmitted is received through the switched communication mode, and the data stored in the local cache space and the pre-cached audio and video information are updated.
6. The audio and video communication method of the student card according to claim 1, characterized in that: The communication method includes at least one of WiFi communication, Bluetooth communication, RFID communication and 4G / 5G communication.
7. The audio and video communication method of the student card according to claim 1, characterized in that: The method further includes, when it is determined that the communication preference coefficient of each of the communication modes is greater than or equal to a coefficient threshold, using a preset communication mode as the target communication mode.
8. An audio and video communication system for a student card, characterized in that: include: A communication connection establishing module, used for controlling the student card to establish a communication connection with the target communication terminal in at least one communication mode when it is determined that the relative distance between the student card and the target communication terminal is less than a distance threshold; A communication preference coefficient calculation module, used to obtain audio and video information to be transmitted by the target communication terminal, and calculate the communication preference coefficient of each communication method according to the audio and video information, the network status of each communication method and the relative distance; The target communication mode determination module is used to determine the communication mode with the highest communication preference coefficient as the target communication mode, and control the target communication terminal to send the audio and video information to the student card in the target communication mode.
9. An electronic device, characterized in that: It includes a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes the method as described in any one of claims 1-7.
10. A computer storage medium, characterized in that: The computer storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 7 is executed.
