CN201210693Y - Apparatus for realizing adaptive serial port communication protocol converter oriented to different terminals - Google Patents

Apparatus for realizing adaptive serial port communication protocol converter oriented to different terminals Download PDF

Info

Publication number
CN201210693Y
CN201210693Y CNU2008201020182U CN200820102018U CN201210693Y CN 201210693 Y CN201210693 Y CN 201210693Y CN U2008201020182 U CNU2008201020182 U CN U2008201020182U CN 200820102018 U CN200820102018 U CN 200820102018U CN 201210693 Y CN201210693 Y CN 201210693Y
Authority
CN
China
Prior art keywords
module
protocol
instruction
command
terminal
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.)
Expired - Fee Related
Application number
CNU2008201020182U
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.)
Fujian Normal University
Original Assignee
Fujian Normal University
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 Fujian Normal University filed Critical Fujian Normal University
Priority to CNU2008201020182U priority Critical patent/CN201210693Y/en
Application granted granted Critical
Publication of CN201210693Y publication Critical patent/CN201210693Y/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The utility model relates to the field of serial port communication protocol, more particularly a self-adaptive serial port communication protocol conversion device which is composed of an upper computer, a protocol convertor and a terminal apparatus, wherein the upper computer is composed of a criterion command generation module, a command inquiry module, a protocol database and a command reception and sending module. The protocol convertor is composed of two command reception and sending modules, a command conversion module and a command conversion table. The terminal apparatus is composed of the command reception and sending module and a terminal working module. When the upper computer requires communication with the terminal apparatus, the command, which is sent by the upper computer, needs to be converted via the protocol convertor into a command type according with type of the terminal apparatus, and the same treatment is also applied to the command returned by the terminal apparatus. The utility model solves deficiency of protocol conversion in adaption ability, which realizes functions of self-selection and self-adaption of the protocol convertor for the terminal apparatus in diversified types, and which has easiness for extension and has wide application range.

Description

