CN114610260A - Screen expansion direction determining method and device and electronic equipment - Google Patents

Screen expansion direction determining method and device and electronic equipment Download PDF

Info

Publication number
CN114610260A
CN114610260A CN202210295847.1A CN202210295847A CN114610260A CN 114610260 A CN114610260 A CN 114610260A CN 202210295847 A CN202210295847 A CN 202210295847A CN 114610260 A CN114610260 A CN 114610260A
Authority
CN
China
Prior art keywords
display device
signal strength
screen
information
display
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
CN202210295847.1A
Other languages
Chinese (zh)
Other versions
CN114610260B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202210295847.1A priority Critical patent/CN114610260B/en
Priority claimed from CN202210295847.1A external-priority patent/CN114610260B/en
Publication of CN114610260A publication Critical patent/CN114610260A/en
Application granted granted Critical
Publication of CN114610260B publication Critical patent/CN114610260B/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/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a method and a device for determining a screen expansion direction and electronic equipment, and belongs to the technical field of electronics. The specific scheme comprises the following steps: under the condition of being in a communication connection state with a second display device, acquiring first signal strength of the second display device through the first antenna, and acquiring second signal strength of the second display device through the second antenna; determining that the screen expansion direction of the first display device is a first direction under the condition that the first signal intensity is greater than the second signal intensity; determining that the screen expansion direction of the first display device is a second direction under the condition that the first signal strength is smaller than the second signal strength; wherein the second direction is different from the first direction.

Description

