CN116343411B - Power management method for POS machine and POS machine - Google Patents

Power management method for POS machine and POS machine Download PDF

Info

Publication number
CN116343411B
CN116343411B CN202310594529.XA CN202310594529A CN116343411B CN 116343411 B CN116343411 B CN 116343411B CN 202310594529 A CN202310594529 A CN 202310594529A CN 116343411 B CN116343411 B CN 116343411B
Authority
CN
China
Prior art keywords
screen
pos machine
state
base station
data
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
CN202310594529.XA
Other languages
Chinese (zh)
Other versions
CN116343411A (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.)
Qianhai Lianda Shenzhen Technology Co ltd
Original Assignee
Qianhai Lianda Shenzhen Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qianhai Lianda Shenzhen Technology Co ltd filed Critical Qianhai Lianda Shenzhen Technology Co ltd
Priority to CN202310594529.XA priority Critical patent/CN116343411B/en
Publication of CN116343411A publication Critical patent/CN116343411A/en
Application granted granted Critical
Publication of CN116343411B publication Critical patent/CN116343411B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/12Cash registers electronically operated
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3215Monitoring of peripheral devices
    • G06F1/3218Monitoring of peripheral devices of display devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

The invention relates to the technical field of communication, in particular to a power management method for a POS machine and the POS machine, wherein the method comprises the following steps: receiving a starting signal, performing first verification, further enabling the POS machine to enter a use state, and performing second verification according to a preset frequency; judging whether the POS machine is in a use state or not; if the screen is not in the use state, determining a first time length, and keeping the screen in a bright screen state for the first time length, so that the screen enters a dark screen state; determining a second time length, and enabling the screen to enter a dark screen state for the second time length after the first time length; and after the second time period, enabling the screen to enter a screen-off state. In the method, when the POS machine performs the second check-up, two kinds of data interaction can be completed through one data transmission, and furthermore, the POS machine can identify the energy consumption change in each display state and adjust the display time of the screen in each display state according to the change, so that the POS machine can be always kept in the display state with lower energy consumption, and the overall energy consumption of the POS machine is reduced.

Description

