Self-service terminal application implementation method, system and equipment and storage medium

Through the unified protocol interface and adaptation layer of the self-service terminal application development platform, the problem of difficulty and low efficiency of self-service application system development is solved, and efficient adaptation and development of different self-service platforms is achieved, and development efficiency and scalability are improved. sex.

CN119201811APending Publication Date: 2024-12-27广州市申迪计算机系统有限公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411141879.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-20
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

The development of existing self-service machine application systems is difficult and needs to be adapted according to the technical specifications of different manufacturers' platforms, resulting in low development efficiency and complex maintenance.

Method used

A self-service terminal application implementation method is proposed, based on the self-service terminal application development platform, including the adaptation layer, the service layer and the application layer, the hardware module is called through the unified protocol interface, adapted to the hardware interface of different manufacturers' platforms, and supported multiple development languages. Realize application development of different self-service machines.

Benefits of technology

It improves the efficiency of self-service terminal application development, reduces the time and cost of hardware docking and adapting with different self-service machine manufacturers platforms, and enhances scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119201811A_ABST
    Figure CN119201811A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a self-service terminal application implementation method, system and device and a storage medium, and belongs to the technical field of computers. The method is realized based on a self-service terminal application development platform, the self-service terminal application development platform comprises an adaptation layer, a service layer and an application layer, the adaptation layer is in butt joint with a manufacturer platform hardware interface and performs interface adaptation, and the service layer adopts a unified protocol interface to provide hardware and application calling services and supports interface calling by using various development languages. The application development of different self-service machines is realized, the time for docking and adapting to platform hardware of different self-service machine manufacturers is saved, the application function is realized through the self-service terminal application development platform, and the application development efficiency of the self-service terminal can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, system, device and storage medium for implementing a self-service terminal application. Background Art

[0002] The platform interfaces of major self-service machine manufacturers are different. The self-service machine application system needs to be adapted according to the technical specifications of different self-service machine manufacturer platforms. The development language is limited by the SDK (Software Development Kit) provided by the manufacturer, and the interface call is limited by the interface protocol provided by the manufacturer. The development difficulty and workload of application implementation are relatively large, which affects the adaptation, development and maintenance efficiency of the self-service machine application system. Summary of the invention

[0003] The main purpose of the embodiments of the present application is to propose a method, system, device and storage medium for implementing a self-service terminal application, aiming to improve the efficiency of self-service terminal application development.

[0004] To achieve the above-mentioned purpose, an embodiment of the present application proposes a method for implementing a self-service terminal application. The method for implementing a self-service terminal application is implemented based on a self-service terminal application development platform. The self-service terminal application development platform includes an adaptation layer, a service layer, and an application layer. The method for implementing a self-service terminal application includes the following steps:

[0005] Receiving a target application request through the application layer, and calling a unified protocol interface provided by the service layer according to the target application request;

[0006] The service layer parses the service call request received by the unified protocol interface to determine the call parameters, and determines whether it is necessary to access the hardware call module according to the call parameters. When it is necessary to access the hardware call module, the hardware call module calls the adaptation hardware interface provided by the adaptation layer;

[0007] The adaptation layer converts the hardware call request received by the adaptation hardware interface into the manufacturer's original interface request, and accesses the target hardware interface provided by the manufacturer's platform according to the manufacturer's original interface request to realize the application function.

[0008] In some embodiments, the calling parameter includes an application function, and the step of determining whether to access the hardware calling module according to the calling parameter includes the following steps:

[0009] Determine the application implementation logic by querying according to the application function, wherein the application implementation logic is implemented by multiple business services, and the business service is one of an application service or a hardware service;

[0010] It is determined whether a hardware calling module needs to be accessed according to the application implementation logic, wherein when the application implementation logic includes hardware services, it is determined that a hardware calling module needs to be accessed.

[0011] In some embodiments, the unified protocol interface is an HTTP protocol interface, and the calling parameters of the HTTP protocol interface also include interface address parameters, and the interface address parameters include the interface network address of the self-service terminal, the interface network port of the self-service terminal, the platform type version, the platform interface address, the platform interface account, the platform interface password and the calling hardware module type, and the calling hardware module type is used to characterize the hardware type function.

[0012] In some embodiments, the self-service terminal application implementation method further includes the following steps:

[0013] Performing identity authentication on the self-service terminal through the service layer according to the interface network address of the self-service terminal, the interface network port of the self-service terminal and the platform interface address in the calling parameters;

[0014] When the self-service terminal fails to pass the identity authentication, a denial of service call response is returned through the unified protocol interface.

[0015] In some embodiments, converting the hardware call request received by the adaptation hardware interface into the manufacturer's original interface request through the adaptation layer includes the following steps:

[0016] Determine the device number, target hardware and service data according to the hardware call request;