Screen expansion direction determining method and device and electronic equipment
Technical Field
The application belongs to the technical field of electronics, and particularly relates to a method and a device for determining a screen expansion direction and electronic equipment.
Background
With the development of electronic products, the demand of internet of things is more and more strong. When the user works and learns, the cross-screen display of information can be realized through a plurality of screens.
In the related art, if the cross-screen display mode is screen expansion, after the main display device identifies the auxiliary display device, whether the screen expansion direction meets the expected direction needs to be judged through the dragging operation of the mouse by the user, and if not, the screen expansion direction needs to be reset in the system by the user, so that the operation of the user is complex, and the system needs to perform multiple identification.
Disclosure of Invention
The embodiment of the application aims to provide a method and a device for determining a screen expansion direction and electronic equipment, and can solve the problem that the process of identifying the screen expansion direction in the related technology is complex.
In a first aspect, an embodiment of the present application provides a method for determining a screen expansion direction, which is applied to a first display device, where the first display device includes a first antenna and a second antenna that are separately arranged, and the method includes: under the condition of being in a communication connection state with a second display device, acquiring first signal strength of the second display device through the first antenna, and acquiring second signal strength of the second display device through the second antenna; determining that the screen expansion direction of the first display device is a first direction under the condition that the first signal intensity is greater than the second signal intensity; determining that the screen expansion direction of the first display device is a second direction under the condition that the first signal strength is smaller than the second signal strength; wherein the second direction is different from the first direction.
In a second aspect, an embodiment of the present application provides a device for determining a direction of screen expansion, including: the device comprises an acquisition module and a processing module; the acquisition module is used for acquiring first signal strength of second display equipment through the first antenna and acquiring second signal strength of the second display equipment through the second antenna under the condition that the second display equipment is in a communication connection state; the processing module is configured to determine that a screen expansion direction of the first display device is a first direction when the first signal strength is greater than the second signal strength; determining that the screen expansion direction of the first display device is a second direction under the condition that the first signal strength is smaller than the second signal strength; wherein the second direction is different from the first direction.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product, stored on a storage medium, for execution by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, under the condition of being in a communication connection state with a second display device, a first signal strength of the second display device is obtained through the first antenna, and a second signal strength of the second display device is obtained through the second antenna; determining that the screen expansion direction of the first display device is a first direction under the condition that the first signal intensity is greater than the second signal intensity; determining that the screen expansion direction of the first display device is a second direction under the condition that the first signal strength is smaller than the second signal strength; wherein the second direction is different from the first direction. According to the scheme, the first display device comprises the first antenna and the second antenna which are arranged in a separated mode, and the arrangement positions of the first antenna and the second antenna are different, so that the signal strength of the second display device obtained through the two antennas is different, and on the basis, the placement position of the second display device relative to the first display device can be judged according to the first signal strength and the second signal strength, so that the screen expansion direction of the first display device is determined, the system can determine the screen expansion direction only by once identification, and a user does not need to perform test operation and resetting, so that the complexity of identifying the screen expansion direction is reduced.
Drawings
Fig. 1 is a schematic flowchart of a method for determining a screen expansion direction according to an embodiment of the present application;
FIG. 2 is a diagram illustrating absolute error values of received signal strength indicators in an unfiltered manner according to an embodiment of the present application;
fig. 3 is a schematic position diagram of a first display device and a second display device provided in an embodiment of the present application, where (a) is a schematic position diagram of the first display device on the right side of the second display device, and (b) is a schematic position diagram of the first display device on the left side of the second display device;
FIG. 4 is a schematic diagram of screen display information of a method for determining a screen expansion direction according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a screen expansion direction determining apparatus provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 7 is a hardware schematic diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application 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 embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The method for determining the screen expansion direction provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
In the screen expansion direction determining method provided in the embodiment of the present application, an execution main body of the screen expansion direction determining method may be an electronic device or a functional module or a functional entity capable of implementing the screen expansion direction determining method in the electronic device, the electronic device mentioned in the embodiment of the present application includes, but is not limited to, a mobile phone, a tablet computer, a camera, a wearable device, and the like, and the screen expansion direction determining method provided in the embodiment of the present application is described below with the electronic device as the execution main body.
The embodiment of the application provides a method for determining a screen expansion direction, which is applied to first display equipment, wherein the first display equipment comprises a first antenna and a second antenna which are arranged in a separated mode. It should be noted that, the farther the setting distance between the first antenna and the second antenna is, the higher the accuracy of the final determination result is, and the specific distance may be determined according to the device volume of the first display device, which is not limited in this embodiment of the present application.
As shown in fig. 1, the method for determining a screen expansion direction provided in the embodiment of the present application may include steps 101 to 102:
step 101, under the condition that the second display device is in a communication connection state, acquiring a first signal strength of the second display device through the first antenna, and acquiring a second signal strength of the second display device through the second antenna.
Optionally, the first display device and the second display device may communicate through a wired connection manner, for example, the first display device and the second display device may be connected through an HDMI interface in a wired manner; the communication can also be performed in a wireless connection mode, for example, the first display device and the second display device can be under the coverage of the same local area network, and are connected in a wireless network connection mode, or can be connected through bluetooth; the method can be determined according to actual use requirements, and is not limited in the embodiment of the application.
Optionally, the first antenna and the second antenna may be bluetooth antennas.
Optionally, the first display device may scan whether a display device with a display function exists within a preset range with a radius d, and if the second display device is detected, the first signal strength of the second display device may be obtained through the first antenna, and the second signal strength of the second display device may be obtained through the second antenna.
Specifically, the first display device may transmit a first signal to the second display device through the first antenna and transmit a second signal to the second display device through the second antenna, and thereafter, the first display device may acquire a first signal strength detected by the second display device through the first antenna and acquire a second signal strength detected by the second display device through the second antenna. The first Signal Strength may be a first Received Signal Strength Indication (RSSI) value and the second Signal Strength may be a second RSSI value.
Based on the scheme, after the first display device sends signals to the second display device through different antennas, the first display device can read two RSSI values fed back by the second display device, therefore, on the one hand, the first display device may determine the position of the second display device based on the magnitude relationship between the two RSSI values, and on the other hand, as long as the second display device can successfully receive the first signal and the second signal, the second display device may obtain the two RSSI values, and the first display device may determine the position of the second display device according to the RSSI value fed back by the second display device.
It should be noted that the wireless communication systemDuring transmission, the RSSI may regularly decay with the distance d between the receiving node and the transmitting node, and the relationship between the decay of the RSSI and the distance d is: RSSI ═ RSSI0-10n x lg d, wherein RSSI0The RSSI value received by the receiving node is d is 1m, and n is a constant. That is, since the first antenna and the second antenna are disposed at different positions, the RSSI acquired by the first antenna is different from the RSSI acquired by the second antenna in size, and the farther the distance between the antenna and the second display device is, the smaller the value of the acquired RSSI is.
It should be noted that, because there are many interference factors in the existing network test, for example, fluctuation of RSSI statistics, signal reflection, disturbance of surrounding human bodies, etc., RSSI disturbance in the existing network can be filtered out through three filtering algorithms, i.e., mean filtering, median filtering, and gaussian filtering. As shown in fig. 2, experiments can show that the three different filtering algorithms can all be obtained: within the range of 4m, the absolute error value of the RSSI test distance is within 20cm-30 cm. Since the distance between two display devices extending the screen in daily life is generally within 2m, it is effective to locate the relative position between the two display devices by the RSSI of this distance accuracy.
Optionally, after the first signal strength and the second signal strength are obtained, under the condition that the first signal strength is greater than a first threshold and the second signal strength is greater than the first threshold, the first display device may display first prompt information, where the first prompt information may be used to prompt a user to confirm a screen display mode, and the screen display mode may at least include screen expansion; thereafter, the first display device may receive a first input by the user; and in response to the first input, determining the magnitude of the first signal strength and the second signal strength.
Optionally, the first display device may display the first prompt information when receiving a preset trigger operation of the user, for example, the preset trigger operation may be that the user selects the target file through a right mouse button and drags the target file.
It should be noted that, under the condition that the screen display mode is screen expansion, the first display device needs to divide the complete screen information originally displayed on the first display device into first information and second information, and then determines on which device the first information and the second information are respectively displayed according to the screen expansion direction, so that the first display device needs to determine whether the screen display mode of the first display device is screen expansion according to user input.
It should be noted that the first threshold is a signal strength threshold, that is, only when the signal strength detected by the antenna is greater than the first threshold, the first display device may successfully perform information transmission with the second display device.
Based on the above scheme, under the condition that the first signal intensity and the second signal intensity are both greater than the first threshold, the user can trigger the first display device to determine that the screen display mode is screen expansion according to the displayed first prompt information, and therefore the first display device can judge the sizes of the first signal intensity and the second signal intensity in the screen display mode, and a basis is provided for subsequently determining the screen expansion direction according to the sizes of the signal intensities.
Optionally, the screen display mode may further include screen duplication. Under the condition that the first signal strength is greater than the first threshold value and the second signal strength is greater than the first threshold value, the first display device can display the first prompt message; thereafter, the first display device may receive a second input by the user; and displaying the full screen information of the first display device on the second display device in response to the second input.
It should be noted that, when the screen display mode is screen duplication, the first display device needs to transmit the complete screen information displayed on the first display device to the second display device for displaying, and therefore, the first display device needs to determine whether the screen display mode of the first display device is screen duplication according to user input.
It should be noted that the screen duplication refers to displaying the complete screen information displayed on the first display device on the second display device, that is, the first display device and the second display device simultaneously display the same screen information.
Based on the above scheme, since the user can trigger the first display device to determine that the screen display mode is the screen copy according to the displayed first prompt information under the condition that the first signal strength and the second signal strength are both greater than the first threshold, the first display device can determine to execute the display operation corresponding to the screen copy.
Step 102, determining that the screen expansion direction of the first display device is a first direction under the condition that the first signal intensity is greater than the second signal intensity; and determining the screen expansion direction of the first display device as a second direction under the condition that the first signal strength is smaller than the second signal strength.
Wherein the second direction is different from the first direction. For example, when the first direction is the left side, the second direction may be the right side or the upper side.
Illustratively, the first antenna 31 is disposed on the left side of the inside of the first display device 30, and the second antenna 32 is disposed on the right side of the inside of the first display device 30. As shown in fig. 3(a), in the case that the first signal strength RSSI 1 is greater than the second signal strength RSSI 2, the first display device 30 may determine that the second display device 40 is located on the left side of the first display device 30, thereby determining that the screen expansion direction of the first display device 30 is left; as shown in fig. 3(b), in the case where the first signal strength RSSI 1 is less than the second signal strength RSSI 2, the first display device 30 may determine that the second display device 40 is located at the right of the first display device 30, thereby determining that the screen expansion direction of the first display device 30 is right.
Optionally, in order to improve the accuracy of judging the screen expansion direction, the first display device may further obtain first signal transmission time from the first antenna to the second display device and second signal transmission time from the second antenna to the second display device; determining the screen expansion direction of the first display device as a first direction under the condition that the first signal transmission time is shorter than the second signal transmission time and the first signal intensity is greater than the second signal intensity; and determining the screen expansion direction of the first display device as a second direction under the condition that the first signal transmission time is longer than the second signal transmission time and the first signal intensity is smaller than the second signal intensity.
Considering that the RSSI has a special angle in practical use and an unstable problem caused by a multipath environment, on the basis of judging the distance according to the RSSI, the judgment of a time dimension can be added, so that the difference of directions is strengthened. In particular, the magnitude of the signal transmission time is proportional to the distance between the transmitting node and the receiving node. Accordingly, the first display device may record a time T1 of transmitting the first signal, a time T2 of transmitting the second signal, a time T3 of receiving the third signal, and a time T4 of receiving the fourth signal, then determine a first signal transmission time from a time T1 of transmitting the first signal and a time T3 of receiving the third signal, determine a second signal transmission time from a time T2 of transmitting the second signal and a time T4 of receiving the fourth signal, and determine a screen expanding direction of the first display device as a first direction in a case where the first signal transmission time is less than the second signal transmission time and the first signal strength is greater than the second signal strength; and determining the screen expansion direction of the first display device as a second direction under the condition that the first signal transmission time is longer than the second signal transmission time and the first signal intensity is smaller than the second signal intensity.
Based on the scheme, the screen expansion direction of the first display device can be judged by combining two dimensions of signal transmission time and received signal strength, so that the judgment accuracy of the screen expansion direction can be improved.
Optionally, after determining that the screen expansion direction of the first display device is the first direction, the first display device may cancel displaying the complete screen information on the first display device, display the first information, and display the second information on the second display device; after determining that the screen expansion direction of the first display device is the second direction, the first display device may cancel displaying the complete screen information on the first display device, display the second information on the first display device, and display the first information on the second display device; wherein the complete screen information includes the first information and the second information, and the second information is located in a first direction of the first information.
Illustratively, the first direction is taken as the right, and the second direction is taken as the left. As shown in fig. 4, the full screen information 41 includes first information 42 and second information 43, and the second information 43 is located at the right of the first information 42. After determining that the screen expansion direction of the first display device is right, the first display device may cancel displaying the complete screen information 41 on the first display device, display the first information 42, and display the second information 43 on the second display device; after determining that the screen expansion direction of the first display device is left, the first display device may cancel displaying the full screen information 41 on the first display device, display the second information 43 on the first display device, and display the first information 42 on the second display device.
Based on the scheme, different screen information can be displayed on the first display device and the second display device according to the screen expansion direction, so that the screen can be effectively expanded in the correct direction, and convenience in operation and checking of a user is improved.
Optionally, in the process of performing screen expansion or screen duplication on the first display device and the second display device, the first display device may monitor the first signal strength and the second signal strength in real time; and controlling the first display device to be disconnected from the second display device under the condition that the first signal strength is smaller than the first threshold value or the second signal strength is smaller than the first threshold value.
Based on the scheme, the first display device and the second display device can be controlled to be disconnected under the condition that the first signal intensity is smaller than the first threshold value or the second signal intensity is smaller than the first threshold value, so that the screen expansion or screen copying can be stopped when the first display device and the second display device are far away.
In the embodiment of the application, the first display device comprises the first antenna and the second antenna which are separately arranged, and the arrangement positions of the first antenna and the second antenna are different, so that the signal strength of the second display device obtained through the two antennas is different, and on the basis, the placement position of the second display device relative to the first display device can be judged according to the first signal strength and the second signal strength, so that the screen expansion direction of the first display device is determined.
According to the screen expansion direction determining method provided by the embodiment of the application, the execution main body can be a screen expansion direction determining device. The screen expansion direction determining apparatus provided in the embodiment of the present application is described with an example in which the screen expansion direction determining apparatus executes the screen expansion direction determining method.
As shown in fig. 5, an embodiment of the present application further provides a screen expansion direction determining apparatus 500, including: an acquisition module 501 and a processing module 502; the obtaining module 501 is configured to obtain a first signal strength of a second display device through the first antenna and obtain a second signal strength of the second display device through the second antenna when the second display device is in a communication connection state; the processing module 502 is configured to determine that a screen expansion direction of the first display device is a first direction when the first signal strength is greater than the second signal strength; determining that the screen expansion direction of the first display device is a second direction under the condition that the first signal strength is smaller than the second signal strength; wherein the second direction is different from the first direction.
Optionally, the obtaining module 501 is further configured to obtain a first signal transmission time from the first antenna to the second display device and a second signal transmission time from the second antenna to the second display device; the processing module 502 is specifically configured to determine that the screen expansion direction of the first display device is the first direction when the first signal transmission time is shorter than the second signal transmission time and the first signal strength is greater than the second signal strength; or determining that the screen expansion direction of the first display device is the second direction under the condition that the first signal transmission time is longer than the second signal transmission time and the first signal intensity is smaller than the second signal intensity.
Optionally, the apparatus 500 further comprises a display module 503; the display module 503 is configured to cancel displaying the complete screen information on the first display device after determining that the screen expansion direction of the first display device is the first direction, display the first information, and display the second information on the second display device; or after determining that the screen expansion direction of the first display device is the second direction, canceling to display the complete screen information on the first display device, displaying the second information on the first display device, and displaying the first information on the second display device; wherein the complete screen information includes the first information and the second information, and the second information is located in a first direction of the first information.
Optionally, the apparatus 500 further comprises a receiving module 504; the display module 503 is configured to display first prompt information when the first signal strength is greater than a first threshold and the second signal strength is greater than the first threshold, where the first prompt information is used to prompt a user to confirm a screen display mode, and the screen display mode at least includes screen expansion; the receiving module 504 is configured to receive a first input of a user; the processing module 502 is further configured to determine, in response to the first input, magnitudes of the first signal strength and the second signal strength.
Optionally, the screen display mode further includes screen duplication; the display module 503 is further configured to display the first prompt message when the first signal strength is greater than the first threshold and the second signal strength is greater than the first threshold; the receiving module 504 is further configured to receive a second input of the user; the processing module 502 is further configured to display the complete screen information of the first display device on the second display device in response to the second input.
Optionally, the obtaining module 501 is further configured to monitor the first signal strength and the second signal strength in real time; the processing module 502 is further configured to control the first display device to disconnect from the second display device when the first signal strength is smaller than a first threshold, or the second signal strength is smaller than the first threshold.
In the embodiment of the application, the first display device comprises the first antenna and the second antenna which are separately arranged, and the arrangement positions of the first antenna and the second antenna are different, so that the signal strength of the second display device obtained through the two antennas is different, and on the basis, the placement position of the second display device relative to the first display device can be judged according to the first signal strength and the second signal strength, so that the screen expansion direction of the first display device is determined.
The device for determining the direction of the screen expansion in the embodiment of the present application may be an electronic device, or may be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be a device other than a terminal. The electronic Device may be, for example, a Mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and may also be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The screen expansion direction determination device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The device for determining the screen expansion direction provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 4, and is not described here again to avoid repetition.
Optionally, as shown in fig. 6, an electronic device 600 is further provided in an embodiment of the present application, and includes a processor 601 and a memory 602, where a program or an instruction that can be executed on the processor 601 is stored in the memory 602, and when the program or the instruction is executed by the processor 601, the steps of the foregoing method for determining a screen expansion direction can be implemented, and the same technical effects can be achieved, and are not repeated here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The obtaining module 501 is configured to obtain a first signal strength of a second display device through the first antenna and obtain a second signal strength of the second display device through the second antenna when the second display device is in a communication connection state; the processing module 502 is configured to determine that a screen expansion direction of the first display device is a first direction when the first signal strength is greater than the second signal strength; determining that the screen expansion direction of the first display device is a second direction under the condition that the first signal strength is smaller than the second signal strength; wherein the second direction is different from the first direction.
In the embodiment of the application, the first display device comprises the first antenna and the second antenna which are separately arranged, and the arrangement positions of the first antenna and the second antenna are different, so that the signal strength of the second display device obtained through the two antennas is also different, and on the basis, the arrangement position of the second display device relative to the first display device can be judged according to the first signal strength and the second signal strength, so that the screen expansion direction of the first display device is determined.
Optionally, the obtaining module 501 is further configured to obtain a first signal transmission time from the first antenna to the second display device and a second signal transmission time from the second antenna to the second display device; the processing module 502 is specifically configured to determine that the screen expansion direction of the first display device is the first direction when the first signal transmission time is shorter than the second signal transmission time and the first signal strength is greater than the second signal strength; or determining that the screen expansion direction of the first display device is the second direction under the condition that the first signal transmission time is longer than the second signal transmission time and the first signal intensity is smaller than the second signal intensity.
In the embodiment of the application, the screen expansion direction of the first display device can be judged by combining two dimensions of signal transmission time and received signal strength, so that the judgment accuracy of the screen expansion direction can be improved.
Optionally, the apparatus 500 further comprises a display module 503; the display module 503 is configured to, after it is determined that the screen expansion direction of the first display device is the first direction, cancel displaying the complete screen information on the first display device, display the first information, and display the second information on the second display device; or after determining that the screen expansion direction of the first display device is the second direction, canceling to display the complete screen information on the first display device, displaying the second information on the first display device, and displaying the first information on the second display device; wherein the complete screen information includes the first information and the second information, and the second information is located in a first direction of the first information.
In the embodiment of the application, different screen information can be displayed on the first display device and the second display device according to the screen expansion direction, so that the screen can be effectively expanded in the correct direction, and convenience in operation and checking of a user is improved.
Optionally, the apparatus 500 further comprises a receiving module 504; the display module 503 is configured to display first prompt information when the first signal strength is greater than a first threshold and the second signal strength is greater than the first threshold, where the first prompt information is used to prompt a user to confirm a screen display mode, and the screen display mode at least includes screen expansion; the receiving module 504 is configured to receive a first input of a user; the processing module 502 is further configured to determine magnitudes of the first signal strength and the second signal strength in response to the first input.
In the embodiment of the application, under the condition that the first signal strength and the second signal strength are both greater than the first threshold, the user can trigger the first display device to determine the screen display mode as screen expansion according to the displayed first prompt information, so that the first display device can judge the magnitudes of the first signal strength and the second signal strength in the screen display mode, and a basis is provided for subsequently determining the screen expansion direction according to the magnitudes of the signal strengths.
Optionally, the screen display mode further includes screen duplication; the display module 503 is further configured to display the first prompt message when the first signal strength is greater than the first threshold and the second signal strength is greater than the first threshold; the receiving module 504 is further configured to receive a second input of the user; the processing module 502 is further configured to display the complete screen information of the first display device on the second display device in response to the second input.
In this embodiment of the application, since the user may trigger the first display device to determine that the screen display manner is the screen copy according to the displayed first prompt information under the condition that both the first signal strength and the second signal strength are greater than the first threshold, the first display device may determine to execute the display operation corresponding to the screen copy.
Optionally, the obtaining module 501 is further configured to monitor the first signal strength and the second signal strength in real time; the processing module 502 is further configured to control the first display device to disconnect from the second display device when the first signal strength is smaller than a first threshold, or the second signal strength is smaller than the first threshold.
In the embodiment of the application, the first display device and the second display device can be controlled to be disconnected under the condition that the first signal strength is smaller than the first threshold value or the second signal strength is smaller than the first threshold value, so that the screen expansion or screen copying can be stopped when the first display device and the second display device are far away.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a first storage area storing a program or an instruction and a second storage area storing data, wherein the first storage area may store an operating system, an application program or an instruction (such as a sound playing function, an image playing function, and the like) required for at least one function, and the like. Further, the memory 1009 may include volatile memory or nonvolatile memory, or the memory 1009 may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct Memory bus RAM (DRRAM). The memory 1009 in the embodiments of the subject application includes, but is not limited to, these and any other suitable types of memory.
Processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor, which primarily handles operations related to the operating system, user interface, and applications, and a modem processor, which primarily handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned method for determining a screen expansion direction, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read only memory ROM, a random access memory RAM, a magnetic or optical disk, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above-mentioned screen expansion direction determining method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
The embodiments of the present application provide a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes of the foregoing method for determining a screen expansion direction, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (14)