Power management method for POS machine and POS machine
Technical Field
The invention relates to the technical field of communication, in particular to a power management method for a POS machine and the POS machine.
Background
A POS (Point of sales, abbreviated as POS) is an electronic settlement terminal device for retail industry, which records and calculates sales and transaction amounts by scanning bar codes or inputting information such as commodity numbers, prices, etc., to complete a commodity purchase settlement process. The POS machine can effectively improve the management and service level of the retail industry, save the cost of manpower and material resources, improve the working efficiency and the customer satisfaction, and become one of the indispensable important devices in the retail industry at present.
In order to reduce the electric loss, a power utilization dormancy mechanism is preset in the existing POS machine, wherein the mechanism mainly sets a bright screen time and a wake-up time, and stops a key every time to enable a screen to keep the bright screen time, and if no key is pressed in the bright screen time, the screen is extinguished or darkened; the screen remains off or darkened for a wake-up time in which no key is pressed, and exits the wake-up state, shuts down or goes to deep sleep. However, the user sets the screen-on time and the wake-up time basically according to the personal use habit of the user, and compared with the case that the screen-on time and the wake-up time are not set, the user can save electricity consumption, but the user cannot determine how much the time is set to be most reasonable, if the time is too short, the POS machine is started frequently, and the electricity consumption can be higher.
Therefore, the existing dormancy mechanism of the POS machine has the problem that the energy consumption of equipment is difficult to effectively reduce.
Disclosure of Invention
Accordingly, it is desirable to provide a power management method for a POS device and a POS device to address the above-mentioned problems.
The embodiment of the invention is realized in such a way that a power management method for a POS machine comprises the following steps:
receiving a starting signal, and performing first verification to perform identity verification on the POS machine, so that the POS machine enters a use state, wherein the use state is a state when the POS machine executes at least one working process;
in the use state, carrying out a second check according to a preset frequency, wherein in the second check, information transmitted by the POS machine is combined information, the combined information comprises identity verification information and working process information, and the working process information is information which needs to be interacted with a base station when the POS machine executes a corresponding working process;
judging whether the POS machine is in the use state or not;
if the screen is in the use state, the screen is kept in a bright screen state;
if the POS machine is not in the use state, determining a first time length, and keeping the screen in the bright screen state for the first time length, so that the screen enters a dark screen state, wherein the energy consumption required by the POS machine for keeping the screen in the bright screen state in the first time length is not more than the energy consumption required by adjusting the screen from the dark screen state to the bright screen state;
determining a second time length, and enabling the screen to enter a dark screen state for the second time length after the first time length, wherein the energy consumption required by the POS machine for keeping the screen in the dark screen state in the second time length is not more than the energy consumption required by adjusting the screen from the screen-off state to the screen-on state;
and after the second time period, enabling the screen to enter the screen-off state.
In one embodiment, the invention provides a POS machine, which is characterized in that the POS machine manages the power supply thereof by the power supply management method.
The beneficial effects are that: the power management method provided by the invention comprises the following steps: receiving a starting signal, performing first verification, and further enabling the POS machine to enter a use state, and performing second verification according to a preset frequency in the use state; judging whether the POS machine is in the use state or not; if the screen is in the use state, the screen is kept in a bright screen state; if the screen is not in the use state, determining a first time length, and keeping the screen in the bright screen state for the first time length, so that the screen enters a dark screen state; determining a second time length, and enabling the screen to enter a dark screen state for the second time length after the first time length; and after the second time period, enabling the screen to enter a screen-off state. In the method, when the POS machine performs the second check, the information interacted with the base station not only comprises the information for identity verification, but also comprises the information of the working process, namely, two data interactions can be completed through one data transmission, and the energy consumption of the POS machine can be remarkably saved; furthermore, the energy consumption of the POS machine in each display state and the energy consumption for re-awakening the POS machine can change along with the increase of the service life, the change can be recognized by the POS machine, and the POS machine can adjust the display time of the screen in each display state according to the change, so that the POS machine can be always kept in the display state with lower energy consumption, and the overall energy consumption of the POS machine is further reduced.
Drawings
FIG. 1 is a flow chart of a method of power management for a POS machine, provided in one embodiment;
FIG. 2 is a diagram of an application environment for a first check and a second check of a power management method for a POS machine, according to one embodiment.
FIG. 3 is a block diagram of a POS machine in one embodiment.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
It will be understood that the terms "first," "second," and the like, as used herein, may be used to describe various elements, but these elements are not limited by these terms unless otherwise specified. These terms are only used to distinguish one element from another element. For example, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script, without departing from the scope of this disclosure.
As shown in fig. 1, in one embodiment, a power management method for a POS machine is provided, which specifically includes the following steps:
receiving a starting signal, and performing first verification to perform identity verification on the POS machine, so that the POS machine enters a use state, wherein the use state is a state when the POS machine executes at least one working process;
in the use state, carrying out a second check according to a preset frequency, wherein in the second check, information transmitted by the POS machine is combined information, the combined information comprises identity verification information and working process information, and the working process information is information which needs to be interacted with a base station when the POS machine executes a corresponding working process;
judging whether the POS machine is in the use state or not;
if the screen is in the use state, the screen is kept in a bright screen state;
if the POS machine is not in the use state, determining a first time length, and keeping the screen in the bright screen state for the first time length, so that the screen enters a dark screen state, wherein the energy consumption required by the POS machine for keeping the screen in the bright screen state in the first time length is not more than the energy consumption required by adjusting the screen from the dark screen state to the bright screen state;
determining a second time length, and enabling the screen to enter a dark screen state for the second time length after the first time length, wherein the energy consumption required by the POS machine for keeping the screen in the dark screen state in the second time length is not more than the energy consumption required by adjusting the screen from the screen-off state to the screen-on state;
and after the second time period, enabling the screen to enter the screen-off state.
In this embodiment, the start signal may be a start signal generated after a start button of the POS machine is pressed, or may be a wake signal generated after a screen is touched or other body buttons of the POS machine are pressed, or other types of start signals, which are not limited herein.
In this embodiment, the working process may be payment mode selection, transaction amount input, initiation of a transaction request, processing of a transaction request, return of a transaction result, or other types of POS working processes, which are not limited herein; the work progress information includes account holder information, balance information, transfer amount information, or other information related to the POS machine during operation, and is not limited herein.
In this embodiment, the bright screen state is 400 nit, the dark screen state is 200 nit, and the off screen state is 0 nit, which is an optional embodiment, and is not limited herein.
In the embodiment, when the POS machine performs the second verification, the information interacted with the base station not only comprises the information for identity verification, but also comprises the information of the working process, namely, two data interactions can be completed through one data transmission, and the energy consumption of the POS machine can be remarkably saved; furthermore, the energy consumption of the POS machine in each display state and the energy consumption for re-awakening the POS machine can change along with the increase of the service life, the change can be recognized by the POS machine, and the POS machine can adjust the display time of the screen in each display state according to the change, so that the POS machine can be always kept in the display state with lower energy consumption, and the overall energy consumption of the POS machine is further reduced.
As shown in fig. 2, as an alternative embodiment, the first check-sum the second check-sum includes:
sending a network access request to a base station, so that the base station inquires whether the base station is an authorized base station;
receiving random data generated by the base station;
the random data is used in cooperation with the base station to test the link quality of the POS machine, so that the base station can determine whether the POS machine is located at an authorized place according to the link quality data, and if the base station is an authorized base station and the POS machine is located at the authorized place, the POS machine is authorized to access the network.
In this embodiment, the POS device is provided with a SIM card and communicates with the base station, where the network access request refers to a network access registration process when the SIM card communicates each time, and the SIM card needs to report information to the base station to enable the network to determine which base station the SIM card is located. In this embodiment, the authorized base station is a correspondence between a SIM card or POS machine, which is fixed when the SIM card or POS machine is turned on, and the base station, in the present invention, each SIM card or POS machine corresponds to only one base station, and the base station is determined by an application address of the SIM card or POS machine, and once it is determined that the base station is not modifiable during normal use, the SIM card or POS machine can access a network only under the base station by such limitation; the present embodiment also allows a small range of movement of the SIM card and POS under an authorized base station, defined by link quality testing of the SIM card, by detecting the link quality of the SIM card. In this embodiment, by randomly generating a data, determining the link quality of the SIM card by using the transmission process of the random data, so as to determine whether the movement of the SIM card or POS is within an allowable range, thereby determining whether to allow the SIM card to access the network; the invention determines whether the SIM card is open to access authorization or not by inquiring whether the base station corresponds to the SIM or not and carrying out quality test on the link of the SIM card, thereby realizing SIM mobile authorization management, being capable of being used for standardizing the use range of the POS machine with the built-in SIM card and effectively preventing the POS machine from being sold or unauthorized use in different places.
In this embodiment, a fixed communication duration is further set, after the SIM card accesses the network each time, the SIM card only keeps communicating with the base station within the fixed communication duration, and then needs to re-verify the access. The set time period may be 10 minutes, half an hour, or the like, and is set by the manager.
In this embodiment, the base station sends the base station code and the SIM code of the base station to the server, so that the server queries the corresponding relationship between the base station code and the SIM code, and further obtains the corresponding relationship between the base station code and the SIM code returned by the server, and if the base station code corresponds to the SIM code, the base station is an authorized base station; if the base station code does not correspond to the SIM code, the base station is an unauthorized base station; in the embodiment, the corresponding relation between the SIM card or the POS machine and the base station is stored on the server, so that the storage space of the base station is not occupied, the initial authorization is carried out at the cloud end, the base station is not needed in the authorization process, and the data volume stored by each base station is reduced.
As an optional embodiment, the testing the link quality of the POS machine by using the random data in cooperation with the base station includes:
acquiring a first data packet sent by the base station, wherein the first data packet is formed by arranging a plurality of sub-data according to a set sequence, and the sub-data is obtained by dividing the random data by the base station;
and returning the first data packet to the base station, so that the base station determines the delay amount and the packet loss rate of the POS machine according to the data contained in the transmitted first data packet and the data contained in the returned first data packet, and determines the link quality of the POS machine according to the delay amount and the packet loss rate.
In this embodiment, data may be transmitted by using parallel or serial links, but for a POS, the data transmission modes should be kept consistent each time verification is performed, so as to reduce the influence of differences caused by different transmission modes.
In this embodiment, the base station calculates the time difference between the sending time and the receiving time of each sub-data, calculates the cumulative average value of the time differences to obtain the delay amount of the POS machine, and can stop the verification process at any time by adopting the cumulative average value without waiting for the completion of all sub-data transmission. It should be understood that the cumulative average herein refers to the cumulative average of the time differences of all the sub-data in the current test process, and does not include the historical data.
In this embodiment, the base station compares each received sub data with the corresponding sent sub data to determine a data difference, calculates the proportion of the data difference to the data amount of the sent sub data, and further determines whether the first proportion is greater than a set packet loss threshold, if so, marks the sub data as loss, calculates the proportion of the lost sub data as a second proportion, calculates the proportion of the sum of the data differences to the random data as a third proportion, and finally obtains the packet loss rate of the POS machine by a weighted average of the second proportion and the third proportion; the packet loss rate is characterized by two parts, wherein one part is the loss proportion of each sub-data, and if the loss proportion is larger than a set value (such as 0.2, 0.1 and the like), the sub-data is invalid in normal use, and the whole sub-data is considered to be lost at the moment; the other part is the total data loss proportion, namely the ratio of the sum of the data quantity lost by each sub data to the generated random data, which characterizes the stability in the whole data transmission process; in addition, the weighting coefficients of the second proportion and the third proportion can be set by the manager, and can be set according to the substantial requirement of the network quality, for example, 0.2 and 0.8 respectively, which is not limited in the embodiment of the invention.
In the embodiment, the base station calculates the weighted sum of the delay amount and the packet loss rate according to the set weight to obtain the link quality of the POS machine; the delay amount and the weight of the packet loss rate can be determined by a data collection mode, the respective probabilities of the delay and the packet loss rate of the data can be determined by analyzing historical data, and the two probabilities are normalized and then used as the corresponding weights, so that the obtained link quality can be adapted to the condition of the current network environment. Of course, the manager may set two fixed values, for example, 0.5.
In this embodiment, the base station determines the delay amount, the packet loss rate and the allowable range of the link quality of the POS machine according to the history data; if the calculated delay amount, the packet loss rate and the link quality of the POS machine respectively fall into the respective allowable ranges, judging that the POS machine is positioned at an authorized place; the delay, the packet loss rate and the link quality are all represented by numerical values, so that an allowable numerical value range can be obtained, and when the three values respectively fall into the corresponding numerical value ranges, the POS machine is judged to be positioned at the authorized place.
In this embodiment, the allowable range of any one of the delay amount, the packet loss rate or the link quality of the POS machine is determined according to the historical data by the following method: the base station determines the distribution of historical data by taking time as a horizontal axis and a numerical value as a vertical axis; calculating a regression line of the historical data; taking the current time on a time axis, and determining a numerical value corresponding to the regression line and the current time; obtaining a left end point of the allowable range from a value corresponding to the current time on the regression line and a set lower offset coefficient, and obtaining a right end point of the allowable range from a value corresponding to the current time on the regression line and a set upper offset coefficient; obtaining an allowable range from the left endpoint and the right endpoint; any one of delay, packet loss rate or link quality is taken as the average value of each test, so that a series of discrete points can be obtained, linear regression fitting can be carried out on the discrete points, and a corresponding value can be obtained from the current time after fitting. In this embodiment, the upper offset coefficient and the lower offset data may be identical, and typically take a range between 0.2 and 0.4, for example, the upper offset coefficient and the lower offset data each take 0.3, and the value obtained is n, and the allowable range is (0.7 n,1.3 n).
As an alternative embodiment, for the second check, the testing the link quality of the POS machine using the random data in conjunction with the base station includes:
acquiring a first data packet sent by the base station;
and adding the working process data corresponding to the working process information to the head data segment and/or the tail data segment of the first data packet to obtain a second data packet.
And returning the second data packet to the base station, so that the base station determines the delay amount and the packet loss rate of the POS machine according to the data contained in the sent first data packet and the non-added data in the returned second data packet, and determines the link quality of the POS machine according to the delay amount and the packet loss rate.
In this embodiment, the steps of the method for testing the link quality of the POS machine in the second verification process are the same as those of the first verification, except that the transmitted data have a certain difference, and the working process data are added into the data transmitted in the second verification; the step of adding the work process data to the head data segment and/or the tail data segment of the first data packet comprises the following steps: converting the work process data into a binary format, calculating the length of the work process data, and recording the length in a variable data_len; reserving a space (16 bytes) with a fixed length in a head data section and/or a tail data section of the first data packet, wherein the space is used for storing work process data and related information, and the information can comprise task names, progress completion degrees and the like, and is specific to an application scene; and converting the data_len into a binary format, filling the binary format into a fixed length, adding the binary format into the reserved space to form a second data packet, and transmitting the whole second data packet to the target server.
According to the embodiment, the working process data corresponding to the working process information is combined with the first data packet for the identity verification of the POS machine, the step of returning the two data information is reduced to one time by two times originally, and the energy consumption of the POS machine is greatly reduced due to the fact that the energy consumption generated by each data transmission is large.
As an optional embodiment, the determining the first time period and maintaining the screen in the bright screen state includes:
acquiring a first energy consumption required for lighting the screenAnd a first power +.>
Determining the first time lengthAnd keeping said screen in said bright screen state for said first duration +.>Said first time period->The following formula is always satisfied:
//>
and determining a second time period, wherein the second time period for enabling the screen to enter the dark screen state comprises the following steps:
acquiring the energy consumption required by the first checkAnd a second power +.f. currently holding the screen in the dark screen state>
Determining the second time periodAnd keeping said screen in said dark screen state for said second period of time +.>Said second length of time->The following formula is always satisfied:
the first energy consumptionEnergy consumption generated by said first check +.>Energy consumption generated by the second checkSaid first power->And said second power +.>Is determined by the following steps:
five groups of one large period are obtained、/>、/>And->The large period comprises five continuous small periods, the small periods are the flow from the receiving start signal of the POS machine to the first check to the screen entering the screen off state, wherein->For the total energy consumption per said small period, and (2)>For each of the small periods, a duration in the usage state;
five groups are combined、/>、/>And->The values of (2) are respectively given by the following formulas:
and then a five-membered primary equation set is obtained, and after solving the equation set, the five-membered primary equation set is obtained、/>、/>、/>、/>For determining the first duration of the next macrocycle +.>And a second duration +.>Wherein->And the number of times of the second check.
In this embodiment, the pairs of programmable electronic loads, ioT-based energy monitoring devices, or other types of automated energy consumption measurement systems may be usedThe determination is carried out, this being an alternative embodiment, hereAnd are not limited. Taking a programmable electronic load as an example, the programmable electronic load can be connected with an internal microcomputer of the POS machine or an external computer, so that the electronic load is controlled by a program, and the automatic test is realized. The method comprises the steps of connecting a load to a circuit of a device to be tested through programming, recording data such as voltage, current and power under different loads, and calculating the energy consumption of the device under different running states.
In this embodiment, the software pair may be built in by AttendanceBot, time vector, or other types of built-in Time measurement、/>And->The measurement is an optional embodiment, and is not limited herein.
In the present embodiment, the number of small cycles in each large cycle is determined by the number of unknowns to be obtained, e.g., the unknowns to be obtained are、/>、/>、/>、/>If the number of unknowns is 5, the number of corresponding small periods is 5, if the POS machine is added with a screen state, and the power corresponding to the screen state is +.>The number of unknowns is increased to6, correspondingly adjusting the number of small periods in each large period to be 6, and so on;
in this embodiment, the internal microcomputer of the POS machine may be connected to an external computer, and mathematical computation software may be Mathematica, maple or other types of mathematical computation software, which is not limited herein; POS machine acquisition measurement、/>、/>And->After several parameters are calculated by mathematical calculation software>、/>、/>、/>、/>
In this embodiment, the POS machine can automatically detect various energy consumption data of the current POS machine, analyze and process the detected energy consumption data, and finally determine the most energy-saving screen display state that can be achieved under the current machine body condition, and adjust the screen to the display state, so as to achieve the overall energy-saving effect of the POS machine.
As shown in fig. 3, the embodiment of the invention further provides a POS machine, and the POS machine manages its power supply through the power supply management method.
In this embodiment, the POS machine includes:
the verification module is internally provided with a data processing unit and a communication unit, and is used for being matched with the base station to perform first verification and second verification, and the data processing unit is internally provided with a microprocessor, wherein the model of the data processing unit can be AMD Ryzen 3/5/7/9 or other types of microprocessors, and the data processing unit is not limited herein; the communication unit may be a communication antenna or other communication device, which is not limited herein.
The screen state adjusting module is internally provided with a microcomputer or is externally connected with a computer, and an automatic energy consumption measuring system, time measuring software, mathematical calculation software and the like are arranged in the microcomputer or the computer and are used for acquiring energy consumption information of the POS machine, calculating according to the information and adjusting the screen state according to a calculation result.
In this embodiment, when the POS machine performs the second check, the information interacted with the base station includes both the information for identity verification and the information of the working process, that is, two kinds of data interaction can be completed through one data transmission, the steps that two kinds of data information need to be transmitted back respectively in two times are reduced to one time, and in view of the larger energy consumption generated by each data transmission, the improvement will greatly reduce the energy consumption of the POS machine; furthermore, the energy consumption of the POS machine in each display state and the energy consumption for re-awakening the POS machine can change along with the increase of the service life, the change can be recognized by the POS machine, and the POS machine can adjust the display time of the screen in each display state according to the change, so that the POS machine can be always kept in the display state with lower energy consumption, and the overall energy consumption of the POS machine is further reduced.
It should be understood that, although the steps in the flowcharts of the embodiments of the present invention are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in various embodiments may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the invention and are described in detail herein without thereby limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.