[0017] Querying a database server according to the device number to obtain configuration data of the manufacturer platform, wherein the configuration data includes the manufacturer platform type, the manufacturer platform interface address, the manufacturer platform account number and password;

[0018] The device number, the target hardware, the service data and the configuration data are encapsulated according to the hardware interface specification adopted by the manufacturer's platform to obtain the manufacturer's original interface request.

[0019] In some embodiments, after the step of accessing the target hardware interface provided by the manufacturer platform according to the manufacturer's original interface request, the self-service terminal application implementation method further includes:

[0020] Receiving a hardware interface call response from the manufacturer platform through the adaptation layer;

[0021] The hardware interface call response is parsed according to the hardware interface specification adopted by the manufacturer's platform to obtain text content in a preset format, and the text content is returned to the service layer.

[0022] In some embodiments, the self-service terminal application implementation method further includes the following steps:

[0023] Determine the corresponding unified data format according to the calling hardware module type in the calling parameter through the service layer;

[0024] The text content is encapsulated according to the unified data format to obtain a service call response, and the service call response is returned through the unified protocol interface.

[0025] To achieve the above purpose, another aspect of the embodiment of the present application proposes a self-service terminal application implementation system, the self-service terminal application implementation system is implemented based on a self-service terminal application development platform, the self-service terminal application development platform includes an adaptation layer, a service layer and an application layer, the self-service terminal application implementation system includes:

[0026] The first module is used to receive a target application request through the application layer, and call a unified protocol interface provided by the service layer according to the target application request;

[0027] The second module is used to parse the service call request received by the unified protocol interface through the service layer to determine the call parameters, and judge whether it is necessary to access the hardware call module according to the call parameters. When the hardware call module needs to be accessed, the adaptation hardware interface provided by the adaptation layer is called through the hardware call module;

[0028] The third module is used to convert the hardware call request received by the adaptation hardware interface into the manufacturer's original interface request through the adaptation layer, and access the target hardware interface provided by the manufacturer's platform according to the manufacturer's original interface request to realize the application function.

[0029] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application proposes an electronic device, which includes a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory, and the program implements the method described in the above embodiment when executed by the processor.

[0030] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application proposes a storage medium, which is a computer-readable storage medium used for computer-readable storage, and the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method described in the above embodiment.

[0031] The self-service terminal application implementation method, system, device and storage medium proposed in the present application are implemented based on a self-service terminal application development platform. The self-service terminal application development platform includes an adaptation layer, a service layer and an application layer. The adaptation layer connects to the manufacturer platform hardware interface and performs interface adaptation. The service layer uses a unified protocol interface to provide hardware and application call services, supports the use of various development languages ​​for interface calls, realizes application development for different self-service machines, saves time for connection and adaptation with different self-service machine manufacturer platform hardware, and realizes application functions through the self-service terminal application development platform, which can improve the application development efficiency of the self-service terminal. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 is a flow chart of a method for implementing a self-service terminal application provided in an embodiment of the present application;

[0033] Figure 2 It is a schematic diagram of the business functions of each layer of the self-service terminal application development platform provided in the embodiment of the present application;

[0034] Figure 3 It is a schematic diagram of the implementation and deployment architecture of the self-service terminal application implementation method provided in the embodiment of the present application;

[0035] Figure 4 It is a schematic diagram of the implementation process of the self-service terminal application provided in the embodiment of the present application;

[0036] Figure 5 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0038] It should be noted that, although the functional modules are divided in the system and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the system or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0039] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0040] First, some nouns involved in this application are analyzed:

[0041] A self-service machine, also known as a self-service terminal, is an intelligent device that integrates computer technology, network technology, multimedia technology and automation technology. It is widely used in government services, banking and finance, retail, medical care, transportation, telecommunications and other fields. It aims to provide users with a self-service platform that can complete specific services or transactions without human intervention. A self-service machine is generally composed of industrial computers, various peripherals and auxiliary equipment such as intelligent lighting control systems.

[0042] The embodiments of the present application provide a method, system, device and storage medium for implementing a self-service terminal application, aiming to improve the efficiency of self-service terminal application development.

[0043] The self-service terminal application implementation method, system, device and storage medium provided in the embodiments of the present application are specifically described through the following embodiments. First, the self-service terminal application implementation method in the embodiments of the present application is described.

[0044] The self-service terminal application implementation method provided in the embodiment of the present application relates to the field of computer technology. The self-service terminal application implementation method provided in the embodiment of the present application can be applied to the terminal, can also be applied to the server side, and can also be software running in the terminal or the server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or it can be configured as a server cluster or a distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the self-service terminal application implementation method, etc., but is not limited to the above forms.

[0045] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0046] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.