1. A screen expansion direction determining method is applied to a first display device, wherein the first display device comprises a first antenna and a second antenna which are arranged in a separated mode, and the method comprises the following steps:
under the condition of being in a communication connection state with a second display device, acquiring first signal strength of the second display device through the first antenna, and acquiring second signal strength of the second display device through the second antenna;
determining that the screen expansion direction of the first display device is a first direction under the condition that the first signal intensity is greater than the second signal intensity; determining that the screen expansion direction of the first display device is a second direction under the condition that the first signal strength is smaller than the second signal strength;
wherein the second direction is different from the first direction.
2. The method according to claim 1, wherein before determining that the screen expansion direction of the first display device is a first direction or determining that the screen expansion direction of the first display device is a second direction, the method further comprises:
acquiring first signal transmission time from the first antenna to the second display device and second signal transmission time from the second antenna to the second display device;
determining that the screen expansion direction of the first display device is a first direction under the condition that the first signal strength is greater than the second signal strength, including:
determining that the screen expansion direction of the first display device is the first direction under the condition that the first signal transmission time is shorter than the second signal transmission time and the first signal intensity is greater than the second signal intensity;
determining that the screen expansion direction of the first display device is a second direction under the condition that the first signal strength is smaller than the second signal strength comprises:
and determining the screen expansion direction of the first display device as the second direction under the condition that the first signal transmission time is longer than the second signal transmission time and the first signal intensity is smaller than the second signal intensity.
3. The method according to claim 1 or 2, wherein after determining that the screen expansion direction of the first display device is the first direction, the method further comprises:
canceling the display of the complete screen information on the first display device, displaying the first information, and displaying the second information on the second display device;
after determining that the screen expansion direction of the first display device is the second direction, the method further includes:
canceling the display of the complete screen information on the first display device, displaying the second information on the first display device, and displaying the first information on the second display device;
wherein the complete screen information includes the first information and the second information, and the second information is located in a first direction of the first information.
4. The method according to claim 1 or 2, wherein before determining that the screen expansion direction of the first display device is a first direction or determining that the screen expansion direction of the first display device is a second direction, the method further comprises:
when the first signal intensity is greater than a first threshold value and the second signal intensity is greater than the first threshold value, displaying first prompt information, wherein the first prompt information is used for prompting a user to confirm a screen display mode, and the screen display mode at least comprises screen expansion;
receiving a first input of a user;
in response to the first input, determining a magnitude of the first signal strength and the second signal strength.
5. The screen expansion direction determination method according to claim 4, wherein the screen display manner further includes screen duplication; before determining that the screen expansion direction of the first display device is the first direction or determining that the screen expansion direction of the first display device is the second direction, the method further includes:
displaying the first prompt message under the condition that the first signal strength is greater than the first threshold value and the second signal strength is greater than the first threshold value;
receiving a second input of the user;
displaying full screen information of the first display device on the second display device in response to the second input.
6. The method according to claim 1 or 2, wherein after determining that the screen expansion direction of the first display device is a first direction or determining that the screen expansion direction of the first display device is a second direction, the method further comprises:
monitoring the first signal strength and the second signal strength in real time;
and under the condition that the first signal strength is smaller than a first threshold value or the second signal strength is smaller than the first threshold value, the first display device is controlled to be disconnected from the second display device.
7. A screen expansion direction determining apparatus, comprising: the device comprises an acquisition module and a processing module;
the acquisition module is used for acquiring first signal strength of second display equipment through the first antenna and acquiring second signal strength of the second display equipment through the second antenna under the condition that the second display equipment is in a communication connection state;
the processing module is configured to determine that a screen expansion direction of the first display device is a first direction when the first signal strength is greater than the second signal strength; determining that the screen expansion direction of the first display device is a second direction under the condition that the first signal strength is smaller than the second signal strength;
wherein the second direction is different from the first direction.
8. The apparatus for determining a direction of screen expansion according to claim 7, wherein the acquiring module is further configured to acquire a first signal transmission time from the first antenna to the second display device and a second signal transmission time from the second antenna to the second display device;
the processing module is specifically configured to determine that the screen expansion direction of the first display device is the first direction when the first signal transmission time is shorter than the second signal transmission time and the first signal intensity is greater than the second signal intensity; or determining that the screen expansion direction of the first display device is the second direction under the condition that the first signal transmission time is longer than the second signal transmission time and the first signal intensity is smaller than the second signal intensity.
9. The screen expansion direction determination apparatus according to claim 7 or 8, characterized in that the apparatus further comprises a display module;
the display module is configured to cancel displaying of the complete screen information on the first display device, display the first information, and display the second information on the second display device after determining that the screen expansion direction of the first display device is the first direction; or after determining that the screen expansion direction of the first display device is the second direction, canceling to display the complete screen information on the first display device, displaying the second information on the first display device, and displaying the first information on the second display device; wherein the complete screen information includes the first information and the second information, and the second information is located in a first direction of the first information.
10. The screen expansion direction determination apparatus according to claim 7 or 8, characterized in that the apparatus further comprises a display module and a reception module;
the display module is configured to display first prompt information when the first signal strength is greater than a first threshold and the second signal strength is greater than the first threshold, where the first prompt information is used to prompt a user to confirm a screen display mode, and the screen display mode at least includes screen expansion;
the receiving module is used for receiving a first input of a user;
the processing module is further configured to determine, in response to the first input, magnitudes of the first signal strength and the second signal strength.
11. The screen expansion direction determination apparatus according to claim 10, wherein the screen display manner further includes screen duplication; the display module is further configured to display the first prompt message when the first signal strength is greater than the first threshold and the second signal strength is greater than the first threshold;
the receiving module is further used for receiving a second input of the user;
the processing module is further configured to display the complete screen information of the first display device on the second display device in response to the second input.
12. The device for determining the direction of screen expansion according to claim 7 or 8, wherein the acquiring module is further configured to monitor the first signal strength and the second signal strength in real time;
the processing module is further configured to control the first display device to be disconnected from the second display device when the first signal strength is smaller than a first threshold value or the second signal strength is smaller than the first threshold value.
13. An electronic device comprising a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions when executed by the processor implementing the screen expansion direction determination method of any one of claims 1-6.
14. A readable storage medium, characterized in that a program or instructions are stored thereon, which when executed by a processor, implement the screen expansion direction determination method according to any one of claims 1 to 6.
CN202210295847.1A 2022-03-23 Screen expansion direction determining method and device and electronic equipment Active CN114610260B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210295847.1A CN114610260B (en) 2022-03-23 Screen expansion direction determining method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210295847.1A CN114610260B (en) 2022-03-23 Screen expansion direction determining method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN114610260A true CN114610260A (en) 2022-06-10
CN114610260B CN114610260B (en) 2024-06-21

