CN116055368A - Method and device for communication by using custom protocol - Google Patents

Method and device for communication by using custom protocol Download PDF

Info

Publication number
CN116055368A
CN116055368A CN202310039521.7A CN202310039521A CN116055368A CN 116055368 A CN116055368 A CN 116055368A CN 202310039521 A CN202310039521 A CN 202310039521A CN 116055368 A CN116055368 A CN 116055368A
Authority
CN
China
Prior art keywords
protocol
data
message
custom
target
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
CN202310039521.7A
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.)
Guangzhou Zhufeng Network Technology Co ltd
Original Assignee
Guangzhou Zhufeng Network 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 Guangzhou Zhufeng Network Technology Co ltd filed Critical Guangzhou Zhufeng Network Technology Co ltd
Priority to CN202310039521.7A priority Critical patent/CN116055368A/en
Publication of CN116055368A publication Critical patent/CN116055368A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • 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/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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Communication Control (AREA)

Abstract

The invention provides a method and a device for communication by using a custom protocol, comprising the following steps: dynamically loading a protocol packet in response to the triggering of the target program; the protocol package comprises a custom protocol and a message codec for parsing the custom protocol, wherein the message codec is configured to be developed according to a parsing rule of the target program; receiving reported communication data, wherein the communication data is reported by adopting the custom protocol; judging the protocol type of the custom protocol in response to successful receipt of the communication data; converting the communication data into target data with the corresponding message codec in response to the determination of the protocol type, the target data being configured to conform to a data format of the target program; and sending the target data. The invention aims to provide a communication method and device capable of rapidly and conveniently expanding and butting various custom protocols and standard data formats.

Description