A kind of device of realizing the self-adapting serial port communicating protocol transducer at different terminals
Technical field
The utility model relates to the serial port communicating protocol field, is a kind of device of realizing the self-adapting serial port communicating protocol conversion at different terminals specifically.
Background technology
RS-232-C and RS-485 interface are present the most frequently used a kind of serial communication interfaces.It is that the serial communication technology was widely used in industrial control field now the standard that is used for serial communication by EIA (EIA) associating Bell System, the common formulation of modulator-demodulator producer and terminal manufacturer in 1970.
In serial communication, always adopt certain agreement that provides to carry out communication between host computer and the terminal equipment, thereby realize control terminal equipment.Therefore, the software of host computer is write according to the agreement of appointing in advance often in real system.But, even the terminal of identical function because manufacturer's difference, the agreement of regulation is just inconsistent, this just requires every kind of terminal all to need certain specific upper computer software, the simultaneous phenomenon of multiple upper computer software will inevitably bring inconvenience to unified control.Paper " Study on Serial Communication Protocol Converter ", development of computers and application, 2002,15 the 1st phases of volume, proposed in telecom communication system, different intelligent equipment to be adopted the idea of protocol converter according to YDN023-96 " communication power supply and the specification requirement of the air-conditioning centralized monitoring system " standard of former Ministry of Posts and Telecommunications promulgation in 1996, but this design only can be applicable to the standard telecommunication terminal, and can't realize from selection, adaptive function for all kinds of different terminals in the actual production.
Therefore, design in conjunction with upper computer software and can realize adaptive serial port protocol transducer at different terminals, the complexity that reduces production application control is the problem of relatively being concerned about in the serial communication design always.
Summary of the invention
The purpose of the utility model design is to overcome above-mentioned deficiency, adopts the art designs that end message is stored and protocol converter combines of host computer to go out the device of a kind of energy self-adapting serial port communicating protocol conversion.
For achieving the above object, the technical solution of the utility model is:
(1) include stereotyped command generation module, instruction enquiry module, protocol database, host computer instruction transceiver module in the host computer, wherein the stereotyped command generation module is connected with host computer instruction transceiver module, and the instruction enquiry module is connected with protocol database.
(2) include protocol converter instruction transceiver module, instruction transformation module, instruction transformation table in the protocol converter, wherein the instruction transformation module is connected with protocol instructions transducer instruction transceiver module and instruction transformation table, and sends instructions under the host computer and the terminal return instruction by instructing transceiver module to obtain.
(3) include terminal instruction transceiver module, terminal works module in the terminal, the terminal instruction transceiver module wherein and the instruction transceiver module of instruction transceiver are connected, and are connected the instruction that will receive with the terminal works module simultaneously and send to operational module.
(4) protocol converter mainly is responsible for the protocol format conversion between host computer and the terminal equipment.
When host computer need carry out communication with terminal equipment, at first the standard agreement generation module by host computer generates a standard agreement, need be the command format that meets terminal equipment type with the instruction transformation that host computer sends by protocol converter, the instruction that terminal equipment returns also will be carried out same treatment.Protocol converter mainly is responsible for the protocol format conversion between host computer and the terminal equipment, when sending an instruction, host computer gets off, protocol converter is the look-up command conversion table at first, sees if there is the command list of coupling, if having then terminal is given in the instruction of directly sending after the conversion; If do not have, then the stereotyped command that host computer is generated sends to terminal, terminal can provide response, then this response is uploaded to the instruction inquiry enquiry module of host computer, the instruction enquiry module is searched protocol database again, match terminal type, then all command lists of the type are issued transducer, transducer is preserved this tabulation.Just have the conversion instruction table of correspondence can be processed into the instruction after the conversion next time when the terminal equipment of host computer and same type carries out communication in the protocol converter.In addition, can empty the instruction transformation table in the protocol converter according to user's demand, promptly to the protocol converter initialization.Database is used to store the command list of all devices type.
Implementation result
The utility model has solved the deficiency of protocol converter aspect adaptive capacity, has realized protocol converter to the selection certainly of dissimilar terminal equipments, adaptive function, easily expansion, applied range.
Description of drawings
The utility model is described in further detail below in conjunction with accompanying drawing
Fig. 1 is system frame structure figure of the present utility model.
Fig. 2 is the workflow diagram of designed system of the present utility model.
Among Fig. 1, the 101st, the stereotyped command generation module, the 102nd, the instruction enquiry module, the 103rd, protocol database, 104,105,108 and 109 all is the instruction transceiver module.The 106th, instruction modular converter, the 107th, instruction conversion table, 110 terminal works modules.
Embodiment
For the more detailed description native system, specific implementation process is explained as follows in conjunction with Fig. 2:
Step 201: after the start-up system, the stereotyped command generation module of host computer generates stereotyped command.
Step 202: protocol converter is accepted the stereotyped command that host computer sends.
Step 203: whether initialization directive of inquiry user, if then enter step 204, if otherwise continue execution in step 205.
Step 204:, empty the instruction transformation collection in the protocol converter according to the customer requirements apparatus for initializing.
Step 205: whether corresponding conversion instruction is arranged in the protocol converter decision instruction conversion table,, then do not continue execution in step 204 if having then enter step 209.
Step 206: protocol converter sends to terminal with the stereotyped command that host computer sends, and receiving terminal is responded.
Step 207: terminal equipment returns to oneself device type the device type enquiry module of host computer by protocol converter.
Step 208: host computer instruction enquiry module vlan query protocol VLAN database, find out command list with the terminal type coupling.
Step 209: host computer sends to transducer with all command lists of match-type.
Step 210: protocol converter is saved in the instruction transformation table with the command list that receives, in order to the terminal equipment use of next same type.
Step 211: protocol converter is according to instruction transformation table translation-protocol, so that carry out communication with terminal equipment.
Step 212: the instruction of protocol converter after terminal equipment sends conversion, finish communication.

Claims (1)

