A smart classroom system interactive screen control method, device, equipment and medium
By building multiple communication channels on the agent server, multi-terminal interactive screen control is realized, which solves the problem of single teaching scenarios in existing classrooms, improves system performance and user experience, and adapts to changing teaching needs.
Patent Information
- Application Number
- CN202410986455.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-23
AI Technical Summary
The existing classrooms have a single teaching scenario and cannot adapt to changing teaching needs. They lack the ability to control multi-terminal interactive screens and multi-functional smart teaching, which affects the user experience of teachers and students.
By building multiple communication channels on the proxy server, including the communication channels between the proxy server and the PC teacher and terminal, as well as the communication channels between the proxy server and each PC mid-screen and student desk screen, the playback device is realized For screen projection control and status information transmission, the preset communication protocol and TCP communication protocol are used to ensure the accuracy and stability of data transmission.
It improves system performance and stability, realizes multi-terminal interactive screen control, enhances the user experience for teachers and students, and adapts to the needs of different teaching scenarios.
Smart Images

Figure CN118524147B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to an interactive screen control method, device, equipment and medium for a smart classroom system. Background Art
[0002] In existing classrooms, there is usually only one all-in-one computer as the main screen. There is only a simple control lock function between the desk or computer and the main screen. Students can only get information from this main screen when they are in class or doing discussions. The teaching scene is limited to a single one and the teaching layout is fixed. In order to adapt to different teaching scenes and a better and more vivid teaching atmosphere, improve students' initiative and adapt to different and changing teaching scenes, how to make a classroom adapt to modern and cutting-edge teaching is an urgent problem that needs to be solved.
[0003] In summary, how to realize interactive screen control on multiple terminals, realize multi-functional intelligent teaching, and provide teachers and students with a better user experience is a technical problem to be solved in this field. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide a method, device, equipment and medium for interactive screen control in a smart classroom system, which can realize interactive screen control on multiple terminals, realize multifunctional smart teaching, and provide teachers and students with a better user experience. The specific scheme is as follows:
[0005] In the first aspect, the present application discloses an interactive screen control method for a smart classroom system, which is applied to a proxy server, comprising:
[0006] Establishing a first communication channel between the proxy server and the PC teacher terminal, and a second communication channel between the proxy server and each PC screen in the terminal and each student desk screen;
[0007] When receiving a control instruction for screen projection for the first playback device sent by the PC teacher through the first communication channel or receiving a control instruction for screen projection for the second playback device sent by the terminal through the second communication channel, forwarding the control instruction to the corresponding playback device, so that the playback device performs data screen projection based on the control instruction, and sends the status information generated after the data screen projection to the proxy server through the instruction data; wherein, the first playback device includes: each of the PC middle screens, each of the student desk screens; the second playback device includes: the screen of the PC teacher, each of the PC middle screens, and each of the student desk screens;
[0008] The target instruction data representing the status information of each of the first playback devices in the instruction data is sent to the PC teacher terminal through the first communication channel, so that the PC teacher terminal obtains the status information of each of the first playback devices.
[0009] Optionally, the step of respectively constructing a first communication channel between the proxy server and the PC teacher terminal, and a second communication channel between the proxy server and each PC screen in the terminal and each student desk screen, includes:
[0010] Through a preset communication protocol, a first communication channel between the proxy server and the PC teacher terminal, and a second communication channel between the proxy server and each PC screen in the terminal and each student desk screen are respectively established;
[0011] Among them, the preset communication protocol includes: protocol header, version application request end, application receiving end, business status, number of reissues, protocol type, initiation instruction identifier, reply instruction identifier, main instruction, sub-instruction, reserved field, data type, data segment length, data segment, and protocol tail.
[0012] Optionally, the first communication channel between the proxy server and the PC teacher terminal, and the second communication channel between the proxy server and each PC screen in the terminal and each student desk screen are respectively established through a preset communication protocol, including:
[0013] The TCP communication protocol is used to respectively construct a first communication channel between the proxy server and the PC teacher terminal, and a second communication channel between the proxy server and each PC screen in the terminal and each student desk screen.
[0014] Optionally, when receiving a control instruction for screen projection for a first playback device sent by the PC teacher through the first communication channel or receiving a control instruction for screen projection for a second playback device sent by the terminal through the second communication channel, forwarding the control instruction to the corresponding playback device so that the playback device performs data screen projection based on the control instruction, including:
[0015] When receiving a control instruction for screen projection for a first playback device sent by the PC teacher through the first communication channel or receiving a control instruction for screen projection for a second playback device sent by the terminal through the second communication channel, forwarding the control instruction to the corresponding playback device, and transmitting the instruction issuance message containing the target address of the playback device back to the PC teacher or the terminal, so that the PC teacher or the terminal transmits the target data stream to the target address for data screen projection;
[0016] Or, when receiving a control instruction for screen projection for the first playback device sent by the PC teacher through the first communication channel or receiving a control instruction for screen projection for the second playback device sent by the terminal through the second communication channel, forwarding the control instruction to the corresponding playback device, and returning the instruction message to the PC teacher or the terminal, so that the PC teacher or the terminal can push the stream to the target address through the push streaming mode, and control the playback device to pull and parse the target data stream from the target address for data screen projection.
[0017] Optionally, controlling the playback device to pull and parse a target data stream from the target address to perform data projection includes:
[0018] Controlling the playback device to convert the acquired target data stream into a picture format for data screen projection based on the control instruction;
[0019] Or, control the playback device to play the target data stream of the preset real-time streaming media transmission protocol in real time through an embedded player to achieve data screen projection.
[0020] Optionally, forwarding the control instruction to a corresponding playback device so that the playback device performs data screen projection based on the control instruction includes:
[0021] Determine the screen projection status of the current playback device;
[0022] If the screen projection state of the playback device meets the preset screen projection state rule conditions, the playback device is controlled to obtain the target data stream so that the playback device performs data screen projection based on the control instruction and the target data stream.
[0023] Optionally, the smart classroom system interactive screen control method further includes:
[0024] Setting a first screen projection state rule for prohibiting the current playback device from external screen projection when the playback device has received a control instruction and the current playback device is in screen projection state;
[0025] Set the second screen projection status rule to prohibit the current PC teacher or current terminal from being used as a playback device at the same time when the PC teacher or terminal is a screen projection device;
[0026] Based on the grouping rules of each PC middle screen and each student desk screen in the terminal, when the PC middle screen is used as a screen projection device, the third screen projection status rule is used to synchronize and control the screens of each student desk in the group for projection according to the grouping rules.
[0027] In the second aspect, the present application discloses an interactive screen control device for a smart classroom system, which is applied to a proxy server, including:
[0028] A channel construction module, used to respectively construct a first communication channel between the proxy server and the PC teacher terminal, and a second communication channel between the proxy server and each PC screen in the terminal and each student desk screen;
[0029] The data screen projection module is used for forwarding the control instruction to the corresponding playback device when receiving the control instruction for screen projection for the first playback device sent by the PC teacher through the first communication channel or receiving the control instruction for screen projection for the second playback device sent by the terminal through the second communication channel, so that the playback device can perform data screen projection based on the control instruction, and send the status information generated after the data screen projection to the proxy server through the instruction data; wherein, the first playback device includes: each of the PC middle screens and each of the student desk screens; the second playback device includes: the screen of the PC teacher, each of the PC middle screens and each of the student desk screens;
[0030] The status transmission module is used to send the target instruction data representing the status information of each of the first playback devices in the instruction data to the PC teacher terminal through the first communication channel, so that the PC teacher terminal obtains the status information of each of the first playback devices.
[0031] In a third aspect, the present application discloses an electronic device, comprising:
[0032] Memory, used to store computer programs;
[0033] The processor is used to execute the computer program to implement the steps of the aforementioned disclosed smart classroom system interactive screen control method.
[0034] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the aforementioned disclosed smart classroom system interactive screen control method are implemented.
[0035] It can be seen that the present application discloses respectively constructing a first communication channel between the proxy server and the PC teacher end, and a second communication channel between the proxy server and each PC middle screen and each student desk screen in the terminal; when receiving a control instruction for screen projection for the first playback device issued by the PC teacher end through the first communication channel or receiving a control instruction for screen projection for the second playback device issued by the terminal through the second communication channel, the control instruction is forwarded to the corresponding playback device, so that the playback device performs data projection based on the control instruction, and sends the status information generated after the data projection to the proxy server through the instruction data; wherein, the first playback device includes: each PC middle screen and each student desk screen; the second playback device includes: the screen of the PC teacher end, each PC middle screen and each student desk screen; the target instruction data representing the status information of each first playback device in the instruction data is sent to the PC teacher end through the first communication channel, so that the PC teacher end obtains the status information of each first playback device. It can be seen that by creating a proxy server, the proxy server can act as the agent for the communication service between the PC teacher and the terminal, and then separate the system service and the proxy service. The proxy server is responsible for the communication and management of commands, and the data flow of the screen control service. By separating the services, the memory and CPU of the two service systems are reduced, will not be accumulated, and will not affect each other, which greatly improves the system performance and stability. The interaction of the smart classroom system is smooth, which improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0037] Figure 1 A flow chart of an interactive screen control method for a smart classroom system disclosed in this application;
[0038] Figure 2 A schematic diagram of communication between a proxy server and a smart classroom system software disclosed in this application;
[0039] Figure 3 A flowchart of a specific interactive screen control method for a smart classroom system disclosed in this application;
[0040] Figure 4 This is a schematic diagram of the structure of an interactive screen control device for a smart classroom system disclosed in this application;
[0041] Figure 5This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0043] In existing classrooms, there is usually only one all-in-one computer as the main screen. There is only a simple control lock function between the desk or computer and the main screen. Students can only get information from this main screen when they are in class or doing discussions. The teaching scene is limited to a single one and the teaching layout is fixed. In order to adapt to different teaching scenes and a better and more vivid teaching atmosphere, improve students' initiative and adapt to different and changing teaching scenes, how to make a classroom adapt to modern and cutting-edge teaching is an urgent problem that needs to be solved.
[0044] To this end, the present invention provides an interactive screen control solution for a smart classroom system, which can perform interactive screen control on multiple terminals, realize multi-functional smart teaching, and provide teachers and students with a better user experience.
[0045] Reference Figure 1 As shown, the present invention discloses an interactive screen control method for a smart classroom system, which is applied to a proxy server and includes:
[0046] Step S11: respectively constructing a first communication channel between the proxy server and the PC teacher terminal, and a second communication channel between the proxy server and each PC screen in the terminal and each student desk screen.
[0047] In this embodiment, a first communication channel between the proxy server and the PC teacher terminal, and a second communication channel between the proxy server and each PC screen in the terminal and each student desk screen are respectively constructed through a preset communication protocol; wherein, the preset communication protocol includes: a protocol header, a version application request end, an application receiving end, a business status, a number of reissues, a protocol type, an initiation instruction identifier, a reply instruction identifier, a main instruction, a sub-instruction, a reserved field, a data type, a data segment length, a data segment, and a protocol tail. It can be understood that a proxy server is created in the smart classroom system, and then a first communication channel between the proxy server and the PC teacher end is further constructed through a preset communication protocol, and a second communication channel between the proxy server and each PC middle screen and each student desk screen in the terminal is constructed, and then the proxy server is connected to the PC teacher end, and at the same time, each terminal of the proxy server is also connected, wherein the proxy server is connected to the PC teacher end through the first communication channel, and the proxy server is connected to each terminal through the second communication channel. It should be noted that the target objects acted on by the first communication channel and the second communication channel are different, wherein the first communication channel is a one-to-one channel between the proxy server and the PC teacher end, and in the smart classroom system, there are multiple terminals such as multiple PC middle screens and student desk screens, therefore, the second communication channel is a one-to-many channel between the proxy server and the terminal. In addition, the definition of the preset communication protocol is as follows: 1) The communication protocol includes a protocol header, a version application request end, an application receiving end, and a business progress status, wherein 0x00 in the business progress status indicates normal; 0x01 indicates that the instruction must be sent successfully before the subsequent steps can be performed, which is equivalent to receiving the subsequent steps. The previous steps must ensure the status of successful sending, the number of reissues, the protocol type (0x01: request, 0x02: reply, 0x03: confirmation), the initiation instruction identifier (session), the reply instruction identifier (reply session), the main instruction, the sub-instruction, the reserved field, the data type (0x00: no data, 0x01: json, 0x02: hex, 0x03-ascii), the data segment length, the data segment, the protocol tail, etc.Among them, the functions of each field of the communication protocol are as follows: "Protocol header": marks the beginning of the protocol data; "Version": helps to deal with compatibility issues of different versions of the protocol; "Application requester" and "Application receiver": clarify the two parties of the communication; "Business status": indicates the importance of the current instruction and the dependency of subsequent steps through specific status codes, such as 0x01 status to ensure that the key steps must be successful before continuing; "Number of retransmissions": provides a data retransmission mechanism to deal with possible loss and try to ensure the arrival of data; "Protocol type": distinguishes different operation types such as request, reply and confirmation; "Initiating instruction identifier (session)" and "Reply instruction identifier (reply session): give each communication a unique identifier to facilitate tracking and management of the logical link of the entire communication process; "Main instruction" and "Sub-instruction": refine the specific instruction content; "Reserved field": reserve space for possible future expansion; "Data type": determine the format of the data to facilitate processing and parsing; "Data segment length" and "Data segment": clarify the actual content and size of the data; "Protocol tail": marks the end of the protocol data.
[0048] 2) An actively initiated communication has a unique session identifier throughout the life cycle of the communication data, and each communication must receive confirmation when it is passed to the next end, and then the reply data is received first. A reply communication data initiated by a reply has a unique reply session identifier throughout the life cycle of the reply communication data, and each communication must receive confirmation when it is passed to the next end, and the confirmation and reply data will carry the initiated data identifier, which can better distinguish and indicate the entire instruction and business logic link; if no confirmation or reply is received in the instruction communication, the communication mechanism of the preset number of resends will be triggered to resend the instruction communication to ensure that data is not lost as much as possible, which greatly enhances the reliability of data transmission, reduces the possibility of data loss or confusion, and ensures that the entire system can run stably according to the expected business logic. This mechanism helps to maintain data accuracy and consistency in complex network environments and system interactions.
[0049] like Figure 2 As shown, the system software is connected to the proxy server through a communication channel built by the TCP communication protocol. The two independent applications will not affect each other because of their own functions. Because they are independent applications, the memory and CPU used during operation will not be accumulated and combined, but calculated separately. The complex business system is divided into two and connected to each other through communication. The independent businesses run their own memory and CPU, which are reduced and will not be accumulated together. They will not affect each other, which greatly improves the system performance and stability, and the smooth experience of use is also improved.
[0050] It should be noted that the first communication channel and the second communication channel are both protocol channels constructed by the TCP communication protocol. Specifically, the first communication channel between the proxy server and the PC teacher terminal, and the second communication channel between the proxy server and each PC screen in the terminal and each student desk screen are respectively constructed by the TCP communication protocol. It can be understood that the use of the TCP communication protocol to construct the first communication channel and the second communication channel can bring the following advantages: through a series of mechanisms such as confirmation and retransmission, the data is ensured to be transmitted accurately, which is crucial for the transmission of key information such as instruction data and status data, and can ensure the integrity and accuracy of the data to avoid loss or error. Specifically, during the teaching process, important instructions issued by the system software (PC teacher terminal) must accurately reach the proxy service and each terminal, and the TCP communication protocol can meet this requirement well. Moreover, the TCP communication protocol needs to establish a connection before communication, which enables the communicating parties to have a clear interaction channel and ensure the orderliness and stability of data transmission. In the smart classroom system, this stable connection helps to ensure continuous and reliable interaction between the system software and the proxy service and each terminal.
[0051] Step S12: When receiving a control instruction for screen projection for the first playback device sent by the PC teacher through the first communication channel or receiving a control instruction for screen projection for the second playback device sent by the terminal through the second communication channel, forwarding the control instruction to the corresponding playback device, so that the playback device can perform data projection based on the control instruction, and send the status information generated after the data projection to the proxy server through the instruction data; wherein, the first playback device includes: each PC middle screen, each student desk screen; the second playback device includes: the screen of the PC teacher, each PC middle screen, and each student desk screen.
[0052] In this embodiment, Figure 3, when the communication network of the smart classroom is built, if the PC teacher has a screen projection demand for other playback devices, the PC teacher sends a control instruction for the first playback device through the first communication channel to the proxy server, and the proxy server forwards the control instruction to the corresponding first playback device through the second communication channel. It should be noted that in the process of forwarding the control instruction, since the fields in the communication protocol specifically require the application request end and the application receiving end information, the fields such as whether the instruction sending is successful according to the business status feedback in the field work together to ensure that when the proxy server forwards the control instruction, although it is connected to multiple terminals, it can still ensure that the control instruction is forwarded to the corresponding first playback device accurately. Similarly, if the terminal has a screen projection demand for other playback devices, the terminal sends a control instruction for screen projection for the second playback device through the second communication channel to the proxy server, and the proxy server forwards the control instruction to the corresponding second playback device through the communication channel. If the second playback device is a PC teacher's end, the proxy server forwards the control instruction to the PC teacher's end through the first communication channel. If the second playback device is a PC middle screen or a student desk screen, the proxy server forwards the control instruction to the PC middle screen or the student desk screen through the second communication channel. The process of forwarding the control instruction is consistent with the previous requirements, and the accuracy of the control instruction forwarding is also guaranteed.
[0053] Specifically, Figure 3 As shown, a specific implementation method is: when receiving a control instruction for screen projection for the first playback device issued by the PC teacher through the first communication channel or receiving a control instruction for screen projection for the second playback device issued by the terminal through the second communication channel, the control instruction is forwarded to the corresponding playback device, and the instruction issuance message containing the target address of the playback device is returned to the PC teacher or the terminal, so that the PC teacher or the terminal transmits the target data stream to the target address for data screen projection; it can be understood that when the proxy service end receives a control instruction for screen projection, while forwarding the control instruction to the playback device, the instruction issuance message containing the playback device status and the target address is returned to the PC teacher or the terminal. When the playback device status is a state that allows other devices to cast screens, the PC teacher or the terminal uses the UDP transmission data stream encapsulation library to transmit the target data stream, and sends the encapsulation library where the target data stream (video, image, etc.) to be projected is located to the playback device, so that the playback device can play data and realize data screen projection. In this way, based on the characteristics of fast speed and good real-time performance of UDP transmission, the UDP screen projection method can meet some scenarios with high real-time requirements in smart teaching scenarios.
[0054] like Figure 3As shown, another specific implementation is: when receiving the control instruction for screen projection for the first playback device issued by the PC teacher through the first communication channel or receiving the control instruction for screen projection for the second playback device issued by the terminal through the second communication channel, the control instruction is forwarded to the corresponding playback device, and the instruction is sent back to the PC teacher or the terminal, so that the PC teacher or the terminal pushes the stream to the target address through the push stream mode, and controls the playback device to pull and parse the target data stream from the target address for data screen projection. It can be understood that when the proxy service end receives the control instruction for screen projection, while forwarding the control instruction to the playback device, the instruction message containing the playback device status and the target address is sent back to the PC teacher or the terminal. When the playback device status is to allow other devices to cast screens, the PC teacher or the terminal directly pushes the stream to the target address through the push stream mode, and controls the playback device to access the target address based on the control instruction, and pulls the target data stream from the target address, and further parses the target data stream according to the relevant protocol for data screen projection. In this way, based on the continuous and stable data supply characteristics of the streaming mode, the streaming screen projection method can meet some scenarios in smart teaching scenarios that have high requirements for continuous and stable screen projection.
[0055] In this embodiment, Figure 3 As shown, for the projected target data stream to the playback device, the playback method of the playback device is as follows: control the playback device to convert the acquired target data stream into a picture format based on the control instruction for data projection; or control the playback device to play the target data stream of the preset real-time streaming media transmission protocol in real time through the embedded player to achieve data projection. Among them, the preset real-time streaming media transmission protocol can specifically include but is not limited to: RTMP, WebRTC, etc. In this way, the playback device can convert it into a picture for playback by calling the library that receives the UDP data stream. This method can directly process the target data stream and display it as an image. At the same time, the target data stream can also be played through an embedded open source player, and is not limited to specific protocols such as RTMP, WebRTC, etc. In this way, a variety of playback options are provided to adapt to different needs and technical environments, making the screen projection playback more adaptable and flexible. For example, under different network conditions or device support, the most suitable playback method can be selected to ensure a good screen projection effect, and there is no specific limitation on this.
[0056] In this embodiment, Figure 3As shown, after the control instruction reaches the current playback device, the current playback device needs to put its current screen projection state as the playback device state in the instruction sending message and return it to the proxy server, so that the proxy server can forward the instruction sending message to the screen projection end through the communication channel, and the screen projection end determines whether the current playback device can be projected based on the feedback of the current screen projection state. Specifically, the screen projection state of the current playback device is judged; if the screen projection state of the playback device meets the preset screen projection state rule conditions, the playback device is controlled to obtain the target data stream, so that the playback device performs data projection based on the control instruction and the target data stream. It can be understood that by judging whether the current screen projection state meets the preset screen projection state rule conditions, the playback device can be controlled to obtain the target data stream for screen projection.
[0057] The preset screen projection status rule conditions include: setting a first screen projection status rule that prohibits the current playback device from external screen projection when the playback device has received a control instruction and the current playback device is in the screen projection state; setting a second screen projection status rule that prohibits the current PC teacher end or current terminal from being used as a playback device at the same time when the PC teacher end or terminal is a screen projection device; and a third screen projection status rule that, based on the grouping rules of each PC middle screen and each student desk screen in the terminal, when the PC middle screen is used as a screen projection device, the screen projection of each student desk screen in the group is synchronized and controlled according to the grouping rules. The screen projection status rule conditions in the scenario of the smart classroom system are as follows:
[0058] 1) When the playback device is already receiving screen projection, it cannot project the screen to other devices, but can continue to receive screen projection from other devices;
[0059] 2) When the projection device has already projected the screen to a playback device, it can continue to project the screen to different playback devices, but cannot receive projections from other devices.
[0060] 3) The PC teacher can project the screen to all PC middle screens or student desk screens, or can simultaneously project the screen to all PC middle screens and student desk screens. The PC teacher can select one or more PC middle screens and student desk screens to project to the PC teacher's large screen. According to the preset rules, it can be 4-split screen (4 terminals), etc. and the number is not limited to 4 and can be more.
[0061] 4) The middle screen of the PC can be projected to the student desk screen or other PC middle screens that have not been projected. The middle screen of the PC can be selected by the large screen of the PC teacher for projection. If grouped according to the middle screens, the student desk screen of this group or the leader of other groups (in the mode of synchronizing the desk screens of all students in the group (including annotations and pictures)) or other PC middle screens that have not received the projection can be selected for projection.
[0062] 5) The student desk screen can receive the projection of the PC teacher's large screen and the group's PC middle screen, and can project the screen to the PC teacher's large screen and the group's PC middle screen. The group leader (in the mode of synchronizing all student desk screens in the group (including annotations and pictures)) can project the screen to the PC middle screen that is not projected to other devices.
[0063] Step S13: sending the target instruction data representing the status information of each of the first playback devices in the instruction data to the PC teacher terminal through the first communication channel, so that the PC teacher terminal obtains the status information of each of the first playback devices.
[0064] In this embodiment, Figure 3 As shown, during the entire screen control interaction process, the proxy server will transmit the status information (whether the screen is projected) of each first playback device to the PC teacher in real time through the first communication channel. In this way, the PC teacher can obtain the status information of the first playback device so that it can be displayed on its own screen in real time through the human-computer interaction page, so that the user can intuitively obtain the current projection status of each first playback device, so as to provide reference information for the user to select a playback device or projection device. Since the first communication channel and the second communication channel are both built based on the TCP communication protocol, they allow data to be transmitted in both directions at the same time, which is consistent with the need for two-way interactive instructions and feedback in the system, and can efficiently support information exchange between the system software and the proxy service and with each terminal. For example, the proxy service can feedback the status of the terminal to the system software in real time, and the system software can also send new control instructions to the proxy service at any time.
[0065] In this way, the smart classroom system relies on intelligent, multi-type, and multi-functional smart teaching equipment, and uses interactive control screens to create a smart classroom that integrates functions such as communication and discussion, multi-screen interaction, screen sharing, and diversified evaluation. It supports multi-scenario teaching and realizes innovative classrooms.
[0066] It can be seen that the present application discloses respectively constructing a first communication channel between the proxy server and the PC teacher end, and a second communication channel between the proxy server and each PC middle screen and each student desk screen in the terminal; when receiving a control instruction for screen projection for the first playback device issued by the PC teacher end through the first communication channel or receiving a control instruction for screen projection for the second playback device issued by the terminal through the second communication channel, the control instruction is forwarded to the corresponding playback device, so that the playback device performs data projection based on the control instruction, and sends the status information generated after the data projection to the proxy server through the instruction data; wherein, the first playback device includes: each PC middle screen and each student desk screen; the second playback device includes: the screen of the PC teacher end, each PC middle screen and each student desk screen; the target instruction data representing the status information of each first playback device in the instruction data is sent to the PC teacher end through the first communication channel, so that the PC teacher end obtains the status information of each first playback device. It can be seen that by creating a proxy server, the proxy server can act as the agent for the communication service between the PC teacher and the terminal, and then separate the system service and the proxy service. The proxy server is responsible for the communication and management of commands, and the data flow of the screen control service. By separating the services, the memory and CPU of the two service systems are reduced, will not be accumulated, and will not affect each other, which greatly improves the system performance and stability. The interaction of the smart classroom system is smooth, which improves the user experience.
[0067] Reference Figure 4 As shown, the embodiment of the present invention discloses an interactive screen control device for a smart classroom system, which is applied to a proxy server, and includes:
[0068] A channel construction module 11 is used to respectively construct a first communication channel between the proxy server and the PC teacher terminal, and a second communication channel between the proxy server and each PC screen in the terminal and each student desk screen;
[0069] The data screen projection module 12 is used for forwarding the control instruction to the corresponding playback device when receiving the control instruction for screen projection for the first playback device sent by the PC teacher through the first communication channel or receiving the control instruction for screen projection for the second playback device sent by the terminal through the second communication channel, so that the playback device performs data screen projection based on the control instruction, and sends the status information generated after the data screen projection to the proxy server through the instruction data; wherein, the first playback device includes: each of the PC middle screens and each of the student desk screens; the second playback device includes: the screen of the PC teacher, each of the PC middle screens and each of the student desk screens;
[0070] The status transmission module 13 is used to send the target instruction data representing the status information of each of the first playback devices in the instruction data to the PC teacher terminal through the first communication channel, so that the PC teacher terminal obtains the status information of each of the first playback devices.
[0071] It can be seen that the present application discloses respectively constructing a first communication channel between the proxy server and the PC teacher end, and a second communication channel between the proxy server and each PC middle screen and each student desk screen in the terminal; when receiving a control instruction for screen projection for the first playback device issued by the PC teacher end through the first communication channel or receiving a control instruction for screen projection for the second playback device issued by the terminal through the second communication channel, the control instruction is forwarded to the corresponding playback device, so that the playback device performs data projection based on the control instruction, and sends the status information generated after the data projection to the proxy server through the instruction data; wherein, the first playback device includes: each PC middle screen and each student desk screen; the second playback device includes: the screen of the PC teacher end, each PC middle screen and each student desk screen; the target instruction data representing the status information of each first playback device in the instruction data is sent to the PC teacher end through the first communication channel, so that the PC teacher end obtains the status information of each first playback device. It can be seen that by creating a proxy server, the proxy server can act as the agent for the communication service between the PC teacher and the terminal, and then separate the system service and the proxy service. The proxy server is responsible for the communication and management of commands, and the data flow of the screen control service. By separating the services, the memory and CPU of the two service systems are reduced, will not be accumulated, and will not affect each other, which greatly improves the system performance and stability. The interaction of the smart classroom system is smooth, which improves the user experience.
[0072] Furthermore, the present application also discloses an electronic device. Figure 5 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.
[0073] Figure 5 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the interactive screen control method of the smart classroom system disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0074] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0075] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0076] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0077] Among them, the operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the processor 21 on the massive data 223 in the memory 22, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the interactive screen control method of the smart classroom system performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks. In addition to data received by the electronic device and transmitted from an external device, the data 223 can also include data collected by its own input and output interface 25, etc.
[0078] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned disclosed smart classroom system interactive screen control method is implemented. The specific steps of the method can refer to the corresponding contents disclosed in the aforementioned embodiments, and will not be repeated here.
[0079] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0080] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application. The steps of the method or algorithm described in conjunction with the embodiments disclosed herein can be implemented directly with hardware, a software module executed by a processor, or a combination of the two. The software module can be placed in a random access memory RAM (Random Access Memory), memory, read-only memory ROM (Read Only Memory), electrically programmable EPROM (Electrically Programmable Read Only Memory), electrically erasable programmable EEPROM (ElectricErasable Programmable Read Only Memory), register, hard disk, removable disk, CD-ROM (CompactDisc-Read Only Memory), or any other form of storage medium known in the technical field.
[0081] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0082] The scheme provided by the present invention is introduced in detail above. Specific examples are used in this article to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. An interactive screen control method for a smart classroom system. It is characterized in that Applied to the proxy server, including: Establishing a first communication channel between the proxy server and the PC teacher terminal, and a second communication channel between the proxy server and each PC screen in the terminal and each student desk screen; When receiving a control instruction for screen projection for the first playback device sent by the PC teacher through the first communication channel or receiving a control instruction for screen projection for the second playback device sent by the terminal through the second communication channel, forwarding the control instruction to the corresponding playback device, so that the playback device performs data screen projection based on the control instruction, and sends the status information generated after the data screen projection to the proxy server through the instruction data; wherein, the first playback device includes: each of the PC middle screens, each of the student desk screens; the second playback device includes: the screen of the PC teacher, each of the PC middle screens, and each of the student desk screens; Sending the target instruction data representing the status information of each of the first playback devices in the instruction data to the PC teacher terminal through the first communication channel, so that the PC teacher terminal obtains the status information of each of the first playback devices; When receiving a control instruction for projecting the screen to the first playback device sent by the PC teacher through the first communication channel or receiving a control instruction for projecting the screen to the second playback device sent by the terminal through the second communication channel, forwarding the control instruction to the corresponding playback device so that the playback device projects the data based on the control instruction, including: When receiving a control instruction for screen projection for a first playback device sent by the PC teacher through the first communication channel or receiving a control instruction for screen projection for a second playback device sent by the terminal through the second communication channel, forwarding the control instruction to the corresponding playback device, and transmitting the instruction issuance message containing the target address of the playback device back to the PC teacher or the terminal, so that the PC teacher or the terminal transmits the target data stream to the target address for data screen projection; Or, when receiving a control instruction for screen projection for the first playback device sent by the PC teacher through the first communication channel or receiving a control instruction for screen projection for the second playback device sent by the terminal through the second communication channel, forwarding the control instruction to the corresponding playback device, and returning the instruction message to the PC teacher or the terminal, so that the PC teacher or the terminal can push the stream to the target address through the push streaming mode, and control the playback device to pull and parse the target data stream from the target address for data screen projection.
2. The interactive screen control method of the smart classroom system according to claim 1, It is characterized in that The first communication channel between the proxy server and the PC teacher terminal and the second communication channel between the proxy server and each PC screen in the terminal and each student desk screen are respectively constructed, including: Through a preset communication protocol, a first communication channel between the proxy server and the PC teacher terminal, and a second communication channel between the proxy server and each PC screen in the terminal and each student desk screen are respectively established; Among them, the preset communication protocol includes: protocol header, version application request end, application receiving end, business status, number of reissues, protocol type, initiation instruction identifier, reply instruction identifier, main instruction, sub-instruction, reserved field, data type, data segment length, data segment, and protocol tail.
3. The interactive screen control method of the smart classroom system according to claim 2, It is characterized in that The first communication channel between the proxy server and the PC teacher terminal, and the second communication channel between the proxy server and each PC screen in the terminal and each student desk screen are respectively established through a preset communication protocol, including: The TCP communication protocol is used to respectively construct a first communication channel between the proxy server and the PC teacher terminal, and a second communication channel between the proxy server and each PC screen in the terminal and each student desk screen.
4. The interactive screen control method of the smart classroom system according to claim 1, It is characterized in that The controlling the playback device to pull and parse the target data stream from the target address to perform data projection includes: Controlling the playback device to convert the acquired target data stream into a picture format for data screen projection based on the control instruction; Or, control the playback device to play the target data stream of the preset real-time streaming media transmission protocol in real time through an embedded player to achieve data screen projection.
5. The interactive screen control method of the smart classroom system according to claim 1, It is characterized in that The forwarding of the control instruction to the corresponding playback device so that the playback device performs data screen projection based on the control instruction includes: Determine the screen projection status of the current playback device; If the screen projection state of the playback device meets the preset screen projection state rule conditions, the playback device is controlled to obtain the target data stream so that the playback device performs data screen projection based on the control instruction and the target data stream.
6. The interactive screen control method of the smart classroom system according to any one of claims 1 to 5, It is characterized in that Also includes: Setting a first screen projection state rule for prohibiting the current playback device from external screen projection when the playback device has received a control instruction and the current playback device is in screen projection state; Set the second screen projection status rule to prohibit the current PC teacher or current terminal from being used as a playback device at the same time when the PC teacher or terminal is a screen projection device; Based on the grouping rules of each PC middle screen and each student desk screen in the terminal, when the PC middle screen is used as a screen projection device, the third screen projection status rule is used to synchronize and control the screens of each student desk in the group for projection according to the grouping rules.
7. An interactive screen control device for a smart classroom system, It is characterized in that Applied to the proxy server, including: A channel construction module, used to respectively construct a first communication channel between the proxy server and the PC teacher terminal, and a second communication channel between the proxy server and each PC screen in the terminal and each student desk screen; The data screen projection module is used for forwarding the control instruction to the corresponding playback device when receiving the control instruction for screen projection for the first playback device sent by the PC teacher through the first communication channel or receiving the control instruction for screen projection for the second playback device sent by the terminal through the second communication channel, so that the playback device can perform data screen projection based on the control instruction, and send the status information generated after the data screen projection to the proxy server through the instruction data; wherein, the first playback device includes: each of the PC middle screens and each of the student desk screens; the second playback device includes: the screen of the PC teacher, each of the PC middle screens and each of the student desk screens; A status transmission module, used for sending target instruction data representing status information of each of the first playback devices in the instruction data to the PC teacher terminal through the first communication channel, so that the PC teacher terminal obtains the status information of each of the first playback devices; The data screen projection module is specifically used for forwarding the control instruction to the corresponding playback device when receiving the control instruction for screen projection for the first playback device issued by the PC teacher end through the first communication channel or receiving the control instruction for screen projection for the second playback device issued by the terminal through the second communication channel, and transmitting the instruction issuance message containing the target address of the playback device back to the PC teacher end or the terminal, so that the PC teacher end or the terminal transmits the target data stream to the target address for data screen projection; or, when receiving the control instruction for screen projection for the first playback device issued by the PC teacher end through the first communication channel or receiving the control instruction for screen projection for the second playback device issued by the terminal through the second communication channel, forwarding the control instruction to the corresponding playback device, and returning the instruction issuance message to the PC teacher end or the terminal, so that the PC teacher end or the terminal pushes the stream to the target address through the push stream mode, and controls the playback device to pull and parse the target data stream from the target address for data screen projection.
8. An electronic device, It is characterized in that include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the steps of the interactive screen control method of the smart classroom system as described in any one of claims 1 to 6.
9. A computer-readable storage medium, It is characterized in that Used to store computer programs; wherein, when the computer program is executed by a processor, the steps of the interactive screen control method of a smart classroom system as described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Control method, device and system for projection screen
CN108989879A
Teaching system, teaching system communication method and device and storage medium
CN110611711A
Multi-terminal same-screen teaching system and teaching method
CN110874959A
Screen sharing initiating and responding method and interactive system
CN111338590A
Video screen projection method and device, computer equipment and storage medium
CN113727143A
