CN112667067A - Payment method and device and electronic equipment - Google Patents

Payment method and device and electronic equipment Download PDF

Info

Publication number
CN112667067A
CN112667067A CN202011534583.8A CN202011534583A CN112667067A CN 112667067 A CN112667067 A CN 112667067A CN 202011534583 A CN202011534583 A CN 202011534583A CN 112667067 A CN112667067 A CN 112667067A
Authority
CN
China
Prior art keywords
payment
electronic equipment
input
condition
power
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.)
Pending
Application number
CN202011534583.8A
Other languages
Chinese (zh)
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 Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou 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 Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202011534583.8A priority Critical patent/CN112667067A/en
Publication of CN112667067A publication Critical patent/CN112667067A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Power Sources (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a payment method, a payment device and electronic equipment, and belongs to the technical field of electronics. The method comprises the following steps: receiving a first input when the electronic equipment is in a shutdown state; in response to the first input, starting the electronic equipment in a minimum system mode if the first input meets a preset condition; displaying a pre-stored first payment code in the minimum system mode. Through the payment method provided by the application, the power consumption required in the payment process can be reduced, and the condition that the payment fails due to insufficient electric quantity of the electronic equipment can be further reduced.

Description

Payment method and device and electronic equipment
Technical Field
The application belongs to the technical field of electronics, and particularly relates to a payment method, a payment device and electronic equipment.
Background
With the continuous development of electronic technology, electronic devices have more and more functions, wherein payment through the electronic devices is commonly used, and specifically, when the electronic devices are in a power-on state, a payment code of a payment application is found and displayed by opening the payment application installed on the electronic devices. However, because the integrated functional modules on the electronic device are more and more, the power consumption speed of the corresponding electronic device is also faster and faster, in the process of implementing the application, the inventor finds that the electric quantity of the electronic device is lower under the condition that payment is needed in practical application, and the power consumption of the existing payment mode is higher, so that the payment through the existing payment mode is easy to cause payment failure due to insufficient electric quantity of the electronic device.
Disclosure of Invention
The embodiment of the application aims to provide a payment method, a payment device and electronic equipment, and the problem that the existing payment mode is power-consuming can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a payment method, where the method includes:
receiving a first input when the electronic equipment is in a shutdown state;
in response to the first input, starting the electronic equipment in a minimum system mode if the first input meets a preset condition;
displaying a pre-stored first payment code in the minimum system mode.
In a second aspect, an embodiment of the present application provides a payment apparatus, including:
the receiving module is used for receiving a first input when the electronic equipment is in a shutdown state;
the starting module is used for responding to the first input and starting the electronic equipment in a minimum system mode under the condition that the first input meets a preset condition;
and the first display module is used for displaying a first pre-stored payment code in the minimum system mode.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions 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 the embodiment of the application, the electronic equipment is started in the minimum system mode of the electronic equipment under the condition that shutdown payment is needed, and the pre-stored payment code is displayed in the minimum system mode for payment, so that power consumption required in the payment process can be reduced, and the condition that the payment fails due to insufficient electric quantity of the electronic equipment can be reduced.
Drawings
FIG. 1 is a flow chart of a payment method provided by an embodiment of the present application;
fig. 2 is a schematic diagram of a complex judger according to an embodiment of the present disclosure;
fig. 3 is a schematic circuit diagram of a gyroscope according to an embodiment of the present application;
fig. 4 is a schematic circuit diagram of a microcontroller according to an embodiment of the present application;
FIG. 5 is a flow chart of a payment method provided by another embodiment of the present application;
FIG. 6 is a block diagram of a payment device provided in an embodiment of the present application;
fig. 7 is a block diagram of an electronic device according to an embodiment of the present application;
fig. 8 is a block diagram of an electronic device according to another embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described 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, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
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 payment method 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.
Referring to fig. 1, fig. 1 is a flowchart of a payment method provided in an embodiment of the present application, and as shown in fig. 1, the payment method includes the following steps:
step 101, receiving a first input when the electronic device is in a power-off state.
In the embodiment of the present application, the first input may include, but is not limited to, at least one of a press input for a key of the electronic device, a touch input for a display screen of the electronic device, a shake input for the electronic device, a gesture input, a fingerprint input, a facial image input, a password input, and an NFC (Near Field Communication) signal input.
And 102, responding to the first input, and starting the electronic equipment in a minimum system mode under the condition that the first input meets a preset condition.
In this embodiment, the minimum system mode may be understood as the most basic hardware and software environment that enables the electronic device to be powered on or run, such as a central processing unit, a power module, a display screen, and the like of the electronic device. Optionally, the present embodiment may only turn on the central processing unit, the power module, the display screen, and the memory of the electronic device when the electronic device is started in the minimum system mode.
It should be noted that, in practical applications, the circuit module to be started in the minimum system mode may be preset according to requirements, for example, if the gyroscope of the electronic device needs to be used, the central processing unit, the power supply module, the display screen, the memory, and the gyroscope of the electronic device may be started in the minimum system mode.
It is to be understood that the first input satisfying the preset condition may include, but is not limited to, at least one of the following:
when the first input is a press input of a key of the electronic device, the press input is matched with a preset press input;
matching the touch input with a preset touch input under the condition that the first input is the touch input to a display screen of the electronic equipment;
when the first input is a shaking input to the electronic device, the shaking input is matched with a preset shaking input;
under the condition that the first input is gesture input, matching the input gesture with a preset gesture;
in the case that the first input is a fingerprint input, the input fingerprint information is matched with preset fingerprint information;
under the condition that the first input is face image input, matching the input face image features with preset face features;
under the condition that the first input is password input, the input password information is matched with preset password information;
and under the condition that the first input is an NFC signal input, the electronic equipment successfully receives the input NFC signal, or the input NFC signal is a preset type of NFC signal.
The preset press input may include a long press input, a short press input, a multi-press input, and the like. The preset touch input may include at least one of a click input, a press input, a slide input, and the like for a touch screen of the electronic device. The preset shaking input may include a shaking input in which the shaking times satisfy a preset number of times condition, a shaking input in which the shaking amplitude satisfies a preset amplitude condition, a shaking input in which the shaking frequency satisfies a preset frequency condition, and the like, wherein the preset number of times condition, the preset amplitude condition, and the preset frequency condition may be reasonably set according to actual requirements. The preset type of NFC signal may include a payment type of NFC signal.
It should be noted that, in this embodiment, the trigger mode for the payment for shutdown (i.e., the first input) may be preset by the user, or the trigger mode for the payment for shutdown (i.e., the first input) may be determined based on the electric quantity of the electronic device.
And 103, displaying a first pre-stored payment code in the minimum system mode.
In this embodiment, the first payment code may be a two-dimensional payment code, a barcode, or the like. Optionally, the first payment code may be a payment code stored during the operation of the electronic device in the normal operation mode, or a payment code stored in a case that it is detected that the electronic device satisfies the shutdown condition. The payment code may be stored in a predetermined storage location, for example, a disk Data area, a disk logo area, a DDR (Double Data Rate) memory, a ROM of a touch chip, or a memory of a display IC (Integrated Circuit).
Optionally, the present embodiment may also preset display parameters of the payment code, for example, one or more of a display duration, a display color, a display brightness, a display size, whether to start the low power consumption display mode, and the like, so that the first payment code may be displayed in the minimum system mode by using the preset display parameters, and the effect and flexibility of displaying the first payment code are improved.
According to the payment method, the electronic equipment is started in the minimum system mode of the electronic equipment under the condition that shutdown payment is needed, and the pre-stored payment code is displayed through the display screen under the minimum system mode so as to carry out payment, so that power consumption required in the payment process can be reduced, and the condition that payment fails due to insufficient electric quantity of the electronic equipment can be reduced.
Optionally, before the electronic device is in a power-off state and if a trigger condition for payment after power-off is met, starting a minimum system mode of the electronic device, the method further includes:
storing N payment codes under the condition that the electronic equipment in a starting state meets a shutdown condition, wherein N is a positive integer, and the N payment codes comprise the first payment code;
and controlling the electronic equipment to shut down after the N payment codes are stored.
It can be understood that the N payment codes may be different payment codes, and specifically, may be payment codes corresponding to different applications in the electronic device.
In this embodiment, the shutdown condition may include a passive shutdown condition and an active shutdown condition, where the passive shutdown condition may include that a battery voltage of the electronic device is lower than a first threshold, or that a battery power of the electronic device is lower than a second threshold, and the like. The first threshold value can be set reasonably according to actual requirements, for example, 3.4V or 6.4V. Similarly, the second threshold may be set reasonably according to actual requirements, for example, 1%, 0.5%, and the like. The active shutdown condition may include receiving a shutdown signal. The value of N may be preset, for example, 1, 2, 3, etc.
In practical applications, N payment codes may be stored in a preset storage location when the electronic device is to be powered off, for example, the N payment codes may be stored in a disk Data area, a disk logo partition, a DDR (Double Data Rate) Memory, a ROM (Read-Only Memory) of a touch chip, a Memory of a display screen IC, or the like when the electronic device is powered off too low or a user is actively powered off, and the electronic device is powered off after the N payment codes are stored.
According to the embodiment, the N payment codes are stored firstly under the condition that the electronic equipment meets the shutdown condition, and the electronic equipment is controlled to be shut down after the N payment codes are stored, so that the validity of the stored payment codes can be enhanced, and the payment failure caused by the failure of the payment codes in the payment process is reduced.
Optionally, the displaying the pre-stored first payment code in the minimum system mode includes:
if the electronic equipment meets the shutdown condition that the battery voltage of the electronic equipment is lower than a first threshold value, displaying a pre-stored first payment code in a low-power-consumption display mode in the minimum system mode;
or if the electronic equipment meets the shutdown condition and receives a shutdown signal, displaying a first pre-stored payment code in a normal display mode in the minimum system mode.
In this embodiment, the low power consumption display mode may include at least one of the following: AOD (Always on Display) mode; reducing the refresh rate; the resolution is reduced; a black and white display mode; and displaying partially. It should be noted that, in the AOD mode, that is, the mode used by the screen-off clock, about 20mA is consumed. The reduced refresh rate can be reduced from 30fps for AOD to lower, say 15fps, for example.
The normal display mode may also be referred to as a non-low power consumption display mode or a normal screen display mode, and is a display mode relative to the low power consumption display mode. The first threshold value can be set reasonably according to actual requirements, for example, 3.4V or 6.4V.
In this embodiment, the prestored first payment code may be displayed in a low power consumption display mode under the condition that the electronic device is powered off passively, for example, the battery power is too low or the battery is in a low temperature environment, so as to further save power consumption.
Optionally, before the electronic device is in a power-off state and the first input is received, the method further includes:
determining a first input according to the battery power of the electronic equipment under the condition that the electronic equipment in a starting state meets a shutdown condition;
and turning on a circuit module associated with the first input in the electronic equipment.
In this embodiment, under the condition that the electronic device meets the shutdown condition, the battery power of the electronic device may be acquired, and the type of the first input for triggering shutdown payment may be determined based on the battery power. Alternatively, a higher battery level may correspond to a more power consuming triggering regime.
As described above, the first input may be a touch input, a human face input, a fingerprint input, and other input manners.
Specifically, the correspondence relationship between the battery power and the first input may be established in advance, and for example, the first input may be a face input in a case where the battery power is higher than 3%, a fingerprint input in a case where the battery power is between 3% and 2%, an NFC signal input in a case where the battery power is between 2% and 1%, a shake input in a case where the battery power is between 1% and 0.5, or the like.
It will be appreciated that the power module associated with the first input may be, for example, for a fingerprint input, the associated circuit module may be a fingerprint module; for the human face input, the associated circuit module can be a camera; for an NFC signal input, its associated circuit module may be an NFC module; for a shake input, its associated circuit module may be a gyroscope; for touch input, the associated circuit module may be a touch screen; for the key input, the associated circuit module may be a key, wherein the key may be a power key or a volume key of the electronic device, or a key dedicated to triggering shutdown payment; for gesture input, its associated circuit module may be a camera; for password input, its associated circuit module may be a touch screen.
In the embodiment, the first input for shutdown payment is determined according to the battery power of the electronic equipment under the condition that the electronic equipment meets the shutdown condition, so that the shutdown payment can be triggered by adopting the first input with higher safety when the power is higher, and the shutdown payment can be triggered by adopting the first input with lower power consumption when the power is lower; in addition, after the electronic equipment is shut down, a circuit module in the electronic equipment, which is associated with the first input, is controlled to be in an open state, so that it can be ensured that shutdown payment can be triggered based on the first input.
Optionally, after determining the first input for the shutdown payment, prompt information may be output, the prompt information being used to prompt the user for the first input, so that the user triggers the shutdown payment based on the first input.
Optionally, in the embodiment of the application, only the circuit module associated with the first input in the electronic device may be controlled to be in an on state, so that the power consumption may be saved while the shutdown payment may be triggered based on the first input.
Optionally, in this embodiment, the circuit module associated with the first input may be turned off when the shutdown payment is started, so as to further save power.
Optionally, the turning on a circuit module associated with the first input in the electronic device includes: if the first input is fingerprint input, only controlling a fingerprint module of the electronic equipment to be in an open state after the electronic equipment is shut down; if the first input is face image input, only controlling a camera of the electronic equipment to be in an open state after the electronic equipment is powered off; if the first input is an NFC signal input, only controlling an NFC module of the electronic equipment to be in an open state after the electronic equipment is powered off; if the first input is shaking input, only controlling a gyroscope of the electronic equipment to be in a starting state after the electronic equipment is powered off; if the first input is touch input, only controlling a touch screen of the electronic equipment to be in an open state after the electronic equipment is shut down; and if the first input is key input, only controlling the key of the electronic equipment to be in an open state after the electronic equipment is powered off.
According to the embodiment of the application, only the circuit module in the electronic equipment, which is associated with the first input, is controlled to be in the open state, so that the power can be saved while the shutdown payment can be triggered. In addition, the electronic equipment in the embodiment of the application supports various shutdown payment triggering modes such as fingerprint input, human face image input, shaking input, NFC signal input, touch input and key input, and is convenient for a user to operate.
Optionally, the controlling of the camera of the electronic device to be in the on state after the electronic device is turned off may be controlling of the camera of the electronic device to be in the on state of the low power consumption mode after the electronic device is turned off. The low power consumption mode may refer to a state when the operating power of the camera is less than a preset power, for example, parameters such as resolution and frame rate of the camera may be reduced to reduce power consumption of the camera.
Alternatively, as shown in fig. 2, the circuit modules corresponding to the first inputs of the respective types (i.e., the trigger modes of the respective types) may be all connected to the input end of the complex judger, and take the gyroscope shown in fig. 3 as an example, the gyroscope outputs the interrupt signal to the complex judger through the GYRO _ INT pin. The output terminal of the re-judging device is connected to the minimum system identification pin (MiniSYS _ GPIO) and the POWER _ KEY pin (PHONE _ ON _ N pin shown in fig. 4). In this way, in the embodiment of the present application, when the first inputs of the types (i.e., the trigger modes of the types) satisfy the corresponding preset conditions, the circuit modules corresponding to the first inputs of the types generate the interrupt signals, and input the interrupt signals to the re-judging device, and the re-judging device may judge whether to activate the minimum system identification PIN (MiniSYS _ GPIO) and whether to pull down the POWER _ KEY PIN (PHONE _ ON _ N PIN) according to the preset judgment rule. Taking the gyroscope shown in fig. 4 as an example, it outputs an interrupt signal to the re-judgment device through the GYRO _ INT pin.
For example, the camera can generate an interrupt signal and input the interrupt signal to the re-judging device under the condition that the face features acquired by the camera are matched with the preset face features; generating an interrupt signal by the fingerprint module under the condition that the acquired fingerprint information is matched with the preset fingerprint information and inputting the interrupt signal to the re-judging device; the gyroscope generates an interrupt signal and inputs the interrupt signal to the re-judging device under the condition that a shaking input aiming at the electronic equipment is received; generating an interrupt signal through an NFC module and inputting the interrupt signal to a re-judging device under the condition of receiving an NFC signal; generating an interrupt signal by the touch screen under the condition of receiving input aiming at the touch screen and inputting the interrupt signal to a re-judging device; and generating an interrupt signal by the key under the condition that the input aiming at the key of the electronic equipment is received, and inputting the interrupt signal to the re-judging device.
The complex judgment device may be a logic gate circuit, an integrated circuit, or the like. The preset decision rule may be, for example, that the PIN of the minimum system identifier is activated, that is, the minimum system mode is started, when the interrupt signal generated by the circuit module associated with any one of the touch modes is received; or the minimum system identification PIN may be activated when an interrupt signal generated by a circuit module associated with any two triggering modes of the multiple touch modes is received.
Optionally, after displaying the pre-stored first payment code in the minimum system mode, the method further includes:
under the condition that payment is successful based on the first payment code, detecting the current electric quantity of the electronic equipment to obtain a first electric quantity;
calculating the electric quantity required by single payment according to the first electric quantity and the electric quantity of the electronic equipment in the previous shutdown;
calculating the remaining payable times according to the first electric quantity and the electric quantity required by single payment;
and displaying the remaining payable times.
For example, the current electric quantity of the electronic device may be detected under the condition that the payment is successful based on the first payment code, a difference value between the current electric quantity (i.e., the first electric quantity) of the electronic device and the electric quantity at the previous shutdown time may be determined as the electric quantity required for one-time payment, that is, the electric quantity required for one-time payment, and a ratio of the current electric quantity of the electronic device to the electric quantity required for one-time payment may be determined as the remaining payable number of times and displayed for the user to check.
According to the method and the device, the user can check the remaining payable times through displaying, and the user can conveniently arrange subsequent payment requirements, so that the situation that the more important payment requirements are not met due to the fact that the battery power of the electronic equipment is too low is avoided.
Optionally, after displaying the pre-stored first payment code in the minimum system mode, the method further includes one of:
turning off the electronic device if the payment is successful based on the first payment code;
displaying a pre-stored second payment code in the minimal system mode if payment is successful based on the first payment code.
In an embodiment, by turning off the electronic device in case of successful payment based on the first payment code, power consumption may be saved.
In another embodiment, the next payment is facilitated by displaying a second pre-stored payment code in the minimal system mode if the payment is successful based on the first payment code.
The following description of the embodiments of the present application is made with reference to the following examples:
referring to fig. 5, a payment method provided in an embodiment of the present application may include:
step 201, initializing configuration.
In this step, the initialization configuration may include, but is not limited to, the following configurations:
the number of payment codes to be cached;
a trigger mode of closing payment or displaying payment code, wherein the trigger mode may include but is not limited to at least one of the following: triggering by a single key, triggering by a plurality of keys, triggering by double-clicking a touch screen, triggering by shaking, triggering by fingerprints, triggering by NFC and triggering by a camera;
display parameters of the payment code, such as time, color, brightness, size, whether a low power consumption display mode is displayed, and the like;
payment code payment state detection (detecting whether payment is finished or not, if payment is finished, executing post-payment action, and detecting electric quantity);
and the action after payment is, for example, continuously refreshing and displaying the next payment code or automatically shutting down the machine.
Step 202, the mobile terminal is in a normal use state.
And step 203, powering off the mobile terminal at low power or actively powering off the mobile terminal.
For example, the battery voltage of the mobile terminal is lower than a first threshold, or the battery level is lower than a second threshold, or a shutdown signal input by a user is received, for example, the user touches a shutdown key.
It should be noted that, even if the mobile terminal is powered off at low power in a normal use state, the battery still has a certain amount of power, which does not represent that the battery is completely powered off, and only cannot support complete power on in a normal mode. In the scenario of automatic power off in the low power state, there is still an opportunity and sufficient time to control the mobile terminal to perform some operations, such as caching some data in the memory.
And step 204, caching the N payment codes before the mobile terminal is powered off.
In this step, N payment codes may be cached to a preset storage location, for example, a disk data area, a disk logo partition, a DDR memory, a ROM of a touch chip, or a memory of a display screen IC.
Step 205, triggering and displaying the payment code.
In this step, the payment code is displayed by triggering or called as payment by shutdown. Specifically, the payment code may be triggered and displayed based on the configured triggering mode, and the minimum system mode is started when the triggering condition corresponding to the triggering mode is met, that is, the electronic device is turned on through the minimum system mode.
For example, the difference between the electronic device being powered on in the minimum system mode and being powered on completely (or referred to as normal power on) can be shown in table 1.
TABLE 1
Figure BDA0002852952900000111
Figure BDA0002852952900000121
Step 206, displaying the cached payment code on a display screen.
In this step, the payment code may be displayed based on the display parameter of the aforementioned configured payment code.
And step 207, completing payment.
After payment is completed, the above configured post-payment action may be performed, such as displaying the next payment code or powering off.
It should be noted that, after the mobile terminal is powered off, the mobile terminal may enter the normal power-on mode through a conventional power-on triggering manner, and enter the normal use state after being powered on.
It should be noted that, in the payment method provided in the embodiment of the present application, the execution subject may be a payment apparatus, or a control module in the payment apparatus for executing a loading payment method. In the embodiment of the present application, a payment device executing a loading payment method is taken as an example, and the payment device provided in the embodiment of the present application is described.
Referring to fig. 6, fig. 6 is a block diagram of a payment apparatus provided in an embodiment of the present application, and as shown in fig. 6, the payment apparatus 600 includes:
the receiving module 601 is configured to receive a first input when the electronic device is in a shutdown state;
an initiating module 602, configured to respond to the first input, and initiate the electronic device in a minimum system mode if the first input meets a preset condition;
a first display module 603, configured to display a pre-stored first payment code in the minimum system mode.
Optionally, the apparatus further comprises:
the storage module is used for storing N payment codes under the condition that the electronic equipment in the power-on state meets the power-off condition before the electronic equipment in the power-on state is started under the condition that the electronic equipment in the power-off state meets the trigger condition of power-off payment, wherein N is a positive integer, and the N payment codes comprise the first payment code;
and the control module is used for controlling the electronic equipment to be powered off after the N payment codes are stored.
Optionally, the first display module is specifically configured to:
if the electronic equipment meets the shutdown condition that the battery voltage of the electronic equipment is lower than a first threshold value, displaying a pre-stored first payment code in a low-power-consumption display mode in the minimum system mode;
or if the electronic equipment meets the shutdown condition and receives a shutdown signal, displaying a first pre-stored payment code in a normal display mode in the minimum system mode.
Optionally, the apparatus further comprises:
the determining module is used for determining a first input according to the battery power of the electronic equipment under the condition that the electronic equipment in the power-on state meets the power-off condition before the electronic equipment is in the power-off state and the first input is received;
and the starting module is used for starting a circuit module in the electronic equipment, which is associated with the first input.
Optionally, the apparatus further comprises:
the detection module is used for detecting the current electric quantity of the electronic equipment to obtain first electric quantity under the condition that payment is successful based on a first payment code after the first payment code which is stored in advance is displayed in the minimum system mode;
the first calculation module is used for calculating the electric quantity required by single payment according to the first electric quantity and the electric quantity of the electronic equipment in the previous shutdown;
the second calculation module is used for calculating the remaining payable times according to the first electric quantity and the electric quantity required by single payment;
and the second display module is used for displaying the residual payable times.
The payment device in the embodiment of the present application may be a device, and may also be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The payment device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The payment device provided by the embodiment of the application can realize each process in the above method embodiments, and is not described here again in order to avoid repetition.
In the payment apparatus 600 of the embodiment of the application, the receiving module 601 is configured to receive a first input when the electronic device is in a power-off state; an initiating module 602, configured to respond to the first input, and initiate the electronic device in a minimum system mode if the first input meets a preset condition; a first display module 603, configured to display a pre-stored first payment code in the minimum system mode. The electronic equipment is started in the minimum system mode of the electronic equipment under the condition that shutdown payment is needed, and the pre-stored payment code is displayed through the display screen under the minimum system mode so as to carry out payment, so that power consumption required in the payment process can be reduced, and the condition that the payment fails due to insufficient electric quantity of the electronic equipment can be reduced.
Optionally, as shown in fig. 7, an electronic device 700 is further provided in this embodiment of the present application, and includes a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and executable on the processor 701, where the program or the instruction is executed by the processor 701 to implement each process of the payment method embodiment, and can achieve the same technical effect, and no further description is provided 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.
Referring to fig. 8, fig. 8 is a block diagram of an electronic device according to another embodiment of the present application, and as shown in fig. 8, the electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810.
Those skilled in the art will appreciate that the electronic device 800 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 810 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. Drawing (A)8The electronic device structures shown in the figures do not constitute limitations 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 not repeated here.
The user input unit 807 is configured to receive a first input when the electronic device is in a power-off state;
a processor 810, configured to respond to the first input, and if the first input meets a preset condition, start the electronic device in a minimum system mode;
a display unit 806 for displaying a pre-stored first payment code in the minimum system mode.
Optionally, the processor 810 is further configured to:
the method comprises the steps that N payment codes are stored when the electronic equipment in the power-on state meets the power-off condition before first input is received when the electronic equipment is in the power-off state, wherein N is a positive integer, and the first payment code is a payment code in the N payment codes;
and controlling the electronic equipment to shut down after the N payment codes are stored.
Optionally, the display unit 806 is further configured to:
if the electronic equipment meets the shutdown condition that the battery voltage of the electronic equipment is lower than a first threshold value, displaying a pre-stored first payment code in a low-power-consumption display mode in the minimum system mode;
and if the electronic equipment meets the shutdown condition and receives a shutdown signal, displaying a first pre-stored payment code in a normal display mode in the minimum system mode.
Optionally, the processor 810 is further configured to:
determining a first input according to the battery power of the electronic equipment under the condition that the electronic equipment in a starting state meets a shutdown condition;
and turning on a circuit module associated with the first input in the electronic equipment.
Optionally, the processor 810 is further configured to, after the first pre-stored payment code is displayed in the minimum system mode, detect a current electric quantity of the electronic device to obtain a first electric quantity in case that payment is successful based on the first payment code; calculating the electric quantity required by single payment according to the first electric quantity and the electric quantity of the electronic equipment in the previous shutdown; calculating the remaining payable times according to the first electric quantity and the electric quantity required by single payment;
the display unit 806 is further configured to display the remaining payable number.
It should be understood that in the embodiment of the present application, the input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics Processing Unit 8041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 8071 and other input devices 8072. A touch panel 8071, also referred to as a touch screen. The touch panel 8071 may include two portions of a touch detection device and a touch controller. Other input devices 8072 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 809 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
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 the processor, the process of the payment method embodiment is implemented, and the same technical effect can be achieved, 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 Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
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 execute a program or an instruction to implement each process of the above payment method embodiment, and can achieve the same technical effect, and for avoiding 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.
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 above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, 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 (12)

1. A payment method, comprising:
receiving a first input when the electronic equipment is in a shutdown state;
in response to the first input, starting the electronic equipment in a minimum system mode if the first input meets a preset condition;
displaying a pre-stored first payment code in the minimum system mode.
2. The method according to claim 1, wherein before the electronic device is in a power-off state and if a trigger condition for payment after power-off is met, starting a minimum system mode of the electronic device, the method further comprises:
storing N payment codes under the condition that the electronic equipment in a starting state meets a shutdown condition, wherein N is a positive integer, and the N payment codes comprise the first payment code;
and controlling the electronic equipment to shut down after the N payment codes are stored.
3. The method of claim 1, wherein displaying the pre-stored first payment code in the minimum system mode comprises:
if the electronic equipment meets the shutdown condition that the battery voltage of the electronic equipment is lower than a first threshold value, displaying a pre-stored first payment code in a low-power-consumption display mode in the minimum system mode;
or if the electronic equipment meets the shutdown condition and receives a shutdown signal, displaying a first pre-stored payment code in a normal display mode in the minimum system mode.
4. The method of claim 1, wherein before receiving the first input while the electronic device is in the power-off state, the method further comprises:
determining a first input according to the battery power of the electronic equipment under the condition that the electronic equipment in a starting state meets a shutdown condition;
and turning on a circuit module associated with the first input in the electronic equipment.
5. The method of claim 1, wherein after displaying the pre-stored first payment code in the minimal system mode, the method further comprises:
under the condition that payment is successful based on the first payment code, detecting the current electric quantity of the electronic equipment to obtain a first electric quantity;
calculating the electric quantity required by single payment according to the first electric quantity and the electric quantity of the electronic equipment in the previous shutdown;
calculating the remaining payable times according to the first electric quantity and the electric quantity required by single payment;
and displaying the remaining payable times.
6. A payment device, comprising:
the receiving module is used for receiving a first input when the electronic equipment is in a shutdown state;
the starting module is used for responding to the first input and starting the electronic equipment in a minimum system mode under the condition that the first input meets a preset condition;
and the first display module is used for displaying a first pre-stored payment code in the minimum system mode.
7. The apparatus of claim 6, further comprising:
the storage module is used for storing N payment codes under the condition that the electronic equipment in the power-on state meets the power-off condition before receiving first input when the electronic equipment is in the power-off state, wherein N is a positive integer, and the N payment codes comprise the first payment code;
and the control module is used for controlling the electronic equipment to be powered off after the N payment codes are stored.
8. The apparatus of claim 6, wherein the first display module is specifically configured to:
if the electronic equipment meets the shutdown condition that the battery voltage of the electronic equipment is lower than a first threshold value, displaying a pre-stored first payment code in a low-power-consumption display mode in the minimum system mode;
or if the electronic equipment meets the shutdown condition and receives a shutdown signal, displaying a first pre-stored payment code in a normal display mode in the minimum system mode.
9. The apparatus of claim 6, further comprising:
the determining module is used for determining a first input according to the battery power of the electronic equipment under the condition that the electronic equipment in the power-on state meets the power-off condition before the electronic equipment is in the power-off state and the first input is received;
and the starting module is used for starting a circuit module in the electronic equipment, which is associated with the first input.
10. The apparatus of claim 6, further comprising:
the detection module is used for detecting the current electric quantity of the electronic equipment to obtain first electric quantity under the condition that payment is successful based on a first payment code after the first payment code which is stored in advance is displayed in the minimum system mode;
the first calculation module is used for calculating the electric quantity required by single payment according to the first electric quantity and the electric quantity of the electronic equipment in the previous shutdown;
the second calculation module is used for calculating the remaining payable times according to the first electric quantity and the electric quantity required by single payment;
and the second display module is used for displaying the residual payable times.
11. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the payment method of any one of claims 1-5.
12. A readable storage medium, on which a program or instructions are stored, which when executed by a processor, carry out the steps of the payment method according to any one of claims 1-5.
CN202011534583.8A 2020-12-23 2020-12-23 Payment method and device and electronic equipment Pending CN112667067A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011534583.8A CN112667067A (en) 2020-12-23 2020-12-23 Payment method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011534583.8A CN112667067A (en) 2020-12-23 2020-12-23 Payment method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112667067A true CN112667067A (en) 2021-04-16

Family

ID=75407967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011534583.8A Pending CN112667067A (en) 2020-12-23 2020-12-23 Payment method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112667067A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113869074A (en) * 2021-09-09 2021-12-31 维沃移动通信(杭州)有限公司 Service code-based service processing method and device and electronic equipment
CN116707052A (en) * 2022-10-31 2023-09-05 荣耀终端有限公司 Shutdown method and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN208126518U (en) * 2018-02-08 2018-11-20 广东越众光电科技有限公司 A kind of payment cipher
CN110505350A (en) * 2019-08-29 2019-11-26 王雷 Terminal operating control method, device and terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN208126518U (en) * 2018-02-08 2018-11-20 广东越众光电科技有限公司 A kind of payment cipher
CN110505350A (en) * 2019-08-29 2019-11-26 王雷 Terminal operating control method, device and terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113869074A (en) * 2021-09-09 2021-12-31 维沃移动通信(杭州)有限公司 Service code-based service processing method and device and electronic equipment
CN116707052A (en) * 2022-10-31 2023-09-05 荣耀终端有限公司 Shutdown method and electronic equipment
CN116707052B (en) * 2022-10-31 2024-08-16 荣耀终端有限公司 Shutdown method and electronic equipment

Similar Documents

Publication Publication Date Title
US20150015688A1 (en) Facial unlock mechanism using light level determining module
TWI675329B (en) Information image display method and device
US10901608B2 (en) Method for recognizing a screen-off gesture, and storage medium and terminal thereof
WO2022068723A1 (en) Payment interface display method and apparatus, and electronic device
US11860708B2 (en) Application processor and mobile terminal
WO2019019835A1 (en) Method and device for responding to blank screen gesture, and storage medium and mobile terminal
CN111857484B (en) Screen brightness adjusting method and device, electronic equipment and readable storage medium
CN113010257A (en) Electronic device, display control method, display control apparatus, and readable storage medium
TW201732679A (en) Information image display method and apparatus
CN112422817B (en) Image processing method and device
CN112667067A (en) Payment method and device and electronic equipment
WO2022048367A1 (en) Method and apparatus for displaying multimedia content, and terminal and storage medium
CN112286378A (en) Electronic equipment control method and electronic equipment
CN108647047A (en) A kind of awakening method and system based on mobile terminal
US11995162B2 (en) Method and apparatus for managing unlocking of an electronic device
US20240127624A1 (en) Fingerprint recognition method, electronic device, and readable storage medium
CN113806000A (en) Display method and device and electronic equipment
WO2023083090A1 (en) Information display method and apparatus, electronic device, and readable storage medium
CN112287713A (en) Two-dimensional code identification method and device
CN112416172A (en) Electronic equipment control method and device and electronic equipment
CN115577724A (en) Card reading method and device, electronic equipment and readable storage medium
CN115100699A (en) Fingerprint unlocking module, method and related device
CN113703592A (en) Secure input method and device
CN114222355A (en) Terminal power saving display method and device and electronic equipment
CN112698744A (en) Fingerprint module control method and device 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