CN114745437A - Method and device for unified data access - Google Patents

Method and device for unified data access Download PDF

Info

Publication number
CN114745437A
CN114745437A CN202210458279.2A CN202210458279A CN114745437A CN 114745437 A CN114745437 A CN 114745437A CN 202210458279 A CN202210458279 A CN 202210458279A CN 114745437 A CN114745437 A CN 114745437A
Authority
CN
China
Prior art keywords
target
data access
data
protocol
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210458279.2A
Other languages
Chinese (zh)
Inventor
林镇锋
张泰�
唐重阳
李澄澄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Digital Power Grid Research Institute of China Southern Power Grid Co Ltd
Original Assignee
Shenzhen Digital Power Grid Research Institute of China Southern Power Grid Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Digital Power Grid Research Institute of China Southern Power Grid Co Ltd filed Critical Shenzhen Digital Power Grid Research Institute of China Southern Power Grid Co Ltd
Priority to CN202210458279.2A priority Critical patent/CN114745437A/en
Publication of CN114745437A publication Critical patent/CN114745437A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method and a device for unified data access, wherein the method comprises the following steps: the data access platform judges whether an access request sent by target equipment is received; when the data access platform judges that an access request sent by target equipment is received, the data access platform judges whether a target protocol matched with the target equipment is prestored; and when the data access platform judges that the target protocol matched with the target equipment is prestored, the data access platform responds to the access request to receive the target data sent by the target equipment. Therefore, the method and the device can carry out uniform access on different target devices, obtain a protocol result by combining the target protocol matched between the data platform and the target devices, complete data butt joint between the data access platform and the target devices, are favorable for solving the problems of large data butt joint difficulty and complicated steps caused by numerous target device protocols and difficult adaptation, and further improve the efficiency of data access and the expandability of the system.

Description

Method and device for unified data access
Technical Field
The invention relates to the technical field of Internet of things, in particular to a method and a device for unified data access.
Background
With the rapid development of the internet of things technology, more and more management platforms collect data by receiving information of different intelligent acquisition devices, wherein a data access mode of the intelligent acquisition devices and the management platforms is an important part of the data collection.
In practical application, a mode of writing in a fixed protocol code is generally adopted to expand access modes of different internet of things devices, however, the devices or protocols that can be accessed by the access modes are very limited, and the data access difficulty of the newly-added internet of things devices with different protocols is relatively large.
Therefore, it is very important to provide a unified data access method to realize the unified data access of different internet of things devices.
Disclosure of Invention
The invention provides a method and a device for uniformly accessing data, which can uniformly access different target devices, acquire a protocol result by combining a target protocol matched between a data platform and the target devices, complete data docking between the data access platform and the target devices, are beneficial to solving the problems of high data docking difficulty and complicated steps caused by numerous and difficult adaptation of the target device protocols, improve the possibility of successfully completing data access for data docking before different target devices and the data access platform, and further improve the efficiency of data access and the expandability of a system.
In order to solve the above technical problem, a first aspect of the present invention discloses a method for unified data access, where the method includes:
the data access platform judges whether an access request sent by target equipment is received, and the target equipment establishes a physical link with the data access platform;
when the data access platform judges that an access request sent by target equipment is received, the data access platform judges whether a target protocol matched with the target equipment is prestored;
and when the data access platform judges that the target protocol matched with the target equipment is prestored in the data access platform, the data access platform responds to the access request to receive the target data sent by the target equipment.
As an optional implementation manner, in the first aspect of the present invention, the determining, by the data access platform, whether a target protocol matched with the target device is prestored includes:
the data access platform judges whether a target protocol completely consistent with the communication protocol of the target equipment exists in a prestored protocol list; if so, determining that the target protocol matched with the target equipment is prestored in the data access platform; and/or the presence of a gas in the gas,
the data access platform judges whether a compatible protocol compatible with the communication protocol of the target equipment exists in a prestored protocol list; and when the judgment result is yes, determining that the target protocol matched with the target equipment is prestored in the data access platform.
As an alternative implementation, in the first aspect of the present invention, the method further includes:
and when the data access platform is judged not to store the target protocol matched with the target equipment, the data access platform executes protocol supplementary operation to acquire an access mode matched with the target equipment.
As an optional implementation manner, in the first aspect of the present invention, the performing, by the data access platform, a protocol supplementary operation to obtain an access mode matched with the target device includes:
acquiring the list information of the communication equipment accessed to the data access platform;
judging whether target communication equipment matched with the target equipment exists in the communication equipment list information or not;
and when the target communication equipment is judged to exist in the communication equipment list information, sending a switching access instruction to the target communication equipment, wherein the switching access instruction is used for controlling the target communication equipment to establish access connection with the target equipment so that the data access platform acquires the data sent by the target equipment.
As an optional implementation manner, in the first aspect of the present invention, the method further comprises:
the data access platform monitors whether the target protocol matched with the target equipment needs to be updated or not;
and when the monitoring result is yes, performing updating operation to obtain the latest version of the target protocol.
As an optional implementation manner, in the first aspect of the present invention, the performing an update operation to obtain the latest version of the target protocol includes:
the data access platform establishes connection with a protocol cloud server;
judging whether an updated version of the target protocol exists in the protocol cloud server;
and when the updated version is judged to exist, downloading the updated version to the data access cloud platform.
As an optional implementation manner, in the first aspect of the present invention, after the data access platform responds to the access request to receive the target data sent by the target device, the method further includes:
decomposing and reconstructing the target data to obtain reconstructed data of the target data;
classifying the reconstruction data according to preset class information to obtain a classification result corresponding to the reconstruction data;
and sending the reconstruction data to a processing module corresponding to the category information according to the classification result so as to execute corresponding processing operation on the reconstruction data.
The second aspect of the present invention discloses a device for unified data access, which comprises:
the first judgment module is used for judging whether an access request sent by target equipment is received, wherein the target equipment establishes a physical link with the data access platform;
the second judgment module is used for judging whether a target protocol matched with the target equipment is prestored when judging that the access request sent by the target equipment is received;
and the access module is used for responding to the access request to receive the target data sent by the target equipment when the target protocol matched with the target equipment is judged to be prestored.
As an optional implementation manner, in the second aspect of the present invention, the second determining module is specifically configured to:
judging whether a target protocol completely consistent with the communication protocol of the target equipment exists in a pre-stored protocol list or not; if so, determining that the target protocol matched with the target equipment is prestored in the data access platform; and/or the presence of a gas in the gas,
judging whether a compatible protocol compatible with the communication protocol of the target equipment exists in a prestored protocol list; and when the judgment result is yes, determining that the target protocol matched with the target equipment is prestored in the data access platform.
As an alternative embodiment, in the second aspect of the present invention, the apparatus further comprises:
and the protocol supplementing module is used for executing protocol supplementing operation when judging that the target protocol matched with the target equipment does not exist so as to acquire an access mode matched with the target equipment.
As an optional implementation manner, in the second aspect of the present invention, the specific manner in which the protocol supplementary module performs the protocol supplementary operation to obtain the access mode matched with the target device is as follows:
acquiring the list information of the communication equipment accessed to the data access platform;
judging whether target communication equipment matched with the target equipment exists in the communication equipment list information or not;
and when the target communication equipment is judged to exist in the communication equipment list information, sending a switching access instruction to the target equipment, wherein the switching access instruction is used for controlling the target communication equipment to establish access connection with the target equipment so that the data access platform acquires the data sent by the target equipment.
As an alternative embodiment, in the second aspect of the present invention, the apparatus further comprises:
the monitoring module is used for monitoring whether the target protocol matched with the target equipment needs to be updated or not;
and the updating module is used for executing updating operation to acquire the latest version of the target protocol when the monitoring result is yes.
As an optional implementation manner, in the second aspect of the present invention, the update module is specifically configured to:
establishing connection with a protocol cloud server;
judging whether an updated version of the target protocol exists in the protocol cloud server;
and when the updated version is judged to exist, downloading the updated version to the data access cloud platform.
As an alternative embodiment, in the second aspect of the present invention, the apparatus further comprises:
the reconstruction module is used for decomposing and reconstructing the target data to obtain reconstructed data of the target data; classifying the reconstruction data according to preset class information to obtain a classification result corresponding to the reconstruction data; and sending the reconstruction data to a processing module corresponding to the category information according to the classification result so as to execute corresponding processing operation on the reconstruction data.
The third aspect of the present invention discloses another apparatus for unified data access, which includes:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute part or all of the steps of any one of the methods for unified data access disclosed by the first aspect of the present invention.
The fourth aspect of the present invention discloses a computer storage medium, which stores computer instructions, and when the computer instructions are called, the computer storage medium is used for executing part or all of the steps in any one of the methods for unified data access disclosed in the first aspect of the present invention.
Compared with the prior art, the invention has the following beneficial effects:
the invention discloses a method and a device for unified data access, wherein the method comprises the following steps: the data access platform judges whether an access request sent by target equipment is received; when the data access platform judges that an access request sent by target equipment is received, the data access platform judges whether a target protocol matched with the target equipment is prestored; and when the data access platform judges that the target protocol matched with the target equipment is prestored, the data access platform responds to the access request to receive the target data sent by the target equipment. Therefore, the invention can carry out uniform access on different target devices, acquires the protocol result by combining the target protocol matched between the data platform and the target device, completes the data butt joint between the data access platform and the target device, is beneficial to solving the problems of large data butt joint difficulty and complicated steps caused by numerous protocols and difficult adaptation of the target device, improves the possibility of successfully completing the data access for carrying out the data butt joint before different target devices and the data access platform, and further improves the efficiency of the data access and the expandability of the system.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for unified data access according to an embodiment of the present invention;
fig. 2 is a flow chart illustrating another method for unified data access according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a device for unified data access according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another apparatus for unified data access according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another apparatus for unified data access according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, article, or article that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or article.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein may be combined with other embodiments.
The invention discloses a method and a device for uniformly accessing data, which can uniformly access different target devices, acquire a protocol result by combining a target protocol matched between a data platform and the target devices, complete data docking between the data access platform and the target devices, are favorable for solving the problems of high data docking difficulty and complicated steps caused by numerous and difficult adaptation of the target device protocols, improve the possibility of successfully completing data access for data docking before different target devices and the data access platform, and further improve the efficiency of data access and the expandability of a system. The following are detailed descriptions of the respective components.
Example one
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for unified data access according to an embodiment of the present invention. The method described in fig. 1 may be applied to a device for unified data access, where the device for unified data access may be an independent device, and may also be integrated in a processing device for unified data access, which is not limited in the embodiment of the present invention. As shown in fig. 1, the method for unified data access may include the following operations:
101. the data access platform judges whether an access request sent by target equipment is received, and the target equipment establishes a physical link with the data access platform.
In this embodiment of the present invention, the method may be applied to a data access platform, and first, the data access platform determines whether an access request sent by a target device is received, where it needs to be noted that a physical link should be established between the target device and the data access platform, where the link may be a wired mode or a wireless mode, and the embodiment of the present invention is not limited.
102. When the data access platform judges that the access request sent by the target equipment is received, the data access platform judges whether a target protocol matched with the target equipment is prestored.
In the embodiment of the present invention, optionally, when it is determined that the access request sent by the target device is received, the data access platform may automatically determine whether a target protocol matched with the target device exists in a protocol library prestored in the data access platform. The target protocol may be a protocol paired with different manufacturers and/or different types of devices and/or different batches of devices manufactured by the same manufacturer of the target device, but the protocol is applicable to the target device, and the embodiment of the present invention is not limited thereto.
103. And when the data access platform judges that the target protocol matched with the target equipment is prestored, the data access platform responds to the access request to receive the target data sent by the target equipment.
Therefore, the method described in the embodiment of the invention can perform unified access to different target devices, acquire a protocol result by combining the target protocol matched between the data platform and the target device, and complete data docking between the data access platform and the target device, thereby being beneficial to solving the problems of large data docking difficulty and complicated steps caused by numerous and difficult adaptation protocols of the target device, improving the possibility of successfully completing data access for data docking before different target devices and the data access platform, and further improving the efficiency of data access and the expandability of the system.
In an alternative embodiment, the determining, by the data access platform, whether a target protocol matching the target device is prestored may include the following operations:
the data access platform judges whether a target protocol completely consistent with a communication protocol of the target equipment exists in a prestored protocol list; if so, determining that a target protocol matched with the target equipment is prestored in the data access platform; and/or the presence of a gas in the gas,
the data access platform judges whether a compatible protocol compatible with the communication protocol of the target equipment exists in a prestored protocol list or not; and when the judgment result is yes, determining that the data access platform prestores a target protocol matched with the target equipment.
In the embodiment of the invention, the data access platform can judge whether a target protocol matched with the target equipment is pre-stored in various ways, wherein one way is to judge whether a target protocol completely consistent with a communication protocol of the target equipment exists in a pre-stored protocol list; and secondly, judging whether a compatible protocol compatible with the communication protocol of the target equipment exists in a pre-stored protocol list, and determining that the data access platform prestores the target protocol matched with the target equipment when any one of the situations exists. And when judging that any situation does not exist, determining that the data access platform does not have a target protocol matched with the target equipment.
Therefore, the method described in the embodiment of the present invention can determine whether the data access platform has the target protocol through multiple determination modes, which is beneficial to improving the universality and applicability of the scheme, improving the selectivity of the protocol and the convenience of the scheme, better completing the data access operation of the target device, and further improving the efficiency of data access and the expandability of the system.
In yet another alternative embodiment, the method may further include the operations of:
the data access platform monitors whether a target protocol matched with the target equipment needs to be updated or not;
and when the monitoring result is yes, performing updating operation to obtain the latest version of the target protocol.
In the embodiment of the invention, when the data access platform monitors that a new version of the target protocol matched with the target equipment in the protocol library of the data access platform needs to be updated, the data access platform can execute the updating operation to obtain the latest version of the target protocol.
In this optional embodiment, further optionally, the performing an update operation to obtain the latest version of the target protocol may include the following operations:
the data access platform establishes connection with the protocol cloud server;
judging whether an updated version of the target protocol exists in the protocol cloud server;
and when the updated version is judged to exist, downloading the updated version to the data access cloud platform.
For example, when the data access platform detects that the latest version of the protocol matching the target protocol exists from the cloud server, the data access platform can communicate with the cloud server and download the latest version to update the protocol library. Or, when the data access platform acquires, through the third device linked to the data access platform, the latest version or the more compatible version of the protocol, which is sent by the third device and matches the target protocol, the data access platform may communicate with the third device to acquire the latest version or the more compatible version.
Therefore, the method described in the embodiment of the present invention can continuously obtain the latest version or the more compatible version of the target protocol by updating the protocol library, so as to more specifically improve the performance of the protocol in the protocol library, facilitate faster adaptation of the protocol of the appropriate version, facilitate better completion of the data access operation of the target device, and further improve the efficiency of the data access and the expandability of the system.
Example two
Referring to fig. 2, fig. 2 is a schematic flow chart of another unified data access according to an embodiment of the present invention. The method described in fig. 2 may be applied to a device for unified data access, where the device for unified data access may be an independent device, or may be integrated in a processing device for unified data access, and the embodiment of the present invention is not limited thereto. As shown in fig. 2, the method for unified data access may include the following operations:
201. the data access platform judges whether an access request sent by target equipment is received, and the target equipment establishes a physical link with the data access platform.
In the embodiment of the invention.
202. When the data access platform judges that the access request sent by the target equipment is received, the data access platform judges whether a target protocol matched with the target equipment is prestored.
203. And when the data access platform judges that the target protocol matched with the target equipment is prestored, the data access platform responds to the access request to receive the target data sent by the target equipment.
In the embodiment of the present invention, for other descriptions of steps 201 to 203, please refer to the detailed descriptions of steps 101 to 103 in the first embodiment, which is not repeated herein.
204. And when the data access platform is judged not to store the target protocol matched with the target equipment, the data access platform executes protocol supplementary operation to acquire an access mode matched with the target equipment.
In the embodiment of the invention, when the data access platform is judged not to have the target protocol, the protocol supplementary operation can be triggered, and the access mode matched with the target equipment is further acquired.
For example, the data access platform establishes a connection with the cloud server, the cloud server determines whether a protocol matched with the target protocol exists in the protocols stored in the cloud, and when the determination result is yes, the cloud server may send the matched protocol to the data access platform.
Therefore, the method described in the embodiment of the present invention can provide a protocol supplementation operation method, so that the target device can perform unified data access with the data access platform in a multiple protocol supplementation manner, which is beneficial to quickly adapting to a more appropriate access manner, better completing the data access operation of the target device, and further improving the efficiency of data access and the scalability of the system.
In an optional embodiment, the data access platform performs a protocol supplementary operation to obtain an access mode matched with the target device, and the method may include the following operations:
acquiring communication equipment list information of an accessed data access platform;
judging whether target communication equipment matched with the target equipment exists in the communication equipment list information or not;
and when the target communication equipment exists in the communication equipment list information, sending a switching access instruction to the target equipment, wherein the switching access instruction is used for controlling the target communication equipment to establish access connection with the target equipment so that the data access platform acquires the data sent by the target equipment.
In the embodiment of the present invention, first, it may be determined whether a target communication device matched with the target device exists in the list through obtaining list information of all communication devices that have access to the data access platform, for example, if the data access platform is communicable with the device a, and the device a is communicable with the target device, then the device a is the target communication device matched with the target device. At this time, a data transfer access instruction is sent to the target communication device, and the target communication device is controlled to maintain establishment of an access connection with the target device, so that the data access platform obtains data sent by the target device, for example, to support the above example, the data access platform obtains access data of the target device, which is forwarded by the device a and is obtained by the device a.
Therefore, the method described in the embodiment of the present invention can search whether the target communication device matched with the target device exists by traversing the communication device list, and implement the switching of the access data of the target device by the data switching mode of the target communication device, thereby implementing the unified access of the target device, facilitating the rapid adaptation of a more appropriate access mode, facilitating the better completion of the data access operation of the target device, and further improving the efficiency of data access and the scalability of the system.
In yet another optional embodiment, after the data access platform responds to the access request to receive the target data sent by the target device, the method may further include the following operations:
decomposing and reconstructing the target data to obtain reconstructed data of the target data;
classifying the reconstruction data according to preset class information to obtain a classification result corresponding to the reconstruction data;
and sending the reconstruction data to a processing module corresponding to the category information according to the classification result so as to execute corresponding processing operation on the reconstruction data.
In the embodiment of the invention, after the target data of the target device is acquired, the target data can be decomposed and reconstructed, then the reconstruction information is classified through the preset class information, and the classification results obtained after classification are respectively sent to the processing modules corresponding to the classification results so as to execute corresponding processing operation on the reconstruction data. For example, the target data is classified according to the image, audio and video types and is respectively sent to the image processing module and the audio processing module, and the video processing module processes the target data so as to realize classified system access.
Therefore, the method described in the embodiment of the present invention can analyze and classify the target data, and then send the target data to the corresponding processing modules according to the classification type, so as to implement classified system access, facilitate quick adaptation of a more appropriate access method, facilitate better completion of data access operation of the target device, and further improve the efficiency of data access and the scalability of the system.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic structural diagram of a device for unified data access according to an embodiment of the present invention. The apparatus described in fig. 3 may be an independent apparatus, or may be integrated in a processing device for unified data access, which is not limited in the embodiment of the present invention. It should be noted that, the apparatus for unified data access refers to the steps in the method for unified data access described in the first embodiment and the second embodiment, and detailed description is not repeated in this embodiment, as shown in fig. 3, the apparatus for unified data access may include:
a first determining module 301, configured to determine whether an access request sent by a target device is received, where the target device has established a physical link with a data access platform;
a second determining module 302, configured to determine whether a target protocol matched with a target device is prestored when it is determined that an access request sent by the target device is received;
the access module 303 is configured to respond to the access request to receive the target data sent by the target device when it is determined that the target protocol matched with the target device is prestored.
The device described in the embodiment of the invention can uniformly access different target devices, acquires a protocol result by combining a target protocol matched between the data platform and the target devices, completes data docking between the data access platform and the target devices, is favorable for solving the problems of high data docking difficulty and complicated steps caused by numerous and difficult adaptation protocols of the target devices, improves the possibility of successfully completing data access for data docking before different target devices and the data access platform, and further improves the efficiency of data access and the expandability of the system.
In an alternative embodiment, as shown in fig. 4, the second determining module 302 is specifically configured to:
judging whether a target protocol completely consistent with a communication protocol of target equipment exists in a pre-stored protocol list; if so, determining that a target protocol matched with the target equipment is prestored in the data access platform; and/or the presence of a gas in the gas,
judging whether a compatible protocol compatible with the communication protocol of the target equipment exists in a prestored protocol list; and when the judgment result is yes, determining that the data access platform prestores a target protocol matched with the target equipment.
Therefore, the device described in the embodiment of the present invention can determine whether the data access platform has the target protocol through multiple determination methods, which is beneficial to improving the universality and the applicability of the scheme, improving the selectivity of the protocol and the convenience of the scheme, better completing the data access operation of the target device, and further improving the efficiency of the data access and the expandability of the system.
In another alternative embodiment, as shown in fig. 4, the apparatus may further include:
and the protocol supplementing module 304 is configured to, when it is determined that the target protocol matched with the target device does not exist, execute a protocol supplementing operation to obtain an access mode matched with the target device.
The device described in the embodiment of the present invention can provide a protocol supplementation operation method, so that the target device can perform unified data access with the data access platform in a multiple protocol supplementation manner, which is beneficial to quickly adapting to a more appropriate access manner, better completing the data access operation of the target device, and further improving the efficiency of data access and the scalability of the system.
In this alternative embodiment, as shown in fig. 4, the protocol supplementation module 304 performs the protocol supplementation operation to obtain the access mode matched with the target device in a specific manner:
acquiring communication equipment list information of an accessed data access platform;
judging whether target communication equipment matched with the target equipment exists in the communication equipment list information or not;
and when the target communication equipment exists in the communication equipment list information, sending a switching access instruction to the target equipment, wherein the switching access instruction is used for controlling the target communication equipment to establish access connection with the target equipment so that the data access platform acquires the data sent by the target equipment.
Therefore, the device described in the embodiment of the present invention can search whether a target communication device matching the target device exists by traversing the communication device list, and implement the switching of the access data of the target device by means of the data switching of the target communication device, thereby implementing the unified access of the target device, facilitating the rapid adaptation of a more appropriate access mode, facilitating the better completion of the data access operation of the target device, and further improving the efficiency of data access and the scalability of the system.
In yet another alternative embodiment, as shown in fig. 4, the apparatus may further include:
a monitoring module 305, configured to monitor whether a target protocol matching a target device needs to be updated;
and the updating module 306 is configured to perform an updating operation to obtain the latest version of the target protocol when the monitoring result is yes.
In this alternative embodiment, as shown in fig. 4, the update module 306 is specifically configured to:
establishing connection with a protocol cloud server;
judging whether an updated version of the target protocol exists in the protocol cloud server;
and when the updated version is judged to exist, downloading the updated version to the data access cloud platform.
Therefore, the device described in the embodiment of the present invention can continuously obtain the latest version or the more compatible version of the target protocol by updating the protocol library, so as to more specifically improve the performance of the protocol in the protocol library, facilitate faster adaptation of the protocol of the appropriate version, facilitate better completion of the data access operation of the target device, and further improve the efficiency of the data access and the expandability of the system.
In yet another alternative embodiment, as shown in fig. 4, the apparatus may further include:
a reconstruction module 307, configured to perform decomposition and reconstruction on the target data to obtain reconstructed data of the target data; classifying the reconstruction data according to preset class information to obtain a classification result corresponding to the reconstruction data; and sending the reconstruction data to a processing module corresponding to the category information according to the classification result so as to execute corresponding processing operation on the reconstruction data.
Therefore, the device described in the embodiment of the invention can analyze and classify the target data, and then respectively send the target data to the corresponding processing modules according to the classification type, so as to realize classified system access, facilitate quick adaptation of a more appropriate access mode, facilitate better completion of data access operation of the target device, and further improve the efficiency of data access and the expandability of the system.
Example four
Referring to fig. 5, fig. 5 is a schematic structural diagram of another apparatus for unified data access according to an embodiment of the present invention. The apparatus described in fig. 5 may be an independent apparatus, or may be integrated in a processing device for unified data access, which is not limited in the embodiment of the present invention. As shown in fig. 5, the apparatus for unified data access may include:
a memory 401 storing executable program code;
a processor 402 coupled with the memory 401;
the processor 402 calls the executable program code stored in the memory 401 to execute part or all of the steps of the method for unified data access disclosed in the first embodiment or the second embodiment of the present invention.
EXAMPLE five
The embodiment of the invention discloses a computer storage medium, which stores computer instructions, and the computer instructions are used for executing the steps of the method for uniformly accessing data disclosed in the first embodiment or the second embodiment of the invention when being called.
The above-described embodiments of the apparatus are merely illustrative, and the modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above detailed description of the embodiments, those skilled in the art will clearly understand that the embodiments may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. Based on such understanding, the above technical solutions may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, where the storage medium includes a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc-Read-Only Memory (CD-ROM), or other disk memories, CD-ROMs, or other magnetic disks, A tape memory, or any other medium readable by a computer that can be used to carry or store data.
It should be noted that computer program code required for the operation of various portions of this specification can be written in any one or more programming languages, including an object oriented programming language such as Java, Scala, Smalltalk, Eiffel, JADE, Emerald, C + +, C #, VB.NET, Python, and the like, a conventional programming language such as C, Visual Basic, Fortran2003, Perl, COBOL 2002, PHP, ABAP, a dynamic programming language such as Python, Ruby, and Groovy, or other programming languages. The program code may run entirely on a computer (PC, embedded smart device, etc.), as a stand-alone software package on the user's computer, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any form of network, such as a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet), or in a cloud computing environment, or as a service using, for example, software as a service (SaaS).
Finally, it should be noted that: the method and apparatus for unified data access disclosed in the embodiments of the present invention are only disclosed as preferred embodiments of the present invention, and are only used for illustrating the technical solutions of the present invention, not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art; the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for unified data access is applied to a data access platform, and the method comprises the following steps:
the data access platform judges whether an access request sent by target equipment is received or not, and the target equipment establishes a physical link with the data access platform;
when the data access platform judges that an access request sent by target equipment is received, the data access platform judges whether a target protocol matched with the target equipment is prestored;
and when the data access platform judges that the target protocol matched with the target equipment is prestored in the data access platform, the data access platform responds to the access request to receive the target data sent by the target equipment.
2. The method of claim 1, wherein the step of determining whether a target protocol matching the target device is pre-stored by the data access platform comprises:
the data access platform judges whether a target protocol completely consistent with the communication protocol of the target equipment exists in a pre-stored protocol list or not; if so, determining that the target protocol matched with the target equipment is prestored in the data access platform; and/or the presence of a gas in the gas,
the data access platform judges whether a compatible protocol compatible with the communication protocol of the target equipment exists in a prestored protocol list; and when the judgment result is yes, determining that the target protocol matched with the target equipment is prestored in the data access platform.
3. The method for unified data access according to claim 1 or 2, wherein the method further comprises:
and when the data access platform is judged not to store the target protocol matched with the target equipment, the data access platform executes protocol supplementary operation to acquire an access mode matched with the target equipment.
4. The method for unified data access according to claim 3, wherein the data access platform performs protocol supplementary operation to obtain the access mode matching with the target device, and the method comprises:
acquiring the list information of the communication equipment accessed to the data access platform;
judging whether target communication equipment matched with the target equipment exists in the communication equipment list information or not;
and when the target communication equipment is judged to exist in the communication equipment list information, sending a switching access instruction to the target communication equipment, wherein the switching access instruction is used for controlling the target communication equipment to establish access connection with the target equipment so that the data access platform acquires the data sent by the target equipment.
5. The method for unified data access according to claim 4, wherein the method further comprises:
the data access platform monitors whether the target protocol matched with the target equipment needs to be updated or not;
and when the monitoring result is yes, performing updating operation to obtain the latest version of the target protocol.
6. The method for unified access to data according to claim 4 or 5, wherein the performing an update operation to obtain the latest version of the target protocol comprises:
the data access platform establishes connection with a protocol cloud server;
judging whether an updated version of the target protocol exists in the protocol cloud server;
and when the updated version is judged to exist, downloading the updated version to the data access cloud platform.
7. The method for unified data access according to claim 6, wherein after the data access platform responds to the access request to receive the target data sent by the target device, the method further comprises:
decomposing and reconstructing the target data to obtain reconstructed data of the target data;
classifying the reconstruction data according to preset class information to obtain a classification result corresponding to the reconstruction data;
and sending the reconstruction data to a processing module corresponding to the category information according to the classification result so as to execute corresponding processing operation on the reconstruction data.
8. An apparatus for unified data access, the apparatus being applied to a data access platform, the apparatus comprising:
the first judgment module is used for judging whether an access request sent by target equipment is received, and the target equipment establishes a physical link with the data access platform;
the second judgment module is used for judging whether a target protocol matched with the target equipment is prestored when judging that the access request sent by the target equipment is received;
and the access module is used for responding to the access request to receive the target data sent by the target equipment when the target protocol matched with the target equipment is judged to be prestored.
9. An apparatus for unified access to data, the apparatus comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the method for unified data access according to any of claims 1-7.
10. A computer storage medium storing computer instructions which, when invoked, perform a method for unified access to data according to any of claims 1-7.
CN202210458279.2A 2022-04-28 2022-04-28 Method and device for unified data access Pending CN114745437A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210458279.2A CN114745437A (en) 2022-04-28 2022-04-28 Method and device for unified data access

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210458279.2A CN114745437A (en) 2022-04-28 2022-04-28 Method and device for unified data access