Method and device for communication by using custom protocol
Technical Field
The present invention belongs to the field of communication protocols, and in particular, relates to a method and apparatus for performing communication using a custom protocol.
Background
The first generation of internet is networking of computers and computers, and is simple thing connection. All information behaviors of people are based on own terminal equipment, and simple networking is realized. The networking scene is very simple, is actually an uninhabited networking mode, and cannot directly determine a real user through the Internet. The second generation of internet is connected by people, and in the period from computers to mobile phones and other terminal equipment, all information transactions are mutually authenticated transactions, so that the traditional internet is developed into a mobile internet. The third generation internet is an all-things interconnection era, and the all-things interconnection era mainly has two characteristics, namely, on the scene of enriching the connection of objects and people, the connection of people and objects is also added, and the internet is an information transmission between a client and everything in a broad sense; and the other is that the connection is changed from single isolated and discontinuous connection to connection which can be traced in the whole course and is at any moment.
Based on the internet of everything generated by the third generation internet, a large number of sensor devices are added to support different internet scenes. These different scenarios necessarily derive different communication technologies to support the development of the new generation of the internet. For example, the http protocol is used in various app scenes in the mobile internet era, and the http protocol is a server with better performance; and the mqtt protocol is used on a large number of hardware devices with narrow bandwidth, and the used scenes are the conditions of unstable network, low power consumption of the devices and the like; as another example, the coap protocol is a point-to-point protocol used to transfer state information between a client and a server. Such as these, it is obviously a complex problem to manage these devices and their protocols on a device management platform and to face more unpredictable protocols in the future.
In the prior art, a plurality of device management platforms adopt a pre-known mode for the relation between the devices and the protocol, if the device under the product A adopts the protocol A, a developer only needs to develop the protocol specially aiming at the device under the product, and the protocol can be configured in a corresponding configuration file.
The prior technical proposal can meet the requirements of the demanding party in a short period, but can not achieve the purpose of once and for all. Because it has the following problems:
(1) the scene of the Internet changes at any moment, and possibly the condition of sufficient network resources at the moment, and websocket protocol is adopted; the next second the resource is insufficient, the device has to keep the most basic data reporting state in the mqtt mode. Since the device has access only to the development for this protocol, no other protocol can be supported.
(2) The configuration scheme of the device is also constantly changing, such as configuration of the device IP ports, and the configuration scheme also dynamically changes along with the increase and decrease of the usage amount.
If the operator wants to switch the device a from the 39001 port to the 39002 port, he has to look up the modified content in the configuration file of the development code, and then restart the device to take effect, which is not good in normalization and security.
(3) Different kinds of equipment supporting the same protocol are different in data analysis rule, and the data cannot achieve the purpose of universality. It is also necessary for developers to develop different code development interfaces for devices to normalize their data formats, which is quite time consuming and laborious.
(4) When new protocols are immediately needed to be added for use at the device management platform, they may come from other developers or vendors. Because the platform developer and the company to which the protocol developer belongs are different, the earlier stage platform developer does not butt-connect the protocol, does not want to disclose own codes and needs to butt-connect the protocol, and the platform has to spend manpower and material resources for butt-connection, which obviously cannot adapt to the rapidly changing internet market.
Disclosure of Invention
In view of the above-mentioned drawbacks of the prior art, the present invention is directed to a communication method and apparatus capable of expanding and interfacing with multiple custom protocols and standard data formats quickly and conveniently.
The application provides a method for communication by using a custom protocol, which comprises the following steps:
dynamically loading a protocol packet in response to the triggering of the target program; the protocol package comprises a custom protocol and a message codec for parsing the custom protocol, wherein the message codec is configured to be developed according to a parsing rule of the target program;
receiving reported communication data, wherein the communication data is reported by adopting the custom protocol;
judging the protocol type of the custom protocol in response to successful receipt of the communication data;
converting the communication data into target data with the corresponding message codec in response to the determination of the protocol type, the target data being configured to conform to a data format of the target program;
and sending the target data.
Further, the dynamic loading protocol packet includes: when the target program runs, the class reflection is used for analyzing the content of the class file in the custom protocol, and further obtaining the class object.
Further, the sending the target data includes: and transmitting the target data to a message transmitting interceptor, wherein the message transmitting interceptor transmits the target data according to a preset transmitting mode.
Further, the transmission mode includes timing transmission, quantitative transmission, filtering transmission, message adding transmission, delay transmission or protocol switching transmission.
Further, said responding to successful receipt of said communication data further comprises: and checking authentication information of the communication data.
Further, the authentication information includes an IP port number, a time stamp, a user name, a password, or a special check bit symbol.
There is also provided an apparatus for communicating using a custom protocol, comprising:
a dynamic loading unit, responding to the triggering of the target program, dynamically loading a protocol package, wherein the protocol package comprises a custom protocol and a message codec for analyzing the custom protocol, and the message codec is configured to be developed according to the analysis rule of the target program;
the data receiving unit is used for receiving reported communication data, and the communication data is reported by adopting the custom protocol;
an authenticator for judging the protocol type of the custom protocol in response to the successful reception of the communication data;
the message codec, in response to the determination of the protocol type, converts the communication data into target data with the corresponding message codec, the target data being configured to conform to a data format of the target program;
and a data transmitting unit for transmitting the target data.
Further, the dynamic loading protocol packet includes: when the target program runs, the reflection of the class is used for analyzing the content in the class file, and then the object of the class is obtained.
Further, the system also comprises a message sending interceptor, wherein the target data is transmitted to the message sending interceptor before being sent, and the message sending interceptor sends the target data according to a preset sending mode.
The improvement of the present application brings the following advantages: the method and the device for communication by using the custom protocol can enable the platform and the equipment, the platform and the protocol to be more flexible, avoid knowing excessive information in advance, break the correlation between the equipment and the protocol and enable the operability of the equipment and the protocol to be stronger. The operation is more convenient, and the operation and maintenance personnel can more intuitively see the current condition of the equipment from the equipment management platform and can rapidly convert the relation between the equipment and the equipment through the current condition. The device can be configured with a plurality of different protocols more conveniently, rapidly and at low cost, and when the network condition is not good, the device can automatically switch the different protocols to report data. The method has stronger expansibility, increases and changes protocols, can achieve the effect of being used after unpacking, and can achieve the effect of certain code isolation.
Drawings
FIG. 1 is an alternative system architecture for implementing communication using custom protocols provided by embodiments of the present application.
Fig. 2 is a flowchart illustrating steps of a method for communicating using a custom protocol according to an embodiment of the present application.
Fig. 3 shows a timing diagram of a method of communicating using a custom protocol according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of an apparatus for performing communication using a custom protocol according to an embodiment of the present application.
Detailed Description
Other advantages and effects of the present invention will become apparent to those skilled in the art from the following disclosure, which describes the embodiments of the present invention with reference to specific examples. The invention may be practiced or carried out in other embodiments that depart from the specific details, and the details of the present description may be modified or varied from the spirit and scope of the present invention.
Fig. 1 is an alternative system architecture for implementing communication using a custom protocol according to an embodiment of the present application, where, as shown in fig. 1, the system architecture may include: device 100, platform 200, and application 300.
Among them, the platform 200 is a device management platform, and all data intermediaries may be based on the device management platform, which is essential as isolation of devices from specific services. The application 300 may include all services that all users want to react to data, may be a PC-side application platform, may be a user's mobile phone (including a sms, an app, an applet, etc.), or even may be a communication between devices that cooperate with each other.
The following embodiment illustrates an example to explain the scheme and functions to be implemented in the present application: referring to fig. 3, there are three groups of people, the first group is a device-side technician (hereinafter, abbreviated as a group), the second group is a platform-side technician (hereinafter, abbreviated as B group), and the third group is a technician (hereinafter, abbreviated as C group) that communicates by using a platform and a device. Group B personnel develop and maintain the whole platform, and adapt to protocols such as http, mqtt, and map on the Internet of things.
At the moment, the personnel in the group A and the personnel in the group C innovate a device which does not adopt a wide internet of things protocol for communication, but adopts a custom protocol. At this time, group B personnel (e.g., the inventor of the present application) on the platform side do not want to specifically dock with the private custom protocol (the reason is described in the background art), so a dynamic loading protocol package concept is proposed. The personnel of the group A and the group C only need to develop the corresponding message codec according to the platform analysis rule, and the message codec and the developed custom protocol are packed into a protocol packet. After the personnel in the group A and the personnel in the group C develop the protocol package, the platform dynamically loads the protocol package, and meanwhile, the new equipment is associated with the protocol package, and at the moment, the new equipment and the platform can establish data communication.
One key point of the protocol package is that people on the platform side do not want to pay attention to the self-defined content, and people in the A group and the C group want to use the capability of the device management platform and also want to self-define expansion, so that the people can expand in a mode of developing the protocol package.
The new device is assumed to be configured with the mqtt protocol as well as the custom protocol in this case, meaning that the new device can communicate using both protocols. If the new device adopts the custom protocol to report the data to the platform, the authenticator authenticates the protocol type adopted by the communication data at the moment after the platform side receives the communication data. The communication data can also contain a time stamp and authentication information such as a platform communication key, a port and the like, and the security of the data can be ensured through platform verification. After the authentication is successful, the communication data enters a corresponding message codec for decoding according to the protocol type.
If the communication condition is good, the device selects to push data by adopting the custom protocol, and the authenticator enters a message codec of the custom protocol after checking, which is equivalent to that the group B personnel performs standard processing on the data reported by the device, namely, the data with different formats generated by all different protocols are encoded and decoded by the message codec, and finally unified into a consistent data format (such as a predetermined consistent object model format).
As described above, when a specialized, proprietary custom protocol needs to be docked, the platform side does not need to intervene in adapting to the new protocol, the protocol developer is necessarily familiar with the protocol, and they can upload data using the platform only by encapsulating the custom protocol package containing the message codec according to the platform rules.
Next, a method for performing communication using a custom protocol according to the present application is described in terms of a platform, as shown in fig. 2 and 3, fig. 2 shows a flowchart of a communication method provided by an embodiment of the present application, and fig. 3 shows a timing chart of a communication method provided by an embodiment of the present application, where the method may include the following steps:
s100, responding to the triggering of a target program, and dynamically loading a protocol packet; the protocol package includes a custom protocol and a message codec for parsing the custom protocol, the message codec configured to be developed in accordance with parsing rules of the target program.
The target program is arranged on the platform, and can be manually triggered or automatically triggered after certain preset trigger conditions are met, for example, the target program is triggered by the action of reporting communication data by the equipment, and the like.
Specifically, the dynamic loading protocol packet includes: when the target program runs, the reflection of the class is used for analyzing the content of class files in the custom protocol, and further, the object of the class is obtained. The protocol package is loaded by using the reflection technology of the class, and the contents (member variables, constructors, common functions and the like) in the class file can be obtained when the platform runs. The method can not use new keywords to create objects (instantiation of the class), but obtain the objects of the class by analyzing the content in the class file, and further can enable functions in the class to run, thereby achieving the purpose of using the custom protocol. The technology has the advantages that the platform is not required to be restarted for the addition, modification and deletion of the platform side protocol, and the purpose of immediate installation and immediate use can be achieved during the operation of the platform.
The reflection nature of a class is that the class is instantiated, but it can be dynamically loaded during the code run phase, so that the required code can be loaded without restarting the application.
In communication of the internet of things, a common related protocol such as http, mqtt, coap is generally adopted, the protocol is generally integrated into a platform end, and in the uplink and downlink process of data (data uplink: data is sent from a device side to a platform side, data downlink: data is sent from the platform side to the device side), both sides can communicate according to the agreed protocol. However, with the rapid development of the internet of things, more and more technicians engaged in the internet of things put forward a lot of new technologies and various related insights on protocols; secondly, technicians of the internet of things, especially those engaged in equipment side, need to establish a certain technical barrier in order to be safer in protocol transmission. For both reasons, they propose custom related communication protocols. The present embodiment proposes the concept of a protocol package, and when the platform needs to interface with some customized proprietary protocols, the developer on the platform side does not need to adapt to the unique protocols, but needs to concentrate on the development of the own protocols by the technician (here, the user of the device and the technician of the device, rather than the technician of the platform) that adopts the new protocol. After the development of the custom protocol is completed, the custom protocol and a message codec are packaged into a protocol packet, then the protocol is packaged into a platform, and the platform can load the private custom protocol through the reflection technology of the class.
By adopting the method of the embodiment, the platform and the equipment, the platform and the protocol, and the transformation of the equipment and the protocol are more flexible, excessive information is not required to be known in advance, the correlation between the equipment and the protocol is broken, and the operability of the equipment and the protocol is stronger. The platform is equivalent to a gate, can control the uplink and downlink of the whole equipment data, and the final data is not required to be sent and used or not, and is completely determined by the service.
And S200, receiving reported communication data, wherein the communication data is reported by adopting a custom protocol. After the custom protocol is successfully loaded on the platform side, the device can report communication data to the platform by adopting the custom protocol.
S300, in response to successful receipt of the communication data, judging the protocol type of the custom protocol.
After the communication data is successfully received, the type of the protocol can be judged according to the protocol identification contained in the communication data, and then a message codec corresponding to the protocol type is called to recode the communication data.
Therefore, which protocol can be timely authenticated, basic configuration information of the equipment is read out through the interface of unified conversion, and the purposes of mutual information recognition and information verification are achieved. The transmitted messages can judge different protocols according to the identification, so that the protocols are forcedly converted into corresponding classes, and finally the messages are uploaded to corresponding message codecs.
Further, the method also comprises the step of verifying the authentication information in the communication data to confirm the safety of the equipment and the communication data thereof. The authentication information of the device, including the IP port number, the timestamp, the user name, the password or the special check bit symbol, is recorded in advance on the platform side.
S400, in response to the judgment of the protocol type, the communication data is converted into target data by adopting a corresponding message codec, and the target data is configured to be in accordance with the data format of the target program.
When the message codec is developed, a technician at the equipment side develops the message codec according to the analysis rule of the target program (or platform), and the message codec can analyze the communication data uploaded by adopting the corresponding custom protocol according to the analysis rule of the target program, so as to convert the communication data into the target data conforming to the data format of the target program (or platform).
In practical use, a standard data format is required by a service consumer due to data format and other problems. If the data formats cannot be unified, the defects such as confusion of data management, low working efficiency and the like are caused. The platform needs to interface with a plurality of different protocols and receive data reports of a plurality of different devices. Since each protocol or device may use a different data format, there is a high probability that the data format will be present in the communication data received by the platform, which is undesirable. The message codec is like a pipe in a plurality of data or message entries, and the data or messages in the plurality of entries are collected together to form a format-standardized data or message, so that the end data (target data) can be used by the user to conveniently use the format-standardized standard data.
S500, sending target data.
Specifically, the target data is transferred to a message sending interceptor, and the message sending interceptor sends the target data according to a preset sending mode.
Specifically, the transmission mode includes timing transmission, quantitative transmission, filtering transmission, transmission after adding a message, delay transmission or protocol switching transmission.
After processing the target data or message, the message codec pushes the data to the required application. The message sending interceptor may intercept at the instant the device sends and returns a message. The message sending interceptor is like a switch and can precisely control when messages are sent, quantitatively send, filter the messages, customize the settings by modifying parameters or services, cache the messages, add platform own messages as needed, or delay sending the messages. This ensures that each message has a control switch and that the service consumer (application) does not blindly receive all the data of the device.
If the message sending interceptor finds that the network condition is poor when sending the target data, which is not beneficial to the communication with larger data quantity, the message sending interceptor can switch the communication protocol to a protocol suitable for being used under the conditions of unstable network, low equipment power consumption and the like, such as the mqtt protocol. If the group C personnel in the example configures message delay transmission on the platform side, the message transmission interceptor delays transmission of target data to applications developed by the group C related personnel according to actual requirements.
Similarly, based on the same principle, the application end can also use the method described in the embodiment to develop a protocol packet and upload the protocol packet to the platform, so as to realize communication between the application end and the platform.
The embodiment can enable operation and maintenance personnel to manage the platform and the protocol more conveniently and rapidly, enable the operation and maintenance personnel to more intuitively see the current condition of the equipment from the equipment management platform, and can rapidly convert the relation between the equipment and the application end (other equipment) through the current condition. As in the example above, when the network conditions are not good, the device may automatically switch between different protocols to report data.
The embodiment can also enable the platform, the equipment and the protocol to have stronger expansibility, and can achieve the effect of opening the box and using the custom protocol through the application of the protocol package, and can achieve a certain code isolation effect. As described above, when a specialized protocol (private custom protocol) needs to be docked, the platform side does not need to intervene in adapting to a new protocol, the developer of the protocol is necessarily familiar with the protocol, and they can upload data by using the platform only by encapsulating the protocol package containing the message codec according to the platform rule. And the platform can also uniformly encode the data with different formats into standard data with uniform formats through the message codec, so that the universality of the data is greatly enhanced, the application range of the platform, equipment and protocols is greatly expanded, and the data processing efficiency is improved.
Further, if configuration information of the protocol needs to be changed, such as changing a port number, modifying a password, etc., the metadata may be directly and dynamically configured. The configuration metadata is based on the standard of original custom protocol, and some configurations are custom to achieve the purpose of custom logic The device may send some configuration information to the platform under some conditions, such as a password is desired to be modified, or the sending time of the target data by the configuration message interceptor is needed to be controlled accurately, such as reporting status of the device data and reporting authentication information of the next device data. The embodiment modifies the fixed content in the custom protocol by reconfiguring the metadata. For example, in the custom protocol, account numbers and passwords are required to be transmitted, but the account numbers and passwords can be changed as login information required for communication of the platform device, and when new account numbers and passwords are reported, the new account numbers and passwords are adopted for subsequent communicationAnd (3) the method. And after the metadata in the protocol is reconfigured, uploading the platform again, and enabling the platform to be loaded again for communication. The device need not be turned off to reconfigure the metadata as in existing schemes.
As shown in fig. 4, an apparatus 400 (or object program) for performing communication using a custom protocol according to an embodiment of the present application includes:
a dynamic loading unit 1 for dynamically loading a protocol packet including a custom protocol and a message codec for parsing the custom protocol in response to the triggering of the target program, the message codec being configured to be developed according to parsing rules of the target program;
the data receiving unit 2 receives the reported communication data, and the communication data is reported by adopting a custom protocol;
an authenticator 3 for judging the protocol type of the custom protocol in response to successful reception of the communication data;
a message codec 4 for converting the communication data into target data configured to conform to a data format of the target program using the corresponding message codec in response to the judgment of the protocol type;
the data transmission unit 5 transmits the target data.
The present invention is not limited to the above-mentioned embodiments, and any changes or substitutions that can be easily understood by those skilled in the art within the technical scope of the present invention are intended to be included in the scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (9)