Claims (5)

1. A method of power management for a POS machine, the method comprising:
receiving a starting signal, and performing first verification to perform identity verification on the POS machine, so that the POS machine enters a use state, wherein the use state is a state when the POS machine executes at least one working process;
in the use state, carrying out a second check according to a preset frequency, wherein in the second check, information transmitted by the POS machine is combined information, the combined information comprises identity verification information and working process information, and the working process information is information which needs to be interacted with a base station when the POS machine executes a corresponding working process;
judging whether the POS machine is in the use state or not;
if the screen is in the use state, the screen is kept in a bright screen state;
if the POS machine is not in the use state, determining a first time length, and keeping the screen in the bright screen state for the first time length to enable the screen to enter a dark screen state, wherein the energy consumption required by the POS machine to keep the screen in the bright screen state at the first time length is not more than the energy consumption required by adjusting the screen from the dark screen state to the bright screen state;
determining a second time length, and enabling the screen to enter a dark screen state for the second time length after the first time length, wherein the energy consumption required by the POS machine for keeping the screen in the dark screen state in the second time length is not more than the energy consumption required by adjusting the screen from the screen-off state to the screen-on state;
after the second duration, enabling the screen to enter the screen-off state;
the determining the first time length and maintaining the screen in the bright screen state includes:
acquiring a first energy consumption required for lighting the screenAnd a first power to maintain the screen in the bright screen state
Determining the first time lengthAnd keeping said screen in said bright screen state for said first duration +.>The first time lengthThe following formula is always satisfied:
/ />
and determining a second time period, wherein the second time period for enabling the screen to enter the dark screen state comprises the following steps:
acquiring the energy consumption required by the first checkAnd a second power that currently maintains the screen in the dark screen state
Determining the second time periodAnd is protectedHolding the screen in the dark screen state for the second time period +.>The second time periodThe following formula is always satisfied:
the first energy consumptionEnergy consumption generated by said first check +.>Energy consumption generated by said second check +.>Said first power->And said second power +.>Is determined by the following steps:
five groups of one large period are obtained、/>、/>And->The large period comprises five continuous small periods, the small periods are the flow from the receiving start signal of the POS machine to the first check to the screen entering the screen off state, wherein->For the total energy consumption per said small period, and (2)>For each of the small periods, a duration in the usage state;
five groups are combined、/>、/>And->The values of (2) are respectively given by the following formulas:
and then a five-membered primary equation set is obtained, and after solving the equation set, the five-membered primary equation set is obtained、/>、/>、/>、/>For determining the first duration of the next macrocycle +.>And a second duration +.>Wherein->And the number of times of the second check.
2. The method of claim 1, wherein the first checksum the second checksum comprises:
sending a network access request to a base station, so that the base station inquires whether the base station is an authorized base station;
receiving random data generated by the base station;
the random data is used in cooperation with the base station to test the link quality of the POS machine, so that the base station can determine whether the POS machine is located at an authorized place according to the link quality data, and if the base station is an authorized base station and the POS machine is located at the authorized place, the POS machine is authorized to access the network.
3. The method of claim 2, wherein for the first check, the testing the link quality of the POS machine using the random data with the base station comprises:
acquiring a first data packet sent by the base station, wherein the first data packet is formed by arranging a plurality of sub-data according to a set sequence, and the sub-data is obtained by dividing the random data by the base station;
and returning the first data packet to the base station, so that the base station determines the delay amount and the packet loss rate of the POS machine according to the data contained in the transmitted first data packet and the data contained in the returned first data packet, and determines the link quality of the POS machine according to the delay amount and the packet loss rate.
4. The method of claim 2, wherein for the second check-up, the testing the link quality of the POS machine using the random data in conjunction with the base station comprises:
acquiring a first data packet sent by the base station;
adding the working process data corresponding to the working process information to the head data segment and/or the tail data segment of the first data packet to obtain a second data packet;
and returning the second data packet to the base station, so that the base station determines the delay amount and the packet loss rate of the POS machine according to the data contained in the sent first data packet and the non-added data in the returned second data packet, and determines the link quality of the POS machine according to the delay amount and the packet loss rate.
5. A POS machine, wherein the POS machine manages its power supply by a power supply management method according to any one of claims 1-4.
CN202310594529.XA 2023-05-25 2023-05-25 Power management method for POS machine and POS machine Active CN116343411B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310594529.XA CN116343411B (en) 2023-05-25 2023-05-25 Power management method for POS machine and POS machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310594529.XA CN116343411B (en) 2023-05-25 2023-05-25 Power management method for POS machine and POS machine