Publications (1)

Publication Number Publication Date
CN114745437A true CN114745437A (en) 2022-07-12

Family

ID=82284706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210458279.2A Pending CN114745437A (en) 2022-04-28 2022-04-28 Method and device for unified data access

Country Status (1)

Country Link
CN (1) CN114745437A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116095198A (en) * 2023-01-04 2023-05-09 上海邺洋生物技术应用有限公司 Intelligent construction method and system for laboratory data center

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110138755A (en) * 2019-04-30 2019-08-16 广东侍卫长北斗科技股份公司 A kind of gateway communication interactive service method of multi-protocols Beidou data acquisition
CN113472827A (en) * 2020-03-30 2021-10-01 杭州海康威视数字技术股份有限公司 Data transmission method, data transmission device and data transmission system
CN113938535A (en) * 2021-10-11 2022-01-14 广东省电信规划设计院有限公司 Internet of things equipment access method and device based on multi-protocol adaptation
CN114125055A (en) * 2021-11-30 2022-03-01 神州数码系统集成服务有限公司 Multi-protocol automatic adaptation cloud native gateway system control method, system, equipment and application
CN114244883A (en) * 2021-12-22 2022-03-25 佳讯飞鸿(北京)智能科技研究院有限公司 Internet of things equipment access method and device, electronic equipment and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110138755A (en) * 2019-04-30 2019-08-16 广东侍卫长北斗科技股份公司 A kind of gateway communication interactive service method of multi-protocols Beidou data acquisition
CN113472827A (en) * 2020-03-30 2021-10-01 杭州海康威视数字技术股份有限公司 Data transmission method, data transmission device and data transmission system
CN113938535A (en) * 2021-10-11 2022-01-14 广东省电信规划设计院有限公司 Internet of things equipment access method and device based on multi-protocol adaptation
CN114125055A (en) * 2021-11-30 2022-03-01 神州数码系统集成服务有限公司 Multi-protocol automatic adaptation cloud native gateway system control method, system, equipment and application
CN114244883A (en) * 2021-12-22 2022-03-25 佳讯飞鸿(北京)智能科技研究院有限公司 Internet of things equipment access method and device, electronic equipment and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116095198A (en) * 2023-01-04 2023-05-09 上海邺洋生物技术应用有限公司 Intelligent construction method and system for laboratory data center
CN116095198B (en) * 2023-01-04 2024-01-30 上海邺洋生物技术应用有限公司 Intelligent construction method and system for laboratory data center