[0047] The self-service terminal application implementation method of the present application embodiment is based on the self-service terminal application implementation method based on the self-service terminal application development platform. The self-service terminal application development platform includes an adaptation layer, a service layer and an application layer, each of which is responsible for its own business logic. Please refer to Figure 2 , the business functions of each layer are as follows:

[0048] The adaptation layer obtains the device number for device identification by calling the interface address of the manufacturer's platform; calls the API of the manufacturer's platform to call up the hardware module for hardware adaptation; through device identification and hardware adaptation, the interface is uniformly encapsulated for the service layer to call; and the application is uniformly adapted by obtaining the application browser kernel version running on the device.

[0049] The service layer, based on the adaptation layer, implements device authentication through device identification; makes hardware calls by connecting to the encapsulation interface of the hardware adaptation of the adaptation layer; makes service calls through the device dedicated network environment to provide business interaction for the application layer; and renders applications (components) on the device through application adaptation.

[0050] The application layer, based on the service layer, realizes various application functions through the combination of hardware calls and service calls. For example, the application function of scanning code recognition is realized, that is, calling the QR code hardware reading module, scanning and recognizing the text, and then interacting with business data through service calls to obtain the personal identity information corresponding to the QR code; the query and printing application function is realized, that is, business data query is performed through service calls, business data is presented through application rendering, and query results are printed by calling up the printer hardware module; the card swiping recognition application function is realized, that is, personal identity information is read by calling up the ID card reader; the application event application function is realized, that is, through the device authentication, hardware call, service call and application rendering of the self-service unified service layer, third-party application events are uniformly released for users to use.

[0051] Among them, the self-service machine manufacturer platform is built in the self-service machine dedicated network environment. The software environment running on the self-service machine includes mainstream fields, including but not limited to: government self-service machines, bank self-service machines, and hospital self-service machines. The manufacturer platform can provide various protocol channels, such as HTTP protocol channels, and provide external call permissions. Based on this channel, third-party applications for self-service machines can be built. The HTTP protocol channel provided by the manufacturer platform includes but is not limited to: government self-service machine API, bank self-service machine API, and hospital self-service machine API. Through the HTTP protocol channel provided by the manufacturer platform, relevant permissions are obtained for device identification and hardware calls. Due to the different technical specifications adopted by the calling interface of the manufacturer platform, the application development efficiency is low. Therefore, the embodiment of the present application uses the self-service terminal application development platform to uniformly adapt various call requests, and uniformly build self-service applications in various self-service machine manufacturer environments, which reduces the complexity and labor cost of building applications through different self-service machine manufacturer platforms, improves maintenance efficiency, and has better scalability.

[0052] In some embodiments, please refer to Figure 3 The self-service terminal application implementation method of the embodiment of the present application can be implemented based on the following deployment architecture:

[0053] From bottom to top, they are the manufacturer's self-service machine (i.e. self-service terminal), network equipment, processing server, application server and database server. The deployment instructions are as follows:

[0054] Based on the software environment running on the self-service machines, self-service terminals include but are not limited to: government self-service machines, bank self-service machines, and hospital self-service machines. The manufacturer's platform can provide an HTTP protocol channel and provide external hardware interface call permissions on the self-service terminals.

[0055] The network device is a device that establishes a dedicated network connection between the self-service machine and each server.

[0056] The processing server is deployed with an adaptation layer and a service layer to realize device identification of the self-service machine, adaptation and interface encapsulation of the self-service machine hardware, compatibility adaptation of the browser on the self-service machine, authentication matching of the self-service machine equipment, and encapsulation of the self-service machine hardware interface call.

[0057] The application server deploys the application layer to realize code scanning, query printing, card swiping and application matters for self-service machine applications.

[0058] The database server is a storage service in the service layer. It saves the configuration data of the manufacturer platform and stores various log data. The configuration data of the manufacturer platform includes: the type of manufacturer platform, interface address (URL), account number and password. Storing various logs can be used for subsequent problem location and analysis.

[0059] Figure 1is an optional flowchart of the self-service terminal application implementation method provided in the embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S103.

[0060] Step S101, receiving a target application request through the application layer, and calling a unified protocol interface provided by the service layer according to the target application request;

[0061] Step S102, the service layer parses the service call request received by the unified protocol interface to determine the call parameters, and determines whether it is necessary to access the hardware call module according to the call parameters. If it is necessary to access the hardware call module, the hardware call module calls the adapter hardware interface provided by the adapter layer;

[0062] Step S103, converting the hardware call request received by the adaptation hardware interface into a manufacturer's original interface request through the adaptation layer, and accessing the target hardware interface provided by the manufacturer's platform according to the manufacturer's original interface request to implement the application function.

