CN109922089A - A kind of method for converting protocol and system based on SDK packet - Google Patents

A kind of method for converting protocol and system based on SDK packet Download PDF

Info

Publication number
CN109922089A
CN109922089A CN201910351052.6A CN201910351052A CN109922089A CN 109922089 A CN109922089 A CN 109922089A CN 201910351052 A CN201910351052 A CN 201910351052A CN 109922089 A CN109922089 A CN 109922089A
Authority
CN
China
Prior art keywords
power equipment
preset
sdk
code key
operation platform
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
CN201910351052.6A
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.)
Guangdong Power Grid Co Ltd
Information Center of Guangdong Power Grid Co Ltd
Original Assignee
Guangdong Power Grid Co Ltd
Information Center of Guangdong 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 Guangdong Power Grid Co Ltd, Information Center of Guangdong Power Grid Co Ltd filed Critical Guangdong Power Grid Co Ltd
Priority to CN201910351052.6A priority Critical patent/CN109922089A/en
Publication of CN109922089A publication Critical patent/CN109922089A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of method for converting protocol and system based on SDK packet, this method encrypts target data to obtain encryption data by preset SDK packet, and it by encryption data and is used to identify the preset numbers of power equipment and is sent to mobile operation platform, and then mobile operation platform inquires corresponding decryption code key and preset SDK decoding tool according to preset numbers, and the encryption data is decrypted according to the decryption code key and SDK decoding tool that inquire.This method realizes protocol conversion by way of encapsulating SDK packet, it can quickly and easily realize the conversion of power equipment agreement Yu power grid specific protocol, implementation is simple, when the communications protocol of power equipment changes, it can also easily realize the conversion of agreement, simplify the conversion and systems connection process of different protocols in electric system, it networks so that can be exchanged into electric power standard agreement using the power equipment of different protocols with mobile operation platform, substantially increases the O&M efficiency of power supply system.

Description

