CN111899443B - Method and device for debugging traditional POS machine on intelligent POS machine - Google Patents

Method and device for debugging traditional POS machine on intelligent POS machine Download PDF

Info

Publication number
CN111899443B
CN111899443B CN202010814851.5A CN202010814851A CN111899443B CN 111899443 B CN111899443 B CN 111899443B CN 202010814851 A CN202010814851 A CN 202010814851A CN 111899443 B CN111899443 B CN 111899443B
Authority
CN
China
Prior art keywords
pos machine
interface
intelligent
debugging
traditional
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
CN202010814851.5A
Other languages
Chinese (zh)
Other versions
CN111899443A (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.)
Shenzhen Dashi Intelligent Technology Co ltd
Original Assignee
Shenzhen Dashi Intelligent 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 Shenzhen Dashi Intelligent Technology Co ltd filed Critical Shenzhen Dashi Intelligent Technology Co ltd
Priority to CN202010814851.5A priority Critical patent/CN111899443B/en
Publication of CN111899443A publication Critical patent/CN111899443A/en
Application granted granted Critical
Publication of CN111899443B publication Critical patent/CN111899443B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/0009Details of the software in the checkout register, electronic cash register [ECR] or point of sale terminal [POS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging

Abstract

The embodiment of the invention provides a method for debugging a traditional POS machine on an intelligent POS machine, which comprises the following steps: configuring an equipment development interface of a traditional POS machine on an intelligent POS machine; calling an equipment development interface to enable an application program of the traditional POS machine to run on the intelligent POS machine; and debugging the application program through a debugging tool of the intelligent POS machine. An embodiment of the present invention further provides an apparatus, including: the configuration module is used for configuring an equipment development interface of a traditional POS machine on the intelligent POS machine; the calling module is used for calling the equipment development interface to enable the application program of the traditional POS machine to run on the intelligent POS machine; and the debugging module is used for debugging the application program through a debugging tool of the intelligent POS machine. The invention can complete the simulation of the traditional POS machine by configuring the development interface on the intelligent POS machine, realizes the effect of simulating various different traditional POS machines by one intelligent POS machine, greatly improves the debugging efficiency by debugging and applying on the intelligent POS machine, and can realize the rapid development of the application program of the traditional POS machine.

Description

Method and device for debugging traditional POS machine on intelligent POS machine
Technical Field
The invention relates to the technical field of computers, in particular to a method for debugging a traditional POS machine on an intelligent POS machine and a device for debugging the traditional POS machine on the intelligent POS machine.
Background
The hardware modules contained in the traditional POS machine mainly comprise a printer, a camera, a display screen, a magnetic stripe card reader, a chip card reader, an LED lamp, a buzzer, GPRS (general packet radio service), a security chip, a key and the like, and the modules also exist on the intelligent POS machine.
The traditional POS machine application program is relatively single in research, development and debugging means, after codes are compiled and modified, firmware is generated through compiling and compiling of a compiling environment, after the POS machine is shut down, the programs are burnt into the POS machine through a corresponding burning tool, and then the POS machine is started up to verify the modification points of the programs. The intelligent POS machine application program can be debugged and developed through an android studio tool, one-key compiling and installing are applied to the intelligent POS machine, and meanwhile, online debug is supported by the android studio, so that possible problems of the program can be quickly located and found.
However, the development and debugging efficiency of the application program of the traditional POS machine is low, for example, a character display problem is modified, the code modification time is 10 seconds, but it takes at least 3 minutes to finally see that the modification effect is embodied on the POS machine, and the file system of the traditional POS machine cannot be directly checked, and can only be read and written by codes, which increases the difficulty of problem debugging.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a method for debugging a conventional POS machine on a smart POS machine and an apparatus for debugging a conventional POS machine on a smart POS machine, which overcome or at least partially solve the above problems.
In order to solve the above problems, an embodiment of the present invention discloses a method for debugging a traditional POS machine on an intelligent POS machine, including:
configuring an equipment development interface of a traditional POS machine on an intelligent POS machine;
calling the equipment development interface to enable the application program of the traditional POS machine to run on the intelligent POS machine;
and debugging the application program through a debugging tool of the intelligent POS machine.
Preferably, the configuring of the device development interface of the legacy POS on the smart POS includes:
configuring a communication interface of the intelligent POS machine into a GPRS interface and a WIFI interface of the traditional POS machine;
configuring a hardware interface of the intelligent POS machine into a serial port, a camera, a printer, a camera, a magnetic stripe card, a chip card and a non-card-connecting interface of the traditional POS machine;
configuring a file operation interface of the intelligent POS machine into a file system interface of the traditional POS machine;
simulating to draw a second display screen on the intelligent POS machine, connecting a first display screen with a display screen interface of the traditional POS machine, wherein the first display screen is the display screen of the intelligent POS machine, and establishing a display mechanism, wherein the display mechanism comprises: controlling the image signal of the traditional POS machine to be displayed on the second display screen through the first display screen;
simulating and drawing two or more keys on the intelligent POS machine, wherein each key is preset with a corresponding operation instruction, and an operation mechanism is established and comprises: generating an operation instruction according to the operation of any key in the keys, and operating the traditional POS machine according to the operation instruction;
establishing a file encryption mechanism in a first storage medium of the intelligent POS machine, and connecting the first storage medium with a security chip interface of the traditional POS machine.
Preferably, the debugging the application program through a debugging tool of the intelligent POS machine includes:
and compiling, installing and running the application program through the debugging tool.
Preferably, after the debugging of the application program by the debugging tool of the smart POS machine, the method further includes:
and writing the file of the intelligent POS machine into a second storage medium.
In order to solve the above problem, an embodiment of the present invention further discloses a device for debugging a conventional POS machine on an intelligent POS machine, including:
the configuration module is used for configuring an equipment development interface of a traditional POS machine on the intelligent POS machine;
the calling module is used for calling the equipment development interface to enable the application program of the traditional POS machine to run on the intelligent POS machine;
and the debugging module is used for debugging the application program through a debugging tool of the intelligent POS machine.
Preferably, the configuration module includes:
the communication interface configuration submodule is used for configuring the communication interface of the intelligent POS machine into a GPRS (general packet radio service) interface and a WIFI (wireless fidelity) interface of the traditional POS machine;
the hardware interface configuration submodule is used for configuring the hardware interface of the intelligent POS machine into a serial port, a camera, a printer, a camera, a magnetic stripe card, a chip card and a non-card-receiving interface of the traditional POS machine;
the system interface configuration submodule is used for configuring the file operation interface of the intelligent POS machine into the file system interface of the traditional POS machine;
the display interface configuration submodule is used for simulating and drawing a second display screen on the intelligent POS machine, connecting a first display screen with a display screen interface of the traditional POS machine, wherein the first display screen is the display screen of the intelligent POS machine, and establishing a display mechanism, wherein the display mechanism comprises: controlling the image signal of the traditional POS machine to be displayed on the second display screen through the first display screen;
the key interface configuration submodule is used for simulating and drawing two or more keys on the intelligent POS machine, corresponding operation instructions are preset on the keys, and an operation mechanism is established and comprises: generating an operation instruction according to the operation of any key in the keys, and operating the traditional POS machine according to the operation instruction;
and the security chip interface configuration submodule is used for establishing a file encryption storage mechanism in a first storage medium of the intelligent POS machine and connecting the first storage medium with a security chip interface of the traditional POS machine.
Preferably, the debugging module includes:
the compiling submodule is used for compiling the application program through the debugging tool;
the installation submodule is used for installing the application program through the debugging tool;
and the operation sub-module is used for operating the application program through the debugging tool.
Preferably, the method further comprises the following steps:
and the storage module is used for writing the file of the intelligent POS machine into a second storage medium.
In order to solve the above problem, an embodiment of the present invention further discloses an electronic device, which is characterized by including a processor, a memory, and a computer program stored on the memory and capable of running on the processor, where the computer program, when executed by the processor, implements the steps of the method for debugging the conventional POS machine on the smart POS machine.
In order to solve the above problem, an embodiment of the present invention further discloses a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps of the method for debugging the traditional POS machine on the intelligent POS machine.
The embodiment of the invention has the following advantages:
according to the invention, the device development interface of the traditional POS machine is configured on the intelligent POS machine, the device development interface is called, so that the application program of the traditional POS machine runs on the intelligent POS machine, the application program is debugged by the debugging tool of the intelligent POS machine, the simulation of the traditional POS machine can be completed, the effect of simulating various different traditional POS machines by one intelligent POS machine is realized, a development and debugging prototype is saved, and the development and debugging of the program are not influenced under the condition that the intelligent POS machine does not correspond to the traditional POS machine; through debugging the application on intelligent POS machine, debugging efficiency has greatly been promoted, can realize the quick development to the application program of traditional POS machine.
Drawings
FIG. 1 is a flowchart illustrating a first embodiment of a method for debugging a conventional POS machine on an intelligent POS machine according to the present invention;
FIG. 2 is a flowchart illustrating steps of a second embodiment of a method for debugging a conventional POS machine on an intelligent POS machine according to the present invention;
FIG. 3 is a flowchart illustrating the third step of the method for debugging a conventional POS machine on an intelligent POS machine according to the present invention;
FIG. 4 is a block diagram illustrating a first embodiment of a device for debugging a conventional POS machine on an intelligent POS machine according to the present invention;
FIG. 5 is a block diagram illustrating a second embodiment of a device for debugging a conventional POS machine on an intelligent POS machine according to the present invention;
FIG. 6 is a block diagram of a third embodiment of a device for debugging a conventional POS machine on an intelligent POS machine according to the present invention;
FIG. 7 is a block diagram illustrating a fourth embodiment of a device for debugging a conventional POS machine on an intelligent POS machine according to the present invention;
fig. 8 is a block diagram of an embodiment of an electronic device implementing a method for debugging a conventional POS machine on an intelligent POS machine according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
One of the core ideas of the embodiment of the invention is to provide a method for debugging a traditional POS machine on an intelligent POS machine, wherein an equipment development interface of the traditional POS machine is configured on the intelligent POS machine, the equipment development interface is called, so that an application program of the traditional POS machine runs on the intelligent POS machine, and the application program is debugged by a debugging tool of the intelligent POS machine, so that the simulation of the traditional POS machine can be completed, the effect of simulating various different traditional POS machines by one intelligent POS machine is realized, a development debugging prototype is saved, and the development and debugging of the program are not influenced under the condition that the traditional POS machine is not corresponding; through debugging the application on intelligent POS machine, debugging efficiency has greatly been promoted, can realize the quick development to the application program of traditional POS machine.
Referring to fig. 1, a flowchart illustrating a first step of a method embodiment of debugging a conventional POS machine on an intelligent POS machine of the present invention may specifically include:
s101, configuring an equipment development interface of a traditional POS machine on an intelligent POS machine;
s102, calling the equipment development interface to enable the application program of the traditional POS machine to run on the intelligent POS machine;
s103, debugging the application program through a debugging tool of the intelligent POS machine.
Step S101, configuring a device development interface of the traditional POS machine on the intelligent POS machine; as shown in fig. 2, the step S101 may include:
s1011, configuring the communication interface of the intelligent POS machine into a GPRS interface and a WIFI interface of the traditional POS machine; specifically, the communication interface may be a socket provided in the intelligent POS, and the socket is configured as a GPRS and WIFI interface of the conventional POS, so that a network communication function of the conventional POS can be implemented.
S1012, configuring the hardware interface of the intelligent POS machine into a serial port, a camera, a printer, a camera, a magnetic stripe card, a chip card and a non-connected card interface of the traditional POS machine; specifically, a hardware interface of the intelligent POS machine may be connected to the hardware device, so as to implement simulation of a conventional POS machine; or not connected to the printer, thereby simulating a device without a printer; or the intelligent POS machine is connected with a chip card with a low memory, so that a piece of low memory equipment is simulated, the simulation can be performed by analogy, the effect of simulating various different traditional POS machines by one intelligent POS machine can be realized, a development and debugging prototype is saved, and the development and debugging of a program are not influenced under the condition that the intelligent POS machine does not correspond to the traditional POS machine.
S1013, configuring the file operation interface of the intelligent POS machine into a file system interface of the traditional POS machine; specifically, when a file is operated on the intelligent POS, a file is first opened to obtain a file descriptor, then the file is read and written, and finally the file is closed, and the file operation mechanism also exists on the intelligent POS, so that a file operation interface of the intelligent POS can be configured as a file system interface of the conventional POS.
S1014, simulating and drawing a second display screen on the intelligent POS machine, connecting a first display screen with a display screen interface of the traditional POS machine, wherein the first display screen is the display screen of the intelligent POS machine, and establishing a display mechanism, wherein the display mechanism comprises: controlling the image signal of the traditional POS machine to be displayed on the second display screen through the first display screen; specifically, the second display screen may be a display area of 70mm × 50mm, the second display screen is simulated and drawn on the intelligent POS machine through a canvas mechanism, and the image signal of the conventional POS machine is controlled to be displayed on the second display screen through the display screen of the intelligent POS machine, so that the function of the display screen of the conventional POS machine can be simulated and replaced.
S1015, simulating and drawing two or more keys on the intelligent POS machine, wherein each key is preset with a corresponding operation instruction, and an operation mechanism is established, and the operation mechanism comprises: generating an operation instruction according to the operation of any key in the keys, and operating the traditional POS machine according to the operation instruction; the keys comprise function keys and numeric keys, specifically, 12 numeric keys comprising ' 1 ', ' 2 ', ' 3 ', ' 4 ', ' 5 ', ' 6 ', ' 7 ', ' 8 ', ' 9 ', ' 0 ', ' a ', ' and ' # ', and 9 function keys comprising ' clear ', ' cancel ', ' confirm ', ' menu ', ' function ', ' paper feed ', ' flip up ', ' flip down ', ' power on/power off ' can be simulated and drawn on the intelligent POS machine through a canvas mechanism, corresponding operation instructions are generated according to the operation of any key in the keys, the traditional POS machine is operated according to the operation instructions, and the key functions of the traditional POS machine can be simulated and replaced.
S1016, establishing a file encryption mechanism in a first storage medium of the intelligent POS machine, and connecting the first storage medium with a security chip interface of the traditional POS machine; specifically, the encryption mechanism includes: acquiring a first file descriptor, and generating a second file descriptor according to an encryption function and the first file descriptor; and when the file needs to be called, acquiring a second file descriptor, and generating a first file descriptor according to the decryption function and the second file descriptor. The file encryption mechanism is established in the first storage medium of the intelligent POS machine, so that the function of a security chip replacing the traditional POS machine can be simulated.
As the step S102, the device development interface is called, so that the application program of the conventional POS runs on the smart POS; specifically, the device development interface may be called on the smart POS through macro definition, so that the application program of the legacy POS runs on the smart POS.
As the step S103, debugging the application program by the debugging tool of the intelligent POS machine; preferably, the application program is compiled, installed and run by the debugging tool. Specifically, the compiling and installing are clicked on the debugging tool android studio, and the compiling, installing and running of the program can be automatically realized.
According to the method, the device development interface of the traditional POS machine is configured on the intelligent POS machine, the device development interface is called, so that the application program of the traditional POS machine runs on the intelligent POS machine, the application program is debugged through a debugging tool of the intelligent POS machine, the simulation of the traditional POS machine can be completed, the effect that one intelligent POS machine simulates various different traditional POS machines is achieved, a development and debugging prototype is saved, and the development and debugging of the program are not influenced under the condition that the intelligent POS machine does not correspond to the traditional POS machine; through debugging the application on intelligent POS machine, debugging efficiency has greatly been promoted, can realize the quick development to the application program of traditional POS machine.
Referring to fig. 3, a flowchart illustrating a third step of an embodiment of a method for debugging a conventional POS machine on an intelligent POS machine according to the present invention is shown, where after the application program is debugged by a debugging tool of the intelligent POS machine, the method may further include:
s301, writing the file of the intelligent POS machine into a second storage medium.
As the step S301, writing the file of the intelligent POS machine into a second storage medium; specifically, the file stored in the intelligent POS machine may be written into the local disk by an adb pull instruction, so that the content of the file is convenient to view.
According to the method, the file content stored on the intelligent POS machine can be quickly and conveniently checked by writing the file of the intelligent POS machine into the second storage medium, and the difficulty of problem debugging is greatly reduced.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those of skill in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the embodiments of the invention.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Referring to fig. 4, a block diagram of a first structure of an embodiment of a device for debugging a conventional POS machine on an intelligent POS machine according to the present invention is shown, which may specifically include:
a configuration module 401, configured to configure an equipment development interface of a traditional POS machine on an intelligent POS machine;
a calling module 402, configured to call the device development interface, so that the application program of the legacy POS runs on the smart POS;
a debugging module 403, configured to debug the application program through a debugging tool of the intelligent POS machine;
the configuration module 401, the calling module 402 and the debugging module 403 are electrically connected.
As shown in fig. 5, the configuration module 401 may specifically include:
a communication interface configuration submodule 4011, configured to configure the communication interface of the intelligent POS machine as a GPRS and WIFI interface of the legacy POS machine;
a hardware interface configuration submodule 4012, configured to configure the hardware interface of the intelligent POS machine into a serial port, a camera, a printer, a camera, a magnetic stripe card, a chip card, and a non-card interface of the conventional POS machine;
a system interface configuration submodule 4013, configured to configure the file operation interface of the intelligent POS machine as a file system interface of the legacy POS machine;
display interface configuration submodule 4014, be used for simulation drawing second display screen on the intelligence POS machine, with first display screen with the display screen interface connection of traditional POS machine, first display screen is for the display screen of intelligence POS machine to establish the display mechanism, the display mechanism includes: controlling the image signal of the traditional POS machine to be displayed on the second display screen through the first display screen;
a key interface configuration sub-module 4015, configured to simulate and draw two or more keys on the intelligent POS machine, where each key is preset with a corresponding operation instruction, and an operation mechanism is established, where the operation mechanism includes: generating an operation instruction according to the operation of any key in the keys, and operating the traditional POS machine according to the operation instruction;
and the security chip interface configuration sub-module 4016 is configured to establish a file encryption storage mechanism in the first storage medium of the intelligent POS, and connect the first storage medium with the security chip interface of the conventional POS.
As shown in fig. 6, the debugging module 403 may specifically include:
a compiling submodule 4031 for compiling the application program by the debugging tool;
an installation submodule 4032 for installing the application program by the debugging tool;
the running sub-module 4033 is configured to run the application program through the debugging tool.
The device of this embodiment configures an equipment development interface of a traditional POS machine on an intelligent POS machine through the configuration module 401, calls the equipment development interface through the call module 402, so that an application program of the traditional POS machine runs on the intelligent POS machine, and debugs the application program through a debugging tool of the intelligent POS machine through the debugging module 403, so that simulation of the traditional POS machine can be completed, an effect of simulating various different traditional POS machines by one intelligent POS machine is achieved, development and debugging prototypes are saved, and development and debugging of the program are not affected under the condition that the corresponding traditional POS machine is not provided; through debugging the application on intelligent POS machine, debugging efficiency has greatly been promoted, can realize the quick development to the application program of traditional POS machine.
Referring to fig. 7, a block diagram of a fourth embodiment of the apparatus for debugging a conventional POS machine on an intelligent POS machine according to the present invention is shown, which may further include:
and the storage module 701 is configured to write the file of the intelligent POS machine into a second storage medium.
The device of this embodiment writes the file of the intelligent POS machine into the second storage medium through the storage module 701, and can quickly and conveniently view the file content stored on the intelligent POS machine.
Referring to fig. 8, a block diagram of an embodiment of an electronic device for implementing a method for debugging a conventional POS machine on an intelligent POS machine according to the present invention is shown, which may specifically include: a processor 81, a memory 82 and a debugging program 83 stored on the memory 82 and capable of running on the processor 81, wherein the debugging program 83 when executed by the processor 81 implements the steps of the method for debugging the conventional POS machine on the smart POS machine.
The processor 81 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 81 is a Control Unit (Control Unit) of the electronic device 8, connects various components of the whole electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device 8 by running or executing programs or modules (e.g., the debugging program 83, etc.) stored in the memory 82 and calling data stored in the memory 82.
The memory 82 includes at least one type of readable storage medium including flash memory, removable hard disks, multimedia cards, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disks, optical disks, etc. The memory 82 may in some embodiments be an internal storage unit of the electronic device 8, such as a removable hard disk of the electronic device 8. The memory 82 may also be an external storage device of the electronic device 8 in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device 8. Preferably, the memory 82 may also include both an internal storage unit and an external storage device of the electronic device 8. The memory 82 can be used not only to store application software installed in the electronic device 8 and various types of data, such as the code of the debugging program 83, but also to temporarily store data that has been output or is to be output.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method for debugging the traditional POS machine on the intelligent POS machine and the device for debugging the traditional POS machine on the intelligent POS machine are described in detail, specific examples are applied in the method for explaining the principle and the implementation mode of the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. A method for debugging a traditional POS machine on an intelligent POS machine is characterized by comprising the following steps:
configuring an equipment development interface of a traditional POS machine on an intelligent POS machine; specifically, a communication interface of the intelligent POS machine is configured to be a GPRS interface and a WIFI interface of the traditional POS machine; configuring a hardware interface of the intelligent POS machine into a serial port, a camera, a printer, a camera, a magnetic stripe card, a chip card and a non-card-connecting interface of the traditional POS machine; configuring a file operation interface of the intelligent POS machine into a file system interface of the traditional POS machine; simulating to draw a second display screen on the intelligent POS machine, connecting a first display screen with a display screen interface of the traditional POS machine, wherein the first display screen is the display screen of the intelligent POS machine, and establishing a display mechanism, wherein the display mechanism comprises: controlling the image signal of the traditional POS machine to be displayed on the second display screen through the first display screen; simulating and drawing two or more keys on the intelligent POS machine, wherein each key is preset with a corresponding operation instruction, and an operation mechanism is established and comprises: generating an operation instruction according to the operation of any key in the keys, and operating the traditional POS machine according to the operation instruction; establishing a file encryption mechanism in a first storage medium of the intelligent POS machine, and connecting the first storage medium with a secure chip interface of the traditional POS machine, wherein the encryption mechanism comprises: acquiring a first file descriptor, generating a second file descriptor according to an encryption function and the first file descriptor, acquiring the second file descriptor when a file needs to be called, and generating the first file descriptor according to a decryption function and the second file descriptor;
calling the equipment development interface to enable the application program of the traditional POS machine to run on the intelligent POS machine;
and debugging the application program through a debugging tool of the intelligent POS machine.
2. The method according to claim 1, wherein debugging the application program through a debugging tool of the smart POS machine comprises:
and compiling, installing and running the application program through the debugging tool.
3. The method according to claim 1, wherein after debugging the application program by the debugging tool of the intelligent POS machine, the method further comprises:
and writing the file of the intelligent POS machine into a second storage medium.
4. The utility model provides a device of traditional POS machine debugging on intelligent POS machine which characterized in that includes:
the configuration module is used for configuring an equipment development interface of a traditional POS machine on the intelligent POS machine; specifically, the configuration module includes: the communication interface configuration submodule is used for configuring the communication interface of the intelligent POS machine into a GPRS (general packet radio service) interface and a WIFI (wireless fidelity) interface of the traditional POS machine; the hardware interface configuration submodule is used for configuring the hardware interface of the intelligent POS machine into a serial port, a camera, a printer, a camera, a magnetic stripe card, a chip card and a non-card-receiving interface of the traditional POS machine; the system interface configuration submodule is used for configuring the file operation interface of the intelligent POS machine into the file system interface of the traditional POS machine; the display interface configuration submodule is used for simulating and drawing a second display screen on the intelligent POS machine, connecting a first display screen with a display screen interface of the traditional POS machine, wherein the first display screen is the display screen of the intelligent POS machine, and establishing a display mechanism, and the display mechanism comprises: controlling the image signal of the traditional POS machine to be displayed on the second display screen through the first display screen; the key interface configuration submodule is used for simulating and drawing two or more keys on the intelligent POS machine, corresponding operation instructions are preset on the keys, and an operation mechanism is established and comprises: generating an operation instruction according to the operation of any key in the keys, and operating the traditional POS machine according to the operation instruction; a security chip interface configuration submodule, configured to establish a file encryption mechanism in a first storage medium of the intelligent POS machine, and connect the first storage medium with a security chip interface of the conventional POS machine, where the encryption mechanism includes: acquiring a first file descriptor, generating a second file descriptor according to an encryption function and the first file descriptor, acquiring the second file descriptor when a file needs to be called, and generating the first file descriptor according to a decryption function and the second file descriptor;
the calling module is used for calling the equipment development interface to enable the application program of the traditional POS machine to run on the intelligent POS machine;
and the debugging module is used for debugging the application program through a debugging tool of the intelligent POS machine.
5. The apparatus of claim 4, wherein the debugging module comprises:
the compiling submodule is used for compiling the application program through the debugging tool;
the installation submodule is used for installing the application program through the debugging tool;
and the operation sub-module is used for operating the application program through the debugging tool.
6. The apparatus of claim 4, further comprising:
and the storage module is used for writing the file of the intelligent POS machine into a second storage medium.
7. An electronic device comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program, when executed by the processor, implementing the steps of the method for commissioning a legacy POS machine on an intelligent POS machine according to any one of claims 1 to 3.
8. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the method for commissioning a legacy POS machine on a smart POS machine according to any one of claims 1 to 3.
CN202010814851.5A 2020-08-13 2020-08-13 Method and device for debugging traditional POS machine on intelligent POS machine Active CN111899443B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010814851.5A CN111899443B (en) 2020-08-13 2020-08-13 Method and device for debugging traditional POS machine on intelligent POS machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010814851.5A CN111899443B (en) 2020-08-13 2020-08-13 Method and device for debugging traditional POS machine on intelligent POS machine

Publications (2)

Publication Number Publication Date
CN111899443A CN111899443A (en) 2020-11-06
CN111899443B true CN111899443B (en) 2022-08-05

Family

ID=73229434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010814851.5A Active CN111899443B (en) 2020-08-13 2020-08-13 Method and device for debugging traditional POS machine on intelligent POS machine

Country Status (1)

Country Link
CN (1) CN111899443B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1475715A2 (en) * 2003-04-23 2004-11-10 STMicroelectronics, Inc. Smart card device and method for debug and software development
CN101295280A (en) * 2008-06-18 2008-10-29 腾讯科技(深圳)有限公司 Automatic software debugging method and system
CN101354676A (en) * 2008-09-10 2009-01-28 浪潮齐鲁软件产业有限公司 Method for debugging embedded type program
CN101577756A (en) * 2009-03-05 2009-11-11 上海闻泰电子科技有限公司 Method for debugging image display unit in mobile phone platform through PC
CN104038605A (en) * 2014-06-04 2014-09-10 福建升腾资讯有限公司 Phone point of sale (POS) payment terminal transaction testing method
CN104407829A (en) * 2014-11-06 2015-03-11 北京凌阳益辉科技有限公司 Method and device thereof for displaying image mirror
CN106126420A (en) * 2016-06-21 2016-11-16 北京小米移动软件有限公司 Application program adjustment method and device
CN107133512A (en) * 2017-03-14 2017-09-05 万达百汇科技(深圳)有限公司 POS terminal control method and device
CN109582579A (en) * 2018-11-30 2019-04-05 腾讯音乐娱乐科技(深圳)有限公司 Applied program testing method, device, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003177938A (en) * 2001-12-07 2003-06-27 Fujitsu Ltd Electronic device and its debugging authentication method
CN107590067A (en) * 2017-08-01 2018-01-16 百富计算机技术(深圳)有限公司 The method and device tested by POS simulators
CN109388562A (en) * 2018-09-21 2019-02-26 北京辰森世纪科技股份有限公司 Debug method and device, the system, storage medium, electronic device of pos machine

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1475715A2 (en) * 2003-04-23 2004-11-10 STMicroelectronics, Inc. Smart card device and method for debug and software development
CN101295280A (en) * 2008-06-18 2008-10-29 腾讯科技(深圳)有限公司 Automatic software debugging method and system
CN101354676A (en) * 2008-09-10 2009-01-28 浪潮齐鲁软件产业有限公司 Method for debugging embedded type program
CN101577756A (en) * 2009-03-05 2009-11-11 上海闻泰电子科技有限公司 Method for debugging image display unit in mobile phone platform through PC
CN104038605A (en) * 2014-06-04 2014-09-10 福建升腾资讯有限公司 Phone point of sale (POS) payment terminal transaction testing method
CN104407829A (en) * 2014-11-06 2015-03-11 北京凌阳益辉科技有限公司 Method and device thereof for displaying image mirror
CN106126420A (en) * 2016-06-21 2016-11-16 北京小米移动软件有限公司 Application program adjustment method and device
CN107133512A (en) * 2017-03-14 2017-09-05 万达百汇科技(深圳)有限公司 POS terminal control method and device
CN109582579A (en) * 2018-11-30 2019-04-05 腾讯音乐娱乐科技(深圳)有限公司 Applied program testing method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111899443A (en) 2020-11-06

Similar Documents

Publication Publication Date Title
WO2020006910A1 (en) Business componentization development method and apparatus, computer device, and storage medium
CN107733985B (en) Method and device for deploying functional components of cloud computing system
CN102033770B (en) Touch screen firmware upgrading method and device for mobile terminal
US20190004932A1 (en) Unit test and automation framework (utaf) system and method
CN104077204B (en) Reconfigurable 8 RSIC singlechip emulators
CN108874677B (en) Android terminal and test method and system thereof
CN109783340B (en) SoC test code programming method, IP test method and device
CN103970545B (en) Using the method for JNI method of calling LTE Modem used in android system
CN107480327B (en) Simulation verification method and device and electronic equipment
CN102693144B (en) A kind of method of capacitance plate firmware upgrade of Android mobile terminal
CN110362490B (en) Automatic testing method and system for integrating iOS and Android mobile applications
CN105573902A (en) Application testing method and system
CN104679559A (en) Single chip microcomputer on-line programming method
CN111913889A (en) Test system building method and test system
CN107122219A (en) The acquisition methods and device of installation file
CN116541032B (en) Data burning method, device, equipment and computer storage medium
CN104199770B (en) A kind of automated testing method of mobile phone music APK
US20120110383A1 (en) Method and apparatus for off-line analyzing crashed programs
CN111899443B (en) Method and device for debugging traditional POS machine on intelligent POS machine
CN105025140A (en) Theme adaptation test method and apparatus
CN100361075C (en) Method and device for quickly developing embedded system using automatic compilation frame
CN101634965A (en) Method for testing Linux kernel-grade unit
CN116431103B (en) Digital DevOps platform design method for embedded software
CN112650487A (en) Hybrid application development method, system, computer device and storage medium
CN112241373A (en) Automatic test method, test device, processor and test system

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