1. A method for communicating using a custom protocol, comprising:
dynamically loading a protocol packet in response to the triggering of the target program; the protocol package comprises a custom protocol and a message codec for parsing the custom protocol, wherein the message codec is configured to be developed according to parsing rules of the target program;
receiving reported communication data, wherein the communication data is reported by adopting the custom protocol;
judging the protocol type of the custom protocol in response to successful receipt of the communication data;
converting the communication data into target data with the corresponding message codec in response to the determination of the protocol type, the target data being configured to conform to a data format of the target program;
and sending the target data.
2. The method of claim 1, wherein said dynamically loading protocol packets comprises: when the target program runs, the class reflection is used for analyzing the content of the class file in the custom protocol, and further obtaining the class object.
3. The method of claim 1, wherein said transmitting said target data comprises: and transmitting the target data to a message transmitting interceptor, wherein the message transmitting interceptor transmits the target data according to a preset transmitting mode.
4. A method according to claim 3, wherein the transmission means comprises a timing transmission, a quantitative transmission, a filtering transmission, a post-message addition transmission, a delay transmission or a switching protocol transmission.
5. The method of claim 1, wherein said responding to successful receipt of said communication data further comprises: and checking authentication information of the communication data.
6. The method of claim 5, wherein the authentication information comprises an IP port number, a timestamp, a user name, a password, and a special check bit symbol.
7. An apparatus for communicating using a custom protocol, comprising:
a dynamic loading unit, responding to the triggering of the target program, dynamically loading a protocol package, wherein the protocol package comprises a custom protocol and a message codec for analyzing the custom protocol, and the message codec is configured to be developed according to the analysis rule of the target program;
the data receiving unit is used for receiving reported communication data, and the communication data is reported by adopting the custom protocol;
an authenticator for judging the protocol type of the custom protocol in response to the successful reception of the communication data;
the message codec, in response to the determination of the protocol type, converts the communication data into target data with the corresponding message codec, the target data being configured to conform to a data format of the target program;
and a data transmitting unit for transmitting the target data.
8. The apparatus of claim 7, wherein said dynamic loading protocol packet comprises: when the target program runs, the reflection of the class is used for analyzing the content in the class file, and then the object of the class is obtained.
9. The apparatus of claim 7, further comprising a message transmission interceptor, wherein the target data is transferred to the message transmission interceptor before the target data is transmitted, and wherein the message transmission interceptor transmits the target data in a predetermined transmission manner.
CN202310039521.7A 2023-01-12 2023-01-12 Method and device for communication by using custom protocol Pending CN116055368A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310039521.7A CN116055368A (en) 2023-01-12 2023-01-12 Method and device for communication by using custom protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310039521.7A CN116055368A (en) 2023-01-12 2023-01-12 Method and device for communication by using custom protocol