[0063] In step S101 of some embodiments, a target application request is received through the application layer, and the target application request is used to represent an application operation on the self-service terminal, for example, code scanning recognition, card reading recognition, printing, item query, etc. The application layer calls the unified protocol interface provided by the service layer according to the request data in the target application request to send a service call request to the unified protocol interface.

[0064] In step S102 of some embodiments, the service layer provides a unified protocol interface to the outside, and parses the received service call request based on the unified protocol interface to determine the request data therein, that is, the call parameters. The unified protocol interface can be an HTTP protocol interface, and the call parameter format of the unified protocol interface is unified. The call parameters of the unified protocol interface include application functions and interface address parameters. The interface address parameters include the interface network address of the self-service terminal, the interface network port of the self-service terminal, the platform type version, the platform interface address, the platform interface account, the platform interface password and the call hardware module type, and the call hardware module type is used to characterize the hardware type function.

[0065] In some embodiments, the step of determining whether the hardware calling module needs to be accessed according to the calling parameters in the service layer may specifically include the following steps:

[0066] Determine the application implementation logic by querying according to the application function, wherein the application implementation logic is implemented by multiple business services, and the business service is one of the application service or the hardware service;

[0067] It is determined whether the hardware calling module needs to be accessed according to the application implementation logic, wherein when the application implementation logic includes hardware services, it is determined that the hardware calling module needs to be accessed.

[0068] Specifically, the application functions can be code scanning, card reading, printing, event query, printing query, etc. The service layer stores the application implementation logic of each application function. The application implementation logic is implemented through multiple business services. Business services are either application services or hardware services. For example, Figure 4 As shown, the application implementation logic of code scanning recognition includes business services such as hardware call, configuration data reading, and log recording. Among them, hardware call is a hardware service, which can determine that the implementation of this application function requires access to the hardware call module; the application implementation logic of printing query includes query service, which does not include hardware service, which can determine that the implementation of this application function does not require access to the hardware call module.

[0069] In some embodiments, the self-service terminal application implementation method further includes the following steps:

[0070] The service layer authenticates the self-service terminal according to the interface network address of the self-service terminal, the interface network port of the self-service terminal and the platform interface address in the call parameters;

[0071] When the self-service terminal fails to pass the identity authentication, a denial of service call response is returned through the unified protocol interface.

[0072] Specifically, in the service layer, after the received service call request is parsed through the unified protocol interface to determine the call parameters, the device number of the self-service terminal is queried from the manufacturer's platform according to the interface network address of the self-service terminal, the interface network port of the self-service terminal and the manufacturer's platform interface address in the call parameters. If the device number belongs to the device whitelist, the self-service terminal passes the identity authentication, otherwise, the self-service terminal fails the identity authentication. When the self-service terminal fails the identity authentication, a rejection of the service call response is returned through the unified protocol interface, and the service call request of the device is no longer processed.

[0073] In some embodiments, the hardware calling module of the service layer encapsulates relevant parameters according to the adaptation hardware interface provided by the adaptation layer to make hardware calls through the adaptation layer.

[0074] In step S103 of some embodiments, the adaptation layer parses the hardware call request received by the adaptation hardware interface to obtain relevant parameters, then encapsulates the relevant parameters according to the hardware interface specification adopted by the manufacturer's platform to obtain the manufacturer's original interface request, and then calls the target hardware interface of the manufacturer's platform according to the manufacturer's original interface request to implement the application function.

[0075] In some embodiments, in the adaptation layer, converting the hardware call request received by the adaptation hardware interface into the manufacturer's original interface request includes the following steps:

[0076] Determine the device number, target hardware and business data according to the hardware call request;

[0077] Query the database server according to the device number to obtain the configuration data of the manufacturer platform, wherein the configuration data includes the manufacturer platform type, the manufacturer platform interface address, the manufacturer platform account and password;

[0078] The device number, target hardware, business data and configuration data are encapsulated according to the hardware interface specification adopted by the manufacturer's platform to obtain the manufacturer's original interface request.

[0079] Specifically, taking printing as an example, the hardware call request includes the device number, printer hardware and print text. The database server is queried according to the device number to obtain the configuration data of the manufacturer platform, where the configuration data includes the manufacturer platform type, manufacturer platform interface address, manufacturer platform account and password. The hardware interface specification adopted by the manufacturer platform is queried according to the device number, and then the device number, printer hardware, print text and configuration data are encapsulated according to the hardware interface specification to obtain the manufacturer's original interface request that conforms to the manufacturer platform interface.

[0080] In some embodiments, after the step of accessing the target hardware interface provided by the manufacturer platform according to the manufacturer's original interface request, the self-service terminal application implementation method further includes:

[0081] Receive hardware interface call responses from the manufacturer's platform through the adaptation layer;

[0082] Parse the hardware interface call response according to the hardware interface specification adopted by the manufacturer's platform, obtain the text content in a preset format, and return the text content to the service layer.

