Application service method and system based on multiple subsystem access, and computer equipment
By performing protocol conversion in the access layer, the access complexity problem caused by different subsystem interface protocols is solved, unified management and efficient development of multiple subsystems are achieved, and it is suitable for a variety of IoT scenarios.
Patent Information
- Application Number
- CN202110846571.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-26
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-07-26
AI Technical Summary
Due to different subsystem interface protocols, existing large-scale IoT solutions have high access complexity, low development efficiency, and lack of unified management capabilities.
By setting up the access layer, using the authorized second data interface to interact with each subsystem, and performing protocol conversion on the communication interface, unified data interaction between the application layer and the subsystem is achieved, and the system complexity is reduced.
It achieves unified access and management of multiple subsystems, reduces development complexity, improves development efficiency, and is suitable for a variety of IoT scenarios.
Smart Images

Figure CN113505009B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an application service method and system based on multiple subsystem access, and computer equipment. Background Art
[0002] In recent years, with the introduction of the national new infrastructure strategy, the demand for enterprise-level IoT applications and solutions has gradually emerged. For large-scale IoT solutions, a wide variety of subsystems are used, and different business scenarios involve many manufacturers and various protocol subsystems, which makes development and integration extremely complex. Due to problems such as different interface protocols and limited openness, some existing systems require tedious work to access these systems. For large-scale solutions, a unified platform is needed to connect all subsystems to reduce system complexity and development efficiency. Summary of the invention
[0003] In order to solve at least one of the above problems, the first aspect of the present invention provides an application service method based on multiple subsystem access, comprising:
[0004] The access layer and the application layer exchange data via a preset first data interface;
[0005] The access layer exchanges data with each subsystem through the authorized second data interface and performs protocol conversion according to the communication interface of each subsystem.
[0006] In some optional embodiments, the access layer includes a first industry cloud layer and a first access adaptation layer, and the access layer interacts with each subsystem through an authorized second data interface to perform data interaction, further comprising:
[0007] The first industry cloud layer receives the input interface parameters of the subsystem and outputs a communication request to the first access adaptation layer according to the interface parameters, wherein the interface parameters at least include token data, token validity period, login credentials, and injection method;
[0008] The first access adaptation layer transmits the communication request to the subsystem through the adaptation interface corresponding to the subsystem to obtain the authorization of the subsystem, and encapsulates the authorization, the adaptation interface and the interface parameters to form an authorized second data interface corresponding to the subsystem;
[0009] The second access adaptation layer identifies the subsystem according to the authorized second data interface and performs protocol conversion on the communication interface of the subsystem.
[0010] In some optional embodiments, the access layer includes a second industry cloud layer and a second access adaptation layer, and the access layer interacts with each subsystem through an authorized second data interface to further include:
[0011] The second access adaptation layer downloads the development certificate from the second industry cloud layer and transmits it to each subsystem through the adaptation interface corresponding to the subsystem;
[0012] The second access adaptation layer downloads the software development kit from the second industry cloud layer and transmits it to each subsystem through the adaptation interface, so that each subsystem encapsulates the software development kit, the development certificate and the adaptation interface to form an authorized second data interface corresponding to the subsystem;
[0013] The second access adaptation layer identifies the subsystem according to the authorized second data interface and performs protocol conversion on the communication interface of the subsystem.
[0014] In some optional embodiments, the access layer includes a third industry cloud layer and a third access adaptation layer, and the access layer interacts with each subsystem through the authorized second data interface to further include:
[0015] The third access adaptation layer downloads scaffolding and development credentials from the third industry cloud layer;
[0016] The third access adaptation layer updates the credential information of the scaffold according to the development credential, encapsulates the communication interface of the subsystem, and performs protocol conversion on the communication interface of the subsystem to form an authorized second data interface corresponding to the subsystem.
[0017] In some optional embodiments, the data interaction between the access layer and the application layer through the preset first data interface further includes:
[0018] The access layer and the security interface perform data interaction via the first data interface, so that the security interface performs security detection on the interaction data sent by the application layer to protect the subsystem.
[0019] In some optional embodiments,
[0020] The security interface authenticates the interactive data sent by the application layer to protect the subsystem;
[0021] or
[0022] The security interface includes a blacklist and a whitelist of addresses. The security interface detects the addresses of the application layer that sends interactive data through the blacklist and the whitelist to protect the subsystem.
[0023] In some optional embodiments, the first interface is an HTTP REST interface.
[0024] The second aspect of the present invention provides an application service system for implementing the application service method described above, comprising: an application layer, an access layer and a plurality of subsystems, wherein:
[0025] The access layer is configured as follows:
[0026] Performing data interaction with the application layer via a preset first data interface;
[0027] Data is exchanged with each subsystem respectively through the authorized second data interface, and protocol conversion is performed according to the communication interface of each subsystem.
[0028] A third aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which implements the method described above when the program is executed by a processor.
[0029] A fourth aspect of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described above when executing the program.
[0030] The beneficial effects of the present invention are as follows:
[0031] In view of the existing problems, the present invention develops an application service method and system, computer equipment and medium based on the access of multiple subsystems, and sets an access layer to perform data interaction with each subsystem via an authorized second data interface, and performs protocol conversion on the communication interface of each subsystem. After the protocol conversion, the application layer and the access layer both use the second data interface to complete data interaction with each subsystem, thereby reducing the complexity of system interaction between the application layer and each subsystem, so that the subsystem can use a unified protocol to synchronously adapt to each subsystem of multiple manufacturers, and can uniformly access and manage multiple subsystems, reducing development complexity, and having broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0033] Figure 1 A flowchart showing an application service method based on multiple subsystem access according to an embodiment of the present invention is shown;
[0034] Figure 2 A schematic block diagram of an application service system for implementing an application service method according to an embodiment of the present invention is shown;
[0035] Figure 3 A schematic block diagram showing an application service system for implementing an application service method according to another embodiment of the present invention;
[0036] Figure 4A flowchart showing a method for implementing an application service according to another embodiment of the embodiment of the present invention is shown;
[0037] Figure 5 A flowchart showing a method for implementing an application service according to another embodiment of the embodiment of the present invention is shown;
[0038] Figure 6 A flowchart showing a method for implementing an application service according to another embodiment of the embodiment of the present invention is shown;
[0039] Figure 7 A schematic block diagram showing an application service system for implementing an application service method according to another embodiment of the present invention; and
[0040] Figure 8 A schematic structural diagram of a computer device according to another embodiment of the present invention is shown. DETAILED DESCRIPTION
[0041] In order to more clearly illustrate the present invention, the present invention is further described below in conjunction with preferred embodiments and accompanying drawings. Similar components in the accompanying drawings are represented by the same reference numerals. It should be understood by those skilled in the art that the content specifically described below is illustrative rather than restrictive, and should not be used to limit the scope of protection of the present invention.
[0042] like Figure 1 As shown, an embodiment of the present invention provides an application service method based on multiple subsystem access, including:
[0043] The access layer and the application layer exchange data via a preset first data interface;
[0044] The access layer exchanges data with each subsystem through the authorized second data interface and performs protocol conversion according to the communication interface of each subsystem.
[0045] In this embodiment, the access layer interacts with each subsystem via the authorized second data interface, and the communication interface of each subsystem is converted into a protocol. After the protocol conversion, the application layer and the access layer use the second data interface to complete the data interaction with each subsystem, thereby reducing the complexity of the system interaction between the application layer and each subsystem, so that the subsystem can use a unified protocol to synchronously adapt to the subsystems of multiple manufacturers, and can uniformly access and manage multiple subsystems, reducing the complexity of development, and has broad application prospects.
[0046] In order to better understand the implementation process of the application service method based on multiple subsystem access of the present invention, firstly, Figure 2 Describe the structure of the application service system that implements the application service method.
[0047] like Figure 2 As shown, the application service system includes an application layer 100, an access layer 200, and multiple subsystems 300-1, 300-2, ..., and 300-n (where n is an integer, n≥2). In the description of this article, when there is no need to distinguish, the subsystem is represented by the number 300. The application service system can be applied to various IoT scenarios such as parks, smart cities, and transportation.
[0048] Among them, the application layer 100 and the access layer 200 are set in the server. The application layer 100 refers to the business system function layer, which can be an application with interface management function. The access layer 200 interacts with the application layer 100 through a first data interface, and the first data interface can be, for example, an HTTP REST interface. Among them, the HTTP REST interface, which means an HTTP REST style interface, refers to an interface of the REST system style based on HTTP. Among them, REST is an architectural style of Web services, which stands for Representation State Transfer. It is a lightweight, cross-platform, cross-language software architectural style. It is a design and development method for network applications, which can reduce the complexity of development and provide system scalability.
[0049] Multiple subsystems 300-1, 300-2, ..., and 300-n represent various Internet of Things management subsystems that can be called and managed by the application layer 100, such as a camera management subsystem that can manage and control the behavior of the camera, such as bit rate adjustment, direction adjustment, etc. In this example, each subsystem can be a plurality of camera management subsystems produced by different manufacturers. Of course, subsystem 300 can also represent other management subsystems, and each subsystem 300-1, 300-2, ..., and 300-n in subsystem 300 can also represent different types of Internet of Things management subsystems produced by different manufacturers, for example, subsystem 300-1 represents a camera management subsystem produced by manufacturer A, subsystem 300-1 represents an indicator light management subsystem produced by manufacturer B, ..., and 300-n represents a display screen management subsystem produced by manufacturer N, etc., which are not specifically limited here.
[0050] The communication protocols used by the subsystem communication interfaces produced by different manufacturers may be different. For example, subsystem 300-1 is a communication interface using the HTTP protocol, and subsystem 300-2 is a communication interface using the TCP protocol. The application service system of the embodiment of the present invention authorizes multiple subsystems by setting the access layer 200, and performs protocol conversion to simply and quickly implement interface adaptation between each subsystem and the application layer. That is to say, specifically in the embodiment of the present invention, refer to Figure 1As shown, in step S1, the access layer 200 and the application layer 100 perform data interaction through a preset first data interface, and in step S2, the access layer 200 performs data interaction with each subsystem 300 through an authorized second data interface, and performs protocol conversion according to the communication interface of each subsystem 300. When the first data interface is an HTTP REST-style interface, the access layer 200 performs data interaction with each subsystem 300 through an authorized second data interface, and converts the data into the HTTP interface protocol of the first data interface according to the communication interface of each subsystem 300.
[0051] Through the above settings, even if the data communication sampling interfaces of the subsystems 300 are different due to different manufacturers, when the subsystems 300 are connected to the Internet to achieve unified management of the application layer, it is only necessary to write business codes for interface calls at the access layer to obtain the interface capabilities of each subsystem. Developers no longer need to connect with each manufacturer one by one and develop calling programs for different subsystems, which reduces the integration complexity of the subsystems and improves development efficiency.
[0052] The specific implementation of the application service method in different embodiments is described in detail below in conjunction with more specific embodiments.
[0053] In some optional embodiments, such as Figure 3 As shown, the access layer 200 of the application service system includes a first industry cloud layer 201 and a first access adaptation layer 202. The application service method includes: S1, the access layer and the application layer perform data interaction through a preset first data interface; S2, the access layer performs data interaction with each subsystem through an authorized second data interface, and performs protocol conversion according to the communication interface of each subsystem.
[0054] In particular, in this embodiment, specifically, as Figure 4 As shown, the access layer further includes the following steps of performing data interaction with each subsystem through the authorized second data interface.
[0055] Specifically, in this embodiment, in step S21-1, a user interaction page is provided on the first industry cloud layer 201, and the developer inputs the interface parameters of the subsystem 300 that will interact with the application layer on the user interaction page, and the first industry cloud layer 201 receives the interface parameters of the subsystem 300, and the interface parameters of the first industry cloud layer 201 output a communication request to the first access adaptation layer 202. The interface parameters include, for example: token data, token validity period, login credentials, and injection method, etc. The injection method can specifically be a header injection method, and the interface parameters can also include the address of the subsystem 300, etc.
[0056] These interface parameters are used for the first industry cloud layer 201 to obtain authentication in the subsystem 300. Specifically, in step S22-1, the first access adaptation layer 202 transmits the communication request to the subsystem 300 through the adaptation interface corresponding to the subsystem 300 to obtain the authorization of the subsystem 300. Specifically, the communication request includes the interface parameters, and the subsystem 300 authorizes the first industry cloud layer 201 to interact with it according to the received interface parameters. The subsystem 300 encapsulates the authorization, the adaptation interface and the interface parameters together to form an authorized second data interface corresponding to the subsystem 300.
[0057] In step S23-1, the second access adaptation layer 202 identifies the subsystem 300 according to the authorized second data interface, and performs protocol conversion on the communication interface of the subsystem 300 so that it can perform data interaction according to the HTTP REST style of the first data interface.
[0058] In this embodiment, by enabling the first industry cloud layer 201 to obtain authorization at the subsystem 300, when the application layer 100 needs to call the data in the subsystem 300 for unified management and deployment, for example, if the subsystem 300 is a camera management subsystem, if the application layer needs to adjust the bit rate or direction of the camera, an instruction is given to the first industry cloud layer 201, and the first industry cloud layer 201 sends the instruction to the camera management subsystem via the first adaptation layer 202. Because the first industry cloud layer 201 has already obtained the authorization of the camera management subsystem in advance in the above manner, which is equivalent to the camera management subsystem automatically exposing the second data interface, the camera management subsystem automatically completes access to the server, and sends the data that the application layer 100 needs to call via the access adaptation layer 202 and the first industry cloud layer 201 to the application layer 100 layer by layer, so that the application layer 100 can adjust the bit rate or direction of the camera.
[0059] Through the codeless access method, the first industry cloud layer can obtain corresponding authorization in each subsystem to automatically protect the second data interface and realize data interaction. When the subsystems of various manufacturers are connected to the network to realize the unified management of the application layer, only the business code for interface call is required at the access layer to obtain the interface capabilities of each subsystem, and developers no longer need to connect with each manufacturer one by one and develop calling programs for different subsystems, which reduces the integration complexity of the subsystem and improves development efficiency.
[0060] However, the above method integrates some interface capabilities of the subsystem into the industry cloud platform, and only some interfaces are open. Therefore, it is impossible to achieve functions such as single sign-on, unified users and organizations, etc.
[0061] In view of this, in some optional embodiments, a system-customized data interaction access method is proposed. Figure 3 As shown, at this time, the access layer 200 of the application service system includes a second industry cloud layer 201 and a second access adaptation layer 202 (it should be noted that because the functions of the industry cloud layer and the access adaptation layer are different but the block diagram is the same, the same labels are still used in the structure, and the specific step labels are different to distinguish different specific functions). The application service method includes: S1, the access layer and the application layer exchange data through a preset first data interface; S2, the access layer exchanges data with each subsystem through an authorized second data interface, and performs protocol conversion according to the communication interface of each subsystem.
[0062] In particular, in this embodiment, specifically, as Figure 5 As shown, the access layer further includes the following steps of performing data interaction with each subsystem through the authorized second data interface.
[0063] Specifically, in this embodiment, in step S21-2, the second access adaptation layer 202 downloads the development credentials (ak, sk) from the second industry cloud layer 201 and transmits them to each subsystem 300 through the adaptation interface corresponding to the subsystem 300. The development credentials correspond to each subsystem one by one, that is, each subsystem corresponds to its unique development credentials, which are used for identity authentication of the subsystem.
[0064] In addition, in step S22-2, the second access adaptation layer 202 downloads the software development kit (SDK) from the second industry cloud layer 201 and transmits it to each subsystem 300 through the adaptation interface, so that each subsystem 300 encapsulates the software development kit (SDK), development credentials (ak, sk) and the adaptation interface to form an authorized second data interface corresponding to the subsystem 300. Through this step, by integrating the software development kit into the subsystem 300 and configuring the development credentials in the subsystem 300, the subsystem 300 references the software development kit downloaded from the second industry cloud layer 201 in its own code, and the use of the software development kit can obtain the access capability of the second industry cloud layer 201, and through the configuration of the development credentials, it is equivalent to directly registering in the subsystem 300, forming an authorized second data interface.
[0065] It should be noted that, through the software development kit, the second industry cloud layer 201 provides unified basic content such as users and organizations. This part of the subsystem can be shielded and the capabilities of the second industry cloud layer 201 can be used directly. In this way, users, organizations, etc. are unified. In addition, if these capabilities of the subsystem are retained, it is also necessary to develop a mapping program for users and organizations, which will not be repeated here.
[0066] In step S23-2, the second access adaptation layer 202 identifies the subsystem 300 according to the authorized second data interface, and performs protocol conversion on the communication interface of the subsystem 300 so that it can perform data interaction according to the HTTP REST style of the first data interface.
[0067] Through this setting, when the application layer 100 needs to call the data in the subsystem 300 for unified management and deployment, for example, if the subsystem 300 is a camera management subsystem, if the application layer 100 needs to adjust the bit rate or direction of the camera, it will give an instruction to the second industry cloud layer 201, and the second industry cloud layer 201 will send the instruction to the camera management subsystem via the second adaptation layer 202. Because the second industry cloud layer 201 has pre-customized the subsystem to obtain the access capability of the second industry cloud layer 201 in the above manner, it is equivalent to the camera management subsystem automatically accessing the second industry cloud layer 202, and sending the data that the application layer 100 needs to call through the access adaptation layer 202 and the second industry cloud layer 201 to the application layer 100 layer by layer, so that the application layer 100 can adjust the bit rate or direction of the camera.
[0068] The above system-customized access method directly sends the software development program and development credentials to the subsystem through the second industry cloud layer, and customizes the subsystem by integrating it in the subsystem, so that it can be developed according to the standards of the industry cloud layer, directly smooth out the differences in the subsystem, and obtain the full capabilities of the subsystem. Compared with the codeless access method, it is more suitable for third-party subsystems.
[0069] In addition, the method also has simple steps and is easy to implement. Therefore, when the subsystems of various manufacturers are networked to achieve unified management of the application layer, it is only necessary to write business codes for interface calls at the access layer to obtain the interface capabilities of each subsystem, and developers are no longer required to connect with each manufacturer one by one and develop calling programs for different subsystems, which reduces the integration complexity of the subsystem and improves development efficiency.
[0070] In some optional embodiments, the present invention also provides a data interaction access method for automatic access. Figure 3 As shown, at this time, the access layer 200 of the application service system includes a third industry cloud layer 201 and a third access adaptation layer 202 (it should be noted that because the functions of the industry cloud layer and the access adaptation layer are different but the block diagram is the same, the same labels are still used in the structure, and the specific step labels are different to distinguish different specific functions). The application service method includes: S1, the access layer and the application layer exchange data through a preset first data interface; S2, the access layer exchanges data with each subsystem through an authorized second data interface, and performs protocol conversion according to the communication interface of each subsystem.
[0071] In particular, in this embodiment, specifically, as Figure 6 As shown, the access layer further includes the following steps of performing data interaction with each subsystem through the authorized second data interface.
[0072] In this embodiment, in step S21-3, the third access adaptation layer 202 downloads the scaffolding and development credentials from the third industry cloud layer. Specifically, in this step, the developer communicates with the third industry cloud layer 201 through the adaptation layer 202 through the development end, and downloads the scaffolding and development credentials (ak, sk) through the third access adaptation layer 202, wherein the scaffolding refers to the original code of the application program for the user to implement the second data interface.
[0073] In step S22-3, the third access adaptation layer updates the credential information of the scaffold according to the development credential, encapsulates the communication interface of the subsystem 300, and performs protocol conversion on the communication interface of the subsystem to form an authorized second data interface corresponding to the subsystem.
[0074] Through this setting, when the application layer 100 needs to call the data in the subsystem 300 for unified management and deployment, for example, if the subsystem 300 is a camera management subsystem, if the application layer 100 needs to adjust the bit rate or direction of the camera, it will give instructions to the third industry cloud layer 201. Because the access layer has deployed a second data interface that has undergone protocol conversion, it is equivalent to the camera management subsystem automatically accessing the third industry cloud layer 202, and sending the data that the application layer 100 needs to call through the access adaptation layer 202 and the second industry cloud layer 201 to the application layer 100 layer by layer, so that the application layer 100 can adjust the bit rate or direction of the camera.
[0075] In this way, based on the development credentials, an application program with a second data interface that encapsulates the credential information and the communication interface of the subsystem 300 and undergoes protocol conversion can be formed in the third adaptation layer, and can be directly deployed in the third industry cloud layer, thereby realizing an automatic access data interaction access method.
[0076] In addition, the method also has simple steps and is easy to implement. Therefore, when the subsystems of various manufacturers are networked to achieve unified management of the application layer, it is only necessary to write business codes for interface calls at the access layer to obtain the interface capabilities of each subsystem, and developers are no longer required to connect with each manufacturer one by one and develop calling programs for different subsystems, which reduces the integration complexity of the subsystem and improves development efficiency.
[0077] Considering that exposing the interface of the lower-level subsystem has certain security risks, in some optional embodiments, reference Figure 7As shown, in addition to the service application system architecture of the access layer 200 and the application layer 100 described in the above embodiment, the service application system implementing the service application method may also include a security structure 400. Figures 4 to 6 Regardless of the data interaction method in the access method, this setting can be added to further provide further security protection for the subsystem.
[0078] Specifically, with respect to this setting, in the application service method, data interaction between S1, the access layer and the application layer through a preset first data interface further includes:
[0079] The access layer and the security interface perform data interaction via the first data interface, so that the security interface performs security detection on the interaction data sent by the application layer to protect the subsystem.
[0080] More specifically, the called application layer 100 can be authenticated through the security interface 400. The authentication method can include authorizing the application layer by issuing an authorization certificate, that is, the security interface authenticates the interactive data sent by the application layer to protect the subsystem. A blacklist and a whitelist can also be set in the security interface, so that only applications with IP addresses in the whitelist can call the lower-level subsystem, and applications with IP addresses in the blacklist are rejected, that is, the security interface detects the address of the application layer that sends the interactive data through the blacklist and the whitelist to protect the subsystem.
[0081] Accordingly, if Figure 2 As shown, an embodiment of the present invention provides an application service system for implementing the application service method as described above, including: an application layer, an access layer and multiple subsystems, wherein:
[0082] The access layer is configured as follows:
[0083] Performing data interaction with the application layer via a preset first data interface;
[0084] Data is exchanged with each subsystem respectively through the authorized second data interface, and protocol conversion is performed according to the communication interface of each subsystem.
[0085] Because this embodiment has been explained in detail when describing the service application method above, it will not be repeated here.
[0086] In this embodiment, the access layer is set to interact with each subsystem via an authorized second data interface, and the communication interface of each subsystem is converted into a protocol. After the protocol conversion, the application layer and the access layer use the second data interface to complete the data interaction with each subsystem, thereby reducing the complexity of the system interaction between the application layer and each subsystem, so that the subsystem can use a unified protocol to synchronously adapt to the subsystems of multiple manufacturers, and can uniformly access and manage multiple subsystems, reducing the complexity of development, and has broad application prospects.
[0087] Another embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements: data interaction between the access layer and the application layer via a preset first data interface; the access layer interacts with each subsystem via an authorized second data interface, and performs protocol conversion according to the communication interface of each subsystem.
[0088] In practical applications, the computer-readable storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present embodiment, the computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0089] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0090] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0091] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0092] like Figure 8 As shown, a structural schematic diagram of a computer device provided by another embodiment of the present invention. Figure 8 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0093] like Figure 8 As shown, the computer device 12 is in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).
[0094] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0095] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.
[0096] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 8 not shown, usually called a "hard drive"). Although Figure 8 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0097] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0098] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), one or more devices that enable a user to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed through an input / output (I / O) interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) through a network adapter 20. Figure 8 As shown, the network adapter 20 communicates with other modules of the computer device 12 via the bus 18. It should be understood that although Figure 8 Not shown, other hardware and / or software modules may be used in conjunction with computer device 12, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0099] The processor unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing an application service method based on multiple subsystem access provided by an embodiment of the present invention.
[0100] In view of the existing problems, the present invention develops an application service method and system, computer equipment and medium based on the access of multiple subsystems, and sets an access layer to perform data interaction with each subsystem via an authorized second data interface, and performs protocol conversion on the communication interface of each subsystem. After the protocol conversion, the application layer and the access layer both use the second data interface to complete data interaction with each subsystem, thereby reducing the complexity of system interaction between the application layer and each subsystem, so that the subsystem can use a unified protocol to synchronously adapt to each subsystem of multiple manufacturers, and can uniformly access and manage multiple subsystems, reducing development complexity, and having broad application prospects.
[0101] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not limitations on the implementation methods of the present invention. For ordinary technicians in the relevant field, other different forms of changes or modifications can be made based on the above description. It is impossible to list all the implementation methods here. All obvious changes or modifications derived from the technical solution of the present invention are still within the protection scope of the present invention.
Claims
1. An application service method based on multiple subsystem access, characterized in that: include: The access layer and the application layer exchange data via a preset first data interface; The access layer interacts with each subsystem through the authorized second data interface and performs protocol conversion according to the communication interface of each subsystem. The access layer includes a second industry cloud layer and a second access adaptation layer, and the access layer interacts with each subsystem through an authorized second data interface to further include: The second access adaptation layer downloads the development credential from the second industry cloud layer and transmits it to each subsystem through an adaptation interface corresponding to the subsystem; The second access adaptation layer downloads the software development kit from the second industry cloud layer and transmits it to each subsystem through the adaptation interface, so that each subsystem encapsulates the software development kit, the development credential and the adaptation interface to form an authorized second data interface corresponding to the subsystem; The second access adaptation layer identifies the subsystem according to the authorized second data interface and performs protocol conversion on the communication interface of the subsystem.
2. The application service method according to claim 1, characterized in that: The data interaction between the access layer and the application layer through the preset first data interface further includes: The access layer and the security interface perform data interaction via the first data interface, so that the security interface performs security detection on the interaction data sent by the application layer to protect the subsystem.
3. The application service method according to claim 2, characterized in that: The security interface authenticates the interactive data sent by the application layer to protect the subsystem; or The security interface includes a blacklist and a whitelist of addresses, and the security interface detects the address of the application layer that sends interactive data through the blacklist and the whitelist to protect the subsystem.
4. The application service method according to any one of claims 1 to 3, characterized in that: The first data interface is an HTTP REST interface.
5. An application service system that implements the application service method according to any one of claims 1 to 4, characterized in that: include: Application layer, access layer and multiple subsystems, among which, The access layer is configured as follows: Performing data interaction with the application layer via a preset first data interface; Data is exchanged with each subsystem respectively through the authorized second data interface, and protocol conversion is performed according to the communication interface of each subsystem.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Intelligent skynet application platform
CN103269355A
Token obtaining method and device
CN103780396A
Intelligent ordering system
CN105574783A
Login access method, systems and storage medium
CN109150800A
System, methods and software for user authentication
CN110121710A
