Data access method adaptive to multiple manufacturers based on. Net framework

By building a service platform based on the .net framework and adapting to multi-vendor data interfaces, the time-consuming and code redundant problems of business systems caused by different data formats are solved, and unified data output and efficient compatibility are achieved.

CN118733296APending Publication Date: 2024-10-01ANHUI SUN CREATE ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410839013.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the existing technology, the data formats provided by various manufacturers are different, which causes the business system to be time-consuming and redundant in code, which is not conducive to system expansion and maintenance.

Method used

Use the .net framework to build a service platform, create universal and manufacturer data access interfaces, adapt to data from different manufacturers, form unified data output, communicate with manufacturers through universal data interfaces, store and distribute data, and realize disconnection reconnection and alarms remind.

Benefits of technology

It improves the compatibility, development and efficiency of the system, allowing upper-layer applications to be compatible with data from different manufacturers without modifying the logic code.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733296A_ABST
    Figure CN118733296A_ABST
Patent Text Reader

Abstract

The invention discloses an adaptive multi-manufacturer data access method based on a. Net framework, relates to the technical field of data connection, and solves the technical problems that data formats provided by manufacturers are different, a business system consumes a lot of time for data, a lot of code redundancy exists, system expansion is not facilitated, and maintenance is difficult. Comprising the following steps: S1, building a service platform; s2, creating a general data access interface; s3, creating a manufacturer data access interface; s4, adapting to a manufacturer data access interface; s5, establishing connection with manufacturer communication data; establishing a basis for acquiring manufacturer data, and acquiring the manufacturer data; s6, acquiring manufacturer data, and storing the manufacturer data into the database; and distributing the manufacturer data through an interface. By establishing a unified service platform, unified data output is formed, data of different manufacturers are compatibly displayed, and the compatibility, development and high efficiency of the system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the computer field and relates to a data docking technology, in particular to a .net framework-based method for adapting multi-vendor data access. Background Art

[0002] With the rapid development of computer technology and the continuous changes in business needs, different manufacturers can provide different data to meet business needs. Due to the continuous changes in business needs, business systems need to use data from different manufacturers to fully meet business needs; however, there is no unique standard for how to provide data. The data formats provided by different manufacturers are very different. Business systems will spend a lot of time on data, and there is a lot of code redundancy, which is not conducive to system expansion and difficult to maintain. At this time, there is an urgent need for a method and service that can adapt to different manufacturers and provide unified standards.

[0003] Therefore, a method for adapting multi-vendor data access based on .net framework is proposed. Summary of the invention

[0004] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a method for adapting multi-vendor data access based on the .net framework, which solves the problem that the data formats provided by various vendors are very different, the business system will spend a lot of time on data, and there is a lot of code redundancy, which is not conducive to system expansion and difficult to maintain.

[0005] To achieve the above object, according to an embodiment of the first aspect of the present invention, a method for adapting multi-vendor data access based on a .net framework is provided, comprising the following steps:

[0006] S1: Build a service platform;

[0007] S2: Create a general data access interface;

[0008] S3: Create a manufacturer data access interface;

[0009] S4: Adaptation manufacturer data access interface;

[0010] S5: Establish a connection with the manufacturer's communication data; establish a basis for obtaining the manufacturer's data and obtain the manufacturer's data;

[0011] S6: Obtain manufacturer data and store the manufacturer data in a database;

[0012] And distribute the manufacturer data through the interface.

[0013] Preferably, in step S1, a service platform is built based on the .net framework.

[0014] Preferably, creating a universal data access interface comprises the following steps:

[0015] Build a universal data access framework;

[0016] Create different universal data access interfaces according to the data form and data type of the universal data.

[0017] Preferably, the data form of the general data includes: structured data, unstructured data and semi-structured data;

[0018] The data types of the general data include: basic data types and reference data types;

[0019] The basic data types include numeric, character, and Boolean;

[0020] Reference data types include classes, interfaces, and arrays.

[0021] Preferably, creating a manufacturer data access interface includes the following steps:

[0022] Based on the data connection method provided by the manufacturer, create the manufacturer data access interface of the corresponding manufacturer.

[0023] Preferably, the data forms of the manufacturer data include: structured data, unstructured data, and semi-structured data;

[0024] The data types of manufacturer data include: basic data types and reference data types;

[0025] Among them, the basic data types include numeric type, character type, and Boolean type;