Family

ID=

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104136934A (en) * 2011-12-05 2014-11-05 高通股份有限公司 Methods and apparatuses for use in selecting a transmitting device for use in a positioning function
CN107911534A (en) * 2017-10-27 2018-04-13 广东欧珀移动通信有限公司 Information processing method, device, mobile terminal and computer-readable recording medium
KR20180056968A (en) * 2016-11-21 2018-05-30 경희대학교 산학협력단 Apparatus and method for transferring wireless power to a position estimated by using various communication systems
CN108259677A (en) * 2018-02-12 2018-07-06 中兴通讯股份有限公司 Terminal and its display control method, device and computer storage media
CN112099741A (en) * 2020-07-30 2020-12-18 华为技术有限公司 Display screen position identification method, electronic device and computer readable storage medium
CN112840291A (en) * 2018-10-03 2021-05-25 微软技术许可有限责任公司 Touch display alignment
US20230179503A1 (en) * 2020-07-31 2023-06-08 Samsung Electronics Co., Ltd. Device and method for providing information about communication state of network in electronic device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104136934A (en) * 2011-12-05 2014-11-05 高通股份有限公司 Methods and apparatuses for use in selecting a transmitting device for use in a positioning function
KR20180056968A (en) * 2016-11-21 2018-05-30 경희대학교 산학협력단 Apparatus and method for transferring wireless power to a position estimated by using various communication systems
CN107911534A (en) * 2017-10-27 2018-04-13 广东欧珀移动通信有限公司 Information processing method, device, mobile terminal and computer-readable recording medium
CN108259677A (en) * 2018-02-12 2018-07-06 中兴通讯股份有限公司 Terminal and its display control method, device and computer storage media
CN112840291A (en) * 2018-10-03 2021-05-25 微软技术许可有限责任公司 Touch display alignment
CN112099741A (en) * 2020-07-30 2020-12-18 华为技术有限公司 Display screen position identification method, electronic device and computer readable storage medium
US20230179503A1 (en) * 2020-07-31 2023-06-08 Samsung Electronics Co., Ltd. Device and method for providing information about communication state of network in electronic device

