CN108259512A - Communication protocol recognition methods, electronic device and computer storage media - Google Patents

Communication protocol recognition methods, electronic device and computer storage media Download PDF

Info

Publication number
CN108259512A
CN108259512A CN201810170735.7A CN201810170735A CN108259512A CN 108259512 A CN108259512 A CN 108259512A CN 201810170735 A CN201810170735 A CN 201810170735A CN 108259512 A CN108259512 A CN 108259512A
Authority
CN
China
Prior art keywords
communication
communication protocol
feedback data
instruction
database
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.)
Granted
Application number
CN201810170735.7A
Other languages
Chinese (zh)
Other versions
CN108259512B (en
Inventor
李科燃
廖志伟
林青雷
张华山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Youdian IOT Technology Co.,Ltd.
Original Assignee
Qianhai Shenzhen Electric Union 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 Qianhai Shenzhen Electric Union Technology Co Ltd filed Critical Qianhai Shenzhen Electric Union Technology Co Ltd
Priority to CN201810170735.7A priority Critical patent/CN108259512B/en
Publication of CN108259512A publication Critical patent/CN108259512A/en
Application granted granted Critical
Publication of CN108259512B publication Critical patent/CN108259512B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • 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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephonic Communication Services (AREA)
  • Communication Control (AREA)

Abstract

The present invention relates to a kind of communication protocol recognition methods, the method includes:Communication instruction is obtained from database;The information of at least one communication protocol of database purchase, the information of each communication protocol include at least one communication instruction and feedback data corresponding with the communication instruction;The communication instruction is sent to electronic equipment;Feedback data is received from the electronic equipment;The feedback data of reception feedback data corresponding with what is stored in database is matched to determine recognition result.The invention further relates to a kind of electronic device and computer storage medias.The communication protocol of automatic identification electronic equipment use is capable of in the communication protocol recognition methods.

Description

Communication protocol recognition methods, electronic device and computer storage media
Technical field
The present invention relates to a kind of communication protocol identification technology more particularly to communication protocol recognition methods, electronic device and meters Calculation machine storage medium.
Background technology
With the development of science and technology electric room has data communication function mostly, different types of equipment is also respectively made by oneself Different communication protocol standards is determined.For example, in electricity meter-reading and wireless kilowatt meter reading-out system, electronic electric energy meter, data acquisition Terminal and other slave computer equipment all have communication function, these equipment generally have the protocol architecture of oneself.Either use Wired paths or radio channel are required for that telecommunication data protocol is identified and parses, real to monitor reception data The test of existing data is sent.
Under traditional scene, research staff will determine a kind of communication protocol of equipment, it is necessary to find genuine and ask for communication protocols Supporting paper is discussed by computer manual input commands, then by connecting line be sent to equipment could the accurate judgement equipment used Communication protocol and return data.
The data that classical scenario mode obtains may not be entirely not full and accurate enough, and technical staff is needed to operate at the scene, and Easily error, if there is large number of equipment will result in many duplications of labour.
Invention content
In consideration of it, it is necessary to provide a kind of communication protocol recognition methods, electronic device and computer storage media, it can be fast Speed is easily identified communication protocol.
A kind of communication protocol recognition methods, including:
Communication instruction is obtained from database;The information of at least one communication protocol of database purchase, each communication protocol Information includes at least one communication instruction and feedback data corresponding with the communication instruction;
The communication instruction is sent to electronic equipment;
Feedback data is received from the electronic equipment;
The feedback data of reception feedback data corresponding with what is stored in database is matched to determine recognition result.
In some embodiments, the method further includes:
Recognition result is preserved to the database.
In some embodiments, the information of the communication protocol includes using an at least manufacturer for the communication protocol and be somebody's turn to do An at least electronic appliance models for manufacturer, each electronic appliance models correspond to an at least communication instruction and corresponding with the communication instruction Feedback data, the recognition result includes determining electronic appliance models, producer and the communication protocol of use.
In some embodiments, the method further includes:Identification daily record is preserved to the database, the identification daily record packet Include all communication instructions for being sent to the electronic equipment and the corresponding all feedback data received.
In some embodiments, the communication instruction is sent by electronic device, and the electronic device passes through serial ports and institute Electronic equipment communication connection is stated, the communication instruction is sent one by one by the serial ports.
In some embodiments, the communication protocol include RS232, RS485, RS422, CAN and USB in one kind or It is several.
In some embodiments, the communication instruction is sent to the electronic equipment with different baud rates, according to feedback coefficient According to the best baud rate for determining to communicate with the electronic equipment.
In some embodiments, the electronic equipment for ups system, charging pile, photovoltaic apparatus, frequency converter, precision air conditioner, Environmental monitoring, gen-set or Medical Devices.
A kind of electronic device including memory, processor and is stored on the memory and can be on the processor The communication protocol recognizer of operation realizes side as described above when the communication protocol recognizer is performed by the processor The step of method.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of method as described above is realized during row.
The communication protocol recognition methods, electronic device can automatically determine communication protocol and the communication of electronic equipment use Instruct corresponding feedback data.
Description of the drawings
Fig. 1 is the Organization Chart of the communication protocol identifying system of one embodiment of the invention.
Fig. 2 is the flow chart of the communication protocol recognition methods of one embodiment of the invention.
Fig. 3 is the flow chart of the communication protocol recognition methods applied to electronic device of one embodiment of the invention.
Fig. 4 is the structure diagram of the communication protocol identification device of one embodiment of the invention.
Fig. 5 is the structure diagram of the electronic device of one embodiment of the invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work Embodiment shall fall within the protection scope of the present invention.
It should be noted that system embodiment discussed below is only schematical, the module or circuit It divides, only a kind of division of logic function can have other dividing mode in actual implementation.Furthermore, it is to be understood that " comprising " one Word is not excluded for other units or step, and odd number is not excluded for plural number.The multiple units or device stated in system claims also may be used To be realized by same unit or device by software or hardware.Term as used herein " and/or " including one or The arbitrary and all combination of multiple relevant Listed Items.
It is to better understand the objects, features and advantages of the present invention, below in conjunction with the accompanying drawings and specific real Applying example, the present invention will be described in detail.It should be noted that in the absence of conflict, embodiments herein and embodiment In feature can be combined with each other.
Elaborate many details in the following description to facilitate a thorough understanding of the present invention, described embodiment only Only it is part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill Personnel's all other embodiments obtained without making creative work, shall fall within the protection scope of the present invention.
Unless otherwise defined, all of technologies and scientific terms used here by the article is with belonging to technical field of the invention The normally understood meaning of technical staff is identical.Term used in the description of the invention herein is intended merely to description tool The purpose of the embodiment of body, it is not intended that in the limitation present invention.
Fig. 1 is the system architecture diagram of communication protocol identifying system 1 provided in an embodiment of the present invention.The communication protocol identification System 1 includes, but are not limited to one or more electronic equipments 10, electronic device 20, server 30 and database 40.The electricity Sub-device 20 communicates to connect respectively with one or more electronic equipments 10, is communicated to connect with the server 30.The server 30 communicate to connect with the database 40.
In some embodiments, the electronic equipment 10 is industrial equipment, such as uninterruptible power supply (Uninterruptible Power Supply, UPS)System, charging pile, photovoltaic apparatus, frequency converter, precision air conditioner, environment Monitoring, gen-set, Medical Devices etc..
The electronic device 20 can be personal computer PC(Personal Computer), mobile phone, tablet etc. there is number According to the electronic equipment of processing capacity.The electronic device 20 passes through wired connection with the electronic equipment 10.In some embodiments In, the electronic device 20 passes through serial port with the electronic equipment 10(Such as USB)Connection.
In some embodiments, the server 30 can be the computer of the various general-purpose operating systems of operation, such as Linux System, unix systems, class unix systems, MINIX systems etc..
It can also be channel radio that the communication mode of wherein described electronic device 20 and the server 30, which uses wire communication, Letter.Wherein described wire communication is connected including communication port, such as universal serial bus (universal serial bus, USB), controller LAN(Controller area network, CAN), it is serial and/or other standards network connection, integrated Between circuit(Inter-Integrated Circuit, I2C)Bus etc..It is described to wirelessly communicate the channel radio that arbitrary classification can be used Letter system, for example, bluetooth, infrared ray, Wireless Fidelity(Wireless Fidelity, WiFi), cellular technology, satellite and wide It broadcasts.Wherein described cellular technology may include the second generation(2G), the third generation(3G), forth generation(4G)Or the 5th generation(5G)Deng mobile logical Letter technology.
The server 30 obtains request for receiving the instruction from the electronic device 20, from the database 30 It reads communication instruction and is sent to the electronic device 20.The electronic device 20 is used for the communication that will be obtained from the server 30 Instruction is sent to the electronic equipment 10, and the feedback data of the corresponding communication instruction is obtained from the electronic equipment 10, by institute It states feedback data and carries out matching treatment with storing feedback data corresponding with the communication instruction in database with determining identification knot Fruit.
The database 40 is used to store the instruction set of one or more communication protocols.In some embodiments, one leads to Believe that agreement corresponds to one or more manufacturers, each manufacturer corresponds to the model of one or more electronic equipments, each electronic equipment type Number include one or more communication instruction, each communication instruction is corresponding with a feedback data.The communication protocol includes RS232, RS485, RS422, controller local area network (Controller Area Network, CAN) and universal serial bus One or more of (Universal Serial Bus, USB).The database 40 can be independently of the server 30 Storage device or the server 30 internal memory.The matching treatment is will to be obtained from the electronic equipment 10 The feedback data of each communication instruction taken is compared to determine with the corresponding feedback data stored in the database 40 It is whether consistent.For a communication instruction, if pair stored from the feedback data and database that the electronic equipment 10 obtains Should communication instruction feedback data it is consistent, it is determined that based on this communication instruction obtain feedback data and database in deposit The feedback data matching of storage.
The server 30 can be used what various general servers were connect with database with the communication of the database 40 Connection mode, for example, open CNC(Open Database Connectivity, ODBC), java databases connection (Java DataBase Connectivity, JDBC)Deng.
In some embodiments, the electronic device 20 is additionally operable to export recognition result by output device.Such as pass through Display device shows recognition result or is output by voice recognition result.The recognition result includes successful match and matching not Including determining communication protocol type, manufacturer, electronic appliance models and corresponding communication instruction when success, wherein successful match With feedback data.Under normal conditions, the corresponding all communication instructions of an electronic appliance models are sent to the electronic equipment 10 When the feedback data obtained afterwards can be matched with the feedback data stored in database, communication protocol type, factory may determine therefrom that Quotient, electronic appliance models.But in some embodiments, it is also possible to there is a situation where partial feedback Data Matching, at this time may be used It can only can determine that one or several in communication protocol type, manufacturer, electronic appliance models.
In some embodiments, the recognition result is sent to the server 30, the clothes by the electronic device 20 Business device 30 preserves the recognition result into the database 40.In some embodiments, preservation identification daily record is further included extremely The database 40.The identification daily record includes being sent to all communication instructions of the electronic equipment and corresponds to all of reception Feedback data.
In some embodiments, the electronic device 20 can also be used to increasing newly, change, deleting and stored in the database 40 Instruction set, so as to being safeguarded to the instruction set being stored in the database 40.For example, the communication protocol that will can newly obtain Information increases newly into the instruction set of the database purchase and/or will be using the manufacturer of the communication protocol and or electronic product type Instruction set corresponding to number is increased newly into the instruction set of the database purchase.
In some embodiments, instruction of the server 30 based on the electronic device 20 obtains request with electronic equipment Model sends communication instruction to the electronic device 20 for unit, i.e., once sends all corresponding to an electronic appliance models For communication instruction to the electronic device 20, the electronic device 20 sends communication instruction to the electronic equipment 10 one by one successively. It is understood that in other alternate embodiments, the communication instruction can also be as unit of manufacturer or communication protocol The electronic device 20 is sent to, i.e., once sends a manufacturer or the corresponding all electronic appliance models of communication protocol is corresponding Communication instruction is to the electronic device.If the matching treatment of feedback data is performed in the electronic device 20, stored in database The corresponding feedback data of the communication instruction and the communication instruction be sent to the electronic device 20 together.
It is understood that in some embodiments, the electronic device 20 is only as the server 30 and the electricity Instruction between sub- equipment 10 sends the intermediary received with feedback data, and the parsing and recognition result for feedback data determine Performed in the server 30.At this point, the server 30 sends communication instruction to the electronic device 20, institute one by one successively It states electronic device 20 instruction received is forwarded to the electronic equipment 10 one by one, then will be obtained from the electronic equipment 10 Feedback data is back to the server 30, and the server 30 carries out matching treatment to determine identification according to the feedback data As a result.
It is understood that in some embodiments, the electronic device 20 can be connected directly with the database 40, The database 40 can be independent the built-in storage apparatus of storage device or the electronic device 20.The electronics dress It puts 20 and is directly sent to the electronic equipment 20 from the database 40 acquisition communication instruction, then obtained from the electronic equipment 20 Feedback data is taken, is matched to determine recognition result according to the feedback data.
Fig. 2 is the schematic flow diagram of communication protocol recognition methods provided in an embodiment of the present invention.Communication protocols as shown in Figure 2 View recognition methods may include following steps:
Step 201,301:The electronic device 20 obtains communication instruction.
In one embodiment, the electronic device 20 is based on user's operation(Such as start identification process)Instruction is generated to obtain Request, and send described instruction and obtain request to the server 30, the server 30 is based on described instruction acquisition please It asks from the database 40 and obtains communication instruction.
Alternatively, in another embodiment, user distal end logs in the server 30, and the server 30 is based on described The operation of user(Such as start identification process)Communication instruction is obtained, and the communication instruction is sent to from the database 40 The electronic device 20.In some embodiments, the server 30 is using electronic appliance models or manufacturer or communications protocol as list Position sends communication instruction to the electronic device 20.
The communication instruction is sent to the electronic equipment 10 by step 202,101, the electronic device 20.In some realities It applies in example, the communication instruction is sent to the electronic equipment 10 by serial port one by one.
Step 102,203, the return of electronic equipment 10 feedback data to the electronic device 20.
Step 204, the electronic device 20 will be from the feedback data and database 40 that the electronic equipment 10 receives The correspondence feedback data of storage carries out matching treatment to determine recognition result.In some embodiments, if transmitted communication refers to Corresponding electronic appliance models is enabled to be mismatched with the electronic equipment 10, then correspond to the communication instruction, the electronic equipment 10 returns The feedback data returned may be empty or None- identified data or the inconsistent data of feedback data corresponding with database.
In some embodiments, the communication protocol recognition methods is further included exports recognition result by output device.Example Recognition result is such as shown by display device or is output by voice recognition result.The recognition result include successful match and Match it is unsuccessful, wherein successful match when including determining communication protocol type, manufacturer, electronic appliance models and corresponding logical Letter instruction and feedback data.Under normal conditions, the corresponding all communication instructions of an electronic appliance models are sent to the electronics When the feedback data obtained after equipment 10 can be matched with the feedback data stored in database, communication protocol class may determine therefrom that Type, manufacturer, electronic appliance models.But in some embodiments, it is also possible to there is a situation where partial feedback Data Matching, this Shi Keneng only can determine that one or several in communication protocol type, manufacturer, electronic appliance models.
In some embodiments, the communication protocol recognition methods is further included is sent to the service by the recognition result Device 30, the server 30 preserve the recognition result into the database 40.
In some embodiments, the communication protocol recognition methods further include it is newly-increased, change, delete in the database 40 The instruction set of storage, so as to which the communication protocol recognition methods further includes the instruction set progress stated in database 40 to being stored in It safeguards.For example, the communication protocol information newly obtained can be increased newly into the instruction set of the database purchase and/or will used The manufacturer of the communication protocol and or electronic product model corresponding to instruction set increase newly to the instruction set of the database purchase In.
Fig. 3 is the schematic flow diagram of the communication protocol recognition methods provided in an embodiment of the present invention applied to electronic device.
Step 31, communication instruction is obtained.In one embodiment, the electronic device 20 is based on user's operation(Such as start Identification process)It generates instruction and obtains request, and send described instruction and obtain request to the server 30,30 base of server Request, which is obtained, in the described instruction obtains communication instruction from the database 40.
Step 32, the communication instruction is sent to electronic equipment.
Step 33, feedback data is received.In some embodiments, if the corresponding electronic equipment type of transmitted communication instruction Number or producer or communication protocol mismatched with the electronic equipment 10, then correspond to the communication instruction, the electronic equipment 10 returns Feedback data may be sky.At this point, a feedback time length can be set, in the feedback time length, if being not received by Feedback data, then it is assumed that feedback data is sky.
Step 34, judge whether also to instruct not reading.If so, return to step 31, if it is not, entering step 35.At some In embodiment, using matching method one by one, i.e., first obtain the corresponding communication instruction of an electronic appliance models and be sent to electronics one by one Equipment carries out match cognization when the corresponding communication instruction of the electronic appliance models is all sent according to feedback data, The corresponding communication instruction of another electronic appliance models under same manufacturer is obtained when matching unsuccessful again and is sent to electronic equipment one by one, When all electronic appliance models under the manufacturer cannot match, then obtain the electronic appliance models correspondence of another producer Communication instruction be sent to electronic equipment one by one.When all manufacturers under a communication protocol are unable to successful match, then It chooses next communication protocol and carries out similar process.
Step 35, recognition result is determined according to the feedback data received.
Pair that the electronic device 20 will be stored from the feedback data that the electronic equipment 10 receives and database 40 Feedback data is answered to carry out matching treatment to determine recognition result.If the corresponding communication instruction of a certain electronic appliance models obtains Feedback data can match, then can determine the electronic equipment 40 as the electronic appliance models, belonging to producer and use Communication protocol is the producer of the correspondence electronic appliance models stored in database, communication protocol.In some embodiments, if institute The corresponding electronic appliance models of communication instruction of transmission or producer or communication protocol are mismatched with the electronic equipment 10, then are corresponded to The communication instruction, the feedback data that the electronic equipment 10 returns may be empty or None- identified data or with it is right in database The inconsistent data of the feedback data answered.If partial feedback Data Matching, may be only capable of identification communication protocol or communication protocol with Producer.If feedback data all mismatches, recognition result is recognition failures.
In some embodiments, communication instruction to the electronic equipment is sent to send with different baud rates, with Determine the best baud rate to communicate with the electronic equipment.The feedback data for sending communication instruction with different baud rates and obtaining is equal It can preserve to the identification daily record.
In some embodiments, the communication protocol recognition methods is further included exports recognition result by output device.Example Recognition result is such as shown by display device or is output by voice recognition result.The recognition result include successful match and Match it is unsuccessful, wherein successful match when including determining communication protocol type, manufacturer, electronic appliance models and corresponding logical Letter instruction and feedback data.
In some embodiments, the communication protocol recognition methods, which further includes, preserves recognition result and/or identification daily record extremely The database 40.In some embodiments, the recognition result and/or identification daily record are sent to institute by the electronic device 20 Server 30 is stated, the server 30 preserves the recognition result into the database 40.
In some embodiments, the communication protocol recognition methods further include it is newly-increased, change, delete in the database 40 The instruction set of storage, so as to which the communication protocol recognition methods further includes the instruction set progress stated in database 40 to being stored in It safeguards.For example, the communication protocol information newly obtained can be increased newly into the instruction set of the database purchase and/or will used The manufacturer of the communication protocol and or electronic product model corresponding to instruction set increase newly to the instruction set of the database purchase In.
Structure charts of the Fig. 4 for communication protocol identification device 4 provided in an embodiment of the present invention, the communication protocol identification device 4 can include:Instruction acquisition module 41, instruction sending module 42, feedback data receiving module 43 and determining module 44.The present invention So-called module refers to a kind of series of computation machine program segment that can be executed by a computer and can complete fixed function.
Communication protocol identification device 4 provided by the invention can be applied to electronic device, and the electronic device can be individual Computer PC(Personal Computer), mobile phone, tablet etc. there is the electronic equipment of data-handling capacity.
Described instruction acquisition module 41 is used to obtain communication instruction from database.
Described instruction sending module 42 is used to send the communication instruction to the electronic equipment.
The feedback data receiving module 43 is used to obtain feedback data from the electronic equipment.
The determining module 44 is used for the feedback that will be stored from the feedback data and database that the electronic equipment receives Data carry out matching treatment to determine recognition result.
Fig. 5 is please referred to, Fig. 5 is the electronic device 5 for the realization communication protocol recognition methods that one embodiment of the invention provides Structure diagram.
The electronic device 5 of the embodiment be it is a kind of can be automatic to carry out numerical value meter according to the instruction for being previously set or storing Calculation and/or the equipment of information processing, including:It memory 51, processor 52 and is stored in the memory 51 and can be in institute State the computer program run on processor 52, such as communication protocol recognizer.The processor 52 performs the computer The step in above-described embodiment, such as step shown in Fig. 3 are realized during program.Alternatively, the processor performs the computer The function of each module in above-mentioned each device embodiment is realized during program.
Illustratively, the computer program can be divided into one or more module/units, one or more A module/unit is stored in the memory 51, and is performed by the processor 52, to complete the present invention.It is one Or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used to retouch State implementation procedure of the computer program in the electronic device.For example, the computer program can be divided into Fig. 4 Shown instruction acquisition module 41, instruction sending module 42, feedback data receiving module 43 and determining module 44.
The electronic device 5 may be, but not limited to, any electronic product that can carry out data processing, for example, PC, Tablet computer, smart mobile phone, personal digital assistant(Personal Digital Assistant, PDA).
The memory 51 can be used for storing the computer program and/or module, the processor 52 by operation or It performs the computer program being stored in the memory 51 and/or module and calls the data being stored in memory 51, Realize the various functions of the electronic device 5.The memory 51 can mainly include storing program area and storage data field, In, storing program area can storage program area, the application program needed at least one function(Such as communication protocol identification)Deng;It deposits Storage data field can be stored uses created data according to electronic device 5(Such as feedback data, recognition result etc.)Deng.This Outside, memory 51 can include high-speed random access memory, can also include nonvolatile memory, such as hard disk, memory, Plug-in type hard disk, intelligent memory card(Smart Media Card, SMC), secure digital(Secure Digital, SD)Card, Flash card(Flash Card), at least one disk memory, flush memory device or other volatile solid-state parts.
The processor 52 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic device Part, discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processing Device etc., the processor are the control centres of the electronic device 5, utilize various interfaces and the entire electronic device 5 of connection Various pieces.
Preferably, the processor 52 can call the program code stored in the memory 51 to perform relevant work( Energy.For example, the modules described in Fig. 4 are stored in the program code in the memory 51, and by the processor 52 It is performed, to realize the communication protocol recognition methods of the present invention(Such as communication protocol recognition methods shown in Fig. 3 in embodiment).
The electronic device 5 may also include at least one communication device 53 and at least one communication bus.Wherein, it is described Communication bus is used to implement the connection communication between these components.Wherein described communication device 53 for the electronic device 5 with Electronic equipment, server communication.
Wherein, it can also be wireless communication device that the communication device 53, which can be wire communication device,.It is wherein described to have Line communication device includes communication port, such as universal serial bus (universal serial bus, USB), controller local Net(Controller area network, CAN), between serial and/or other standards network connection, integrated circuit(Inter- Integrated Circuit, I2C)Bus etc..The wireless communication system of arbitrary classification, example can be used in the wireless communication device Such as, bluetooth, infrared ray, Wireless Fidelity(Wireless Fidelity, WiFi), cellular technology, satellite and broadcast.Wherein institute Stating cellular technology may include the second generation(2G), the third generation(3G), forth generation(4G)Or the 5th generation(5G)Wait mobile communication technologies.
In some embodiments, the electronic device 5 may also include display device and input unit.The display device is used In display recognition result.The input unit 55 is used to receive user operation instruction to start identification process.
The display device can touch liquid crystal display(Liquid Crystal Display, LCD), light-emitting diodes Pipe(Light Emitting Diode, LED)Display screen, Organic Electricity laser display screen(Organic Light-Emitting Diode, OLED)Or other suitable display screens.
The input unit may include the input equipment of any suitable, including but not limited to, mouse, keyboard, touch screen or Contactless input, for example, gesture input, voice input etc..
It will be understood by those skilled in the art that the schematic diagram is only the example of electronic device, not structure paired electrons The restriction of device can include either combining certain components or different components, example than illustrating more or fewer components Such as described electronic device 5 can also include loud speaker output equipment etc..
If module/unit that the electronic device integrates is realized in the form of SFU software functional unit and is independent production Product are sold or in use, can be stored in a computer read/write memory medium.Based on such understanding, the present invention realizes All or part of flow in Emotion identification method described in above-described embodiment can also instruct correlation by computer program Hardware complete, the computer program can be stored in a computer readable storage medium, the computer program is in quilt When processor performs, it can be achieved that above Emotion identification method described in embodiment of the method the step of.Wherein, the computer program Including computer program code, the computer program code can be source code form, object identification code form, executable file Or certain intermediate forms etc..The computer-readable medium can include:Any of the computer program code can be carried Entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disc, CD, computer storage, read-only memory(ROM, Read- Only Memory), random access memory(RAM, Random Access Memory), electric carrier signal, telecommunication signal and Software distribution medium etc..It should be noted that the content that the computer-readable medium includes can be according in jurisdiction Legislation and the requirement of patent practice carry out appropriate increase and decrease, such as in certain jurisdictions, according to legislation and patent practice, meter Calculation machine readable medium does not include electric carrier signal and telecommunication signal.
Finally it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention and it is unrestricted, although reference The present invention is described in detail in preferred embodiment, it will be understood by those of ordinary skill in the art that, it can be to the present invention's Technical solution is modified or equivalent replacement, without departing from the spirit and scope of technical solution of the present invention.

Claims (10)

1. a kind of communication protocol recognition methods, which is characterized in that the method includes:
Communication instruction is obtained from database;The information of at least one communication protocol of database purchase, each communication protocol Information includes at least one communication instruction and feedback data corresponding with the communication instruction;
The communication instruction is sent to electronic equipment;
Feedback data is received from the electronic equipment;
The feedback data of reception feedback data corresponding with what is stored in database is matched to determine recognition result.
2. the method as described in claim 1, which is characterized in that the method further includes:
Recognition result is preserved to the database.
3. the method as described in claim 1, which is characterized in that the information of the communication protocol is included using the communication protocol An at least manufacturer and an at least electronic appliance models for the manufacturer, each electronic appliance models correspond to an at least communication instruction and Feedback data corresponding with the communication instruction, the recognition result include determining electronic appliance models, producer and the communication of use Agreement.
4. the method as described in claim 1, which is characterized in that the method further includes:Identification daily record is preserved to the data Library, the identification daily record include being sent to all communication instructions of the electronic equipment and the corresponding all feedback data received.
5. the method as described in claim 1, which is characterized in that the communication instruction is sent by electronic device, the electronics Device is communicated to connect by serial ports and the electronic equipment, and the communication instruction is sent one by one by the serial ports.
6. the method as described in claim 1, which is characterized in that the communication protocol includes RS232, RS485, RS422, CAN, And one or more of USB.
7. the method as described in claim 1, which is characterized in that the communication instruction is sent to the electronics with different baud rates Equipment, the best baud rate for determining to communicate with the electronic equipment according to feedback data.
8. the method as described in claim 1, which is characterized in that the electronic equipment for ups system, charging pile, photovoltaic apparatus, Frequency converter, precision air conditioner, environmental monitoring, gen-set or Medical Devices.
9. a kind of electronic device, which is characterized in that the electronic device includes memory, processing equipment device and is stored in described deposit On reservoir and the communication protocol recognizer that can run on the processor, the communication protocol recognizer is by the processing The step of device realizes method described in any item of the claim 1 to 8 when performing.
10. a kind of computer readable storage medium, is stored thereon with computer program, it is characterised in that:The computer program The step of method as claimed in any of claims 1 to 8 in one of claims is realized when being executed by processor.
CN201810170735.7A 2018-03-01 2018-03-01 Communication protocol identification method, electronic device and computer storage medium Active CN108259512B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810170735.7A CN108259512B (en) 2018-03-01 2018-03-01 Communication protocol identification method, electronic device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810170735.7A CN108259512B (en) 2018-03-01 2018-03-01 Communication protocol identification method, electronic device and computer storage medium

Publications (2)

Publication Number Publication Date
CN108259512A true CN108259512A (en) 2018-07-06
CN108259512B CN108259512B (en) 2020-12-25

Family

ID=62744519

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810170735.7A Active CN108259512B (en) 2018-03-01 2018-03-01 Communication protocol identification method, electronic device and computer storage medium

Country Status (1)

Country Link
CN (1) CN108259512B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110697522A (en) * 2019-09-19 2020-01-17 广州慧特安科技有限公司 Method, system and storage medium for detecting elevator communication protocol
CN110933059A (en) * 2019-11-22 2020-03-27 广州视源电子科技股份有限公司 Data communication method and device, electronic equipment, upper computer and storage medium
CN111216587A (en) * 2018-11-23 2020-06-02 北京嘀嘀无限科技发展有限公司 Power supply method, charging method, power supply equipment and equipment to be charged
CN111711240A (en) * 2020-06-24 2020-09-25 江西联智集成电路有限公司 Method and device for testing wireless charging equipment
CN111770105A (en) * 2020-07-02 2020-10-13 山东建筑大学 Multi-protocol self-adaptive ammeter data acquisition algorithm
CN114500688A (en) * 2022-01-28 2022-05-13 厦门科灿信息技术有限公司 Method, device, terminal and storage medium for identifying device protocol
CN114884852A (en) * 2022-05-07 2022-08-09 武汉思普崚技术有限公司 Node interaction and protocol identification method, device, equipment and computer medium
CN115776528A (en) * 2021-09-07 2023-03-10 南宁富桂精密工业有限公司 Industrial equipment data acquisition method, computer device and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262600A (en) * 2010-05-25 2011-11-30 安凯(广州)微电子技术有限公司 Method and system for recognizing USB (Universal Serial Bus) equipment
CN104676842A (en) * 2015-03-10 2015-06-03 广东美的暖通设备有限公司 Control method and control device for wire controller and wire controller
CN106487879A (en) * 2016-09-20 2017-03-08 北京知道未来信息技术有限公司 A kind of network equipment recognition methodss based on device-fingerprint storehouse and device
CN106559478A (en) * 2016-10-14 2017-04-05 深圳市智物联网络有限公司 A kind of facility information processing method and processing system based on Internet of Things
CN106713449A (en) * 2016-12-21 2017-05-24 中国电子科技网络信息安全有限公司 Method for quickly identifying networked industrial control device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262600A (en) * 2010-05-25 2011-11-30 安凯(广州)微电子技术有限公司 Method and system for recognizing USB (Universal Serial Bus) equipment
CN104676842A (en) * 2015-03-10 2015-06-03 广东美的暖通设备有限公司 Control method and control device for wire controller and wire controller
CN106487879A (en) * 2016-09-20 2017-03-08 北京知道未来信息技术有限公司 A kind of network equipment recognition methodss based on device-fingerprint storehouse and device
CN106559478A (en) * 2016-10-14 2017-04-05 深圳市智物联网络有限公司 A kind of facility information processing method and processing system based on Internet of Things
CN106713449A (en) * 2016-12-21 2017-05-24 中国电子科技网络信息安全有限公司 Method for quickly identifying networked industrial control device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HUAWEI: "I Manager NetEco 1000U V100R001C00 用户手册", 《I MANAGER NETECO 1000U V100R001C00 用户手册》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111216587A (en) * 2018-11-23 2020-06-02 北京嘀嘀无限科技发展有限公司 Power supply method, charging method, power supply equipment and equipment to be charged
CN111216587B (en) * 2018-11-23 2022-04-05 北京嘀嘀无限科技发展有限公司 Power supply method, charging method, power supply equipment and equipment to be charged
CN110697522A (en) * 2019-09-19 2020-01-17 广州慧特安科技有限公司 Method, system and storage medium for detecting elevator communication protocol
CN110697522B (en) * 2019-09-19 2022-03-25 广州慧特安科技有限公司 Method, system and storage medium for detecting elevator communication protocol
CN110933059A (en) * 2019-11-22 2020-03-27 广州视源电子科技股份有限公司 Data communication method and device, electronic equipment, upper computer and storage medium
CN111711240A (en) * 2020-06-24 2020-09-25 江西联智集成电路有限公司 Method and device for testing wireless charging equipment
CN111770105A (en) * 2020-07-02 2020-10-13 山东建筑大学 Multi-protocol self-adaptive ammeter data acquisition algorithm
CN115776528A (en) * 2021-09-07 2023-03-10 南宁富桂精密工业有限公司 Industrial equipment data acquisition method, computer device and readable storage medium
CN114500688A (en) * 2022-01-28 2022-05-13 厦门科灿信息技术有限公司 Method, device, terminal and storage medium for identifying device protocol
CN114500688B (en) * 2022-01-28 2023-12-05 厦门科灿信息技术有限公司 Method, device, terminal and storage medium for identifying equipment protocol
CN114884852A (en) * 2022-05-07 2022-08-09 武汉思普崚技术有限公司 Node interaction and protocol identification method, device, equipment and computer medium
CN114884852B (en) * 2022-05-07 2024-04-23 武汉思普崚技术有限公司 Node interaction and protocol identification method, device, equipment and computer medium

Also Published As

Publication number Publication date
CN108259512B (en) 2020-12-25

Similar Documents

Publication Publication Date Title
CN108259512A (en) Communication protocol recognition methods, electronic device and computer storage media
CN107424338A (en) A kind of control method of express delivery cabinet, apparatus and system
CN107277754A (en) The method and Bluetooth peripheral of a kind of bluetooth connection
RU2008108965A (en) FIELD-BASED ARCHITECTURE AND RESOURCE MANAGEMENT DEVICE
CN110611876B (en) Indoor asset management method, device and system
CN106777009A (en) Smart machine and task scheduling perform control method and device
CN208126425U (en) A kind of electric power computer room grid equipment monitoring management system
CN103116828A (en) System and method for processing production data of garment pattern workshop
CN108353266A (en) Peripheral equipment matches
CN107277779A (en) A kind of localization method and its system based on ZigBee-network
CN104954480B (en) A kind of device parameter setting method and device
CN102253945A (en) Handheld article manager
CN103455333B (en) A kind of desktop icons processing method, device and mobile terminal
CN107153576A (en) The distribution method and terminal device of a kind of memory source
CN205563123U (en) Control panel and control system
CN107277217A (en) A kind of incoming call answering method and terminal device
CN106651650A (en) Joint debugging measurement and control device and electric power Internet of things joint debugging measurement and control system applying same
CN110267125A (en) Intelligent meter reading method and Related product
CN107465601A (en) Pushed information processing method and processing device
CN110413639A (en) Data check method and device, electronic equipment and computer readable storage medium
CN106792678A (en) A kind of method and system of radio node automatic matching search
CN204102158U (en) Intelligent terminal is dynamically connected and the system of opertaing device certainly by identification label
CN115951973B (en) Model processing method, device, terminal equipment and storage medium
Mohanapriya et al. Design and implementation of smart basket cart using near field communication
CN109302669A (en) Setting method, device, storage medium and the electronic equipment of polling mechanism

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
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 518000 Room 301, building 1, fengyesheng factory building, Chuangye 2nd Road, Dalang community, Xin'an street, Bao'an District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen Youdian IOT Technology Co.,Ltd.

Address before: 518000 Room 201, building a, No.1 Qianwan 1st Road, Qianhai Shenzhen Hong Kong cooperation zone, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN QIANHAI YESPOWERING IOT TECHNOLOGY Co.,Ltd.