1, a kind of device at different terminal realization self-adapting serial port communicating protocol transducers is characterized in that: it is characterized in that:
(1) include stereotyped command generation module, instruction enquiry module, protocol database, host computer instruction transceiver module in the host computer, wherein the stereotyped command generation module is connected with host computer instruction transceiver module, and the instruction enquiry module is connected with protocol database;
(2) include protocol converter instruction transceiver module, instruction transformation module, instruction transformation table in the protocol converter, wherein the instruction transformation module is connected with protocol instructions transducer instruction transceiver module and instruction transformation table;
(3) include terminal instruction transceiver module, terminal works module in the terminal, the terminal instruction transceiver module wherein and the instruction transceiver module of instruction transceiver are connected, and are connected with the terminal works module simultaneously.
CNU2008201020182U 2008-04-17 2008-04-17 Apparatus for realizing adaptive serial port communication protocol converter oriented to different terminals Expired - Fee Related CN201210693Y (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNU2008201020182U CN201210693Y (en) 2008-04-17 2008-04-17 Apparatus for realizing adaptive serial port communication protocol converter oriented to different terminals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNU2008201020182U CN201210693Y (en) 2008-04-17 2008-04-17 Apparatus for realizing adaptive serial port communication protocol converter oriented to different terminals

Publications (1)

Publication Number Publication Date
CN201210693Y true CN201210693Y (en) 2009-03-18

Family

ID=40481428

Family Applications (1)

Application Number Title Priority Date Filing Date
CNU2008201020182U Expired - Fee Related CN201210693Y (en) 2008-04-17 2008-04-17 Apparatus for realizing adaptive serial port communication protocol converter oriented to different terminals

Country Status (1)

Country Link
CN (1) CN201210693Y (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102365844A (en) * 2009-04-07 2012-02-29 三菱电机株式会社 Communication adapter device
CN102537708A (en) * 2010-12-31 2012-07-04 深圳市比科斯电子有限公司 Wireless charging bulb
CN112671770A (en) * 2020-12-23 2021-04-16 波达通信设备(广州)有限公司 Outdoor unit serial port protocol analysis method and device, computer equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102365844A (en) * 2009-04-07 2012-02-29 三菱电机株式会社 Communication adapter device
CN102537708A (en) * 2010-12-31 2012-07-04 深圳市比科斯电子有限公司 Wireless charging bulb
CN112671770A (en) * 2020-12-23 2021-04-16 波达通信设备(广州)有限公司 Outdoor unit serial port protocol analysis method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN101257491A (en) Method for converting self-adapting serial port communicating protocol
CN202495966U (en) Embedded configurable multi-protocol communication network converter
CN104317257A (en) System and method for controlling multiple sockets based on wireless internet control
CN201210693Y (en) Apparatus for realizing adaptive serial port communication protocol converter oriented to different terminals
CN105577717A (en) Control method and system having compatibility with various electric appliances
CN101141536A (en) Remote control system of household electrical appliance
CN104932373A (en) Intelligent industrial network protocol wireless converter
CN102520678A (en) Remote control system for active reflection panel of radio telescope
CN203984450U (en) Intelligent domestic gateway
CN101729561A (en) Low-voltage electrical appliance communication protocol adapter
CN103368908A (en) Gateway protocol, gateway equipment and electrical equipment control system
CN104426987A (en) Intelligent home furnishing management and control system based on network instructions
CN203480677U (en) Intelligent residential district network communication system
CN101237663A (en) Operation and maintenance management method and system for base station device in wireless communication system
CN102100122A (en) Data transmitting method, terminal processor and terminal device in zigbee network
CN103929457A (en) Internet of things application data interaction system and method based on mobile internet
CN103631204A (en) System for remotely controlling electric appliance
CN114362872A (en) Multi-network cooperative edge intelligent device based on TSN (transmission time network)
CN202059429U (en) Home intelligent terminal and home intelligent terminal network system
CN202906948U (en) Communication apparatus based on modbus_RTU bus
CN203278884U (en) Data communication device of wind power current transformer
CN207997683U (en) Thermal printer
CN102739695A (en) Remote control method for power distributor unit
CN201917799U (en) Multipath controlled intelligent home controller
CN201773394U (en) Bus interface device of PROFIBUS

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Assignee: Fuzhou Minyou Jixing Digital Science & Technology Co., Ltd.

Assignor: Fujian Normal University

Contract record no.: 2011350000149

Denomination of utility model: Apparatus for realizing adaptive serial port communication protocol converter oriented to different terminals

Granted publication date: 20090318

License type: Exclusive License

Record date: 20110706

C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090318

Termination date: 20130417