[0083] Specifically, in the adaptation layer, after using the manufacturer's original interface request to call the manufacturer's platform's hardware API interface, you can receive a hardware interface call response from the manufacturer's platform. If the hardware call is successful or unsuccessful, the hardware interface call response is parsed according to the hardware interface specification adopted by the manufacturer's platform to obtain text content in a preset format, and return the text content to the service layer for logging or feedback to the upper layer and other operations.

[0084] In some embodiments, the self-service terminal application implementation method further includes the following steps:

[0085] Determine the corresponding unified data format according to the calling hardware module type in the calling parameter through the service layer;

[0086] The text content is encapsulated according to a unified data format to obtain a service call response, and the service call response is returned through a unified protocol interface.

[0087] Specifically, the self-service machine manufacturer platform provides an HTTP protocol interface to provide external services. The self-service terminal application development platform of the embodiment of the present application defines a standard unified HTTP protocol interface to perform hardware adaptation and application adaptation between the upper-layer application request and the manufacturer platform interface.

[0088] HTTP (Hypertext Transfer Protocol) protocol interface is a Web service interface built on the HTTP protocol, also known as HTTP API or Web API. In modern Internet application development, this interface is used to enable different systems, applications or services to communicate and exchange data with each other. The key features and components of the HTTP protocol interface are as follows:

[0089] Request method: The HTTP protocol defines a series of request methods to express different operation intentions, the most commonly used ones are GET, POST, PUT, DELETE, etc. GET is used to retrieve information, POST is used to submit data, PUT is used to update existing resources, and DELETE is used to delete resources.

[0090] URI (Uniform Resource Identifier): Each HTTP interface is identified by a unique URI, which defines the location and access method of the resource. For example, `https: / / api.example.com / users / 123` may be used to obtain information about the user with ID 123.

[0091] Request Headers: Additional information included in HTTP requests, such as authentication information (Authorization), accepted content types (Accept), language preferences (Accept-Language), etc., to help the server better process requests.

[0092] Response Codes: The server uses HTTP response codes to inform the client of the processing results of the request, such as 200 for success, 404 for resource not found, 500 for internal server error, etc.

[0093] Response Body: Contains the actual data returned by the server, which can be in various formats such as JSON, XML, and HTML.

[0094] RESTful principle: Many HTTP interface designs follow the REST (Representational State Transfer) principle, emphasizing resource representation, statelessness, cacheability, etc., making the interface more concise, consistent and easy to understand.

[0095] Through the above components, developers can build a powerful HTTP interface to implement functions such as data interaction and remote procedure calls.

[0096] This self-service terminal application development platform integrates the HTTP protocol interfaces native to different self-service machine manufacturers' platforms, encapsulates them into a unified HTTP protocol interface, and provides standard call services to the outside world, with consistent call parameters and return data formats. For example, the service layer of the self-service terminal application development platform of the embodiment of the present application provides an example of a unified protocol interface to the outside world as follows:

[0097] “https: / / IP:PORT / zzjversion / zzjip / zzjaccount / zzjpassword / hardwaretype”, where the calling method is “http post”.

[0098] The parameter description of the calling interface address is shown in Table 1 (zzj is the first letter of the pinyin of the self-service machine, indicating a self-service machine):

[0099] Table 1

[0100]

[0101]

[0102] The calling hardware module type definition has a unified data format for the corresponding request return data, as follows:

[0103] When the interface address parameter hardwaretype=devnumber is called, it means obtaining the terminal number. The request data format is described in Table 2:

[0104] Table 2

[0105]

[0106] Request data example:

[0107] {

[0108] "timeout":"30"

[0109] }

[0110] The returned data format is shown in Table 3:

[0111] Table 3

[0112]

[0113] Return data example:

[0114] {

[0115] "result":true,

[0116] "message":"Call successful",

[0117] "devnumber":"zzj00130211"

[0118] }

[0119] When the interface address parameter hardwaretype=idcard is called, it means reading the ID card information. The request data format is shown in Table 4:

[0120] Table 4

[0121]

[0122] Request data example:

[0123] {

[0124] "timeout":"30"

[0125] }

[0126] The returned data format is shown in Table 5:

[0127] Table 5

[0128]

[0129] The object field description is shown in Table 6:

[0130] Table 6

[0131] Parameter Name Parameter Type Parameter Meaning Remarks name String Name sex String Gender Male / Female nation String Ethnic Group Ethnic group name, without the character "group" birthday String Date of Birth Date format: YYYY.MM.DD address String Address idcode String ID Number signorganization String Issuing Authority startdate String Start Date of Validity Period Date format: YYYY.MM.DD enddate String End Date of Validity Period Date format: YYYY.MM.DD

[0132] Return data example:

[0133] {

[0134] "result":true,

[0135] "message":"Call successful",

[0136] {

[0137] "name":"Zhang San",

[0138] "sex":"male",

[0139] "nation":"Han",

[0140] "birthday":"1993.12.10",

[0141] "address":"Room 1008, No. 1800 Pudong Road, Shanghai",

[0142] "idcode":"31011519931210XXXX",

[0143] "signorganization":"Shanghai Public Security Bureau Pudong Branch",

[0144] "startdate":"2009.12.20",

[0145] "enddate":"2029.12.19"

[0146] }

[0147] }

[0148] When the interface address parameter hardwaretype=barcode is called, it indicates barcode scanning. The request data format is described in Table 7:

[0149] Table 7

[0150]

[0151] Request data example:

[0152] {

[0153] "timeout":"30"

[0154] }

[0155] The returned data format is shown in Table 8:

[0156] Table 8

[0157]

[0158] Return data example:

[0159] {

[0160] "result":true,

[0161] "message":"Call successful",

[0162] "barcode":"enpqMDAxMzAyMTFram9qaG9qaHV1aQ=="

[0163] }

[0164] When the interface address parameter hardwaretype=print is called, it means printing the document. The request data format is described in Table 9:

[0165] Table 9

[0166]

[0167]

[0168] Request data example:

[0169] {

[0170] "timeout":"30",

[0171] "printcontenttype":"1",

[0172] "filepath":"",

[0173] "fileextent":"pdf",

[0174] "filecontent":"iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4 / / 8 / w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="

[0175] }

[0176] The returned data format is shown in Table 10:

[0177] Table 10

[0178]

[0179] Return data example:

[0180] {

[0181] "result":true,

[0182] "message":"Call successful",

[0183] "printreturn":"Printing successful"

[0184] }

[0185] According to some embodiments of this application, please refer to Figure 4, combined with the three application scenarios of code scanning / card swiping / printing, query printing and application items, the self-service terminal application implementation method of the embodiment of the present application is described:

[0186] Example 1: Scan code recognition / swipe card recognition / print application scenarios are as follows:

[0187] The application layer accesses the hardware call module of the service layer (scan / swipe / print);

[0188] The hardware calling module of the service layer loads the configuration data of the self-service machine manufacturer platform by accessing the self-service application database, and calls the adaptation hardware interface of the adaptation layer according to the self-service machine configuration information;

[0189] The adaptation layer accesses the calling hardware module of the manufacturer platform through the adaptation hardware interface. If the call is successful, the calling hardware module of the manufacturer platform returns the data after adaptation and returns it to the service layer; if the call is unsuccessful, it returns to the service layer to record the call log;

[0190] The service layer records the adaptation data returned by the hardware call of the adaptation layer, so that the application layer can read and identify it. If the call is unsuccessful, the call log is saved to the self-service application database and then ends.

[0191] The application layer reads the return data of the hardware call of the system service layer and identifies the data.

[0192] Example 2, the query printing application scenario is as follows:

[0193] The query service calling module of the application layer accessing the service layer;

[0194] After the service layer query service call module runs, if the query is successful, choose whether to print the result; if the query is unsuccessful, record the query print log to the self-service application database, and then end;

[0195] The service layer chooses whether to print the result. If yes, it accesses the hardware call module (printing); if no, it ends.

[0196] The hardware calling module (printing) of the service layer loads the self-service machine manufacturer platform configuration data by accessing the self-service application database, and calls the adaptation hardware interface adapted by the adaptation layer according to the self-service machine configuration information;

[0197] The adaptation hardware interface module of the adaptation layer accesses the manufacturer's platform to call the hardware module. If the call is successful, the hardware call return data is adapted and returned to the service layer; if the call is unsuccessful, it is returned to the service layer to record the call log;

[0198] The service layer records the adaptation data returned by the hardware call of the adaptation layer for reading by the application layer; if the call is unsuccessful, the call log is saved to the self-service application database and then ends;

[0199] The application layer reads the return data of the service layer hardware call, and the application prompts to print the result.

[0200] Example 3, general application scenarios are as follows:

[0201] The application layer accesses the service layer to determine whether to call the hardware or whether to call the service;

[0202] If the service layer needs to call hardware, it accesses the hardware call module; if it needs to call services, it accesses the event service call module; if both are no, it ends;

[0203] The hardware calling module of the service layer loads the self-service machine manufacturer platform configuration data by accessing the self-service application database; based on the self-service machine configuration information, it calls the hardware interface adapted by the unified adaptation layer;

[0204] The adaptation layer accesses the manufacturer's platform to call up the hardware module through the adaptation hardware interface module; if the call is successful, the hardware call return data is adapted and returned to the unified service layer; if the call is unsuccessful, it is returned to the unified service layer to record the call log;

