Equipment management method and device, electronic equipment, computer readable storage medium and computer program product
By collecting images and audio from the environment through the payment terminal, the system automatically controls the on/off operation of the equipment, solving the problems of resource waste and shortened lifespan caused by equipment not being turned off in offline stores, and achieving automated equipment management and cost reduction.
Patent Information
- Application Number
- CN202410555595.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-07
- Publication Date
- 2025-11-07
AI Technical Summary
After offline stores cease operations, the equipment is not shut down due to human error, resulting in wasted resources, shortened equipment lifespan, and increased operating costs.
By collecting images and audio from the environment through the payment terminal, the status of the equipment can be determined, and the power on and off of the controlled equipment can be automatically controlled to achieve automated equipment management.
It effectively reduces the operating costs of the controlled equipment, and reduces resource consumption and extends equipment life through automated management.
Smart Images

Figure CN120909155A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of intelligent control, and in particular, to a device management method and device, an electronic device, a computer readable storage medium, and a computer program product. BACKGROUND
[0002] At present, a large part of offline merchants do not turn off the devices (such as POS machines or vending machines, etc.) running in the store due to human factors after the store stops operating, resulting in certain resource waste, and even further shortening the service life of the devices, thereby increasing the operating cost of the store. SUMMARY
[0003] The embodiments of the present application provide a device management method and device, an electronic device, a computer readable storage medium, and a computer program product, which can realize automatic management of the controlled devices, thereby reducing the operating cost of the controlled devices.
[0004] The technical solutions of the embodiments of the present application are implemented as follows:
[0005] The embodiments of the present application provide a device management method, characterized in that the method is applied to a payment terminal, and the payment terminal is connected with at least one controlled device.
[0006] The method comprises the following steps:
[0007] Collecting an environment in which the payment terminal is located to obtain a collection result.
[0008] Based on the collection result, the at least one controlled device is managed, wherein the at least one controlled device is in the environment.
[0009] The embodiments of the present application provide a device management device, characterized in that the device is applied to a payment terminal, and the payment terminal is connected with at least one controlled device.
[0010] The device comprises the following modules:
[0011] A collection module, configured to collect an environment in which the payment terminal is located to obtain a collection result.
[0012] A management module, configured to manage the at least one controlled device based on the collection result, wherein the at least one controlled device is in the environment.
[0013] In the above solution, the collection module is further configured to perform at least one of the following processes: image collection on the environment in which the payment terminal is located to obtain an image collection result; and audio collection on the environment in which the payment terminal is located to obtain an audio collection result.
[0014] In the solution above, the management module is further configured to determine a current state of the environment based on at least one of the image collection result and the audio collection result; and manage the at least one controlled device based on the current state of the environment.
[0015] In the solution above, the management module is further configured to determine that the environment is currently in a rest state in response to the image collection result indicating that the brightness of the environment is less than a brightness threshold value and / or the audio collection result indicating that the volume of the environment is less than a volume threshold value.
[0016] In the solution above, the management module is further configured to call a shutdown interface to turn off the at least one controlled device in response to the environment being currently in the rest state.
[0017] In the solution above, the management module is further configured to perform the following processing for each of the controlled devices: calling a shutdown interface of the controlled device to send a shutdown instruction to the controlled device, wherein the shutdown instruction is used to turn off the controlled device.
[0018] In the solution above, the management module is further configured to determine that the environment is currently in a business state in response to the image collection result indicating that the brightness of the environment is greater than a brightness threshold value and / or the audio collection result indicating that the volume of the environment is greater than a volume threshold value.
[0019] In the solution above, the management module is further configured to call a startup interface to turn on the at least one controlled device in response to the environment being currently in the business state.
[0020] In the solution above, the management module is further configured to perform the following processing for each of the controlled devices: calling a startup interface of the controlled device to send a startup instruction to the controlled device, wherein the startup instruction is used to turn on the controlled device.
[0021] In the solution above, the collection result includes an audio collection result; and the management module is further configured to lower the volume of the at least one controlled device in response to the audio collection result indicating that the volume of the environment is less than a volume threshold value; and raise the volume of the at least one controlled device in response to the audio collection result indicating that the volume of the environment is greater than a volume threshold value.
[0022] In the solution above, the apparatus further includes a configuration module configured to display a configuration interface; receive set configuration information through the configuration interface; bind the configuration information, the identifier of the at least one controlled device, and the identifier corresponding to the environment, and send the same to a server for storage in the server.
[0023] Embodiments of the present application provide an electronic device, comprising:
[0024] a memory for storing executable instructions;
[0025] a processor for implementing the device management method provided by the embodiments of the present application when executing the executable instructions stored in the memory.
[0026] The embodiments of the present application provide a computer readable storage medium storing computer executable instructions for implementing the device management method provided by the embodiments of the present application when executed by a processor.
[0027] The embodiments of the present application provide a computer program product comprising a computer program or computer executable instructions for implementing the device management method provided by the embodiments of the present application when executed by a processor.
[0028] The embodiments of the present application have the following beneficial effects:
[0029] The collection terminal collects the environment in which the at least one controlled device is currently located to obtain a collection result, and manages the at least one controlled device connected to the collection terminal according to the collection result, wherein the controlled device and the collection terminal are in the same environment, so that the controlled device can automatically adjust the working mode according to the collection result of the current environment, and the automatic management of the controlled device is realized, thereby effectively saving the operation cost of the controlled device. BRIEF DESCRIPTION OF DRAWINGS
[0030] Figure 1 is an architecture schematic diagram of the device management system 100 provided by the embodiments of the present application;
[0031] Figure 2 is a structure schematic diagram of the electronic device 500 provided by the embodiments of the present application;
[0032] Figure 3 is a flow schematic diagram of the device management method provided by the embodiments of the present application;
[0033] Figure 4 is a flow schematic diagram of the device management method provided by the embodiments of the present application;
[0034] Figure 5 is a flow schematic diagram of the device management method provided by the embodiments of the present application;
[0035] Figure 6 is a principle schematic diagram of automatically controlling the POS machine by the palm payment terminal provided by the embodiments of the present application;
[0036] Figure 7 is a timing schematic diagram of controlling the POS machine by the palm payment terminal provided by the embodiments of the present application. DETAILED DESCRIPTION
[0037] In order to make the purposes, technical solutions and advantages of the present application clearer, the following further describes the present application in conjunction with the accompanying drawings, the described embodiments should not be regarded as limitations to the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the scope of protection of the present application.
[0038] In the following description, "some embodiments" are referred to, which describe a subset of all possible embodiments, but it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict.
[0039] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined target, and can be implemented entirely or partially by using software, hardware (such as a processing circuit or a memory) or a combination thereof. Similarly, one processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be a part of an integral module or unit that includes the functions of the module or unit.
[0040] In the following description, the term "first\second\..." referred to only distinguishes similar objects, and does not represent a specific order of the objects. It can be understood that "first\second\..." can be interchanged with a specific order or sequence as allowed, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0041] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0042] The related data collection process in the embodiments of the present application should strictly comply with the requirements of relevant national laws and regulations, obtain the informed consent or separate consent of the personal information subject, and within the scope of authorization of laws and regulations and the personal information subject, carry out subsequent data use and processing.
[0043] Before further detailing the embodiments of the present application, the terms and terms related to the embodiments of the present application are explained, the terms and terms related to the embodiments of the present application are applicable to the following explanations.
[0044] 1) In response to: indicating the conditions or states that the operation depends on, when the dependent conditions or states are met, one or more operations can be real-time or have a set delay; without special instructions, there is no restriction on the execution order of multiple operations.
[0045] 2) Palmprint recognition: a technology that exchanges personal identity information through multimedia information of the palm.
[0046] 3) Three-dimensional camera (Three-Dimensional Camera, 3D Camera): Similar to traditional cameras, it adds living-related hardware and software, including depth cameras and infrared cameras, to ensure information security.
[0047] 4) SQLite database: SQLite database is a lightweight relational database written in C language and can run on most operating systems, with the characteristics of simplicity, reliability and high efficiency, and is widely used in many small and medium-sized applications.
[0048] 5) String serial number (Serial Number, SN): a unique identifier used to identify a specific device or object, commonly used for unique identification of hardware devices (such as hard drives, memory sticks, motherboards, etc.) or software products (such as operating systems, databases, etc.).
[0049] 6) Advanced Encryption Standard (Advanced Encryption Standard, AES) encryption algorithm: AES encryption algorithm is a widely used symmetric encryption algorithm, widely used to protect various data transmission and storage; AES encryption algorithm uses a key to encrypt and decrypt data, the length of the key can be 128 bits, 192 bits or 256 bits, longer keys can provide stronger security, AES encryption algorithm uses four different encryption modes: Electronic Codebook Mode (ECB), Cipher Block Chaining Mode (CBC), Cipher Feedback Mode (CFM) and Output Feedback Mode (OFM).
[0050] 7) RSA encryption algorithm (Rivest-Shamir-Adleman Encryption Algorithm): RSA encryption algorithm is an asymmetric encryption algorithm, RSA algorithm uses a pair of keys: public key and private key, public key is used for encryption, private key is used for decryption, RSA algorithm is usually used for digital signature and data encryption.
[0051] 8) Baud rate: Baud rate is a unit of measuring the data transmission rate of a digital communication system, which represents the number of symbols transmitted per second, and a symbol is the basic unit of data transmission. Baud rate can also be regarded as the number of bits transmitted per second. A higher baud rate means a higher data transmission rate.
[0052] In the implementation of the embodiments of the present application, it is found that the scheme provided by the related art has the following problems:
[0053] A large part of offline stores do not turn off the equipment running in the store due to human factors after stopping business, resulting in certain resource waste, and even shortening the service life of the equipment, thereby increasing the operation cost of the equipment.
[0054] In view of this, the embodiments of the present application provide a device management method and device, electronic equipment, computer readable storage medium and computer program product, which can realize the automatic management of the controlled equipment, thereby reducing the operation cost of the controlled equipment.
[0055] The following describes an exemplary application of the electronic equipment for implementing device management provided by the embodiments of the present application. The electronic equipment in the embodiments of the present application can be implemented as a collection terminal. The collection terminal here can be a commonly used mobile payment terminal (such as a barcode scanner), or other payment terminals with biological payment functions (such as face payment terminals, palm payment terminals, etc.), which are not specifically limited here.
[0056] The following describes the collection terminal as a palm payment terminal and the controlled equipment as a POS machine.
[0057] For example, referring to Figure 1 , Figure 1 is the architecture diagram of the device management system 100 provided by the embodiments of the present application, to realize a device management application, such as Figure 1 As shown, the collection terminal 200 (such as a palm payment terminal) is connected with at least one controlled equipment 300 (such as a POS machine), and the collection terminal 200 can also be connected with a server 400, and can send the collected environment information to the server 400, and the server 400 manages the controlled equipment 300 based on the collected environment information. Of course, the collection terminal 200 can also analyze the collected environment information through its own computing power, and manage the controlled equipment 300, which is not specifically limited in the embodiments of the present application.
[0058] For example, the collection terminal 200 can collect the environment (for example, a store or a business hall) where the collection terminal is located through the information collection device carried by the collection terminal 200. The collection terminal 200 uploads the collected environment information to the server 400 through the network. The server 400 analyzes the collected environment information, and transmits the analysis result to the collection terminal 200 through the network. The collection terminal 200 manages the controlled device 300 based on the analysis result. For example, it is assumed that the collection terminal 200 collects the environment information, and the server 400 analyzes the collected environment information and determines that the current environment is in a resting state. Then, the collection terminal 200 can control the controlled terminal 300 to execute a shutdown instruction according to the analysis result.
[0059] In other embodiments, the embodiments of the present application can also be implemented by means of cloud technology. Cloud technology refers to a kind of hosting technology that unifies a series of resources such as hardware, software, and network in a wide area network or a local area network to realize data calculation, storage, processing, and sharing.
[0060] Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, and application technology applied on the basis of cloud computing business model, can form a resource pool, and is used on demand, flexible and convenient. Cloud computing technology will become an important support. The background service of the technical network system needs a large amount of computing and storage resources.
[0061] For example, Figure 1 The server 400 in the embodiment of the present application can be a stand-alone physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content distribution networks (CDN), and big data and artificial intelligence platforms. The collection terminal 200 and the server 400 can be directly or indirectly connected through wired or wireless communication, and the embodiments of the present application do not limit the connection mode.
[0062] It should be noted that the device management method provided by the embodiments of the present application can be applied to various device management scenarios such as POS machines, shared power banks, and vending machines, and can also be applied to the scenario of smart home for intelligent control.
[0063] In some embodiments, the payment terminal can also implement the device management method provided by the embodiments of the present application by running various computer executable instructions or computer programs. For example, the computer executable instructions can be microprogram level commands, machine instructions or software instructions. The computer program can be a native program or a software module in an operating system; can be a native application (APP), i.e., a program that needs to be installed in an operating system to run, such as a payment APP; or can be a small program that can be embedded into any APP, i.e., a program that only needs to be downloaded into a browser environment to run. In summary, the above computer executable instructions can be any form of instructions, and the above computer programs can be any form of application programs, modules or plug-ins.
[0064] The structure of the electronic device provided by the embodiments of the present application will be described below. Taking the electronic device as a payment terminal for example, referring to Figure 2 , Figure 2 is a structural schematic diagram of an electronic device 500 provided by the embodiments of the present application, Figure 2 The electronic device 500 shown in FIG. 5 includes at least one processor 510, a memory 550, at least one network interface 520 and a user interface 530. The various components in the electronic device 500 are coupled together through a bus system 540. It can be understood that the bus system 540 is used to realize the connection and communication between the components. In addition to including a data bus, the bus system 540 also includes a power bus, a control bus and a status signal bus. However, for the purpose of clear illustration, all kinds of buses are marked as the bus system 540 in Figure 2 .
[0065] The processor 510 can be an integrated circuit chip with signal processing capability, such as a general purpose processor, a digital signal processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc., wherein the general purpose processor can be a microprocessor or any conventional processor.
[0066] The user interface 530 includes one or more output devices 531 that enable the presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 530 also includes one or more input devices 532, including user interface components that facilitate user input, such as a keyboard, a mouse, a microphone, a touch screen display, a camera, other input buttons and controls.
[0067] The memory 550 can be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard drives, optical drives, and the like. The memory 550 optionally includes one or more storage devices remotely located from the processor(s) 510.
[0068] The memory 550 includes volatile memory or nonvolatile memory, or both. Non-volatile memory can be read only memory (ROM), volatile memory can be random access memory (RAM). The memory 550 described in embodiments of the present application is intended to include any suitable type of memory.
[0069] In some embodiments, the memory 550 is capable of storing data to support various operations, examples of which include programs, modules, and data structures or a subset or superset thereof, which are exemplarily illustrated below.
[0070] The operating system 551 includes system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks;
[0071] The network communication module 552 is used to communicate with other computing devices via one or more (wired or wireless) network interfaces 520, exemplary network interfaces 520 include Bluetooth, wireless compatibility authentication (WiFi), and universal serial bus (USB), and the like;
[0072] The presentation module 553 is used to enable the presentation of information via one or more output devices 531 associated with the user interface 530 (e.g., a display screen, a speaker, and the like) (e.g., a user interface for operating peripheral devices and displaying content and information);
[0073] The input processing module 554 is used to detect and interpret one or more user inputs or interactions from one or more input devices 532.
[0074] In some embodiments, the apparatus provided by embodiments of the present application can be implemented in software, Figure 2 A device management apparatus 555 stored in the memory 550 is shown, which can be software in the form of programs and plug-ins, including the following software modules: acquisition module 5551, management module 5552, and configuration module 5553, these modules are logical, and thus can be combined or further split according to the implemented functions. It should be noted that, in Figure 2For the convenience of expression, all the above modules are shown at one time, but should not be considered as excluding the implementation that only includes the collection module 5551 and the management module 5552 in the device management apparatus 555. The functions of each module will be described below.
[0075] The device management method provided in the embodiments of the present application will be described in detail below in combination with the exemplary application and implementation of the collection terminal provided in the embodiments of the present application.
[0076] It should be noted that in the embodiments of the present application, the collection terminal (such as a palm payment terminal, a face payment terminal, etc.) can be connected with at least one controlled device (such as a POS machine, a shared power bank machine, a vending machine, etc.). The collection terminal and the controlled device can be connected through a wired manner (such as a cable, etc.) or a wireless manner (such as Bluetooth, etc.), which is not specifically limited in the embodiments of the present application.
[0077] Referring to Figure 3 , Figure 3 is a flowchart of the device management method provided in the embodiments of the present application, which will be described in combination with the steps shown in Figure 3 .
[0078] It should be noted that Figure 3 the device management method shown in the above can be executed by various forms of computer programs running on the collection terminal, and is not limited to the client, for example, can also be the operating system, software module, script and applet described above, etc., therefore, the following examples of the client should not be considered as a limitation of the embodiments of the present application. In addition, for the convenience of description, the collection terminal and the client running on the collection terminal are not specifically distinguished in the following.
[0079] In step 101, the environment in which the collection terminal is located is collected to obtain a collection result.
[0080] It should be noted that in the process of collecting the environment where the collection terminal is located, the information collection device (such as a camera or a microphone, etc.) carried by the collection terminal itself can be used for collection, for example, assuming that the collection terminal is a palm payment terminal, the camera carried by the palm payment terminal itself can be used for image collection of environmental information; or a collection device connected to the collection terminal can be used to collect environmental information, for example, assuming that the collection payment terminal is a palm payment terminal, a microphone device can be connected to the palm payment terminal to collect audio information of the environment, which is not limited here; and when collecting the environment where the collection terminal is located, the environmental information can be collected once every set time length, which can be set artificially or according to the scene information; the environmental information can also be collected in real time, and the collected data information can be analyzed in real time by the back-end server to determine the current environmental state; the collection terminal can also be set to collect only in a specific period (such as the most likely business time period in the morning and the most likely rest time period in the afternoon), which is not limited here.
[0081] In some embodiments, referring to Figure 4 , Figure 4 is a flowchart of a device management method provided by the embodiments of the present application, as shown in Figure 4 Before step 101 shown in Figure 3 is executed, steps 103-105 shown in Figure 4 may also be executed, which will be described in combination with the steps shown in Figure 4 .
[0082] In step 103, a configuration interface is displayed in the collection terminal.
[0083] For example, taking the collection terminal as a palm payment terminal, the display screen of the palm payment terminal will display a user interface (UI), and the UI interface includes various input options (such as text boxes, drop-down lists, single selection buttons, etc.), and the user can input or select configuration parameters in the UI interface.
[0084] In step 104, the configuration information set is received through the configuration interface.
[0085] For example, the user can input configuration information through the configuration interface provided by the collection terminal, such as Internet Protocol (IP) address, port number, authentication information, etc., and the collection terminal can associate the configuration information input by the user with the identity of the controlled device (such as device serial number, etc.) and the environment identity (such as shop identity document (ID), network point number, etc.).
[0086] In step 105, the configuration information, the identification of the at least one controlled device, and the identification corresponding to the environment are bound and sent to the server for storage in the server.
[0087] For example, the bound configuration information, the identification information of the controlled device, and the identification information corresponding to the environment can be sent to the server through a communication module (such as General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Ethernet, etc.) built in the palm payment terminal. A database management system can be provided in the server to store the related information for subsequent query, audit, and management.
[0088] In some embodiments, after the configuration information provided by the user in the configuration interface of the collection terminal is sent to the server, confirmation information can also be displayed in the UI interface of the collection terminal to inform the user that the configuration has been successfully saved. The server can also send confirmation information to the collection terminal to inform that the data has been received and stored successfully.
[0089] In some embodiments, in order to ensure the security of data communication, the transmitted data is usually encrypted using an encryption algorithm, such as the AES encryption algorithm or the RSA encryption algorithm. In order to ensure the security of data storage on the server side, appropriate data protection measures are usually adopted, such as setting access permissions, regular backups, etc.
[0090] In some embodiments, the above-mentioned collection of the environment in which the collection terminal is located to obtain the collection result can be achieved by performing at least one of the following processes: image collection of the environment in which the collection terminal is located to obtain an image collection result; audio collection of the environment in which the collection terminal is located to obtain an audio collection result.
[0091] For example, taking the collection terminal as a palm payment terminal, the image collection device (such as a camera) built in (or externally connected to) the palm payment terminal can be used to collect the environmental information to obtain an image collection result. The audio collection device (such as a microphone) built in (or externally connected to) the palm payment terminal can also be used to collect the environmental information to obtain an audio collection result. Of course, the image collection device and the audio collection device of the palm payment terminal can also be used to collect the environmental information respectively to obtain an image collection result and an audio collection result, and the embodiments of the present application do not make specific limitations in this regard.
[0092] In step 102, at least one controlled device is managed based on the collection result, wherein the at least one controlled device is the same as the environment in which the collection terminal is located.
[0093] It should be noted that when there are multiple controlled devices, the payment terminal can control all the controlled devices, or only control some of the controlled devices according to the application scenario. The number of controlled devices controlled by the payment terminal can be artificially selected and set, or can be preset according to the use of different controlled devices in different application scenarios. The embodiments of the present application do not make specific limitations here.
[0094] For example, assuming that the payment terminal is connected to a POS machine, a vending machine and other controlled devices, the vending machine can also be used by users at night according to the application scenario, and the vending machine cannot be turned off. Therefore, when the payment terminal detects that the current environment is in a rest state, the payment terminal only controls the other controlled devices except the vending machine to perform the shutdown operation.
[0095] In some embodiments, referring to Figure 5 , Figure 5 is a flowchart of the device management method provided by the embodiments of the present application, as shown in Figure 5 , Figure 3 The step 102 shown in the figure can be implemented by Figure 5 The steps 1021 to 1022 shown in the figure, which will be described in combination with the steps shown in Figure 5 .
[0096] In step 1021, the current state of the environment is determined based on at least one of the image acquisition result and the audio acquisition result.
[0097] For example, the current state of the environment can be determined only based on the image acquisition result, or only based on the audio acquisition result, or based on both the image acquisition result and the audio acquisition result.
[0098] In some embodiments, the above-mentioned determination of the current state of the environment based on at least one of the image acquisition result and the audio acquisition result can be realized by the following way: when the image acquisition result represents that the brightness of the environment is less than a brightness threshold, it is determined that the current environment is in a rest state.
[0099] For example, the palm payment terminal acquires the image of the surrounding environment through the image acquisition device to obtain the image acquisition result. Through analysis, it is known that the image acquisition result represents that the brightness value of the environment is 40 nits, which is less than the brightness threshold (assuming 100 nits). Therefore, it is determined that the current store state is in a rest state. The brightness threshold can be artificially set, or can be automatically set according to the specific application scenario (for example, the brightness threshold in a restaurant store is higher than that in a KTV), which is not limited here.
[0100] It should be noted that the brightness value of the environment represented by the image acquisition result can be calculated by traversing the brightness values of all pixel points in the image, and taking the average brightness value of the image as the brightness value of the environment through an image processing algorithm. The brightness value of the current environment can also be directly obtained through professional image analysis software or professional image acquisition equipment, which is not limited here.
[0101] In some embodiments, the determination of the current state of the environment based on at least one of the image acquisition result and the audio acquisition result can be achieved by the following manner: when the brightness of the environment represented by the image acquisition result changes from light to dark, and when the brightness of the environment is less than a brightness threshold, it is determined that the current environment is in a rest state.
[0102] For example, the palm payment terminal acquires the image of the surrounding environment through the image acquisition device to obtain the image acquisition result. Through analysis, it is known that the brightness of the current image acquisition represents a change from light to dark, and when the brightness value of the environment is less than a brightness threshold (assuming 30 nits), it is determined that the current environment is in a rest state.
[0103] In some embodiments, the determination of the current state of the environment based on at least one of the image acquisition result and the audio acquisition result can be achieved by the following manner: when the brightness of the environment represented by the image acquisition result is greater than a brightness threshold, it is determined that the current environment is in a business state.
[0104] For example, the palm payment terminal acquires the image of the surrounding environment through the image acquisition device to obtain the image acquisition result. Through analysis, it is known that the brightness value of the environment represented by the image acquisition result is 120 nits, which is greater than a brightness threshold (assuming 100 nits), so it is determined that the current store state is in a business state.
[0105] In some embodiments, the determination of the current state of the environment based on at least one of the image acquisition result and the audio acquisition result can be achieved by the following manner: when the brightness of the environment represented by the image acquisition result changes from dark to light, and when the brightness of the environment is greater than a brightness threshold, it is determined that the current environment is in a business state.
[0106] For example, the palm payment terminal acquires the image of the surrounding environment through the image acquisition device to obtain the image acquisition result. Through analysis, it is known that the brightness of the current image acquisition represents a change from dark to light, and when the brightness value of the environment is greater than a brightness threshold (assuming 30 nits), it is determined that the current environment is in a business state.
[0107] In some embodiments, the determination of the current state of the environment based on at least one of the image acquisition result and the audio acquisition result can be achieved by the following manner: when the volume of the environment represented by the audio acquisition result is less than a volume threshold, it is determined that the current environment is in a rest state.
[0108] For example, the palm payment terminal collects audio of the surrounding environment through an audio collection device to obtain an audio collection result. Through analysis, it is known that the audio collection result represents an environmental volume value of 23 decibels, which is less than a volume threshold value (assuming 40 decibels), and it is determined that the current store state is in a rest state. The volume threshold value can be artificially set or automatically set according to a specific application scenario, and is not limited here.
[0109] It should be noted that the audio collection result representing the volume value of the environment can calculate the root mean square energy (RMS) of the audio through audio processing technology as the volume value of the current environment, can directly obtain the volume value of the current environment through professional audio analysis software, or can directly obtain the volume value of the environment in the audio through a professional audio collection device, and is not limited here.
[0110] In some embodiments, the determination of the current state of the environment based on at least one of the image collection result and the audio collection result can be achieved in the following manner: when the audio collection result represents that the volume of the environment changes from high to low, and when the volume of the environment is less than the volume threshold value, it is determined that the environment is currently in a rest state.
[0111] For example, the palm payment terminal collects audio of the surrounding environment through an audio collection device to obtain an audio collection result. Through analysis, it is known that the current audio collection represents that the volume of the environment changes from high to low, and when the volume value of the environment is less than a volume threshold value (assuming 20 decibels), it is determined that the current store state is in a rest state.
[0112] In some embodiments, the determination of the current state of the environment based on at least one of the image collection result and the audio collection result can be achieved in the following manner: when the audio collection result represents that the volume of the environment is greater than the volume threshold value, it is determined that the environment is currently in a business state.
[0113] For example, the palm payment terminal collects audio of the surrounding environment through an audio collection device to obtain an audio collection result. Through analysis, it is known that the audio collection result represents an environmental volume value of 23 decibels, which is less than a volume threshold value (assuming 40 decibels), and it is determined that the current store state is in a rest state. The volume threshold value can be artificially set or automatically set according to a specific application scenario, and is not limited here.
[0114] In some embodiments, the determination of the current state of the environment based on at least one of the image collection result and the audio collection result can be achieved in the following manner: when the audio collection result represents that the volume of the environment changes from low to high, and when the volume of the environment is greater than the volume threshold value, it is determined that the environment is currently in a business state.
[0115] For example, the palm payment terminal collects the ambient environment through the image collection device to obtain an image collection result. It is learned through analysis that the volume of the current audio collection representing the environment changes from low to high. When the volume value of the environment is greater than the volume threshold (for example, 20 decibels), it is determined that the current store state is in the business state.
[0116] In some embodiments, the above-mentioned determination of the current state of the environment based on at least one of the image collection result and the audio collection result can be achieved in the following manner: in response to the image collection result representing the brightness of the environment being less than the brightness threshold, and the audio collection result representing the volume of the environment being less than the volume threshold, it is determined that the environment is currently in a resting state.
[0117] For example, the palm payment terminal collects the ambient environment through the image collection device to obtain an image collection result. It is learned through analysis that the volume of the current audio collection representing the environment changes from low to high. When the volume value of the environment is greater than the volume threshold (for example, 20 decibels), it is determined that the current store state is in the business state.
[0118] In some embodiments, the above-mentioned determination of the current state of the environment based on at least one of the image collection result and the audio collection result can be achieved in the following manner: in response to the image collection result representing the brightness of the environment being less than the brightness threshold, and the audio collection result representing the volume of the environment being less than the volume threshold, it is determined that the environment is currently in a resting state.
[0119] For example, the palm payment terminal collects the ambient environment through the image collection device to obtain an image collection result. It is learned through analysis that the volume of the current audio collection representing the environment changes from low to high. When the volume value of the environment is greater than the volume threshold (for example, 20 decibels), it is determined that the current store state is in the business state.
[0120] In some embodiments, the above-mentioned determination of the current state of the environment based on at least one of the image collection result and the audio collection result can be achieved in the following manner: in response to the image collection result representing the brightness of the environment being less than the brightness threshold, and the audio collection result representing the volume of the environment being less than the volume threshold, it is determined that the environment is currently in a resting state. In some embodiments, the above-mentioned determination of the current state of the environment based on at least one of the image collection result and the audio collection result can be achieved in the following manner: in response to the image collection result representing the brightness of the environment being less than the brightness threshold, and the audio collection result representing the volume of the environment being less than the volume threshold, it is determined that the environment is currently in a resting state.
[0121] For example, the palm payment terminal collects the surrounding environment through the image collection device to obtain an image collection result. Through analysis, it is known that the brightness value of the environment represented by the image collection result is 74 nits, which is greater than the brightness threshold (for example, 50 nits), and / or the surrounding environment is collected through the audio collection device to obtain an audio collection result. Through analysis, it is known that the volume value of the environment represented by the audio collection result is 52 decibels, which is greater than the volume threshold (for example, 40 decibels), and it is determined that the current store state is in the operating state.
[0122] In some embodiments, the determination of the current state of the environment based on at least one of the image collection result and the audio collection result can be achieved by the following manner: in response to the brightness of the environment represented by the image collection result changing from dark to light, and when the brightness of the environment is greater than the brightness threshold, and / or the volume of the environment represented by the audio collection result changes from low to high, and when the volume of the environment is greater than the volume threshold, it is determined that the environment is currently in the operating state.
[0123] For example, the palm payment terminal collects the surrounding environment through the image collection device and the audio collection device to obtain an image collection result and an audio collection result, respectively. Through analysis, it is known that the brightness of the environment represented by the image collection result changes from dark to light, and when the brightness value of the environment is greater than the brightness threshold (for example, 25 nits), and / or the volume of the environment represented by the audio collection result changes from low to high, and when the volume value of the environment is greater than the volume threshold (for example, 30 decibels), it is determined that the current store state is in the operating state.
[0124] In step 1022, at least one controlled device is managed based on the current state of the environment.
[0125] For example, when it is detected that the current store state is in the resting state, the controlled device is turned off; when it is detected that the current store state is in the operating state, the controlled device is turned on.
[0126] In some embodiments, the management of at least one controlled device based on the current state of the environment can be achieved by the following manner: in response to the current environment being in the resting state, a shutdown interface is called to turn off at least one controlled device.
[0127] For example, when it is detected that the current store state is in the resting state, a shutdown interface is called to turn off the controlled device (such as a POS machine) connected to the palm payment terminal, so that the resource consumption can be effectively saved and the device operation cost can be reduced.
[0128] In some embodiments, the calling the shutdown interface to close the at least one controlled device can be implemented by: calling a shutdown interface of the controlled device to send a shutdown instruction to the controlled device, where the shutdown instruction is used to close the controlled device.
[0129] It should be noted that, to call the shutdown interface of the controlled device and send the shutdown instruction, the interface type and communication protocol of the controlled device need to be confirmed first. Different devices can use different interfaces and protocols, such as Transmission Control Protocol / Internet Protocol (TCP / IP), Hypertext Transfer Protocol (HTTP), serial port, Bluetooth, ZigBee protocol (ZigBee), etc.
[0130] For example, first, check the document or technical specification of the controlled device to determine the communication protocol supported by the controlled device; then, determine the shutdown interface Uniform Resource Locator (URL) or command on the controlled device, which is usually a specific Application Programming Interface (API) endpoint (such as “ / shutdown” or “ / turn_off”); then, according to the requirements of the communication protocol supported by the controlled device, write the shutdown instruction (for example, when the communication protocol is HTTP protocol, the corresponding may be GET or POST request); then, use appropriate libraries or tools (such as “request” library, “socket” library, etc.) to establish a network connection with the controlled device; then, send the shutdown instruction through the established connection (for example, when the shutdown instruction is an HTTP request, an HTTP request needs to be constructed and sent to the shutdown interface of the controlled device); finally, receive and process the response of the controlled device. The shutdown operation of the controlled device may take a certain period of time to complete, so a certain period of time needs to be waited or the state of the controlled device needs to be checked to ensure the correct closing of the controlled device.
[0131] In some embodiments, the management of the at least one controlled device based on the current state of the environment can be implemented by: calling the startup interface to start up the at least one controlled device in response to the current state of the environment being in the open state.
[0132] For example, when it is detected that the current store state is in the open state, the startup interface is called to start up the controlled device (such as POS machine, etc.) connected with the palm payment terminal.
[0133] In some embodiments, the calling the start-up interface of the at least one controlled device to start up the at least one controlled device can be implemented by: calling a start-up interface of the controlled device to send a start-up instruction to the controlled device, wherein the start-up instruction is used to start up the controlled device.
[0134] It should be noted that the implementation of calling the start-up interface of the controlled device to send a start-up instruction to the controlled device in the embodiments of the present application is similar to the implementation of calling the shutdown interface of the controlled device to send a shutdown instruction to the controlled device, and details can be referred to the implementation of calling the shutdown interface of the controlled device to send a shutdown instruction to the controlled device, which will not be described herein.
[0135] In some embodiments, when the collection result includes an audio collection result, the management of the at least one controlled device based on the collection result can be implemented by: in response to the audio collection result representing that the volume of the environment is less than a volume threshold, lowering the volume of the at least one controlled device; and in response to the audio collection result representing that the volume of the environment is greater than the volume threshold, increasing the volume of the at least one controlled device.
[0136] For example, when the collection result collected by the palm payment terminal includes an audio collection result, the audio collection result is analyzed, and when the audio collection result represents that the volume value of the environment is 40 decibels, which is less than the volume threshold (for example, assuming 60 decibels), it indicates that the environment in which the palm payment terminal is located is relatively quiet, and thus the volume of the controlled device can be lowered. When the audio collection result represents that the volume value of the environment is 80 decibels, which is greater than the volume threshold (for example, assuming 60 decibels), it indicates that the environment in which the palm payment terminal is located is relatively noisy, and thus the volume of the controlled device can be increased. In this way, by automatically adjusting the volume of the controlled device, the sound audibility of the device is enhanced, and the palm payment terminal can effectively respond to the change of the environment volume and make appropriate adjustments, thereby realizing the automatic management of the controlled device.
[0137] In some embodiments, when the collection result includes an audio collection result, the management of the at least one controlled device based on the collection result can be implemented by: in response to the audio collection result representing that the volume of the environment is less than a volume threshold, calling a control interface to control the at least one controlled device to enter a low-power consumption working mode; and in response to the audio collection result representing that the volume of the environment is greater than the volume threshold, calling the control interface to control the at least one controlled device to enter a normal working mode.
[0138] For example, when the collection result obtained by the palm payment terminal collecting the environment includes an audio collection result, the audio collection result is analyzed. When the audio collection result represents that the volume value of the environment is 10 decibels, which is less than the audio threshold (for example, 20 decibels), it indicates that the environment where the palm payment terminal is located has less people flow and the frequency of using the controlled device is low. Therefore, the control interface can be called to send a control instruction to the controlled device to control the controlled device to enter a low-power consumption working mode, so as to reduce power consumption and further reduce the operating cost of the merchant. When the audio collection result represents that the volume value of the environment is 40 decibels, which is greater than the audio threshold (for example, 20 decibels), it indicates that the environment where the palm payment terminal is located has more people flow and the frequency of using the controlled device is high. Therefore, the control interface can be called to send a control instruction to the controlled device to control the controlled device to enter a normal working mode. In this way, the working mode of the controlled device is automatically switched according to the environmental information, which can effectively reduce the power consumption of the device and further effectively reduce the operating cost of the device.
[0139] In some embodiments, the collection terminal can also obtain the identifier (for example, ID) of the target object and add the ID of the target object to the access permission list of the collection terminal, so that the target object has access permission, and the target object with access permission can view the management of the collection terminal to the controlled device through the third-party platform.
[0140] It should be noted that the collection terminal can obtain the identifier of the target object through a biological recognition method. For example, when the collection terminal is a palm payment terminal, the identifier of the target object can be obtained through palmprint recognition. For example, the palm payment terminal can collect the image of the palm of the target object, extract the features of the collected palmprint image, and then obtain the identifier of the target object from the identifier library based on the extracted palmprint features (that is, the identifier of the object in the identifier library that matches the extracted palmprint features). When the collection terminal is a face payment terminal, the identifier of the target object can be obtained through face recognition. For example, the face payment terminal can collect the image of the face of the target object, extract the features of the collected face image, and then obtain the identifier of the target object based on the extracted face features.
[0141] For example, the device administrator (or an internal employee with management authority) can input his / her ID in the palm payment terminal, and the palm payment terminal can verify the ID input by the device administrator and add the ID to the access permission list after verification, so that the user has access permission. Subsequently, the user can check the management of the controlled device by the palm payment terminal (e.g., confirm whether the controlled device is powered off or the current state of the controlled device) through the applet, public number or other third-party platform. For example, after the palm payment terminal manages at least one controlled device based on the collection result, the palm payment terminal can push the management of the controlled device to the terminal (e.g., mobile phone or computer) of the device administrator through the applet or public number, for example, the device administrator can be notified that the controlled device has been powered off or powered on, etc.
[0142] For example, when the collection terminal is a palm payment terminal, the device administrator (or an internal employee with management authority) can also collect the image of the user's palm through the palm module of the palm payment terminal, extract the features of the collected palmprint image, and then obtain the ID corresponding to the user from the identification library based on the extracted palmprint features, and automatically add the ID to the access permission list, so that the user has access permission. Subsequently, the user can check the management of the controlled device by the palm payment terminal (e.g., confirm whether the controlled device is powered off or the current state of the controlled device) through the applet, public number or other third-party platform.
[0143] For example, when the collection terminal is a palm payment terminal, the device administrator (or an internal employee with management authority) can also collect the image of the user's palm through the palm module of the palm payment terminal, extract the features of the collected palmprint image, and then obtain the ID corresponding to the user from the identification library based on the extracted palmprint features, and automatically add the ID to the access permission list, so that the user has access permission. Subsequently, the user can check the management of the controlled device by the palm payment terminal (e.g., confirm whether the controlled device is powered off or the current state of the controlled device) through the applet, public number or other third-party platform.
[0144] In some embodiments, after managing at least one controlled device based on the current state of the environment, the collection terminal can also send the management operation of the controlled device to the administrator through a prompt message to prompt the administrator of the management operation performed by the collection terminal.
[0145] For example, after the palm payment terminal performs the shutdown operation on the controlled device (such as a POS machine), the palm payment terminal sends a prompt message to the administrator to inform the administrator that the collection terminal performs the shutdown operation on the controlled device. It should be noted that the prompt message can be an information prompt function of an internal system, can be sent to the administrator by short message, or can prompt the administrator by other common communication means, which is not limited here.
[0146] In some embodiments, the collection terminal can also be connected to the Internet to realize remote control and management of the controlled device. Through remote control, the device state can be viewed in real time, and the device state can be managed remotely, thereby effectively improving the flexibility and convenience of device management.
[0147] For example, the palm payment terminal can be connected to the Internet, and the user can remotely view the management state of the controlled device in real time on the web page. The user can also remotely control the controlled device to perform control operations (such as remotely controlling the POS machine to execute a shutdown instruction) according to user needs. In this way, the flexibility and convenience of device management can be effectively improved, thereby effectively improving the efficiency of device management.
[0148] Next, an example application of the embodiments of the present application in an actual application scenario will be described. The example application describes the specific implementation process of the device management method in an offline store scenario.
[0149] In some embodiments, referring to Figure 6 , Figure 6 is a schematic diagram of the principle of automatically controlling a POS machine by a palm payment terminal provided by the embodiments of the present application. Next, the implementation process of automatically controlling a POS machine by a palm payment terminal will be described in detail with reference to Figure 6 .
[0150] As shown in Figure 6 , first, after the merchant purchases the palm payment terminal, the palm payment terminal and the POS machine are connected by a serial port line when the palm payment terminal is installed in the store, and a corresponding software development kit (SDK) needs to be installed on the POS machine. The SDK can configure the palm payment terminal, and the POS machine and the palm payment terminal can realize secure communication through the serial port.
[0151] In some embodiments, the technical solution for realizing secure communication between an Android device and a Windows device based on a serial port can be realized by the following methods:
[0152] (1) Use USB-to-serial cable to connect Android device and Windows device. USB-to-serial cable can convert USB interface into Recommended Standard 232 (RS-232) interface, so that Android device and Windows device can communicate through serial port. In Android device, use SerialPort class in Android SDK to realize serial port communication.
[0153] For example, SerialPort serialPort = new SerialPort(new File(" / dev / ttyS0"), 9600), wherein " / dev / ttyS0" is the path of serial port device, and 9600 is the baud rate.
[0154] (2) In order to ensure the security of communication, encryption algorithm can be used to encrypt the transmitted data, for example, AES, RSA and other encryption algorithms can be used to realize, in Android device and Windows device, corresponding encryption library can be used to realize encryption and decryption, in Android device and Windows device, Socket programming can be used to realize data transmission, after receiving the data, corresponding decryption algorithm can be used to decrypt the data, to ensure the security of data.
[0155] Then, the merchant side needs to configure and authorize the related instructions on the POS machine side, needs to allow the palm payment terminal to call the CMD command line of the current POS machine through the form of serial port, and the user will be prompted in the configuration interface that the current related configuration can be performed. The present application mainly realizes two functions, one is to realize automatic on-off, and the other is to realize automatic volume adjustment. After the merchant configures the related instructions, the palm payment terminal will transmit the current configuration information, combined with the merchant number, POS machine ID and the like, to the back end for storage, so that when the device is replaced, it can be directly and seamlessly used. After storing the related merchant number, POS machine ID and corresponding instructions in the cloud, the current instruction configuration result will be returned to the POS machine side.
[0156] Then, for the palm recognition ability, the APP can call the 3D camera to collect the current palm streaming media data of the user. After obtaining the streaming media, the terminal optimizes the streaming media. The optimization is to select the optimal palm picture through the comprehensive evaluation of the palm size, angle, image contrast, image brightness and clarity, etc. coefficient indicators. At the same time, the related recognition service in the back end receives the palm data uploaded by the terminal palm module and performs feature extraction, and then further obtains the account ID or payment code related information corresponding to the user. For the automatic on-off strategy, mainly through the fusion recognition of two optical and sound detection means. Through the optical method, the palm camera continuously collects the current environmental information. Assuming that the environmental information has not changed for a long time, and the current store scene is in a dark light scene, and there is no noise continuously, that is, the current store is probably in the rest time. At this time, the palm payment terminal needs to call the shutdown instruction to make the POS terminal shut down. Assuming that the ambient light of the current scene changes from dark to light and has a certain sound, that is, the current store is probably from the rest time to the normal operating time. At this time, the start-up instruction needs to be called for processing.
[0157] In some embodiments, the technical solution of confirming the current environment as dark or light through image algorithm can be realized by the following methods:
[0158] (1) Use the camera to collect the image information of the current environment. The collected image information can be compressed using JPEG image compression algorithm.
[0159] (2) Analyze the compressed image information to determine whether the current environment is dark or light. The average brightness L of the image can be calculated by the following formula (1).
[0160]
[0161] Wherein, R, G, B represent the pixel values of red, green and blue channels respectively, and Σ represents the summation of all pixel values.
[0162] (3) Set the brightness threshold of the image. According to the actual situation, set a brightness threshold of the image. If the average brightness of the image is greater than the brightness threshold, it is judged that the current environment is in light state, otherwise, it is judged that the current environment is in dark state.
[0163] In some embodiments, for the volume automatic adjustment scheme, the palm payment terminal can collect the current environment sound through the array microphone (also only processed at the device end, without performing any form of storage), assuming that the current store environment sound is relatively noisy, the volume increasing instruction needs to be called to further improve the POS machine volume; assuming that the current store is relatively quiet, the volume decreasing instruction needs to be called to further reduce the volume of the POS machine, wherein the above two instructions are commonly used instructions, different control instructions can be used in combination with the scene or the needs of the merchant, which are not specifically limited here. The embodiments of the application mainly supplement the insufficient original collection capability of the POS machine by combining the collection capability of the voice or camera, and fully play the value of the palm payment terminal.
[0164] In some embodiments, first, the current environment sound is collected based on the microphone; then, the sound collection is realized using the MediaRecorder class in the Android SDK or the AVAudioRecorder class in the iOS SDK; then, the collected sound is processed to confirm whether the current environment has sound, which can be realized by the following way:
[0165] (1) The root mean square (RMS) energy of the sound can be calculated by the following formula (2).
[0166]
[0167] Wherein, x(t) represents the sound sample value at t time, and N represents the sampling point number.
[0168] (2) A threshold value can be set, and an audio threshold value can be set according to the actual situation, if the root mean square energy is greater than the audio threshold value, it is judged that the current environment has sound, otherwise, it is judged that the current environment has no sound.
[0169] In some embodiments, referring to Figure 7 , Figure 7 is a timing diagram for controlling the POS machine through the palm payment terminal provided by the embodiments of the application, which will be described below in combination with the steps shown in Figure 7 .
[0170] In step 201, the POS machine is connected to the palm payment terminal through a serial line.
[0171] In some embodiments, the serial line is usually used to realize the data transmission and communication between devices, and the POS machine and the palm payment terminal can be connected to realize the processing of payment transactions and data transmission, and through the serial line connection, the POS machine can exchange data with the palm payment terminal, including transaction amount, payment confirmation and other information, so as to realize the user payment through the network or card payment.
[0172] In step 202, the palm payment terminal returns the result to the POS machine.
[0173] In some embodiments, the palm payment terminal returns the connection result between the devices to the POS machine to return the connection status between the devices.
[0174] In step 203, the POS receives the instruction configuration input by the merchant.
[0175] In some embodiments, the user (for example, the merchant) can configure the instructions of the POS machine in various ways to meet different business needs. The user can enter the settings or configuration menu through the POS machine interface, input the required configuration instructions through the input device, and complete the instruction configuration of the POS machine; the user can also connect the POS machine to the computer through the serial port, use the terminal simulation software on the computer, input the corresponding instructions or control commands, and complete the instruction configuration of the POS machine; for the POS machine with network connection function, the user can also configure through the Web interface, log in to the management background of the POS through the network, input the instructions or modify the configuration parameters, and complete the instruction configuration of the POS machine; the user can also connect the mobile device to the POS machine through Bluetooth, WiFi or USB, and complete the instruction configuration of the POS machine through the mobile application program or special software; for some advanced POS machines, the user can also configure through physical interfaces (such as CompactFlash (CF) card, Secure Digital Memory Card (SD Card), etc.), store the configuration file in the physical medium, and complete the instruction configuration of the POS machine by inserting the medium through the physical interface. The specific instruction configuration method can be selected according to the actual application scenario, which is not limited here.
[0176] In step 204, the POS machine allows the palm payment terminal to call the command prompt.
[0177] It should be noted that the POS machine will not directly allow the palm payment terminal or other external devices to call the command prompt. The POS machine is mainly used to process transactions and perform payment operations, and the access rights of external devices are usually limited to ensure the security and data integrity of transaction payment.
[0178] In some embodiments, specific configuration or debugging operations (such as corresponding authentication or permission verification operations, etc.) are performed on the POS machine, and then authorized personnel perform operations through specific ways (such as management interfaces or specific tools) to enable the palm payment terminal to call the command prompt.
[0179] In step 205, the POS machine performs instruction configuration.
[0180] In some embodiments, the POS machine needs to be configured with corresponding instructions to perform corresponding operations (such as including automatic on-off, automatic volume adjustment, etc.) according to the control instructions sent by the palm payment terminal.
[0181] In step 206, the POS machine configures the palm payment terminal with instructions.
[0182] In some embodiments, the palm payment terminal is configured with instructions according to the instruction configuration operation performed by the POS machine itself.
[0183] In step 207, the palm payment terminal synchronizes information with the backend service.
[0184] In some embodiments, the palm payment terminal synchronizes information with the backend service to ensure the accuracy and timeliness of the information.
[0185] In step 208, the backend service returns the result to the palm payment terminal.
[0186] In some embodiments, the backend service returns the information synchronization result to the palm payment terminal.
[0187] In step 209, the palm payment terminal returns the result to the POS machine.
[0188] In some embodiments, the palm payment terminal returns the instruction configuration result to the POS machine.
[0189] In step 210, the palm payment terminal sends palm recognition information to the backend service.
[0190] In some embodiments, the palm payment terminal sends palm recognition information to the backend service through an image acquisition device.
[0191] In step 211, the backend service returns the result to the palm payment terminal.
[0192] In some embodiments, the backend service reads the corresponding user information (such as payment account number, etc.) according to the palm recognition information, and transmits the information recognition result to the palm payment terminal through the network.
[0193] In step 212, the palm payment terminal recognizes the local device in silence.
[0194] In some embodiments, when the palm payment terminal is silent, it will regularly collect surrounding environmental information (such as light environment, sound environment, etc.) to recognize the current environmental information (such as business status, rest status, etc.).
[0195] In step 213, the palm payment terminal determines the hit strategy according to the environmental information.
[0196] In some embodiments, the palm payment terminal determines a corresponding hit strategy (e.g., the switching on / off of the device) according to the current environmental information, to determine a corresponding control instruction.
[0197] In step 214, the palm payment terminal transmits the instruction to the POS machine.
[0198] In some embodiments, the palm payment terminal transmits the control instruction to the POS machine according to the hit control instruction, to determine the command prompt instruction that the POS machine needs to execute.
[0199] In step 215, the POS machine executes the command prompt instruction.
[0200] In some embodiments, the POS machine executes the corresponding command prompt instruction according to the determined command prompt instruction that needs to be executed, to make the POS machine execute the operation corresponding to the command prompt.
[0201] In step 216, the POS machine returns the execution result to the palm payment terminal.
[0202] In some embodiments, the POS machine returns the execution result to the palm payment terminal after executing the control instruction, to make the palm payment terminal confirm that the POS machine completes the control instruction operation.
[0203] The following continues to illustrate an exemplary structure of the device management apparatus 555 provided by the embodiments of the present application, which is implemented as a software module. In some embodiments, as shown in FIG. 5, the software module stored in the device management apparatus 555 of the memory 550 can include: a collection module 5551, configured to collect the environment in which the payment terminal is located, to obtain a collection result; and a management module 5552, configured to manage at least one controlled device based on the collection result, wherein the at least one controlled device is in the environment. Figure 2
[0204] In some embodiments, the collection module 5551 is further configured to perform at least one of the following processes: image collection on the environment in which the payment terminal is located, to obtain an image collection result; and audio collection on the environment in which the payment terminal is located, to obtain an audio collection result.
[0205] In some embodiments, the management module 5552 is further configured to determine a current state of the environment based on at least one of the image collection result and the audio collection result; and manage the at least one controlled device based on the current state of the environment.
[0206] In some embodiments, the management module 5552 is further configured to determine that the environment is currently in a resting state in response to an image acquisition result indicating that the brightness of the environment is less than a brightness threshold, and / or an audio acquisition result indicating that the volume of the environment is less than a volume threshold.
[0207] In some embodiments, the management module 5552 is further configured to call the shutdown interface to shut down at least one controlled device in response to the environment being in a resting state.
[0208] In some embodiments, the management module 5552 is further configured to perform the following process for each controlled device: call the shutdown interface of the controlled device to send a shutdown command to the controlled device, wherein the shutdown command is used to shut down the controlled device.
[0209] In some embodiments, the management module 5552 is further configured to determine that the environment is currently in a business state in response to the image acquisition results indicating that the brightness of the environment is greater than a brightness threshold, and / or the audio acquisition results indicating that the volume of the environment is greater than a volume threshold.
[0210] In some embodiments, the management module 5552 is further configured to invoke the power-on interface to start at least one controlled device in response to the environment being in an operational state.
[0211] In some embodiments, the management module 5552 is further configured to perform the following process for each controlled device: call the power-on interface of the controlled device to send a power-on command to the controlled device, wherein the power-on command is used to turn on the controlled device.
[0212] In some embodiments, the acquisition results include audio acquisition results. The management module 5552 is further configured to, in response to the audio acquisition results indicating that the volume of the environment is less than a volume threshold, lower the volume of at least one controlled device; and in response to the audio acquisition results indicating that the volume of the environment is greater than a volume threshold, raise the volume of at least one controlled device.
[0213] In some embodiments, the device management device 555 further includes a configuration module 5553, which is used to display a configuration interface; receive configured information through the configuration interface; bind the configuration information, the identifier of at least one controlled device and the identifier corresponding to the environment and send them to the server for storage on the server.
[0214] It should be noted that the description of the device in this application embodiment is similar to the description of the method embodiment above, and has similar beneficial effects as the method embodiment, therefore it will not be repeated. For any technical details not covered in the device management device provided in this application embodiment, please refer to... Figure 3 , Figure 4 ,or Figure 5 The meaning is understood in accordance with the description of any of the accompanying drawings.
[0215] This application provides a computer program product, which includes a computer program or computer-executable instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer-executable instructions from the computer-readable storage medium and executes the computer-executable instructions, causing the computer device to perform the device management method described in this application.
[0216] This application provides a computer-readable storage medium storing computer-executable instructions. When these computer-executable instructions are executed by a processor, they cause the processor to execute the device management method provided in this application. For example, ... Figure 3 , Figure 4 ,or Figure 5 The equipment management method is shown.
[0217] In some embodiments, the computer-readable storage medium may be a memory such as ferroelectric random access memory (FRAM), ROM, programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM); or it may be a device that includes one or any combination of the above-mentioned memories.
[0218] In some embodiments, executable instructions may take the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a standalone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0219] As an example, executable instructions can be deployed to execute on a single electronic device, or on multiple electronic devices located at one location, or on multiple electronic devices distributed across multiple locations and interconnected via a communication network.
[0220] In summary, the embodiment of the application collects the environment information of the collection terminal, obtains a collection result, and manages at least one controlled device according to the collection result. In this way, the collection terminal automatically manages the controlled device, and the operation cost of the device can be effectively reduced.
[0221] The above merely describes the embodiments of the application, but is not intended to limit the protection scope of the application. Any modification, equivalent replacement, and improvement made within the spirit and scope of the application shall fall within the protection scope of the application.
Claims
1. A device management method characterized by, The application is applied to a collection terminal connected with at least one controlled device; The method comprises: Collecting an environment where the collection terminal is located to obtain a collection result; Based on the collection result, the at least one controlled device is managed, wherein the at least one controlled device is in the environment.
2. The method of claim 1, wherein, The collection result comprises: At least one of the following processes is performed: Image collection is performed on the environment where the collection terminal is located to obtain an image collection result; Audio collection is performed on the environment where the collection terminal is located to obtain an audio collection result.
3. The method of claim 2, wherein, Based on at least one of the image collection result and the audio collection result, the current state of the environment is determined; Based on the current state of the environment, the at least one controlled device is managed. Based on at least one of the image collection result and the audio collection result, the current state of the environment is determined, comprising:
4. The method of claim 3, wherein, In response to the image collection result representing that the brightness of the environment is less than a brightness threshold value and / or the audio collection result representing that the volume of the environment is less than a volume threshold value, it is determined that the environment is currently in a rest state. Based on the current state of the environment, the at least one controlled device is managed, comprising:
5. The method of claim 4, wherein, In response to the environment being currently in the rest state, a shutdown interface is called to shut down the at least one controlled device. The call to the shutdown interface to shut down the at least one controlled device comprises:
6. The method of claim 5, wherein, For each controlled device, the following process is performed: A shutdown interface of the controlled device is called to send a shutdown instruction to the controlled device, wherein the shutdown instruction is used to shut down the controlled device. Based on at least one of the image collection result and the audio collection result, the current state of the environment is determined, comprising:
7. The method of claim 3, wherein, In response to the image collection result representing that the brightness of the environment is greater than a brightness threshold value and / or the audio collection result representing that the volume of the environment is greater than a volume threshold value, it is determined that the environment is currently in a business state. Based on the current state of the environment, the at least one controlled device is managed, comprising:
8. The method of claim 7, wherein, In response to the environment being currently in the business state, a startup interface is called to start the at least one controlled device. The call to the startup interface to start the at least one controlled device comprises:
9. The method of claim 8, wherein, For each controlled device, the following process is performed: A startup interface of the controlled device is called to send a startup instruction to the controlled device, wherein the startup instruction is used to start the controlled device.
10. The method of claim 1, wherein: The collection result comprises an audio collection result; Based on the collection result, the at least one controlled device is managed, comprising: In response to the audio collection result representing that the volume of the environment is less than a volume threshold value, the volume of the at least one controlled device is lowered; In response to the audio collection result representing that the volume of the environment is greater than a volume threshold value, the volume of the at least one controlled device is raised. 11. The method of claim 1, wherein, The method further includes: displaying a configuration interface; receiving set configuration information through the configuration interface; binding the configuration information, the identity of the at least one controlled device, and the identity corresponding to the environment, and sending to a server for storage in the server.
12. An equipment management apparatus characterized by comprising: Applied to a collection terminal, the collection terminal is connected with at least one controlled device; The device includes: a collection module for collecting the environment in which the collection terminal is located to obtain a collection result; a management module for managing the at least one controlled device based on the collection result, wherein the at least one controlled device is in the environment.
13. An electronic device, comprising: includes: a memory for storing computer executable instructions; a processor for executing the computer executable instructions stored in the memory, realizing the device management method of any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that, The computer executable instructions are stored for being executed by the processor to realize the device management method of any one of claims 1 to 11.
15. A computer program product comprising computer programs or instructions, characterized in that, The computer program or instructions are executed by the processor to realize the device management method of any one of claims 1 to 11.