CN110286843B - Electronic equipment and two-dimensional code display method - Google Patents

Electronic equipment and two-dimensional code display method Download PDF

Info

Publication number
CN110286843B
CN110286843B CN201910579761.XA CN201910579761A CN110286843B CN 110286843 B CN110286843 B CN 110286843B CN 201910579761 A CN201910579761 A CN 201910579761A CN 110286843 B CN110286843 B CN 110286843B
Authority
CN
China
Prior art keywords
dimensional code
display screen
state
screen
touch operation
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.)
Active
Application number
CN201910579761.XA
Other languages
Chinese (zh)
Other versions
CN110286843A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910579761.XA priority Critical patent/CN110286843B/en
Publication of CN110286843A publication Critical patent/CN110286843A/en
Application granted granted Critical
Publication of CN110286843B publication Critical patent/CN110286843B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/043Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using propagating acoustic waves
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3274Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being displayed on the M-device

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Acoustics & Sound (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides an electronic device and a two-dimensional code display method, wherein the electronic device comprises: a housing comprising a side; the operation switch is arranged on the side edge and used for detecting touch operation of the side edge; the display screen is arranged on the shell and used for displaying pictures; the processor is respectively electrically connected with the operating switch and the display screen, and the processor is used for acquiring the two-dimensional code when the operating switch detects preset touch operation and displaying the two-dimensional code on the display screen. The embodiment of the application is convenient for obtaining and displaying the two-dimensional code.

Description

Electronic equipment and two-dimensional code display method
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to an electronic device and a method for displaying a two-dimensional code.
Background
With the development of communication technology, electronic devices such as smart phones are becoming more and more popular. In the using process of the electronic equipment, the electronic equipment can receive touch operation of a user on the display screen so as to control the display screen to display different pictures according to different touch operations. For example, the electronic device may receive a touch operation of a user on a display screen for a certain application interface, so as to control the display screen to display a home page of the application according to the touch operation.
Disclosure of Invention
The embodiment of the application provides electronic equipment and a two-dimensional code display method, which are convenient for obtaining and displaying a two-dimensional code.
The embodiment of the application discloses electronic equipment, includes:
a housing comprising a side;
the operation switch is arranged on the side edge and used for detecting touch operation of the side edge;
the display screen is arranged on the shell and used for displaying pictures; and
the processor is respectively electrically connected with the operating switch and the display screen, and the processor is used for acquiring the two-dimensional code when the operating switch detects preset touch operation and displaying the two-dimensional code on the display screen.
The embodiment of the application discloses a display method of a two-dimensional code, which is applied to electronic equipment, wherein the electronic equipment comprises:
a housing comprising a side;
an operation switch provided on the side;
the display screen is arranged on the shell and used for displaying pictures;
the display method of the two-dimensional code comprises the following steps:
detecting touch operation of the side edge through the operation switch;
when the operation switch detects a preset touch operation, acquiring a two-dimensional code;
and displaying the two-dimensional code on the display screen.
In the embodiment of the application, when the operation switch detects that the side has the preset touch operation, the processor can acquire the two-dimensional code and display the two-dimensional code on the display screen, so that the two-dimensional code is conveniently acquired and displayed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
FIG. 2 is a first partial cross-sectional view of the electronic device shown in FIG. 1 taken along the direction P2-P2.
Fig. 3 is a schematic diagram of a first structure of an operation switch in the electronic device shown in fig. 2.
Fig. 4 is a schematic diagram of a second structure of the operation switch in the electronic device shown in fig. 2.
Fig. 5 is a schematic diagram of a third structure of the operation switch in the electronic device shown in fig. 2.
Fig. 6 is a schematic diagram of a fourth structure of the operation switch in the electronic device shown in fig. 2.
FIG. 7 is a second partial cross-sectional view of the electronic device of FIG. 1 taken along the direction P2-P2.
Fig. 8 is a detailed cross-sectional view of a side of the electronic device shown in fig. 1.
FIG. 9 is a third partial cross-sectional view of the electronic device of FIG. 1 taken along the direction P2-P2.
Fig. 10 is a schematic flowchart of a two-dimensional code display method according to an embodiment of the present application.
Fig. 11 is a first scene schematic diagram of a two-dimensional code display method according to an embodiment of the present application.
Fig. 12 is a schematic view of a second scene of a display method of a two-dimensional code according to an embodiment of the present application.
Fig. 13 is a schematic view of a third scenario of a display method of a two-dimensional code according to an embodiment of the present application.
Fig. 14 is a schematic diagram of a fourth scene of a display method of a two-dimensional code according to an embodiment of the present application.
Detailed Description
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. An electronic device such as electronic device 20 of fig. 1 may include a housing such as housing 200, an operating switch such as operating switch 400, a camera such as camera 600, and a circuit board such as circuit board 800. The circuit board 800, the camera 600, and the operation switch 400 may be provided on the housing.
The electronic device 20 may be a computing device such as a laptop computer, a computer monitor containing an embedded computer, a tablet computer, a cellular telephone, a media player, or other handheld or portable electronic devices, smaller devices (such as a wristwatch device, a hanging device, a headset or earpiece device, a device embedded in eyeglasses, or other device worn on the head of a user, or other wearable or miniature devices), a television, a computer display not containing an embedded computer, a gaming device, a navigation device, an embedded system (such as a system in which an electronic device with a display is installed in a kiosk or automobile), a device that implements the functionality of two or more of these devices, or other electronic devices. In the exemplary configuration of fig. 1, the electronic device 20 is a portable device, such as a cellular telephone, media player, tablet, or other portable computing device. Other configurations may be used for the electronic device 20, if desired. The example of fig. 1 is merely exemplary.
The housing 200 may be formed from plastic, glass, ceramic, fiber composite, metal (e.g., stainless steel, aluminum, etc.), other suitable materials, or a combination of any two or more of these materials. The housing body 200 may be formed using a one-piece configuration in which some or all of the housing body 200 is machined or molded as a single structure, or may be formed using multiple structures (e.g., an inner frame structure, one or more structures that form an outer shell surface, etc.). The case 200 may provide a receiving cavity to receive components of the electronic device 20 such as a battery, a circuit board 800, and the like.
Referring to fig. 2, fig. 2 is a first partial sectional view of the electronic device shown in fig. 1 along a direction P2-P2. The electronic device 20 may also include a display screen such as the display screen 100, and the display screen 100 may be mounted in the housing 200. Display screen 100 may be a touch screen display incorporating conductive capacitive touch sensor electrode layers or other touch sensor components (e.g., resistive touch sensor components, acoustic touch sensor components, force-based touch sensor components, light-based touch sensor components, etc.), or may be a non-touch sensitive display. Capacitive touch screen electrodes may be formed from an array of indium tin oxide pads or other transparent conductive structures.
The display screen 100 may include an array of display pixels formed from Liquid Crystal Display (LCD) components, an array of electrophoretic display pixels, an array of plasma display pixels, an array of organic light emitting diode display pixels, an array of electrowetting display pixels, or display pixels based on other display technologies. A display screen cover layer such as a transparent glass layer, light-transmissive plastic, sapphire, or other transparent dielectric layer may be used to protect the display screen 100. In some embodiments, the display screen 100 may be a flexible screen, i.e., the display screen 100 may be bendable and foldable.
The housing 200 may include a middle frame, such as middle frame 220, and a back cover, such as back cover 240. The middle frame 220 may serve as a carrier for the electronic device 20. For example, the bezel 220 may carry the display screen 100, the circuit board 800, a battery, etc. of the electronic device 20. The middle frame 220 may be made of metal, and may be formed by injection molding or machining.
The rear cover 240 may be disposed on one side of the middle frame 220, such as the rear cover 240 disposed on a non-display side of the middle frame 220. The rear cover 240 and the middle frame 220 are fixedly connected to form a receiving cavity 220 for receiving devices of the electronic apparatus 20, such as a battery, a circuit board 800, and the like, so that the rear cover 240 can be covered on the middle frame 220 to cover the battery, the circuit board 800, and the like. It is understood that the display screen 100 and the rear cover 240 are disposed at two opposite sides of the middle frame 220, and the display screen 100 may be disposed at a display surface of the middle frame 220 to display a picture.
The middle frame 220 may have a plurality of sides 222, and the plurality of sides 222 of the middle frame 220 are all located on the periphery of the base of the middle frame 220. The lengths of the sides 222 of the middle frame 220 may be the same or different. Such as the middle frame 220, may have a first side with a longer length and a second side with a shorter length, i.e., the first side may have a length greater than the second side. Devices of the electronic apparatus 20 such as the operation switch 400 may be disposed on one or more of the sides 222 of the middle frame 220, such as the operation switch 400 of the electronic apparatus 20 disposed on one of the longer sides 222 of the middle frame 220.
The operation switch 400 may be provided on the side 222 having a shorter length. It is understood that when the lengths of the sides 222 are the same, the operation switch 400 may be disposed on any one side 222 or any plurality of sides 222. It will also be appreciated that the operating switch 400 may be disposed at the connecting position of the two connecting sides 222, or at the corner position of the middle frame 220. It will also be appreciated that one of the sides 222 may be provided with one or more operating switches 400. In some embodiments, a control area 2222, or an operation area 2222, may be provided on one of the side edges 222. The operation switch 400 may be provided in the control section 2222 of the side 222 for the user to operate. Of course, it is also possible to arrange the operation switches 400 at all positions of the side 222, i.e., the control section 2222 is the entire side 222.
In some embodiments, a self-luminous material may be disposed at the control area 2222 to allow the user to identify the control area 2222. The color settings at the location of the control area 2222 may be different from the color settings at other locations of the side edge 222. A light emitting lamp may also be provided in the control section 2222.
In the related art, a plurality of physical keys, such as an on-off key, a volume key, a shortcut key, etc., are disposed on a side of the electronic device. The physical keys generally protrude out of the side edges, and gaps are formed between the physical keys and the side edges of the electronic equipment, so that water leakage and dust entering are easy to occur.
Based on this, in the embodiment of the present application, the operation switch 400 is disposed on the inner surface of the side edge 222, and the user can directly operate the control area 2222 to control the operation switch 400. The integrity of the side 222 is maintained and is waterproof and dustproof.
The side 222 may be provided with a first receiving groove 2224 for receiving the operation switch 400. The first receiving groove 2224 may communicate with the receiving cavity 260. The depth of the first receiving groove 2224 may be much greater than the thickness of the operating switch 400, that is, after the operating switch 400 is placed in the first receiving groove 2224, a hollow cavity is formed at a position where the first receiving groove 2224 is communicated with the receiving cavity 260, so that the control area 2222 at the position of the first receiving groove 2224 is deformed. Such as: the distance between the operation switch 400 and the housing chamber 260 is about 5 mm. The length of the first receiving groove 2224 is the distance of the first receiving groove 2224 along the length direction of the side 222, and the length of the first receiving groove 2224 can be determined according to actual requirements. The width of the first receiving groove 2224 is a distance along the width direction of the side 222, and the width of the first receiving groove 2224 may be between 1.6 mm and 2 mm.
The outer surface of the side 222 may be of various shapes, such as: arc, rectangular, rounded rectangular, etc. The outer surface of the side 222 may also be curved. At least one of the rear cover 240 and the display screen 100 may be arranged in an arc shape and cover at least a portion of the side edge 222.
The operation switch 400 is disposed on the inner surface of the side 222, for example, the operation switch 400 may be disposed on the control section 2222. The following description will be given taking as an example the operation switch 400 provided in the control section 2222. It should be noted that the setting of the operation switch 400 in the control area 2222 is only an example provided in the embodiment of the present application, and is not intended to limit the present application.
The operation switch 400 may be electrically connected to the circuit board 800 of the electronic device 20. The circuit board 800 of the electronic device 20 may have integrated thereon a processor, a memory, etc., which may be used to process various operations of the electronic device 20. Such as: the processor may control the display of the display screen 100 in the electronic device 20, and the processor may control the camera 600 in the electronic device 20 to capture an image, such as a picture of a human face. The operation switch 400 may detect a touch operation in the control area 2222, and when the operation switch 400 detects a preset touch operation, the processor may acquire the two-dimensional code and display the two-dimensional code on the display screen 100. Or when the operation switch 400 detects a preset touch operation, the processor may adjust the volume. Or when the operation switch 400 detects a preset touch operation, the processor may perform an on/off operation.
The two-dimensional code (2-dimensional bar code) records data symbol information by using black and white alternate graphs which are distributed on a plane (in a two-dimensional direction) according to a certain rule by using a certain specific geometric figure; the concept of "0" and "1" bit stream forming the internal logic basis of computer is used ingeniously in coding, several geometric forms correspondent to binary system are used to represent literal numerical information, and can be automatically read by means of image input equipment or photoelectric scanning equipment so as to implement automatic information processing. It has some commonality of barcode technology: each code system has its specific character set; each character occupies a certain width; has certain checking function and the like. Meanwhile, the method also has the function of automatically identifying information of different rows and processing the graph rotation change points.
In the embodiment of the application, the operation switch 400 is disposed on the inner surface of the side 222, and the side 222 is not provided with a hole structure for avoiding the operation switch 400, so that a user can drive the operation switch 400 through the side 222 at the position of the control area 2222 by touch operation to control the electronic device 20, such as controlling the volume of the electronic device 20, controlling the on/off of the electronic device 20, and controlling the electronic device 20 to display a two-dimensional code.
Referring to fig. 3, fig. 3 is a first structural schematic diagram of an operation switch in the electronic device shown in fig. 2. The operation switch 400 may include a pressure detection module 420, and the pressure detection module 420 may include a first flexible circuit board 422 and a pressure detector 424 electrically connected to the first flexible circuit board 422. The first flexible circuit board 422 may be disposed on an inner surface of the side 222, such as by being adhered to the inner surface of the side 222 with glue, double-sided tape, or the like. The width of the first receiving groove 2224 may be about 1.6 mm or about 2 mm.
The pressure detector 424 may include a resistive sensor or a capacitive sensor, among others. It should be noted that when the pressure detector 424 includes a capacitive sensor, no metal is disposed at the position of the pressure detector 424 to ensure the accuracy of the detection of the capacitive sensor. The resistive sensor may be a MEMS (micro electro Mechanical Systems) sensor, which requires the width of the first receiving groove 2224 to be 1.6 mm. The resistive sensor is not limited to the MEMS piezoresistive IC, and the resistive sensor may be a strain gauge, and the strain gauge needs to have a width of the first receiving groove 2224 of about 2 mm.
It is understood that the side 222 is thin and can be deformed by the pressing force, and the first flexible circuit board 422 and the pressure detector 424 are disposed together on the inner surface of the side 222. When the side 222 is pressed, the side 222 deforms and drives the first flexible circuit board 422 and the pressure detector 424 to deform together, and the pressure is converted into an electrical signal and transmitted to the processor of the circuit board 800, and the processor can control the electronic device 20 according to the pressing operation. The pressing operation may include one press, a press of many presses, a long press, a heavy press, a light press, and the like. The long press is that the press duration exceeds the preset duration. The pressing force degree is larger than the first preset force degree. The pressing force degree is smaller than the second preset force degree by slight pressing. The pressing down may be a pressing operation detected a plurality of times within a preset time. Wherein, the first preset force and the second preset force can be the same or different.
In some embodiments, some of the pressing operations may be set as preset pressing operations in advance. For example, a one-touch press, a press down amount, and a press down amount may be set as preset press operations. That is, the display screen 100 of the electronic device 20 may be controlled to display the two-dimensional code when the operation switch 400 receives a preset pressing operation in the control area 2222. Therefore, the user can control the display screen 100 to display the two-dimensional code without touching the display screen 100, which not only saves the power consumption of the touch display screen 100, but also facilitates the user operation. Especially facilitating one-handed operation for some users. User operation is also simplified. It should be noted that the operation of controlling the display screen 100 of the electronic device 20 to display the two-dimensional code is not limited to the preset pressing operation, and may be other operations, such as the preset sliding operation. When the operation switch 400 receives a sliding operation in the control area 2222 in the longitudinal direction of the side edge, the operation switch 400 may determine the sliding operation as a preset sliding operation. It should be noted that the preset touch operation may include at least one of a preset pressing operation and a preset sliding operation.
The display screen 100 may have a blank screen state, a bright screen state, a locked screen state, an unlocked screen state, or the like.
For example, when the operation switch receives a touch operation for controlling the display screen to be bright, the processor can control the display screen to be bright, and the display screen is in a bright screen state at the moment. When a user places the electronic equipment in the bright screen state aside and does not perform any operation, the display screen automatically turns off after a period of time; or when the operation switch receives touch operation for controlling the display screen to be turned off, the display screen is turned off. After the display screen is extinguished, the electronic device is in a black screen (screen-off) state, and at the moment, a system of the electronic device is generally in a dormant state. When the display screen is automatically turned off, the electronic device may not have been subjected to the screen locking process, and thus, the electronic device is in the black screen state and is also in the unlocked state at this time. When the operation switch receives touch operation for controlling the display screen to be turned off, the electronic equipment simultaneously performs screen locking processing, so that the electronic equipment is in a screen-locking state while being in a screen-blacking state.
When the operation switch receives touch operation for controlling the display screen to be on, the processor can control the display screen to be on, and at the moment, the electronic equipment can be in a locked state, namely a screen locking state. And when the unlocking information input by the user is received and the unlocking information passes the verification, the electronic equipment enters an unlocking state.
It should be noted that, when the electronic device is in the black screen state, the electronic device may be in the unlock state or the lock screen state at the same time. When the electronic equipment is in the bright screen state, the electronic equipment can also be in the unlocking state or the screen locking state at the same time.
In this embodiment, when the operation switch 400 detects a preset touch operation, if the display screen 100 is in a black screen state, the processor may switch the display screen in the black screen state to a bright screen state, and display the two-dimensional code on the display screen 100 in the bright screen state. When the operation switch 400 detects a preset touch operation, if the display screen 100 is in a bright screen state, the processor may directly display the two-dimensional code on the display screen 100 in the bright screen state. It should be noted that, if the display screen 100 in the bright screen state is in the lock screen state, the two-dimensional code may also be displayed on the lock screen interface. If the display screen 100 in the bright screen state is in the unlocked state, the two-dimensional code may also be displayed on the unlocking interface.
The display screen 100 may include a first area and a second area, the first area is in a bright screen state, the second area is in a dark screen state, and when the operation switch 400 detects a preset touch operation, the processor may display the two-dimensional code on the first area of the display screen 100. That is, when the operation switch 400 detects a preset touch operation, the processor may control the display screen to be partially turned on, that is, control the first area to be turned on, and then display the two-dimensional code on the first area. It can also be said that when the operation switch 400 detects a preset touch operation, the processor can determine the area of the display screen that is on according to the size and the position of the two-dimensional code. In a popular way, only the area of the display screen 100 displaying the two-dimensional code is in a bright screen state, and the other areas are in a black screen state.
When the operation switch 400 detects a preset touch operation, if the display screen 100 is in the unlocked state, the processor may display the two-dimensional code on the display screen 100 in the unlocked state. When the operation switch 400 detects a preset touch operation, if the display screen 100 is in the screen lock state, the processor may display the two-dimensional code on the display screen 100 in the screen lock state. It should be noted that, when the display screen 100 is in the unlock state or the lock state, if the display screen 100 is also in the black state at this time, the processor may switch the display screen 100 in the black state to the bright state, and then display the two-dimensional code on the display screen 100 in the bright state, that is, the two-dimensional code may be displayed on the display screen 100 in the bright state and the unlock state, or the two-dimensional code may be displayed on the display screen 100 in the bright state and the lock state, so as to facilitate the user to use the two-dimensional code.
When the operation switch 400 detects a preset touch operation, the processor may turn on the camera 600 to obtain a face picture, obtain a two-dimensional code according to feature information of the face picture, and then display the two-dimensional code on the display screen 100.
Assuming that the electronic device is in a screen locking state, when the operation switch 400 detects a preset touch operation, the processor may turn on the camera 600 to obtain a face photo, and perform identity verification according to feature information of the face photo. If the identity authentication is passed, the processor may switch the display screen in the lock screen state to the unlock state, and display the two-dimensional code on the display screen 100 in the unlock state.
The two-dimensional code may include a payment two-dimensional code through which the user may perform a payment operation. In order to ensure the property safety of the user, when the operation switch 400 detects a preset touch operation, the processor may detect whether the preset touch operation corresponds to the acquisition of the payment two-dimensional code. If the preset touch operation corresponds to obtaining the payment two-dimensional code, the processor may open the camera 600 to obtain a face picture. Then, the processor can detect whether the feature information of the face photo is matched with preset feature information. If the feature information of the face photo matches the preset feature information, the processor can acquire the payment two-dimensional code and display the payment two-dimensional code on the display screen 100. If the feature information of the face photo is not matched with the preset feature information, the processor can not execute the acquisition operation of the payment two-dimensional code. Or the processor may retrieve other two-dimensional codes and display the other two-dimensional codes on the display screen 100. For example, a two-dimensional code for a friend is displayed on the display screen 100.
In order to save processing resources of the processor, when the operation switch 400 detects a predetermined touch operation, the processor may obtain the non-payment two-dimensional code when detecting the predetermined touch operation. I.e., other two-dimensional codes not used for payment, the processor may directly acquire the other two-dimensional codes and display the other two-dimensional codes on the display screen 100.
The electronic device can be installed with at least one application program, and each application program comprises at least one two-dimensional code. When the operation switch detects a preset touch operation, the processor may obtain an application program corresponding to the preset touch operation, and display a two-dimensional code corresponding to the preset touch operation in the application program on the display screen 100.
When the application program comprises at least two-dimension codes, the preset touch operation can correspond to one two-dimension code in the application program and can also correspond to all the two-dimension codes in the application program. That is, when the operation switch detects a preset touch operation, the processor may obtain an application program corresponding to the preset touch operation, and display a two-dimensional code corresponding to the preset touch operation in the application program on the display screen 100. Or all the two-dimensional codes corresponding to the preset touch operation in the application program are displayed on the display screen 100.
For example, the preset touch operation includes a first preset touch operation and a second preset touch operation. The first preset touch operation corresponds to the application program A, and the second preset touch operation corresponds to the application program B. When the operation switch detects a first preset touch operation, the processor may obtain the application program a, and display a two-dimensional code corresponding to the first preset touch operation in the application program a on the display screen 100. Assuming that the application a includes 3 two-dimensional codes, the processor may display one of the two-dimensional codes corresponding to the first preset touch operation in the application a on the display screen 100. Or the processor may display all the two-dimensional codes corresponding to the first preset touch operation in the application program a on the display screen 100. For example, 3 two-dimensional codes in the application program a are displayed on the display screen 100. When the operation switch detects a second preset touch operation, the processor may obtain the application program B, and display the two-dimensional code corresponding to the second preset touch operation in the application program B on the display screen 100. Assuming that the application B includes 4 two-dimensional codes, the processor may display one of the two-dimensional codes corresponding to the second predetermined touch operation in the application B on the display screen 100. Or the processor may display all the two-dimensional codes corresponding to the second preset touch operation in the application program B on the display screen 100. For example, 4 two-dimensional codes in the application B are displayed on the display screen 100. Or 3 two-dimensional codes corresponding to the second preset touch operation in the application program are displayed on the display screen 100.
The two-dimensional code in the application program is a two-dimensional code that can be generated in the application program. Such as a payment code in a WeChat application.
It should be noted that, in the actual assembly process, since the first flexible circuit board 422 is made of a soft material, deformation is easily generated, and in order to reduce the deformation of the first flexible circuit board 422 in the assembly process, the thickness of the first flexible circuit board 422 may be increased. Of course, a reinforcing plate may be fixedly connected to the first flexible circuit board 422.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating a second structure of the operation switch of the electronic device shown in fig. 2. The operation switch 400 may further include a reinforcing sheet 426, the reinforcing sheet 426 is fixedly connected to the first flexible circuit board 422, and the reinforcing sheet 426 and the pressure detector 424 are respectively disposed on both sides of the first flexible circuit board 422. The reinforcing sheet 426 is fixedly attached to the inner surface of the side 222 at the location of the control area 2222. The reinforcing plate 426 may increase the overall strength of the pressure detecting module 420 for assembly, thereby preventing deformation during assembly and difficulty in assembly. It should be noted that the pressure detector 424 and the reinforcing sheet 426 may not be provided on both sides of the first flexible circuit board 422.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating a third structure of the operation switch of the electronic device shown in fig. 2. The reinforcing sheet 426 and the pressure detector 424 may be disposed on the same side of the first flexible circuit board 422, the pressure detector 424 may be disposed within a gap 428 of the reinforcing sheet 426, and the space of the gap 428 is larger than the size of the pressure detector 424. Such as the thickness of the reinforcing sheet 426 is greater than the thickness of the pressure detector 424, the reinforcing sheet 426 and the pressure detector 424 do not touch. Therefore, the pressure detector 424 is ensured not to contact with the reinforcing sheet 426 or the side edge 222 when being deformed by the pressure, so that the accuracy of the pressure detector 424 for detecting the pressing force is affected.
It will be appreciated that in order for the pressure detector 424 to be able to effectively detect pressure, a void 428 may be provided in the reinforcing sheet 426, with the pressure detector 424 being spatially located within the void 428. Therefore, when the side 222 of the control area 2222 receives the acting force, the stress of the acting force is applied to the pressure detector 424 at the position of the gap 428 due to the arrangement of the reinforcing sheet 426, so that the signal detected by the pressure detection module 420 can be more accurate. In some embodiments, two reinforcing sheets 426 may be connected to the first flexible circuit board 422 to form the gap 428, or a gap 428 may be opened on one reinforcing sheet 426.
It should be noted that the accuracy of the signal detected by the pressure detecting module 420 can be improved without providing the reinforcing sheet 426, such as providing a groove on the side 222 of the control area 2222 to locate the pressure detector 424 in the groove, so that the thickness of the two sides of the groove is larger, and thus the thickness of the position of the pressure detector 424 is smaller, and the deformation is also easy to occur.
It should be noted that the pressure detection module 420 may also detect other operations, such as a sliding operation. The pressure detection module 420 may determine that it is continuously moving based on the pressure it detects.
The pressure detection module 420 may also control the display screen 100 to display a two-dimensional code when detecting a preset touch operation. For example, when the pressure detection module 420 detects that the pressure increases gradually, it may be determined as a predetermined touch operation for transmission to the processor of the circuit board 800, and the processor may control the display screen 100 to display the two-dimensional code according to the predetermined touch operation. Of course, the operation of controlling the display screen 100 to display the two-dimensional code may also be other operations, such as a slide operation or the like.
Referring to fig. 6, fig. 6 is a fourth structural diagram of the operation switch of the electronic device shown in fig. 2. The operation switch 400 may further include an ultrasonic detection module 440, and the ultrasonic detection module 440 may include a second flexible circuit board 442, a signal transmitting part 444, and a signal receiving part 446. The signal transmitting portion 444 and the signal receiving portion 446 are electrically connected to the second flexible circuit board 442. The signal transmitting portion 444 and the signal receiving portion 446 may be made of a piezoelectric ceramic material. The second flexible circuit board 442 may be disposed on an inner surface of the side 222 of the control area 2222, such as by being adhered to the inner surface of the side 222 with glue, double-sided tape, or the like. The ultrasonic detection module 440 may receive different signals, such as different operation modes, and may determine the control signal according to the operation mode to control the functions of the electronic device 20 according to the control signal.
The ultrasonic detection module 440 can detect the pressed position of the control area 2222 to achieve positioning. Or the ultrasonic detection module 440 can detect a specific position for the finger to be placed in the control area 2222, so as to realize the positioning. When the pressing force continuously moves, or the user's finger slides in the control area 2222, the ultrasonic detection module 440 may detect the sliding operation to determine that the sliding operation is a predetermined touch operation, convert the predetermined touch operation into an electrical signal and transmit the electrical signal to the processor of the circuit board 800, and the processor may control the display screen 100 to display the two-dimensional code. Thereby, the two-dimensional code can be rapidly displayed. It should be noted that the ultrasonic detection module 440 may also control the display screen 100 to display the two-dimensional code according to other detected operations.
It should be further noted that the ultrasonic detection module 440 can respectively control the display screen to display two-dimensional codes of different applications according to two or more different sliding operations. For example, assume that the preset touch operation includes a first sliding operation and a second sliding operation, where the first sliding operation is different from the second sliding operation. When the ultrasonic detection module 440 detects the first sliding operation, the processor correspondingly controls the display screen 100 to display the two-dimensional code in the application program a. When the ultrasonic detection module 440 detects the second sliding operation, the processor correspondingly controls the display screen 100 to display the two-dimensional code in the application program B. The preset touch operation may include a first sliding operation and a second sliding operation, and the first sliding operation and the second sliding operation are different.
It is understood that when a plurality of two-dimensional codes exist in the application a or the application B, the processor may control the display screen 100 to display all the two-dimensional codes in the application a or the application B. Alternatively, the processor may control the display screen 100 to display the common two-dimensional code in the application program a or the application program B.
It should be noted that the ultrasonic detection module 440 can respectively control the display screen to display different two-dimensional codes of the same application program according to two or more different sliding operations. For example, assuming that there are 3 two-dimensional codes in the application a, when the ultrasonic detection module 440 detects the first sliding operation, the processor correspondingly controls the display screen 100 to display the first two-dimensional code in the application a. When the ultrasonic detection module 440 detects the second sliding operation, the processor correspondingly controls the display screen 100 to display the second two-dimensional code in the application program a. When the ultrasonic detection module 440 detects the third sliding operation, the processor correspondingly controls the display screen 100 to display the third two-dimensional code in the application program a. The preset touch operation may include a first sliding operation, a second sliding operation, and a third sliding operation. The first sliding operation, the second sliding operation, and the third sliding operation are different from each other.
It is understood that other operations, such as a tap, may also be detected by the ultrasonic detection module 440. The ultrasonic detection module 440 may also control other functions of the electronic device 20 according to other operations or different sliding operations.
Wherein the sliding direction of the sliding operation is along the length of the side 222.
It is understood that a signal transmitting portion 444 and a signal receiving portion 446 may be disposed at an interval on the ultrasonic detection module 440. A plurality of signal transmitting sections 444 and a plurality of signal receiving sections 446 may be provided at intervals.
The operation switch 400 is not limited to the ultrasonic detection module 440 and the pressure detection module 420. In some embodiments, the operation switch 400 may include a pressure detection module and an ultrasonic detection module. Such as disposing the pressure detector, the ultrasonic-wave signal transmitting section, and the ultrasonic-wave signal receiving section on the same flexible circuit board. For example: a pressure detector is disposed between a signal transmitting portion and a signal receiving portion. Of course, if the pressure detector is plural, each pressure detector is disposed between one signal transmitting portion and one signal receiving portion. The operation switch 400 includes both a pressure detector by which a degree of pressing can be effectively detected and an ultrasonic detector by which a pressed position can be effectively detected. Thereby, not only the function of the electronic device 20 such as controlling the display screen 100 to display the two-dimensional code can be accurately controlled according to the received signal. Meanwhile, the function of preventing mistaken touch can be realized according to the pressing intensity and the pressing position.
It should also be noted that the electronic device 20 may also be provided with one or more ultrasonic detectors and one or more pressure detectors in different control areas 2222.
It is to be understood that when the operation switch 400 includes the ultrasonic detector and the pressure detector, the arrangement thereof is not limited thereto.
Referring to fig. 7, fig. 7 is a second partial sectional view of the electronic device shown in fig. 1 along the direction P2-P2. The operation switch 400 of the electronic device may include a pressure detection module 480 and a position detection module 460. The pressure detecting module 480 and the position detecting module 460 may be disposed in the first receiving groove 2224 formed on the inner surface of the side 222.
The side 222 may have a bottom wall 22242 and a side wall 22244 on the inner surface, the side wall 22244 may be disposed around the bottom wall 22242, and the side wall 22244 may form the first receiving groove 2224 around the bottom wall 22242. The pressure detecting module 480 may be disposed on the sidewall 22244, and the pressure detecting module 480 may detect the pressing force of the side 222. The pressure detection module 480 may include a pressure detector 482 and a first flexible circuit board 484, and the pressure detector 482 may be disposed on the first flexible circuit board 484. The pressure detector 482 may comprise a piezoresistive or voltage sensor. The pressure detecting module 480 can determine the degree of pressing force of the pressing operation by detecting the deformation of the side 222. It should be noted that the pressure detection module 480 can also refer to the pressure detection module 420, and is not described herein again.
It is understood that the first receiving groove 2224 may have a depth of about 5 mm, such as 4.5 mm to 5.5 mm, which is sufficient to receive the pressure detection module 480 on the side wall 22244.
The position detection module 460 may be disposed on the bottom wall 22242, and the position detection module 460 may detect the pressing position of the side edge 222, or the position detection module 460 may detect the pressed position of the side edge. The processor of the electronic device can determine the detection result according to the pressing force degree and the pressing position, or control the operation of the electronic device, and the processor can control the related functions of the electronic device according to the detection result. Such as the detection result may include a pressing operation, a sliding operation, and the like. The position detection module 460 may include a position detector 462 and a second flexible circuit board 464, and the position detector 462 may be disposed on the second flexible circuit board 464. The position detector 462 may include an ultrasonic sensor that can determine the location of the compression based on the ultrasonic signal it transmits and the ultrasonic signal that is fed back. The position detection module 460 can refer to the ultrasonic detection module 440, and is not described herein.
It should be noted that the structure of the ultrasonic sensor may occupy a smaller space than the piezoresistive sensor, such as a space of 0.9 mm to 1.2 mm. Therefore, the width of the first receiving groove 2224 can be set to 0.9 mm to 1.2 mm, so that the side edge 222 can be set narrower, and a narrow bezel design can be more easily implemented.
The position detection module 460 and the pressure detection module 480 are both disposed in the first receiving groove 2224, and the first flexible circuit board 484 and the second flexible circuit board 464 can be connected together, so that the overlapping of a plurality of flexible circuit boards and an additional temporary space can be reduced. Of course, the first flexible circuit board 484 and the second flexible circuit board 464 may be integrally provided, and different traces may be arranged on an integrated structure for the pressure detector 462 and the position detector 482 to work.
Referring to fig. 8, fig. 8 is a partial cross-sectional view of the electronic device shown in fig. 1, the side edge of the electronic device being taken along the direction P2-P2. The outer surface of the side 222 includes a first surface 2223, a second surface 2221, and a third surface 2225, which are connected in sequence. First surface 2223 may be arcuate in shape, or may have other shapes. The second surface 2221 may be curved, or may have other shapes. Third surface 2225 may be arcuate in shape, or may have other shapes. In some embodiments, the minimum distance between first surface 2223 and third surface 2225 is 1.6 millimeters to 1.8 millimeters. When the width of the first receiving groove 2224 formed in the side edge 222 is about 1 mm, the side walls on the two sides of the first receiving groove 2224 still have sufficient strength to ensure the overall stability of the side edge 222.
Note that a part of a rear cover of the electronic apparatus may be provided on the third surface 2225, and an edge of the rear cover may abut against the second surface 2221. A portion of a display screen of the electronic device may be disposed on the first surface 2223, and an edge of the display screen may abut the second surface 2221.
Among them, the second surface 2221 may have a first sub-surface 22211, a second sub-surface 22212, and a third sub-surface 22213 connected in this order. The first sub-surface 222111 may be curved, the second sub-surface 22212 may be curved, and the third sub-surface 22213 may be in a bent configuration. The connection of first sub-surface 22211 and first surface 2223 may form a first recess 2227, and first recess 2227 may receive an edge of the display screen. I.e., the edge of the display screen, may be disposed within the first recess 2227. It should be noted that the first sub-surface 22211 may be provided with a wave-shaped structure, such as two recesses, one for placing the edge of the display screen, and the other for placing the edge of the cover plate covering the display screen. The connection of third sub-surface 22213 and third surface 2225 may form a second recess 2228, and second recess 2228 may receive an edge of the rear cover. In some embodiments, the distance between the first sub-surface 22211 and the third sub-surface 22213 gradually increases from the inner surface of the side 222 toward the outer surface of the side 222, to the second sub-surface 22212.
Referring to fig. 9, fig. 9 is a third partial sectional view of the electronic device shown in fig. 1 along the direction P2-P2. The electronic device 20 may further include a touch detection module 300, and the touch detection module 300 may be disposed between the side 222 and the rear cover 240. The side 222 may further include a detection area 2226, the detection area 2226 may be disposed adjacent to the control area 2222, the control area 2222 may be a middle position of the side 222, and the detection area 2226 may be located outside the middle position. Such as detection zone 2226, is located on a side adjacent to rear cover 240. The touch detection module 300 may be adjacent to the rear cover 240, or may be disposed between the rear cover 240 and the side 222, so as to be covered by the rear cover 240 for protection. The operation switch 400 may be located between the touch detection module 300 and the display screen 100.
The touch detection module 300 may be a capacitive detector, and the rear cover 240 may be made of glass. The capacitance detector is an electrode plate with a certain shape, under the condition that no finger touches the surface of the sensor, a certain capacitance (self-capacitance) is formed between the electrode plate and the surrounding electrodes, when the finger touches the surface of the sensor, the conductive property and the large mass of a human body form a grounded conductive layer, so that electric field lines are formed, and the capacitance between the capacitance detector and the ground is changed. By detecting this change in capacitance, it is possible to know whether there is a finger press. Thereby, the function of preventing the erroneous touch is realized through the touch detection module 300. It should be noted that the capacitive detector can refer to the touch function of the display screen.
The processor on the circuit board 800 of the electronic device 20 can control the electronic device 20 according to the detection result of the touch detection module 300 and the detection result of the pressure detection module 420. Of course, the processor may control the electronic device 20 only according to the detection result of the pressure detection module 420, or may control the electronic device 20 according to the detection result of the touch detection module 300. The detection result of the touch detection module 300 may include a sliding operation, and the processor may control the display screen 100 of the electronic device 20 to display a two-dimensional code according to the sliding operation.
It should be noted that, when the touch detection module 300 is adjacent to the rear cover 240, the touch detection module 300 may be covered on the capacitance detector through a touch cover plate, the touch cover plate may be connected with the rear cover 240 in a matching manner, and the touch cover plate may protect the capacitance detector. When the detection area 2226 of the side 222 has an arc-shaped structure, the capacitive detector may be disposed on a third flexible circuit board, and the third flexible circuit board may be disposed on the side 222 at the position of the detection area 2226 of the arc-shaped structure. The corresponding touch cover or the back cover 240 may be disposed in an arc shape corresponding to the touch detection module 300 and corresponding to the arc structure of the side 222. The touch detection module 300 may be directly disposed on the outer surface of the side 222, or a second receiving groove may be formed on the side 222 for receiving the touch detection module 300.
Wherein the side edges such as the side edges 222, the pressure detection module such as the pressure detection module 420, and the touch detection module such as the touch detection module 300 may form a housing assembly. In the housing assembly, the pressure detection module 420 is disposed in the control area 2222 of the side 222, and the touch detection module 300 is disposed in the detection area 2226 of the side 222. The pressure detection module 420 can detect whether the control area 2222 has a pressing operation, and the touch detection module 300 can determine whether the detection area 2226 has a touch operation. The touch operation may include a sliding operation, and the like. It should be noted that the housing assembly can be applied to the electronic device 20. The housing assembly may also include an ultrasonic detection module such as ultrasonic detection module 440. The operation position of the control area 2222 of the side 222 can be detected by the ultrasonic detection module 440.
It will be appreciated that due to the limited width of the side 222, a user's finger pressing on the control area 2222 of the side 222 will tend to press a portion of the finger against the rear cover 240 and possibly the display screen 100. In the embodiment of the application, the detection area is set at the position of one side of the control area 2222 and the position of one side of the rear cover 240, so as to install the touch detection module 300, and the touch detection module can be used to determine whether a user presses a finger, thereby realizing the anti-false touch operation of the switch 400.
It should be noted that, when the user touches the operation switch 400, the display screen 100 may be in a bright screen state, and whether the display screen 100 has a touch operation may also be detected according to the display screen 100, and if the display screen 100 has a touch operation, the function of preventing a false touch may be further improved, so as to implement more accurate control of the operation switch 400.
For further description, in the embodiment of the present application, the preset touch operation detected by the operation switch controls the display screen 100 to display the two-dimensional code, which is defined in the following method.
Referring to fig. 10, fig. 10 is a schematic flowchart illustrating a two-dimensional code display method according to an embodiment of the present application. The two-dimensional code display method is applied to an electronic device such as the electronic device 20, and the electronic device 20 can refer to the above contents, which are not described herein again. The display method of the two-dimensional code may include:
101. the touch operation of the side 222 is detected by operating the switch 400.
The touch operation may include at least one of a pressing operation and a sliding operation. The pressing operation may include a long press, a heavy press, or a press-down, etc. The sliding operation may include a sliding operation in a positive direction along the length of the side edge or a sliding operation in a negative direction along the length of the side edge, and so on.
102. When the operation switch 400 detects a preset touch operation, the two-dimensional code is acquired.
Some touch operations may be set as preset touch operations, that is, some press operations may be set as preset press operations, and some slide operations may be set as preset slide operations. For example, the preset pressing operation may include a long press, a heavy press, or a press-down, and the like. The preset sliding operation may include a sliding operation in a forward direction along the length of the side edge or a sliding operation in a reverse direction along the length of the side edge, and the like. The preset touch operation may include at least one of a preset pressing operation and a preset sliding operation. After the operation switch 400 of the electronic device 20 detects the preset touch operation, the preset touch operation may be transmitted to the processor of the electronic device 20. The processor of the electronic device 20 may also obtain the preset touch operation directly from the operation switch 400. Therefore, when the operation switch 400 detects a preset touch operation, the processor can acquire the two-dimensional code.
103. The two-dimensional code is displayed on the display screen 100.
After the processor acquires the two-dimensional code, the processor may display the two-dimensional code on the display screen 100.
The display screen 100 may have a blank screen state, a bright screen state, a locked screen state, an unlocked screen state, or the like.
For example, when the operation switch receives a touch operation for controlling the display screen to be bright, the processor can control the display screen to be bright, and the display screen is in a bright screen state at the moment. When a user places the electronic equipment in the bright screen state aside and does not perform any operation, the display screen automatically turns off after a period of time; or when the operation switch receives touch operation for controlling the display screen to be turned off, the display screen is turned off. After the display screen is extinguished, the electronic device is in a black screen (screen-off) state, and at the moment, a system of the electronic device is generally in a dormant state. When the display screen is automatically turned off, the electronic device may not have been subjected to the screen locking process, and thus, the electronic device is in the black screen state and is also in the unlocked state at this time. When the operation switch receives touch operation for controlling the display screen to be turned off, the electronic equipment simultaneously performs screen locking processing, so that the electronic equipment is in a screen-locking state while being in a screen-blacking state.
When the operation switch receives a touch operation (an operation of waking up the display screen), the processor can control the display screen to be on, and at the moment, the electronic equipment can be in a locked state, namely a screen locking state. And when the unlocking information input by the user is received and the unlocking information passes the verification, the electronic equipment enters an unlocking state.
It should be noted that, when the electronic device is in the black screen state, the electronic device may be in the unlock state or the lock screen state at the same time. When the electronic equipment is in the bright screen state, the electronic equipment can also be in the unlocking state or the screen locking state at the same time.
Referring to fig. 11 and 12, when the operation switch 400 detects a preset touch operation, if the display screen 100 is in a black screen state, the processor may switch the display screen 100 in the black screen state to a bright screen state, and display the two-dimensional code on the display screen 100 in the bright screen state. When the operation switch 400 detects a preset touch operation, if the display screen 100 is in a bright screen state, the processor may directly display the two-dimensional code on the display screen 100 in the bright screen state. It should be noted that, if the display screen 100 in the bright screen state is in the lock screen state, the two-dimensional code may also be displayed on the lock screen interface. If the display screen 100 in the bright screen state is in the unlocked state, the two-dimensional code may also be displayed on the unlocking interface.
As shown in fig. 13, the display screen 100 may include a first area and a second area, the first area is in a bright screen state, the second area is in a dark screen state, and when the operation switch 400 detects a preset touch operation, the processor may display the two-dimensional code on the first area of the display screen 100. That is, when the operation switch 400 detects the preset touch operation, the processor may control a portion of the display screen 100 to be bright, that is, control a first area to be bright, and then display the two-dimensional code on the first area. It can also be said that when the operation switch 400 detects a preset touch operation, the processor can determine the area of the display screen 100 that is on according to the size and the position of the two-dimensional code. In a popular way, only the area of the display screen 100 displaying the two-dimensional code is in a bright screen state, and the other areas are in a black screen state.
As shown in fig. 11, when the operation switch 400 detects a preset touch operation, if the display screen 100 is in the screen lock state, the processor may display the two-dimensional code on the display screen 100 in the screen lock state. As shown in fig. 12, when the operation switch 400 detects a preset touch operation, if the display screen 100 is in an unlocked state, the processor may display the two-dimensional code on the display screen 100 in the unlocked state.
It should be noted that, when the display screen 100 is in the unlocked state or the locked state, if the display screen 100 is also in the blank state at this time. Then, the processor may first switch the display screen 100 in the black screen state to the bright screen state, and then display the two-dimensional code on the display screen 100 in the bright screen state, that is, the two-dimensional code may be displayed on the display screen 100 in the bright screen and unlocked states. Alternatively, as shown in fig. 11, the two-dimensional code may be displayed on the display screen 100 in a bright screen and locked screen state to facilitate the user to use the two-dimensional code.
When the operation switch 400 detects a preset touch operation, the processor may turn on the camera 600 to obtain a face picture, obtain a two-dimensional code according to feature information of the face picture, and then display the two-dimensional code on the display screen 100. For example, when the operation switch 400 detects a preset touch operation, the processor may turn on the camera 600 to obtain a face picture, and detect whether the feature information of the face picture matches with the preset feature information, if so, obtain a two-dimensional code, and then display the two-dimensional code on the display screen 100.
Assuming that the electronic device is in a screen locking state, when the operation switch 400 detects a preset touch operation, the processor may turn on the camera 600 to obtain a face photo, and perform identity verification according to feature information of the face photo. If the identity authentication is passed, the processor may switch the display screen in the lock screen state to the unlock state, and display the two-dimensional code on the display screen 100 in the unlock state.
The two-dimensional code may include a payment two-dimensional code through which the user may perform a payment operation. In order to ensure the property safety of the user, when the operation switch 400 detects a preset touch operation, the processor may detect whether the preset touch operation corresponds to the acquisition of the payment two-dimensional code. If the preset touch operation corresponds to obtaining the payment two-dimensional code, the processor may open the camera 600 to obtain a face picture. Then, the processor can detect whether the feature information of the face photo is matched with preset feature information. If the feature information of the face photo matches the preset feature information, the processor can acquire the payment two-dimensional code and display the payment two-dimensional code on the display screen 100. If the feature information of the face photo is not matched with the preset feature information, the processor can not execute the acquisition operation of the payment two-dimensional code. Or the processor may retrieve other two-dimensional codes and display the other two-dimensional codes on the display screen 100. For example, a two-dimensional code for a friend is displayed on the display screen 100.
In order to save processing resources of the processor, when the operation switch 400 detects a predetermined touch operation, the processor may obtain the non-payment two-dimensional code when detecting the predetermined touch operation. I.e., other two-dimensional codes not used for payment, the processor may directly acquire the other two-dimensional codes and display the other two-dimensional codes on the display screen 100.
The electronic device can be installed with at least one application program, and each application program comprises at least one two-dimensional code. When the operation switch detects a preset touch operation, the processor may obtain an application program corresponding to the preset touch operation, and display a two-dimensional code corresponding to the preset touch operation in the application program on the display screen 100.
When the application program comprises at least two-dimension codes, the preset touch operation can correspond to one two-dimension code in the application program and can also correspond to all the two-dimension codes in the application program. That is, when the operation switch detects a preset touch operation, the processor may obtain an application program corresponding to the preset touch operation, and display a two-dimensional code corresponding to the preset touch operation in the application program on the display screen 100. Alternatively, as shown in fig. 14, all the two-dimensional codes corresponding to the preset touch operation in the application program, that is, the two-dimensional code Q1, the two-dimensional code Q2, and the two-dimensional code Q3, are displayed on the display screen 100.
For example, the preset touch operation includes a first preset touch operation and a second preset touch operation. The first preset touch operation corresponds to the application program A, and the second preset touch operation corresponds to the application program B. When the operation switch detects a first preset touch operation, the processor may obtain the application program a, and display a two-dimensional code corresponding to the first preset touch operation in the application program a on the display screen 100. Assuming that the application a includes 3 two-dimensional codes, the processor may display one of the two-dimensional codes corresponding to the first preset touch operation in the application a on the display screen 100. Or the processor may display all the two-dimensional codes corresponding to the first preset touch operation in the application program a on the display screen 100. For example, 3 two-dimensional codes in the application program a are displayed on the display screen 100. When the operation switch detects a second preset touch operation, the processor may obtain the application program B, and display the two-dimensional code corresponding to the second preset touch operation in the application program B on the display screen 100. Assuming that the application B includes 4 two-dimensional codes, the processor may display one of the two-dimensional codes corresponding to the second predetermined touch operation in the application B on the display screen 100. Or the processor may display all the two-dimensional codes corresponding to the second preset touch operation in the application program a on the display screen 100. For example, 4 two-dimensional codes in the application B are displayed on the display screen 100. Or 3 two-dimensional codes corresponding to the second preset touch operation in the application program are displayed on the display screen 100.
The two-dimensional code in the application program is a two-dimensional code that can be generated in the application program. Such as a payment code in a WeChat application.
The electronic device and the two-dimensional code display method provided by the embodiment of the application are described in detail above. The principles and implementations of the present application are described herein using specific examples, which are presented only to aid in understanding the present application. Meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (8)

1. An electronic device, comprising:
a housing comprising a side;
the operation switch is arranged on the inner surface of the control area of the side edge, the control area is provided with a self-luminous material or a luminous lamp, or the color setting of the position of the control area is different from the color setting of other positions of the side edge, the operation switch is used for detecting the touch operation of the side edge, the operation switch comprises a pressure detection module and an ultrasonic detection module, the pressure detection module comprises a pressure detector, the ultrasonic detection module comprises a signal transmitting part and a signal receiving part, the pressure detector is arranged between the signal transmitting part and the signal receiving part, and the touch operation is determined according to the degree of pressure received by the pressure detection module and the pressing position received by the ultrasonic detection module;
the display screen is arranged on the shell and used for displaying pictures;
a camera disposed within the housing; and
the processor is respectively electrically connected with the operating switch and the display screen, and is used for starting the camera to acquire a face photo when the operating switch detects a preset touch operation, acquiring a payment two-dimensional code if the feature information of the face photo is matched with preset feature information, and displaying the payment two-dimensional code on the display screen, and acquiring a two-dimensional code for adding friends if the feature information of the face photo is not matched with the preset feature information, and displaying the two-dimensional code for adding friends on the display screen;
the display screen comprises a first area and a second area, the size and the display position of the first area are determined according to the size and the position of the payment two-dimensional code or the two-dimensional code for adding friends, the first area is in a screen-on state, the second area is in a screen-off state, and the payment two-dimensional code or the two-dimensional code for adding friends is displayed on the first area of the display screen.
2. The electronic device according to claim 1, wherein the display screen has a black screen state and a bright screen state, and the processor is further configured to switch the display screen in the black screen state to the bright screen state when the operation switch detects a preset touch operation, and display the two-dimensional code on the display screen in the bright screen state;
the processor is further used for displaying the two-dimensional code on a display screen in a bright screen state when the operation switch detects a preset touch operation.
3. The electronic device according to any one of claims 1 to 2, wherein the display screen has a screen lock state and an unlock state, and the processor is further configured to display the two-dimensional code on the display screen in the screen lock state when the operation switch detects a preset touch operation;
the processor is further used for displaying the two-dimensional code on a display screen in an unlocking state when the operation switch detects a preset touch operation.
4. The electronic device according to any one of claims 1 to 2, wherein the electronic device is installed with at least one application program, each application program comprising at least one two-dimensional code;
the processor is further configured to acquire an application program corresponding to a preset touch operation when the operation switch detects the preset touch operation, and display a two-dimensional code corresponding to the preset touch operation in the application program on the display screen.
5. The electronic device according to any one of claims 1 to 2, wherein the preset touch operation includes at least one of a preset slide operation and a preset press operation.
6. A two-dimensional code display method is applied to electronic equipment, and the electronic equipment is characterized by comprising the following steps:
a housing comprising a side;
the operation switch is arranged on the inner surface of the control area on the side edge, the control area is provided with a self-luminous material or a luminous lamp, or the color setting of the position of the control area is different from the color setting of other positions on the side edge, the operation switch comprises a pressure detection module and an ultrasonic detection module, the pressure detection module comprises a pressure detector, the ultrasonic detection module comprises a signal transmitting part and a signal receiving part, and the pressure detector is arranged between the signal transmitting part and the signal receiving part;
the display screen is arranged on the shell and used for displaying pictures;
a camera disposed within the housing;
the display method of the two-dimensional code comprises the following steps:
detecting touch operation of the side edge through the operation switch, wherein the touch operation is determined according to the pressing force received by the pressure detection module and the pressing position received by the ultrasonic detection module;
when the operation switch detects a preset touch operation, the camera is started to obtain a face photo, if the feature information of the face photo is matched with preset feature information, a payment two-dimensional code is obtained, and if the feature information of the face photo is not matched with the preset feature information, a two-dimensional code for adding friends is obtained;
determining the size and the display position of a first area on a display screen according to the size and the position of the payment two-dimensional code or the two-dimensional code for adding friends, and determining the area except the first area on the display screen as a second area;
controlling the first area to be in a bright screen state, and controlling the second area to be in a dark screen state;
and displaying the payment two-dimensional code or the two-dimensional code for adding friends on a first area of the display screen.
7. The method for displaying the two-dimensional code according to claim 6, wherein the display screen has a black screen state, a bright screen state, an unlock state, and a lock screen state, and when the operation switch detects a preset touch operation, the method further includes:
detecting the state of the display screen;
the displaying the two-dimensional code on the display screen includes:
if the display screen is in a black screen state, switching the display screen from the black screen state to a bright screen state, and displaying the two-dimensional code on the display screen in the bright screen state;
if the display screen is in a bright screen state, displaying the two-dimensional code on the display screen in the bright screen state;
if the display screen is in the unlocking state, displaying the two-dimensional code on the display screen in the unlocking state;
and if the display screen is in a screen locking state, displaying the two-dimensional code on the display screen in the screen locking state.
8. The two-dimensional code display method according to claim 7, wherein the electronic device is installed with at least one application program, each application program includes at least one two-dimensional code, and acquiring the two-dimensional code when the operation switch detects a preset touch operation includes:
when the operation switch detects a preset touch operation, acquiring an application program corresponding to the preset touch operation;
acquiring a two-dimensional code corresponding to the preset touch operation in the application program;
the displaying the two-dimensional code on the display screen includes:
and displaying the two-dimensional code corresponding to the preset touch operation in the application program on the display screen.
CN201910579761.XA 2019-06-28 2019-06-28 Electronic equipment and two-dimensional code display method Active CN110286843B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910579761.XA CN110286843B (en) 2019-06-28 2019-06-28 Electronic equipment and two-dimensional code display method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910579761.XA CN110286843B (en) 2019-06-28 2019-06-28 Electronic equipment and two-dimensional code display method

Publications (2)

Publication Number Publication Date
CN110286843A CN110286843A (en) 2019-09-27
CN110286843B true CN110286843B (en) 2021-09-10

Family

ID=68020165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910579761.XA Active CN110286843B (en) 2019-06-28 2019-06-28 Electronic equipment and two-dimensional code display method

Country Status (1)

Country Link
CN (1) CN110286843B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111831378A (en) * 2020-07-10 2020-10-27 联想(北京)有限公司 Processing method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103489025A (en) * 2012-06-08 2014-01-01 北京千橡网景科技发展有限公司 Method and device for sending contact information
CN106598196A (en) * 2016-11-22 2017-04-26 维沃移动通信有限公司 Display method for graph code and mobile terminal
CN107833043A (en) * 2017-11-03 2018-03-23 珠海市魅族科技有限公司 Pay control method and device, terminal installation and computer-readable recording medium
CN108805557A (en) * 2018-06-10 2018-11-13 马鞍山倍亿通智能科技有限公司 A kind of reliable mobile payment device easy to use based on recognition of face

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109241714A (en) * 2016-01-06 2019-01-18 阿里巴巴集团控股有限公司 A kind of information image display methods and device
US11188900B2 (en) * 2016-12-01 2021-11-30 Mastercard International Incorporated Method and system for payment card verification via blockchain
CN107861677A (en) * 2017-11-28 2018-03-30 阿里巴巴集团控股有限公司 user interface switching method, device and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103489025A (en) * 2012-06-08 2014-01-01 北京千橡网景科技发展有限公司 Method and device for sending contact information
CN106598196A (en) * 2016-11-22 2017-04-26 维沃移动通信有限公司 Display method for graph code and mobile terminal
CN107833043A (en) * 2017-11-03 2018-03-23 珠海市魅族科技有限公司 Pay control method and device, terminal installation and computer-readable recording medium
CN108805557A (en) * 2018-06-10 2018-11-13 马鞍山倍亿通智能科技有限公司 A kind of reliable mobile payment device easy to use based on recognition of face

Also Published As

Publication number Publication date
CN110286843A (en) 2019-09-27

Similar Documents

Publication Publication Date Title
US10318786B2 (en) Integration of touch screen and fingerprint sensor assembly
CN107608576B (en) Display device
CN110472399B (en) Electronic device and control method thereof
CN110300198B (en) Shell assembly, electronic equipment and control method thereof
KR102471819B1 (en) Electronic device including sensor module for sensing pressure and for transmitting and receiving ultrasound signal, using piezoelectric element
CN110298288B (en) Display screen, electronic equipment and control method thereof
CN110138943B (en) Electronic equipment and control method of camera
CN110286805B (en) Electronic apparatus and control method thereof
CN110249101B (en) Vehicle portable device
CN110149439B (en) Shell assembly, electronic equipment and control method thereof
CN110333797B (en) Electronic device and control method thereof
CN110225166A (en) Electronic equipment and its control method
CN110286843B (en) Electronic equipment and two-dimensional code display method
CN110456940B (en) Electronic apparatus and control method thereof
CN110297565B (en) Electronic equipment and control method of touch component
CN110308859B (en) Electronic device and control method thereof
CN110278304B (en) Electronic device and control method of electronic device
CN110198414B (en) Electronic equipment and control method of camera
CN110308852B (en) Electronic apparatus and control method of light emitting device
CN110308770B (en) Electronic device and control method thereof
CN110300226B (en) Electronic equipment and control method of flashlight thereof
CN110286844A (en) The control method of electronic equipment and electronic equipment
CN110297566B (en) Electronic equipment and interface adjusting method
CN110290321B (en) Electronic equipment and method for selecting image processing mode thereof
CN110266854B (en) Electronic equipment and control method of camera thereof

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