A kind of method for converting protocol and system based on SDK packet
Technical field
This application involves power system power supplies, the technical field more particularly to a kind of protocol conversion based on SDK packet of maintenance Method and system.
Background technique
With the development of power technology, power equipment, system, product such as communication protocol, application programming interfaces, data description Deng being also continuously increased, since the unified standard and specification of electric power communication network and system are still in establishing and improving, each factory The network communication protocol that family uses is incompatible.In current electric substation automation system, even identical data, even It is identical function, uses in different applications, due to incompatible between each equipment, must be just set by manually re-starting It sets, process is not only cumbersome but also easy error, so that the power equipment and mobile operation platform networking using different protocols are difficult.If These identical data or function can be reused, existing workload will be efficiently reduced, therefore, how quickly and efficiently will The protocol conversion of the power equipment of different vendor's production is to adapt to power grid specific protocol, it has also become those skilled in the art's is main Research topic.
Summary of the invention
The technical problem to be solved in the present invention is that in view of the deficiencies of the prior art, providing a kind of agreement based on SDK packet Conversion method and system lead to each power equipment and move to solve each power equipment communications protocol independence disunity, poor compatibility The technical problem that communication efficiency between dynamic operation platform is low, protocol conversion is difficult.
To achieve the above object, the present invention provides technical solution below:
A kind of method for converting protocol based on SDK packet, comprising:
Response data request, power equipment encrypt target data by preset SDK packet, obtain encryption data;
Power equipment is by encryption data and is used to identify the preset numbers of power equipment and is sent to mobile operation platform;
Mobile operation platform inquires corresponding decryption code key and preset SDK decoding tool according to preset numbers;
Mobile operation platform is decrypted the encryption data according to the decryption code key and SDK decoding tool that inquire.
It is optionally, described that " response data request, power equipment encrypt target data by preset SDK packet, obtain To encryption data ", it specifically includes:
Response data request, power equipment is according to target data generation for identifying preset numbers, the encryption of power equipment Code key, decryption code key;
Preset numbers, decryption code key are sent to mobile operation platform by power equipment;
Power equipment is encrypted by preset SDK packet according to encryption secret key pair target data, and encryption data is obtained.
Optionally, described " operation platform moved according to preset numbers and inquires corresponding decryption code key and preset SDK solution Before close tool ", further includes:
Mobile operation platform verifies the preset numbers received;If authentication failed, returns to verification result and record This verification information.
Optionally, the encryption code key and the decryption mutually symmetrical code key of code key or asymmetric code key.
Optionally, the preset numbers encoded including at least user's registration and for identity user title serial number.
Correspondingly, the present invention also provides a kind of protocol conversion system based on SDK packet, including several power equipments with And mobile operation platform;
The power equipment includes:
Encrypting module, the encrypting module are requested for response data, and are carried out by preset SDK packet to target data Encryption, obtains encryption data;
Sending module, the sending module are used for encryption data and are used to identify the preset numbers of power equipment and are sent to Mobile operation platform;
Moving operation platform includes:
Enquiry module, the enquiry module is used to inquire corresponding decryption code key according to preset numbers and preset SDK is solved Close tool;
Deciphering module, the deciphering module are used for according to the decryption code key and SDK decoding tool inquired to the encryption Data are decrypted.
Optionally, the power equipment further include:
Generation module, the generation module be used for according to target data generate for identify power equipment preset numbers, Encrypt code key, decryption code key.
Optionally, the mobile operation platform further include:
Authentication module, the authentication module is for verifying the preset numbers received;If authentication failed, return is tested Card result simultaneously records this verification information.
Compared with prior art, the invention has the following advantages:
The present invention provides a kind of method for converting protocol and system based on SDK packet, this method pass through preset SDK packet pair Target data is encrypted to obtain encryption data, and by encryption data and is used to identify the preset numbers of power equipment and is sent to shifting Dynamic operation platform, and then mobile operation platform inquires corresponding decryption code key and preset SDK decoding tool according to preset numbers, And the encryption data is decrypted according to the decryption code key and SDK decoding tool that inquire.This method passes through encapsulation SDK packet Mode realize protocol conversion, can quickly and easily realize the conversion of power equipment agreement Yu power grid specific protocol, implementation Simply, it when the communications protocol of power equipment changes, can also easily realize the conversion of agreement, simplify in electric system The conversion and systems connection process of different protocols so that using the power equipment of different protocols can be exchanged into electric power standard agreement with Mobile operation platform is networked, and the O&M efficiency of power supply system is substantially increased.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art To obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow chart of the method for converting protocol based on SDK packet provided in this embodiment;
Fig. 2 is a kind of specific flow chart of the method for converting protocol based on SDK packet provided in this embodiment;
Fig. 3 is a kind of structural schematic diagram of protocol conversion system based on SDK packet.
Specific embodiment
To enable the purpose of the present invention, feature, advantage more obvious and understandable, implement below in conjunction with the present invention Attached drawing in example, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that reality disclosed below Applying example is only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field is common Technical staff's all other embodiment obtained without making creative work belongs to the model that the present invention protects It encloses.
In the description of the present invention, it is to be understood that, when a component is considered as " connection " another component, it can To be directly to another component or may be simultaneously present the component being centrally located.When a component is considered as " setting Set " another component, it, which can be, is set up directly on another component or may be simultaneously present the component being centrally located.
In addition, the indicating positions such as term " length " " short " "inner" "outside" or positional relationship for the orientation that is shown based on attached drawing or Person's positional relationship is merely for convenience of the description present invention, rather than the device or original part of indication or suggestion meaning must have this Specific orientation is operated with specific orientation construction, should not be understood as limitation of the invention with this.
To further illustrate the technical scheme of the present invention below with reference to the accompanying drawings and specific embodiments.
Embodiment one
A kind of method for converting protocol based on SDK packet is present embodiments provided, referring to Fig. 1, this is illustrated as the present embodiment A kind of flow chart of method for converting protocol based on SDK packet of offer, method includes the following steps:
S10: response data request, power equipment encrypt target data by preset SDK packet, obtain encryption number According to;Specifically, the preset numbers encoded including at least user's registration and for identity user title serial number;
It should be noted that SDK packet (Software Development Kit, Software Development Kit) is some soft Part Utility Engineers are in the developing instrument for creating application software for specific software package, software frame, hardware platform, operating system etc. Set;It simply can provide some files of application programming interfaces API for some programming language, it is also possible to packet Include the complicated hardware that can be communicated with certain embedded system;General tool includes for debugging and the practical work of other purposes Tool;SDK also often includes code sample, supportive technical notes or other branch that doubtful point is clarified for basic reference Hold document;It is preset with SDK packet in power equipment, data supporting can be provided for subsequent step, improves communication efficiency;
S20: power equipment is by encryption data and is used to identify the preset numbers of power equipment and is sent to mobile operation platform; Specifically, power equipment can be attached by way of cable or network connection with mobile operation platform;
S30: mobile operation platform inquires corresponding decryption code key and preset SDK decoding tool according to preset numbers;
S40: mobile operation platform solves the encryption data according to the decryption code key and SDK decoding tool that inquire It is close;Specifically, mobile operation platform is equipped with a variety of SDK decoding tools accordingly, what can be sent to various power equipments adds Ciphertext data is decrypted;
As it can be seen that present embodiments providing a kind of method for converting protocol based on SDK packet, this method passes through preset SDK packet It is encrypted to obtain encryption data to target data, and by encryption data and is used to identify the preset numbers of power equipment and is sent to Mobile operation platform, and then mobile operation platform inquires corresponding decryption code key according to preset numbers and preset SDK decrypts work Tool, and the encryption data is decrypted according to the decryption code key and SDK decoding tool that inquire.This method passes through encapsulation The mode of SDK packet realizes protocol conversion, can quickly and easily realize the conversion of power equipment agreement Yu power grid specific protocol, real Existing mode is simple, when the communications protocol of power equipment changes, can also easily realize the conversion of agreement, simplify electric power The conversion of different protocols and systems connection process in system, so that the power equipment using different protocols can be exchanged into electric power standard Agreement is networked with mobile operation platform, substantially increases the O&M efficiency of power supply system.
Embodiment two
Referring to Fig. 2, this is illustrated as a kind of detailed process of method for converting protocol based on SDK packet provided in this embodiment Figure, method includes the following steps:
S101: response data request, power equipment according to target data generate for identify power equipment preset numbers, Encrypt code key, decryption code key;Specifically, the preset numbers encode and are used for identity user title including at least user's registration Serial number, the encryption code key and the decryption mutually symmetrical code key of code key or asymmetric code key;
S102: preset numbers, decryption code key are sent to mobile operation platform by power equipment;
S103: power equipment is encrypted by preset SDK packet according to encryption secret key pair target data, and encryption number is obtained According to;
It should be noted that SDK packet (Software Development Kit, Software Development Kit) is some soft Part Utility Engineers are in the developing instrument for creating application software for specific software package, software frame, hardware platform, operating system etc. Set;It simply can provide some files of application programming interfaces API for some programming language, it is also possible to packet Include the complicated hardware that can be communicated with certain embedded system;General tool includes for debugging and the practical work of other purposes Tool;SDK also often includes code sample, supportive technical notes or other branch that doubtful point is clarified for basic reference Hold document;It is preset with SDK packet in power equipment, data supporting can be provided for subsequent step, improves communication efficiency;
S20: power equipment is by encryption data and is used to identify the preset numbers of power equipment and is sent to mobile operation platform; Specifically, power equipment can be attached by way of cable or network connection with mobile operation platform;
S301: mobile operation platform verifies the preset numbers received;If authentication failed, verification result is returned to simultaneously Record this verification information;
Specifically, can effectively reduce error rate into verifying to the preset numbers received before inquiry, avoid subsequent step A series of problems caused by due to preset numbers error, and then improve operation efficiency;
S302: mobile operation platform inquires corresponding decryption code key and preset SDK decoding tool according to preset numbers;
S40: mobile operation platform solves the encryption data according to the decryption code key and SDK decoding tool that inquire It is close;Specifically, mobile operation platform is equipped with a variety of SDK decoding tools accordingly, what can be sent to various power equipments adds Ciphertext data is decrypted;
As it can be seen that present embodiments providing a kind of method for converting protocol based on SDK packet, this method passes through preset SDK packet It is encrypted to obtain encryption data to target data, and by encryption data and is used to identify the preset numbers of power equipment and is sent to Mobile operation platform, and then mobile operation platform inquires corresponding decryption code key according to preset numbers and preset SDK decrypts work Tool, and the encryption data is decrypted according to the decryption code key and SDK decoding tool that inquire.This method passes through encapsulation The mode of SDK packet realizes protocol conversion, can quickly and easily realize the conversion of power equipment agreement Yu power grid specific protocol, real Existing mode is simple, when the communications protocol of power equipment changes, can also easily realize the conversion of agreement, simplify electric power The conversion of different protocols and systems connection process in system, so that the power equipment using different protocols can be exchanged into electric power standard Agreement is networked with mobile operation platform, substantially increases the O&M efficiency of power supply system.
Embodiment three
Correspondingly, the present invention also provides a kind of protocol conversion systems based on SDK packet, referring to Fig. 3, this is illustrated as one The structural schematic diagram of protocol conversion system of the kind based on SDK packet, the system include that several power equipments 1 and mobile O&M are flat Platform 2;
The power equipment includes:
Encrypting module 12, the encrypting module 12 are requested for response data, and by preset SDK packet to target data It is encrypted, obtains encryption data;
Sending module 13, the sending module 13 are used for encryption data and the preset numbers hair for being used to identify power equipment It send to mobile operation platform;
Moving operation platform 2 includes:
Enquiry module 22, the enquiry module are used to inquire corresponding decryption code key and preset SDK according to preset numbers Decoding tool;
Deciphering module 23, the deciphering module are used to be added according to the decryption code key and SDK decoding tool inquired to described Ciphertext data is decrypted.
Further, the power equipment 1 further include:
Generation module 11, the generation module 11 are used to generate the default volume for identifying power equipment according to target data Number, encryption code key, decryption code key.
Further, the mobile operation platform 2 further include:
Authentication module 21, the authentication module 21 is for verifying the preset numbers received;If authentication failed is returned It returns verification result and records this verification information.
Correspondingly, a kind of protocol conversion system based on SDK packet is present embodiments provided, using two above-mentioned embodiments Method for converting protocol, which encrypts target data by preset SDK packet to obtain encryption data, and will encrypt number It is sent to mobile operation platform according to the preset numbers for identifying power equipment, and then mobile operation platform is according to preset numbers Corresponding decryption code key and preset SDK decoding tool are inquired, and according to the decryption code key and SDK decoding tool inquired to institute Encryption data is stated to be decrypted.This method realizes protocol conversion by way of encapsulating SDK packet, can quickly and easily realize electricity The conversion of power device protocol and power grid specific protocol, implementation is simple, when the communications protocol of power equipment changes, It can easily realize the conversion of agreement, simplify the conversion and systems connection process of different protocols in electric system, so that using The power equipment of different protocols can be exchanged into electric power standard agreement and network with mobile operation platform, substantially increase power supply system The O&M efficiency of system.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (8)

