Screen projection method, device, electronic device and storage medium for private network environment
By generating screen projection connection information in a private network environment and switching the business mode to a routing mode, the integrated set-top box can connect to the public network and realize screen projection, solving the problem of screen projection in a private network environment and improving applicability.
Patent Information
- Application Number
- CN202211284879.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-19
- Publication Date
- 2025-08-29
- Estimated Expiration
- 2042-10-19
AI Technical Summary
In a private network environment, the integrated set-top box cannot achieve the screen projection function and has poor applicability.
When the screen projection command is detected, the screen projection connection information is generated and updated to the network management platform, the business mode of the converged set-top box is switched to the routing mode, connected to the public network, and establish a screen projection connection channel with the device to be projected in the public network environment.
Without affecting the environment function of the integrated set-top box private network, the screen projection function is realized and its applicability is enhanced.
Smart Images

Figure CN115633213B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method, device, electronic device and storage medium for projecting screen in a private network environment. Background Art
[0002] A digital video converter box (STB), also commonly known as a set-top box or set-top box, is a device that connects a television set to an external signal source. It converts compressed digital signals into television content and displays it on the television. Signals can come from cable, satellite antennas, broadband networks, and terrestrial broadcasts. Optical modem-integrated set-top boxes, which incorporate the functionality of an optical modem compared to standard set-top boxes, are becoming increasingly popular in homes.
[0003] With the development of the mobile internet era, screen mirroring has become a key requirement for TV users. Currently, screen mirroring requires that the device being cast and the target device be on the same local area network. However, telecom optical modem-based integrated IPTV (Interactive Personal Television) set-top boxes (STBs) almost all operate on dedicated networks, making screen mirroring unavailable to users and limiting the applicability of these integrated STBs. Summary of the Invention
[0004] The main purpose of the present invention is to provide a screen projection method, device, electronic device and storage medium in a private network environment, aiming to solve the problem that users cannot use the screen projection function when watching TV using a converged set-top box and the converged set-top box has poor applicability.
[0005] To achieve the above object, the present invention provides a method for projecting screens in a private network environment, the method comprising:
[0006] When a screen projection instruction is detected, screen projection connection information is generated and the screen projection connection information is updated to the network management platform;
[0007] After the projection connection information is successfully updated, the service mode of the converged set-top box is switched to routing mode through the network management platform;
[0008] connecting the converged set-top box to a public network in the routing mode;
[0009] In a public network environment, a screen projection connection channel is established with the device to be projected based on the screen projection connection information, so that the device to be projected can perform screen projection.
[0010] Optionally, when the screen projection instruction is detected, the step of generating screen projection connection information and updating the screen projection connection information to the network management platform includes:
[0011] Extracting a command key value from the screen casting command, and if the command key value matches a target key value in a preset key value library, determining that the screen casting command is detected;
[0012] Trigger the program to randomly generate a screen projection connection account and screen projection connection password according to the screen projection instruction;
[0013] The screen projection connection account and the screen projection connection password are sent to the network management platform so that the network management platform can update the screen projection connection information.
[0014] Optionally, the step of switching the service mode of the converged set-top box to a routing mode through the network management platform includes:
[0015] Sending a port unbinding message to the network management platform through a communication connection with the network management platform;
[0016] The bound network port is unbound according to the port unbinding message, so as to switch the converged set-top box from a bridge mode to a routing mode.
[0017] Optionally, the step of connecting the converged set-top box to a public network in the routing mode includes:
[0018] Disconnect the network authentication connection in the private network environment;
[0019] The network configuration port is called to perform network configuration dialing, obtain the assigned network address, and use the network address to connect to the public network.
[0020] Optionally, the step of establishing a screen projection connection channel with the device to be projected based on the screen projection connection information in a public network environment for the device to be projected to project the screen includes:
[0021] Convert the screen projection connection information into screen projection prompt information, and display the screen projection prompt information based on a display device connected to the converged set-top box;
[0022] Establish a screen projection connection channel with the device to be projected according to the screen projection prompt information, and receive the screen projection data sent by the device to be projected based on the screen projection connection channel.
[0023] Optionally, after the step of establishing a screen projection connection channel with the device to be projected based on the screen projection connection information in a public network environment for the device to be projected to project the screen, the method further includes:
[0024] When detecting that the screen projection connection channel is disconnected, sending a port binding message to the network management platform;
[0025] Binding the unbound network port according to the port binding message to switch the converged set-top box from the routing mode back to the bridge mode;
[0026] Disconnect the network configuration port connected to the public network and connect it to the private network.
[0027] Optionally, after the step of detecting that the screen projection connection channel is disconnected, the method further includes:
[0028] Control the connected display device to return from the screen casting page to the screen casting prompt page, wherein the screen casting prompt page includes the screen casting identification information;
[0029] When the screen projection prompt page detects a screen projection end instruction, the step of sending a port binding message to the network management platform is executed.
[0030] In addition, to achieve the above-mentioned purpose, the present invention further provides a private network environment projection device, which is applied to a converged set-top box. The private network environment projection device includes:
[0031] A generation module is used to generate screen projection connection information when a screen projection instruction is detected, and update the screen projection connection information to the network management platform;
[0032] A switching module, configured to switch the service mode of the converged set-top box to a routing mode through the network management platform after the projection connection information is successfully updated;
[0033] A connection module, configured to connect the converged set-top box to a public network in the routing mode;
[0034] Establish a module for establishing a screen projection connection with the device to be projected based on the screen projection connection information in a public network environment, so that the device to be projected can perform screen projection.
[0035] In addition, to achieve the above-mentioned purpose, the present invention also provides an electronic device, which includes: a memory, a processor, and a private network environment screen projection program stored on the memory and runnable on the processor, and the private network environment screen projection program is configured to implement the steps of the private network environment screen projection method described above.
[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a private network environment screen projection program is stored. When the private network environment screen projection program is executed by the processor, the steps of the private network environment screen projection method described above are implemented.
[0037] The private network environment screen projection method, device, electronic device and storage medium provided by the present invention generate screen projection connection information when a screen projection instruction is detected, and update the screen projection connection information to the network management platform. After the screen projection connection information is successfully updated, the business mode of the converged set-top box is switched to routing mode through the network management platform, and the converged set-top box is connected to the public network in the routing mode. In the public network environment, a screen projection connection channel is established with the device to be projected based on the screen projection connection information, so that the device to be projected can perform screen projection. By dynamically switching the business mode of the converged set-top box, it is connected to the public network when the user has a screen projection demand, thereby realizing the screen projection function without affecting the function of the converged set-top box in the private network environment, thereby enhancing the applicability of the converged set-top box. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A schematic diagram of the structure of an electronic device in the hardware operating environment involved in an embodiment of the present invention;
[0039] Figure 2 This is a flowchart of the first embodiment of the screen projection method in a private network environment of the present invention;
[0040] Figure 3 This is a flow chart of the second embodiment of the screen projection method in a private network environment of the present invention;
[0041] Figure 4 This is a flow chart of the third embodiment of the screen projection method in a private network environment of the present invention;
[0042] Figure 5 This is a schematic diagram of the screen projection device in a private network environment of the present invention.
[0043] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION
[0044] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0045] For telecom optical modem-integrated IPTV set-top boxes, the boxes almost all use a private network environment and cannot access the public network, so the gateway must be configured to work in bridge mode. But at the same time, the screen projection function requires that the screen projection device and the box are in the same local area network environment to operate, that is, the gateway needs to be configured in routing mode. Generally, you can achieve screen projection in a private network environment by using the default public network gateway, running in routing mode, binding VLAN (Virtual Local Area Network) to bridge mode, and adding static routes on the IPTV box side. However, when adding static routes, you need to add as many address segments to the routing table as there are access addresses in the private network. Once the access address changes, the routing table is not updated in time, the address cannot be passed, and management and control are inconvenient.
[0046] The main technical solution of the present invention is: when a screen projection instruction is detected, screen projection connection information is generated, and the screen projection connection information is updated to the network management platform; after the screen projection connection information is successfully updated, the business mode of the integrated set-top box is switched to routing mode through the network management platform; in the routing mode, the integrated set-top box is connected to the public network; in the public network environment, a screen projection connection is established with the device to be projected based on the screen projection connection information, so that the device to be projected can perform screen projection.
[0047] Reference Figure 1 , Figure 1 This is a schematic diagram of the electronic device structure of the hardware operating environment involved in the embodiment of the present invention.
[0048] like Figure 1 As shown, the electronic device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.
[0049] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation to the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0050] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a private network environment screen projection program.
[0051] exist Figure 1 In the electronic device shown, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the electronic device of the present invention can be set in the electronic device, and the electronic device calls the private network environment screen projection program stored in the memory 1005 through the processor 1001, and executes the private network environment screen projection method provided by the embodiment of the present invention.
[0052] The embodiment of the present invention provides a method for projecting screen in a private network environment, referring to Figure 2 , Figure 2 This is a flow chart of the first embodiment of a screen projection method in a private network environment of the present invention.
[0053] In this embodiment, the private network environment screen projection method includes:
[0054] Step S10: When a screen projection instruction is detected, screen projection connection information is generated and the screen projection connection information is updated to the network management platform;
[0055] A converged set-top box (STB) combines the functions of a standard STB with those of an optical modem. Users can use the converged STB to watch IPTV content and access the internet via the optical modem. The portion of the converged STB that implements standard STB functions can be considered the STB system, while the portion that implements optical modem functions can be considered the optical modem system. These two systems communicate with each other. The STB system can receive external signal sources and control connected TVs and other display devices. The optical modem system can be considered a gateway, providing network connectivity. The optical modem system can be used as a network management platform, allowing users to modify various network connection parameters and settings.
[0056] When a user wants to cast their screen while watching TV, they can activate the screen casting function by pressing a specific button on the remote control. The remote control sends a casting command to the TV. When the set-top box system detects the casting command, it generates casting connection information. The casting connection information can be used to establish a casting connection between the device to be cast and the display device. The casting connection information is updated to the network management platform, which can then change the network connection parameters of the converged set-top box.
[0057] In some feasible embodiments, when a screen projection instruction is detected, screen projection connection information is generated, and the step of updating the screen projection connection information to the network management platform may include:
[0058] Step a, extracting the command key value in the screen casting command, and if the command key value matches the target key value in the preset key value library, determining that the screen casting command is detected;
[0059] Step b, triggering a program to randomly generate a screen projection connection account and a screen projection connection password according to the screen projection instruction;
[0060] Step c: Send the screen projection connection account and the screen projection connection password to the network management platform so that the network management platform can update the screen projection connection information.
[0061] Taking the example of a user using a remote control to control the TV, the user can turn on the screen projection function by pressing the combination key of the remote control. After the user presses the combination key, the remote control sends a screen projection instruction to the TV. The screen projection instruction can include an instruction key value. The set-top box system in the integrated set-top box searches for a target key value that matches the instruction key value in the preset key value library. If the target key value can be matched and the corresponding function of the target key value is the screen projection function, it can be regarded as detecting the screen projection instruction. After confirming the user's screen projection needs, the screen projection connection information can be provided for the device to be projected. First, use the generation program to randomly generate a screen projection connection account and a screen projection connection password. The network connection type provided for the device to be projected can be a WIFI connection. The screen projection connection account can be a WIFI SSID (Service Set Identifier), and the screen projection connection password is a WIFI password. The generated SSID and password are sent to the network management platform, and the network connection parameters in the network management platform are updated to the received screen projection connection information.
[0062] Step S20: After the screen projection connection information is successfully updated, the service mode of the converged set-top box is switched to routing mode through the network management platform;
[0063] The converged set-top box's service modes include routing mode and bridge mode. Routing mode is suitable for public networks, while bridge mode is suitable for private networks. Under normal operating conditions, the converged set-top box operates in bridge mode, providing services to users over the private network. When screen projection is required, the bridge mode can be switched to routing mode to provide a foundation for public network connection.
[0064] After the projection connection information in the network management platform is successfully updated, the set-top box system can notify the network management platform to change the network port settings to switch the service mode. If the projection connection information is not successfully updated, you can return to the step of randomly generating the projection connection information until the network management platform successfully updates the projection connection information.
[0065] In some feasible embodiments, the step of switching the service mode of the converged set-top box to the routing mode through the network management platform may include:
[0066] Step d, sending a port unbinding message to the network management platform through a communication connection with the network management platform;
[0067] Step e: unbinding the bound network port according to the port unbinding message, so as to switch the converged set-top box from the bridge mode to the routing mode.
[0068] A socket connection can be established between the set-top box system and the network management platform. The set-top box system sends a port unbinding message to the network management platform through the socket connection, instructing the network management platform to unbind the IPTV's other port, thereby switching the service mode from bridge mode to routing mode. If the network port unbinding fails, the system can return to the step of sending the port unbinding message to the network management platform until the network port unbinding is successful.
[0069] Step S30, connecting the converged set-top box to the public network in the routing mode;
[0070] After completing the business mode switch, you can change the network connection method to achieve the switch from the private network environment to the public network environment.
[0071] In some feasible embodiments, the step of connecting the converged set-top box to the public network in the routing mode may include:
[0072] Step f, disconnecting the network authentication connection in the private network environment;
[0073] Step g: calling the network configuration port to perform network configuration dialing, obtaining the allocated network address, and using the network address to connect to the public network.
[0074] The set-top box system can disconnect IPoE (Internet Protocol over Ethernet), invoke the DHCP (Dynamic Host Configuration Protocol) interface, re-dial the DHCP, obtain the IP address assigned after dialing, and use the IP address to connect to the network, achieving the switch from a private network environment to a public network environment. IPoE is a broadband access authentication method that can support point-to-multipoint video multicast services such as IPTV and online video services. DHCP is a network protocol for local area networks. It refers to a range of IP addresses controlled by a server. When a client logs in to the server, it automatically obtains the IP address and subnet mask assigned by the server.
[0075] Step S40: Establish a screen projection connection channel with the device to be projected based on the screen projection connection information in a public network environment, so that the device to be projected can project the screen.
[0076] After switching the network environment, you can use the projection connection information to connect the converged set-top box and the device being projected to the same local area network, establish a projection connection channel, and use the projection connection channel to transmit projection data. Compared to adding static routes on the set-top box system side, this avoids the potential risks caused by access address changes and not being updated in a timely manner.
[0077] In some feasible embodiments, the step of establishing a screen projection connection channel with the device to be projected based on the screen projection connection information in a public network environment for the device to be projected to project the screen may include:
[0078] Step h: converting the screen projection connection information into screen projection prompt information, and displaying the screen projection prompt information based on a display device connected to the converged set-top box;
[0079] Step i: establish a screen projection connection channel with the device to be projected according to the screen projection prompt information, and receive the screen projection data sent by the device to be projected based on the screen projection connection channel.
[0080] The screen projection connection information can be converted into screen projection prompt information and displayed on the display device, so that users can use the displayed screen projection prompt information to establish a screen projection connection. The integrated set-top box sends the screen projection connection information to the display device, and the display device can display the screen projection connection information in the form of text or pictures, such as displaying a QR code picture and / or an account password in text form. The user can use the device to be projected to scan the QR code to connect to WIFI. When the WIFI connection is successful, it can be considered that the screen projection connection is successfully established. The user can use the screen projection application to send video stream data to the integrated set-top box through the screen projection connection channel, and watch the video content of the device to be projected on the display device.
[0081] In this embodiment, when a screen projection instruction is detected, screen projection connection information is generated, and the screen projection connection information is updated to the network management platform. After the screen projection connection information is successfully updated, the business mode of the converged set-top box is switched to the routing mode through the network management platform. In the routing mode, the converged set-top box is connected to the public network. In the public network environment, a screen projection connection is established with the device to be projected based on the screen projection connection information, so that the device to be projected can perform screen projection. By dynamically switching the business mode of the converged set-top box, it is connected to the public network when the user has a screen projection demand, thereby realizing the screen projection function without affecting the function of the converged set-top box in the private network environment, thereby enhancing the applicability of the converged set-top box.
[0082] Further, in the second embodiment of the private network environment projection method of the present invention, referring to Figure 3 , the method comprising:
[0083] Step S50: When it is detected that the screen projection connection channel is disconnected, a port binding message is sent to the network management platform;
[0084] The screen projection connection channel can include a network connection and a data stream transmission connection. The network connection provides the foundation for the screen projection process, and the data stream transmission connection is used to transmit video stream data between the device being projected and the display device. When the screen projection content ends or the user presses the back key to exit the screen projection, the video stream data transmission in the data stream connection is interrupted. At this time, a port binding message can be sent to the network management platform to prepare to switch back to bridge mode and the private network environment.
[0085] In some feasible embodiments, after the step of detecting that the screen projection connection channel is disconnected, the following steps may also be included:
[0086] Step j, controlling the connected display device to return from the screen projection page to the screen projection prompt page, wherein the screen projection prompt page includes screen projection identification information;
[0087] Step k: When the screen projection prompt page detects a screen projection end instruction, execute the step of sending a port binding message to the network management platform.
[0088] When the video stream data transmission is interrupted, there may be a situation where the user still wants to return to the screen projection. The screen of the display device can be returned from the screen projection page to the screen projection prompt page, and the user's intention can be further confirmed through the screen projection prompt page. The screen projection prompt page can include screen projection information, and the screen projection identification information can be consistent with the screen projection connection information, that is, the QR code corresponding to the WIFI account password is displayed on the screen projection prompt page, and the user can re-scan the QR code to establish the screen projection connection. If the user presses the back key or the home key on the screen projection prompt page, it means that the user is sure to exit the screen projection, and the instructions corresponding to the return key and the home key are regarded as screen projection end instructions, and then a port binding message is sent to the network management platform to execute the mode switch.
[0089] Step S60: Bind the unbound network port according to the port binding message to switch the converged set-top box from the routing mode back to the bridge mode;
[0090] When the converged set-top box is operating normally, the OTHER port is bound to the IPTV to provide IPTV services to users. In the previous steps, the OTHER port binding is unbound and switched to routing mode. After the screen projection is completed, the OTHER port can be rebound to switch the service mode from routing mode back to bridge mode. If the port setting fails, you can return to the port binding steps until the binding is successful.
[0091] Step S70: disconnect the network configuration port connected to the public network and connect to the private network.
[0092] After the service mode is successfully switched, the set-top box system can call the DHCP interface, disconnect DHCP, re-dial IPoE, obtain the network address, and connect to the private network. This restores the normal operation of the converged set-top box in the private network environment. After the dial-up is successful, the display device can exit the projection prompt page containing the QR code and return to the IPTV EPG (Electrical Program Guide) interface for normal user use.
[0093] In this embodiment, after detecting that the screen projection connection is disconnected, the screen projection prompt page is returned to confirm the user's intention to cast the screen. After confirming that the screen projection is completed, the bridge mode and private network environment are switched through port binding and dialing. The screen projection service is provided to the user without affecting the normal operation of the integrated set-top box, without the need for hardware changes, thereby improving the competitiveness of the product.
[0094] In the third embodiment of the private network environment projection method of the present invention, as Figure 4As shown, after the user presses the remote control shortcut to initiate screen casting, the program in the set-top box system generates a random Wi-Fi SSID and password, notifies the network management platform to update the Wi-Fi information, and then notifies the network management platform to cancel the IPTV port binding in bridge mode. If the setting fails, the program returns to the step of generating a random Wi-Fi SSID and password. After the network management platform successfully cancels the binding, it disconnects IPoE, re-dials DHCP, and displays a QR code on the TV screen. If the network management platform fails to cancel the binding, the program returns to the step of binding the IPTV port. The user can scan the QR code with their phone to connect to Wi-Fi and open the video app on their phone for screen casting. When the screen casting content ends or the user presses the back key, the program returns to the QR code page. If the user presses the back key or the home button on the QR code page, the program notifies the network management platform to change the IPTV port binding to the other port. If the setting is successful, the program disconnects DHCP, re-dials IPoE, exits the QR code page, and returns to the EPG. If the setting fails, the program returns to the step of changing the other port binding.
[0095] The embodiment of the present invention also provides a screen projection device for a private network environment, such as Figure 5 As shown, applied to a converged set-top box, the private network environment projection device includes:
[0096] The generation module 101 is used to generate screen projection connection information when a screen projection instruction is detected, and update the screen projection connection information to the network management platform;
[0097] The switching module 102 is configured to switch the service mode of the converged set-top box to the routing mode through the network management platform after the screen projection connection information is successfully updated;
[0098] A connection module 103, configured to connect the converged set-top box to a public network in the routing mode;
[0099] Establishing module 104 is used to establish a screen projection connection channel with the device to be projected based on the screen projection connection information in a public network environment, so that the device to be projected can perform screen projection.
[0100] Optionally, the generating module 101 is further configured to:
[0101] Extracting a command key value from the screen casting command, and if the command key value matches a target key value in a preset key value library, determining that the screen casting command is detected;
[0102] Trigger the program to randomly generate a screen projection connection account and screen projection connection password according to the screen projection instruction;
[0103] The screen projection connection account and the screen projection connection password are sent to the network management platform so that the network management platform can update the screen projection connection information.
[0104] Optionally, the switching module 102 is further configured to:
[0105] Sending a port unbinding message to the network management platform through a communication connection with the network management platform;
[0106] The bound network port is unbound according to the port unbinding message, so as to switch the converged set-top box from a bridge mode to a routing mode.
[0107] Optionally, the connection module 103 is further configured to:
[0108] Disconnect the network authentication connection in the private network environment;
[0109] The network configuration port is called to perform network configuration dialing, obtain the assigned network address, and use the network address to connect to the public network.
[0110] Optionally, the establishing module 104 is further configured to:
[0111] Convert the screen projection connection information into screen projection prompt information, and display the screen projection prompt information based on a display device connected to the converged set-top box;
[0112] Establish a screen projection connection channel with the device to be projected according to the screen projection prompt information, and receive the screen projection data sent by the device to be projected based on the screen projection connection channel.
[0113] Optionally, the private network environment projection device further includes a return module, which is used to:
[0114] When detecting that the screen projection connection channel is disconnected, sending a port binding message to the network management platform;
[0115] Binding the unbound network port according to the port binding message to switch the converged set-top box from the routing mode back to the bridge mode;
[0116] Disconnect the network configuration port connected to the public network and connect it to the private network.
[0117] Optionally, the return module is also used to:
[0118] Control the connected display device to return from the screen casting page to the screen casting prompt page, wherein the screen casting prompt page includes the screen casting identification information;
[0119] When the screen projection prompt page detects a screen projection end instruction, the step of sending a port binding message to the network management platform is executed.
[0120] An embodiment of the present invention further provides an electronic device, comprising: a memory, a processor, and a private network environment screen projection program stored in the memory and executable on the processor, wherein the private network environment screen projection program is configured to implement the steps of the private network environment screen projection method described above. The specific implementation methods of the electronic device of the embodiment of the present invention are described in the above-mentioned embodiments of the private network environment screen projection method, which will not be repeated here.
[0121] An embodiment of the present invention further provides a computer-readable storage medium, on which a private network environment screen projection program is stored. When the private network environment screen projection program is executed by a processor, the steps of the private network environment screen projection method described above are implemented. The specific implementation methods of the computer-readable storage medium of the embodiment of the present invention are referred to the various embodiments of the private network environment screen projection method described above, and will not be repeated here.
[0122] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.
[0123] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.
[0124] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0125] The above are only preferred embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for projecting screen in a private network environment, characterized in that: Applied to a converged set-top box, the converged set-top box includes an optical modem system, and the private network environment projection method includes the following steps: When a screen projection instruction is detected, the instruction key value in the screen projection instruction is extracted and matched with the preset key value library. After the match is successful, a screen projection connection account and a screen projection connection password are randomly generated, and the screen projection connection account and the screen projection connection password are sent to the network management platform for the network management platform to update the screen projection connection information. The network management platform is the optical modem system; After the projection connection information is successfully updated, the service mode of the converged set-top box is switched from bridge mode to routing mode through the network management platform; connecting the converged set-top box to a public network in the routing mode; Establishing a screen projection connection channel with the device to be projected based on the screen projection connection information in a public network environment, so that the device to be projected can project the screen; When detecting that the screen projection connection channel is disconnected, sending a port binding message to the network management platform; Binding the unbound network port according to the port binding message to switch the converged set-top box from the routing mode back to the bridge mode; Disconnect the network configuration port connected to the public network and connect it to the private network.
2. The method for projecting screen in a private network environment according to claim 1, wherein: The step of extracting the command key value in the screen projection command and matching it with the preset key value library, and randomly generating a screen projection connection account and a screen projection connection password after the match is successful includes: Extracting a command key value from the screen casting command, and if the command key value matches a target key value in a preset key value library, determining that the screen casting command is detected; According to the screen projection instruction, the generation program is triggered to randomly generate a screen projection connection account and a screen projection connection password.
3. The method for projecting screen in a private network environment according to claim 1, wherein: The step of switching the service mode of the converged set-top box from a bridge mode to a routing mode through the network management platform includes: Sending a port unbinding message to the network management platform through a communication connection with the network management platform; The bound network port is unbound according to the port unbinding message, so as to switch the converged set-top box from a bridge mode to a routing mode.
4. The method for projecting screen in a private network environment according to claim 1, wherein: The step of connecting the converged set-top box to the public network in the routing mode includes: Disconnect the network authentication connection in the private network environment; The network configuration port is called to perform network configuration dialing, obtain the assigned network address, and use the network address to connect to the public network.
5. The method for projecting screen in a private network environment according to claim 1, wherein: The step of establishing a screen projection connection channel with the device to be projected based on the screen projection connection information in a public network environment for the device to be projected to project the screen includes: Convert the screen projection connection information into screen projection prompt information, and display the screen projection prompt information based on a display device connected to the converged set-top box; Establish a screen projection connection channel with the device to be projected according to the screen projection prompt information, and receive the screen projection data sent by the device to be projected based on the screen projection connection channel.
6. The method for projecting screen in a private network environment according to claim 1, wherein: After the step of detecting that the screen projection connection channel is disconnected, the method further includes: Control the connected display device to return from the screen casting page to the screen casting prompt page, wherein the screen casting prompt page includes the screen casting identification information; When the screen projection prompt page detects a screen projection end instruction, the step of sending a port binding message to the network management platform is executed.
7. A screen projection device in a private network environment, characterized in that: Applied to a converged set-top box, the converged set-top box includes an optical modem system, and the private network environment projection device includes: A generation module is used to extract the command key value in the screen casting command and match it with the preset key value library when a screen casting command is detected. After a successful match, a screen casting connection account and a screen casting connection password are randomly generated, and the screen casting connection account and the screen casting connection password are sent to the network management platform for the network management platform to update the screen casting connection information. The network management platform is the optical modem system; A switching module, configured to switch the service mode of the converged set-top box from a bridge mode to a routing mode through the network management platform after the projection connection information is successfully updated; A connection module, configured to connect the converged set-top box to a public network in the routing mode; An establishment module is used to establish a screen projection connection with the device to be projected based on the screen projection connection information in a public network environment, so that the device to be projected can project the screen; The return module is used to send a port binding message to the network management platform when it detects that the projection connection channel is disconnected; bind the unbound network port according to the port binding message to switch the converged set-top box from routing mode back to bridge mode; disconnect the network configuration port connected to the public network and connect it to the private network.
8. An electronic device, characterized in that: The electronic device includes: a memory, a processor, and a private network environment screen projection program stored in the memory and runnable on the processor, wherein the private network environment screen projection program is configured to implement the steps of the private network environment screen projection method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a private network environment screen projection program, and when the private network environment screen projection program is executed by the processor, the steps of the private network environment screen projection method as described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Screen projection method, device, storage medium and computer equipment
CN110515572A