Similar Documents

Publication Publication Date Title
US20190156246A1 (en) Generating and deploying packages for machine learning at edge devices
CN110069572B (en) HIVE task scheduling method, device, equipment and storage medium based on big data platform
US9256414B2 (en) Method, device and system for running application
WO2017166446A1 (en) Vulnerability-fixing method and device
CN113938535B (en) Internet of things equipment access method and device based on multi-protocol adaptation
CN108241496B (en) Smooth upgrading method and device for application program
CN109951354B (en) Terminal equipment identification method, system and storage medium
CN113168332B (en) Data processing method and device and mobile terminal
CN112988485A (en) Simulation test method and device for power Internet of things equipment
CN110647415A (en) Database detection method, device and equipment and computer readable storage medium
CN114745437A (en) Method and device for unified data access
CN107347093B (en) Configuration method and device for distributed server system
CN111432033A (en) Application program downloading method, device and system, IOS equipment and medium
CN110750365A (en) Remote procedure calling method, system, terminal and storage medium
CN109218338B (en) Information processing system, method and device
CN111506393B (en) ARM-based virtualization device and use method thereof
CN111556127B (en) Wearable device upgrading method and related device
CN111240952A (en) Log collection method and device
US8615751B2 (en) Seeding product information
CN114327548A (en) Software upgrading method and related device
CN115437660A (en) Firmware updating method and device, electronic equipment and storage medium
CN113590179A (en) Plug-in detection method and device, electronic equipment and storage medium
CN110825406A (en) Software upgrading method and related equipment
CN111752595A (en) File packaging method, device, equipment and storage medium
CN113722621B (en) URL-based service processing method, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination