CN111930329A - Screen projection method, device and equipment based on PIN code and storage medium - Google Patents

Screen projection method, device and equipment based on PIN code and storage medium Download PDF

Info

Publication number
CN111930329A
CN111930329A CN202010968322.0A CN202010968322A CN111930329A CN 111930329 A CN111930329 A CN 111930329A CN 202010968322 A CN202010968322 A CN 202010968322A CN 111930329 A CN111930329 A CN 111930329A
Authority
CN
China
Prior art keywords
screen
pin code
projected
screen projection
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010968322.0A
Other languages
Chinese (zh)
Other versions
CN111930329B (en
Inventor
陈锡华
李凌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Happycast Technology Co Ltd
Original Assignee
Shenzhen Happycast Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Happycast Technology Co Ltd filed Critical Shenzhen Happycast Technology Co Ltd
Priority to CN202010968322.0A priority Critical patent/CN111930329B/en
Publication of CN111930329A publication Critical patent/CN111930329A/en
Application granted granted Critical
Publication of CN111930329B publication Critical patent/CN111930329B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/75Information technology; Communication
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/80Homes; Buildings
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y20/00Information sensed or collected by the things
    • G16Y20/20Information sensed or collected by the things relating to the thing itself
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • G16Y40/35Management of things, i.e. controlling in accordance with a policy or in order to achieve specified objectives

Abstract

The invention relates to the field of data screen projection, and discloses a screen projection method, device, equipment and storage medium based on PIN codes. The method comprises the following steps: receiving a PIN code for screen projection verification; analyzing the data of the PIN code, and judging whether the equipment to be screened corresponding to the PIN code is in a public network environment or not; if the screen projection equipment is in a public network environment, establishing a communication channel with a preset public server; if the screen projection equipment is not in the public network environment, establishing a communication channel with the equipment to be projected; and receiving a screen projection request of target data, and displaying the target data in the equipment to be projected through the communication channel.

Description

Screen projection method, device and equipment based on PIN code and storage medium
Technical Field
The invention relates to the field of data screen projection, in particular to a screen projection method, device, equipment and storage medium based on PIN codes.
Background
The concept of the internet of things continuously becomes a reality, objects such as refrigerators, televisions, air conditioners, water heaters, floor sweeping machines and electric lamps are connected with one another through a network, and people can control household appliances through network data. The internet of things enables people to become more and more intelligent in life, and along with the trend of intellectualization, various instrument pointers also begin to become electronic screens. In the process of connecting the automobile to the network, the instrument panel of the automobile is gradually transformed into a whole screen.
Like the dashboard of a car, refrigerators, air conditioners, water heaters, floor sweepers, and electric lights all begin to have their own smart screens. The mutual communication between the screens becomes a new technical field. In the screen projection field, the intelligent terminal and the screen to be projected equipment generally need to be communicated through the Internet to project the screen. However, in the environment lacking in the internet, the screen projection between the intelligent terminal and the device to be projected cannot be realized, and the screen projection problem in the environment lacking in the internet needs to be solved.
Disclosure of Invention
The invention mainly aims to solve the technical problem that a screen cannot be projected between an intelligent terminal and a device to be projected in an environment lacking internet connection.
The invention provides a screen projection method based on PIN codes, which comprises the following steps:
receiving a PIN code for screen projection verification;
analyzing the data of the PIN code, and judging whether the equipment to be screened corresponding to the PIN code is in a public network environment or not;
if the equipment to be projected is in a public network environment, establishing a communication channel with a preset public server;
if the device to be screen-projected is not in the public network environment, establishing a communication channel with the device to be screen-projected;
and receiving a screen projection request of target data, and displaying the target data in the equipment to be projected through the communication channel.
Optionally, in a first implementation manner of the first aspect of the present invention, before the receiving the PIN code for screen projection verification, the method further includes:
receiving a registration request of a device to be screened, wherein the registration request comprises: a screen projection IP address and an equipment port of the equipment to be projected;
and according to a preset conversion algorithm, converting the screen-casting IP address and the equipment port to generate a PIN code, and displaying the PIN code in the equipment to be screen-cast.
Optionally, in a second implementation manner of the first aspect of the present invention, the performing, according to a preset conversion algorithm, conversion processing on the screen-casting IP address and the device port, and generating the PIN code includes:
analyzing the equipment port to obtain a port number;
generating a designated random number according to a preset random number taking function, and performing disassembly calculation on the screen-casting IP address based on the designated random number to obtain a disassembly value set;
and combining the disassembled value set with the port number to generate the PIN code.
Optionally, in a third implementation manner of the first aspect of the present invention, the analyzing the data of the PIN code, and determining whether the device to be screened corresponding to the PIN code is in a public network environment includes:
resolving the PIN code according to a preset inverse conversion algorithm to obtain a screen-casting IP address of the equipment to be screen-cast;
and judging whether the screen-casting IP address belongs to a public network address or not according to a preset IP address distribution rule.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the analyzing the data of the PIN code, and determining whether the device to be screened corresponding to the PIN code is in a public network environment further includes:
judging whether the first numerical value in the PIN code is within a preset limit range;
if the current screen is not within the limit range, the equipment to be screened corresponding to the PIN code is confirmed to be in a public network environment;
and if so, confirming the screen to be projected corresponding to the PIN code as being in a local area network environment.
Optionally, in a fifth implementation manner of the first aspect of the present invention, when the device to be screen-projected is in a public network environment, the receiving a screen-projection request of target data, and displaying the target data in the device to be screen-projected through the communication channel includes:
receiving a screen projection request of target data, and sending the screen projection request to the public server;
receiving state feedback information sent by the public server, and displaying the state feedback information in a preset state display screen, wherein the state feedback information comprises: the target data is displayed in the device to be projected.
Optionally, in a sixth implementation manner of the first aspect of the present invention, when the device to be screen-projected is not in a public network environment, the receiving a screen-projection request of target data, and displaying the target data in the device to be screen-projected through the communication channel includes:
receiving a screen projection request of target data, and sending the screen projection request to the to-be-projected equipment;
receiving state feedback information fed back by the screen to be projected equipment, and displaying the state feedback information in a preset state display screen, wherein the state feedback information comprises: the target data is displayed in the device to be projected.
The invention provides a screen projection device based on PIN code in a second aspect, comprising:
the receiving module is used for receiving a PIN code for screen projection verification;
the judging module is used for analyzing the data of the PIN code and judging whether the equipment to be screened corresponding to the PIN code is in a public network environment or not;
the first communication module is used for establishing a communication channel with a preset public server if the device to be projected is in a public network environment;
the second communication module is used for establishing a communication channel with the device to be screen projected if the device to be screen projected is not in a public network environment;
and the display module is used for receiving a screen projection request of target data and displaying the target data in the equipment to be projected through the communication channel.
The third aspect of the present invention provides a screen projection device based on PIN code, including: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line; the at least one processor invokes the instructions in the memory to cause the PIN code based screen projection device to perform the PIN code based screen projection method described above.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to execute the above-mentioned PIN code-based screen projection method.
Drawings
FIG. 1 is a schematic diagram of a first embodiment of a PIN code-based screen projection method in the embodiment of the invention;
FIG. 2 is a diagram of a second embodiment of a PIN code-based screen projection method according to an embodiment of the present invention;
FIG. 3 is a diagram of a third embodiment of a PIN code-based screen projection method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an embodiment of a PIN code-based screen projection device in the embodiment of the invention;
FIG. 5 is a schematic diagram of another embodiment of a PIN code-based screen projection device in the embodiment of the invention;
FIG. 6 is a schematic diagram of an embodiment of a PIN code-based screen projection device in the embodiment of the invention;
fig. 7 is a schematic diagram of an embodiment of a device registration phase and a device connection phase in an overall embodiment of the invention;
FIG. 8 is a schematic view of one embodiment of a screen projection phase in an overall embodiment of the present invention;
fig. 9 is a schematic diagram of an embodiment of ending the screen-projecting phase in the overall embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a screen projection method, device and equipment based on PIN codes and a storage medium.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a specific flow of the embodiment of the present invention is described below, and referring to fig. 1, a first embodiment of a screen projection method based on a PIN code in the embodiment of the present invention includes:
101. receiving a PIN code for screen projection verification;
in the embodiment, the smart phone sends a screen-on verification PIN code { SDSD55511}, the smart phone receives { SDSD55511}, and the smart phone parses { SDSD55511} according to a set decoding algorithm. When receiving the screen-throwing verification PIN code, the PIN code can be transmitted by using a USB data line or a wireless communication technology.
102. Analyzing the data of the PIN code, and judging whether the equipment to be screened corresponding to the PIN code is in a public network environment or not;
in this embodiment, the decoding algorithm step: 1. judging whether the data value of the first bit is between (7-9) or not, 2, taking out the last bit to calculate PORT =52244+ (0-9); 3. calculating the numbers of the last two segments of the IP, and calculating the whole num = quotient divisor + remainder; 4. calculating a third section IP _3= num/256 in the IP to be an integer; 5. calculating 256 remainder of the fourth segment IP _4= num% in the IP; 6. and calculating the whole IP address of the sending end by taking out the first section and the second section of the local IP and the restored third section and the fourth section. And obtaining the screen projection IP address {224.SDS.2gf.PPO } of the equipment to be screen projected through analysis. And judging whether the {224.SDS.2gf.PPO } belongs to the public network address according to the distribution rule of the public network IP address. In the public network address allocation rule, the first piece of IP data is a public network address between 192 and 235, and 224 judges that the screen-shot IP address is a public network address between 192 and 235. In another public network address assignment rule, the first piece of IP data is a public network address between 128 and 191, and the other 224 is between 192 and 235. In another embodiment, the data of the first-bit PIN code is directly read, if the data of the first bit is 7-9, the screen-casting device corresponding to the PIN code is considered to be in the local area network, and if the data of the first bit is not 7-9, the screen-casting device corresponding to the PIN code is considered to be in the public network.
103. If the equipment to be projected is in a public network environment, establishing a communication channel with a preset public server;
in this embodiment, when it is determined that {224.sds.2gf.ppo } is the public network address or the beginning of the PIN code is not in the range of 7 to 9, the connection is made with the public server, the PIN code is transmitted to the public server, and the communication channel between the present invention and the public server is generated based on the TCP/IP protocol.
104. If the device to be screen-projected is not in the public network environment, establishing a communication channel with the device to be screen-projected;
in this embodiment, if it is determined that the {224.sds.2gf.ppo } is the local network address and the beginning of the PIN is in the range of 7 to 9, a communication channel is established with the device to be screened, and the communication channel may use WiFi, bluetooth, NFC transmission, USB transmission line, or other methods.
105. And receiving a screen projection request of target data, and displaying the target data in the equipment to be projected through the communication channel.
In this embodiment, a screen-casting request of a picture sent by a smartphone is received. If the communication channel is established with the public server, the screen projection request of the picture is sent to the public server, the public server transmits the screen projection request to the device to be projected through the Internet, and the device to be projected displays the picture in a screen based on the screen projection request. If the communication channel is established with the device to be screen-projected, the screen-projecting request of the picture is directly sent to the device to be screen-projected, and the picture is directly displayed in the screen-projecting device according to the request by the device to be screen-projected.
In the embodiment of the invention, the PIN code of the equipment to be screen-projected is obtained, the PIN code is analyzed to judge the environment of the equipment to be screen-projected, different screen-projecting modes are selected according to the network environment of the equipment to be screen-projected, screen projection in the environment lacking internet is realized, and the application range and the scene are larger than those in the prior art.
Referring to fig. 2, a second embodiment of the screen projection method based on PIN codes according to the embodiment of the present invention includes:
201. receiving a registration request of a device to be screened, wherein the registration request comprises: a screen projection IP address and an equipment port of the equipment to be projected;
in this embodiment, a registration request issued by a device to be screened, a device screening IP address { xx.11.111.ww } and a device port { DSDSSSASA: 52244}.
202. Analyzing the equipment port to obtain a port number;
in the present embodiment, the parsing device port { DSDSSSASA: 52244, the port number is 0 by subtracting 52244 from the subtracted value 52244 in the preset algorithm.
203. Generating a designated random number according to a preset random number taking function, and performing disassembly calculation on the screen-casting IP address based on the designated random number to obtain a disassembly value set;
in this embodiment, the random number taking function is set to take a random number M between 66 and 99, binary conversion is performed on two-digit data after the screen-casting IP address is performed to num =111 × 256+ WW, and the obtained num and the random number M are operated to obtain a quotient Q and a remainder E. The decomposed value set = { random number M, quotient Q, remainder E }.
204. Combining the disassembled value set with the port number to generate a PIN code;
in this embodiment, the PIN code generation rule is: PIN code = (7-9) (1 bit) + quotient Q (3 bits) + remainder E (2 bits) + random number M (2 bits) + PORT (1 bit).
205. Resolving the PIN code according to a preset inverse conversion algorithm to obtain a screen-casting IP address of the equipment to be screen-cast;
in this embodiment, the PIN code is received through the wireless communication connection, and whether the top value of the PIN code is within the preset limits of 7 and 9. If the current IP address is within the limit range of preset 7-9, the whole screen-casting IP address of the sending end is calculated according to num = random number M quotient Q + remainder E, third segment IP _3= num/256 integer, fourth segment IP _4= num%256 remainder, and the first segment and the second segment of the local IP are taken out and the restored third segment and the fourth segment.
206. Judging whether the screen-casting IP address belongs to a public network address or not according to a preset IP address distribution rule;
in the present embodiment, the headers 163-195 in the screen-casting IP address { xx.11.111.ww } are all allocated to the public network address, and if XX is in the headers 163-195, the screen-casting IP address is considered to belong to the public network address. If XX is not in 163-plus 195, the screen-dropped IP address is considered not to belong to the public network address.
207. If the equipment to be projected is in a public network environment, establishing a communication channel with a preset public server;
the method embodiment described in this embodiment is similar to the first embodiment, and reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
208. If the device to be screen-projected is not in the public network environment, establishing a communication channel with the device to be screen-projected;
the method embodiment described in this embodiment is similar to the first embodiment, and reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
209. And receiving a screen projection request of target data, and displaying the target data in the equipment to be projected through the communication channel.
The method embodiment described in this embodiment is similar to the first embodiment, and reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the embodiment of the invention, the PIN code of the equipment to be screen-projected is obtained, the PIN code is analyzed to judge the environment of the equipment to be screen-projected, different screen-projecting modes are selected according to the network environment of the equipment to be screen-projected, screen projection in the environment lacking internet is realized, and the application range and the scene are larger than those in the prior art.
Referring to fig. 3, a third embodiment of the screen projection method based on PIN codes according to the embodiment of the present invention includes:
301. receiving a PIN code for screen projection verification;
the method embodiment described in this embodiment is similar to the first embodiment, and reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
302. Judging whether the first numerical value in the PIN code is within a preset limit range;
in this embodiment, the first data T at the front end of the PIN is directly read, and whether T is one of data 7, 8, and 9 is determined.
303. If the current screen is not within the limit range, the equipment to be screened corresponding to the PIN code is confirmed to be in a public network environment;
in this embodiment, the start is 6, and the range is not 7-9, then the device to be projected is confirmed to be in the public network environment.
304. If the equipment to be projected is in a public network environment, establishing a communication channel with a preset public server;
the method embodiment described in this embodiment is similar to the first embodiment, and reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
305. Receiving a screen projection request of target data, and sending the screen projection request to a public server;
in this embodiment, the screen-cast request is to convert url: the method comprises the steps that a video of WWW.ds51XX.XXX is subjected to screen projection, and after a screen projection request is received, the video with url address: a video screen projection request of www.ds51xx.xxx is sent to the public server.
306. Receiving state feedback information sent by a public server, and displaying the state feedback information in a preset state display screen, wherein the state feedback information comprises: target data is displayed in the equipment to be projected;
in this embodiment, the public server sends a screen projection request to the to-be-projected device, the to-be-projected device projects a screen of a www.dsds51xx.xxx, after the screen projection is successful, the to-be-projected device sends screen projection success information to the public server, and the public server returns the screen projection success information to the present invention.
307. If the current screen is within the limit range, the equipment to be screened corresponding to the PIN code is confirmed to be in a local area network environment;
in this embodiment, the PIN code starts at 8, falls within the range of 7-9, and confirms the device to be screened as being in the lan environment.
308. If the device to be screen-projected is not in the public network environment, establishing a communication channel with the device to be screen-projected;
the method embodiment described in this embodiment is similar to the first embodiment, and reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
309. Receiving a screen projection request of target data, and sending the screen projection request to the to-be-projected equipment;
in this embodiment, the screen projection request is to project a local video on the mobile phone terminal, and the screen projection request is sent to the device to be projected.
310. Receiving state feedback information fed back by the screen to be projected equipment, and displaying the state feedback information in a preset state display screen, wherein the state feedback information comprises: the target data is displayed in the device to be projected.
In this embodiment, the device to be screen-projected establishes data connection with the mobile phone terminal, the local video is screen-projected, the device to be screen-projected sends state feedback information to the present invention after screen projection is completed, and the state feedback information is locally sent to the state display screen.
In the embodiment of the invention, the PIN code of the equipment to be screen-projected is obtained, the PIN code is analyzed to judge the environment of the equipment to be screen-projected, different screen-projecting modes are selected according to the network environment of the equipment to be screen-projected, screen projection in the environment lacking internet is realized, and the application range and the scene are larger than those in the prior art.
In the above description of the screen projection method based on the PIN code in the embodiment of the present invention, the screen projection device based on the PIN code in the embodiment of the present invention is described below with reference to fig. 4, and an embodiment of the screen projection device based on the PIN code in the embodiment of the present invention includes:
a receiving module 401, configured to receive a PIN code for screen projection verification;
a judging module 402, configured to analyze data of the PIN code, and judge whether a device to be screened corresponding to the PIN code is in a public network environment;
a first communication module 403, configured to establish a communication channel with a preset public server if the device to be screened is in a public network environment;
a second communication module 404, configured to establish a communication channel with the device to be screen-projected if the device to be screen-projected is not in a public network environment;
a display module 405, configured to receive a screen projection request of target data, and display the target data in the device to be screen projected through the communication channel.
In the embodiment of the invention, the PIN code of the equipment to be screen-projected is obtained, the PIN code is analyzed to judge the environment of the equipment to be screen-projected, different screen-projecting modes are selected according to the network environment of the equipment to be screen-projected, screen projection in the environment lacking internet is realized, and the application range and the scene are larger than those in the prior art.
Please refer to fig. 5, another embodiment of the screen projection apparatus based on PIN code in the embodiment of the present invention includes:
a receiving module 401, configured to receive a PIN code for screen projection verification;
a judging module 402, configured to analyze data of the PIN code, and judge whether a device to be screened corresponding to the PIN code is in a public network environment;
a first communication module 403, configured to establish a communication channel with a preset public server if the device to be screened is in a public network environment;
a second communication module 404, configured to establish a communication channel with the device to be screen-projected if the device to be screen-projected is not in a public network environment;
a display module 405, configured to receive a screen projection request of target data, and display the target data in the device to be screen projected through the communication channel.
Wherein the screen-throwing device based on PIN code further comprises a registration module 406, and the registration module 406 comprises:
the receiving unit 4061 is configured to receive a registration request of a device to be screen-projected, where the registration request includes: a screen projection IP address and an equipment port of the equipment to be projected;
the conversion unit 4062 is configured to perform conversion processing on the screen-casting IP address and the device port according to a preset conversion algorithm, generate a PIN code, and display the PIN code in the device to be screen-cast.
Wherein, the conversion unit 4062 is specifically configured to:
analyzing the equipment port to obtain a port number;
generating a designated random number according to a preset random number taking function, and performing disassembly calculation on the screen-casting IP address based on the designated random number to obtain a disassembly value set;
and combining the disassembled value set with the port number to generate the PIN code.
The receiving and determining module 402 is specifically configured to:
resolving the PIN code according to a preset inverse conversion algorithm to obtain a screen-casting IP address of the equipment to be screen-cast;
and judging whether the screen-casting IP address belongs to a public network address or not according to a preset IP address distribution rule.
The determining module 402 may be further specifically configured to:
judging whether the first numerical value in the PIN code is within a preset limit range;
if the current screen is not within the limit range, the equipment to be screened corresponding to the PIN code is confirmed to be in a public network environment;
and if so, confirming the screen to be projected corresponding to the PIN code as being in a local area network environment.
The display module 405 is specifically configured to:
receiving a screen projection request of target data, and sending the screen projection request to the public server;
receiving state feedback information sent by the public server, and displaying the state feedback information in a preset state display screen, wherein the state feedback information comprises: the target data is displayed in the device to be projected.
The display module 405 may be further specifically configured to:
receiving a screen projection request of target data, and sending the screen projection request to the to-be-projected equipment;
receiving state feedback information fed back by the screen to be projected equipment, and displaying the state feedback information in a preset state display screen, wherein the state feedback information comprises: the target data is displayed in the device to be projected.
In the embodiment of the invention, the PIN code of the equipment to be screen-projected is obtained, the PIN code is analyzed to judge the environment of the equipment to be screen-projected, different screen-projecting modes are selected according to the network environment of the equipment to be screen-projected, screen projection in the environment lacking internet is realized, and the application range and the scene are larger than those in the prior art.
The PIN code-based screen projection device in the embodiment of the present invention is described in detail in the above fig. 4 and fig. 5 from the perspective of the modular functional entity, and the PIN code-based screen projection device in the embodiment of the present invention is described in detail in the following from the perspective of hardware processing.
Fig. 6 is a schematic structural diagram of a PIN code-based screen projection apparatus 600 according to an embodiment of the present invention, which may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 610 (e.g., one or more processors) and a memory 620, and one or more storage media 630 (e.g., one or more mass storage devices) storing applications 633 or data 632. Memory 620 and storage medium 630 may be, among other things, transient or persistent storage. The program stored in the storage medium 630 may include one or more modules (not shown), each of which may include a series of instructions operating on the PIN code based screen projection device 600. Further, the processor 610 may be configured to communicate with the storage medium 630 and execute a series of instruction operations in the storage medium 630 on the PIN code based screen projection device 600.
The PIN code based screen projection device 600 may also include one or more power supplies 640, one or more wired or wireless network interfaces 650, one or more input-output interfaces 660, and/or one or more operating systems 631, such as Windows Server, Mac OSX, Unix, Linux, Free BSD, and the like. It will be appreciated by those skilled in the art that the configuration of the PIN code based screen projection device shown in fig. 6 does not constitute a limitation of the PIN code based screen projection device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium, and which may also be a volatile computer-readable storage medium, having stored therein instructions, which, when run on a computer, cause the computer to perform the steps of the PIN code-based screen projection method.
Fig. 7 is a diagram illustrating an embodiment of a device registration stage 715 and a device connection stage 716 in an overall embodiment of the invention.
In the device registration stage 715, if the device is a public network device, the device to be screen-printed 714 performs an operation of transmitting the device information 701, the public server 713 performs an operation of sending the PIN code 702, and the device to be screen-printed 714 performs an operation of displaying the PIN code 704. If the device is a lan device, the device to be screen-projected 714 performs the operation of generating the PIN code 703, and the device to be screen-projected 714 performs the operation of displaying the PIN code 704.
In the device connection phase 716, the operation of transmitting the PIN code 705 is performed by the smart terminal 711. If the device is a public network device, the screen-projecting device 712 performs an operation of transmitting the PIN code, and the public server performs an operation of returning the device information 707. If the device is a lan device, the screen-projection device 712 performs the operation of analyzing the PIN code 708.
Fig. 8 is a diagram illustrating an embodiment of a screen projection phase 717 according to an embodiment of the present invention, and the terminal 711 performs an operation of sending a screen projection request 801.
If the device is a public network device, the screen-projecting device 712 executes an operation of sending the screen-projecting request 802, the public server 713 executes an operation of sending the screen-projecting request 803, the device to be projected 714 executes an operation of executing the screen projecting 804, the device to be projected 714 executes an operation of returning the status information 805, the public server 713 executes an operation of returning the status information 806, and the screen-projecting device 712 executes an operation of returning the status information 807.
If the device is a lan device, the screen-projecting device 712 performs an operation of sending a screen-projecting request 808, the device to be projected 714 performs an operation of performing a screen projection 809, the device to be projected 714 performs an operation of returning status information 810, and the screen-projecting device 712 performs an operation of returning status information 811.
Figure 9 is a schematic diagram of one embodiment of the end of the screen projection phase 718 in an overall embodiment of the present invention. The intelligent terminal 711 performs an operation of transmitting the end screen-projection request 901.
If the device is a public network device, the screen projecting device 712 executes an operation of sending a screen projecting ending request 902, the public server 713 executes an operation of sending a screen projecting ending request 903, the screen to be projected device 714 executes an operation of ending screen projecting 904, the screen to be projected device 714 executes an operation of returning status information 905, the public server 713 executes an operation of returning status information 906, and the screen projecting device 712 executes an operation of returning status information 907.
If the device is a lan device, the screen-projecting device 712 executes an operation of sending a screen-projection ending request 908, the screen-to-be-projected device 714 executes an operation of ending the screen projection 909, the screen-to-be-projected device 714 executes an operation of returning status information 910, and the screen-projecting device 712 executes an operation of returning status information 911.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses, and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A screen projection method based on PIN codes is characterized by comprising the following steps:
receiving a PIN code for screen projection verification;
analyzing the data of the PIN code, and judging whether the equipment to be screened corresponding to the PIN code is in a public network environment or not;
if the equipment to be projected is in a public network environment, establishing a communication channel with a preset public server;
if the device to be screen-projected is not in the public network environment, establishing a communication channel with the device to be screen-projected;
and receiving a screen projection request of target data, and displaying the target data in the equipment to be projected through the communication channel.
2. The PIN code-based screen projection method according to claim 1, further comprising, before the receiving the PIN code for screen projection verification:
receiving a registration request of a device to be screened, wherein the registration request comprises: a screen projection IP address and an equipment port of the equipment to be projected;
and according to a preset conversion algorithm, converting the screen-casting IP address and the equipment port to generate a PIN code, and displaying the PIN code in the equipment to be screen-cast.
3. The screen-entry method based on the PIN code according to claim 2, wherein the converting the screen-entry IP address and the device port according to a preset conversion algorithm to generate the PIN code comprises:
analyzing the equipment port to obtain a port number;
generating a designated random number according to a preset random number taking function, and performing disassembly calculation on the screen-casting IP address based on the designated random number to obtain a disassembly value set;
and combining the disassembled value set with the port number to generate the PIN code.
4. The PIN code-based screen projection method according to any one of claims 1-3, wherein the analyzing the data of the PIN code and determining whether the device to be projected corresponding to the PIN code is in a public network environment comprises:
resolving the PIN code according to a preset inverse conversion algorithm to obtain a screen-casting IP address of the equipment to be screen-cast;
and judging whether the screen-casting IP address belongs to a public network address or not according to a preset IP address distribution rule.
5. The PIN code-based screen projection method according to any one of claims 1-3, wherein the analyzing the data of the PIN code and determining whether the device to be screen projected corresponding to the PIN code is in a public network environment further comprises:
judging whether the first numerical value in the PIN code is within a preset limit range;
if the current screen is not within the limit range, the equipment to be screened corresponding to the PIN code is confirmed to be in a public network environment;
and if so, confirming the screen to be projected corresponding to the PIN code as being in a local area network environment.
6. The PIN code-based screen projection method according to claim 1, wherein the receiving a screen projection request of target data to display the target data in the to-be-projected device through the communication channel when the to-be-projected device is in a public network environment comprises:
receiving a screen projection request of target data, and sending the screen projection request to the public server;
receiving state feedback information sent by the public server, and displaying the state feedback information in a preset state display screen, wherein the state feedback information comprises: the target data is displayed in the device to be projected.
7. The PIN code-based screen projection method according to claim 1, wherein the receiving a screen projection request of target data to display the target data on the device to be projected through the communication channel when the device to be projected is not in a public network environment comprises:
receiving a screen projection request of target data, and sending the screen projection request to the to-be-projected equipment;
receiving state feedback information fed back by the screen to be projected equipment, and displaying the state feedback information in a preset state display screen, wherein the state feedback information comprises: the target data is displayed in the device to be projected.
8. A screen projection device based on PIN codes is characterized by comprising:
the receiving module is used for receiving a PIN code for screen projection verification;
the judging module is used for analyzing the data of the PIN code and judging whether the equipment to be screened corresponding to the PIN code is in a public network environment or not;
the first communication module is used for establishing a communication channel with a preset public server if the device to be projected is in a public network environment;
the second communication module is used for establishing a communication channel with the device to be screen projected if the device to be screen projected is not in a public network environment;
and the display module is used for receiving a screen projection request of target data and displaying the target data in the equipment to be projected through the communication channel.
9. A screen projection device based on PIN codes is characterized by comprising: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line;
the at least one processor invokes the instructions in the memory to cause the PIN code based screen projection device to perform the PIN code based screen projection method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the PIN code-based screen projection method according to any one of claims 1 to 7.
CN202010968322.0A 2020-09-15 2020-09-15 Screen projection method, device and equipment based on PIN code and storage medium Active CN111930329B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010968322.0A CN111930329B (en) 2020-09-15 2020-09-15 Screen projection method, device and equipment based on PIN code and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010968322.0A CN111930329B (en) 2020-09-15 2020-09-15 Screen projection method, device and equipment based on PIN code and storage medium

Publications (2)

Publication Number Publication Date
CN111930329A true CN111930329A (en) 2020-11-13
CN111930329B CN111930329B (en) 2021-02-19

Family

ID=73334894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010968322.0A Active CN111930329B (en) 2020-09-15 2020-09-15 Screen projection method, device and equipment based on PIN code and storage medium

Country Status (1)

Country Link
CN (1) CN111930329B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113225714A (en) * 2021-04-16 2021-08-06 广州朗国电子科技有限公司 Screen projection method and system
CN114513544A (en) * 2021-12-31 2022-05-17 深圳壹秘科技有限公司 Local area network wireless screen projection method and device and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108901024A (en) * 2018-06-25 2018-11-27 北京小鱼在家科技有限公司 Control throws screen receiving device networking and throws screen receiving device networking methods, equipment
CN109982322A (en) * 2019-03-26 2019-07-05 连尚(新昌)网络科技有限公司 A kind of throwing screen method, equipment, system and storage medium
US20190281249A1 (en) * 2014-09-15 2019-09-12 Google Llc Multi sensory input to improve hands-free actions of an electronic device
CN110515573A (en) * 2018-05-21 2019-11-29 腾讯科技(深圳)有限公司 Throw screen method, apparatus, system and computer equipment
CN110808996A (en) * 2019-11-11 2020-02-18 深圳创维数字技术有限公司 Network authentication method and device, electronic equipment and storage medium
CN111221484A (en) * 2018-11-27 2020-06-02 钉钉控股(开曼)有限公司 Screen projection method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190281249A1 (en) * 2014-09-15 2019-09-12 Google Llc Multi sensory input to improve hands-free actions of an electronic device
CN110515573A (en) * 2018-05-21 2019-11-29 腾讯科技(深圳)有限公司 Throw screen method, apparatus, system and computer equipment
CN108901024A (en) * 2018-06-25 2018-11-27 北京小鱼在家科技有限公司 Control throws screen receiving device networking and throws screen receiving device networking methods, equipment
CN111221484A (en) * 2018-11-27 2020-06-02 钉钉控股(开曼)有限公司 Screen projection method and device
CN109982322A (en) * 2019-03-26 2019-07-05 连尚(新昌)网络科技有限公司 A kind of throwing screen method, equipment, system and storage medium
CN110808996A (en) * 2019-11-11 2020-02-18 深圳创维数字技术有限公司 Network authentication method and device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113225714A (en) * 2021-04-16 2021-08-06 广州朗国电子科技有限公司 Screen projection method and system
CN114513544A (en) * 2021-12-31 2022-05-17 深圳壹秘科技有限公司 Local area network wireless screen projection method and device and computer readable storage medium
CN114513544B (en) * 2021-12-31 2023-06-13 深圳壹秘科技有限公司 Local area network wireless screen-throwing method, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN111930329B (en) 2021-02-19

Similar Documents

Publication Publication Date Title
CN108989879B (en) Screen projection control method, device and system
CN111930329B (en) Screen projection method, device and equipment based on PIN code and storage medium
EP2804393B1 (en) Remote control method, intelligent terminal and intelligent remote control system
CN102413150B (en) Server and virtual desktop control method and virtual desktop control system
US9514641B2 (en) Smart remote control
CN104486747A (en) Method and device for cross-terminal account login
CN107332912B (en) Service discovery method, device, system, storage medium and computer equipment
CN111831247A (en) Screen projection method, device and equipment based on two-dimensional code and storage medium
CN105465947A (en) Air conditioner fault processing method, device and system
CN105519028A (en) Wireless system access control method and apparatus
CN108234659B (en) Data processing method, device and system
CN111830844B (en) Intelligent equipment control method and device and intelligent home control panel
CN105159643A (en) Two-dimensional code-based wireless screen transmission authentication method and system
CN112019900A (en) DLNA (digital Living network alliance) -based screen projection method, system, equipment and storage medium
CN110784367A (en) Network distribution method and system of intelligent equipment
CN107277578A (en) The method and system manipulated by mobile terminal to television terminal
CN112466053B (en) Control system of household appliance and execution method and device of target operation
CN111225077B (en) Network distribution method, device and system for Internet of things equipment
CN112162718A (en) Reverse interaction method, device, equipment and storage medium
CN104468645A (en) Control method, electronic equipment, and information transmission method and device
CN112328356B (en) Intercommunication method and device for Android and Windows, storage medium and computer equipment
CN110858175A (en) Test control method, master control equipment, controlled equipment and test system
CN111641640B (en) Equipment binding processing method and device
CN103347200A (en) Communication connection method and related devices and systems
CN111190675A (en) Three-dimensional image transmission method and equipment based on Roc processor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant