Wireless network connection and screen projection method and system based on television
By generating and displaying graphic codes on the TV, including TV keys and WIFI information, the problem of incorrect password input when the mobile phone connects to the TV hotspots, screen projections and routers, and convenient wireless network connections and screen projections are achieved.
Patent Information
- Application Number
- CN202411801525.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-03-25
AI Technical Summary
In the prior art, when a mobile phone connects to a TV hotspot, screen projection and router, it is easy to make mistakes when entering a password, which causes inconvenience to users.
The TV key is generated based on the TV's WIFI module MAC address, device SN number, and current date and time, and encoded into a graphic code to display it on the TV screen. The mobile terminal scans the graphics code to obtain the WIFI information transmission packet, and controls the mobile terminal to connect the TV hotspot, Miracast screen projection or router WIFI connection according to the selected mode and WIFI information.
It solves the problem that the password is prone to errors when connecting to TV hotspots, screen projections and routers on your mobile phone, and realizes convenient, efficient and fast wireless network connections and screen projections, which are especially suitable for users who are not good at using mobile phones.
Smart Images

Figure CN119697423A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless local area network communication technology, and in particular to a television-based wireless network connection and screen projection method, system, television and computer-readable storage medium. Background Art
[0002] With the development of smart devices, more and more smart devices can connect to WIFI (Wireless Fidelity) networks and send data to servers or other devices through WIFI networks. The existing WIFI connection method is: search for WIFI hotspots around, display the searched WIFI hotspots on the display screen of the smart device, and after the user selects a WIFI hotspot, enter the password through the display screen, and the WIFI hotspot verifies that the password is correct and establishes a WIFI connection with the requesting smart device.
[0003] Among them, TV and router have become an indispensable part in modern home entertainment scenarios. At present, when a mobile phone connects to a TV hotspot, casts a screen, or connects to a router, it is necessary to check the target AP in the WIFI list and enter the password. It is easy to enter the wrong password, which brings inconvenience to users who are not good at using mobile phones.
[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0005] The main purpose of the present invention is to provide a television-based wireless network connection and screen projection method, system, television and computer-readable storage medium, aiming to solve the problem in the prior art that when a mobile phone is connected to a TV hotspot, screen projection and connected to a router, it is easy to make mistakes in entering the password, causing inconvenience to the user.
[0006] To achieve the above-mentioned purpose, the present invention provides a wireless network connection and screen projection method based on a television, and the wireless network connection and screen projection method based on a television comprises:
[0007] Generate a TV key through a key generation algorithm according to the WIFI module MAC address of the TV, the device SN number and the current date and time;
[0008] Generate a graphic code according to the WIFI name, WIFI password and WIFI encryption type corresponding to different modes and the TV key, and display it on the TV screen, wherein the modes include TV hotspot connection mode, Miracast screen projection mode and router WIFI connection mode;
[0009] The WIFI information transmission packet carried by the graphic code is provided to the mobile terminal that scans the graphic code to control the mobile terminal to connect to a TV hotspot, Miracast screen projection or router WIFI connection according to the selected mode and the WIFI information in the WIFI information transmission packet.
[0010] Optionally, the step of generating a TV key by a key generation algorithm according to the WIFI module MAC address of the TV, the device SN number and the current date and time, further comprises:
[0011] At set intervals, the current date and time are updated, and a new TV key is generated through a key generation algorithm based on the WIFI module MAC address, device SN number, and the new current date and time;
[0012] Wherein, the key generation algorithm includes the MD5 algorithm.
[0013] Optionally, the step of generating a graphic code according to the WIFI name, WIFI password and WIFI encryption type corresponding to different modes and the TV key, and displaying the graphic code on the TV screen, specifically includes:
[0014] Generate a graphic code according to the WIFI name, WIFI password and WIFI encryption type corresponding to the TV hotspot connection mode, the Miracast screen projection mode and the router WIFI connection mode, and the TV key corresponding to the current date and time, and display the graphic code on the TV screen;
[0015] At set intervals, a new graphic code is generated by combining the WIFI name, WIFI password and WIFI encryption type corresponding to the TV hotspot connection mode, the Miracast screen projection mode and the router WIFI connection mode, and a new TV key corresponding to the new current date and time, and the graphic code displayed on the TV screen is controlled to be refreshed according to the new graphic code;
[0016] Wherein, the graphic code includes a QR code or a bar code.
[0017] Optionally, providing a WIFI information transmission package carried by the graphic code to a mobile terminal that scans the graphic code specifically includes:
[0018] Providing a WIFI information transmission package carried by the graphic code to a mobile terminal that scans the graphic code;
[0019] Providing the mobile terminal with selectable modes including TV hotspot connection mode, Miracast screen projection mode and router WIFI connection mode;
[0020] The format of the WIFI information transmission packet is: KEY: TV key; DATA: data packet; the format of the DATE data packet is: TYPE: mode; SSID: WIFI name; PASSWORD: WIFI password; SECURITY: WIFI encryption type;
[0021] Among them, the modes include TV hotspot connection mode, Miracast screen projection mode and router WIFI connection mode; the WIFI name includes the WIFI names corresponding to the TV hotspot connection mode, the Miracast screen projection mode and the router WIFI connection mode; the WIFI password includes the WIFI passwords corresponding to the TV hotspot connection mode, the Miracast screen projection mode and the router WIFI connection mode; the WIFI encryption type includes the WIFI encryption type corresponding to the TV hotspot connection mode, the Miracast screen projection mode and the router WIFI connection mode.
[0022] Optionally, controlling the mobile terminal to perform TV hotspot connection, Miracast screen projection or router WIFI connection according to the selected mode and the WIFI information in the WIFI information transmission packet specifically includes:
[0023] If the selected mode is the TV hotspot connection mode, control the mobile terminal to connect to the TV hotspot according to the WIFI name, WIFI password and WIFI encryption type corresponding to the TV hotspot connection mode in the WIFI information transmission packet;
[0024] The TV establishes a socket connection with the mobile terminal, receives the TV key corresponding to the current date and time in the WIFI information transmission packet sent by the mobile terminal, performs TV hotspot connection request authentication according to the TV key, and determines whether the TV key is correct;
[0025] If the TV key is correct, the TV hotspot connection request is approved, and the network access permission is granted to the mobile terminal;
[0026] If the TV key is wrong, the TV hotspot connection request is rejected and the connection between the mobile terminal and the TV hotspot is disconnected.
[0027] Optionally, controlling the mobile terminal to perform TV hotspot connection, Miracast screen projection or router WIFI connection according to the selected mode and the WIFI information in the WIFI information transmission packet specifically includes:
[0028] If the selected mode is Miracast screen mode, control the mobile terminal to connect to the Miracast hotspot according to the WIFI name, WIFI password and WIFI encryption type corresponding to the Miracast screen mode in the WIFI information transmission package;
[0029] The TV establishes a socket connection with the mobile terminal, receives the TV key corresponding to the current date and time in the WIFI information transmission package sent by the mobile terminal, performs Miracast screen projection request authentication according to the TV key, and determines whether the TV key is correct;
[0030] If the TV key is correct, the Miracast screen projection request is approved and the Miracast screen projection negotiation process is carried out;
[0031] If the TV key is incorrect, the Miracast screen projection request is rejected and the connection between the mobile terminal and the Miracast hotspot is disconnected.
[0032] Optionally, controlling the mobile terminal to perform TV hotspot connection, Miracast screen projection or router WIFI connection according to the selected mode and the WIFI information in the WIFI information transmission packet specifically includes:
[0033] If the selected mode is the router WIFI connection mode, control the mobile terminal to connect to the router WIFI according to the WIFI name, WIFI password and WIFI encryption type corresponding to the router WIFI connection mode in the WIFI information transmission packet;
[0034] If the WIFI information transmission packet contains information of multiple router WIFIs, the router WIFI selected by the mobile terminal is received, and the mobile terminal is connected to the selected router WIFI.
[0035] To achieve the above-mentioned purpose, the present invention further provides a wireless network connection and screen projection system based on television, and the wireless network connection and screen projection system based on television comprises:
[0036] TV key generation module: used to generate a TV key through a key generation algorithm according to the WIFI module MAC address, device SN number and current date and time;
[0037] Graphic code generation module: used to generate a graphic code according to the WIFI name, WIFI password and WIFI encryption type corresponding to different modes and the TV key, and display it on the TV screen, wherein the modes include TV hotspot connection mode, Miracast screen projection mode and router WIFI connection mode;
[0038] WIFI connection and screen projection module: used to provide the WIFI information transmission package carried by the graphic code to the mobile terminal that scans the graphic code, so as to control the mobile terminal to connect to the TV hotspot, Miracast screen projection or router WIFI connection according to the selected mode and the WIFI information in the WIFI information transmission package.
[0039] In order to achieve the above-mentioned purpose of the invention, the present invention also provides a television, which includes: a memory, a processor, and a television-based wireless network connection and screen projection program stored in the memory and runnable on the processor, and the television-based wireless network connection and screen projection program, when executed by the processor, implements the steps of the television-based wireless network connection and screen projection method as described above.
[0040] In order to achieve the above-mentioned purpose of the invention, the present invention also provides a computer-readable storage medium, which stores a television-based wireless network connection and screen projection program. When the television-based wireless network connection and screen projection program is executed by a processor, the steps of the television-based wireless network connection and screen projection method as described above are implemented.
[0041] In the present invention, according to the WIFI module MAC address (Media Access Control Address, hardware address), device SN number (Serial Number, product sequence) and current date and time of the TV, a TV key is generated by a key generation algorithm (Message-Digest Algorithm 5, message-digest algorithm fifth edition); a graphic code is generated according to the WIFI name, WIFI password and WIFI encryption type corresponding to different modes and the TV key, and displayed on the TV screen, wherein the mode includes a TV hotspot connection mode, a Miracast screen mode and a router WIFI connection mode; a WIFI information transmission packet carried by the graphic code is provided to a mobile terminal that scans the graphic code to control the mobile terminal to perform TV hotspot connection, Miracast screen projection or router WIFI connection according to the selected mode and the WIFI information in the WIFI information transmission packet. The present invention can complete the connection of TV WIFI hotspot, TV Miracast screen projection or router WIFI by scanning the graphic code by the mobile terminal, which is convenient, efficient and fast, and solves the problem that it is easy to make mistakes when entering passwords when the current mobile phone is connected to the TV hotspot, screen projection and router connection, and brings convenience to users who are not good at using mobile phones. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a flow chart of a preferred embodiment of the wireless network connection and screen projection method based on television of the present invention;
[0043] Figure 2 is a flow chart of a TV hotspot connection mode of the present invention;
[0044] Figure 3 It is a flow chart of the Miracast screen projection mode of the present invention;
[0045] Figure 4 It is a flow chart of the WIFI connection mode of the router of the present invention;
[0046] Figure 5 It is a structural diagram of a preferred embodiment of a wireless network connection and screen projection system based on television of the present invention;
[0047] Figure 6 It is a structural diagram of a preferred embodiment of the television of the present invention. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0049] With the development of smart devices, more and more smart devices can connect to WIFI networks and send data to servers or other devices through WIFI networks. The existing WIFI connection method is: search for WIFI hotspots in the surrounding area, display the searched WIFI hotspots on the smart device display, and after the user selects a WIFI hotspot, enter the password through the display. After the WIFI hotspot verifies that the password is correct, it will establish a WIFI connection with the requesting smart device. Among them, TVs and routers have become an indispensable part of modern home entertainment scenarios. At present, when a mobile phone connects to a TV hotspot, casts the screen, and connects to a router, it is necessary to view the target AP in the WIFI list and enter the password. It is easy to enter the wrong password, which brings inconvenience to users who are not good at using mobile phones.
[0050] In order to solve the above technical problems, the present invention provides a wireless network connection and screen projection method based on television, generating a television key through a key generation algorithm according to the WIFI module MAC address of the television, the device SN number and the current date and time; generating a graphic code according to the WIFI name, WIFI password and WIFI encryption type corresponding to different modes and the television key, and displaying it on the television screen, wherein the modes include TV hotspot connection mode, Miracast screen projection mode and router WIFI connection mode; providing a WIFI information transmission packet carried by the graphic code to a mobile terminal that scans the graphic code, so as to control the mobile terminal to perform TV hotspot connection, Miracast screen projection or router WIFI connection according to the selected mode and the WIFI information in the WIFI information transmission packet. The present invention can complete the connection of the TV WIFI hotspot, TV Miracast screen projection or router WIFI by scanning the graphic code by the mobile terminal, which is convenient, efficient and fast, and solves the problem that it is easy to make mistakes when entering passwords when the mobile phone is connected to the TV hotspot, screen projection and router connection, and brings convenience to users who are not good at using mobile phones.
[0051] The application content is further explained below through the description of embodiments in conjunction with the accompanying drawings.
[0052] The preferred embodiment of the wireless network connection and screen projection method based on television of the present invention is as follows: Figure 1 As shown, specifically including:
[0053] S1: Generate a TV key through a key generation algorithm according to the WIFI module MAC address of the TV, the device SN number and the current date and time.
[0054] In an implementation of this embodiment, the TV key is generated by a key generation algorithm according to the MAC address of the TV's WIFI module, the device SN number, and the current date and time, and then further includes:
[0055] At set intervals, the current date and time are updated, and a new TV key is generated through a key generation algorithm based on the WIFI module MAC address, device SN number, and the new current date and time;
[0056] Wherein, the key generation algorithm includes the MD5 algorithm.
[0057] Specifically, the TV key is generated for authentication through the MD5 algorithm according to the WIFI module MAC address of the TV, the device SN number and the current date and time, thereby improving security. Every 60 seconds, the TV reacquires the current date and time, and generates the TV key through the MD5 algorithm. Among them, the specific process of the MD5 algorithm includes: taking the WIFI module MAC address, the device SN number and the current date and time as input data, performing a filling process on the input data, and the input data after the filling process includes multiple data packets; each of the data packets is divided into multiple byte blocks, and the initial values of the link variables a, b, c and d are set; a function is used to perform step-by-step operations on the multiple byte blocks into which each of the data packets is divided, and the final values of the link variables a, b, c and d are obtained; the final values of the link variables a, b, c and d are respectively added modulo 32 bits with their respective corresponding initial values to obtain the MD5 code, and the MD5 code is used as the TV key. The MD5 algorithm is a prior art, and this application will not be elaborated in detail.
[0058] S2: Generate a graphic code according to the WIFI name, WIFI password and WIFI encryption type corresponding to different modes and the TV key, and display it on the TV screen, wherein the modes include TV hotspot connection mode, Miracast projection mode and router WIFI connection mode.
[0059] In an implementation of this embodiment, the generating of a graphic code according to the WIFI name, WIFI password and WIFI encryption type corresponding to different modes and the TV key and displaying it on the TV screen specifically includes:
[0060] Generate a graphic code according to the WIFI name, WIFI password and WIFI encryption type corresponding to the TV hotspot connection mode, the Miracast screen projection mode and the router WIFI connection mode, and the TV key corresponding to the current date and time, and display the graphic code on the TV screen;
[0061] At set intervals, a new graphic code is generated by combining the WIFI name, WIFI password and WIFI encryption type corresponding to the TV hotspot connection mode, the Miracast screen projection mode and the router WIFI connection mode, and a new TV key corresponding to the new current date and time, and the graphic code displayed on the TV screen is controlled to be refreshed according to the new graphic code;
[0062] Wherein, the graphic code includes a QR code and a bar code.
[0063] Specifically, the TV starts the WIFI hotspot and Miracast GO (Group Own), generates a graphic code with the WIFI name, WIFI password, WIFI encryption type and TV key of the three modes of TV hotspot connection, Miracast screen projection and router WIFI connection, and displays it on the TV screen. And every 60 seconds, the TV re-obtains the current date and time to generate the TV key through the MD5 algorithm, and refreshes the graphic code on the TV screen. All information has been stored in the graphic code, and the mobile phone (the mobile terminal mentioned above) obtains the information through the graphic code.
[0064] It should be noted that in the present invention, the mobile terminal includes a mobile phone, an IPAD, etc., and this embodiment is described by taking a mobile phone as an example. Among them, the TV hotspot connection mode refers to the mobile phone connecting to the TV's WIFI hotspot to access the Internet, which is a situation where the TV shares WIFI; the Miracast screen projection mode refers to the screen projection of the mobile phone screen content to the TV screen through the Miracast protocol; the router WIFI connection mode (i.e., WIFI sharing mode or WIFI information sharing mode) refers to the mobile phone connecting to the router WIFI that the TV has saved, that is, the TV shares the saved router WIFI, which is another situation where the TV shares WIFI. Miracast is a screen projection protocol, which defines two roles: Group Owner and Group Client. Here, the TV starts Miracast screen projection and acts as Group Owner, waiting for other devices to join.
[0065] S3: Provide the WIFI information transmission package carried by the graphic code to the mobile terminal that scans the graphic code, so as to control the mobile terminal to connect to a TV hotspot, Miracast screen projection or router WIFI according to the selected mode and the WIFI information in the WIFI information transmission package.
[0066] In an implementation of this embodiment, providing the WIFI information transmission packet carried by the graphic code to the mobile terminal that scans the graphic code specifically includes:
[0067] Providing a WIFI information transmission package carried by the graphic code to a mobile terminal that scans the graphic code;
[0068] Providing the mobile terminal with selectable modes including TV hotspot connection mode, Miracast screen projection mode and router WIFI connection mode;
[0069] The format of the WIFI information transmission packet is: KEY: TV key; DATA: data packet; the format of the DATE data packet is: TYPE: mode; SSID: WIFI name; PASSWORD: WIFI password; SECURITY: WIFI encryption type;
[0070] Among them, the modes include TV hotspot connection mode, Miracast screen projection mode and router WIFI connection mode; the WIFI name includes the WIFI names corresponding to the TV hotspot connection mode, the Miracast screen projection mode and the router WIFI connection mode; the WIFI password includes the WIFI passwords corresponding to the TV hotspot connection mode, the Miracast screen projection mode and the router WIFI connection mode; the WIFI encryption type includes the WIFI encryption type corresponding to the TV hotspot connection mode, the Miracast screen projection mode and the router WIFI connection mode.
[0071] Specifically, the mobile phone scans the graphic code on the TV screen through the camera, parses the graphic code to obtain information, that is, obtains the WIFI information transmission package. The mobile phone screen displays three modes for users to choose: TV hotspot connection, Miracast screen projection and router WIFI connection.
[0072] In an implementation of this embodiment, controlling the mobile terminal to perform TV hotspot connection, Miracast screen projection or router WIFI connection according to the selected mode and the WIFI information in the WIFI information transmission packet specifically includes:
[0073] If the selected mode is the TV hotspot connection mode, control the mobile terminal to connect to the TV hotspot according to the WIFI name, WIFI password and WIFI encryption type corresponding to the TV hotspot connection mode in the WIFI information transmission packet;
[0074] The TV establishes a socket connection with the mobile terminal, receives the TV key corresponding to the current date and time in the WIFI information transmission packet sent by the mobile terminal, performs TV hotspot connection request authentication according to the TV key, and determines whether the TV key is correct;
[0075] If the TV key is correct, the TV hotspot connection request is approved, and the network access permission is granted to the mobile terminal;
[0076] If the TV key is wrong, the TV hotspot connection request is rejected and the connection between the mobile terminal and the TV hotspot is disconnected.
[0077] Specifically, Figure 2 As shown, the user clicks on the mobile phone to select the TV hotspot connection mode (i.e. Figure 2 In mode A), the mobile phone obtains the TV key from the KEY tag of the WIFI information transmission packet, obtains the WIFI name from the SSID tag, obtains the WIFI password from the PASSWORD tag, and obtains the WIFI encryption type from the SECURITY tag. The mobile phone connects to the TV hotspot based on the obtained WIFI information. The mobile phone establishes a socket connection with the TV and sends the TV key obtained from the WIFI information transmission packet to the TV for authentication. The TV determines whether the TV key is correct. If the TV key is correct, it opens the access to the network to the mobile phone; if the TV key is wrong, it disconnects the WIFI connection with the mobile phone, that is, disconnects the connection between the TV hotspot and the mobile phone.
[0078] In an implementation of this embodiment, controlling the mobile terminal to perform TV hotspot connection, Miracast screen projection or router WIFI connection according to the selected mode and the WIFI information in the WIFI information transmission packet specifically includes:
[0079] If the selected mode is Miracast screen mode, control the mobile terminal to connect to the Miracast hotspot according to the WIFI name, WIFI password and WIFI encryption type corresponding to the Miracast screen mode in the WIFI information transmission package;
[0080] The TV establishes a socket connection with the mobile terminal, receives the TV key corresponding to the current date and time in the WIFI information transmission package sent by the mobile terminal, performs Miracast screen projection request authentication according to the TV key, and determines whether the TV key is correct;
[0081] If the TV key is correct, the Miracast screen projection request is approved and the Miracast screen projection negotiation process is carried out;
[0082] If the TV key is incorrect, the Miracast screen projection request is rejected and the connection between the mobile terminal and the Miracast hotspot is disconnected.
[0083] Specifically, Figure 3 As shown, the user clicks on the phone to select Miracast screen mode (i.e. TV screen mode, Figure 3In mode B), the mobile phone obtains the TV key from the KEY tag of the WIFI information transmission package, obtains the WIFI name from the SSID tag, obtains the WIFI password from the PASSWORD tag, and obtains the WIFI encryption type from the SECURITY tag. The mobile phone connects to the Miracast hotspot based on the obtained WIFI information. The mobile phone establishes a socket connection with the TV, and sends the TV key obtained from the WIFI information transmission package to the TV for screen projection request authentication. The TV determines whether the TV key is correct. If the TV key is correct, it agrees to the screen projection request of the mobile phone and performs the Miracast negotiation process; if the TV key is incorrect, it rejects the screen projection request of the mobile phone and disconnects the WIFI connection with the mobile phone, that is, disconnects the connection between the Miracast hotspot and the mobile phone.
[0084] It should be noted that Miracast hotspot: When the TV starts Miracast Group Own, a WIFI hotspot will be created. The mobile phone will project the screen to the TV through the Miracast protocol. The mobile phone will connect to the WIFI hotspot, communicate data with the TV and negotiate the projection. This WIFI hotspot is called Miracast hotspot. TV hotspot: usually refers to the WIFI hotspot started by hostapd. After the mobile phone is connected, it can access the Internet.
[0085] In an implementation of this embodiment, controlling the mobile terminal to perform TV hotspot connection, Miracast screen projection or router WIFI connection according to the selected mode and the WIFI information in the WIFI information transmission packet specifically includes:
[0086] If the selected mode is the router WIFI connection mode, control the mobile terminal to connect to the router WIFI according to the WIFI name, WIFI password and WIFI encryption type corresponding to the router WIFI connection mode in the WIFI information transmission packet;
[0087] If the WIFI information transmission packet contains information of multiple router WIFIs, the router WIFI selected by the mobile terminal is received, and the mobile terminal is connected to the selected router WIFI.
[0088] Specifically, Figure 4 As shown, the user clicks on the mobile phone to select the router WIFI connection mode (i.e. WIFI sharing mode or WIFI information sharing mode, Figure 4 In mode C), the mobile phone uses the router WIFI name, WIFI password and WIFI encryption type parsed from the graphic code (such as a QR code) to connect to the router WIFI. When there are multiple router WIFI information, the mobile phone can select the router WIFI to connect to and connect.
[0089] In addition, in order to make the technical solution of the present invention clearer, Examples 1 and 2 (taking QR code as an example) are provided to illustrate the present invention, specifically including:
[0090] Embodiment 1:
[0091] Scenario description: The user wants to use a mobile phone in a conference room and wants to connect to the TV's WIFI hotspot.
[0092] Steps:
[0093] 1. Enable WIFI hotspot and Miracast GO when the TV is turned on;
[0094] 2. The TV generates a dynamically changing TV key using the MD5 algorithm based on the MAC address of the built-in WIFI module, the device SN number, and the current date and time;
[0095] 3. The TV generates a QR code with the WIFI name, WIFI password, WIFI encryption type and TV key of the three modes of TV hotspot connection, Miracast screen projection and router WIFI connection, and displays it on the TV screen;
[0096] 4. Every 60 seconds, the TV updates the current date and time, regenerates the TV key, and refreshes the QR code on the screen;
[0097] 5. The user opens the mobile phone camera and scans the QR code on the TV screen to obtain the TV key and WIFI information;
[0098] 6. When the phone displays three modes to choose from, namely TV hotspot connection, Miracast screen projection and router WIFI connection, the user clicks to select the TV hotspot connection mode;
[0099] 7. The mobile phone uses the parsed WIFI information (here refers to the TV hotspot information) to connect to the TV hotspot;
[0100] 8. The mobile phone establishes a socket connection with the TV and sends the TV key to the TV for authentication;
[0101] 9. After the TV verifies that the TV key is correct, it opens network access rights to the user's mobile phone, and the user can use the mobile phone to access the network.
[0102] Embodiment 2:
[0103] Scenario description: At a family gathering, the user wants to project photos and videos on the mobile phone to the TV to share with family members.
[0104] Steps:
[0105] 1. The pre-processing steps are the same as those in Example 1 and will not be described in detail.
[0106] 2. The phone displays three modes to choose from: TV hotspot connection, Miracast screen projection and router WIFI connection. The user clicks to select Miracast screen projection mode;
[0107] 3. The phone uses the parsed WIFI information (here refers to the Miracast hotspot information) to connect to the Miracast hotspot;
[0108] 4. The mobile phone establishes a socket connection with the TV and sends the TV key to the TV for authentication;
[0109] 5. After the TV verifies that the TV key is correct, the Miracast negotiation process begins and the user successfully projects the content displayed on the mobile phone screen to the TV.
[0110] In addition, based on the above-mentioned wireless network connection and screen projection method based on television, the present invention also provides a wireless network connection and screen projection system based on television, wherein a preferred embodiment of the wireless network connection and screen projection system based on television is as follows: Figure 5 As shown, specifically including:
[0111] TV key generation module 01: used to generate a TV key through a key generation algorithm according to the WIFI module MAC address of the TV, the device SN number and the current date and time;
[0112] Graphic code generation module 02: used to generate a graphic code according to the WIFI name, WIFI password and WIFI encryption type corresponding to different modes and the TV key, and display it on the TV screen, wherein the modes include TV hotspot connection mode, Miracast screen projection mode and router WIFI connection mode;
[0113] WIFI connection and screen projection module 03: used to provide the WIFI information transmission package carried by the graphic code to the mobile terminal that scans the graphic code, so as to control the mobile terminal to connect to the TV hotspot, Miracast screen projection or router WIFI connection according to the selected mode and the WIFI information in the WIFI information transmission package.
[0114] In addition, based on the above-mentioned wireless network connection and screen projection method and system based on television, the present invention also provides a television accordingly, wherein a preferred embodiment of the television is as follows: Figure 6 As shown, it specifically includes a processor 10, a memory 20 and a display 30. Figure 6 Only some of the components of the television are shown, but it should be understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.
[0115] In some embodiments, the memory 20 may be an internal storage unit of the TV, such as a hard disk or memory of the TV. In other embodiments, the memory 20 may also be an external storage device of the TV, such as a plug-in hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, and a flash card (FlashCard) equipped on the TV. Furthermore, the memory 20 may also include both an internal storage unit of the TV and an external storage device. The memory 20 is used to store application software and various types of data installed on the TV, such as storing program codes of the TV. The memory 20 can also be used to temporarily store data that has been output or is to be output. In one embodiment, a wireless network connection and screen projection program 40 based on a TV is stored on the memory 20, and the wireless network connection and screen projection program 40 based on a TV can be executed by the processor 10, thereby realizing the steps of the wireless network connection and screen projection method based on a TV in the present application.
[0116] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run program codes or process data stored in the memory 20, such as executing a television-based wireless network connection and screen projection program 40.
[0117] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the television and to display a visual user interface.
[0118] In one embodiment, when the processor 10 executes the television-based wireless network connection and screen projection program 40 in the memory 20, the steps of the television-based wireless network connection and screen projection method as described above are implemented.
[0119] The present invention also provides a computer-readable storage medium accordingly, wherein the computer-readable storage medium stores a television-based wireless network connection and screen projection program, and when the television-based wireless network connection and screen projection program is executed by a processor, the steps of the television-based wireless network connection and screen projection method as described above are implemented.
[0120] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or television 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 television. In the absence of more restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or television including the element.
[0121] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.
[0122] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A wireless network connection and screen projection method based on television, characterized in that: The television-based wireless network connection and screen projection method includes: Generate a TV key through a key generation algorithm according to the WIFI module MAC address of the TV, the device SN number and the current date and time; Generate a graphic code according to the WIFI name, WIFI password and WIFI encryption type corresponding to different modes and the TV key, and display it on the TV screen, wherein the modes include TV hotspot connection mode, Miracast screen projection mode and router WIFI connection mode; The WIFI information transmission packet carried by the graphic code is provided to the mobile terminal that scans the graphic code to control the mobile terminal to connect to a TV hotspot, Miracast screen projection or router WIFI connection according to the selected mode and the WIFI information in the WIFI information transmission packet.
2. The wireless network connection and screen projection method based on television according to claim 1, characterized in that: The method further comprises: generating a TV key by a key generation algorithm according to the WIFI module MAC address of the TV, the device SN number and the current date and time; and then: At set intervals, the current date and time are updated, and a new TV key is generated through a key generation algorithm based on the WIFI module MAC address, device SN number, and the new current date and time; Wherein, the key generation algorithm includes the MD5 algorithm.
3. The wireless network connection and screen projection method based on television according to claim 2, characterized in that: The method generates a graphic code according to the WIFI name, WIFI password and WIFI encryption type corresponding to different modes and the TV key, and displays it on the TV screen, specifically including: Generate a graphic code according to the WIFI name, WIFI password and WIFI encryption type corresponding to the TV hotspot connection mode, the Miracast screen projection mode and the router WIFI connection mode, and the TV key corresponding to the current date and time, and display the graphic code on the TV screen; At set intervals, a new graphic code is generated by combining the WIFI name, WIFI password and WIFI encryption type corresponding to the TV hotspot connection mode, the Miracast screen projection mode and the router WIFI connection mode, and a new TV key corresponding to the new current date and time, and the graphic code displayed on the TV screen is controlled to be refreshed according to the new graphic code; Wherein, the graphic code includes a QR code or a bar code.
4. The wireless network connection and screen projection method based on television according to claim 1, characterized in that: The providing the WIFI information transmission package carried by the graphic code to the mobile terminal that scans the graphic code specifically includes: Providing a WIFI information transmission package carried by the graphic code to a mobile terminal that scans the graphic code; Providing the mobile terminal with selectable modes including TV hotspot connection mode, Miracast screen projection mode and router WIFI connection mode; The format of the WIFI information transmission packet is: KEY: TV key; DATA: data packet; the format of the DATE data packet is: TYPE: mode; SSID: WIFI name; PASSWORD: WIFI password; SECURITY: WIFI encryption type; Among them, the modes include TV hotspot connection mode, Miracast screen projection mode and router WIFI connection mode; the WIFI name includes the WIFI names corresponding to the TV hotspot connection mode, the Miracast screen projection mode and the router WIFI connection mode; the WIFI password includes the WIFI passwords corresponding to the TV hotspot connection mode, the Miracast screen projection mode and the router WIFI connection mode; the WIFI encryption type includes the WIFI encryption type corresponding to the TV hotspot connection mode, the Miracast screen projection mode and the router WIFI connection mode.
5. The TV-based wireless network connection and screen projection method according to claim 4, characterized in that: The controlling the mobile terminal to perform TV hotspot connection, Miracast screen projection or router WIFI connection according to the selected mode and the WIFI information in the WIFI information transmission packet specifically includes: If the selected mode is the TV hotspot connection mode, control the mobile terminal to connect to the TV hotspot according to the WIFI name, WIFI password and WIFI encryption type corresponding to the TV hotspot connection mode in the WIFI information transmission packet; The TV establishes a socket connection with the mobile terminal, receives the TV key corresponding to the current date and time in the WIFI information transmission packet sent by the mobile terminal, performs TV hotspot connection request authentication according to the TV key, and determines whether the TV key is correct; If the TV key is correct, the TV hotspot connection request is approved, and the network access permission is granted to the mobile terminal; If the TV key is wrong, the TV hotspot connection request is rejected and the connection between the mobile terminal and the TV hotspot is disconnected.
6. The TV-based wireless network connection and screen projection method according to claim 4, characterized in that: The controlling the mobile terminal to perform TV hotspot connection, Miracast screen projection or router WIFI connection according to the selected mode and the WIFI information in the WIFI information transmission packet specifically includes: If the selected mode is Miracast screen mode, control the mobile terminal to connect to the Miracast hotspot according to the WIFI name, WIFI password and WIFI encryption type corresponding to the Miracast screen mode in the WIFI information transmission package; The TV establishes a socket connection with the mobile terminal, receives the TV key corresponding to the current date and time in the WIFI information transmission package sent by the mobile terminal, performs Miracast screen projection request authentication according to the TV key, and determines whether the TV key is correct; If the TV key is correct, the Miracast screen projection request is approved and the Miracast screen projection negotiation process is carried out; If the TV key is incorrect, the Miracast screen projection request is rejected and the connection between the mobile terminal and the Miracast hotspot is disconnected.
7. The TV-based wireless network connection and screen projection method according to claim 4, characterized in that: The controlling the mobile terminal to perform TV hotspot connection, Miracast screen projection or router WIFI connection according to the selected mode and the WIFI information in the WIFI information transmission packet specifically includes: If the selected mode is the router WIFI connection mode, control the mobile terminal to connect to the router WIFI according to the WIFI name, WIFI password and WIFI encryption type corresponding to the router WIFI connection mode in the WIFI information transmission packet; If the WIFI information transmission packet contains information of multiple router WIFIs, the router WIFI selected by the mobile terminal is received, and the mobile terminal is connected to the selected router WIFI.
8. A wireless network connection and screen projection system based on television, characterized in that: The television-based wireless network connection and screen projection system includes: TV key generation module: used to generate a TV key through a key generation algorithm according to the WIFI module MAC address of the TV, the device SN number and the current date and time; Graphic code generation module: used to generate a graphic code according to the WIFI name, WIFI password and WIFI encryption type corresponding to different modes and the TV key, and display it on the TV screen, wherein the modes include TV hotspot connection mode, Miracast screen projection mode and router WIFI connection mode; WIFI connection and screen projection module: used to provide the WIFI information transmission package carried by the graphic code to the mobile terminal that scans the graphic code, so as to control the mobile terminal to connect to the TV hotspot, Miracast screen projection or router WIFI connection according to the selected mode and the WIFI information in the WIFI information transmission package.
9. A television, characterized in that: The television includes: a memory, a processor, and a television-based wireless network connection and screen projection program stored in the memory and executable on the processor. When the television-based wireless network connection and screen projection program is executed by the processor, the steps of the television-based wireless network connection and screen projection method as described in any one of claims 1-7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a television-based wireless network connection and screen projection program, which, when executed by a processor, implements the steps of the television-based wireless network connection and screen projection method as described in any one of claims 1-7.