1. a kind of method for converting protocol based on SDK packet characterized by comprising
Response data request, power equipment encrypt target data by preset SDK packet, obtain encryption data;
Power equipment is by encryption data and is used to identify the preset numbers of power equipment and is sent to mobile operation platform;
Mobile operation platform inquires corresponding decryption code key and preset SDK decoding tool according to preset numbers;
Mobile operation platform is decrypted the encryption data according to the decryption code key and SDK decoding tool that inquire.
2. above-mentioned method for converting protocol according to claim 1, which is characterized in that described " response data request, power equipment are logical Cross preset SDK packet to encrypt target data, obtain encryption data ", it specifically includes:
Response data request, power equipment according to target data generate for identify power equipment preset numbers, encryption code key, Decrypt code key;
Preset numbers, decryption code key are sent to mobile operation platform by power equipment;
Power equipment is encrypted by preset SDK packet according to encryption secret key pair target data, and encryption data is obtained.
3. above-mentioned method for converting protocol according to claim 1, which is characterized in that " move operation platform according to default described Number inquires corresponding decryption code key and preset SDK decoding tool " before, further includes:
Mobile operation platform verifies the preset numbers received;If authentication failed, returns to verification result and record this Verification information.
4. according to the above-mentioned method for converting protocol of claim 2, which is characterized in that the encryption code key and decryption code key are right each other Claim code key or asymmetric code key.
5. above-mentioned method for converting protocol according to claim 1, which is characterized in that the preset numbers include at least user's registration Ground coding and the serial number for identity user title.
6. a kind of protocol conversion system based on SDK packet, including several power equipments and mobile operation platform;
The power equipment includes:
Encrypting module, the encrypting module is requested for response data, and is added by preset SDK packet to target data It is close, obtain encryption data;
Sending module, the sending module are used for encryption data and are used to identify the preset numbers of power equipment and are sent to movement Operation platform;
Moving operation platform includes:
Enquiry module, the enquiry module is used to inquire corresponding decryption code key according to preset numbers and preset SDK decrypts work Tool;
Deciphering module, the deciphering module are used for according to the decryption code key and SDK decoding tool inquired to the encryption data It is decrypted.
7. protocol conversion system according to claim 6, which is characterized in that the power equipment further include:
Generation module, the generation module are used for according to target data generation for identifying preset numbers, the encryption of power equipment Code key, decryption code key.
8. protocol conversion system according to claim 6, which is characterized in that the mobile operation platform further include:
Authentication module, the authentication module is for verifying the preset numbers received;If authentication failed, verifying knot is returned Fruit simultaneously records this verification information.
CN201910351052.6A 2019-04-28 2019-04-28 A kind of method for converting protocol and system based on SDK packet Pending CN109922089A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910351052.6A CN109922089A (en) 2019-04-28 2019-04-28 A kind of method for converting protocol and system based on SDK packet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910351052.6A CN109922089A (en) 2019-04-28 2019-04-28 A kind of method for converting protocol and system based on SDK packet