[0205] The service layer records the adaptation data returned by the hardware call of the adaptation layer for reading by the unified application layer; if the call is unsuccessful, the call log is saved to the self-service application database and then ends;

[0206] The application layer processes the service layer hardware call return data and then ends;

[0207] The event service call module of the service layer makes an event service call. If the event service call is successful, the returned data is recorded and returned to the application layer for processing; if it is unsuccessful, the call log is recorded and saved to the self-service application database, and then the call ends.

[0208] The application layer processes the return data of the service calls made by the service layer.

[0209] According to some embodiments of the present application, the embodiments of the present application adapt the hardware interfaces of different self-service machine manufacturer platforms, unify the encapsulation and open interfaces, convert the interface call parameters and interface return data formats of each self-service machine manufacturer platform, unify the encapsulation into a standard data format, and call through the HTTP protocol. Compared with related technologies, there is no need to perform separate adaptation development according to the interface specifications of different manufacturers.

[0210] The interface address of the unified protocol interface in unified encapsulation includes the interface network address, interface network port, self-service machine platform type version, self-service machine platform interface IP, self-service machine platform interface account, self-service machine platform interface password and calling hardware module type.

[0211] The unified encapsulated data format includes obtaining terminal numbers, reading ID card information, barcode scanning and printing documents, etc. It supports text content in JSON format, disassembles and converts it into a unified data format. Among them, the request data includes the timeout time, and the return data includes the interface call result, interface call prompt and result information, etc.

[0212] When the external system calls the uniformly encapsulated HTTP interface, the embodiment of the present application performs adaptation according to the interface conditions of the manufacturer's platform, and the steps are as follows:

[0213] Receive external call requests, obtain the self-service machine platform version, self-service machine platform interface IP, self-service machine platform interface account, self-service machine platform interface password and call hardware module type.

[0214] According to the information of the call request, the native call address of the self-service machine manufacturer platform is constructed from the self-service machine platform version, the self-service machine platform interface IP, and the calling hardware module type; the native request data of the self-service machine manufacturer platform is constructed from the request data; the native HTTP protocol interface of the self-service machine manufacturer platform is called from the self-service machine platform interface account and the self-service machine platform interface password to obtain the returned data (such as text content in JSON format).

[0215] The JSON format data returned by the native interface of the self-service machine manufacturer platform is disassembled and converted, and encapsulated into JSON data in a unified format.

[0216] Return the uniformly encapsulated JSON format data to the external caller.

[0217] The embodiment of the present application also provides a self-service terminal application implementation system, which is implemented based on a self-service terminal application development platform. The self-service terminal application implementation system includes:

[0218] The first module is used to receive a target application request through the application layer, and call a unified protocol interface provided by the service layer according to the target application request;

[0219] The second module is used to parse the service call request received by the unified protocol interface through the service layer to determine the call parameters, and judge whether it is necessary to access the hardware call module according to the call parameters. When the hardware call module needs to be accessed, the hardware call module calls the adaptation hardware interface provided by the adaptation layer;

[0220] The third module is used to convert the hardware call request received by the adaptation hardware interface into the manufacturer's original interface request through the adaptation layer, and access the target hardware interface provided by the manufacturer's platform according to the manufacturer's original interface request to realize the application function.

[0221] It can be understood that the contents of the above-mentioned self-service terminal application implementation method embodiment are applicable to the present system embodiment, the functions specifically implemented by the present system embodiment are the same as those in the above-mentioned self-service terminal application implementation method embodiment, and the beneficial effects achieved are also the same as those achieved by the above-mentioned self-service terminal application implementation embodiment.

[0222] The embodiment of the present application also provides an electronic device, the electronic device comprising: a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory, and the program is executed by the processor to realize the above-mentioned self-service terminal application implementation method. The electronic device can be any intelligent terminal including a tablet computer, a vehicle-mounted computer, etc.

[0223] See also Figure 5 , Figure 5 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0224] The processor 501 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0225] The memory 502 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 502 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 502, and the processor 501 calls and executes the self-service terminal application implementation method of the embodiment of this application;

[0226] Input / output interface 503, used to implement information input and output;

[0227] Communication interface 504, used to realize communication interaction between the device and other devices, which can be realized by wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);

[0228] A bus 505 that transmits information between the various components of the device (e.g., the processor 501, the memory 502, the input / output interface 503, and the communication interface 504);

[0229] The processor 501 , the memory 502 , the input / output interface 503 and the communication interface 504 are connected to each other in communication within the device via the bus 505 .

[0230] The embodiment of the present application also provides a storage medium, which is a computer-readable storage medium used for computer-readable storage. The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned self-service terminal application implementation method.

[0231] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0232] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0233] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0234] The system embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0235] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0236] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0237] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0238] In the several embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.