Publications (1)

Publication Number Publication Date
CN116055368A true CN116055368A (en) 2023-05-02

Family

ID=86125190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310039521.7A Pending CN116055368A (en) 2023-01-12 2023-01-12 Method and device for communication by using custom protocol

Country Status (1)

Country Link
CN (1) CN116055368A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117176830A (en) * 2023-11-03 2023-12-05 三未信安科技股份有限公司 Adaptive conversion method of extensible multi-format protocol password application data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117176830A (en) * 2023-11-03 2023-12-05 三未信安科技股份有限公司 Adaptive conversion method of extensible multi-format protocol password application data
CN117176830B (en) * 2023-11-03 2024-01-26 三未信安科技股份有限公司 Adaptive conversion method of extensible multi-format protocol password application data

Similar Documents

Publication Publication Date Title
CN114338827B (en) Internet of Things protocol adaptation gateway, method and readable storage medium
CN111628967B (en) Log data transmission method and device, computer equipment and storage medium
EP1493290A1 (en) System and method for wireless data terminal management using general packet radio service network
CN108418903B (en) Remote access system and access method for embedded software log
CN101227470B (en) System and method of business management
CN110166547B (en) Terminal remote access control method
CN115086306B (en) Data transmission method and device, electronic equipment and storage medium
CN116055368A (en) Method and device for communication by using custom protocol
CN106789952B (en) Method and system for serving local area network into internet
CN114615082B (en) System and method for simulating TCP duplex safety communication by using forward and reverse gatekeepers
US6470390B1 (en) Method and apparatus for a dual connection communication session
US20030123434A1 (en) Internet telephone system
Almheiri et al. IoT Protocols–MQTT versus CoAP
CN112511892B (en) Screen sharing method, device, server and storage medium
CN112565447B (en) Encryption and decryption method and system matched with uploading and downloading in cloud environment and WEB file manager
KR101082850B1 (en) Active Sync-based Mobile Device for data Synchronizing and Method at the same
CN113630466B (en) Data transmission method, system, electronic equipment and storage medium
CN115811778A (en) Service processing method, device, storage medium and equipment
CN111252639B (en) Method, system, terminal and medium for offline updating elevator car display screen resources
CN113055253B (en) Method, device, equipment and storage medium for rapidly opening home gateway
WO2020253330A1 (en) Method and apparatus for customer premise equipment configuration management
CN112367297A (en) Service control method and device
CN114650279B (en) Instance processing method and system
US7116784B2 (en) Method and apparatus for authenticated reporting in a mobile communication device
CN117978697A (en) OpenWrt router user real-time rate acquisition method and system

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