Publications (2)

Publication Number Publication Date
CN116343411A CN116343411A (en) 2023-06-27
CN116343411B true CN116343411B (en) 2023-08-01

Family

ID=86893255

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310594529.XA Active CN116343411B (en) 2023-05-25 2023-05-25 Power management method for POS machine and POS machine

Country Status (1)

Country Link
CN (1) CN116343411B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020755A (en) * 2016-05-10 2016-10-12 青岛海信移动通信技术股份有限公司 Method and device for adjusting screen lighting time of terminal screen
CN110543333B (en) * 2018-05-29 2024-05-17 视联动力信息技术股份有限公司 Sleep processing method and device for processor, mobile terminal and storage medium
CN110175479A (en) * 2019-05-31 2019-08-27 努比亚技术有限公司 Terminal puts out screen control method, device, mobile terminal and readable storage medium storing program for executing
CN114020341A (en) * 2021-11-04 2022-02-08 艾体威尔电子技术(北京)有限公司 Dark screen standby method based on android operating system
CN114442789A (en) * 2022-01-25 2022-05-06 北京小米移动软件有限公司 Dark screen control method, device, equipment and storage medium
CN116017462B (en) * 2023-03-28 2023-05-30 前海联大(深圳)技术有限公司 SIM card authorization management method, device and system

