CN112788105A - Method, device and equipment for synchronizing time sequence messages and storage medium - Google Patents

Method, device and equipment for synchronizing time sequence messages and storage medium Download PDF

Info

Publication number
CN112788105A
CN112788105A CN202011566113.XA CN202011566113A CN112788105A CN 112788105 A CN112788105 A CN 112788105A CN 202011566113 A CN202011566113 A CN 202011566113A CN 112788105 A CN112788105 A CN 112788105A
Authority
CN
China
Prior art keywords
message
timing
time sequence
format
certificate
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
CN202011566113.XA
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202011566113.XA priority Critical patent/CN112788105A/en
Publication of CN112788105A publication Critical patent/CN112788105A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1061Peer-to-peer [P2P] networks using node-based peer discovery mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • H04L9/3249Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures using RSA or related signature schemes, e.g. Rabin scheme

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a synchronization method, a synchronization device and a storage medium of a time sequence message, and relates to the field of cloud computing such as edge computing and cloud service. One specific embodiment of the method for synchronizing the timing messages includes: converting the original time sequence message collected from the equipment into a first format time sequence message corresponding to a preset Internet of things message protocol; converting the first format timing message into a second format timing message adapted to be stored in a timing database; establishing connection with a time sequence database according to configuration information of the time sequence database provided by a user; and the second format time sequence message is synchronized to the time sequence database, so that the edge time sequence message is directly synchronized to the time sequence database, and cloud resources are saved.

Description

Method, device and equipment for synchronizing time sequence messages and storage medium
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to the field of cloud computing such as edge computing and cloud service, and in particular, to a method, an apparatus, a device, and a storage medium for synchronizing a timing message.
Background
Edge computing refers to an open platform integrating network, computing, storage and application core capabilities at one side close to an object or a data source to provide nearest-end services nearby.
At present, if a timing sequence message of an edge side needs to be synchronized to a timing sequence database in an edge computing scene, the timing sequence message of the edge side needs to be uploaded to a cloud terminal from a local terminal through a cloud terminal channel, and then the cloud terminal is synchronized to the timing sequence database through a rule engine for storage.
Disclosure of Invention
The disclosure provides a synchronization method, apparatus, device and storage medium for timing messages.
In a first aspect, the present disclosure provides a method for synchronizing timing messages, including: converting the original time sequence message collected from the equipment into a first format time sequence message corresponding to a preset Internet of things message protocol; converting the first format timing message into a second format timing message adapted to be stored in a timing database; establishing connection with a time sequence database according to configuration information of the time sequence database provided by a user; synchronizing the second format timing message to a timing database.
In a second aspect, the present disclosure provides a synchronization apparatus for timing messages, including: a first conversion module configured to convert the raw timing message collected from the device into a first format timing message corresponding to a preset internet of things message protocol; a second translation module configured to translate the first format timing message into a second format timing message adapted for storage in a timing database; the connection module is configured to establish connection with the time sequence database according to the configuration information of the time sequence database provided by a user; a synchronization module configured to synchronize the second format timing message to a timing database.
In a third aspect, the present disclosure provides an electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method as described in any one of the implementations of the first aspect.
In a fourth aspect, the present disclosure proposes a non-transitory computer-readable storage medium having stored thereon computer instructions for causing a computer to perform the method as described in any one of the implementations of the first aspect.
In a fifth aspect, the present disclosure proposes a computer program product comprising a computer program which, when executed by a processor, performs the method as described in any of the implementations of the first aspect.
According to the synchronization method, the synchronization device, the synchronization equipment and the storage medium of the time sequence message, firstly, an original time sequence message collected from the equipment is converted into a first format time sequence message corresponding to a preset Internet of things message protocol; then converting the first format timing message into a second format timing message adapted to be stored in a timing database; then establishing connection with the time sequence database according to configuration information of the time sequence database provided by a user; and finally, synchronizing the second format time sequence message to the time sequence database, so that the edge time sequence message is directly synchronized to the time sequence database, and cloud resources are saved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings. The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram illustrating one embodiment of a method for synchronizing timing messages according to the present application;
FIG. 3 is a schematic flow chart diagram illustrating another embodiment of a method for synchronizing timing messages according to the present application;
FIG. 4 is a schematic diagram illustrating an application scenario of an embodiment of a synchronization method for timing messages according to the present application;
FIG. 5 is a schematic diagram illustrating an embodiment of a synchronization apparatus for timing messages according to the present application;
fig. 6 is a block diagram of an electronic device for implementing a synchronization method of timing messages according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary system architecture 100 of an embodiment of a synchronization method of timing messages or a synchronization apparatus of timing messages to which the present application may be applied.
As shown in fig. 1, system architecture 100 may include device 101, network 102, server 103. Network 102 is the medium used to provide communication links between devices 101 and server 103. Network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
Device 101 may interact with server 103 through network 102. Various timing messages may be provided in the device 101, including but not limited to sensors, smart devices, and the like.
The server 103 may provide various services, for example, the server 103 may analyze and process data such as a timing message acquired from the device 101, and generate a processing result (e.g., synchronize to a timing database).
The server 103 may be hardware or software. When the server 103 is hardware, it may be implemented as a distributed server cluster composed of a plurality of servers, or may be implemented as a single server. When the server 103 is software, it may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the server 103 may be any edge computing platform with converged network, computing, storage, and application core capabilities from a data source (i.e., the device 101) to a cloud computing center, and the cloud computing center may access history data of the edge computing platform.
It should be noted that the synchronization method for the timing message provided in the embodiment of the present application is generally executed by the server 103, and accordingly, the synchronization device for the timing message is generally disposed in the server 103.
It should be understood that the number of devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of devices, networks, and servers, as desired for an implementation.
With continued reference to fig. 2, a flow 200 of one embodiment of a method for synchronization of timing messages in accordance with the present application is shown. The method comprises the following steps:
step 201, converting the original time sequence message collected from the device into a first format time sequence message corresponding to a preset internet of things message protocol.
In this embodiment, an executing body (e.g., the server 103 shown in fig. 1) of the synchronization method of the timing message may convert an original timing message collected from the device into a first format timing message corresponding to a preset internet of things message protocol.
The local protocol for short-distance device connection can be used to collect the original timing message of the device, such as MODBUS protocol, OPC protocol, etc. The MODBUS protocol is a protocol set supporting various physical links, the core of the MODBUS protocol is a serial communication protocol, a master-slave mode is adopted, a master sends a request to a slave, and the slave replies. Wherein the slave may be the device 101 shown in fig. 1. The OPC protocol is a data protocol of an application layer and is used for transmitting automatically acquired equipment data to a host in a certain format.
After the original time sequence message of the equipment is collected by adopting the local protocol, the original time sequence message can be converted into the time sequence message in the first format based on a preset Internet of things message protocol. The Message Protocol of the internet of things may be an internet Protocol supporting the internet of things for global communication, such as a Message queue Telemetry Transport Protocol (MQTT), a restricted Application Protocol (COAP), an Advanced Message Queue Protocol (AMQP), and the like. The message is acquired by adopting different internet of things message protocols, and the formats of the acquired messages are different. By adopting the example of MQTT protocol, the MQTT message format is as follows: [ Fixed Header | Variable Header | Payload ]; the Fixed Header comprises a first byte, wherein the high 4 bits are used for representing the message type, and the low 4 bits are used for type control; variable Header is a Variable Header, which differs according to the type of message; payload is the content of a message, and the content and format of the Payload also differ according to the type of the message.
Step 202, the first format timing message is converted into a second format timing message adapted to be stored in a timing database.
In this embodiment, the execution body may convert the first format timing message into a second format timing message adapted to be stored in the timing database.
The Time Series Database (TSDB) is used to store Time Series (chronological) massive data, and the data in the Time Series Database may be stored in the form of data points (datapoints). Where "1 measure +1 field (optional) +1 timestamp +1 value + n tags (n > -1)" may define a data point, e.g. "temperature, 20201010121200 (timestamp), 25 ℃, { device ID ═ 3410938109; floor 13; room number 2301} ".
Wherein the first format time series messages can be converted into data points suitable for storage in a time series database, including numerical padding, time padding, and the like, based on the message content of the first format time series messages.
Step 203, establishing a connection with the time sequence database according to the configuration information of the time sequence database provided by the user.
In this embodiment, the execution subject may establish a connection with the time sequence database according to configuration information of the time sequence database provided by a user.
The configuration information may be related parameter information of the connection timing database instance, including but not limited to a domain name, a connection address, a port, an account password, and the like. The user can configure the connection address and the related parameters of the time sequence database, and the execution main body establishes the connection with the time sequence database through the client code of the integrated time sequence database. The client code has the function of submitting data, and the data is submitted to the server after being acquired by the user.
Step 204, synchronizing the second format timing message to a timing database.
In this embodiment, the execution body may synchronize the second format timing message to the timing database.
After establishing connection with the time sequence database, the time sequence message in the second format may be sent to the time sequence database by using a hypertext Transfer Protocol (HTTP). The time sequence database can be a time sequence database deployed in a cloud computing center and a time sequence database cluster.
The synchronization method of the time sequence messages provided by the embodiment of the application supports the direct synchronization of the edge time sequence messages to the time sequence database, is simple and convenient in process and simple in configuration, saves cloud resources, and reduces the difficulty of program debugging.
With further reference to fig. 3, there is shown a flow chart of another embodiment of synchronization of timing messages, the method comprising the steps of:
step 301, converting the original time sequence message collected from the device into a first format time sequence message corresponding to a preset internet of things message protocol.
Step 301 is substantially the same as step 201, and therefore will not be described again.
Step 302, converting the first format timing message into a second format timing message adapted to be stored in a timing database.
Step 302 is substantially the same as step 202, and therefore is not described in detail.
Step 303, establishing a connection with the time sequence database according to the configuration information of the time sequence database provided by the user.
Step 303 is substantially the same as step 203, and therefore is not described in detail.
Step 304, the second format timing message is encrypted using a signature algorithm.
The signature algorithm refers to an algorithm of digital signature. The Digital Signature is a message digest Algorithm with a key, the key includes a public key and a private key, and is used for verifying data integrity, authenticating data source and resisting denial, and follows an Open System Interconnection (OSI) reference model, private key Signature and public key verification, and the Digital Signature Algorithm includes an RSA Algorithm, a DSA Algorithm, an Elliptic Curve Digital Signature Algorithm (ECDSA), and the like. And the signature algorithm is adopted to encrypt the second format time sequence message, so that the safety of the synchronous time sequence message is ensured.
Step 305, sending the second format time sequence message to a time sequence database by adopting a hypertext transfer protocol.
The hypertext transfer protocol is a request-response protocol, which generally runs on top of TCP, and belongs to the prior art, and is not described in detail herein.
In some optional implementations of this embodiment, the configuration information of the time-series database in step 203 includes a client certificate of the time-series database, and before performing step 203, the method further includes: and verifying the legality of the client certificate.
The client certificate is a digital certificate complying with a network communication security protocol, and the client certificate can be used for realizing double functions of real identity authentication and data encryption transmission. Before data interaction, the execution subject may store a client certificate provided by a user. The client certificate includes an SSL certificate, an SSH certificate, a PGP certificate, and the like.
Wherein the validity of the client certificate may be verified before establishing a connection with the timing database. In which plaintext message data encrypted using a client certificate may be decrypted to verify authenticity of the identity.
In some optional implementations of this embodiment, before performing step 201, the method further includes: the original time sequence message is encrypted using a digital certificate to obtain a root certificate and the certificate used in step 201 is issued based on the root certificate.
The method for encrypting the original timing message is basically the same as that in step 304, and thus is not described in detail. The root Certificate is a Certificate issued by a Certificate Authority (CA) center to itself, and is a starting point of a communication trust chain. The CA center may issue a digital certificate for each user using the public key, the digital certificate serving to prove that the user listed in the certificate has legitimate possession of the public key listed in the certificate. Wherein, the CA center may issue a certificate used when performing step 201 to ensure security when performing step 201.
In some optional implementations of this embodiment, before performing step 202, the method further includes: based on the root certificate, a certificate is issued for use in converting the first format timing message into a second format timing message.
The root Certificate is a Certificate issued by a Certificate Authority (CA) center to itself, and is a starting point of a communication trust chain. The CA center may issue a digital certificate for each user using the public key, the digital certificate serving to prove that the user listed in the certificate has legitimate possession of the public key listed in the certificate. Wherein, the CA center may issue a certificate used when performing step 201 to ensure security when performing step 202.
For ease of understanding, fig. 4 shows an application scenario diagram of an embodiment of a synchronization method of a timing message according to the present application.
As shown in fig. 4, in order to implement the synchronization method of the time sequence message according to the present application, a local message flow module, a global certificate module, a TSDB message conversion module, and a TSDB message synchronization module may be configured. The message circulation module is an end-side message system, supports end-side message forwarding, and is connected with the data acquisition module at the edge side, and the adopted protocols include but are not limited to MODBUS and OPC protocols. The format of the message to be forwarded is not limited to MQTT and COAP protocols.
The global certificate module is used for guaranteeing the safety of message communication between the end side modules, and supporting the end side modules to issue module certificates, and the modules can be encrypted and decrypted by using the module certificates, so that the end side messages can not be stolen. And meanwhile, the client certificate of the TSDB cluster is stored and provided for the TSDB message synchronization module to use.
Wherein, the TSDB message conversion module converts the element message of the device into a TSDB time sequence message and then sends the TSDB message synchronization module. Wherein the elements include metrics, domains, timestamps, values, tags, and the like.
The TSDB message synchronization module establishes a secure connection with the TSDB cluster by using a client certificate of the TSDB cluster, and performs message synchronization in real time.
With further reference to fig. 5, as an implementation of the methods shown in the above-mentioned figures, the present application provides an embodiment of an apparatus for synchronizing timing messages, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 5, the synchronization apparatus 500 for timing messages of the present embodiment may include: a first conversion module 501, a second conversion module 502, a connection module 503, and a synchronization module 504. The first conversion module 501 is configured to convert an original time sequence message collected from a device into a first format time sequence message corresponding to a preset internet of things message protocol; a second translation module 502 configured to translate the first format timing message into a second format timing message adapted to be stored in a timing database; a connection module 503 configured to establish a connection with the time sequence database according to the configuration information of the time sequence database provided by the user; a synchronization module 504 configured to synchronize the second format timing message to a timing database.
In the present embodiment, in the synchronization apparatus 500 for timing messages: the detailed processing of the first conversion module 501, the second conversion module 502, the connection module 503, and the synchronization module 504 and the technical effects thereof can refer to the related descriptions of step 201 and step 204 in the corresponding embodiment of fig. 2, and are not described herein again.
In some optional implementations of this embodiment, the synchronization module 504 is further configured to: encrypting the second format time sequence message by using a signature algorithm; and sending the time sequence message in the second format to a time sequence database by adopting a hypertext transfer protocol.
In some optional implementations of this embodiment, the configuration information of the time-series database includes a client certificate of the time-series database, and before executing the connection module 503, the apparatus further includes: a verification module configured to verify the legitimacy of the client certificate.
In some optional implementations of this embodiment, before executing the first conversion module 501, the apparatus further includes: an encryption module configured to encrypt the original timing message using a digital certificate, resulting in a root certificate; a first certificate module configured to issue a certificate for use in converting the original timing message into a first format timing message corresponding to a preset internet of things message protocol based on the root certificate.
In some optional implementations of this embodiment, before executing the second conversion module 502, the apparatus further includes: a second certificate module configured to issue a certificate for use in converting the first format timing message into a second format timing message based on the root certificate.
In some optional implementations of this embodiment, the preset internet of things message protocol includes any one of the following: CoAP protocol, MQTT protocol, AMQP protocol.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 6 illustrates a schematic block diagram of an example electronic device 600 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 6, the apparatus 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)602 or a computer program loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The calculation unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
A number of components in the device 600 are connected to the I/O interface 605, including: an input unit 606 such as a keyboard, a mouse, or the like; an output unit 607 such as various types of displays, speakers, and the like; a storage unit 606 such as a magnetic disk, optical disk, or the like; and a communication unit 609 such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 601 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 601 performs the respective methods and processes described above, such as the synchronization method of the timing message. For example, in some embodiments, the synchronization method of timing messages may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 600 via the ROM 602 and/or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the synchronization method of timing messages described above may be performed. Alternatively, in other embodiments, the calculation unit 601 may be configured by any other suitable means (e.g. by means of firmware) to perform the synchronization method of the timing messages.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the application, firstly, a correlation pair of at least one user behavior and a preset evaluation index is constructed, wherein the correlation pair comprises: mapping pairs of quantitative change values of user behaviors before and after the product changes and quantitative change values of preset evaluation indexes; then obtaining a training sample set, wherein samples in the training sample set comprise at least one correlation pair of user behaviors and a preset evaluation index; finally, selecting a training sample corresponding to any user behavior from the sample set, and executing the following training steps: and inputting the training samples into the initial model to perform regression fitting to obtain a trained user behavior evaluation model, so that a model capable of evaluating the user behavior value can be obtained, and the value of different user behaviors in product evaluation is quantified.
Artificial intelligence is the subject of research that makes computers simulate some human mental processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), both at the hardware level and at the software level. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing, and the like; the artificial intelligence software technology mainly comprises a computer vision technology, a voice recognition technology, a natural language processing technology, machine learning/deep learning, a big data processing technology, a knowledge map technology and the like.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (15)

1. A method of synchronizing timing messages, comprising:
converting the original time sequence message collected from the equipment into a first format time sequence message corresponding to a preset Internet of things message protocol;
converting the first format timing message into a second format timing message adapted to be stored in a timing database;
establishing connection with a time sequence database according to configuration information of the time sequence database provided by a user;
synchronizing the second format timing message to the timing database.
2. The method of claim 1, wherein the synchronizing a second format timing message to the timing database comprises:
encrypting the second format timing message using a signature algorithm;
and sending the time sequence message in the second format to the time sequence database by adopting a hypertext transfer protocol.
3. The method of claim 1, wherein the configuration information of the time series database comprises a client certificate of the time series database, and before the establishing of the connection with the time series database according to the configuration information of the time series database provided by the user, the method further comprises:
and verifying the legality of the client certificate.
4. The method of claim 1, prior to said translating raw timing messages collected from a device into first format timing messages corresponding to a preset internet of things message protocol, further comprising:
encrypting the original time sequence message by using a digital certificate to obtain a root certificate;
and issuing a certificate used when the original time sequence message is converted into a first format time sequence message corresponding to a preset Internet of things message protocol based on the root certificate.
5. The method of claim 4, prior to said translating said first format timing message into a second format timing message adapted for storage in a timing database, further comprising:
issuing, based on the root certificate, a certificate for use in converting the first format timing message into a second format timing message.
6. The method of claim 1, wherein the pre-set internet of things message protocol comprises any one of:
CoAP protocol, MQTT protocol, AMQP protocol.
7. An apparatus for synchronizing timing messages, the apparatus comprising:
a first conversion module configured to convert the raw timing message collected from the device into a first format timing message corresponding to a preset internet of things message protocol;
a second translation module configured to translate the first format timing message into a second format timing message adapted for storage in a timing database;
the connection module is configured to establish connection with the time sequence database according to configuration information of the time sequence database provided by a user;
a synchronization module configured to synchronize the second format timing message to the timing database.
8. The apparatus of claim 7, wherein the synchronization module is further configured to:
encrypting the second format timing message using a signature algorithm;
and sending the time sequence message in the second format to the time sequence database by adopting a hypertext transfer protocol.
9. The apparatus of claim 7, wherein the configuration information of the time series database comprises a client certificate of the time series database, the apparatus further comprising, prior to executing the connection module:
a verification module configured to verify the legitimacy of the client certificate.
10. The apparatus of claim 7, wherein prior to executing the first conversion module, the apparatus further comprises:
an encryption module configured to encrypt the original timing message using a digital certificate, resulting in a root certificate;
a first certificate module configured to issue a certificate for use in converting an original timing message into a first format timing message corresponding to a preset Internet of things message protocol based on the root certificate.
11. The apparatus of claim 10, wherein prior to executing the second conversion module, the apparatus further comprises:
a second certificate module configured to issue a certificate for use in converting the first format timing message into a second format timing message based on the root certificate.
12. The apparatus of claim 7, wherein the pre-set internet of things message protocol comprises any of:
CoAP protocol, MQTT protocol, AMQP protocol.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
14. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-6.
15. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-6.
CN202011566113.XA 2020-12-25 2020-12-25 Method, device and equipment for synchronizing time sequence messages and storage medium Pending CN112788105A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011566113.XA CN112788105A (en) 2020-12-25 2020-12-25 Method, device and equipment for synchronizing time sequence messages and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011566113.XA CN112788105A (en) 2020-12-25 2020-12-25 Method, device and equipment for synchronizing time sequence messages and storage medium

Publications (1)

Publication Number Publication Date
CN112788105A true CN112788105A (en) 2021-05-11

Family

ID=75752633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011566113.XA Pending CN112788105A (en) 2020-12-25 2020-12-25 Method, device and equipment for synchronizing time sequence messages and storage medium

Country Status (1)

Country Link
CN (1) CN112788105A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107958035A (en) * 2017-11-20 2018-04-24 北京百度网讯科技有限公司 Method and apparatus for sending information
CN110109996A (en) * 2019-05-15 2019-08-09 浪潮通用软件有限公司 A kind of industry internet equipment real-time data acquisition and storage method and system
CN110995869A (en) * 2019-12-23 2020-04-10 杭州雷数科技有限公司 Machine data collection method, device, equipment and medium
CN111124796A (en) * 2018-10-30 2020-05-08 发那科株式会社 Data generation device, debugging device, data generation method, and data generation program
CN111787066A (en) * 2020-06-06 2020-10-16 王科特 Internet of things data platform based on big data and AI

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107958035A (en) * 2017-11-20 2018-04-24 北京百度网讯科技有限公司 Method and apparatus for sending information
CN111124796A (en) * 2018-10-30 2020-05-08 发那科株式会社 Data generation device, debugging device, data generation method, and data generation program
CN110109996A (en) * 2019-05-15 2019-08-09 浪潮通用软件有限公司 A kind of industry internet equipment real-time data acquisition and storage method and system
CN110995869A (en) * 2019-12-23 2020-04-10 杭州雷数科技有限公司 Machine data collection method, device, equipment and medium
CN111787066A (en) * 2020-06-06 2020-10-16 王科特 Internet of things data platform based on big data and AI

Similar Documents

Publication Publication Date Title
US10608827B1 (en) Systems and methods for computer digital certificate management and analysis
US20240205216A1 (en) Cluster access method, electronic device and medium
WO2014055381A1 (en) System and methods for authentication between networked devices
EP3544226B1 (en) Unified secure device provisioning
CN110912877B (en) Data transmitting and receiving method and device based on IEC61850 model in transformer substation
CN109644126A (en) Technology for the multiple equipment certification in heterogeneous network
CN115203977B (en) Power grid simulation system
CN114491656A (en) Method and apparatus in a blockchain network
EP3364594B1 (en) Using a single certificate request to generate credentials with multiple ecqv certificates
CN112910903B (en) SSL certificate deployment-free method, device and system
CN115115360A (en) Cross-chain resource transfer method, device, medium and electronic equipment
WO2014120183A1 (en) Synchronization of security-related data
CN105049206A (en) Method employing SM2 elliptical curve algorithm to achieve encryption in OpenSSL
JP5614465B2 (en) Encryption communication device, proxy server, encryption communication device program, and proxy server program
CN115361455B (en) Data transmission storage method and device and computer equipment
CN117040750A (en) Certificate request file generation method and device, electronic equipment and storage medium
CN114363094B (en) Data sharing method, device, equipment and storage medium
CN114785583B (en) Encryption sending and checking method, device, equipment and medium of interface request
CN112788105A (en) Method, device and equipment for synchronizing time sequence messages and storage medium
CN114553548A (en) Communication method, device, equipment and storage medium
CN110071793B (en) Random number generation method and system based on BMC
CN117062079B (en) Digital certificate issuing method, device and storage medium
CN114282237B (en) Communication method, device, equipment and storage medium
US9043592B1 (en) Communicating trust models to relying parties
CN116318727B (en) ECU access method, device, 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210511

RJ01 Rejection of invention patent application after publication