[0026] Reference data types include classes, interfaces, and arrays.

[0027] Preferably, the conditions for adapting the manufacturer's data are as follows: the manufacturer's data must satisfy the corresponding data format and data type.

[0028] Preferably, adapting the manufacturer data access interface includes the following steps:

[0029] S41: Compare the universal data access interface created in step S2 and the manufacturer data access interface created in step S3;

[0030] S42: Match fields with the same data type and data form;

[0031] S43: converting fields with different data types and data forms and performing matching;

[0032] S44: All data fields are matched.

[0033] Preferably, the connection method with the manufacturer's communication data interface is determined according to the provision method of each manufacturer.

[0034] Preferably, it also includes S7: regularly checking the connection status to achieve disconnection reconnection and alarm reminder;

[0035] The connection status includes: connection request status, connection establishment status and connection interruption status.

[0036] Compared with the prior art, the present invention has the following beneficial effects:

[0037] The present invention establishes a unified service platform, connects data from different manufacturers, forms a unified data output, and allows upper-level applications to obtain data of unified standards, so that upper-level applications can be compatible with and display data from different manufacturers without modifying logic codes, thereby improving the compatibility, development and efficiency of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0039] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0040] like Figure 1 As shown, a method for adapting multi-vendor data access based on a .net framework includes the following steps:

[0041] S1: Build a data access and forwarding service platform; prepare for data connection with manufacturers.

[0042] In this embodiment, in step S1, a data access and forwarding service platform is built based on the .net framework.

[0043] The purpose of building a service platform based on the .net framework is to:

[0044] (1).NET is open source and cross-platform, so developers can write code once and run it on multiple operating systems and devices;

[0045] (2).NET is an object-oriented programming language that allows developers to easily create complex, easy-to-maintain applications;

[0046] (3).NET platform provides various security mechanisms, including code access security, authentication and authorization, which can ensure the security of applications.

[0047] (4).NET framework supports multiple programming languages, including C#, VB.NET and F#, allowing developers to develop using the programming languages ​​they are familiar with.

[0048] It should be further explained that in addition to the .Net framework, other frameworks, such as Java, Python and other language frameworks, can also be used to build service platforms.

[0049] S2: Create a general data access interface. It should be further explained that general data is defined according to industry specifications and business requirements. General data is defined by the structure of alarm data such as people, vehicles, and Wifi, as well as business display requirements.

[0050] In this embodiment, creating a universal data access interface includes the following steps:

[0051] Building a universal data access framework

[0052] Create different access interfaces according to the data form and data type of common data;

[0053] Specifically, the data forms of the general data include: structured data, unstructured data and semi-structured data;

[0054] The data types of the general data include: basic data types and reference data types; the basic data types include numeric types, character types, Boolean types, etc.; the reference data types include classes, interfaces, arrays, etc.

[0055] S3: Create a manufacturer data access interface;

[0056] In this embodiment, based on the data connection method provided by the manufacturer, a manufacturer data access interface corresponding to the manufacturer is created to connect to the manufacturer data;

[0057] Specifically, the data connection methods provided by manufacturers include: restful interface and SDK;

[0058] Specifically, the manufacturer data includes: data on people, vehicles, Wi-Fi snapshots, and alarms.

[0059] The data forms of manufacturer data include: structured data, unstructured data and semi-structured data. The corresponding manufacturer data is obtained according to the data type provided by the manufacturer.

[0060] S4: Adapting the manufacturer data access interface; it should be further explained that the adaptation of the manufacturer data access interface is to adapt the connected manufacturer data to the universal standard interface so that the connected manufacturer data has a unified data output;

[0061] In this embodiment, the conditions for adapting the manufacturer data are: the manufacturer data must meet the corresponding data format and data type;

[0062] Specifically, the data forms of manufacturer data include: structured data, unstructured data, and semi-structured data;

[0063] The data types of manufacturer data include: basic data types and reference data types; among which, basic data types include numeric type, character type, Boolean type, etc., and reference data types include class, interface, array, etc.;

[0064] In this embodiment, adapting the manufacturer data access interface includes the following steps:

[0065] S41: Compare the universal data access interface created in step S2 and the manufacturer data access interface created in step S3;

[0066] S42: Match fields with the same data type and data form;

[0067] S43: converting fields with different data types and data forms and performing matching;

[0068] S44: All data fields are matched, that is, the adaptation is completed.

[0069] S5: Establish a connection with the manufacturer's communication data; establish a basis for obtaining the manufacturer's data and obtain the manufacturer's data;

[0070] In this embodiment, establishing a connection with the manufacturer communication data includes the following steps:

[0071] Initialize the manufacturer's data communication interface;

[0072] Establish a connection with the manufacturer's communication data interface, so that the general data access service can establish interface communication with the corresponding manufacturer and obtain the manufacturer's data;

[0073] Specifically, the connection modes with the manufacturer's communication data interface include: long connection mode and callback mode; the connection establishment mode is determined according to the provision mode of each manufacturer.

[0074] S6: Obtain manufacturer data and store the manufacturer data in a database;

[0075] In this embodiment, step S6 further includes:

[0076] Distribute the manufacturer data through the Restful interface so that the upper-layer business can obtain the corresponding data and apply the data.

[0077] S7: Check the connection status regularly to realize disconnection reconnection and alarm reminder;

[0078] In this embodiment, the connection status is checked regularly to achieve disconnection reconnection and alarm reminder; a task of regularly checking the connection status of different manufacturers is created. If a connection is disconnected, disconnection reconnection and disconnection alarm reminder are automatically achieved;

[0079] Specifically, the connection status includes: connection request status, connection establishment status and connection interruption status;

[0080] Here, the connection status is checked periodically, that is, whether it is in the "establishing connection status". If it is not in the "establishing connection status", a new connection request is made to establish the connection status.

[0081] The above embodiments are only used to illustrate the technical method of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical method of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical method of the present invention.

Claims

1. A method for adapting multi-vendor data access based on .net framework, characterized in that: The following steps are involved: S1: Build a service platform; S2: Create a general data access interface; S3: Create a manufacturer data access interface; S4: Adaptation manufacturer data access interface; S5: Establish a connection with the manufacturer's communication data; establish a basis for obtaining the manufacturer's data and obtain the manufacturer's data; S6: Obtain manufacturer data and store the manufacturer data in a database; And distribute the manufacturer data through the interface.

2. According to the .net framework-based method for adapting multi-vendor data access according to claim 1, it is characterized in that: In step S1, a service platform is built based on the .net framework.

3. According to the .net framework-based method for adapting multi-vendor data access according to claim 1, it is characterized in that: Creating a general data access interface includes the following steps: Build a universal data access framework; Create different universal data access interfaces according to the data form and data type of the universal data.

4. According to the .net framework-based method for adapting multi-vendor data access according to claim 3, it is characterized in that: The data forms of the general data include: structured data, unstructured data and semi-structured data; The data types of the general data include: basic data types and reference data types; The basic data types include numeric, character, and Boolean; Reference data types include classes, interfaces, and arrays.

5. The method for adapting multi-vendor data access based on .net framework according to claim 1, characterized in that: Creating a manufacturer data access interface includes the following steps: Based on the data connection method provided by the manufacturer, create the manufacturer data access interface of the corresponding manufacturer.

6. The method for adapting multi-vendor data access based on .net framework according to claim 1, characterized in that: The data forms of manufacturer data include: structured data, unstructured data, and semi-structured data; The data types of manufacturer data include: basic data types and reference data types; Among them, the basic data types include numeric type, character type, and Boolean type; Reference data types include classes, interfaces, and arrays.

7. The method for adapting multi-vendor data access based on .net framework according to claim 1, characterized in that: Conditions for adapting manufacturer data: Manufacturer data must meet the corresponding data format and data type.

8. The method for adapting multi-vendor data access based on .net framework according to claim 7, characterized in that: Adapting the manufacturer's data access interface includes the following steps: S41: Compare the universal data access interface created in step S2 and the manufacturer data access interface created in step S3; S42: Match fields with the same data type and data form; S43: converting fields with different data types and data forms and performing matching; S44: All data fields are matched.

9. The method for adapting multi-vendor data access based on .net framework according to claim 1, characterized in that: The connection method with the manufacturer's communication data interface is determined according to the method provided by each manufacturer.

10. The method for adapting multi-vendor data access based on .net framework according to claim 1, characterized in that: It also includes S7: regularly checking the connection status, reconnecting after disconnection, and alarm reminder; The connection status includes: connection request status, connection establishment status and connection interruption status.