Also Published As

Publication number Publication date
CN116343411A (en) 2023-06-27

Similar Documents

Publication Publication Date Title
CN110535864B (en) Service abnormity detection method, device, equipment and storage medium
CN110442498B (en) Abnormal data node positioning method and device, storage medium and computer equipment
JP2019036308A (en) Intelligent warehousing management method, apparatus, system and unmanned intelligent warehousing device
US20190353709A1 (en) Trusted battery meter and battery monitoring system
RU2008109229A (en) PRODUCT STRATEGY CONFIGURATION USING OBSERVED CONSUMER CONDUCT DATA
CN104813353A (en) System and method for generating subscriber churn predictions
CN110634021A (en) Big data based vehicle estimation method, system, device and readable storage medium
CN110533286B (en) Block chain-based coalition member management method and device and computer equipment
WO2007050155A1 (en) Battery analysis system and method
CN111539563A (en) Energy consumption safety state prediction method, device, server and storage medium
CN109272268B (en) Electric power material ex-warehouse quantity calculation method and system
CN109741177A (en) Appraisal procedure, device and the intelligent terminal of user credit
CN111951045A (en) Electricity charge accounting method and device based on big data
CN116343411B (en) Power management method for POS machine and POS machine
CN114140152A (en) Cloud platform customer management system and method
CN116017462B (en) SIM card authorization management method, device and system
CN111312326B (en) Flash memory life testing method and device, power acquisition terminal and storage medium
CN111080364A (en) Engineering cost data center management system and device
CN113780744B (en) Goods combination method and device and electronic equipment
CN115130835A (en) Supplier performance management method and device, electronic equipment and storage medium
JP7416710B2 (en) Method and apparatus for measuring battery wear of portable electronic devices
CN111488625B (en) Data processing method and device
CN110896219B (en) Power network processing system and method based on big data and database
CN109992435A (en) Equipment uses abnormality determination method, device and computer storage medium
CN111915347A (en) Method, device and system for effectively storing and applying promotion purchase price

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