Publications (1)

Publication Number Publication Date
CN109922089A true CN109922089A (en) 2019-06-21

Family

ID=66978735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910351052.6A Pending CN109922089A (en) 2019-04-28 2019-04-28 A kind of method for converting protocol and system based on SDK packet

Country Status (1)

Country Link
CN (1) CN109922089A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110969740A (en) * 2019-12-12 2020-04-07 浩云科技股份有限公司 Access method of access control management system to different types of access control equipment and access control system
CN111639350A (en) * 2020-05-16 2020-09-08 中信银行股份有限公司 Cipher service system and encryption method
CN112734456A (en) * 2020-12-25 2021-04-30 杭州魔厨科技有限公司 Intelligent advertisement aggregation system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110969740A (en) * 2019-12-12 2020-04-07 浩云科技股份有限公司 Access method of access control management system to different types of access control equipment and access control system
CN111639350A (en) * 2020-05-16 2020-09-08 中信银行股份有限公司 Cipher service system and encryption method
CN111639350B (en) * 2020-05-16 2023-01-31 中信银行股份有限公司 Cipher service system and encryption method
CN112734456A (en) * 2020-12-25 2021-04-30 杭州魔厨科技有限公司 Intelligent advertisement aggregation system

Similar Documents

Publication Publication Date Title
CN103731823B (en) Subscription manager-secure routing equipment switching method and equipment
CN205490665U (en) Thing networking systems's communication device
CN109922089A (en) A kind of method for converting protocol and system based on SDK packet
US10904340B2 (en) Method for operating an automation network
US20160112406A1 (en) Authentication and authorization in an industrial control system using a single digital certificate
CN102130947A (en) Remote monitored maintenance method and system based on 3G and cloud computing technology
CN103516814A (en) Data exchange method for large volume of data
CN101964798A (en) Multi-graphic protocol unified proxy system based on remote desktop protocol
CN202276365U (en) Remote monitor and maintenance system based on 3G and cloud computing technology
CN109818910B (en) Data transmission method, device and medium
CN106603579B (en) The tele-control system and method and its wireless terminal of a kind of wireless terminal
WO2023108871A1 (en) Communication method for v2x protocol stack
CN112422560A (en) Lightweight substation secure communication method and system based on secure socket layer
CN109842624A (en) A kind of interchanger security agency communication method and system
CN105024827A (en) System and method for performing digital rights management for terminal equipment
CN112235308A (en) Data transmission method and system for industrial equipment with different communication protocols
CN113613227B (en) Data transmission method and device of Bluetooth equipment, storage medium and electronic device
CN103354637B (en) A kind of internet-of-things terminal M2M communication encrypting method
CN103856938B (en) A kind of method of encrypting and decrypting, system and equipment
CN102970134B (en) Method and system for encapsulating PKCS#7 (public-key cryptography standard #7) data by algorithm of hardware password equipment
CN102710628B (en) A kind of cloud security encryption method based on home gateway and system
CN102624526A (en) Simple identity authentication method for file transfer protocol (FTP)
CN110808969A (en) Data transmission method and system, electronic device and storage medium
CN113742424B (en) Natural resource integrated cross-network dynamic form data synchronization method based on RPA
CN109195139A (en) Data transmission method, device, platform and the medium of M2M management platform and eSIM card

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: 20190621

RJ01 Rejection of invention patent application after publication