Similar Documents

Publication Publication Date Title
CN112333332B (en) Prompt message display method and device and electronic equipment
CN108763317B (en) Method for assisting in selecting picture and terminal equipment
CN110502293B (en) Screen capturing method and terminal equipment
CN111142723B (en) Icon moving method and electronic equipment
CN109828731B (en) Searching method and terminal equipment
CN112417421A (en) Scanning method, scanning device, electronic equipment and readable storage medium
CN109144393B (en) Image display method and mobile terminal
CN109002223B (en) Touch interface display method and mobile terminal
CN109068063B (en) Three-dimensional image data processing and displaying method and device and mobile terminal
CN111638822A (en) Icon operation method and device and electronic equipment
CN112929860A (en) Bluetooth connection method and device and electronic equipment
CN109104573B (en) Method for determining focusing point and terminal equipment
CN113989963A (en) Signal processing method and related equipment
CN109829707B (en) Interface display method and terminal equipment
CN109618278B (en) Positioning method and mobile terminal
CN115577724A (en) Card reading method and device, electronic equipment and readable storage medium
CN114610260A (en) Screen expansion direction determining method and device and electronic equipment
CN114610260B (en) Screen expansion direction determining method and device and electronic equipment
CN115268817A (en) Screen-projected content display method, device, equipment and storage medium
CN115086935A (en) Information acquisition method and device and electronic equipment
CN112286430B (en) Image processing method, apparatus, device and medium
CN112181269B (en) Content display method and device and electronic equipment
CN114115639A (en) Interface control method and device, electronic equipment and storage medium
CN112256378A (en) Display method, display device, electronic equipment and readable storage medium
CN112988496A (en) Alarm prompting method, device and system and electronic equipment

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