[0239] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0240] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0241] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0242] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A self-service terminal application implementation method, characterized in that: The self-service terminal application implementation method is implemented based on a self-service terminal application development platform, the self-service terminal application development platform includes an adaptation layer, a service layer and an application layer, and the self-service terminal application implementation method includes the following steps: Receiving a target application request through the application layer, and calling a unified protocol interface provided by the service layer according to the target application request; The service layer parses the service call request received by the unified protocol interface to determine the call parameters, and determines whether it is necessary to access the hardware call module according to the call parameters. When it is necessary to access the hardware call module, the hardware call module calls the adaptation hardware interface provided by the adaptation layer; The adaptation layer converts the hardware call request received by the adaptation hardware interface into the manufacturer's original interface request, and accesses the target hardware interface provided by the manufacturer's platform according to the manufacturer's original interface request to realize the application function.

2. The self-service terminal application implementation method according to claim 1, characterized in that: The calling parameter includes an application function, and judging whether the hardware calling module needs to be accessed according to the calling parameter includes the following steps: Determine the application implementation logic by querying according to the application function, wherein the application implementation logic is implemented by multiple business services, and the business service is one of an application service or a hardware service; It is determined whether a hardware calling module needs to be accessed according to the application implementation logic, wherein when the application implementation logic includes hardware services, it is determined that a hardware calling module needs to be accessed.

3. The self-service terminal application implementation method according to claim 2, characterized in that: The unified protocol interface is an HTTP protocol interface, and the calling parameters of the HTTP protocol interface also include interface address parameters, and the interface address parameters include the interface network address of the self-service terminal, the interface network port of the self-service terminal, the platform type version, the platform interface address, the platform interface account, the platform interface password and the calling hardware module type, and the calling hardware module type is used to characterize the hardware type function.

4. The self-service terminal application implementation method according to claim 3, characterized in that: The self-service terminal application implementation method further includes the following steps: Performing identity authentication on the self-service terminal through the service layer according to the interface network address of the self-service terminal, the interface network port of the self-service terminal and the platform interface address in the calling parameters; When the self-service terminal fails to pass the identity authentication, a denial of service call response is returned through the unified protocol interface.

5. The self-service terminal application implementation method according to claim 4, characterized in that: The step of converting the hardware call request received by the adapted hardware interface into the original interface request of the manufacturer through the adapted layer comprises the following steps: Determine the device number, target hardware and service data according to the hardware call request; Querying a database server according to the device number to obtain configuration data of the manufacturer platform, wherein the configuration data includes the manufacturer platform type, the manufacturer platform interface address, the manufacturer platform account number and password; The device number, the target hardware, the service data and the configuration data are encapsulated according to the hardware interface specification adopted by the manufacturer's platform to obtain the manufacturer's original interface request.

6. The self-service terminal application implementation method according to claim 5, characterized in that: After the step of accessing the target hardware interface provided by the manufacturer platform according to the manufacturer's original interface request, the self-service terminal application implementation method further includes: Receiving a hardware interface call response from the manufacturer platform through the adaptation layer; The hardware interface call response is parsed according to the hardware interface specification adopted by the manufacturer's platform to obtain text content in a preset format, and the text content is returned to the service layer.

7. The self-service terminal application implementation method according to claim 6, characterized in that: The self-service terminal application implementation method further includes the following steps: Determine the corresponding unified data format according to the calling hardware module type in the calling parameter through the service layer; The text content is encapsulated according to the unified data format to obtain a service call response, and the service call response is returned through the unified protocol interface.

8. A self-service terminal application implementation system, characterized in that: The self-service terminal application implementation system is implemented based on a self-service terminal application development platform. The self-service terminal application development platform includes an adaptation layer, a service layer and an application layer. The self-service terminal application implementation system includes: The first module is used to receive a target application request through the application layer, and call a unified protocol interface provided by the service layer according to the target application request; The second module is used to parse the service call request received by the unified protocol interface through the service layer to determine the call parameters, and judge whether it is necessary to access the hardware call module according to the call parameters. When the hardware call module needs to be accessed, the adaptation hardware interface provided by the adaptation layer is called through the hardware call module; The third module is used to convert the hardware call request received by the adaptation hardware interface into the manufacturer's original interface request through the adaptation layer, and access the target hardware interface provided by the manufacturer's platform according to the manufacturer's original interface request to realize the application function.

9. An electronic device, characterized in that: The electronic device includes a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory. When the program is executed by the processor, the steps of the method described in any one of claims 1 to 7 are realized.

10. A storage medium, the storage medium being a computer-readable storage medium, used for computer-readable storage, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of any one of claims 1 to 7.

Citation Information

Cited By

  • Internet of things platform access equipment adaptation fast indexing and interaction method

    CN119690973A